@google/gemini-cli-a2a-server 0.22.4 → 0.22.5
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/a2a-server.mjs +12 -11
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -311904,8 +311904,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
311904
311904
|
var PointerVector = import_vector.default.PointerVector;
|
|
311905
311905
|
|
|
311906
311906
|
// packages/core/dist/src/generated/git-commit.js
|
|
311907
|
-
var GIT_COMMIT_INFO = "
|
|
311908
|
-
var CLI_VERSION = "0.22.
|
|
311907
|
+
var GIT_COMMIT_INFO = "8daf2d34b";
|
|
311908
|
+
var CLI_VERSION = "0.22.5";
|
|
311909
311909
|
|
|
311910
311910
|
// packages/core/dist/src/ide/detect-ide.js
|
|
311911
311911
|
var IDE_DEFINITIONS = {
|
|
@@ -352835,15 +352835,14 @@ var ModelNotFoundError = class extends Error {
|
|
|
352835
352835
|
};
|
|
352836
352836
|
|
|
352837
352837
|
// packages/core/dist/src/utils/googleQuotaErrors.js
|
|
352838
|
-
var DEFAULT_RETRYABLE_DELAY_SECOND = 5;
|
|
352839
352838
|
var TerminalQuotaError = class extends Error {
|
|
352840
352839
|
cause;
|
|
352841
352840
|
retryDelayMs;
|
|
352842
|
-
constructor(message, cause,
|
|
352841
|
+
constructor(message, cause, retryDelaySeconds) {
|
|
352843
352842
|
super(message);
|
|
352844
352843
|
this.cause = cause;
|
|
352845
352844
|
this.name = "TerminalQuotaError";
|
|
352846
|
-
this.retryDelayMs =
|
|
352845
|
+
this.retryDelayMs = retryDelaySeconds ? retryDelaySeconds * 1e3 : void 0;
|
|
352847
352846
|
}
|
|
352848
352847
|
};
|
|
352849
352848
|
var RetryableQuotaError = class extends Error {
|
|
@@ -352853,7 +352852,7 @@ var RetryableQuotaError = class extends Error {
|
|
|
352853
352852
|
super(message);
|
|
352854
352853
|
this.cause = cause;
|
|
352855
352854
|
this.name = "RetryableQuotaError";
|
|
352856
|
-
this.retryDelayMs = retryDelaySeconds * 1e3;
|
|
352855
|
+
this.retryDelayMs = retryDelaySeconds ? retryDelaySeconds * 1e3 : void 0;
|
|
352857
352856
|
}
|
|
352858
352857
|
};
|
|
352859
352858
|
function parseDurationInSeconds(duration3) {
|
|
@@ -352891,7 +352890,7 @@ function classifyGoogleError(error2) {
|
|
|
352891
352890
|
code: 429,
|
|
352892
352891
|
message: errorMessage,
|
|
352893
352892
|
details: []
|
|
352894
|
-
}
|
|
352893
|
+
});
|
|
352895
352894
|
}
|
|
352896
352895
|
return error2;
|
|
352897
352896
|
}
|
|
@@ -352966,7 +352965,7 @@ Suggested retry after 60s.`, googleApiError, 60);
|
|
|
352966
352965
|
code: 429,
|
|
352967
352966
|
message: errorMessage,
|
|
352968
352967
|
details: []
|
|
352969
|
-
}
|
|
352968
|
+
});
|
|
352970
352969
|
}
|
|
352971
352970
|
return error2;
|
|
352972
352971
|
}
|
|
@@ -353534,6 +353533,8 @@ async function retryWithBackoff(fn, options2) {
|
|
|
353534
353533
|
const is500 = errorCode !== void 0 && errorCode >= 500 && errorCode < 600;
|
|
353535
353534
|
if (classifiedError instanceof RetryableQuotaError || is500) {
|
|
353536
353535
|
if (attempt >= maxAttempts) {
|
|
353536
|
+
const errorMessage = classifiedError instanceof Error ? classifiedError.message : "";
|
|
353537
|
+
debugLogger.warn(`Attempt ${attempt} failed${errorMessage ? `: ${errorMessage}` : ""}. Max attempts reached`);
|
|
353537
353538
|
if (onPersistent429) {
|
|
353538
353539
|
try {
|
|
353539
353540
|
const fallbackModel = await onPersistent429(authType, classifiedError);
|
|
@@ -353548,8 +353549,8 @@ async function retryWithBackoff(fn, options2) {
|
|
|
353548
353549
|
}
|
|
353549
353550
|
throw classifiedError instanceof RetryableQuotaError ? classifiedError : error2;
|
|
353550
353551
|
}
|
|
353551
|
-
if (classifiedError instanceof RetryableQuotaError) {
|
|
353552
|
-
|
|
353552
|
+
if (classifiedError instanceof RetryableQuotaError && classifiedError.retryDelayMs !== void 0) {
|
|
353553
|
+
debugLogger.warn(`Attempt ${attempt} failed: ${classifiedError.message}. Retrying after ${classifiedError.retryDelayMs}ms...`);
|
|
353553
353554
|
await delay2(classifiedError.retryDelayMs, signal);
|
|
353554
353555
|
continue;
|
|
353555
353556
|
} else {
|
|
@@ -382283,7 +382284,7 @@ var __filename = fileURLToPath10(import.meta.url);
|
|
|
382283
382284
|
var __dirname5 = path60.dirname(__filename);
|
|
382284
382285
|
async function getVersion() {
|
|
382285
382286
|
const pkgJson = await getPackageJson(__dirname5);
|
|
382286
|
-
return "0.22.
|
|
382287
|
+
return "0.22.5";
|
|
382287
382288
|
}
|
|
382288
382289
|
|
|
382289
382290
|
// packages/core/dist/src/code_assist/experiments/client_metadata.js
|