/** * CLI Commands Index * Central registry for all CLI commands * * Command modules are lazy-loaded on demand (mirrors mcp-client.ts's * CATEGORY_LOADERS pattern) so a single-command invocation — or `--version`, * which needs no command at all — only pays for that command's transitive * imports (e.g. the Claude Agent SDK pulled in by org.ts), not all 32. */ import type { Command } from '../types.js'; /** * Static grouping for help display. Mirrors the previous `commandsByCategory` * shape but by name only, so category membership is knowable without * importing anything. Real Command objects (with descriptions) are attached * on demand by `getCommandsByCategory()`. */ declare const CATEGORY_NAMES: { readonly primary: readonly ['init', 'start', 'status', 'ui', 'agent', 'monoswarm', 'org', 'memory', 'doc', 'task', 'session', 'mcp', 'hooks']; readonly advanced: readonly ['security', 'performance', 'guidance', 'autopilot', 'design']; readonly utility: readonly ['config', 'doctor', 'completions', 'report-crash', 'crash-reporting', 'events']; readonly analysis: readonly ['analyze', 'route', 'monograph', 'tokens', 'search']; readonly management: readonly ['providers', 'update', 'cleanup', 'platforms', 'mastermind', 'browse', 'download-embeddings']; }; /** * Backward-compatible alias for the resolved-command cache. Never eagerly * populated — same Map as `loadedCommands`, exposed under its old name. */ export declare const commandRegistry: Map; export declare function getCommand(name: string): Command | undefined; export declare function getCommandAsync(name: string): Promise; export declare function hasCommand(name: string): boolean; export declare function getCommandNames(): string[]; /** * Load every command. Used only by help/listing/suggestion paths, which need * the full set — same tradeoff mcp-client.ts's `ensureAllLoaded()` makes. */ export declare function loadAllCommands(): Promise; export declare function getUniqueCommands(): Promise; /** * Real Command objects grouped by category, for help display. Loads * everything (help is a cold path — see `loadAllCommands`). */ export declare function getCommandsByCategory(): Promise>; /** * Setup commands in a CLI instance (async — loads everything first). */ export declare function setupAllCommands(cli: { command: (cmd: Command) => void; }): Promise; export {}; //# sourceMappingURL=index.d.ts.map