/** * vclaw schema --json — the v3 introspection bundle. * * Returns the full CLI contract in one call: commands, flags, artifact * schemas, error codes, exit codes. Agents call this once to learn the * surface, then drive the CLI without further introspection. * * Stateless function — no fs writes, no env reads, no network. Pure * read of bundled JSON + reflection of the dispatch table. */ import { type MultiShotPreset } from './multi-shot-prompt.js'; import { type PromptQualityIssueExplanation } from './prompt-quality.js'; export interface CommandFlag { name: string; /** "value" if it takes an argument, "boolean" if it's a switch. */ kind: 'value' | 'boolean'; description?: string; } export interface CommandSpec { name: string; usage: string; description?: string; flags?: CommandFlag[]; /** Backwards-compat aliases that dispatch to this command. */ aliases?: string[]; } export interface SchemaDump { version: string; generatedAt: string; exitCodes: Record; errorCodes: ReadonlyArray; commands: CommandSpec[]; artifactSchemas: Record; multiShot: { presets: readonly MultiShotPreset[]; issueExplanations: readonly PromptQualityIssueExplanation[]; }; } /** * Hand-curated list of subcommands covering the FULL VIDEO_DISPATCH table in * src/cli/vclaw.ts (back-compat aliases — execution-plan/execute/preflight — * are listed via their canonical entries only). cli-schema.test.ts asserts the * exact count, cli-dispatch-table.test.ts asserts every advertised command + * alias resolves to a dispatch entry, and cli-schema-dispatch-sync.test.ts * asserts the REVERSE: every dispatch key is either listed here or an alias of * a listed command — so `vclaw schema --json` can never silently drift behind * the dispatch again (it drifted to 40 missing public commands once). */ export declare const COMMANDS: CommandSpec[]; export declare function buildSchemaDump(): SchemaDump; //# sourceMappingURL=cli-schema.d.ts.map