@google/gemini-cli 0.55.0-nightly.20260806.g761f604c1 → 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.
Files changed (66) hide show
  1. package/bundle/{chunk-OFYTDFLU.js → chunk-2NTEXQZI.js} +2 -2
  2. package/bundle/{chunk-AKJETY2D.js → chunk-2ZWCUTMN.js} +1 -1
  3. package/bundle/{chunk-6E755NOJ.js → chunk-3OPKUUXP.js} +1 -1
  4. package/bundle/{chunk-5AZARMUT.js → chunk-4C7ON4TD.js} +1 -1
  5. package/bundle/{chunk-P7G76HHQ.js → chunk-4SFKECJB.js} +1 -1
  6. package/bundle/{chunk-7E3VA6PD.js → chunk-57ZLFNIU.js} +1 -1
  7. package/bundle/{chunk-MWEFWYTU.js → chunk-7IYUUE2H.js} +1 -1
  8. package/bundle/{chunk-2SUDMSME.js → chunk-A4YWS44A.js} +21 -12
  9. package/bundle/{chunk-NNPH2PPS.js → chunk-CBX65YIB.js} +1 -1
  10. package/bundle/{chunk-F3GEJ37M.js → chunk-CYJHOZAD.js} +1 -1
  11. package/bundle/{chunk-UJTWLKK5.js → chunk-DBPSBJMI.js} +1 -1
  12. package/bundle/{chunk-6YIBHKLS.js → chunk-DRN2VYCZ.js} +2 -2
  13. package/bundle/{chunk-FIZ4RR7Y.js → chunk-DSCF5EA6.js} +3 -3
  14. package/bundle/{chunk-A7NLEV6J.js → chunk-FH7GCVZY.js} +2 -2
  15. package/bundle/{chunk-G4NBAJCP.js → chunk-HZZM77SO.js} +40 -23
  16. package/bundle/{chunk-2TCZ6F5S.js → chunk-IHR5TZ6N.js} +3 -3
  17. package/bundle/{chunk-J4GFHPWZ.js → chunk-J27NXCYL.js} +1 -1
  18. package/bundle/{chunk-X7PTRTQ6.js → chunk-J6DC57TM.js} +1 -1
  19. package/bundle/{chunk-S3NPW7DG.js → chunk-KII3XXCP.js} +3 -3
  20. package/bundle/{chunk-X5NDVK5Y.js → chunk-L6Q242KC.js} +1 -1
  21. package/bundle/{chunk-4EQHII2T.js → chunk-LVOM4PEE.js} +2 -2
  22. package/bundle/{chunk-3W2YDBHJ.js → chunk-MLTI5CK6.js} +21 -12
  23. package/bundle/{chunk-QNFIYC5M.js → chunk-O5GQF2L7.js} +1 -1
  24. package/bundle/{chunk-QXGYOVFP.js → chunk-OC55SY62.js} +7 -7
  25. package/bundle/{chunk-LXWZUVJW.js → chunk-PTZIAOG5.js} +3 -3
  26. package/bundle/{chunk-TLROWCS3.js → chunk-QPGTVRXP.js} +7 -7
  27. package/bundle/{chunk-TB4EIT33.js → chunk-R3S5PP5S.js} +21 -12
  28. package/bundle/{chunk-NQQ5BPPE.js → chunk-S3XRZJYO.js} +1 -1
  29. package/bundle/{chunk-QNGVTZYH.js → chunk-SEHUSFSL.js} +1 -1
  30. package/bundle/{chunk-GL46CQLD.js → chunk-T36P7MFE.js} +7 -7
  31. package/bundle/{chunk-YGJ3HWHX.js → chunk-UXD5COS4.js} +7 -7
  32. package/bundle/{chunk-GPP3RO7B.js → chunk-XWGJPCDB.js} +1 -1
  33. package/bundle/{cleanup-2EQCXKR2.js → cleanup-PYHN72B4.js} +2 -2
  34. package/bundle/{cleanup-KZPV2U44.js → cleanup-QOIB4MC5.js} +2 -2
  35. package/bundle/{cleanup-MEGDM4E2.js → cleanup-X7SPIVY6.js} +2 -2
  36. package/bundle/{cleanup-NOZFUCQD.js → cleanup-XHKLOUOX.js} +2 -2
  37. package/bundle/{core-2KFPOGVU.js → core-TM4S2KC6.js} +1 -1
  38. package/bundle/{devtoolsService-53XSUGGF.js → devtoolsService-QXH36QMO.js} +2 -2
  39. package/bundle/{devtoolsService-2PJHOM3Z.js → devtoolsService-XNULR5OM.js} +2 -2
  40. package/bundle/{devtoolsService-BQQW6DVL.js → devtoolsService-XP7RODGG.js} +2 -2
  41. package/bundle/{devtoolsService-HUMWS33B.js → devtoolsService-YBK5NQJR.js} +2 -2
  42. package/bundle/{dist-3T5ZNGLU.js → dist-DUXHKH4A.js} +1 -1
  43. package/bundle/{dist-K6NIDRK2.js → dist-FCM7NH26.js} +1 -1
  44. package/bundle/{dist-WGGL7RBC.js → dist-LH5DRLX7.js} +1 -1
  45. package/bundle/{gemini-6BOKQ66I.js → gemini-A7HOBIKY.js} +14 -14
  46. package/bundle/{gemini-EENCCAGU.js → gemini-HDAYOIW2.js} +14 -14
  47. package/bundle/{gemini-SFB75K4K.js → gemini-ORTIIX7J.js} +14 -14
  48. package/bundle/{gemini-TOJXXBJZ.js → gemini-ZUILAPR6.js} +14 -14
  49. package/bundle/gemini.js +7 -7
  50. package/bundle/{interactiveCli-UPSM5SHZ.js → interactiveCli-H524RKEH.js} +8 -8
  51. package/bundle/{interactiveCli-FVF4HDWY.js → interactiveCli-KX3U7SFD.js} +8 -8
  52. package/bundle/{interactiveCli-MLNJFTP2.js → interactiveCli-O4YSZIKG.js} +8 -8
  53. package/bundle/{interactiveCli-GPY3UOVY.js → interactiveCli-YAAI2B6S.js} +8 -8
  54. package/bundle/{liteRtServerManager-BQCAH5UT.js → liteRtServerManager-FTW42YZF.js} +4 -4
  55. package/bundle/{liteRtServerManager-JXODPBXG.js → liteRtServerManager-NW33H3DY.js} +4 -4
  56. package/bundle/{liteRtServerManager-KNEPOTCN.js → liteRtServerManager-PRXJGWUQ.js} +4 -4
  57. package/bundle/{liteRtServerManager-MU2XFPN4.js → liteRtServerManager-RP2Z5PSZ.js} +4 -4
  58. package/bundle/{oauth2-provider-QNQQSC5U.js → oauth2-provider-AXFTVNOH.js} +1 -1
  59. package/bundle/{oauth2-provider-LBKTRVNH.js → oauth2-provider-JZQDXWRM.js} +1 -1
  60. package/bundle/{oauth2-provider-N3VCBPCZ.js → oauth2-provider-UKW3UFLQ.js} +1 -1
  61. package/bundle/{oauth2-provider-VTJMFZ6K.js → oauth2-provider-X4GQTJLG.js} +1 -1
  62. package/bundle/{start-4VH4R7LG.js → start-EIHA5TWI.js} +6 -6
  63. package/bundle/{start-6PGRJRDL.js → start-ODF2OV65.js} +6 -6
  64. package/bundle/{start-BMB33EQC.js → start-ONHNJJG7.js} +6 -6
  65. package/bundle/{start-M7PLRASE.js → start-TSZCFX4W.js} +6 -6
  66. 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-NNPH2PPS.js";
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-3W2YDBHJ.js";
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-G4NBAJCP.js";
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-J4GFHPWZ.js";
4
+ } from "./chunk-CBX65YIB.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  CoreToolCallStatus,
4
4
  checkExhaustive
