Documentation
¶
Index ¶
- Variables
- func HandleReportProgress(args []string) error
- func HandleYieldPendingQuestions(args []string) error
- func Logf(fmtStr string, args ...interface{})
- func PromptContent(c Config) string
- func Run(ctx context.Context, c Config, opts Options) error
- func TestExported_NewSessionLogWriter() *sessionLogWriter
- func TestExported_autoDetectAgentRunner(c Config) (string, bool)
- func TestExported_runAgent(ctx context.Context, agentRunner, model, prompt, sessionID string, ...) (string, error)
- type Config
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var TestProcessNameFunc func(pid int) string
TestProcessNameFunc is a test hook that, when non-nil, overrides the PID → process-name lookup used by autoDetectAgentRunner during Priority 4 (parent-process) detection. Tests set this to inject a fake process tree. The production getProcessName delegates to this hook before falling back to OS calls (ps on darwin, /proc on linux).
Functions ¶
func HandleReportProgress ¶
func PromptContent ¶
func TestExported_NewSessionLogWriter ¶ added in v0.0.20
func TestExported_NewSessionLogWriter() *sessionLogWriter
TestExported_NewSessionLogWriter creates a sessionLogWriter for testing.
func TestExported_autoDetectAgentRunner ¶ added in v0.0.21
TestExported_autoDetectAgentRunner wraps the unexported autoDetectAgentRunner for doctest access.
Types ¶
Click to show internal directories.
Click to hide internal directories.