{"version":3,"file":"error.cjs","names":["z4"],"sources":["../../../src/agents/middleware/error.ts"],"sourcesContent":["import { type ZodError } from \"zod/v3\";\nimport { z as z4 } from \"zod/v4\";\n\n/**\n * Error thrown when the configuration for a retry middleware is invalid.\n */\nexport class InvalidRetryConfigError extends Error {\n  cause: ZodError;\n\n  constructor(error: ZodError) {\n    const message = z4.prettifyError(error).slice(2);\n    super(message);\n    this.name = \"InvalidRetryConfigError\";\n    this.cause = error;\n  }\n}\n"],"mappings":";;;;;;AAMA,IAAa,0BAAb,cAA6C,MAAM;CACjD;CAEA,YAAY,OAAiB;EAC3B,MAAM,UAAUA,OAAAA,EAAG,cAAc,MAAM,CAAC,MAAM,EAAE;AAChD,QAAM,QAAQ;AACd,OAAK,OAAO;AACZ,OAAK,QAAQ"}