Documentation
¶
Index ¶
Constants ¶
View Source
const OptionConfirm = "confirm"
OptionConfirm is the sentinel value in Options indicating a prompt supports confirmation.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Type ActionType
Value string // for ActionSelect: "1", "2", "3", etc.
}
Action is a platform-agnostic control action parsed from user input. Backend parses platform-specific input (text "/yes", button callback, etc.) into this unified representation.
type ActionType ¶
type ActionType int
ActionType identifies the kind of user control action.
const ( ActionNone ActionType = iota ActionConfirm // yes/allow/ok/enter ActionDeny // no/deny/cancel ActionSelect // /select N — numbered selection ActionPassthrough // forward raw input to agent terminal )
Click to show internal directories.
Click to hide internal directories.