5
- } from "./chunk-3W2YDBHJ.js";
5
+ } from "./chunk-A4YWS44A.js";
6
6
  import {
7
7
  __commonJS,
8
8
  __toESM
@@ -31,7 +31,7 @@ import {
31
31
  partListUnionToString,
32
32
  require_strip_json_comments,
33
33
  sanitizeFilenamePart
34
- } from "./chunk-3W2YDBHJ.js";
34
+ } from "./chunk-A4YWS44A.js";
35
35
  import {
36
36
  __commonJS,
37
37
  __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-NNPH2PPS.js";
4
+ } from "./chunk-7IYUUE2H.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-G4NBAJCP.js";
8
+ } from "./chunk-MLTI5CK6.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -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 = "761f604c1";
282563
- var CLI_VERSION = "0.55.0-nightly.20260806.g761f604c1";
282562
+ var GIT_COMMIT_INFO = "b39816c87";
282563
+ var CLI_VERSION = "0.55.0-preview.1";
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-nightly.20260806.g761f604c1";
305826
+ return "0.55.0-preview.1";
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
- return new RetryableQuotaError(errorMessage, googleApiError ?? {
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 === "INSUFFICIENT_G1_CREDITS_BALANCE") {
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 === "MODEL_CAPACITY_EXHAUSTED" || errorInfo.reason === "MODEL_CAPACITY_EXCEEDED") {
306584
- if (delaySeconds === void 0) {
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
- const effectiveDelay = delaySeconds ?? 10;
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-N3VCBPCZ.js");
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
  }
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-3W2YDBHJ.js";
8
+ } from "./chunk-R3S5PP5S.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises 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
  runExitCleanup
4
- } from "./chunk-MWEFWYTU.js";
4
+ } from "./chunk-S3XRZJYO.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  CoreToolCallStatus,
4
4
  checkExhaustive
