@google/gemini-cli 0.55.0-preview.1 → 0.55.0-preview.3
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-DMPPAMW5.js → chunk-2K3N3YWJ.js} +1 -1
- package/bundle/{chunk-F3GEJ37M.js → chunk-2YAEBNH4.js} +1 -1
- package/bundle/{chunk-G3NJ32VD.js → chunk-3JEIIDY3.js} +1 -1
- package/bundle/{chunk-YU5UI6S7.js → chunk-3KVUW3GS.js} +1 -1
- package/bundle/{chunk-3Q3RSCXS.js → chunk-4MK4F3LQ.js} +2 -2
- package/bundle/{chunk-SEQ766WD.js → chunk-4PVLKN7E.js} +1 -1
- package/bundle/{chunk-7LAM3MXG.js → chunk-5C4IPSFG.js} +1 -1
- package/bundle/{chunk-I535IUEN.js → chunk-6VBVRJ2T.js} +1 -1
- package/bundle/{chunk-LXWZUVJW.js → chunk-7U5FKJMS.js} +3 -3
- package/bundle/{chunk-GL46CQLD.js → chunk-BXJWVB6T.js} +7 -7
- package/bundle/chunk-CF6HJK4T.js +1571 -0
- package/bundle/{chunk-APDWRUAP.js → chunk-D7NKQXI3.js} +27 -14
- package/bundle/{chunk-AKJETY2D.js → chunk-DIJFIQU5.js} +9 -8
- package/bundle/{chunk-RXENTUH3.js → chunk-DW2J2NTU.js} +8 -5
- package/bundle/{chunk-UM7AN6ZZ.js → chunk-EBUEQDL4.js} +3 -3
- package/bundle/chunk-ENEDM4X3.js +512 -0
- package/bundle/{chunk-VHRT3UPF.js → chunk-ETEDB3N6.js} +2 -2
- package/bundle/{chunk-MWEFWYTU.js → chunk-FQNLDGXL.js} +1 -1
- package/bundle/{chunk-IBEJG5F5.js → chunk-GJBRSFPM.js} +7 -7
- package/bundle/{chunk-QQVXLF7U.js → chunk-IKOQM4YN.js} +3 -3
- package/bundle/chunk-MOTK2J3L.js +154 -0
- package/bundle/{chunk-A7NLEV6J.js → chunk-NQ7ACVH7.js} +2 -2
- package/bundle/{chunk-O6HG25DV.js → chunk-OKM3M2PX.js} +1 -1
- package/bundle/{chunk-TQPJD4W5.js → chunk-QJZS4YYR.js} +67 -54
- package/bundle/{chunk-KNRWWK34.js → chunk-QY6VB26P.js} +7659 -14286
- package/bundle/chunk-S35HA76T.js +398 -0
- package/bundle/chunk-V6HSKTFR.js +118 -0
- package/bundle/{chunk-G4NBAJCP.js → chunk-VPMDE76T.js} +46 -25
- package/bundle/chunk-WWUS7UCO.js +397244 -0
- package/bundle/{chunk-GPP3RO7B.js → chunk-XLLOEYE5.js} +1 -1
- package/bundle/chunk-XNQ2USVV.js +17332 -0
- package/bundle/chunk-YOSR3LGH.js +102505 -0
- package/bundle/{cleanup-2EQCXKR2.js → cleanup-6PJC7KVH.js} +2 -2
- package/bundle/{cleanup-CVITZEST.js → cleanup-AA32XASX.js} +2 -2
- package/bundle/{cleanup-JPURY2FN.js → cleanup-KJNT5CKE.js} +2 -2
- package/bundle/cleanup-W4XFBOYU.js +32 -0
- package/bundle/{core-M7EWVE7C.js → core-PJ4GTWLE.js} +1 -1
- package/bundle/{devtoolsService-LTCUHAKD.js → devtoolsService-BPCHKSK6.js} +2 -2
- package/bundle/{devtoolsService-2PJHOM3Z.js → devtoolsService-DDIV43LO.js} +2 -2
- package/bundle/{devtoolsService-G4J2W6MV.js → devtoolsService-SFT4J3TP.js} +4 -3
- package/bundle/devtoolsService-X4SBEWHU.js +4359 -0
- package/bundle/{dist-TXQI77ZL.js → dist-6SIQ6JNU.js} +1 -1
- package/bundle/{core-2KFPOGVU.js → dist-UVDHLJPD.js} +1 -1
- package/bundle/dist-VQ3F4FS5.js +2172 -0
- package/bundle/{gemini-QFKS36ZW.js → gemini-BMC63EGW.js} +14 -14
- package/bundle/{gemini-TOJXXBJZ.js → gemini-EYTXXZKY.js} +214 -198
- package/bundle/{gemini-4GL7B4FQ.js → gemini-MSC5T5EU.js} +14 -14
- package/bundle/gemini-PA23YMHK.js +17088 -0
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-NWP4ENQW.js → interactiveCli-5Y6AY63C.js} +67 -25
- package/bundle/{interactiveCli-UPSM5SHZ.js → interactiveCli-G6PWBLT5.js} +373 -312
- package/bundle/{interactiveCli-QFVYPM2G.js → interactiveCli-OUPTNZ47.js} +67 -25
- package/bundle/interactiveCli-T32DVN2I.js +34954 -0
- package/bundle/{liteRtServerManager-MU2XFPN4.js → liteRtServerManager-3MCOW5QD.js} +4 -4
- package/bundle/{liteRtServerManager-T2WZMOZK.js → liteRtServerManager-7IWRFNTW.js} +4 -4
- package/bundle/{liteRtServerManager-DILFQEEZ.js → liteRtServerManager-IRFTOINI.js} +4 -4
- package/bundle/liteRtServerManager-LVW27XGD.js +65 -0
- package/bundle/{oauth2-provider-VWRIMKTD.js → oauth2-provider-BPEC44QP.js} +1 -1
- package/bundle/{oauth2-provider-2QGZS53A.js → oauth2-provider-FSAA6HVA.js} +38 -72
- package/bundle/{oauth2-provider-QNQQSC5U.js → oauth2-provider-IVUO6NTZ.js} +1 -1
- package/bundle/oauth2-provider-PH6ZPS7W.js +235 -0
- package/bundle/{start-YV56XGWM.js → start-3M54SR5N.js} +6 -6
- package/bundle/{start-YWLQDUFC.js → start-EEVFRHCK.js} +6 -6
- package/bundle/{start-M7PLRASE.js → start-FC7N6JMG.js} +6 -6
- package/bundle/start-N5PPVI4S.js +18 -0
- package/package.json +1 -1
|
@@ -282559,8 +282559,8 @@ function isValidToolName(name3, options = {}) {
|
|
|
282559
282559
|
}
|
|
282560
282560
|
|
|
282561
282561
|
// packages/core/dist/src/generated/git-commit.js
|
|
282562
|
-
var GIT_COMMIT_INFO = "
|
|
282563
|
-
var CLI_VERSION = "0.55.0-preview.
|
|
282562
|
+
var GIT_COMMIT_INFO = "da3710eb9";
|
|
282563
|
+
var CLI_VERSION = "0.55.0-preview.2";
|
|
282564
282564
|
|
|
282565
282565
|
// packages/core/dist/src/ide/detect-ide.js
|
|
282566
282566
|
var IDE_DEFINITIONS = {
|
|
@@ -305823,7 +305823,7 @@ function getVersion() {
|
|
|
305823
305823
|
}
|
|
305824
305824
|
versionPromise = (async () => {
|
|
305825
305825
|
const pkgJson = await getPackageJson(__dirname4);
|
|
305826
|
-
return "0.55.0-preview.
|
|
305826
|
+
return "0.55.0-preview.2";
|
|
305827
305827
|
})();
|
|
305828
305828
|
return versionPromise;
|
|
305829
305829
|
}
|
|
@@ -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-BPEC44QP.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
|
}
|
|
@@ -377221,17 +377230,21 @@ var Config = class {
|
|
|
377221
377230
|
if (!bucket.modelId || bucket.remainingFraction == null) {
|
|
377222
377231
|
continue;
|
|
377223
377232
|
}
|
|
377233
|
+
let modelId = bucket.modelId;
|
|
377234
|
+
if (modelId === SECONDARY_GEMINI_3_5_FLASH_MODEL) {
|
|
377235
|
+
modelId = DEFAULT_GEMINI_3_5_FLASH_MODEL;
|
|
377236
|
+
}
|
|
377224
377237
|
let remaining;
|
|
377225
377238
|
let limit;
|
|
377226
377239
|
if (bucket.remainingAmount) {
|
|
377227
377240
|
remaining = parseInt(bucket.remainingAmount, 10);
|
|
377228
|
-
limit = bucket.remainingFraction > 0 ? Math.round(remaining / bucket.remainingFraction) : this.modelQuotas.get(
|
|
377241
|
+
limit = bucket.remainingFraction > 0 ? Math.round(remaining / bucket.remainingFraction) : this.modelQuotas.get(modelId)?.limit ?? 0;
|
|
377229
377242
|
} else {
|
|
377230
377243
|
limit = 100;
|
|
377231
377244
|
remaining = Math.round(bucket.remainingFraction * limit);
|
|
377232
377245
|
}
|
|
377233
377246
|
if (!isNaN(remaining) && Number.isFinite(limit) && limit > 0) {
|
|
377234
|
-
this.modelQuotas.set(
|
|
377247
|
+
this.modelQuotas.set(modelId, {
|
|
377235
377248
|
remaining,
|
|
377236
377249
|
limit,
|
|
377237
377250
|
resetTime: bucket.resetTime
|
|
@@ -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-WWUS7UCO.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,6 +1,9 @@
|
|
|
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
|
AuthProviderType,
|
|
4
|
+
AuthType,
|
|
5
|
+
CoreEvent,
|
|
6
|
+
CoreToolCallStatus,
|
|
4
7
|
DEFAULT_MODEL_CONFIGS,
|
|
5
8
|
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
|
|
6
9
|
EDITOR_OPTIONS,
|
|
@@ -28,7 +31,7 @@ import {
|
|
|
28
31
|
partListUnionToString,
|
|
29
32
|
require_strip_json_comments,
|
|
30
33
|
sanitizeFilenamePart
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-WWUS7UCO.js";
|
|
32
35
|
import {
|
|
33
36
|
__commonJS,
|
|
34
37
|
__require,
|
|
@@ -10225,7 +10228,7 @@ function convertSessionToHistoryFormats(messages) {
|
|
|
10225
10228
|
args: tool.args,
|
|
10226
10229
|
description: tool.description || "",
|
|
10227
10230
|
renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
|
|
10228
|
-
status: tool.status === "success" ?
|
|
10231
|
+
status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
|
|
10229
10232
|
resultDisplay: tool.resultDisplay,
|
|
10230
10233
|
confirmationDetails: void 0
|
|
10231
10234
|
}))
|
|
@@ -16289,8 +16292,8 @@ var LoadedSettings = class {
|
|
|
16289
16292
|
// React will pass a listener fn into this subscribe fn
|
|
16290
16293
|
// that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
|
|
16291
16294
|
subscribe(listener) {
|
|
16292
|
-
coreEvents.on(
|
|
16293
|
-
return () => coreEvents.off(
|
|
16295
|
+
coreEvents.on(CoreEvent.SettingsChanged, listener);
|
|
16296
|
+
return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
|
|
16294
16297
|
}
|
|
16295
16298
|
getSnapshot() {
|
|
16296
16299
|
return this._snapshot;
|
|
@@ -16434,7 +16437,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
|
|
|
16434
16437
|
}
|
|
16435
16438
|
}
|
|
16436
16439
|
let value = "cloudshell-gca";
|
|
16437
|
-
if (selectedAuthType ===
|
|
16440
|
+
if (selectedAuthType === AuthType.USE_VERTEX_AI) {
|
|
16438
16441
|
value = process2.env[USER_GCP_PROJECT];
|
|
16439
16442
|
}
|
|
16440
16443
|
if (envFilePath && fs4.existsSync(envFilePath)) {
|
|
@@ -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-3JEIIDY3.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-3KVUW3GS.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QY6VB26P.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|