Documentation
¶
Overview ¶
Package start is the f10 start and f10 forward commands: it parses their arguments and hands the work to the start service.
Index ¶
- Constants
- func Command() *cli.Command
- func Forward(ctx context.Context, w io.Writer, in ForwardInput) error
- func ForwardCommand() *cli.Command
- func RefuseLandedPlan(mode string, pick *hostops.Pickup) error
- func RefuseNote(mode string, pick *hostops.Pickup, note string) error
- func RefusePickupFlags(flow, after, base string) error
- type ForwardInput
Constants ¶
const (
ModeDefault = ""
)
--plan stops after the plan; --discuss after the fetch, for a task the user talks through in the agent's own pane.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command is the start verb, which replaces three hand-offs across three tools, each a place to lose the suffix, the base or the "keep it local" words. Outside Herdr it refuses before touching anything rather than degrade to a plain claude.
func ForwardCommand ¶
ForwardCommand is the forward verb, which hands a command to the agent already working on a task: a `/f10:ship` typed outside the task's worktree would run on the wrong branch, without the plan, so the skills call this first.
func RefuseLandedPlan ¶
RefuseLandedPlan stops --plan on a merged or closed PR: its diff is no starting point once it landed, and going on from it is a task of its own.
func RefuseNote ¶
RefuseNote stops a note no prompt can carry: only the prompts that stop and wait are plain text, and a driven chain's arguments belong to its skills.
func RefusePickupFlags ¶
RefusePickupFlags stops the flags a picked-up PR has no use for: its branch and base are the PR's, and nobody ships someone else's PR unread.
Types ¶
type ForwardInput ¶
type ForwardInput struct {
Main string // the main checkout: worktrees are its siblings
Here string // the checkout this command answers for: a task here is not forwarded
Task ref.Ref
Suffix string
Text string // what the agent is told, before the marker
StateDir string // where run state lives, for the idle check
Ttl time.Duration // how long a run counts as live
Now time.Time
// contains filtered or unexported fields
}
ForwardInput is everything forward needs once the target is settled, so the flow can be tested without a checkout.