5
- } from "./chunk-2SUDMSME.js";
5
+ } from "./chunk-MLTI5CK6.js";
6
6
  import {
7
7
  __commonJS,
8
8
  __toESM
@@ -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-J4GFHPWZ.js";
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-2SUDMSME.js";
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-6E755NOJ.js";
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-QNFIYC5M.js";
17
+ } from "./chunk-O5GQF2L7.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-2SUDMSME.js";
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-MWEFWYTU.js";
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-G4NBAJCP.js";
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 = "761f604c1";
282834
- var CLI_VERSION = "0.55.0-nightly.20260729.g3499c84f7";
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-nightly.20260729.g3499c84f7";
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
- return new RetryableQuotaError(
307225
- errorMessage,
307226
- googleApiError ?? {
307227
- code: status2,
307228
- message: errorMessage,
307229
- details: []
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 === "INSUFFICIENT_G1_CREDITS_BALANCE") {
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 === "MODEL_CAPACITY_EXHAUSTED" || errorInfo.reason === "MODEL_CAPACITY_EXCEEDED") {
307272
- if (delaySeconds === void 0) {
307273
- return new TerminalQuotaError(
307274
- googleApiError.message,
307275
- googleApiError,
307276
- delaySeconds,
307277
- errorInfo.reason
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
- const effectiveDelay = delaySeconds ?? 10;
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-QNQQSC5U.js");
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-X7PTRTQ6.js";
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-QNGVTZYH.js";
17
+ } from "./chunk-SEHUSFSL.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-TB4EIT33.js";
20
+ } from "./chunk-R3S5PP5S.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-2SUDMSME.js";
8
+ } from "./chunk-A4YWS44A.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises 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
  runExitCleanup
4
- } from "./chunk-NQQ5BPPE.js";
4
+ } from "./chunk-J27NXCYL.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -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-7E3VA6PD.js";
5
+ } from "./chunk-J6DC57TM.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-P7G76HHQ.js";
17
+ } from "./chunk-4SFKECJB.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-3W2YDBHJ.js";
20
+ } from "./chunk-A4YWS44A.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  CoreToolCallStatus,
4
4
  checkExhaustive
