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

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 (67) hide show
  1. package/bundle/{chunk-EDVFNWRG.js → chunk-2XMCTNPW.js} +1 -1
  2. package/bundle/{chunk-HN74ORTP.js → chunk-46DG3MEK.js} +15 -3
  3. package/bundle/{chunk-UFQDAROY.js → chunk-4TPFLAND.js} +1 -1
  4. package/bundle/{chunk-A4TO2DY2.js → chunk-627EICDK.js} +8258 -14927
  5. package/bundle/{chunk-EDYPRCAA.js → chunk-6JF3XGX6.js} +2 -2
  6. package/bundle/{chunk-SDWOC67Z.js → chunk-7AV6KELE.js} +1 -1
  7. package/bundle/{chunk-EBP6K2WG.js → chunk-7FPYEHDV.js} +25 -9
  8. package/bundle/{chunk-U76XPSKR.js → chunk-7OAPTXNW.js} +89 -60
  9. package/bundle/{chunk-EFX5XL6M.js → chunk-BONG2QK5.js} +2 -2
  10. package/bundle/{chunk-VBVCLWLA.js → chunk-BRVQMVD5.js} +2 -2
  11. package/bundle/{chunk-2NQXIWQK.js → chunk-BSE7BCTQ.js} +15 -3
  12. package/bundle/chunk-BYVRH4VZ.js +103137 -0
  13. package/bundle/{chunk-HSZIYPL6.js → chunk-EE4FVMPM.js} +3 -3
  14. package/bundle/{chunk-QUCRASYB.js → chunk-GWH2CDNQ.js} +1 -1
  15. package/bundle/{chunk-NX7TO2DU.js → chunk-H2WBGLUF.js} +1 -1
  16. package/bundle/{chunk-Y2HXXBXI.js → chunk-J7KGQZGT.js} +1 -1
  17. package/bundle/{chunk-UBGF6JU5.js → chunk-JLBO43LX.js} +1 -1
  18. package/bundle/{chunk-ZPLFLZQA.js → chunk-L3JNREL2.js} +21 -7
  19. package/bundle/{chunk-ZQW7OGUO.js → chunk-MN5WGELB.js} +426 -91
  20. package/bundle/{chunk-6OFXOGEG.js → chunk-NTBZBCDY.js} +456 -94
  21. package/bundle/{chunk-ZOHM7BPT.js → chunk-ONZZ4MZP.js} +1 -1
  22. package/bundle/chunk-POXVKWMH.js +17519 -0
  23. package/bundle/{chunk-MLSLNORV.js → chunk-R7OEYEVK.js} +3 -3
  24. package/bundle/{chunk-KCCVXZ52.js → chunk-RIRMXE4G.js} +25 -9
  25. package/bundle/{chunk-2VN53SWW.js → chunk-RQB6UOWL.js} +9 -8
  26. package/bundle/{chunk-VJYKQD5D.js → chunk-SQZOWFWU.js} +3 -3
  27. package/bundle/chunk-T7UXARRX.js +401531 -0
  28. package/bundle/chunk-TDYDNMXH.js +425 -0
  29. package/bundle/chunk-TVJ4WAFU.js +512 -0
  30. package/bundle/chunk-XNLASMX4.js +154 -0
  31. package/bundle/chunk-Y3EQFIOM.js +118 -0
  32. package/bundle/chunk-YKGBOB2S.js +1571 -0
  33. package/bundle/{cleanup-GGCB2LVD.js → cleanup-5HA3CDPH.js} +2 -2
  34. package/bundle/{cleanup-JRDG3OTL.js → cleanup-LXXTR2OE.js} +2 -2
  35. package/bundle/{cleanup-SSW6IXTR.js → cleanup-RM72YALN.js} +2 -2
  36. package/bundle/cleanup-TBTZ6WZD.js +32 -0
  37. package/bundle/{core-IUIZE6JW.js → core-NBQGNNOM.js} +11 -1
  38. package/bundle/{devtoolsService-3SADPKKB.js → devtoolsService-BUAVC3ZD.js} +2 -2
  39. package/bundle/{devtoolsService-XZCKFZP5.js → devtoolsService-DCRIOTR4.js} +2 -2
  40. package/bundle/{devtoolsService-MF6JKRUV.js → devtoolsService-PXS65V3Y.js} +4 -3
  41. package/bundle/devtoolsService-ZHFOHPIS.js +4359 -0
  42. package/bundle/{dist-7L3BRW6V.js → dist-24APVFHT.js} +11 -1
  43. package/bundle/{core-6HRWFQZW.js → dist-EOOSNLUQ.js} +11 -1
  44. package/bundle/dist-YP3VMVL6.js +2262 -0
  45. package/bundle/docs/tools/mcp-server.md +41 -12
  46. package/bundle/{gemini-JPMMQ3KA.js → gemini-LHZDQRUM.js} +13 -13
  47. package/bundle/{gemini-ZMMDUAQJ.js → gemini-Q4LI2KHU.js} +214 -198
  48. package/bundle/gemini-QM6PZXIH.js +17934 -0
  49. package/bundle/{gemini-QOQNG5VY.js → gemini-UEMV4Y7B.js} +13 -13
  50. package/bundle/gemini.js +7 -7
  51. package/bundle/{interactiveCli-R3P4A3FC.js → interactiveCli-HMZ5ZWK4.js} +9 -20
  52. package/bundle/{interactiveCli-UDWGRVJL.js → interactiveCli-IQQYS4AV.js} +9 -20
  53. package/bundle/{interactiveCli-3I4TG5SK.js → interactiveCli-QCNSW3M7.js} +313 -305
  54. package/bundle/interactiveCli-QXZXFSNY.js +34968 -0
  55. package/bundle/{liteRtServerManager-OVPUSK2T.js → liteRtServerManager-2I4N5IEZ.js} +4 -4
  56. package/bundle/{liteRtServerManager-RAV63AGE.js → liteRtServerManager-3IZ2LKBD.js} +4 -4
  57. package/bundle/{liteRtServerManager-4MWCEVVM.js → liteRtServerManager-RABYR6TB.js} +4 -4
  58. package/bundle/liteRtServerManager-T3MOB7VG.js +65 -0
  59. package/bundle/{oauth2-provider-FVTRRJZR.js → oauth2-provider-I3CU23H3.js} +1 -1
  60. package/bundle/{oauth2-provider-EWOA64PR.js → oauth2-provider-INBLO6HF.js} +38 -72
  61. package/bundle/oauth2-provider-UZV2BJA3.js +235 -0
  62. package/bundle/{oauth2-provider-XFP63FGJ.js → oauth2-provider-XFPEOXNY.js} +1 -1
  63. package/bundle/{start-DJAIXPPY.js → start-4UWH3BI7.js} +6 -6
  64. package/bundle/{start-VQQ2Q5KT.js → start-CQTZWDLV.js} +6 -6
  65. package/bundle/{start-5O7TBK5L.js → start-D6DJS7SZ.js} +6 -6
  66. package/bundle/start-IXFELTCY.js +18 -0
  67. 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-ZOHM7BPT.js";
