/** * Grid 3 Command Definitions and Detection System * * This module provides comprehensive metadata for all Grid 3 commands, * organized by plugin/category. It enables: * - Command detection and classification * - Parameter extraction * - Future extensibility for command execution * - Semantic action mapping * * Grid 3 has 33+ plugins with 200+ commands. This catalog captures * the most commonly used and important commands. */ /** * Command categories in Grid 3 */ export declare enum Grid3CommandCategory { NAVIGATION = "navigation", COMMUNICATION = "communication", TEXT_EDITING = "text_editing", COMPUTER_CONTROL = "computer_control", WEB_BROWSER = "web_browser", EMAIL = "email", PHONE = "phone", SMS = "sms", SYSTEM = "system", SETTINGS = "settings", SPEECH = "speech", AUTO_CONTENT = "auto_content", ENVIRONMENT_CONTROL = "environment_control", MOUSE = "mouse", WINDOW = "window", MEDIA = "media", PHOTOS = "photos", COMMAND_EXECUTION = "command_execution", CUSTOM = "custom" } /** * Parameter definition for commands */ export interface CommandParameter { key: string; type: 'string' | 'number' | 'boolean' | 'grid' | 'color' | 'font'; required: boolean; description?: string; } /** * Command metadata definition */ export interface Grid3CommandDefinition { id: string; category: Grid3CommandCategory; pluginId: string; displayName: string; description: string; parameters?: CommandParameter[]; platforms?: ('desktop' | 'ios' | 'medicare' | 'medicareBionics')[]; deprecated?: boolean; } /** * Registry of all Grid 3 commands * Key is command ID (e.g., 'Jump.To', 'Action.InsertText') */ export declare const GRID3_COMMANDS: Record; /** * Get command definition by ID */ export declare function getCommandDefinition(commandId: string): Grid3CommandDefinition | undefined; /** * Check if a command ID is known */ export declare function isKnownCommand(commandId: string): boolean; /** * Get all commands for a specific plugin */ export declare function getCommandsByPlugin(pluginId: string): Grid3CommandDefinition[]; /** * Get all commands in a category */ export declare function getCommandsByCategory(category: Grid3CommandCategory): Grid3CommandDefinition[]; /** * Get all command IDs */ export declare function getAllCommandIds(): string[]; /** * Get all plugin IDs that have commands */ export declare function getAllPluginIds(): string[]; /** * Extract parameters from a Grid 3 command object */ export interface ExtractedParameters { [key: string]: string | number | boolean; } export declare function extractCommandParameters(command: any): ExtractedParameters; /** * Detect and categorize a command from Grid 3 */ export declare function detectCommand(commandObj: any): { id: string; definition?: Grid3CommandDefinition; parameters: ExtractedParameters; category: Grid3CommandCategory | 'unknown'; pluginId: string | 'unknown'; };