Documentation
¶
Index ¶
- func AllowedCommandPrefixes(commands []AllowedCommand) []string
- func AllowedCommandsToEntries(commands []AllowedCommand) []storage.AllowedCommandEntry
- func BuildApprovedPlanPrompt(title, content string, commands []AllowedCommand) string
- func DescribeAllowedCommands(commands []AllowedCommand) []string
- func ExtractTitle(content string) string
- type AllowedCommand
- type Manager
- func (c *Manager) Approve() (string, string, []AllowedCommand, error)
- func (c *Manager) Cancel() error
- func (c *Manager) CurrentPlan() (string, error)
- func (c *Manager) CurrentPlanPath() string
- func (c *Manager) Enter(task string) (string, error)
- func (c *Manager) Restore(state State) error
- func (c *Manager) Revise(feedback string) (string, error)
- func (c *Manager) Snapshot() State
- func (c *Manager) Submit(title, content string, commands []AllowedCommand) error
- type Phase
- type RawAllowedCommand
- type State
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedCommandPrefixes ¶
func AllowedCommandPrefixes(commands []AllowedCommand) []string
func AllowedCommandsToEntries ¶
func AllowedCommandsToEntries(commands []AllowedCommand) []storage.AllowedCommandEntry
func BuildApprovedPlanPrompt ¶
func BuildApprovedPlanPrompt(title, content string, commands []AllowedCommand) string
func DescribeAllowedCommands ¶
func DescribeAllowedCommands(commands []AllowedCommand) []string
func ExtractTitle ¶
Types ¶
type AllowedCommand ¶
func ParseAllowedCommands ¶
func ParseAllowedCommands(raw []RawAllowedCommand) []AllowedCommand
func ParseAllowedCommandsFromEntries ¶
func ParseAllowedCommandsFromEntries(entries []storage.AllowedCommandEntry) []AllowedCommand
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CurrentPlan ¶
func (*Manager) CurrentPlanPath ¶
type RawAllowedCommand ¶
Click to show internal directories.
Click to hide internal directories.