Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PreflightConfig ¶ added in v0.1.7
type PreflightConfig struct {
TasksDir string
Registry *tasks.TypeRegistry
IsInteractive func() bool
Force bool
SkipValidation bool
Stderr io.Writer
FormInput io.Reader
FormOutput io.Writer
ClipboardWrite func(string) error
Logger *slog.Logger
ValidationFn func(context.Context, string, *tasks.TypeRegistry) (tasks.Report, error)
ValidationForm func(tasks.Report, *tasks.TypeRegistry, io.Writer) (PreflightDecision, error)
}
type PreflightDecision ¶ added in v0.1.7
type PreflightDecision string
const ( PreflightOK PreflightDecision = "ok" PreflightContinued PreflightDecision = "continued" PreflightAborted PreflightDecision = "aborted" PreflightSkipped PreflightDecision = "skipped" PreflightForced PreflightDecision = "forced" )
func PreflightCheck ¶ added in v0.1.7
func PreflightCheck( ctx context.Context, tasksDir string, registry *tasks.TypeRegistry, isInteractive func() bool, force bool, ) (PreflightDecision, error)
func PreflightCheckConfig ¶ added in v0.1.7
func PreflightCheckConfig(ctx context.Context, cfg PreflightConfig) (PreflightDecision, error)
type SessionMetaState ¶ added in v0.1.3
type SessionMetaState struct {
CurrentModeID string
AvailableCommands []model.SessionAvailableCommand
Status model.SessionStatus
}
type SessionPlanState ¶ added in v0.1.3
type SessionPlanState struct {
Entries []model.SessionPlanEntry
PendingCount int
RunningCount int
DoneCount int
}
type SessionViewSnapshot ¶ added in v0.1.3
type SessionViewSnapshot struct {
Revision int
Entries []TranscriptEntry
Plan SessionPlanState
Session SessionMetaState
}
type TranscriptEntry ¶ added in v0.1.3
type TranscriptEntry struct {
ID string
Kind transcriptEntryKind
Title string
Preview string
ToolCallID string
ToolCallState model.ToolCallState
Blocks []model.ContentBlock
}
Click to show internal directories.
Click to hide internal directories.