Expand description
The shapes one permission interaction is made of - PermissionRequest
(what the agent surfaces when the CLI asks for tool approval), the
options it offers, and PermissionOutcome (what a person picks).
Not a viewโs shapes, and the name says so: the request and its options
are what the dispatcher reads to build the decision on submit, so the
dock a view draws is a rendering of one set rather than a copy of it.
Distinct from the wire-side decision
types in crate::permissions, which talk to the SDKโs
can_use_tool callback.
Re-exportsยง
use serde::Deserialize;๐use serde::Deserialize;๐use serde::Serialize;๐use serde::Serialize;๐use crate::permissions::PermissionUpdate;๐use crate::session_update::ToolCall;๐
Structsยง
Enumsยง
- Permission
Action - Typed wire-side response routing for a permission option. Each
PermissionOptionconstructed byforge-agentcarries anaction; the dispatcher reads it to build the rightPermissionDecisionon submit. - Permission
Option Kind - Display style for a permission option - drives icon + color in the prompt widget.
- Permission
Outcome