@google/gemini-cli 0.55.0-preview.1 → 0.55.0-preview.2
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/bundle/{chunk-3Q3RSCXS.js → chunk-2NTEXQZI.js} +2 -2
- package/bundle/{chunk-O6HG25DV.js → chunk-2ZWCUTMN.js} +1 -1
- package/bundle/{chunk-DMPPAMW5.js → chunk-3OPKUUXP.js} +1 -1
- package/bundle/{chunk-I535IUEN.js → chunk-4C7ON4TD.js} +1 -1
- package/bundle/{chunk-YU5UI6S7.js → chunk-4SFKECJB.js} +1 -1
- package/bundle/{chunk-F3GEJ37M.js → chunk-57ZLFNIU.js} +1 -1
- package/bundle/{chunk-SEQ766WD.js → chunk-7IYUUE2H.js} +1 -1
- package/bundle/{chunk-APDWRUAP.js → chunk-A4YWS44A.js} +19 -10
- package/bundle/{chunk-7LAM3MXG.js → chunk-CBX65YIB.js} +1 -1
- package/bundle/{chunk-G3NJ32VD.js → chunk-CYJHOZAD.js} +1 -1
- package/bundle/{chunk-AKJETY2D.js → chunk-DBPSBJMI.js} +9 -8
- package/bundle/{chunk-VHRT3UPF.js → chunk-DRN2VYCZ.js} +2 -2
- package/bundle/{chunk-LXWZUVJW.js → chunk-DSCF5EA6.js} +3 -3
- package/bundle/{chunk-A7NLEV6J.js → chunk-FH7GCVZY.js} +2 -2
- package/bundle/{chunk-G4NBAJCP.js → chunk-HZZM77SO.js} +40 -23
- package/bundle/{chunk-UM7AN6ZZ.js → chunk-IHR5TZ6N.js} +3 -3
- package/bundle/{chunk-MWEFWYTU.js → chunk-J27NXCYL.js} +1 -1
- package/bundle/chunk-J6DC57TM.js +1571 -0
- package/bundle/{chunk-QQVXLF7U.js → chunk-KII3XXCP.js} +3 -3
- package/bundle/chunk-L6Q242KC.js +512 -0
- package/bundle/chunk-LVOM4PEE.js +398 -0
- package/bundle/{chunk-KNRWWK34.js → chunk-MLTI5CK6.js} +7653 -14284
- package/bundle/{chunk-RXENTUH3.js → chunk-O5GQF2L7.js} +8 -5
- package/bundle/{chunk-IBEJG5F5.js → chunk-OC55SY62.js} +7 -7
- package/bundle/chunk-PTZIAOG5.js +118 -0
- package/bundle/{chunk-TQPJD4W5.js → chunk-QPGTVRXP.js} +67 -54
- package/bundle/chunk-R3S5PP5S.js +397240 -0
- package/bundle/chunk-S3XRZJYO.js +154 -0
- package/bundle/chunk-SEHUSFSL.js +17332 -0
- package/bundle/{chunk-GL46CQLD.js → chunk-T36P7MFE.js} +7 -7
- package/bundle/chunk-UXD5COS4.js +102505 -0
- package/bundle/{chunk-GPP3RO7B.js → chunk-XWGJPCDB.js} +1 -1
- package/bundle/{cleanup-2EQCXKR2.js → cleanup-PYHN72B4.js} +2 -2
- package/bundle/{cleanup-CVITZEST.js → cleanup-QOIB4MC5.js} +2 -2
- package/bundle/{cleanup-JPURY2FN.js → cleanup-X7SPIVY6.js} +2 -2
- package/bundle/cleanup-XHKLOUOX.js +32 -0
- package/bundle/{core-M7EWVE7C.js → core-TM4S2KC6.js} +1 -1
- package/bundle/{devtoolsService-LTCUHAKD.js → devtoolsService-QXH36QMO.js} +2 -2
- package/bundle/{devtoolsService-2PJHOM3Z.js → devtoolsService-XNULR5OM.js} +2 -2
- package/bundle/{devtoolsService-G4J2W6MV.js → devtoolsService-XP7RODGG.js} +4 -3
- package/bundle/devtoolsService-YBK5NQJR.js +4359 -0
- package/bundle/{dist-TXQI77ZL.js → dist-DUXHKH4A.js} +1 -1
- package/bundle/{core-2KFPOGVU.js → dist-FCM7NH26.js} +1 -1
- package/bundle/dist-LH5DRLX7.js +2172 -0
- package/bundle/{gemini-QFKS36ZW.js → gemini-A7HOBIKY.js} +13 -13
- package/bundle/{gemini-TOJXXBJZ.js → gemini-HDAYOIW2.js} +214 -198
- package/bundle/gemini-ORTIIX7J.js +17088 -0
- package/bundle/{gemini-4GL7B4FQ.js → gemini-ZUILAPR6.js} +13 -13
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-QFVYPM2G.js → interactiveCli-H524RKEH.js} +8 -8
- package/bundle/{interactiveCli-NWP4ENQW.js → interactiveCli-KX3U7SFD.js} +8 -8
- package/bundle/interactiveCli-O4YSZIKG.js +34912 -0
- package/bundle/{interactiveCli-UPSM5SHZ.js → interactiveCli-YAAI2B6S.js} +315 -296
- package/bundle/{liteRtServerManager-MU2XFPN4.js → liteRtServerManager-FTW42YZF.js} +4 -4
- package/bundle/{liteRtServerManager-T2WZMOZK.js → liteRtServerManager-NW33H3DY.js} +4 -4
- package/bundle/{liteRtServerManager-DILFQEEZ.js → liteRtServerManager-PRXJGWUQ.js} +4 -4
- package/bundle/liteRtServerManager-RP2Z5PSZ.js +65 -0
- package/bundle/{oauth2-provider-QNQQSC5U.js → oauth2-provider-AXFTVNOH.js} +1 -1
- package/bundle/{oauth2-provider-VWRIMKTD.js → oauth2-provider-JZQDXWRM.js} +1 -1
- package/bundle/{oauth2-provider-2QGZS53A.js → oauth2-provider-UKW3UFLQ.js} +38 -72
- package/bundle/oauth2-provider-X4GQTJLG.js +235 -0
- package/bundle/{start-YV56XGWM.js → start-EIHA5TWI.js} +6 -6
- package/bundle/{start-YWLQDUFC.js → start-ODF2OV65.js} +6 -6
- package/bundle/{start-M7PLRASE.js → start-ONHNJJG7.js} +6 -6
- package/bundle/start-TSZCFX4W.js +18 -0
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7IYUUE2H.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MLTI5CK6.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
checkExhaustive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HZZM77SO.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__toESM
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CBX65YIB.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7IYUUE2H.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -282559,7 +282559,7 @@ function isValidToolName(name3, options = {}) {
|
|
|
282559
282559
|
}
|
|
282560
282560
|
|
|
282561
282561
|
// packages/core/dist/src/generated/git-commit.js
|
|
282562
|
-
var GIT_COMMIT_INFO = "
|
|
282562
|
+
var GIT_COMMIT_INFO = "b39816c87";
|
|
282563
282563
|
var CLI_VERSION = "0.55.0-preview.1";
|
|
282564
282564
|
|
|
282565
282565
|
// packages/core/dist/src/ide/detect-ide.js
|
|
@@ -306550,11 +306550,15 @@ function classifyGoogleError(error40) {
|
|
|
306550
306550
|
return new RetryableQuotaError(errorMessage, cause, retryDelaySeconds);
|
|
306551
306551
|
}
|
|
306552
306552
|
} else if (status2 === 429 || status2 === 499 || status2 === 503) {
|
|
306553
|
-
|
|
306553
|
+
const cause = googleApiError ?? {
|
|
306554
306554
|
code: status2,
|
|
306555
306555
|
message: errorMessage,
|
|
306556
306556
|
details: []
|
|
306557
|
-
}
|
|
306557
|
+
};
|
|
306558
|
+
if (/exhausted your capacity|capacity exceeded|MODEL_CAPACITY_EXHAUSTED/i.test(errorMessage)) {
|
|
306559
|
+
return new TerminalQuotaError(errorMessage, cause);
|
|
306560
|
+
}
|
|
306561
|
+
return new RetryableQuotaError(errorMessage, cause);
|
|
306558
306562
|
}
|
|
306559
306563
|
return error40;
|
|
306560
306564
|
}
|
|
@@ -306577,18 +306581,19 @@ function classifyGoogleError(error40) {
|
|
|
306577
306581
|
}
|
|
306578
306582
|
}
|
|
306579
306583
|
if (errorInfo) {
|
|
306580
|
-
if (errorInfo.reason === "
|
|
306584
|
+
if (errorInfo.reason === "MODEL_CAPACITY_EXHAUSTED" || errorInfo.reason === "MODEL_CAPACITY_EXCEEDED") {
|
|
306581
306585
|
return new TerminalQuotaError(googleApiError.message, googleApiError, delaySeconds, errorInfo.reason);
|
|
306582
306586
|
}
|
|
306583
|
-
if (errorInfo.reason === "
|
|
306584
|
-
|
|
306585
|
-
return new TerminalQuotaError(googleApiError.message, googleApiError, delaySeconds, errorInfo.reason);
|
|
306586
|
-
}
|
|
306587
|
+
if (errorInfo.reason === "INSUFFICIENT_G1_CREDITS_BALANCE") {
|
|
306588
|
+
return new TerminalQuotaError(googleApiError.message, googleApiError, delaySeconds, errorInfo.reason);
|
|
306587
306589
|
}
|
|
306588
306590
|
if (errorInfo.domain) {
|
|
306589
306591
|
if (isCloudCodeDomain(errorInfo.domain)) {
|
|
306590
306592
|
if (errorInfo.reason === "RATE_LIMIT_EXCEEDED") {
|
|
306591
|
-
|
|
306593
|
+
if (delaySeconds === void 0) {
|
|
306594
|
+
return new TerminalQuotaError(googleApiError.message, googleApiError, void 0, errorInfo.reason);
|
|
306595
|
+
}
|
|
306596
|
+
const effectiveDelay = delaySeconds;
|
|
306592
306597
|
if (effectiveDelay > MAX_RETRYABLE_DELAY_SECONDS) {
|
|
306593
306598
|
return new TerminalQuotaError(googleApiError.message, googleApiError, effectiveDelay, errorInfo.reason);
|
|
306594
306599
|
}
|
|
@@ -306624,6 +306629,9 @@ Suggested retry after 60s.`, googleApiError, 60);
|
|
|
306624
306629
|
Suggested retry after 60s.`, googleApiError, 60);
|
|
306625
306630
|
}
|
|
306626
306631
|
}
|
|
306632
|
+
if (/exhausted your capacity|capacity exceeded|MODEL_CAPACITY_EXHAUSTED/i.test(errorMessage)) {
|
|
306633
|
+
return new TerminalQuotaError(errorMessage, googleApiError);
|
|
306634
|
+
}
|
|
306627
306635
|
return new RetryableQuotaError(errorMessage, googleApiError);
|
|
306628
306636
|
}
|
|
306629
306637
|
function extractErrorMessage(error40) {
|
|
@@ -338550,7 +338558,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
338550
338558
|
return provider;
|
|
338551
338559
|
}
|
|
338552
338560
|
case "oauth2": {
|
|
338553
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
338561
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-X4GQTJLG.js");
|
|
338554
338562
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
338555
338563
|
await provider.initialize();
|
|
338556
338564
|
return provider;
|
|
@@ -376963,6 +376971,7 @@ var Config = class {
|
|
|
376963
376971
|
this.modelAvailabilityService.reset();
|
|
376964
376972
|
}
|
|
376965
376973
|
activateFallbackMode(model, failedModel) {
|
|
376974
|
+
debugLogger.log(`Model fallback activated: switching from ${failedModel ?? "unknown"} to ${model}`);
|
|
376966
376975
|
if (this.getActiveModel() !== model) {
|
|
376967
376976
|
this.setModel(model, true);
|
|
376968
376977
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-S3XRZJYO.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
|
+
CoreToolCallStatus,
|
|
3
4
|
checkExhaustive
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MLTI5CK6.js";
|
|
5
6
|
import {
|
|
6
7
|
__commonJS,
|
|
7
8
|
__toESM
|
|
@@ -464,19 +465,19 @@ var require_react = __commonJS({
|
|
|
464
465
|
var import_react = __toESM(require_react(), 1);
|
|
465
466
|
function mapCoreStatusToDisplayStatus(coreStatus) {
|
|
466
467
|
switch (coreStatus) {
|
|
467
|
-
case
|
|
468
|
+
case CoreToolCallStatus.Validating:
|
|
468
469
|
return "Pending" /* Pending */;
|
|
469
|
-
case
|
|
470
|
+
case CoreToolCallStatus.AwaitingApproval:
|
|
470
471
|
return "Confirming" /* Confirming */;
|
|
471
|
-
case
|
|
472
|
+
case CoreToolCallStatus.Executing:
|
|
472
473
|
return "Executing" /* Executing */;
|
|
473
|
-
case
|
|
474
|
+
case CoreToolCallStatus.Success:
|
|
474
475
|
return "Success" /* Success */;
|
|
475
|
-
case
|
|
476
|
+
case CoreToolCallStatus.Cancelled:
|
|
476
477
|
return "Canceled" /* Canceled */;
|
|
477
|
-
case
|
|
478
|
+
case CoreToolCallStatus.Error:
|
|
478
479
|
return "Error" /* Error */;
|
|
479
|
-
case
|
|
480
|
+
case CoreToolCallStatus.Scheduled:
|
|
480
481
|
return "Pending" /* Pending */;
|
|
481
482
|
default:
|
|
482
483
|
return checkExhaustive(coreStatus);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CBX65YIB.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R3S5PP5S.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
exitCli,
|
|
4
4
|
require_source
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-57ZLFNIU.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-O5GQF2L7.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MLTI5CK6.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-S3XRZJYO.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HZZM77SO.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -282830,8 +282830,8 @@ function isValidToolName(name3, options = {}) {
|
|
|
282830
282830
|
}
|
|
282831
282831
|
|
|
282832
282832
|
// packages/core/src/generated/git-commit.ts
|
|
282833
|
-
var GIT_COMMIT_INFO = "
|
|
282834
|
-
var CLI_VERSION = "0.55.0-
|
|
282833
|
+
var GIT_COMMIT_INFO = "b39816c87";
|
|
282834
|
+
var CLI_VERSION = "0.55.0-preview.1";
|
|
282835
282835
|
|
|
282836
282836
|
// packages/core/src/ide/detect-ide.ts
|
|
282837
282837
|
var IDE_DEFINITIONS = {
|
|
@@ -306413,7 +306413,7 @@ function getVersion() {
|
|
|
306413
306413
|
}
|
|
306414
306414
|
versionPromise = (async () => {
|
|
306415
306415
|
const pkgJson = await getPackageJson(__dirname4);
|
|
306416
|
-
return "0.55.0-
|
|
306416
|
+
return "0.55.0-preview.1";
|
|
306417
306417
|
})();
|
|
306418
306418
|
return versionPromise;
|
|
306419
306419
|
}
|
|
@@ -307221,14 +307221,17 @@ function classifyGoogleError(error40) {
|
|
|
307221
307221
|
return new RetryableQuotaError(errorMessage, cause, retryDelaySeconds);
|
|
307222
307222
|
}
|
|
307223
307223
|
} else if (status2 === 429 || status2 === 499 || status2 === 503) {
|
|
307224
|
-
|
|
307225
|
-
|
|
307226
|
-
|
|
307227
|
-
|
|
307228
|
-
|
|
307229
|
-
|
|
307230
|
-
|
|
307231
|
-
)
|
|
307224
|
+
const cause = googleApiError ?? {
|
|
307225
|
+
code: status2,
|
|
307226
|
+
message: errorMessage,
|
|
307227
|
+
details: []
|
|
307228
|
+
};
|
|
307229
|
+
if (/exhausted your capacity|capacity exceeded|MODEL_CAPACITY_EXHAUSTED/i.test(
|
|
307230
|
+
errorMessage
|
|
307231
|
+
)) {
|
|
307232
|
+
return new TerminalQuotaError(errorMessage, cause);
|
|
307233
|
+
}
|
|
307234
|
+
return new RetryableQuotaError(errorMessage, cause);
|
|
307232
307235
|
}
|
|
307233
307236
|
return error40;
|
|
307234
307237
|
}
|
|
@@ -307260,7 +307263,7 @@ function classifyGoogleError(error40) {
|
|
|
307260
307263
|
}
|
|
307261
307264
|
}
|
|
307262
307265
|
if (errorInfo) {
|
|
307263
|
-
if (errorInfo.reason === "
|
|
307266
|
+
if (errorInfo.reason === "MODEL_CAPACITY_EXHAUSTED" || errorInfo.reason === "MODEL_CAPACITY_EXCEEDED") {
|
|
307264
307267
|
return new TerminalQuotaError(
|
|
307265
307268
|
googleApiError.message,
|
|
307266
307269
|
googleApiError,
|
|
@@ -307268,20 +307271,26 @@ function classifyGoogleError(error40) {
|
|
|
307268
307271
|
errorInfo.reason
|
|
307269
307272
|
);
|
|
307270
307273
|
}
|
|
307271
|
-
if (errorInfo.reason === "
|
|
307272
|
-
|
|
307273
|
-
|
|
307274
|
-
|
|
307275
|
-
|
|
307276
|
-
|
|
307277
|
-
|
|
307278
|
-
);
|
|
307279
|
-
}
|
|
307274
|
+
if (errorInfo.reason === "INSUFFICIENT_G1_CREDITS_BALANCE") {
|
|
307275
|
+
return new TerminalQuotaError(
|
|
307276
|
+
googleApiError.message,
|
|
307277
|
+
googleApiError,
|
|
307278
|
+
delaySeconds,
|
|
307279
|
+
errorInfo.reason
|
|
307280
|
+
);
|
|
307280
307281
|
}
|
|
307281
307282
|
if (errorInfo.domain) {
|
|
307282
307283
|
if (isCloudCodeDomain(errorInfo.domain)) {
|
|
307283
307284
|
if (errorInfo.reason === "RATE_LIMIT_EXCEEDED") {
|
|
307284
|
-
|
|
307285
|
+
if (delaySeconds === void 0) {
|
|
307286
|
+
return new TerminalQuotaError(
|
|
307287
|
+
googleApiError.message,
|
|
307288
|
+
googleApiError,
|
|
307289
|
+
void 0,
|
|
307290
|
+
errorInfo.reason
|
|
307291
|
+
);
|
|
307292
|
+
}
|
|
307293
|
+
const effectiveDelay = delaySeconds;
|
|
307285
307294
|
if (effectiveDelay > MAX_RETRYABLE_DELAY_SECONDS) {
|
|
307286
307295
|
return new TerminalQuotaError(
|
|
307287
307296
|
googleApiError.message,
|
|
@@ -307347,6 +307356,11 @@ Suggested retry after 60s.`,
|
|
|
307347
307356
|
);
|
|
307348
307357
|
}
|
|
307349
307358
|
}
|
|
307359
|
+
if (/exhausted your capacity|capacity exceeded|MODEL_CAPACITY_EXHAUSTED/i.test(
|
|
307360
|
+
errorMessage
|
|
307361
|
+
)) {
|
|
307362
|
+
return new TerminalQuotaError(errorMessage, googleApiError);
|
|
307363
|
+
}
|
|
307350
307364
|
return new RetryableQuotaError(errorMessage, googleApiError);
|
|
307351
307365
|
}
|
|
307352
307366
|
function extractErrorMessage(error40) {
|
|
@@ -341222,7 +341236,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
341222
341236
|
return provider;
|
|
341223
341237
|
}
|
|
341224
341238
|
case "oauth2": {
|
|
341225
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
341239
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-AXFTVNOH.js");
|
|
341226
341240
|
const provider = new OAuth2AuthProvider(
|
|
341227
341241
|
authConfig,
|
|
341228
341242
|
options.agentName ?? "unknown",
|
|
@@ -382797,6 +382811,9 @@ var Config = class {
|
|
|
382797
382811
|
this.modelAvailabilityService.reset();
|
|
382798
382812
|
}
|
|
382799
382813
|
activateFallbackMode(model, failedModel) {
|
|
382814
|
+
debugLogger.log(
|
|
382815
|
+
`Model fallback activated: switching from ${failedModel ?? "unknown"} to ${model}`
|
|
382816
|
+
);
|
|
382800
382817
|
if (this.getActiveModel() !== model) {
|
|
382801
382818
|
this.setModel(model, true);
|
|
382802
382819
|
}
|
|
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
exitCli,
|
|
4
4
|
require_source
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3OPKUUXP.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SEHUSFSL.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-R3S5PP5S.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|