import { z } from 'zod'; /** * v7 (6.10.0) — the honesty pass. * * v6 carried nine fields no component could produce: every one of them arrived * as a hardcoded 0 on every event since 4.8.0, when the lifecycle layer that * once measured them was deleted. A dashboard cannot tell a measured zero from * an unmeasured one, so those columns read as good news — "no stalls, no * sandbox violations, no escalations" — when the truth was "nobody looked". * They are gone rather than fixed, except `sandboxViolationCount`, which is now * really measured (and nullable where it cannot be). * * Removed: stallCount, taskMaxIdleMs, escalationCount, fallbackCount, subtype, * roundsUsed, outcomeInferred, outcomeMalformed, per-stage maxIdleMs/totalIdleMs, * and the rework/annotating/committing stage variants. * Changed: concernCategories is free text; sandboxViolationCount is nullable; * terminalStatus gained `cancelled` and now distinguishes timeout/unavailable. */ export declare const SCHEMA_VERSION = 7; export declare const STRICT_ID_REGEX: RegExp; /** * Bounds the FINDINGS PRODUCER must respect, exported so it can respect them by reference. * * These are the wire's limits, and a producer that exceeds one does not get a rejected field — the * whole event fails schema parse and the uploader drops it, silently. That is the defect class the * 6.10.0 audit found three instances of. `reviewer-findings.ts` clamps to exactly these numbers; * before they were exported it clamped to its own copies of them, so tightening a bound here would * have re-introduced the silent drop with every test still green. */ export declare const CONCERN_CATEGORY_MAX_LEN = 64; export declare const CONCERN_CATEGORIES_MAX = 16; export declare const CONCERN_COUNT_MAX = 150; export { ConcernCategory } from '../types/enums.js'; export declare const ErrorCode: z.ZodEnum<{ sdk_max_turns: "sdk_max_turns"; sdk_max_budget: "sdk_max_budget"; sdk_execution_error: "sdk_execution_error"; sdk_max_structured_output_retries: "sdk_max_structured_output_retries"; sdk_no_result: "sdk_no_result"; aborted: "aborted"; wall_clock_exceeded: "wall_clock_exceeded"; turn_failed: "turn_failed"; codex_error: "codex_error"; codex_not_installed: "codex_not_installed"; spawn_failed: "spawn_failed"; missing_credentials: "missing_credentials"; invalid_api_key: "invalid_api_key"; other: "other"; }>; export declare const FindingsBySeveritySchema: z.ZodObject<{ critical: z.ZodNumber; high: z.ZodNumber; medium: z.ZodNumber; low: z.ZodNumber; }, z.core.$strict>; export declare const TokenUsageSchema: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNumber; cachedNonReadTokens: z.ZodNumber; }, z.core.$strip>; export declare const TierUsageSchema: z.ZodObject<{ inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNumber; cachedNonReadTokens: z.ZodNumber; model: z.ZodString; costUSD: z.ZodNullable; }, z.core.$strip>; export declare const StageEntryBase: z.ZodObject<{ name: z.ZodEnum<{ review: "review"; implementing: "implementing"; }>; round: z.ZodNumber; model: z.ZodString; tier: z.ZodEnum<{ standard: "standard"; complex: "complex"; main: "main"; }>; durationMs: z.ZodNumber; costUSD: z.ZodNullable; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNullable; cachedNonReadTokens: z.ZodNullable; filesWrittenCount: z.ZodNumber; turnCount: z.ZodNumber; mainCostUSD: z.ZodNullable; }, z.core.$strip>; export declare const ReviewStageEntrySchema: z.ZodObject<{ round: z.ZodNumber; model: z.ZodString; tier: z.ZodEnum<{ standard: "standard"; complex: "complex"; main: "main"; }>; durationMs: z.ZodNumber; costUSD: z.ZodNullable; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNullable; cachedNonReadTokens: z.ZodNullable; filesWrittenCount: z.ZodNumber; turnCount: z.ZodNumber; mainCostUSD: z.ZodNullable; name: z.ZodLiteral<"review">; verdict: z.ZodEnum<{ error: "error"; not_applicable: "not_applicable"; skipped: "skipped"; approved: "approved"; changes_required: "changes_required"; concerns: "concerns"; annotated: "annotated"; }>; concernCategories: z.ZodArray; }, z.core.$strict>; export declare const ImplementStageEntrySchema: z.ZodObject<{ round: z.ZodNumber; model: z.ZodString; tier: z.ZodEnum<{ standard: "standard"; complex: "complex"; main: "main"; }>; durationMs: z.ZodNumber; costUSD: z.ZodNullable; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNullable; cachedNonReadTokens: z.ZodNullable; filesWrittenCount: z.ZodNumber; turnCount: z.ZodNumber; mainCostUSD: z.ZodNullable; name: z.ZodLiteral<"implementing">; }, z.core.$strict>; export declare const StageEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ round: z.ZodNumber; model: z.ZodString; tier: z.ZodEnum<{ standard: "standard"; complex: "complex"; main: "main"; }>; durationMs: z.ZodNumber; costUSD: z.ZodNullable; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNullable; cachedNonReadTokens: z.ZodNullable; filesWrittenCount: z.ZodNumber; turnCount: z.ZodNumber; mainCostUSD: z.ZodNullable; name: z.ZodLiteral<"implementing">; }, z.core.$strict>, z.ZodObject<{ round: z.ZodNumber; model: z.ZodString; tier: z.ZodEnum<{ standard: "standard"; complex: "complex"; main: "main"; }>; durationMs: z.ZodNumber; costUSD: z.ZodNullable; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNullable; cachedNonReadTokens: z.ZodNullable; filesWrittenCount: z.ZodNumber; turnCount: z.ZodNumber; mainCostUSD: z.ZodNullable; name: z.ZodLiteral<"review">; verdict: z.ZodEnum<{ error: "error"; not_applicable: "not_applicable"; skipped: "skipped"; approved: "approved"; changes_required: "changes_required"; concerns: "concerns"; annotated: "annotated"; }>; concernCategories: z.ZodArray; }, z.core.$strict>], "name">; export declare const TaskCompletedEventSchema: z.ZodObject<{ eventId: z.ZodString; route: z.ZodEnum<{ research: "research"; audit: "audit"; investigate: "investigate"; delegate: "delegate"; review: "review"; debug: "debug"; orchestrate: "orchestrate"; spec: "spec"; plan: "plan"; "execute-plan": "execute-plan"; "journal-record": "journal-record"; "journal-recall": "journal-recall"; "register-context-block": "register-context-block"; }>; client: z.ZodString; agentType: z.ZodEnum<{ standard: "standard"; complex: "complex"; main: "main"; }>; toolMode: z.ZodEnum<{ readonly: "readonly"; none: "none"; "no-shell": "no-shell"; full: "full"; }>; reviewPolicy: z.ZodEnum<{ none: "none"; reviewed: "reviewed"; }>; implementerModel: z.ZodString; implementerTier: z.ZodEnum<{ standard: "standard"; complex: "complex"; main: "main"; }>; mainModel: z.ZodNullable; mainModelFamily: z.ZodEnum<{ other: "other"; claude: "claude"; openai: "openai"; gemini: "gemini"; grok: "grok"; mistral: "mistral"; deepseek: "deepseek"; llama: "llama"; qwen: "qwen"; glm: "glm"; kimi: "kimi"; cohere: "cohere"; minimax: "minimax"; phi: "phi"; gemma: "gemma"; yi: "yi"; sonar: "sonar"; nova: "nova"; jamba: "jamba"; granite: "granite"; nemotron: "nemotron"; dbrx: "dbrx"; arctic: "arctic"; reka: "reka"; olmo: "olmo"; hermes: "hermes"; wizardlm: "wizardlm"; starcoder: "starcoder"; dolphin: "dolphin"; openchat: "openchat"; vicuna: "vicuna"; internlm: "internlm"; baichuan: "baichuan"; }>; tierUsage: z.ZodObject<{ standard: z.ZodOptional; }, z.core.$strip>>; complex: z.ZodOptional; }, z.core.$strip>>; main: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; terminalStatus: z.ZodEnum<{ error: "error"; ok: "ok"; timeout: "timeout"; unavailable: "unavailable"; cancelled: "cancelled"; }>; workerStatus: z.ZodEnum<{ done: "done"; done_with_concerns: "done_with_concerns"; failed: "failed"; cancelled: "cancelled"; }>; errorCode: z.ZodNullable>; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNullable; cachedNonReadTokens: z.ZodNullable; totalDurationMs: z.ZodNumber; totalCostUSD: z.ZodNullable; mainCostUSD: z.ZodNullable; costDeltaVsMainUSD: z.ZodNullable; concernCount: z.ZodNumber; findingsBySeverity: z.ZodOptional>; findingsOutcome: z.ZodOptional>>; findingsOutcomeReason: z.ZodOptional>; filesWrittenCount: z.ZodNumber; sandboxViolationCount: z.ZodNullable; stages: z.ZodArray; durationMs: z.ZodNumber; costUSD: z.ZodNullable; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNullable; cachedNonReadTokens: z.ZodNullable; filesWrittenCount: z.ZodNumber; turnCount: z.ZodNumber; mainCostUSD: z.ZodNullable; name: z.ZodLiteral<"implementing">; }, z.core.$strict>, z.ZodObject<{ round: z.ZodNumber; model: z.ZodString; tier: z.ZodEnum<{ standard: "standard"; complex: "complex"; main: "main"; }>; durationMs: z.ZodNumber; costUSD: z.ZodNullable; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNullable; cachedNonReadTokens: z.ZodNullable; filesWrittenCount: z.ZodNumber; turnCount: z.ZodNumber; mainCostUSD: z.ZodNullable; name: z.ZodLiteral<"review">; verdict: z.ZodEnum<{ error: "error"; not_applicable: "not_applicable"; skipped: "skipped"; approved: "approved"; changes_required: "changes_required"; concerns: "concerns"; annotated: "annotated"; }>; concernCategories: z.ZodArray; }, z.core.$strict>], "name">>; toolCalls: z.ZodArray>; validation_warnings: z.ZodOptional>>; }, z.core.$strict>; export declare const ValidatedTaskCompletedEventSchema: z.ZodObject<{ eventId: z.ZodString; route: z.ZodEnum<{ research: "research"; audit: "audit"; investigate: "investigate"; delegate: "delegate"; review: "review"; debug: "debug"; orchestrate: "orchestrate"; spec: "spec"; plan: "plan"; "execute-plan": "execute-plan"; "journal-record": "journal-record"; "journal-recall": "journal-recall"; "register-context-block": "register-context-block"; }>; client: z.ZodString; agentType: z.ZodEnum<{ standard: "standard"; complex: "complex"; main: "main"; }>; toolMode: z.ZodEnum<{ readonly: "readonly"; none: "none"; "no-shell": "no-shell"; full: "full"; }>; reviewPolicy: z.ZodEnum<{ none: "none"; reviewed: "reviewed"; }>; implementerModel: z.ZodString; implementerTier: z.ZodEnum<{ standard: "standard"; complex: "complex"; main: "main"; }>; mainModel: z.ZodNullable; mainModelFamily: z.ZodEnum<{ other: "other"; claude: "claude"; openai: "openai"; gemini: "gemini"; grok: "grok"; mistral: "mistral"; deepseek: "deepseek"; llama: "llama"; qwen: "qwen"; glm: "glm"; kimi: "kimi"; cohere: "cohere"; minimax: "minimax"; phi: "phi"; gemma: "gemma"; yi: "yi"; sonar: "sonar"; nova: "nova"; jamba: "jamba"; granite: "granite"; nemotron: "nemotron"; dbrx: "dbrx"; arctic: "arctic"; reka: "reka"; olmo: "olmo"; hermes: "hermes"; wizardlm: "wizardlm"; starcoder: "starcoder"; dolphin: "dolphin"; openchat: "openchat"; vicuna: "vicuna"; internlm: "internlm"; baichuan: "baichuan"; }>; tierUsage: z.ZodObject<{ standard: z.ZodOptional; }, z.core.$strip>>; complex: z.ZodOptional; }, z.core.$strip>>; main: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; terminalStatus: z.ZodEnum<{ error: "error"; ok: "ok"; timeout: "timeout"; unavailable: "unavailable"; cancelled: "cancelled"; }>; workerStatus: z.ZodEnum<{ done: "done"; done_with_concerns: "done_with_concerns"; failed: "failed"; cancelled: "cancelled"; }>; errorCode: z.ZodNullable>; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNullable; cachedNonReadTokens: z.ZodNullable; totalDurationMs: z.ZodNumber; totalCostUSD: z.ZodNullable; mainCostUSD: z.ZodNullable; costDeltaVsMainUSD: z.ZodNullable; concernCount: z.ZodNumber; findingsBySeverity: z.ZodOptional>; findingsOutcome: z.ZodOptional>>; findingsOutcomeReason: z.ZodOptional>; filesWrittenCount: z.ZodNumber; sandboxViolationCount: z.ZodNullable; stages: z.ZodArray; durationMs: z.ZodNumber; costUSD: z.ZodNullable; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNullable; cachedNonReadTokens: z.ZodNullable; filesWrittenCount: z.ZodNumber; turnCount: z.ZodNumber; mainCostUSD: z.ZodNullable; name: z.ZodLiteral<"implementing">; }, z.core.$strict>, z.ZodObject<{ round: z.ZodNumber; model: z.ZodString; tier: z.ZodEnum<{ standard: "standard"; complex: "complex"; main: "main"; }>; durationMs: z.ZodNumber; costUSD: z.ZodNullable; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; cachedReadTokens: z.ZodNullable; cachedNonReadTokens: z.ZodNullable; filesWrittenCount: z.ZodNumber; turnCount: z.ZodNumber; mainCostUSD: z.ZodNullable; name: z.ZodLiteral<"review">; verdict: z.ZodEnum<{ error: "error"; not_applicable: "not_applicable"; skipped: "skipped"; approved: "approved"; changes_required: "changes_required"; concerns: "concerns"; annotated: "annotated"; }>; concernCategories: z.ZodArray; }, z.core.$strict>], "name">>; toolCalls: z.ZodArray>; validation_warnings: z.ZodOptional>>; }, z.core.$strict>; export type TaskCompletedEventType = z.infer; export type { ConcernCategoryType } from '../types/enums.js'; //# sourceMappingURL=wire-schema.d.ts.map