Structs§
- Approval
Result - Result of an approval request. Equivalent to the Python/TS protocol shape
{ status, approved_by, reason }. - CliApproval
Handler - Implements the apcore ApprovalHandler protocol so SDK consumers can pass
a CLI-backed handler to
executor.set_approval_handler(handler).
Enums§
- Approval
Error - Errors returned by the approval gate. All variants map to exit code 46 (EXIT_APPROVAL_DENIED).
- Approval
Status - Outcome of an
CliApprovalHandler::request_approval/check_approvalinvocation. Mirrors the apcore ApprovalHandler protocol shape that Python and TypeScript SDKs return as adict { status, approved_by | reason }duck-typed againstApprovalResult.
Constants§
- DEFAULT_
APPROVAL_ TIMEOUT_ SECS - Default approval prompt timeout in seconds.
Functions§
- check_
approval - Gate module execution behind an interactive approval prompt.
- check_
approval_ with_ timeout - Configurable-timeout variant of
check_approval. Resolve the timeout from the--approval-timeoutCLI flag orcli.approval_timeoutconfig before calling. - check_
approval_ with_ tty - Internal implementation accepting
is_ttyfor testability. - check_
approval_ with_ tty_ timeout - Testable gate that honors a configurable timeout.
Type Aliases§
- Approval
Denied Error - Alias for
ApprovalError— the denial variant. UseApprovalError::Deniedto match. - Approval
Timeout Error - Alias for
ApprovalError— the timeout variant. UseApprovalError::Timeoutto match.