@google/gemini-cli 0.51.0-preview.0 → 0.52.0-nightly.20260713.gf354eebaf

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 (69) hide show
  1. package/bundle/{chunk-YCMQYVOL.js → chunk-2T7DHFUF.js} +7 -7
  2. package/bundle/{chunk-ZLW5C5RW.js → chunk-2YX7REYH.js} +1 -1
  3. package/bundle/{chunk-KKZMWOPL.js → chunk-36XJOV7D.js} +1 -1
  4. package/bundle/{chunk-FIVDQWYP.js → chunk-3E5UN72A.js} +1 -1
  5. package/bundle/{chunk-YITANI4H.js → chunk-3QARMH4K.js} +8 -5
  6. package/bundle/{chunk-DY72VNA7.js → chunk-APFEBPRN.js} +2 -2
  7. package/bundle/{chunk-PUQ6F6LT.js → chunk-AXDCPZK4.js} +1 -1
  8. package/bundle/{chunk-FPNPAIJS.js → chunk-AZMX5CAR.js} +3 -3
  9. package/bundle/{chunk-MTJEEJK4.js → chunk-BWWM7236.js} +23 -11
  10. package/bundle/{chunk-KKH6C2EN.js → chunk-DB7X2Y2C.js} +7616 -14196
  11. package/bundle/{chunk-CCS4FZN3.js → chunk-DL66YX6H.js} +1 -1
  12. package/bundle/{chunk-JYUWXRQN.js → chunk-DZIOGU7O.js} +1 -1
  13. package/bundle/{chunk-NZPKN6HX.js → chunk-EBDB2GKX.js} +1 -1
  14. package/bundle/{chunk-4ZTDUVGF.js → chunk-ELOFTD3I.js} +3 -3
  15. package/bundle/{chunk-ZCZJ3EHG.js → chunk-EQJS4COG.js} +67 -54
  16. package/bundle/chunk-HWYSVU2Y.js +154 -0
  17. package/bundle/{chunk-Y6OKNB2O.js → chunk-JK366WXF.js} +1 -1
  18. package/bundle/{chunk-SN3AWJMJ.js → chunk-LZWVXAKV.js} +1 -1
  19. package/bundle/{chunk-G6N5TBIV.js → chunk-M2W3BJNE.js} +2 -2
  20. package/bundle/chunk-MNVSGXFA.js +17332 -0
  21. package/bundle/{chunk-IT3MCILF.js → chunk-NPBRF4SI.js} +1 -1
  22. package/bundle/{chunk-CR7DJZQQ.js → chunk-PUNBJ76K.js} +9 -8
  23. package/bundle/{chunk-4NX72DYK.js → chunk-QKLXGOQQ.js} +34 -16
  24. package/bundle/{chunk-TTSEXUPD.js → chunk-RXBKF467.js} +3 -3
  25. package/bundle/chunk-SJG3YDOW.js +102505 -0
  26. package/bundle/chunk-SWWOMF5U.js +388063 -0
  27. package/bundle/{chunk-Z6DCMYAX.js → chunk-TIH7TS2I.js} +2 -2
  28. package/bundle/chunk-XQM42LAM.js +118 -0
  29. package/bundle/chunk-Y2HXPFYB.js +1571 -0
  30. package/bundle/{chunk-DO2TG64U.js → chunk-YY7XHIP5.js} +7 -7
  31. package/bundle/chunk-Z3HRZRKL.js +398 -0
  32. package/bundle/chunk-Z6YPLHBH.js +512 -0
  33. package/bundle/{cleanup-FQDKYMP7.js → cleanup-5AQQMD23.js} +2 -2
  34. package/bundle/{cleanup-KYHKAOAV.js → cleanup-BJXMNJTU.js} +2 -2
  35. package/bundle/{cleanup-RKALUUIS.js → cleanup-BZE7CX3F.js} +2 -2
  36. package/bundle/cleanup-DPHUXC5P.js +32 -0
  37. package/bundle/{core-ZPLCY7CF.js → core-2VB5TAAN.js} +1 -1
  38. package/bundle/{devtoolsService-JKRU3MYU.js → devtoolsService-JRDPPU42.js} +2 -2
  39. package/bundle/{devtoolsService-XZY2NAWE.js → devtoolsService-LJGLJGJV.js} +4 -3
  40. package/bundle/devtoolsService-MG4V53EK.js +4359 -0
  41. package/bundle/{devtoolsService-MDNGNUVW.js → devtoolsService-SADMX7SY.js} +2 -2
  42. package/bundle/{dist-KYS2OS5Q.js → dist-CGC3DE3I.js} +1 -1
  43. package/bundle/{core-YY6I7TM7.js → dist-O7KA2L4U.js} +1 -1
  44. package/bundle/dist-V7MGOCX5.js +2152 -0
  45. package/bundle/docs/changelogs/index.md +13 -0
  46. package/bundle/docs/changelogs/latest.md +18 -49
  47. package/bundle/docs/changelogs/preview.md +44 -57
  48. package/bundle/{gemini-ZFN5ZWKT.js → gemini-24LLUGUQ.js} +14 -14
  49. package/bundle/{gemini-DFLM6FZF.js → gemini-EV7YQC7F.js} +14 -14
  50. package/bundle/{gemini-6JOWJJRI.js → gemini-UEPAA26P.js} +212 -196
  51. package/bundle/gemini-VWRUY5RU.js +29270 -0
  52. package/bundle/gemini.js +7 -7
  53. package/bundle/{interactiveCli-U33KFJYX.js → interactiveCli-CZLGBQJS.js} +52 -12
  54. package/bundle/{interactiveCli-642BSKOD.js → interactiveCli-GSUQ3DVQ.js} +359 -300
  55. package/bundle/interactiveCli-LAC2GT5E.js +34816 -0
  56. package/bundle/{interactiveCli-OIN4AGBD.js → interactiveCli-ZT2EUQKA.js} +52 -12
  57. package/bundle/{liteRtServerManager-6B6QVC3X.js → liteRtServerManager-2GSYVKDP.js} +4 -4
  58. package/bundle/{liteRtServerManager-6DL4RPYQ.js → liteRtServerManager-BWZ2W62M.js} +4 -4
  59. package/bundle/{liteRtServerManager-2KULLNCR.js → liteRtServerManager-NIEOMPFD.js} +4 -4
  60. package/bundle/liteRtServerManager-ZUHIUYXB.js +65 -0
  61. package/bundle/{oauth2-provider-7MN7TDIH.js → oauth2-provider-5VAK2NYV.js} +1 -1
  62. package/bundle/{oauth2-provider-YYHCEEAO.js → oauth2-provider-L7BJUHV4.js} +38 -72
  63. package/bundle/{oauth2-provider-XRJ2KE2Y.js → oauth2-provider-MT25IEBC.js} +1 -1
  64. package/bundle/oauth2-provider-R2QBZWOH.js +235 -0
  65. package/bundle/{start-HPGDHGIK.js → start-33JI6F6O.js} +6 -6
  66. package/bundle/{start-N7GSPBDS.js → start-HJTAEHPM.js} +6 -6
  67. package/bundle/{start-EKMJOLSQ.js → start-RCFRASLC.js} +6 -6
  68. package/bundle/start-XNCBFLHI.js +18 -0
  69. package/package.json +1 -1
