Behaviour for script execution targets (PRD §6.4).
Adapters: GenAI.Approval.Executor.Local (native handlers, in-process);
an MCP adapter over noizu_mcp clients arrives with milestone M4.
Summary
Callbacks
Optional metadata for UIs: arg schema for edit forms, risk annotations.
Types
Callbacks
@callback close(state :: term()) :: :ok
@callback describe(command :: String.t(), state :: term()) :: {:ok, %{schema: map() | nil, annotations: map()}} | {:error, term()}
Optional metadata for UIs: arg schema for edit forms, risk annotations.
@callback prepare(endpoint_decl(), config :: term()) :: {:ok, state :: term()} | {:error, term()}