Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTaskID ¶
GenerateTaskID creates a random task ID with a type prefix. Prefixes: b=bash, a=agent, r=remote, t=team, d=dream, w=workflow, m=monitor
func IsTerminal ¶
IsTerminal returns true if the task will not transition further.
Types ¶
type Event ¶
type Event struct {
Timestamp time.Time `json:"timestamp"`
Type string `json:"type"` // "thought", "tool_call", "observation", "error"
Content string `json:"content"`
Metadata map[string]any `json:"metadata,omitempty"`
}
Event captures a discrete event in the task's history.
type Handle ¶
type Handle struct {
TaskID string
Cleanup func()
}
Handle is a reference to a running task.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds all known task implementations.
type StateBase ¶
type StateBase struct {
ID string
Type Type
Status Status
Description string
ToolUseID string
StartTime int64
EndTime int64
TotalPausedMs int64
OutputFile string
OutputOffset int64
Notified bool
Events []Event
}
StateBase is common to all task implementations.
func CreateStateBase ¶
CreateStateBase initializes common task state.
type Task ¶
Task is the interface for all task kinds. Mirrors Claude Code's Task pattern: each task type knows how to spawn and kill.
Click to show internal directories.
Click to hide internal directories.