/** * Output capture schemas for command execution * * These schemas define the structure for capturing and organizing * command output (stdout/stderr) with timestamps and proper separation. * * All types are derived from Zod schemas (not manual interfaces) to ensure * consistency between runtime validation and TypeScript types. */ import { z } from 'zod'; /** * A single line of output with timestamp and stream identification */ export declare const OutputLineSchema: z.ZodObject<{ /** ISO8601 timestamp: "2025-11-05T17:30:45.123Z" */ ts: z.ZodString; /** Output stream (stdout or stderr) */ stream: z.ZodEnum<["stdout", "stderr"]>; /** Line content (ANSI codes stripped) */ line: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; stream: "stdout" | "stderr"; line: string; }, { ts: string; stream: "stdout" | "stderr"; line: string; }>; /** * Complete captured output from command execution */ export declare const CapturedOutputSchema: z.ZodObject<{ /** Standard output */ stdout: z.ZodObject<{ /** Raw stdout with ANSI codes */ raw: z.ZodString; /** Path to stdout.log file (omitted if empty) */ file: z.ZodOptional; }, "strip", z.ZodTypeAny, { raw: string; file?: string | undefined; }, { raw: string; file?: string | undefined; }>; /** Standard error */ stderr: z.ZodObject<{ /** Raw stderr with ANSI codes */ raw: z.ZodString; /** Path to stderr.log file (omitted if empty) */ file: z.ZodOptional; }, "strip", z.ZodTypeAny, { raw: string; file?: string | undefined; }, { raw: string; file?: string | undefined; }>; /** Combined chronological output */ combined: z.ZodObject<{ /** Chronologically ordered lines (ANSI-stripped) */ lines: z.ZodArray; /** Line content (ANSI codes stripped) */ line: z.ZodString; }, "strip", z.ZodTypeAny, { ts: string; stream: "stdout" | "stderr"; line: string; }, { ts: string; stream: "stdout" | "stderr"; line: string; }>, "many">; /** Path to combined.jsonl file */ file: z.ZodString; }, "strip", z.ZodTypeAny, { file: string; lines: { ts: string; stream: "stdout" | "stderr"; line: string; }[]; }, { file: string; lines: { ts: string; stream: "stdout" | "stderr"; line: string; }[]; }>; /** Command exit code */ exitCode: z.ZodNumber; /** Execution duration in seconds */ durationSecs: z.ZodNumber; }, "strip", z.ZodTypeAny, { stdout: { raw: string; file?: string | undefined; }; stderr: { raw: string; file?: string | undefined; }; exitCode: number; durationSecs: number; combined: { file: string; lines: { ts: string; stream: "stdout" | "stderr"; line: string; }[]; }; }, { stdout: { raw: string; file?: string | undefined; }; stderr: { raw: string; file?: string | undefined; }; exitCode: number; durationSecs: number; combined: { file: string; lines: { ts: string; stream: "stdout" | "stderr"; line: string; }[]; }; }>; /** * TypeScript types derived from Zod schemas */ export type OutputLine = z.infer; export type CapturedOutput = z.infer; //# sourceMappingURL=output-capture-schema.d.ts.map