@google/gemini-cli 0.64.0-preview.0 → 0.64.0

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 (51) hide show
  1. package/bundle/{chunk-EDYPRCAA.js → chunk-5XKZL6EB.js} +2 -2
  2. package/bundle/{chunk-EDVFNWRG.js → chunk-7H3F2KUX.js} +1 -1
  3. package/bundle/{chunk-EFX5XL6M.js → chunk-DPNFVVVC.js} +2 -2
  4. package/bundle/{chunk-QUCRASYB.js → chunk-ENBP32XB.js} +1 -1
  5. package/bundle/{chunk-UFQDAROY.js → chunk-EV5MQULH.js} +1 -1
  6. package/bundle/{chunk-HSZIYPL6.js → chunk-FCPMU3HO.js} +3 -3
  7. package/bundle/{chunk-MLSLNORV.js → chunk-FJUB4QHG.js} +3 -3
  8. package/bundle/{chunk-HN74ORTP.js → chunk-FLKY6NH5.js} +15 -3
  9. package/bundle/{chunk-SDWOC67Z.js → chunk-HHALNKOO.js} +1 -1
  10. package/bundle/{chunk-NX7TO2DU.js → chunk-IESQO4NS.js} +1 -1
  11. package/bundle/{chunk-6OFXOGEG.js → chunk-J7SXW2FI.js} +458 -96
  12. package/bundle/{chunk-KCCVXZ52.js → chunk-KJWA3D3G.js} +25 -9
  13. package/bundle/{chunk-EBP6K2WG.js → chunk-MA35JFUP.js} +25 -9
  14. package/bundle/{chunk-ZQW7OGUO.js → chunk-NR7L3FXV.js} +427 -92
  15. package/bundle/{chunk-ZOHM7BPT.js → chunk-OQYJODOA.js} +1 -1
  16. package/bundle/{chunk-VBVCLWLA.js → chunk-P7ZJXXPR.js} +2 -2
  17. package/bundle/{chunk-2NQXIWQK.js → chunk-PS4UL4AP.js} +15 -3
  18. package/bundle/{chunk-A4TO2DY2.js → chunk-PZ4GDG24.js} +458 -96
  19. package/bundle/{chunk-ZPLFLZQA.js → chunk-QCHFD56F.js} +15 -3
  20. package/bundle/{chunk-Y2HXXBXI.js → chunk-QLNDNLK5.js} +1 -1
  21. package/bundle/{chunk-2VN53SWW.js → chunk-QSLJVHXU.js} +1 -1
  22. package/bundle/{chunk-U76XPSKR.js → chunk-V7G7CIBW.js} +25 -9
  23. package/bundle/{chunk-UBGF6JU5.js → chunk-VOLZQW4I.js} +1 -1
  24. package/bundle/{chunk-VJYKQD5D.js → chunk-WLZT2COY.js} +3 -3
  25. package/bundle/{cleanup-GGCB2LVD.js → cleanup-K7PKM5O3.js} +2 -2
  26. package/bundle/{cleanup-JRDG3OTL.js → cleanup-NAOD2SQV.js} +2 -2
  27. package/bundle/{cleanup-SSW6IXTR.js → cleanup-QRBWTWKF.js} +2 -2
  28. package/bundle/{core-IUIZE6JW.js → core-4P3HPH34.js} +11 -1
  29. package/bundle/{dist-7L3BRW6V.js → core-ICFDSJL3.js} +11 -1
  30. package/bundle/{devtoolsService-3SADPKKB.js → devtoolsService-4MGN7S5K.js} +2 -2
  31. package/bundle/{devtoolsService-MF6JKRUV.js → devtoolsService-7CS2YIL6.js} +2 -2
  32. package/bundle/{devtoolsService-XZCKFZP5.js → devtoolsService-LKOU7QN7.js} +2 -2
  33. package/bundle/{core-6HRWFQZW.js → dist-YMXCTNJD.js} +11 -1
  34. package/bundle/docs/tools/mcp-server.md +41 -12
  35. package/bundle/{gemini-QOQNG5VY.js → gemini-6ESINPDZ.js} +14 -14
  36. package/bundle/{gemini-ZMMDUAQJ.js → gemini-IPXWMEB5.js} +14 -14
  37. package/bundle/{gemini-JPMMQ3KA.js → gemini-Q2GRYIAK.js} +14 -14
  38. package/bundle/gemini.js +7 -7
  39. package/bundle/{interactiveCli-R3P4A3FC.js → interactiveCli-2T27ZS4G.js} +9 -20
  40. package/bundle/{interactiveCli-UDWGRVJL.js → interactiveCli-66E5CZDR.js} +9 -20
  41. package/bundle/{interactiveCli-3I4TG5SK.js → interactiveCli-IX4FVS6G.js} +9 -20
  42. package/bundle/{liteRtServerManager-OVPUSK2T.js → liteRtServerManager-BFSWF4GA.js} +4 -4
  43. package/bundle/{liteRtServerManager-RAV63AGE.js → liteRtServerManager-CU5D7FDE.js} +4 -4
  44. package/bundle/{liteRtServerManager-4MWCEVVM.js → liteRtServerManager-JJZYMP2G.js} +4 -4
  45. package/bundle/{oauth2-provider-XFP63FGJ.js → oauth2-provider-65ILSORU.js} +1 -1
  46. package/bundle/{oauth2-provider-FVTRRJZR.js → oauth2-provider-CHSEPLKC.js} +1 -1
  47. package/bundle/{oauth2-provider-EWOA64PR.js → oauth2-provider-N73PS5ZT.js} +1 -1
  48. package/bundle/{start-DJAIXPPY.js → start-6JMUZJ7T.js} +6 -6
  49. package/bundle/{start-VQQ2Q5KT.js → start-6KYN7M6S.js} +6 -6
  50. package/bundle/{start-5O7TBK5L.js → start-YI7IUIYU.js} +6 -6
  51. package/package.json +1 -1
