Documentation
¶
Index ¶
- func AttachSession(sessionName string) error
- func CreateAgentSession(sessionName, worktreeDir, command string) error
- func InjectTaskIntoSkill(skill string, taskContent string) string
- func KillSession(sessionName string) error
- func LaunchGSDWorkflow(cfg *config.Config, workflow GSDWorkflow) error
- func ListAgentSessions() ([]string, error)
- func ProcessQueue(cfg *config.Config, workCfg *config.WorktreeConfig, q *queue.Queue) error
- func ProcessQueueContinuous(cfg *config.Config, workCfg *config.WorktreeConfig, q *queue.Queue) error
- func ReadTaskFile(dir string) (string, error)
- func SessionExists(sessionName string) bool
- type Executor
- type GSDWorkflow
- type Scheduler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachSession ¶
AttachSession attaches to a tmux session
func CreateAgentSession ¶
CreateAgentSession creates a tmux session for an agent task
func InjectTaskIntoSkill ¶
InjectTaskIntoSkill replaces {task} placeholder with task content
func LaunchGSDWorkflow ¶
func LaunchGSDWorkflow(cfg *config.Config, workflow GSDWorkflow) error
LaunchGSDWorkflow starts a GSD workflow with task content
func ListAgentSessions ¶
ListAgentSessions returns all running tmux sessions
func ProcessQueue ¶
ProcessQueue runs the next pending task from the queue
func ProcessQueueContinuous ¶
func ProcessQueueContinuous(cfg *config.Config, workCfg *config.WorktreeConfig, q *queue.Queue) error
ProcessQueueContinuous processes all pending tasks in sequence
func ReadTaskFile ¶
ReadTaskFile reads .task.md from the specified directory
func SessionExists ¶
SessionExists checks if a tmux session exists
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor manages the execution of a scheduled agent task
func NewExecutor ¶
func NewExecutor(cfg *config.Config, workCfg *config.WorktreeConfig, task *config.AgentTask, agentName string) *Executor
NewExecutor creates a new agent executor
type GSDWorkflow ¶
GSDWorkflow represents a GSD workflow configuration
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler manages scheduled agent tasks
func NewScheduler ¶
NewScheduler creates a new agent scheduler
func (*Scheduler) GetNextRuns ¶
GetNextRuns returns the next scheduled run times for all tasks