Documentation
¶
Overview ¶
Package approvalgate implements human-in-the-loop approval gates for PM task execution. When a task requires approval (RequiresApproval:true or high-priority with RequireApproval config), the gate pauses execution and prompts the user interactively before the task runs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InteractiveGate ¶
type InteractiveGate struct {
// contains filtered or unexported fields
}
InteractiveGate prompts the user interactively to approve, skip, or edit a task.
func (*InteractiveGate) Approve ¶
func (g *InteractiveGate) Approve(task *pm.Task) Result
Approve prompts the user for y/n/skip/edit and returns the result. Pre-approved tasks (task.Approved == true) bypass the prompt immediately.
Click to show internal directories.
Click to hide internal directories.