/** * Zod Schema for Validation Results * * This schema defines the structure of validation state files and enables * runtime validation and JSON Schema generation for documentation. */ import { z } from 'zod'; /** * Base: Command Execution Schema * * Shared by all command executions (RunResult, StepResult). * Every command execution has: * - What ran (command) * - How it ended (exitCode) * - How long it took (durationSecs) * - What errors occurred (extraction) */ export declare const CommandExecutionSchema: z.ZodObject<{ /** Command that was executed */ command: z.ZodString; /** Exit code from the command */ exitCode: z.ZodNumber; /** Execution duration in seconds */ durationSecs: z.ZodNumber; /** Extracted error information (LLM-optimized, structured errors) */ extraction: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; severity: z.ZodOptional>; context: z.ZodOptional; guidance: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }>, "many">; guidance: z.ZodOptional; errorSummary: z.ZodOptional; metadata: z.ZodOptional; reason: z.ZodString; }, "strip", z.ZodTypeAny, { extractor: string; confidence: number; patterns: string[]; reason: string; }, { extractor: string; confidence: number; patterns: string[]; reason: string; }>>; confidence: z.ZodNumber; completeness: z.ZodNumber; issues: z.ZodArray; suggestions: z.ZodOptional>; }, "strip", z.ZodTypeAny, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }>>; }, "strip", z.ZodTypeAny, { command: string; exitCode: number; durationSecs: number; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; }, { command: string; exitCode: number; durationSecs: number; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; }>; /** * Output Files Schema * * Shared by RunResult and StepResult. * Provides paths to organized output files for debugging and inspection. */ export declare const OutputFilesSchema: z.ZodObject<{ /** Path to stdout.log (omitted if empty) */ stdout: z.ZodOptional; /** Path to stderr.log (omitted if empty) */ stderr: z.ZodOptional; /** Path to combined.jsonl (chronological, ANSI-stripped) */ combined: z.ZodString; }, "strip", z.ZodTypeAny, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }>; /** * Base: Operation Metadata Schema * * Shared by top-level operations (RunResult, ValidationResult). * Every operation has: * - When it ran (timestamp) * - What code state (treeHash) - optional to avoid duplication in output * * Note: treeHash is optional to allow output layers (history, state) to * provide it at the root level, avoiding token-wasting duplication in nested objects. */ export declare const OperationMetadataSchema: z.ZodObject<{ /** When the operation was executed (ISO 8601) */ timestamp: z.ZodString; /** Git tree hash identifying the code state (optional when provided at root level) */ treeHash: z.ZodOptional; }, "strip", z.ZodTypeAny, { timestamp: string; treeHash?: string | undefined; }, { timestamp: string; treeHash?: string | undefined; }>; /** * Validation Step Result Schema * * Extends CommandExecutionSchema with step-specific fields. * * Field ordering is optimized for LLM consumption: * - What step (name) * - Did it pass? (passed) * - Command execution details (command, exitCode, durationSecs, extraction) * - Debug resources (outputFiles) * * v0.15.0 BREAKING CHANGES: * - Now extends CommandExecutionSchema (adds command, exitCode) * - Removed extractionQuality (use extraction.metadata instead) * - Removed output field (use extraction instead) * - Removed failedTests field (use extraction.errors instead) * - Added isCachedResult to indicate when result came from cache * - Added .strict() to reject unknown properties (prevents internal fields from leaking) * - Added outputFiles for debugging (stdout.log, stderr.log, combined.jsonl) * - Only shown in results when step fails or --debug flag enabled */ export declare const StepResultSchema: z.ZodObject<{ /** Command that was executed */ command: z.ZodString; /** Exit code from the command */ exitCode: z.ZodNumber; /** Execution duration in seconds */ durationSecs: z.ZodNumber; /** Extracted error information (LLM-optimized, structured errors) */ extraction: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; severity: z.ZodOptional>; context: z.ZodOptional; guidance: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }>, "many">; guidance: z.ZodOptional; errorSummary: z.ZodOptional; metadata: z.ZodOptional; reason: z.ZodString; }, "strip", z.ZodTypeAny, { extractor: string; confidence: number; patterns: string[]; reason: string; }, { extractor: string; confidence: number; patterns: string[]; reason: string; }>>; confidence: z.ZodNumber; completeness: z.ZodNumber; issues: z.ZodArray; suggestions: z.ZodOptional>; }, "strip", z.ZodTypeAny, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }>>; } & { /** Step name */ name: z.ZodString; /** Did the step pass? (derived from exitCode === 0) */ passed: z.ZodBoolean; /** Was this result retrieved from cache? (v0.15.0+) */ isCachedResult: z.ZodOptional; /** Output files from step execution (v0.15.1+) */ outputFiles: z.ZodOptional; /** Path to stderr.log (omitted if empty) */ stderr: z.ZodOptional; /** Path to combined.jsonl (chronological, ANSI-stripped) */ combined: z.ZodString; }, "strip", z.ZodTypeAny, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }>; /** * Validation Phase Result Schema * * Field ordering optimized for LLM consumption: * - Phase identification (name) * - Status (passed) * - Duration (durationSecs) * - Step details (steps with extraction for failed steps) */ export declare const PhaseResultSchema: z.ZodObject<{ /** Phase name */ name: z.ZodString; /** Did the phase pass? */ passed: z.ZodBoolean; /** Phase execution duration in seconds */ durationSecs: z.ZodNumber; /** Results from individual steps */ steps: z.ZodArray; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; severity: z.ZodOptional>; context: z.ZodOptional; guidance: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }>, "many">; guidance: z.ZodOptional; errorSummary: z.ZodOptional; metadata: z.ZodOptional; reason: z.ZodString; }, "strip", z.ZodTypeAny, { extractor: string; confidence: number; patterns: string[]; reason: string; }, { extractor: string; confidence: number; patterns: string[]; reason: string; }>>; confidence: z.ZodNumber; completeness: z.ZodNumber; issues: z.ZodArray; suggestions: z.ZodOptional>; }, "strip", z.ZodTypeAny, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }>>; } & { /** Step name */ name: z.ZodString; /** Did the step pass? (derived from exitCode === 0) */ passed: z.ZodBoolean; /** Was this result retrieved from cache? (v0.15.0+) */ isCachedResult: z.ZodOptional; /** Output files from step execution (v0.15.1+) */ outputFiles: z.ZodOptional; /** Path to stderr.log (omitted if empty) */ stderr: z.ZodOptional; /** Path to combined.jsonl (chronological, ANSI-stripped) */ combined: z.ZodString; }, "strip", z.ZodTypeAny, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }, { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }>; /** * Validation Result Schema * * Extends OperationMetadataSchema with validation-specific fields. * * This schema defines the validation result structure returned by the validation * runner and stored in git notes (v0.12.0+) for history tracking. * * Field ordering optimized for LLM consumption: * - Status first (passed, summary) * - Operation metadata (timestamp, treeHash) * - Cache indicator (isCachedResult) - v0.15.0+ * - Quick navigation (failedStep) * - Detailed breakdown (phases with step-level extraction, each step has command) * * v0.15.0 BREAKING CHANGES: * - Removed rerunCommand (use phases[].steps[].command instead) * - Removed failedStepOutput (use phases[].steps[].extraction instead) * - Removed fullLogFile (use phases[].steps[].outputFiles instead) * * Note: Base schemas are permissive (strip unknown fields) for forward/backward * compatibility when reading from git notes. Use strict variants for validation * of freshly-produced results (prevents internal fields from leaking into public API). */ export declare const ValidationResultSchema: z.ZodObject<{ /** When the operation was executed (ISO 8601) */ timestamp: z.ZodString; /** Git tree hash identifying the code state (optional when provided at root level) */ treeHash: z.ZodOptional; } & { /** Did validation pass? */ passed: z.ZodBoolean; /** One-line summary for LLMs (e.g., "Validation passed" or "TypeScript type check failed") */ summary: z.ZodOptional; /** Was this entire validation result retrieved from cache? (v0.15.0+) */ isCachedResult: z.ZodOptional; /** Name of failed step (if any) - for quick navigation */ failedStep: z.ZodOptional; /** Results from each phase (steps include extraction for failures) */ phases: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; severity: z.ZodOptional>; context: z.ZodOptional; guidance: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }>, "many">; guidance: z.ZodOptional; errorSummary: z.ZodOptional; metadata: z.ZodOptional; reason: z.ZodString; }, "strip", z.ZodTypeAny, { extractor: string; confidence: number; patterns: string[]; reason: string; }, { extractor: string; confidence: number; patterns: string[]; reason: string; }>>; confidence: z.ZodNumber; completeness: z.ZodNumber; issues: z.ZodArray; suggestions: z.ZodOptional>; }, "strip", z.ZodTypeAny, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }>>; } & { /** Step name */ name: z.ZodString; /** Did the step pass? (derived from exitCode === 0) */ passed: z.ZodBoolean; /** Was this result retrieved from cache? (v0.15.0+) */ isCachedResult: z.ZodOptional; /** Output files from step execution (v0.15.1+) */ outputFiles: z.ZodOptional; /** Path to stderr.log (omitted if empty) */ stderr: z.ZodOptional; /** Path to combined.jsonl (chronological, ANSI-stripped) */ combined: z.ZodString; }, "strip", z.ZodTypeAny, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }, { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }>, "many">>; /** Output files from validation run (only with --debug flag) */ outputFiles: z.ZodOptional; /** Path to stderr.log (omitted if empty) */ stderr: z.ZodOptional; /** Path to combined.jsonl (chronological, ANSI-stripped) */ combined: z.ZodString; }, "strip", z.ZodTypeAny, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { timestamp: string; passed: boolean; treeHash?: string | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; summary?: string | undefined; failedStep?: string | undefined; phases?: { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }[] | undefined; }, { timestamp: string; passed: boolean; treeHash?: string | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; summary?: string | undefined; failedStep?: string | undefined; phases?: { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }[] | undefined; }>; /** * Strict Schema Variants * * These reject unknown properties and are used for validating freshly-produced * results (e.g., from the runner). This prevents internal fields like _fromCache * from leaking into the public API. * * The base schemas above are permissive (strip unknown fields) for reading * stored results from git notes, ensuring forward/backward compatibility. */ export declare const StepResultStrictSchema: z.ZodObject<{ /** Command that was executed */ command: z.ZodString; /** Exit code from the command */ exitCode: z.ZodNumber; /** Execution duration in seconds */ durationSecs: z.ZodNumber; /** Extracted error information (LLM-optimized, structured errors) */ extraction: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; severity: z.ZodOptional>; context: z.ZodOptional; guidance: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }>, "many">; guidance: z.ZodOptional; errorSummary: z.ZodOptional; metadata: z.ZodOptional; reason: z.ZodString; }, "strip", z.ZodTypeAny, { extractor: string; confidence: number; patterns: string[]; reason: string; }, { extractor: string; confidence: number; patterns: string[]; reason: string; }>>; confidence: z.ZodNumber; completeness: z.ZodNumber; issues: z.ZodArray; suggestions: z.ZodOptional>; }, "strip", z.ZodTypeAny, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }>>; } & { /** Step name */ name: z.ZodString; /** Did the step pass? (derived from exitCode === 0) */ passed: z.ZodBoolean; /** Was this result retrieved from cache? (v0.15.0+) */ isCachedResult: z.ZodOptional; /** Output files from step execution (v0.15.1+) */ outputFiles: z.ZodOptional; /** Path to stderr.log (omitted if empty) */ stderr: z.ZodOptional; /** Path to combined.jsonl (chronological, ANSI-stripped) */ combined: z.ZodString; }, "strip", z.ZodTypeAny, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }>>; }, "strict", z.ZodTypeAny, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }>; export declare const PhaseResultStrictSchema: z.ZodObject<{ name: z.ZodString; passed: z.ZodBoolean; durationSecs: z.ZodNumber; } & { steps: z.ZodArray; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; severity: z.ZodOptional>; context: z.ZodOptional; guidance: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }>, "many">; guidance: z.ZodOptional; errorSummary: z.ZodOptional; metadata: z.ZodOptional; reason: z.ZodString; }, "strip", z.ZodTypeAny, { extractor: string; confidence: number; patterns: string[]; reason: string; }, { extractor: string; confidence: number; patterns: string[]; reason: string; }>>; confidence: z.ZodNumber; completeness: z.ZodNumber; issues: z.ZodArray; suggestions: z.ZodOptional>; }, "strip", z.ZodTypeAny, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }>>; } & { /** Step name */ name: z.ZodString; /** Did the step pass? (derived from exitCode === 0) */ passed: z.ZodBoolean; /** Was this result retrieved from cache? (v0.15.0+) */ isCachedResult: z.ZodOptional; /** Output files from step execution (v0.15.1+) */ outputFiles: z.ZodOptional; /** Path to stderr.log (omitted if empty) */ stderr: z.ZodOptional; /** Path to combined.jsonl (chronological, ANSI-stripped) */ combined: z.ZodString; }, "strip", z.ZodTypeAny, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }>>; }, "strict", z.ZodTypeAny, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }, { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }>; export declare const ValidationResultStrictSchema: z.ZodObject<{ timestamp: z.ZodString; treeHash: z.ZodOptional; passed: z.ZodBoolean; summary: z.ZodOptional; isCachedResult: z.ZodOptional; failedStep: z.ZodOptional; outputFiles: z.ZodOptional; /** Path to stderr.log (omitted if empty) */ stderr: z.ZodOptional; /** Path to combined.jsonl (chronological, ANSI-stripped) */ combined: z.ZodString; }, "strip", z.ZodTypeAny, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }>>; } & { phases: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; message: z.ZodString; code: z.ZodOptional; severity: z.ZodOptional>; context: z.ZodOptional; guidance: z.ZodOptional; }, "strip", z.ZodTypeAny, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }, { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }>, "many">; guidance: z.ZodOptional; errorSummary: z.ZodOptional; metadata: z.ZodOptional; reason: z.ZodString; }, "strip", z.ZodTypeAny, { extractor: string; confidence: number; patterns: string[]; reason: string; }, { extractor: string; confidence: number; patterns: string[]; reason: string; }>>; confidence: z.ZodNumber; completeness: z.ZodNumber; issues: z.ZodArray; suggestions: z.ZodOptional>; }, "strip", z.ZodTypeAny, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }, { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }, { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; }>>; } & { /** Step name */ name: z.ZodString; /** Did the step pass? (derived from exitCode === 0) */ passed: z.ZodBoolean; /** Was this result retrieved from cache? (v0.15.0+) */ isCachedResult: z.ZodOptional; /** Output files from step execution (v0.15.1+) */ outputFiles: z.ZodOptional; /** Path to stderr.log (omitted if empty) */ stderr: z.ZodOptional; /** Path to combined.jsonl (chronological, ANSI-stripped) */ combined: z.ZodString; }, "strip", z.ZodTypeAny, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }, { combined: string; stdout?: string | undefined; stderr?: string | undefined; }>>; }, "strict", z.ZodTypeAny, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }, { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }, { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }>, "many">>; }, "strict", z.ZodTypeAny, { timestamp: string; passed: boolean; treeHash?: string | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; summary?: string | undefined; failedStep?: string | undefined; phases?: { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }[] | undefined; }, { timestamp: string; passed: boolean; treeHash?: string | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; summary?: string | undefined; failedStep?: string | undefined; phases?: { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }[] | undefined; }>; /** * Inferred TypeScript types from Zod schemas */ export type OutputFiles = z.infer; export type StepResult = z.infer; export type PhaseResult = z.infer; export type ValidationResult = z.infer; /** * Safe validation function (uses shared utility) */ export declare const safeValidateResult: (data: unknown) => { success: false; errors: string[]; } | { success: true; data: { timestamp: string; passed: boolean; treeHash?: string | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; summary?: string | undefined; failedStep?: string | undefined; phases?: { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }[] | undefined; }; }; /** * Strict validation function (uses strict schema to reject unknown fields) */ export declare const validateResult: (data: unknown) => { timestamp: string; passed: boolean; treeHash?: string | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; summary?: string | undefined; failedStep?: string | undefined; phases?: { durationSecs: number; name: string; passed: boolean; steps: { command: string; exitCode: number; durationSecs: number; name: string; passed: boolean; extraction?: { summary: string; totalErrors: number; errors: { message: string; file?: string | undefined; line?: number | undefined; column?: number | undefined; code?: string | undefined; severity?: "error" | "warning" | undefined; context?: string | undefined; guidance?: string | undefined; }[]; guidance?: string | undefined; errorSummary?: string | undefined; metadata?: { issues: string[]; confidence: number; completeness: number; detection?: { extractor: string; confidence: number; patterns: string[]; reason: string; } | undefined; suggestions?: string[] | undefined; } | undefined; } | undefined; isCachedResult?: boolean | undefined; outputFiles?: { combined: string; stdout?: string | undefined; stderr?: string | undefined; } | undefined; }[]; }[] | undefined; }; //# sourceMappingURL=result-schema.d.ts.map