Documentation
¶
Index ¶
Constants ¶
const ( DeliveryArgv = "argv" DeliveryStdin = "stdin" )
const ( PromptDraft = `` /* 256-byte string literal not displayed */ PromptRefine = `` /* 367-byte string literal not displayed */ PromptApply = `` /* 251-byte string literal not displayed */ )
Built-in prompt templates. Placeholders {{prompt}} and {{spec_path}} are substituted with a plain replacer — NOT Go text/template, whose delimiters collide with the placeholder syntax.
const ( PlaceholderPrompt = "{{prompt}}" PlaceholderSpecPath = "{{spec_path}}" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
Adapter is a resolved agent command: argv template + delivery mode + extras.
func (Adapter) Execute ¶
Execute runs the adapter with the given instruction text. Agent stdout and stderr tee to the terminal and to out, which must be safe for concurrent use (the stdout and stderr copiers both write it). Returns the exit code; a canceled context returns (-1, context.Canceled). Cancel kills the direct child only — on Unix descendants of the agent may outlive it (tree-kill via process group is left to callers), and on Windows killing is direct-child-only by design. WaitDelay bounds the wait so orphaned descendants holding the output pipes cannot hang Wait forever.