/** * Runtime validator for context.json. Per spec ยง4.1 + H8 (audit trail * hashable). When this schema changes, version field must bump. */ import { z } from 'zod'; export declare const ContextJsonSchema: z.ZodObject<{ version: z.ZodLiteral<"1.0">; goal: z.ZodString; generatedAt: z.ZodString; sha256: z.ZodString; collector: z.ZodObject<{ files: z.ZodArray; lines: z.ZodNumber; hash: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; kind: "doc" | "source" | "test" | "config"; lines: number; hash: string; }, { path: string; kind: "doc" | "source" | "test" | "config"; lines: number; hash: string; }>, "many">; gitStatus: z.ZodObject<{ branch: z.ZodString; lastCommit: z.ZodString; dirty: z.ZodBoolean; }, "strip", z.ZodTypeAny, { dirty: boolean; branch: string; lastCommit: string; }, { dirty: boolean; branch: string; lastCommit: string; }>; memoryEntries: z.ZodArray, "many">; deps: z.ZodRecord; resolved: z.ZodString; }, "strip", z.ZodTypeAny, { version: string; source: "package.json" | "pnpm-lock.yaml" | "yarn.lock"; resolved: string; }, { version: string; source: "package.json" | "pnpm-lock.yaml" | "yarn.lock"; resolved: string; }>>; }, "strip", z.ZodTypeAny, { deps: Record; gitStatus: { dirty: boolean; branch: string; lastCommit: string; }; files: { path: string; kind: "doc" | "source" | "test" | "config"; lines: number; hash: string; }[]; memoryEntries: { path: string; title: string; relevanceScore: number; excerptHash: string; }[]; }, { deps: Record; gitStatus: { dirty: boolean; branch: string; lastCommit: string; }; files: { path: string; kind: "doc" | "source" | "test" | "config"; lines: number; hash: string; }[]; memoryEntries: { path: string; title: string; relevanceScore: number; excerptHash: string; }[]; }>; docRetriever: z.ZodObject<{ fetchedDocs: z.ZodArray; url: z.ZodOptional; fetchedAt: z.ZodString; contentHash: z.ZodString; sections: z.ZodArray, "many">; stale: z.ZodBoolean; }, "strip", z.ZodTypeAny, { version: string; source: "local-cache" | "remote-fetch"; stale: boolean; dep: string; fetchedAt: string; contentHash: string; sections: { title: string; tokenEstimate: number; excerpt: string; }[]; url?: string | undefined; }, { version: string; source: "local-cache" | "remote-fetch"; stale: boolean; dep: string; fetchedAt: string; contentHash: string; sections: { title: string; tokenEstimate: number; excerpt: string; }[]; url?: string | undefined; }>, "many">; skipped: z.ZodArray; }, "strip", z.ZodTypeAny, { dep: string; reason: "unconfigured" | "network_error" | "version_unknown"; }, { dep: string; reason: "unconfigured" | "network_error" | "version_unknown"; }>, "many">; }, "strip", z.ZodTypeAny, { skipped: { dep: string; reason: "unconfigured" | "network_error" | "version_unknown"; }[]; fetchedDocs: { version: string; source: "local-cache" | "remote-fetch"; stale: boolean; dep: string; fetchedAt: string; contentHash: string; sections: { title: string; tokenEstimate: number; excerpt: string; }[]; url?: string | undefined; }[]; }, { skipped: { dep: string; reason: "unconfigured" | "network_error" | "version_unknown"; }[]; fetchedDocs: { version: string; source: "local-cache" | "remote-fetch"; stale: boolean; dep: string; fetchedAt: string; contentHash: string; sections: { title: string; tokenEstimate: number; excerpt: string; }[]; url?: string | undefined; }[]; }>; tokenizer: z.ZodObject<{ metadata: z.ZodArray; version: z.ZodOptional; blastRadius: z.ZodArray; conflictScore: z.ZodNumber; timeDecayScore: z.ZodNumber; tags: z.ZodArray; }, "strip", z.ZodTypeAny, { kind: "git" | "code" | "doc" | "memory"; id: string; blastRadius: string[]; conflictScore: number; timeDecayScore: number; tags: string[]; version?: string | undefined; }, { kind: "git" | "code" | "doc" | "memory"; id: string; blastRadius: string[]; conflictScore: number; timeDecayScore: number; tags: string[]; version?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { metadata: { kind: "git" | "code" | "doc" | "memory"; id: string; blastRadius: string[]; conflictScore: number; timeDecayScore: number; tags: string[]; version?: string | undefined; }[]; }, { metadata: { kind: "git" | "code" | "doc" | "memory"; id: string; blastRadius: string[]; conflictScore: number; timeDecayScore: number; tags: string[]; version?: string | undefined; }[]; }>; renderer: z.ZodObject<{ audience: z.ZodEnum<["peaks-rd", "peaks-qa", "peaks-mut", "all"]>; renderedAt: z.ZodString; sizeBytes: z.ZodNumber; truncated: z.ZodBoolean; truncatedReason: z.ZodOptional>; }, "strip", z.ZodTypeAny, { sizeBytes: number; audience: "all" | "peaks-rd" | "peaks-qa" | "peaks-mut"; renderedAt: string; truncated: boolean; truncatedReason?: "doc_budget_exceeded" | "section_count_exceeded" | undefined; }, { sizeBytes: number; audience: "all" | "peaks-rd" | "peaks-qa" | "peaks-mut"; renderedAt: string; truncated: boolean; truncatedReason?: "doc_budget_exceeded" | "section_count_exceeded" | undefined; }>; }, "strip", z.ZodTypeAny, { version: "1.0"; goal: string; sha256: string; generatedAt: string; collector: { deps: Record; gitStatus: { dirty: boolean; branch: string; lastCommit: string; }; files: { path: string; kind: "doc" | "source" | "test" | "config"; lines: number; hash: string; }[]; memoryEntries: { path: string; title: string; relevanceScore: number; excerptHash: string; }[]; }; docRetriever: { skipped: { dep: string; reason: "unconfigured" | "network_error" | "version_unknown"; }[]; fetchedDocs: { version: string; source: "local-cache" | "remote-fetch"; stale: boolean; dep: string; fetchedAt: string; contentHash: string; sections: { title: string; tokenEstimate: number; excerpt: string; }[]; url?: string | undefined; }[]; }; tokenizer: { metadata: { kind: "git" | "code" | "doc" | "memory"; id: string; blastRadius: string[]; conflictScore: number; timeDecayScore: number; tags: string[]; version?: string | undefined; }[]; }; renderer: { sizeBytes: number; audience: "all" | "peaks-rd" | "peaks-qa" | "peaks-mut"; renderedAt: string; truncated: boolean; truncatedReason?: "doc_budget_exceeded" | "section_count_exceeded" | undefined; }; }, { version: "1.0"; goal: string; sha256: string; generatedAt: string; collector: { deps: Record; gitStatus: { dirty: boolean; branch: string; lastCommit: string; }; files: { path: string; kind: "doc" | "source" | "test" | "config"; lines: number; hash: string; }[]; memoryEntries: { path: string; title: string; relevanceScore: number; excerptHash: string; }[]; }; docRetriever: { skipped: { dep: string; reason: "unconfigured" | "network_error" | "version_unknown"; }[]; fetchedDocs: { version: string; source: "local-cache" | "remote-fetch"; stale: boolean; dep: string; fetchedAt: string; contentHash: string; sections: { title: string; tokenEstimate: number; excerpt: string; }[]; url?: string | undefined; }[]; }; tokenizer: { metadata: { kind: "git" | "code" | "doc" | "memory"; id: string; blastRadius: string[]; conflictScore: number; timeDecayScore: number; tags: string[]; version?: string | undefined; }[]; }; renderer: { sizeBytes: number; audience: "all" | "peaks-rd" | "peaks-qa" | "peaks-mut"; renderedAt: string; truncated: boolean; truncatedReason?: "doc_budget_exceeded" | "section_count_exceeded" | undefined; }; }>;