5
+ } from "./chunk-2XMCTNPW.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-HN74ORTP.js";
17
+ } from "./chunk-46DG3MEK.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-ZQW7OGUO.js";
20
+ } from "./chunk-MN5WGELB.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
  exitCli,
4
4
  require_source
5
- } from "./chunk-EDVFNWRG.js";
5
+ } from "./chunk-YKGBOB2S.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-BSE7BCTQ.js";
67
67
  import {
68
68
  isDevelopment
69
- } from "./chunk-EDYPRCAA.js";
69
+ } from "./chunk-BRVQMVD5.js";
70
70
  import {
71
71
  emptyIcon,
72
72
  mapCoreStatusToDisplayStatus,
73
73
  require_react
74
- } from "./chunk-Y2HXXBXI.js";
74
+ } from "./chunk-J7KGQZGT.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-NTBZBCDY.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 = "581fdbbfa";
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-NBQGNNOM.js");
83536
83552
  let oauthConfig = server.oauth;
83537
83553
  if (!oauthConfig) {
83538
83554
  oauthConfig = { enabled: false };
@@ -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-A4TO2DY2.js";
5
+ } from "./chunk-T7UXARRX.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);
@@ -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-GWH2CDNQ.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-2NQXIWQK.js";
17
+ } from "./chunk-POXVKWMH.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-6OFXOGEG.js";
20
+ } from "./chunk-627EICDK.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";