import { z } from "zod"; import { type AppId, type IsoDateTime, type ThreadId } from "./ids.js"; export declare const VENDO_CAPABILITY_MISS_FORMAT: "vendo/capability-miss@1"; export interface CapabilityMissToolFailure { tool: string; attempt: number; failure: { code?: string; message: string; }; } export type CapabilityMissTrigger = { kind: "no-matching-tool"; toolsConsidered: string[]; } | { kind: "repeated-tool-failure"; toolsConsidered: string[]; attempts: [CapabilityMissToolFailure, CapabilityMissToolFailure, ...CapabilityMissToolFailure[]]; } | { kind: "agent-give-up"; toolsConsidered: string[]; toolsAttempted: string[]; }; export interface CapabilityMissEvent { format: typeof VENDO_CAPABILITY_MISS_FORMAT; id: string; at: IsoDateTime; hostId: string; appId?: AppId; sessionId: string; threadId?: ThreadId; intent: string; surface: { format: "vendo/tools@1"; hash: string; }; trigger: CapabilityMissTrigger; } export declare const capabilityMissToolFailureSchema: z.ZodObject<{ tool: z.ZodString; attempt: z.ZodNumber; failure: z.ZodObject<{ code: z.ZodOptional; message: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ code: z.ZodOptional; message: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ code: z.ZodOptional; message: z.ZodString; }, z.ZodTypeAny, "passthrough">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ tool: z.ZodString; attempt: z.ZodNumber; failure: z.ZodObject<{ code: z.ZodOptional; message: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ code: z.ZodOptional; message: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ code: z.ZodOptional; message: z.ZodString; }, z.ZodTypeAny, "passthrough">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ tool: z.ZodString; attempt: z.ZodNumber; failure: z.ZodObject<{ code: z.ZodOptional; message: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ code: z.ZodOptional; message: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ code: z.ZodOptional; message: z.ZodString; }, z.ZodTypeAny, "passthrough">>; }, z.ZodTypeAny, "passthrough">>; export declare const capabilityMissTriggerSchema: z.ZodType; export declare const capabilityMissEventSchema: z.ZodObject<{ format: z.ZodLiteral<"vendo/capability-miss@1">; id: z.ZodString; at: z.ZodString; hostId: z.ZodString; appId: z.ZodOptional; sessionId: z.ZodString; threadId: z.ZodOptional; intent: z.ZodString; surface: z.ZodObject<{ format: z.ZodLiteral<"vendo/tools@1">; hash: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ format: z.ZodLiteral<"vendo/tools@1">; hash: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ format: z.ZodLiteral<"vendo/tools@1">; hash: z.ZodString; }, z.ZodTypeAny, "passthrough">>; trigger: z.ZodType; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ format: z.ZodLiteral<"vendo/capability-miss@1">; id: z.ZodString; at: z.ZodString; hostId: z.ZodString; appId: z.ZodOptional; sessionId: z.ZodString; threadId: z.ZodOptional; intent: z.ZodString; surface: z.ZodObject<{ format: z.ZodLiteral<"vendo/tools@1">; hash: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ format: z.ZodLiteral<"vendo/tools@1">; hash: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ format: z.ZodLiteral<"vendo/tools@1">; hash: z.ZodString; }, z.ZodTypeAny, "passthrough">>; trigger: z.ZodType; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ format: z.ZodLiteral<"vendo/capability-miss@1">; id: z.ZodString; at: z.ZodString; hostId: z.ZodString; appId: z.ZodOptional; sessionId: z.ZodString; threadId: z.ZodOptional; intent: z.ZodString; surface: z.ZodObject<{ format: z.ZodLiteral<"vendo/tools@1">; hash: z.ZodString; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ format: z.ZodLiteral<"vendo/tools@1">; hash: z.ZodString; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ format: z.ZodLiteral<"vendo/tools@1">; hash: z.ZodString; }, z.ZodTypeAny, "passthrough">>; trigger: z.ZodType; }, z.ZodTypeAny, "passthrough">>;