Documentation
¶
Index ¶
- func BackoffDuration(retry int) time.Duration
- func CaptureGitDelta(workDir, prevCommit string) (diffStat, changedFiles string, err error)
- func CaptureHeadCommit(workDir string) string
- func EmitPhaseEnd(w EventWriter, runID, phase string, iteration int, stopReason string, ...) error
- func EmitPhaseStart(w EventWriter, runID, phase string, iteration int, kind string) error
- func EmitRetry(w EventWriter, runID string, attempt, maxRetries int)
- func InsertInitialPrompt(pre *[]Phase, prompt string)
- func LoopDirectiveSeverity(d string) int
- func RenderPrompt(tmpl string, ctx TemplateContext) (string, error)
- func ResolvePhaseFiles(phases []Phase, configDir string) error
- func ValidatePhaseHasPrompt(p Phase) error
- func ValidatePhaseMutualExclusions(p Phase) error
- func ValidatePhaseNames(phases ...[]Phase) error
- func ValidatePhaseRoster(p Phase) error
- type EventWriter
- type LoopMarker
- type Phase
- type PhaseOnIncomplete
- type PhaseRequirements
- type TemplateContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackoffDuration ¶
func CaptureGitDelta ¶
func CaptureHeadCommit ¶
func EmitPhaseEnd ¶
func EmitPhaseEnd(w EventWriter, runID, phase string, iteration int, stopReason string, marker *LoopMarker) error
func EmitPhaseStart ¶
func EmitPhaseStart(w EventWriter, runID, phase string, iteration int, kind string) error
func EmitRetry ¶
func EmitRetry(w EventWriter, runID string, attempt, maxRetries int)
func InsertInitialPrompt ¶
func LoopDirectiveSeverity ¶
func RenderPrompt ¶
func RenderPrompt(tmpl string, ctx TemplateContext) (string, error)
func ResolvePhaseFiles ¶
func ValidatePhaseHasPrompt ¶
func ValidatePhaseNames ¶
func ValidatePhaseRoster ¶ added in v0.25.0
ValidatePhaseRoster checks the phase-local roster selector against fields that describe a different identity or dispatch a nested workflow.
Types ¶
type EventWriter ¶
type LoopMarker ¶
type Phase ¶
type Phase struct {
Name string `json:"name"`
Prompt string `json:"prompt"`
PromptFile string `json:"prompt_file,omitempty"`
LoopFile string `json:"loop_file,omitempty"`
TeamFile string `json:"team_file,omitempty"`
ResumeFromPrevious bool `json:"resume_from_previous,omitempty"`
Conditional bool `json:"conditional,omitempty"`
Agent string `json:"agent,omitempty"`
Model string `json:"model,omitempty"`
RosterEntry string `json:"roster_entry,omitempty"`
Requires PhaseRequirements `json:"requires,omitempty"`
OnIncomplete PhaseOnIncomplete `json:"on_incomplete,omitempty"`
}
type PhaseOnIncomplete ¶ added in v0.15.0
type PhaseRequirements ¶ added in v0.15.0
Click to show internal directories.
Click to hide internal directories.