{"version":3,"file":"step-failed-error.mjs","names":[],"sources":["../../../../../../../ai/src/errors/step-failed-error.ts"],"sourcesContent":["import type { AIErrorOptions } from \"./ai-error\";\nimport { WorkflowError } from \"./workflow-error\";\n\nexport type StepFailedErrorOptions = AIErrorOptions & {\n  stepName: string;\n  attempts: number;\n};\n\n/**\n * A workflow step exhausted its retries (or was not retried) and\n * terminated with an error. `cause` carries the last underlying error.\n */\nexport class StepFailedError extends WorkflowError {\n  public readonly stepName: string;\n  public readonly attempts: number;\n\n  public constructor(message: string, options: StepFailedErrorOptions) {\n    super(message, options, \"STEP_FAILED\");\n    this.name = \"StepFailedError\";\n    this.stepName = options.stepName;\n    this.attempts = options.attempts;\n  }\n}\n"],"mappings":";;;;;;;AAYA,IAAa,kBAAb,cAAqC,cAAc;CAIjD,AAAO,YAAY,SAAiB,SAAiC;EACnE,MAAM,SAAS,SAAS,aAAa;EACrC,KAAK,OAAO;EACZ,KAAK,WAAW,QAAQ;EACxB,KAAK,WAAW,QAAQ;CAC1B;AACF"}