5
- } from "./chunk-TB4EIT33.js";
5
+ } from "./chunk-R3S5PP5S.js";
6
6
  import {
7
7
  __commonJS,
8
8
  __toESM
@@ -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-NQQ5BPPE.js";
4
+ } from "./chunk-J27NXCYL.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-TB4EIT33.js";
10
+ } from "./chunk-A4YWS44A.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -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 = "761f604c1";
282563
- var CLI_VERSION = "0.55.0-nightly.20260729.g3499c84f7";
282562
+ var GIT_COMMIT_INFO = "b39816c87";
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-nightly.20260729.g3499c84f7";
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
- return new RetryableQuotaError(errorMessage, googleApiError ?? {
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 === "INSUFFICIENT_G1_CREDITS_BALANCE") {
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 === "MODEL_CAPACITY_EXHAUSTED" || errorInfo.reason === "MODEL_CAPACITY_EXCEEDED") {
306584
- if (delaySeconds === void 0) {
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
- const effectiveDelay = delaySeconds ?? 10;
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-LBKTRVNH.js");
338561
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-JZQDXWRM.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
  }
@@ -31,7 +31,7 @@ import {
31
31
  partListUnionToString,
32
32
  require_strip_json_comments,
33
33
  sanitizeFilenamePart
34
- } from "./chunk-2SUDMSME.js";
34
+ } from "./chunk-MLTI5CK6.js";
35
35
  import {
36
36
  __commonJS,
37
37
  __require,
@@ -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-6E755NOJ.js";
5
+ } from "./chunk-3OPKUUXP.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -59,14 +59,14 @@ import {
59
59
  stripUnsafeCharacters,
60
60
  toCodePoints,
61
61
  validateCustomTheme
62
- } from "./chunk-QNFIYC5M.js";
62
+ } from "./chunk-SEHUSFSL.js";
63
63
  import {
64
64
  isDevelopment
65
- } from "./chunk-6YIBHKLS.js";
65
+ } from "./chunk-DRN2VYCZ.js";
66
66
  import {
67
67
  emptyIcon,
68
68
  require_react
69
- } from "./chunk-UJTWLKK5.js";
69
+ } from "./chunk-L6Q242KC.js";
70
70
  import {
71
71
  ALL_EDITORS,
72
72
  ApprovalMode,
@@ -243,7 +243,7 @@ import {
243
243
  tokenLimit,
244
244
  uiTelemetryService,
245
245
  unescapePath
246
- } from "./chunk-2SUDMSME.js";
246
+ } from "./chunk-R3S5PP5S.js";
247
247
  import {
248
248
  require_src
249
249
  } from "./chunk-TUDYL3X4.js";
@@ -77176,7 +77176,7 @@ var authCommand = {
77176
77176
  import process29 from "node:process";
77177
77177
 
77178
77178
  // packages/cli/src/generated/git-commit.ts
77179
- var GIT_COMMIT_INFO = "c466c7339";
77179
+ var GIT_COMMIT_INFO = "b39816c87";
77180
77180
 
77181
77181
  // packages/cli/src/ui/utils/historyExportUtils.ts
77182
77182
  import * as fsPromises from "node:fs/promises";
@@ -82957,7 +82957,7 @@ Use /mcp auth <server-name> to authenticate.`
82957
82957
  type: "info",
82958
82958
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
82959
82959
  });
82960
- const { MCPOAuthProvider } = await import("./dist-K6NIDRK2.js");
82960
+ const { MCPOAuthProvider } = await import("./dist-DUXHKH4A.js");
82961
82961
  let oauthConfig = server.oauth;
82962
82962
  if (!oauthConfig) {
82963
82963
  oauthConfig = { enabled: false };
@@ -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-F3GEJ37M.js";
5
+ } from "./chunk-CYJHOZAD.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-GPP3RO7B.js";
17
+ } from "./chunk-XWGJPCDB.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-G4NBAJCP.js";
20
+ } from "./chunk-HZZM77SO.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";