Versions in this module Expand all Collapse all v1 v1.6.0 Feb 13, 2026 v1.5.5 Feb 11, 2026 v1.5.4 Feb 11, 2026 v1.5.3 Feb 10, 2026 v1.5.2 Feb 10, 2026 v1.5.1 Feb 10, 2026 v1.5.0 Feb 10, 2026 v1.4.1 Feb 10, 2026 v1.4.0 Feb 9, 2026 v1.3.2 Feb 9, 2026 v1.3.1 Feb 7, 2026 v1.3.0 Feb 6, 2026 v1.2.0 Feb 4, 2026 Changes in this version + func GenerateID() string + type AgentTask struct + AgentName string + Description string + EndTime time.Time + Error string + ID string + StartTime time.Time + Status TaskStatus + TokenUsage int + TurnCount int + func NewAgentTask(id, agentName, description string, ctx context.Context, ...) *AgentTask + func (t *AgentTask) AppendOutput(data []byte) + func (t *AgentTask) AppendProgress(msg string) + func (t *AgentTask) Complete(err error) + func (t *AgentTask) GetCancel() context.CancelFunc + func (t *AgentTask) GetContext() context.Context + func (t *AgentTask) GetDescription() string + func (t *AgentTask) GetID() string + func (t *AgentTask) GetOutput() string + func (t *AgentTask) GetStatus() TaskInfo + func (t *AgentTask) GetType() TaskType + func (t *AgentTask) IsRunning() bool + func (t *AgentTask) Kill() error + func (t *AgentTask) MarkKilled() + func (t *AgentTask) Stop() error + func (t *AgentTask) Subscribe() <-chan ProgressUpdate + func (t *AgentTask) UpdateProgress(turnCount, tokenUsage int) + func (t *AgentTask) WaitForCompletion(timeout time.Duration) bool + type BackgroundTask interface + AppendOutput func(data []byte) + GetDescription func() string + GetID func() string + GetOutput func() string + GetStatus func() TaskInfo + GetType func() TaskType + IsRunning func() bool + Kill func() error + Stop func() error + WaitForCompletion func(timeout time.Duration) bool + type BashTask struct + Cancel context.CancelFunc + Cmd *exec.Cmd + Command string + Ctx context.Context + Description string + EndTime time.Time + Error string + ExitCode int + ID string + PID int + StartTime time.Time + Status TaskStatus + func NewBashTask(id, command, description string, cmd *exec.Cmd, ctx context.Context, ...) *BashTask + func (t *BashTask) AppendOutput(data []byte) + func (t *BashTask) Complete(exitCode int, err error) + func (t *BashTask) GetDescription() string + func (t *BashTask) GetID() string + func (t *BashTask) GetOutput() string + func (t *BashTask) GetStatus() TaskInfo + func (t *BashTask) GetType() TaskType + func (t *BashTask) IsRunning() bool + func (t *BashTask) Kill() error + func (t *BashTask) MarkKilled() + func (t *BashTask) Stop() error + func (t *BashTask) WaitForCompletion(timeout time.Duration) bool type Manager + func (m *Manager) CreateBashTask(cmd *exec.Cmd, command, description string, ctx context.Context, ...) *BashTask + func (m *Manager) GetBashTask(id string) (*BashTask, bool) + func (m *Manager) RegisterTask(task BackgroundTask) + type ProgressUpdate struct + Done bool + Message string type TaskInfo + AgentName string + TokenUsage int + TurnCount int + Type TaskType + type TaskType string + const TaskTypeAgent + const TaskTypeBash v1.1.1 Jan 29, 2026 v1.1.0 Jan 29, 2026 Changes in this version + var DefaultManager = NewManager() + type Manager struct + func NewManager() *Manager + func (m *Manager) Cleanup(maxAge time.Duration) + func (m *Manager) Create(cmd *exec.Cmd, command, description string, ctx context.Context, ...) *Task + func (m *Manager) Get(id string) (*Task, bool) + func (m *Manager) Kill(id string) error + func (m *Manager) List() []*Task + func (m *Manager) ListRunning() []*Task + func (m *Manager) Remove(id string) + type Task struct + Cancel context.CancelFunc + Cmd *exec.Cmd + Command string + Ctx context.Context + Description string + EndTime time.Time + Error string + ExitCode int + ID string + PID int + StartTime time.Time + Status TaskStatus + func NewTask(id, command, description string, cmd *exec.Cmd, ctx context.Context, ...) *Task + func (t *Task) AppendOutput(data []byte) + func (t *Task) Complete(exitCode int, err error) + func (t *Task) GetOutput() string + func (t *Task) GetStatus() TaskInfo + func (t *Task) IsRunning() bool + func (t *Task) Kill() + func (t *Task) WaitForCompletion(timeout time.Duration) bool + type TaskInfo struct + Command string + Description string + EndTime time.Time + Error string + ExitCode int + ID string + Output string + PID int + StartTime time.Time + Status TaskStatus + type TaskStatus string + const StatusCompleted + const StatusFailed + const StatusKilled + const StatusRunning