chore(commands): restore Outcome comments and annotate Deps.Config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
mingmxren 2026-03-03 23:03:39 +08:00
parent 77a0957f92
commit 3f388a080f
2 changed files with 3 additions and 1 deletions

View file

@ -7,7 +7,7 @@ import "github.com/sipeed/picoclaw/pkg/config"
// invocation time, not at construction time, so late-bound values
// (e.g. channelManager set after NewAgentLoop) are visible.
type Deps struct {
Config *config.Config
Config *config.Config // reserved for Phase 2 session commands
GetModelInfo func() (name, provider string)
ListAgentIDs func() []string
GetEnabledChannels func() []string

View file

@ -8,7 +8,9 @@ import (
type Outcome int
const (
// OutcomePassthrough means this input should continue through normal agent flow.
OutcomePassthrough Outcome = iota
// OutcomeHandled means a command handler executed (with or without handler error).
OutcomeHandled
)