Expand description
Permission decision wire-data - ToolPermissionContext,
PermissionDecision, PermissionUpdate,
PermissionUpdateDestination, PermissionBehavior,
PermissionRuleValue. The matching CanUseToolCallback trait
stays SDK-side because it owns function-pointer dispatch.
Re-exportsΒ§
use serde::Deserialize;πuse serde::Deserialize;πuse serde::Serialize;πuse serde::Serialize;πuse serde_json::Value;πuse crate::options::PermissionMode;π
StructsΒ§
- Permission
Decision - The decision a callback returns.
- Permission
Rule Value - One tool-rule entry inside a rule-based
PermissionUpdate. Wraps the CLIβsPermissionRuleValue. Wire uses camelCase (toolName,ruleContent) per the CLIβsto_dict. - Tool
Permission Context
EnumsΒ§
- Decision
Kind π - Permission
Behavior - Policy a rule-based
PermissionUpdateapplies. Wire shape:PermissionBehaviorliteral. - Permission
Update - One permission-state mutation attached to an allow decision. Mirrors
the CLIβs
PermissionUpdate. Dispatched ontype. - Permission
Update Destination - Where a
PermissionUpdateshould be persisted. Wire shape:PermissionUpdateDestinationliteral.