Back to Components
Desktop (Electron)
AICommandParser
Utility
Command Parser
Lines
798
File
AICommandParser.ts
Last Modified
2026-07-22
Exports
ParsedCommandgetCmdParamgetCmdParamIntcleanCmdValueCommandParseResultCOMMAND_REGISTRYSUPPORTED_COMMANDSCommandTypeMETA_COMMANDSparseAICommandsvalidateCommandprepareCommandsForExecutiongetCommandDescriptionformatCommandsForExportparseUnifiedCommandsstripAllCommands
Source Path
aartiq-browser/src/AICommandParser.ts
Tags
Node.jsSecurityAIAutomationPDFOCRPluginmacOS
Code Analysis
External Dependencies
No external dependencies
Internal Imports
../components/ai/RobustParsers
Props / Types
ParsedCommand
| Prop | Type | Required |
|---|---|---|
| type | string | Yes |
| value | string | Yes |
| originalMatch | string | Yes |
| index | number | Yes |
| category | string | No |
| reason | string | No |
| risk | 'low' | 'medium' | 'high' | No |
| params | Record<string, string> | No |
CommandParseResult
| Prop | Type | Required |
|---|---|---|
| commands | ParsedCommand[] | Yes |
| textWithoutCommands | string | Yes |
| hasCommands | boolean | Yes |
| parseIssues | Array<{ | Yes |
| type | string | Yes |
| value | string | Yes |
| error | string | Yes |
| originalMatch | string | Yes |
| index | number | Yes |
Key Functions
appendCommand()takeCommand()tryParse()cmd()addUniqueCommand()
Related Components
Browse all components in the Component Inventory
Auto-Generated Documentation
Component metadata is auto-generated by aartiq-browser/scripts/component-scanner.js