@liberseek/boft-cli-win32-arm64 0.6.4 → 0.6.6

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.
@@ -18322,18 +18322,19 @@ function hostUsage(value, modelId) {
18322
18322
  };
18323
18323
  return Object.keys(usage).length > 0 ? usage : null;
18324
18324
  }
18325
- function normalizedProcessError(stderr, fallback) {
18326
- const diagnostic = sanitizeDiagnosticTail(stderr.trim());
18327
- if (/sign[ -]?in|authenticat|credential|login/iu.test(diagnostic)) {
18325
+ function normalizedProcessError(detail, fallback, exposeDetail = false) {
18326
+ const nativeDetail = detail.trim();
18327
+ const diagnostic = sanitizeDiagnosticTail(nativeDetail);
18328
+ if (/sign[ -]?in|authenticat|credential|login/iu.test(nativeDetail)) {
18328
18329
  return {
18329
18330
  code: "authenticationRequired",
18330
- message: diagnostic || fallback,
18331
+ message: exposeDetail ? nativeDetail || fallback : diagnostic || fallback,
18331
18332
  retryable: false
18332
18333
  };
18333
18334
  }
18334
18335
  return {
18335
18336
  code: "nativeFailure",
18336
- message: fallback,
18337
+ message: exposeDetail && nativeDetail ? `${fallback}: ${nativeDetail}` : fallback,
18337
18338
  retryable: true,
18338
18339
  ...diagnostic ? { stderrTail: diagnostic.slice(-4e3) } : {}
18339
18340
  };
@@ -18817,10 +18818,11 @@ ${line}`).slice(-8e3);
18817
18818
  this.#completeTurn(active, { status: "succeeded", checkpoint }, nativeTurnRef);
18818
18819
  }
18819
18820
  } else {
18820
- const errorDetail = event.result.error?.trim() || active.stderr;
18821
+ const nativeError = event.result.error?.trim();
18822
+ const errorDetail = nativeError || active.stderr;
18821
18823
  this.#completeTurn(active, {
18822
18824
  status: "failed",
18823
- error: normalizedProcessError(errorDetail, `Antigravity Turn ended with status ${event.result.status}`),
18825
+ error: normalizedProcessError(errorDetail, `Antigravity Turn ended with status ${event.result.status}`, nativeError !== void 0),
18824
18826
  checkpoint
18825
18827
  }, nativeTurnRef);
18826
18828
  }