@google/gemini-cli-a2a-server 0.32.0-preview.0 → 0.33.0-nightly.20260228.1ca5c05d0

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.
@@ -213338,8 +213338,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
213338
213338
  var init_git_commit = __esm({
213339
213339
  "packages/core/dist/src/generated/git-commit.js"() {
213340
213340
  "use strict";
213341
- GIT_COMMIT_INFO = "ba149afa0";
213342
- CLI_VERSION = "0.32.0-preview.0";
213341
+ GIT_COMMIT_INFO = "1ca5c05d0";
213342
+ CLI_VERSION = "0.33.0-nightly.20260228.1ca5c05d0";
213343
213343
  }
213344
213344
  });
213345
213345
 
@@ -290597,7 +290597,7 @@ function getVersion() {
290597
290597
  }
290598
290598
  versionPromise = (async () => {
290599
290599
  const pkgJson = await getPackageJson(__dirname3);
290600
- return "0.32.0-preview.0";
290600
+ return "0.33.0-nightly.20260228.1ca5c05d0";
290601
290601
  })();
290602
290602
  return versionPromise;
290603
290603
  }
@@ -291612,6 +291612,21 @@ var init_loggingContentGenerator = __esm({
291612
291612
  }
291613
291613
  logApiResponse(this.config, event);
291614
291614
  }
291615
+ _fixGaxiosErrorData(error2) {
291616
+ if (typeof error2 === "object" && error2 !== null && "response" in error2 && typeof error2.response === "object" && error2.response !== null && "data" in error2.response) {
291617
+ const response = error2.response;
291618
+ const data = response.data;
291619
+ if (typeof data === "string" && data.includes(",")) {
291620
+ try {
291621
+ const charCodes = data.split(",").map(Number);
291622
+ if (charCodes.every((code2) => !isNaN(code2))) {
291623
+ response.data = String.fromCharCode(...charCodes);
291624
+ }
291625
+ } catch (_e) {
291626
+ }
291627
+ }
291628
+ }
291629
+ }
291615
291630
  _logApiError(durationMs, error2, model, prompt_id, requestContents, role, generationConfig, serverDetails) {
291616
291631
  const errorMessage = error2 instanceof Error ? error2.message : String(error2);
291617
291632
  const errorType = getErrorType(error2);
@@ -291658,6 +291673,7 @@ var init_loggingContentGenerator = __esm({
291658
291673
  } catch (error2) {
291659
291674
  spanMetadata.error = error2;
291660
291675
  const durationMs = Date.now() - startTime;
291676
+ this._fixGaxiosErrorData(error2);
291661
291677
  this._logApiError(durationMs, error2, req.model, userPromptId, contents, role, req.config, serverDetails);
291662
291678
  throw error2;
291663
291679
  }
@@ -291686,6 +291702,7 @@ var init_loggingContentGenerator = __esm({
291686
291702
  stream3 = await this.wrapped.generateContentStream(req, userPromptId, role);
291687
291703
  } catch (error2) {
291688
291704
  const durationMs = Date.now() - startTime;
291705
+ this._fixGaxiosErrorData(error2);
291689
291706
  this._logApiError(durationMs, error2, req.model, userPromptId, toContents(req.contents), role, req.config, serverDetails);
291690
291707
  throw error2;
291691
291708
  }