/** * Transport-free command dispatcher (CUT A1). Resolves an invocation against the * registry and runs the handler. Adapters (CLI argv, MCP JSON-RPC) parse their * native input into a `CapsuleCommandInvocation`, call `dispatch`, and project the * structured `CapsuleCommandResult` back to their wire format. No stdout capture. * * @module */ import { type CapsuleCommandInvocation, type CapsuleCommandResult } from '@czap/core'; import { type CommandContext, type CommandRegistry } from './registry.js'; interface CommandDispatcherShape { readonly dispatch: (invocation: CapsuleCommandInvocation, context: CommandContext) => Promise; } declare function make(registry: CommandRegistry.Shape): CommandDispatcherShape; export declare const CommandDispatcher: { make: typeof make; }; export declare namespace CommandDispatcher { type Shape = CommandDispatcherShape; } export {}; //# sourceMappingURL=dispatcher.d.ts.map