{"version":3,"file":"max-steps-exceeded-error.mjs","names":[],"sources":["../../../../../../../ai/src/errors/max-steps-exceeded-error.ts"],"sourcesContent":["import type { AIErrorOptions } from \"./ai-error\";\nimport type { ErrorCategory } from \"./error-category.type\";\nimport { WorkflowError } from \"./workflow-error\";\n\nexport type MaxStepsExceededErrorOptions = AIErrorOptions & {\n  maxSteps: number;\n};\n\n/**\n * Runaway-loop hard guard: workflow executed more step transitions\n * than `maxSteps` allows. Terminates the workflow immediately.\n */\nexport class MaxStepsExceededError extends WorkflowError {\n  public static readonly defaultCategory: ErrorCategory = \"max-steps\";\n\n  public readonly maxSteps: number;\n\n  public constructor(message: string, options: MaxStepsExceededErrorOptions) {\n    super(message, options, \"WORKFLOW_MAX_STEPS\");\n    this.name = \"MaxStepsExceededError\";\n    this.maxSteps = options.maxSteps;\n  }\n}\n"],"mappings":";;;;;;;AAYA,IAAa,wBAAb,cAA2C,cAAc;;yBACC;;CAIxD,AAAO,YAAY,SAAiB,SAAuC;EACzE,MAAM,SAAS,SAAS,oBAAoB;EAC5C,KAAK,OAAO;EACZ,KAAK,WAAW,QAAQ;CAC1B;AACF"}