Back to Components
Desktop (Electron)
useAIActionSecurityManager
React Utility
Action Security Manager
Lines
750
File
useAIActionSecurityManager.tsx
Last Modified
2026-10-08
Exports
useAIActionSecurityManager
Source Path
aartiq-browser/src/ai/useAIActionSecurityManager.tsx
Tags
ReactNode.jsSecurityAISyncmacOS
Code Analysis
React Hooks
useStateuseEffectuseCallbackuseRefuseMemo
API / Library Usage
electronAPIframer-motionlucide-icons
External Dependencies
reactframer-motionlucide-react
Internal Imports
./ClickPermissionModal@/lib/shell-command-tiers
Props / Types
PermissionContext
| Prop | Type | Required |
|---|---|---|
| actionType | string | Yes |
| action | string | Yes |
| target | string | No |
| what | string | No |
| reason | string | Yes |
| risk | ActionRiskLevel | Yes |
| requiresDeviceUnlock | boolean | No |
| affectedPaths | string[] | No |
| estimatedImpact | string | No |
| ticketId | string | No |
BatchCommandInfo
| Prop | Type | Required |
|---|---|---|
| index | number | Yes |
| command | string | Yes |
| description | string | Yes |
| irreversible | boolean | Yes |
| risk | ActionRiskLevel | Yes |
| reason | string | Yes |
PendingPermission
| Prop | Type | Required |
|---|---|---|
| resolve | (allowed: boolean) => void | Yes |
| context | PermissionContext | Yes |
| batchCommands | BatchCommandInfo[] | No |
PermissionRequestInput
| Prop | Type | Required |
|---|---|---|
| actionType | string | Yes |
| action | string | Yes |
| target | string | No |
| what | string | No |
| reason | string | Yes |
| risk | string | No |
DirectoryPermissionRequest
| Prop | Type | Required |
|---|---|---|
| requestId | string | Yes |
| blockedPath | string | Yes |
| blockedPaths | string[] | No |
| command | string | Yes |
ShellPermissionRequest
| Prop | Type | Required |
|---|---|---|
| requestId | string | Yes |
| command | string | Yes |
| reason | string | No |
| riskLevel | string | No |
Key Functions
getSecuritySettingsSafe()
Related Components
Browse all components in the Component Inventory
Auto-Generated Documentation
Component metadata is auto-generated by aartiq-browser/scripts/component-scanner.js