@axlsdk/axl 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3491,7 +3491,7 @@ ${summaryResponse.content}`
3491
3491
  if (err instanceof ValidationError) {
3492
3492
  lastRetry = {
3493
3493
  error: err.reason,
3494
- output: rawOutput,
3494
+ output: rawOutput ?? err.lastOutput,
3495
3495
  parsed: err.lastOutput
3496
3496
  };
3497
3497
  if (attempt === maxRetries) {
@@ -3500,6 +3500,14 @@ ${summaryResponse.content}`
3500
3500
  }
3501
3501
  continue;
3502
3502
  }
3503
+ if (err instanceof VerifyError) {
3504
+ lastRetry = { error: err.message, output: rawOutput ?? err.lastOutput };
3505
+ if (attempt === maxRetries) {
3506
+ if (options?.fallback !== void 0) return options.fallback;
3507
+ throw err;
3508
+ }
3509
+ continue;
3510
+ }
3503
3511
  const errorMsg = err instanceof import_zod.ZodError ? err.message : err instanceof Error ? err.message : String(err);
3504
3512
  lastRetry = { error: errorMsg, output: rawOutput };
3505
3513
  if (attempt === maxRetries) {