export interface InitOptions { name?: string; multiCommandSet?: boolean; output?: string; withConfig?: boolean; } export type InitExitCode = 0 | 1 | 2 | 4; export type InitExitResult = { exitCode: 0; stdout: { contractFile: string; configFile?: string; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 4; stderr: { code: string; message: string; details?: Record; }; }; export interface ValidateOptions { file?: string; strict?: boolean; resolveRefs?: boolean; } export type ValidateExitCode = 0 | 1 | 2 | 9; export type ValidateExitResult = { exitCode: 0; stdout: { valid: boolean; errorCount: number; warningCount: number; errors: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; warnings: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 9; stdout: { valid: boolean; errorCount: number; warningCount: number; errors: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; warnings: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; }; stderr?: { code: string; message: string; details?: Record; }; }; export interface ResolveOptions { file?: string; format?: "yaml" | "json"; } export type ResolveExitCode = 0 | 1 | 2; export type ResolveExitResult = { exitCode: 0; stdout: Record; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; }; export interface GenerateArgs { generators?: string[]; } export interface GenerateOptions { file?: string; output?: string; dryRun?: boolean; clean?: boolean; } export type GenerateExitCode = 0 | 1 | 2 | 3 | 5; export type GenerateExitResult = { exitCode: 0; stdout: { generators: { name: string; status: "success" | "skipped" | "failed"; files: string[]; error?: string; }[]; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 3; stdout: { valid: boolean; errorCount: number; warningCount: number; errors: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; warnings: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; }; } | { exitCode: 5; stdout: { generators: { name: string; status: "success" | "skipped" | "failed"; files: string[]; error?: string; }[]; }; stderr: { code: string; message: string; details?: Record; }; }; export interface DocsOptions { file?: string; output?: string; dryRun?: boolean; } export type DocsExitCode = 0 | 1 | 2 | 3; export type DocsExitResult = { exitCode: 0; stdout: { generators: { name: string; status: "success" | "skipped" | "failed"; files: string[]; error?: string; }[]; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 3; stdout: { valid: boolean; errorCount: number; warningCount: number; errors: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; warnings: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; }; }; export interface TestOptions { profile?: string; case?: string; casesDir?: string; timeout?: number; bail?: boolean; } export type TestExitCode = 0 | 1 | 2 | 3 | 6; export type TestExitResult = { exitCode: 0; stdout: { total: number; passed: number; failed: number; skipped: number; durationMs?: number; cases: { id: string; status: "passed" | "failed" | "skipped"; durationMs?: number; violations?: { type: "exit_code_mismatch" | "stdout_schema_mismatch" | "stderr_schema_mismatch" | "stdout_format_mismatch" | "stderr_format_mismatch" | "file_missing" | "file_schema_mismatch"; message: string; expected?: unknown; actual?: unknown; }[]; }[]; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 3; stdout: { valid: boolean; errorCount: number; warningCount: number; errors: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; warnings: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; }; } | { exitCode: 6; stdout: { total: number; passed: number; failed: number; skipped: number; durationMs?: number; cases: { id: string; status: "passed" | "failed" | "skipped"; durationMs?: number; violations?: { type: "exit_code_mismatch" | "stdout_schema_mismatch" | "stderr_schema_mismatch" | "stdout_format_mismatch" | "stderr_format_mismatch" | "file_missing" | "file_schema_mismatch"; message: string; expected?: unknown; actual?: unknown; }[]; }[]; }; }; export interface DiffArgs { old?: string; new?: string; } export interface DiffOptions { base?: string; head?: string; contractPath?: string; breakingOnly?: boolean; text?: boolean; } export type DiffExitCode = 0 | 1 | 2 | 7; export type DiffExitResult = { exitCode: 0; stdout: { hasBreakingChanges: boolean; breakingCount?: number; nonBreakingCount?: number; changes: { type: "added" | "removed" | "changed"; path: string; breaking: boolean; description: string; }[]; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 7; stdout: { hasBreakingChanges: boolean; breakingCount?: number; nonBreakingCount?: number; changes: { type: "added" | "removed" | "changed"; path: string; breaking: boolean; description: string; }[]; }; }; export interface ProposeAgentPolicyArgs { contract?: string; } export interface ProposeAgentPolicyOptions { file?: string; adapter?: "mock" | "claude" | "openai" | "gemini"; model?: string; showPrompt?: boolean; failOn?: "warning" | "error" | "critical"; output?: string; reportFormat?: "json" | "text" | "yaml"; logFile?: string; } export type ProposeAgentPolicyExitCode = 0 | 1 | 2 | 3 | 10 | 11 | 12; export type ProposeAgentPolicyExitResult = { exitCode: 0; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 3; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 10; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 11; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 12; stderr: { code: string; message: string; details?: Record; }; }; export interface AuditArgs { contract?: string; } export interface AuditOptions { file?: string; checks?: "agent-policy" | "responsibility" | "exit-code" | "output-schema" | "breaking-risk"; adapter?: "mock" | "claude" | "openai" | "gemini"; model?: string; showPrompt?: boolean; failOn?: "warning" | "error" | "critical"; output?: string; reportFormat?: "json" | "text" | "yaml"; logFile?: string; } export type AuditExitCode = 0 | 1 | 2 | 3 | 10 | 11 | 12; export type AuditExitResult = { exitCode: 0; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 3; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 10; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 11; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 12; stderr: { code: string; message: string; details?: Record; }; }; export interface ExtractArgs { commands?: string[]; } export interface ExtractOptions { file?: string; all?: boolean; includeMeta?: boolean; } export type ExtractExitCode = 0 | 1 | 2 | 3 | 8; export type ExtractExitResult = { exitCode: 0; stdout: { _meta?: { source: string; type: string; extractedAt: string; specVersion?: string; commands: string[]; }; cli_contracts: string; info: Record; command_sets: Record; components?: Record; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 3; stdout: { valid: boolean; errorCount: number; warningCount: number; errors: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; warnings: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; }; } | { exitCode: 8; stdout: { _meta?: { source: string; type: string; extractedAt: string; specVersion?: string; commands: string[]; }; cli_contracts: string; info: Record; command_sets: Record; components?: Record; }; stderr: { code: string; message: string; details?: Record; }; }; export interface ProposeTestsArgs { contract?: string; } export interface ProposeTestsOptions { file?: string; adapter?: "mock" | "claude" | "openai" | "gemini"; model?: string; showPrompt?: boolean; failOn?: "warning" | "error" | "critical"; output?: string; reportFormat?: "json" | "text" | "yaml"; logFile?: string; } export type ProposeTestsExitCode = 0 | 1 | 2 | 3 | 10 | 11 | 12; export type ProposeTestsExitResult = { exitCode: 0; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 3; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 10; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 11; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 12; stderr: { code: string; message: string; details?: Record; }; }; export interface ExplainDiffArgs { old?: string; new?: string; } export interface ExplainDiffOptions { base?: string; head?: string; contractPath?: string; adapter?: "mock" | "claude" | "openai" | "gemini"; model?: string; showPrompt?: boolean; failOn?: "warning" | "error" | "critical"; output?: string; reportFormat?: "json" | "text" | "yaml"; logFile?: string; } export type ExplainDiffExitCode = 0 | 1 | 2 | 3 | 10 | 11 | 12; export type ExplainDiffExitResult = { exitCode: 0; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 3; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 10; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 11; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 12; stderr: { code: string; message: string; details?: Record; }; }; export interface CheckReferenceArgs { contract?: string; } export interface CheckReferenceOptions { file?: string; adapter?: "mock" | "claude" | "openai" | "gemini"; model?: string; showPrompt?: boolean; failOn?: "warning" | "error" | "critical"; output?: string; scope?: "contract" | "implementation" | "all"; reportFormat?: "json" | "text" | "yaml"; logFile?: string; } export type CheckReferenceExitCode = 0 | 1 | 2 | 3 | 10 | 11 | 12; export type CheckReferenceExitResult = { exitCode: 0; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 3; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 10; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 11; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 12; stderr: { code: string; message: string; details?: Record; }; }; export interface SuggestOptions { fromReadme?: string; fromHelp?: string; fromSource?: string; adapter?: "mock" | "claude" | "openai" | "gemini"; model?: string; showPrompt?: boolean; failOn?: "warning" | "error" | "critical"; output?: string; reportFormat?: "json" | "text" | "yaml"; logFile?: string; } export type SuggestExitCode = 0 | 1 | 2 | 3 | 10 | 11 | 12; export type SuggestExitResult = { exitCode: 0; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 3; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 10; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 11; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 12; stderr: { code: string; message: string; details?: Record; }; }; export interface BundleOptions { projectDir?: string; adapter?: "mock" | "claude" | "openai" | "gemini"; model?: string; showPrompt?: boolean; failOn?: "warning" | "error" | "critical"; output?: string; reportFormat?: "json" | "text" | "yaml"; logFile?: string; } export type BundleExitCode = 0 | 1 | 2 | 10 | 11 | 12; export type BundleExitResult = { exitCode: 0; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 1; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 2; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 10; stdout: { summary: string; risk_level: "low" | "medium" | "high" | "critical"; findings: { id?: string; severity: "info" | "warning" | "error" | "critical"; category: string; target?: string; location?: string; message: string; recommendation?: string; confidence?: number; evidence?: { kind: "file" | "command" | "schema" | "diff" | "stdout" | "stderr" | "text"; target?: string; location?: string; excerpt?: string; }[]; details?: Record; }[]; recommended_actions?: { kind: "run_command" | "edit_file" | "review" | "confirm" | "block" | "ignore"; title: string; command?: string; target?: string; rationale?: string; }[]; metadata?: { tool?: string; command?: string; version?: string; generated_at?: string; adapter?: string; model?: string; }; }; } | { exitCode: 11; stderr: { code: string; message: string; details?: Record; }; } | { exitCode: 12; stderr: { code: string; message: string; details?: Record; }; }; export interface AgentsOptions { format?: "yaml" | "json"; } export type AgentsExitCode = 0 | 1; export type AgentsExitResult = { exitCode: 0; stdout: unknown; } | { exitCode: 1; stderr: unknown; }; export interface Error { code: string; message: string; details?: Record; } export interface InitResult { contractFile: string; configFile?: string; } export interface ValidateResult { valid: boolean; errorCount: number; warningCount: number; errors: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; warnings: { path: string; message: string; rule: string; severity?: "error" | "warning"; }[]; } export interface Diagnostic { path: string; message: string; rule: string; severity?: "error" | "warning"; } export interface GenerateResult { generators: { name: string; status: "success" | "skipped" | "failed"; files: string[]; error?: string; }[]; } export interface GeneratorOutput { name: string; status: "success" | "skipped" | "failed"; files: string[]; error?: string; } export interface TestResult { total: number; passed: number; failed: number; skipped: number; durationMs?: number; cases: { id: string; status: "passed" | "failed" | "skipped"; durationMs?: number; violations?: { type: "exit_code_mismatch" | "stdout_schema_mismatch" | "stderr_schema_mismatch" | "stdout_format_mismatch" | "stderr_format_mismatch" | "file_missing" | "file_schema_mismatch"; message: string; expected?: unknown; actual?: unknown; }[]; }[]; } export interface TestCaseResult { id: string; status: "passed" | "failed" | "skipped"; durationMs?: number; violations?: { type: "exit_code_mismatch" | "stdout_schema_mismatch" | "stderr_schema_mismatch" | "stdout_format_mismatch" | "stderr_format_mismatch" | "file_missing" | "file_schema_mismatch"; message: string; expected?: unknown; actual?: unknown; }[]; } export interface ContractViolation { type: "exit_code_mismatch" | "stdout_schema_mismatch" | "stderr_schema_mismatch" | "stdout_format_mismatch" | "stderr_format_mismatch" | "file_missing" | "file_schema_mismatch"; message: string; expected?: unknown; actual?: unknown; } export interface ExtractResult { _meta?: { source: string; type: string; extractedAt: string; specVersion?: string; commands: string[]; }; cli_contracts: string; info: Record; command_sets: Record; components?: Record; } export interface ExtractMeta { source: string; type: string; extractedAt: string; specVersion?: string; commands: string[]; } export interface DiffResult { hasBreakingChanges: boolean; breakingCount?: number; nonBreakingCount?: number; changes: { type: "added" | "removed" | "changed"; path: string; breaking: boolean; description: string; }[]; } export interface DiffChange { type: "added" | "removed" | "changed"; path: string; breaking: boolean; description: string; } //# sourceMappingURL=types.d.ts.map