/** * Run Output Parser * * Parses vibe-validate YAML output from command execution. * Handles cases where vibe-validate commands wrap each other. * * Used by: * - run command (packages/cli/src/commands/run.ts) * - validate phase runner (packages/core/src/runner.ts) * * @packageDocumentation */ import type { ErrorExtractorResult } from '@vibe-validate/extractors'; import type { OutputFiles } from './result-schema.js'; /** * Parsed vibe-validate output result */ export interface ParsedVibeValidateOutput { /** Type of result detected */ type: 'run' | 'validate'; /** Extracted error information */ extraction: ErrorExtractorResult; /** Whether this result came from cache */ isCachedResult?: boolean; /** Path to full output log file (if available) */ fullOutputFile?: string; /** Output files from command execution (v0.15.1+) */ outputFiles?: OutputFiles; /** Original tree hash from nested result */ treeHash?: string; /** Exit code from nested command */ exitCode?: number; /** Timestamp from nested command */ timestamp?: string; } /** * Parse vibe-validate YAML output * * Detects and parses YAML output from nested vibe-validate commands: * - RunResult from `vibe-validate run` * - ValidationResult from `vibe-validate validate` * * @param output - Command output (stdout + stderr) * @returns Parsed result or null if no vibe-validate YAML detected */ export declare function parseVibeValidateOutput(output: string): ParsedVibeValidateOutput | null; //# sourceMappingURL=run-output-parser.d.ts.map