/** * Command Executor * * Executes parsed Command objects against a CommandContext, * dispatching mutations to the workflow store. * * @module commands/executor */ import type { Command, CommandContext, CommandResult } from './types.js'; import type { WorkflowNode } from '../types/index.js'; /** * Convert an internal namespaced node ID to a DSL short ID. * "agentspec.llm_node.1" → "llm_node.1" * "llm_node.1" → "llm_node.1" (no namespace, unchanged) */ export declare function toShortId(internalId: string): string; /** * Convert a namespaced type ID to a short type ID. * "agentspec.llm_node" → "llm_node" * "llm_node" → "llm_node" (no namespace, unchanged) */ export declare function toShortTypeId(typeId: string): string; /** * Resolve a DSL short ID (e.g. "llm_node.1") to the actual workflow node. * Tries direct match first, then looks for a namespaced match. */ export declare function resolveNode(shortId: string, nodes: WorkflowNode[]): WorkflowNode | undefined; /** All command help entries */ export declare const COMMAND_HELP: Array<{ name: string; syntax: string; description: string; }>; /** * Execute a parsed command against a workflow context. */ export declare function executeCommand(command: Command, context: CommandContext): CommandResult;