/** * Render a zod validation failure as something a caller can act on. * * `error.message` is a JSON dump of the raw issue array — for a UUID mismatch it * includes the full validating regex: * * Invalid input - [{"origin":"string","code":"invalid_format","format":"uuid", * "pattern":"/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8]... * * That is noise to an agent that needs to know one field was wrong, and the * Connectors Directory review criteria call for actionable errors, not generic * or unreadable ones. This yields `playbook_id: Invalid UUID` instead. * * Reads only `issues[].path` and `issues[].message`, which are stable across * zod 3 and 4 — this package declares `^3.24.1` while the monorepo resolves 4.x, * so anything relying on a version-specific issue shape would differ between * what CI tests and what a standalone `npm i` runs. */ interface ZodLikeIssue { path?: readonly PropertyKey[]; message?: string; } interface ZodLikeError { issues?: readonly ZodLikeIssue[]; message?: string; } export declare function formatZodError(error: ZodLikeError): string; export {}; //# sourceMappingURL=format-zod-error.d.ts.map