ShellApprovalResponse#

Build extensions, choose hooks, and manage request-scoped state. See the guide.

class zett_agent.extensions.shell_approval.ShellApprovalResponse(decision, remember=False)[source]#

External decision for one pending shell command.

Parameters:
  • decision (Literal['execute', 'abort']) – "execute" runs the command; "abort" refuses it.

  • remember (bool) – Whether the command should join this session’s allowlist.

classmethod from_payload(payload)[source]#

Validate one external response payload; unknown keys are ignored.

Parameters:

payload (Mapping[str, object])

Return type:

ShellApprovalResponse