Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Prompt is first message; falls back to the positional command-line arguments.
Prompt string `json:"prompt"`
// Once runs a single turn and exit instead of looping on stdin.
Once bool `json:"once"`
// DefaultSessionID overrides the session to attach to. When empty, CLI reads
// sessions/cli_current.jsonl (falls back to cli:default when the link is missing).
DefaultSessionID string `json:"defaultSessionId"`
}
type Deps ¶
type Deps struct {
Commands agentkit.Commands `json:"commands,omitempty"`
SessionStore agentkit.SessionStore `json:"sessionStore,omitempty"`
}
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
Input owns one stdin stream for prompt lines and permission replies.
func (*Input) ReadPrompt ¶
ReadPrompt reads one line from stdin.
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) PermissionCapability ¶
func (p *Platform) PermissionCapability() permission.Capability
Click to show internal directories.
Click to hide internal directories.