chore(commands): restore Outcome comments and annotate Deps.Config
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
77a0957f92
commit
3f388a080f
2 changed files with 3 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import "github.com/sipeed/picoclaw/pkg/config"
|
||||||
// invocation time, not at construction time, so late-bound values
|
// invocation time, not at construction time, so late-bound values
|
||||||
// (e.g. channelManager set after NewAgentLoop) are visible.
|
// (e.g. channelManager set after NewAgentLoop) are visible.
|
||||||
type Deps struct {
|
type Deps struct {
|
||||||
Config *config.Config
|
Config *config.Config // reserved for Phase 2 session commands
|
||||||
GetModelInfo func() (name, provider string)
|
GetModelInfo func() (name, provider string)
|
||||||
ListAgentIDs func() []string
|
ListAgentIDs func() []string
|
||||||
GetEnabledChannels func() []string
|
GetEnabledChannels func() []string
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,9 @@ import (
|
||||||
type Outcome int
|
type Outcome int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// OutcomePassthrough means this input should continue through normal agent flow.
|
||||||
OutcomePassthrough Outcome = iota
|
OutcomePassthrough Outcome = iota
|
||||||
|
// OutcomeHandled means a command handler executed (with or without handler error).
|
||||||
OutcomeHandled
|
OutcomeHandled
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue