Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTitle ¶
ExtractTitle pulls the first heading or non-empty line from plan content as a display title. Used by the TUI to label review surfaces.
Types ¶
type AllowedPrompt ¶ added in v0.1.3
AllowedPrompt is a semantic description of an action the user pre-approved during plan exit (e.g. {Tool: "Bash", Prompt: "run tests"}). Unlike a command-prefix whitelist, prompts are surfaced to the user during ask dialogs as reference labels — they do NOT auto-allow tool calls.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) Cancel ¶
Cancel is invoked from /plan cancel: ends plan mode without expecting any plan file to exist. Sets cancelPending so the next user prompt picks up a one-shot "you have exited plan mode" reminder — exit_plan_mode carries an equivalent signal in its tool_result, but /plan cancel has no tool_result to ride on, so the reminder pipeline closes that gap.
func (*Manager) CurrentPlan ¶
func (*Manager) CurrentPlanPath ¶
func (*Manager) Enter ¶
Enter transitions from PhaseOff to PhasePlanning, generating a fresh plan file slug and writing the plan-mode overlay prompt into the session.
func (*Manager) Exit ¶ added in v0.1.3
Exit unconditionally transitions out of plan mode and returns the plan content. User approval is enforced upstream by approval.Engine.Decide (ask-style: the tool declares it needs approval and the engine handles the prompt). When this method is reached the user has already approved or the call is from /plan cancel.