Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInterrupted = fmt.Errorf("interrupted")
ErrInterrupted is returned when the engine is stopped by a user signal (Ctrl+C).
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Prompt string // resolved prompt text
Max int // max iterations (0 = unlimited)
Command []string // command + args to run (prompt piped to stdin)
}
Options configures a loop run.
type Result ¶ added in v0.2.0
type Result struct {
Reason StopReason
ApprovalContent string // populated only for ReasonApproval
}
Result carries the structured stop reason from a completed engine run.
type StopReason ¶ added in v0.2.0
type StopReason int
StopReason indicates why the engine stopped.
const ( ReasonComplete StopReason = iota // .brr-complete signal file ReasonApproval // .brr-needs-approval signal file ReasonMaxIterations // max iteration count reached ReasonFailStreak // too many consecutive failures ReasonInterrupted // user signal (Ctrl+C / SIGTERM) )
Click to show internal directories.
Click to hide internal directories.