@@ -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-4NX72DYK.js";
4
+ } from "./chunk-QKLXGOQQ.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __toESM
@@ -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-KKH6C2EN.js";
5
+ } from "./chunk-DB7X2Y2C.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 "validating" /* Validating */:
468
+ case CoreToolCallStatus.Validating:
468
469
  return "Pending" /* Pending */;
469
- case "awaiting_approval" /* AwaitingApproval */:
470
+ case CoreToolCallStatus.AwaitingApproval:
470
471
  return "Confirming" /* Confirming */;
471
- case "executing" /* Executing */:
472
+ case CoreToolCallStatus.Executing:
472
473
  return "Executing" /* Executing */;
473
- case "success" /* Success */:
474
+ case CoreToolCallStatus.Success:
474
475
  return "Success" /* Success */;
475
- case "cancelled" /* Cancelled */:
476
+ case CoreToolCallStatus.Cancelled:
476
477
  return "Canceled" /* Canceled */;
477
- case "error" /* Error */:
478
+ case CoreToolCallStatus.Error:
478
479
  return "Error" /* Error */;
479
- case "scheduled" /* Scheduled */:
480
+ case CoreToolCallStatus.Scheduled:
480
481
  return "Pending" /* Pending */;
481
482
  default:
482
483
  return checkExhaustive(coreStatus);
@@ -273994,8 +273994,8 @@ function isValidToolName(name3, options = {}) {
273994
273994
  }
273995
273995
 
273996
273996
  // packages/core/src/generated/git-commit.ts
273997
- var GIT_COMMIT_INFO = "27a3da3e8";
273998
- var CLI_VERSION = "0.51.0-nightly.20260625.g3fbf93e26";
273997
+ var GIT_COMMIT_INFO = "f354eebaf";
273998
+ var CLI_VERSION = "0.52.0-nightly.20260707.g27a3da3e8";
273999
273999
 
274000
274000
  // packages/core/src/ide/detect-ide.ts
274001
274001
  var IDE_DEFINITIONS = {
@@ -297483,7 +297483,7 @@ function getVersion() {
297483
297483
  }
297484
297484
  versionPromise = (async () => {
297485
297485
  const pkgJson = await getPackageJson(__dirname4);
297486
- return "0.51.0-nightly.20260625.g3fbf93e26";
297486
+ return "0.52.0-nightly.20260707.g27a3da3e8";
297487
297487
  })();
297488
297488
  return versionPromise;
297489
297489
  }
