Aartiq
Aartiq
Download
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

PropTypeRequired
typestringYes
valuestringYes
originalMatchstringYes
indexnumberYes
categorystringNo
reasonstringNo
risk'low' | 'medium' | 'high'No
paramsRecord<string, string>No

CommandParseResult

PropTypeRequired
commandsParsedCommand[]Yes
textWithoutCommandsstringYes
hasCommandsbooleanYes
parseIssuesArray<{Yes
typestringYes
valuestringYes
errorstringYes
originalMatchstringYes
indexnumberYes
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