Versions in this module Expand all Collapse all v0 v0.3.0 May 26, 2026 v0.2.1 May 26, 2026 Changes in this version + func BuiltinWorkflows() map[string]*Workflow + func CompareReports(before, after *WorkspaceDiffReport) string + func EvalCondition(condition string, vars map[string]string) bool + func FormatAsMarkdown(report *WorkspaceDiffReport) string + func FormatAsTerminal(report *WorkspaceDiffReport) string + func FormatForCommit(report *WorkspaceDiffReport) string + func FormatResult(result *WorkflowResult) string + func SubstituteVars(template string, vars map[string]string) string + func ValidateWorkflow(wf *Workflow) []string + type DiffReporter struct + ProjectDir string + func NewDiffReporter(projectDir string) *DiffReporter + func (dr *DiffReporter) GenerateFromGit() (*WorkspaceDiffReport, error) + func (dr *DiffReporter) GenerateReport(modifiedFiles map[string]string) *WorkspaceDiffReport + type Engine = WorkflowEngine + func NewEngine(executeFn func(ctx context.Context, agent, prompt string) (string, error)) *Engine + type FileDiffReport struct + Additions int + Deletions int + KeyChanges []string + Path string + Status string + Summary string + type FileState struct + Hash string + IsGenerated bool + IsTest bool + Language string + ModTime time.Time + Path string + Size int64 + type Result = WorkflowResult + type Step = WorkflowStep + type StepResult struct + Duration time.Duration + Error string + Output string + Status string + StepName string + type TrajectoryEvent struct + Content string + Duration time.Duration + Index int + Metadata map[string]string + Timestamp time.Time + Tokens int + ToolName string + Type string + type TrajectoryInspector struct + Events []TrajectoryEvent + SessionID string + StartTime time.Time + func NewTrajectoryInspector(sessionID string) *TrajectoryInspector + func (ti *TrajectoryInspector) ExportJSON() (string, error) + func (ti *TrajectoryInspector) FindPatterns() []string + func (ti *TrajectoryInspector) GetByType(eventType string) []TrajectoryEvent + func (ti *TrajectoryInspector) GetToolUsage() map[string]int + func (ti *TrajectoryInspector) Record(eventType, content string, toolName string, duration time.Duration, tokens int) + func (ti *TrajectoryInspector) RenderStats() string + func (ti *TrajectoryInspector) RenderTimeline() string + func (ti *TrajectoryInspector) Replay(speed float64) <-chan TrajectoryEvent + func (ti *TrajectoryInspector) Summarize() string + type Workflow struct + CreatedAt time.Time + Description string + MaxDuration time.Duration + Name string + OnFailure string + Steps []WorkflowStep + Variables map[string]string + type WorkflowEngine struct + ExecuteFn func(ctx context.Context, action, input string) (string, error) + Workflows map[string]*Workflow + func NewWorkflowEngine(executeFn func(context.Context, string, string) (string, error)) *WorkflowEngine + func (we *WorkflowEngine) Execute(ctx context.Context, workflow *Workflow) (*WorkflowResult, error) + func (we *WorkflowEngine) LoadWorkflow(path string) (*Workflow, error) + type WorkflowResult struct + Duration time.Duration + Status string + Steps []StepResult + Variables map[string]string + type WorkflowStep struct + Action string + Condition string + DependsOn []string + Input string + MaxRetries int + Name string + Output string + Timeout time.Duration + type WorkspaceDiffReport struct + Files []FileDiffReport + FilesAdded int + FilesDeleted int + FilesModified int + GeneratedAt time.Time + SessionDuration time.Duration + TotalAdditions int + TotalDeletions int + type WorkspaceState struct + LastScan time.Time + ModifiedFiles map[string]time.Time + OpenFiles map[string]*FileState + ProjectDir string + StagedFiles []string + func NewWorkspaceState(projectDir string) *WorkspaceState + func (ws *WorkspaceState) BuildContextForAgent() string + func (ws *WorkspaceState) DetectExternalChanges() []string + func (ws *WorkspaceState) GetModified() []string + func (ws *WorkspaceState) GetOpened() []string + func (ws *WorkspaceState) HasChanged(path string) bool + func (ws *WorkspaceState) MarkModified(path string) + func (ws *WorkspaceState) MarkOpened(path string) + func (ws *WorkspaceState) MarkStaged(path string) + func (ws *WorkspaceState) Reset() + func (ws *WorkspaceState) Scan() error + func (ws *WorkspaceState) Summary() string