@@ -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-EDVFNWRG.js";
5
+ } from "./chunk-ENBP32XB.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -63,15 +63,15 @@ import {
63
63
  stripUnsafeCharacters,
64
64
  toCodePoints,
65
65
  validateCustomTheme
66
- } from "./chunk-2NQXIWQK.js";
66
+ } from "./chunk-PS4UL4AP.js";
67
67
  import {
68
68
  isDevelopment
69
- } from "./chunk-EDYPRCAA.js";
69
+ } from "./chunk-P7ZJXXPR.js";
70
70
  import {
71
71
  emptyIcon,
72
72
  mapCoreStatusToDisplayStatus,
73
73
  require_react
74
- } from "./chunk-Y2HXXBXI.js";
74
+ } from "./chunk-QLNDNLK5.js";
75
75
  import {
76
76
  ALL_EDITORS,
77
77
  ApprovalMode,
@@ -239,7 +239,7 @@ import {
239
239
  tokenLimit,
240
240
  uiTelemetryService,
241
241
  unescapePath
242
- } from "./chunk-6OFXOGEG.js";
242
+ } from "./chunk-J7SXW2FI.js";
243
243
  import {
244
244
  require_src
245
245
  } from "./chunk-L6PII3GR.js";
@@ -77751,7 +77751,7 @@ var authCommand = {
77751
77751
  import process29 from "node:process";
77752
77752
 
77753
77753
  // packages/cli/src/generated/git-commit.ts
77754
- var GIT_COMMIT_INFO = "fb972b2f8";
77754
+ var GIT_COMMIT_INFO = "90997f398";
77755
77755
 
77756
77756
  // packages/cli/src/ui/utils/historyExportUtils.ts
77757
77757
  import * as fsPromises from "node:fs/promises";
@@ -81878,6 +81878,18 @@ var import_react74 = __toESM(require_react(), 1);
81878
81878
 
81879
81879
  // packages/cli/src/ui/utils/rewindFileOps.ts
81880
81880
  import fs32 from "node:fs/promises";
81881
+ function isPartWithKey(part, key) {
81882
+ return typeof part === "object" && part !== null && key in part;
81883
+ }
81884
+ function isToolResponseMessage(msg) {
81885
+ if (msg.type !== "user" || !Array.isArray(msg.content) || msg.content.length === 0) {
81886
+ return false;
81887
+ }
81888
+ const parts = msg.content;
81889
+ return parts.some((p2) => isPartWithKey(p2, "functionResponse")) && parts.every(
81890
+ (p2) => isPartWithKey(p2, "functionResponse") || isPartWithKey(p2, "inlineData") || isPartWithKey(p2, "fileData")
81891
+ );
81892
+ }
81881
81893
  function calculateTurnStats(conversation, userMessage) {
81882
81894
  const msgIndex = conversation.messages.indexOf(userMessage);
81883
81895
  if (msgIndex === -1) return null;
@@ -81887,7 +81899,9 @@ function calculateTurnStats(conversation, userMessage) {
81887
81899
  let hasEdits = false;
81888
81900
  for (let i = msgIndex + 1; i < conversation.messages.length; i++) {
81889
81901
  const msg = conversation.messages[i];
81890
- if (msg.type === "user") break;
81902
+ if (msg.type === "user" && !isToolResponseMessage(msg)) {
81903
+ break;
81904
+ }
81891
81905
  if (msg.type === "gemini" && msg.toolCalls) {
81892
81906
  for (const toolCall of msg.toolCalls) {
81893
81907
  const fileDiff = getFileDiffFromResultDisplay(toolCall.resultDisplay);
@@ -82246,7 +82260,9 @@ var RewindViewer = ({
82246
82260
  null
82247
82261
  );
82248
82262
  const interactions = (0, import_react76.useMemo)(
82249
- () => conversation.messages.filter((msg) => msg.type === "user"),
82263
+ () => conversation.messages.filter(
82264
+ (msg) => msg.type === "user" && !isToolResponseMessage(msg)
82265
+ ),
82250
82266
  [conversation.messages]
82251
82267
  );
82252
82268
  const items = (0, import_react76.useMemo)(() => {
@@ -83532,7 +83548,7 @@ Use /mcp auth <server-name> to authenticate.`
83532
83548
  type: "info",
83533
83549
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
83534
83550
  });
83535
- const { MCPOAuthProvider } = await import("./core-6HRWFQZW.js");
83551
+ const { MCPOAuthProvider } = await import("./core-ICFDSJL3.js");
83536
83552
  let oauthConfig = server.oauth;
83537
83553
  if (!oauthConfig) {
83538
83554
  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-ZOHM7BPT.js";
5
+ } from "./chunk-7H3F2KUX.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -63,15 +63,15 @@ import {
63
63
  stripUnsafeCharacters,
64
64
  toCodePoints,
65
65
  validateCustomTheme
66
- } from "./chunk-HN74ORTP.js";
66
+ } from "./chunk-FLKY6NH5.js";
67
67
  import {
68
68
  isDevelopment
69
- } from "./chunk-VBVCLWLA.js";
69
+ } from "./chunk-DPNFVVVC.js";
70
70
  import {
71
71
  emptyIcon,
72
72
  mapCoreStatusToDisplayStatus,
73
73
  require_react
74
- } from "./chunk-NX7TO2DU.js";
74
+ } from "./chunk-IESQO4NS.js";
75
75
  import {
76
76
  ALL_EDITORS,
77
77
  ApprovalMode,
@@ -252,7 +252,7 @@ import {
252
252
  tokenLimit,
253
253
  uiTelemetryService,
254
254
  unescapePath
255
- } from "./chunk-ZQW7OGUO.js";
255
+ } from "./chunk-NR7L3FXV.js";
256
256
  import {
257
257
  require_src
258
258
  } from "./chunk-L6PII3GR.js";
@@ -77764,7 +77764,7 @@ var authCommand = {
77764
77764
  import process29 from "node:process";
77765
77765
 
77766
77766
  // packages/cli/src/generated/git-commit.ts
77767
- var GIT_COMMIT_INFO = "fdf63956c";
77767
+ var GIT_COMMIT_INFO = "4a0749ace";
77768
77768
 
77769
77769
  // packages/cli/src/ui/utils/historyExportUtils.ts
77770
77770
  import * as fsPromises from "node:fs/promises";
@@ -81891,6 +81891,18 @@ var import_react74 = __toESM(require_react(), 1);
81891
81891
 
81892
81892
  // packages/cli/src/ui/utils/rewindFileOps.ts
81893
81893
  import fs32 from "node:fs/promises";
81894
+ function isPartWithKey(part, key) {
81895
+ return typeof part === "object" && part !== null && key in part;
81896
+ }
81897
+ function isToolResponseMessage(msg) {
81898
+ if (msg.type !== "user" || !Array.isArray(msg.content) || msg.content.length === 0) {
81899
+ return false;
81900
+ }
81901
+ const parts = msg.content;
81902
+ return parts.some((p2) => isPartWithKey(p2, "functionResponse")) && parts.every(
81903
+ (p2) => isPartWithKey(p2, "functionResponse") || isPartWithKey(p2, "inlineData") || isPartWithKey(p2, "fileData")
81904
+ );
81905
+ }
81894
81906
  function calculateTurnStats(conversation, userMessage) {
81895
81907
  const msgIndex = conversation.messages.indexOf(userMessage);
81896
81908
  if (msgIndex === -1) return null;
@@ -81900,7 +81912,9 @@ function calculateTurnStats(conversation, userMessage) {
81900
81912
  let hasEdits = false;
81901
81913
  for (let i = msgIndex + 1; i < conversation.messages.length; i++) {
81902
81914
  const msg = conversation.messages[i];
81903
- if (msg.type === "user") break;
81915
+ if (msg.type === "user" && !isToolResponseMessage(msg)) {
81916
+ break;
81917
+ }
81904
81918
  if (msg.type === "gemini" && msg.toolCalls) {
81905
81919
  for (const toolCall of msg.toolCalls) {
81906
81920
  const fileDiff = getFileDiffFromResultDisplay(toolCall.resultDisplay);
@@ -82259,7 +82273,9 @@ var RewindViewer = ({
82259
82273
  null
82260
82274
  );
82261
82275
  const interactions = (0, import_react76.useMemo)(
82262
- () => conversation.messages.filter((msg) => msg.type === "user"),
82276
+ () => conversation.messages.filter(
82277
+ (msg) => msg.type === "user" && !isToolResponseMessage(msg)
82278
+ ),
82263
82279
  [conversation.messages]
82264
82280
  );
82265
82281
  const items = (0, import_react76.useMemo)(() => {
@@ -83545,7 +83561,7 @@ Use /mcp auth <server-name> to authenticate.`
83545
83561
  type: "info",
83546
83562
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
83547
83563
  });
83548
- const { MCPOAuthProvider } = await import("./dist-7L3BRW6V.js");
83564
+ const { MCPOAuthProvider } = await import("./dist-YMXCTNJD.js");
83549
83565
  let oauthConfig = server.oauth;
83550
83566
  if (!oauthConfig) {
83551
83567
  oauthConfig = { enabled: false };