@@ -300303,7 +300303,11 @@ var EditToolInvocation = class extends BaseToolInvocation {
300303
300303
  matchRanges: replacementResult.matchRanges
300304
300304
  };
300305
300305
  }
300306
- if (this.config.getDisableLLMCorrection()) {
300306
+ const fileExt = path41.extname(this.resolvedPath).toLowerCase();
300307
+ const isJsonOrIpynb = [".json", ".ipynb", ".jsonc", ".json5"].includes(
300308
+ fileExt
300309
+ );
300310
+ if (this.config.getDisableLLMCorrection() || isJsonOrIpynb) {
300307
300311
  return {
300308
300312
  currentContent,
300309
300313
  newContent: currentContent,
@@ -301058,16 +301062,22 @@ async function getCorrectedFileContent(config2, filePath, proposedContent, abort
301058
301062
  return { originalContent, correctedContent, fileExists: fileExists2, error: error40 };
301059
301063
  }
301060
301064
  }
301061
- const activeModel = config2.getActiveModel();
301062
- const resolvedModel = resolveModel(activeModel, false, false, true, config2);
301063
- const aggressiveUnescape = !isGemini3Model(resolvedModel, config2) && !isGemini2Model(resolvedModel) && !isCustomModel(resolvedModel, config2);
301064
- correctedContent = await ensureCorrectFileContent(
301065
- proposedContent,
301066
- config2.getBaseLlmClient(),
301067
- abortSignal,
301068
- config2.getDisableLLMCorrection(),
301069
- aggressiveUnescape
301065
+ const fileExt = path42.extname(filePath).toLowerCase();
301066
+ const isJsonOrIpynb = [".json", ".ipynb", ".jsonc", ".json5"].includes(
301067
+ fileExt
301070
301068
  );
301069
+ if (!isJsonOrIpynb) {
301070
+ const activeModel = config2.getActiveModel();
301071
+ const resolvedModel = resolveModel(activeModel, false, false, true, config2);
301072
+ const aggressiveUnescape = !isGemini3Model(resolvedModel, config2) && !isGemini2Model(resolvedModel) && !isCustomModel(resolvedModel, config2);
301073
+ correctedContent = await ensureCorrectFileContent(
301074
+ proposedContent,
301075
+ config2.getBaseLlmClient(),
301076
+ abortSignal,
301077
+ config2.getDisableLLMCorrection(),
301078
+ aggressiveUnescape
301079
+ );
301080
+ }
301071
301081
  return { originalContent, correctedContent, fileExists: fileExists2 };
301072
301082
  }
301073
301083
  var WriteFileToolInvocation = class extends BaseToolInvocation {
@@ -332043,7 +332053,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
332043
332053
  return provider;
332044
332054
  }
332045
332055
  case "oauth2": {
332046
- const { OAuth2AuthProvider } = await import("./oauth2-provider-YYHCEEAO.js");
332056
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-MT25IEBC.js");
332047
332057
  const provider = new OAuth2AuthProvider(
332048
332058
  authConfig,
332049
332059
  options.agentName ?? "unknown",
@@ -335113,7 +335123,9 @@ var AgentHistoryProvider = class {
335113
335123
  "Prior context was offloaded to maintain performance. Key highlights from the truncated history:"
335114
335124
  ];
335115
335125
  if (lastUserText) {
335116
- summaryParts.push(`- **Last User Intent:** "${lastUserText}"`);
335126
+ summaryParts.push(
335127
+ `- **Previous User Intent (Truncated):** "${lastUserText}"`
335128
+ );
335117
335129
  }
335118
335130
  if (actionPath) {
335119
335131
  summaryParts.push(`- **Action Path:** ${actionPath}`);
@@ -341281,7 +341293,13 @@ var WorkspaceContext = class {
341281
341293
  const clean = trimTrailingSpacesAndDots(
341282
341294
  segment.split(":")[0]
341283
341295
  ).toLowerCase();
341284
- return clean === ".git" || clean === ".env" || clean === "node_modules";
341296
+ if (clean === ".git" || clean === ".env" || clean === "node_modules") {
341297
+ return true;
341298
+ }
341299
+ if (clean.startsWith("gha-creds-") && clean.endsWith(".json")) {
341300
+ return true;
341301
+ }
341302
+ return false;
341285
341303
  });
341286
341304
  if (hasBlockedSegment) {
341287
341305
  return 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-PUQ6F6LT.js";
5
+ } from "./chunk-Y2HXPFYB.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-Y6OKNB2O.js";
17
+ } from "./chunk-MNVSGXFA.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-KKH6C2EN.js";
20
+ } from "./chunk-DB7X2Y2C.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";