@google/gemini-cli 0.51.0-nightly.20260707.g15a9429b6 → 0.51.0-preview.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 (66) hide show
  1. package/bundle/{chunk-QLGQQVHR.js → chunk-4NX72DYK.js} +83 -16
  2. package/bundle/{chunk-NRYY3KFM.js → chunk-4ZTDUVGF.js} +3 -3
  3. package/bundle/{chunk-A6MPDIQC.js → chunk-CCS4FZN3.js} +1 -1
  4. package/bundle/{chunk-NST5B24Y.js → chunk-CR7DJZQQ.js} +1 -1
  5. package/bundle/{chunk-37FL6LWV.js → chunk-DO2TG64U.js} +7 -7
  6. package/bundle/{chunk-VWNZ6HY4.js → chunk-DY72VNA7.js} +2 -2
  7. package/bundle/{chunk-27CQ5TC2.js → chunk-FIVDQWYP.js} +1 -1
  8. package/bundle/{chunk-GTZDGWZE.js → chunk-FPNPAIJS.js} +3 -3
  9. package/bundle/{chunk-DQLJBISJ.js → chunk-G6N5TBIV.js} +2 -2
  10. package/bundle/{chunk-SAGRFNT6.js → chunk-IT3MCILF.js} +8 -9
  11. package/bundle/{chunk-LZJMXCJK.js → chunk-JYUWXRQN.js} +1 -1
  12. package/bundle/{chunk-O2GK6R63.js → chunk-KKH6C2EN.js} +14258 -7601
  13. package/bundle/{chunk-MY3LKHOR.js → chunk-KKZMWOPL.js} +1 -1
  14. package/bundle/{chunk-CRMMYISA.js → chunk-MTJEEJK4.js} +83 -18
  15. package/bundle/{chunk-7YSGSJ6S.js → chunk-NZPKN6HX.js} +1 -1
  16. package/bundle/{chunk-B7THTQ46.js → chunk-PUQ6F6LT.js} +1 -1
  17. package/bundle/{chunk-JV6DWHMH.js → chunk-SN3AWJMJ.js} +1 -1
  18. package/bundle/{chunk-L4Q6YP53.js → chunk-TTSEXUPD.js} +3 -3
  19. package/bundle/{chunk-PXSM44MG.js → chunk-Y6OKNB2O.js} +1 -1
  20. package/bundle/{chunk-FISTN7FE.js → chunk-YCMQYVOL.js} +7 -7
  21. package/bundle/{chunk-OI24DYCO.js → chunk-YITANI4H.js} +5 -8
  22. package/bundle/{chunk-I27RJBX6.js → chunk-Z6DCMYAX.js} +2 -2
  23. package/bundle/{chunk-FJ2HBFEY.js → chunk-ZCZJ3EHG.js} +54 -67
  24. package/bundle/{chunk-DTF6M6XG.js → chunk-ZLW5C5RW.js} +1 -1
  25. package/bundle/{cleanup-3DG7M5SA.js → cleanup-FQDKYMP7.js} +2 -2
  26. package/bundle/{cleanup-GIS3EYPH.js → cleanup-KYHKAOAV.js} +2 -2
  27. package/bundle/{cleanup-HAGRNXC3.js → cleanup-RKALUUIS.js} +2 -2
  28. package/bundle/{core-ARDZOW2O.js → core-YY6I7TM7.js} +1 -1
  29. package/bundle/{dist-E4J5TT5L.js → core-ZPLCY7CF.js} +1 -1
  30. package/bundle/{devtoolsService-5A6GQ5MJ.js → devtoolsService-JKRU3MYU.js} +2 -2
  31. package/bundle/{devtoolsService-NPJMLIID.js → devtoolsService-MDNGNUVW.js} +2 -2
  32. package/bundle/{devtoolsService-7VKBB477.js → devtoolsService-XZY2NAWE.js} +3 -4
  33. package/bundle/{dist-GQM5S4UT.js → dist-KYS2OS5Q.js} +1 -1
  34. package/bundle/{gemini-QHOTWNVR.js → gemini-6JOWJJRI.js} +13 -13
  35. package/bundle/{gemini-34LN7UJB.js → gemini-DFLM6FZF.js} +196 -212
  36. package/bundle/{gemini-OVR37GRD.js → gemini-ZFN5ZWKT.js} +14 -14
  37. package/bundle/gemini.js +7 -7
  38. package/bundle/{interactiveCli-RDVDNG67.js → interactiveCli-642BSKOD.js} +8 -8
  39. package/bundle/{interactiveCli-LXHZPMUS.js → interactiveCli-OIN4AGBD.js} +296 -315
  40. package/bundle/{interactiveCli-D32NS2NS.js → interactiveCli-U33KFJYX.js} +8 -8
  41. package/bundle/{liteRtServerManager-626MLLPE.js → liteRtServerManager-2KULLNCR.js} +4 -4
  42. package/bundle/{liteRtServerManager-JILMKT3A.js → liteRtServerManager-6B6QVC3X.js} +4 -4
  43. package/bundle/{liteRtServerManager-LXDQHWAD.js → liteRtServerManager-6DL4RPYQ.js} +4 -4
  44. package/bundle/{oauth2-provider-5YH5F7MD.js → oauth2-provider-7MN7TDIH.js} +1 -1
  45. package/bundle/{oauth2-provider-HZQSQK6M.js → oauth2-provider-XRJ2KE2Y.js} +1 -1
  46. package/bundle/{oauth2-provider-63JRL6WX.js → oauth2-provider-YYHCEEAO.js} +72 -38
  47. package/bundle/{start-COL34NEV.js → start-EKMJOLSQ.js} +6 -6
  48. package/bundle/{start-KZXGSRBB.js → start-HPGDHGIK.js} +6 -6
  49. package/bundle/{start-VWBBWLUA.js → start-N7GSPBDS.js} +6 -6
  50. package/package.json +1 -1
  51. package/bundle/chunk-5C7E2EQS.js +0 -387986
  52. package/bundle/chunk-76S4ASAT.js +0 -118
  53. package/bundle/chunk-INMVGEIY.js +0 -398
  54. package/bundle/chunk-JCKR72C3.js +0 -102505
  55. package/bundle/chunk-SFCFGBAW.js +0 -1571
  56. package/bundle/chunk-SQHW4HM2.js +0 -17332
  57. package/bundle/chunk-TPOYXFUB.js +0 -154
  58. package/bundle/chunk-VAN3GKJS.js +0 -512
  59. package/bundle/cleanup-QVH7TKDK.js +0 -32
  60. package/bundle/devtoolsService-EWLHCXI4.js +0 -4359
  61. package/bundle/dist-HHK5NTOV.js +0 -2152
  62. package/bundle/gemini-VQMNAZ4G.js +0 -29270
  63. package/bundle/interactiveCli-CIKBT2WZ.js +0 -34776
  64. package/bundle/liteRtServerManager-UDWS5O2I.js +0 -65
  65. package/bundle/oauth2-provider-FU5LD73G.js +0 -235
  66. package/bundle/start-ZQ5OP233.js +0 -18
@@ -273994,7 +273994,7 @@ function isValidToolName(name3, options = {}) {
273994
273994
  }
273995
273995
 
273996
273996
  // packages/core/src/generated/git-commit.ts
273997
- var GIT_COMMIT_INFO = "15a9429b6";
273997
+ var GIT_COMMIT_INFO = "27a3da3e8";
273998
273998
  var CLI_VERSION = "0.51.0-nightly.20260625.g3fbf93e26";
273999
273999
 
274000
274000
  // packages/core/src/ide/detect-ide.ts
@@ -323290,23 +323290,48 @@ var DEFAULT_SENTINELS = {
323290
323290
  function hardenHistory(history, options = {}) {
323291
323291
  if (history.length === 0) return history;
323292
323292
  const sentinels = { ...DEFAULT_SENTINELS, ...options.sentinels };
323293
- let coalesced = coalesce(history);
323293
+ const processed = stripThoughts(history);
323294
+ let coalesced = coalesce(processed);
323294
323295
  coalesced = pairToolsAndEnforceSignatures(coalesced, sentinels);
323295
323296
  coalesced = refineToolResponses(coalesced);
323296
323297
  let final = enforceRoleConstraints(coalesced, sentinels);
323297
323298
  final = scrubHistory(final);
323298
323299
  return final;
323299
323300
  }
323301
+ function isInternalThought(part) {
323302
+ return !!part && !!part.thought;
323303
+ }
323304
+ function stripThoughts(history) {
323305
+ return history.map((turn) => {
323306
+ if (!turn.content.parts) return turn;
323307
+ const hasThought = turn.content.parts.some(isInternalThought);
323308
+ if (!hasThought) return turn;
323309
+ const nonThoughtParts = turn.content.parts.filter(
323310
+ (p) => p && !isInternalThought(p)
323311
+ );
323312
+ return {
323313
+ id: turn.id,
323314
+ content: {
323315
+ ...turn.content,
323316
+ parts: nonThoughtParts
323317
+ }
323318
+ };
323319
+ });
323320
+ }
323300
323321
  function coalesce(history) {
323301
323322
  const result2 = [];
323302
323323
  for (const turn of history) {
323303
323324
  if (!turn.content.parts || turn.content.parts.length === 0) continue;
323304
- const last2 = result2[result2.length - 1];
323325
+ const lastIdx = result2.length - 1;
323326
+ const last2 = result2[lastIdx];
323305
323327
  if (last2 && last2.content.role === turn.content.role) {
323306
- last2.content.parts = [
323307
- ...last2.content.parts || [],
323308
- ...turn.content.parts || []
323309
- ];
323328
+ result2[lastIdx] = {
323329
+ id: last2.id,
323330
+ content: {
323331
+ ...last2.content,
323332
+ parts: [...last2.content.parts || [], ...turn.content.parts || []]
323333
+ }
323334
+ };
323310
323335
  } else {
323311
323336
  result2.push({ id: turn.id, content: { ...turn.content } });
323312
323337
  }
@@ -323498,16 +323523,58 @@ function enforceRoleConstraints(history, sentinels) {
323498
323523
  return coalesce(result2);
323499
323524
  }
323500
323525
  function scrubHistory(history) {
323501
- return history.map((turn) => ({
323502
- id: turn.id,
323503
- content: scrubContents([turn.content])[0]
323504
- }));
323526
+ const result2 = [];
323527
+ for (const turn of history) {
323528
+ const nonThoughtParts = (turn.content.parts ?? []).filter(
323529
+ (p) => p && !isInternalThought(p)
323530
+ );
323531
+ if (nonThoughtParts.length === 0) continue;
323532
+ const scrubbedParts = nonThoughtParts.map((p) => scrubPart(p));
323533
+ const lastIdx = result2.length - 1;
323534
+ const last2 = result2[lastIdx];
323535
+ if (last2 && last2.content.role === turn.content.role) {
323536
+ result2[lastIdx] = {
323537
+ id: last2.id,
323538
+ content: {
323539
+ ...last2.content,
323540
+ parts: [...last2.content.parts || [], ...scrubbedParts]
323541
+ }
323542
+ };
323543
+ } else {
323544
+ result2.push({
323545
+ id: turn.id,
323546
+ content: {
323547
+ role: turn.content.role,
323548
+ parts: scrubbedParts
323549
+ }
323550
+ });
323551
+ }
323552
+ }
323553
+ return result2;
323505
323554
  }
323506
323555
  function scrubContents(contents) {
323507
- return contents.map((content) => ({
323508
- role: content.role,
323509
- parts: (content.parts || []).map((p) => scrubPart(p))
323510
- }));
323556
+ const result2 = [];
323557
+ for (const content of contents) {
323558
+ const nonThoughtParts = (content.parts ?? []).filter(
323559
+ (p) => p && !isInternalThought(p)
323560
+ );
323561
+ if (nonThoughtParts.length === 0) continue;
323562
+ const scrubbedParts = nonThoughtParts.map((p) => scrubPart(p));
323563
+ const lastIdx = result2.length - 1;
323564
+ const last2 = result2[lastIdx];
323565
+ if (last2 && last2.role === content.role) {
323566
+ result2[lastIdx] = {
323567
+ role: last2.role,
323568
+ parts: [...last2.parts || [], ...scrubbedParts]
323569
+ };
323570
+ } else {
323571
+ result2.push({
323572
+ role: content.role,
323573
+ parts: scrubbedParts
323574
+ });
323575
+ }
323576
+ }
323577
+ return result2;
323511
323578
  }
323512
323579
  function isThoughtPart(part) {
323513
323580
  return "thoughtSignature" in part;
@@ -331976,7 +332043,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
331976
332043
  return provider;
331977
332044
  }
331978
332045
  case "oauth2": {
331979
- const { OAuth2AuthProvider } = await import("./oauth2-provider-HZQSQK6M.js");
332046
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-YYHCEEAO.js");
331980
332047
  const provider = new OAuth2AuthProvider(
331981
332048
  authConfig,
331982
332049
  options.agentName ?? "unknown",
@@ -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-SFCFGBAW.js";
5
+ } from "./chunk-FIVDQWYP.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-DTF6M6XG.js";
17
+ } from "./chunk-YITANI4H.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-5C7E2EQS.js";
20
+ } from "./chunk-4NX72DYK.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-QLGQQVHR.js";
8
+ } from "./chunk-KKH6C2EN.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
  checkExhaustive
4
- } from "./chunk-QLGQQVHR.js";
4
+ } from "./chunk-KKH6C2EN.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __toESM
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-JV6DWHMH.js";
9
+ } from "./chunk-PUQ6F6LT.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -59,14 +59,14 @@ import {
59
59
  stripUnsafeCharacters,
60
60
  toCodePoints,
61
61
  validateCustomTheme
62
- } from "./chunk-PXSM44MG.js";
62
+ } from "./chunk-Y6OKNB2O.js";
63
63
  import {
64
64
  isDevelopment
65
- } from "./chunk-INMVGEIY.js";
65
+ } from "./chunk-DY72VNA7.js";
66
66
  import {
67
67
  emptyIcon,
68
68
  require_react
69
- } from "./chunk-NST5B24Y.js";
69
+ } from "./chunk-CR7DJZQQ.js";
70
70
  import {
71
71
  ALL_EDITORS,
72
72
  ApprovalMode,
@@ -230,7 +230,7 @@ import {
230
230
  tokenLimit,
231
231
  uiTelemetryService,
232
232
  unescapePath
233
- } from "./chunk-QLGQQVHR.js";
233
+ } from "./chunk-KKH6C2EN.js";
234
234
  import {
235
235
  require_src
236
236
  } from "./chunk-TUDYL3X4.js";
@@ -77163,7 +77163,7 @@ var authCommand = {
77163
77163
  import process29 from "node:process";
77164
77164
 
77165
77165
  // packages/cli/src/generated/git-commit.ts
77166
- var GIT_COMMIT_INFO = "15a9429b6";
77166
+ var GIT_COMMIT_INFO = "27a3da3e8";
77167
77167
 
77168
77168
  // packages/cli/src/ui/utils/historyExportUtils.ts
77169
77169
  import * as fsPromises from "node:fs/promises";
@@ -82944,7 +82944,7 @@ Use /mcp auth <server-name> to authenticate.`
82944
82944
  type: "info",
82945
82945
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
82946
82946
  });
82947
- const { MCPOAuthProvider } = await import("./core-ARDZOW2O.js");
82947
+ const { MCPOAuthProvider } = await import("./core-ZPLCY7CF.js");
82948
82948
  let oauthConfig = server.oauth;
82949
82949
  if (!oauthConfig) {
82950
82950
  oauthConfig = { enabled: false };
@@ -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-TPOYXFUB.js";
4
+ } from "./chunk-CCS4FZN3.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-5C7E2EQS.js";
10
+ } from "./chunk-KKH6C2EN.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
  runExitCleanup
4
- } from "./chunk-LZJMXCJK.js";
4
+ } from "./chunk-JYUWXRQN.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-B7THTQ46.js";
5
+ } from "./chunk-SN3AWJMJ.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-SQHW4HM2.js";
17
+ } from "./chunk-ZLW5C5RW.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-O2GK6R63.js";
20
+ } from "./chunk-MTJEEJK4.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-MY3LKHOR.js";
4
+ } from "./chunk-KKZMWOPL.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-O2GK6R63.js";
10
+ } from "./chunk-MTJEEJK4.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -1,8 +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
- CoreToolCallStatus,
4
3
  checkExhaustive
5
- } from "./chunk-O2GK6R63.js";
4
+ } from "./chunk-4NX72DYK.js";
6
5
  import {
7
6
  __commonJS,
8
7
  __toESM
@@ -465,19 +464,19 @@ var require_react = __commonJS({
465
464
  var import_react = __toESM(require_react(), 1);
466
465
  function mapCoreStatusToDisplayStatus(coreStatus) {
467
466
  switch (coreStatus) {
468
- case CoreToolCallStatus.Validating:
467
+ case "validating" /* Validating */:
469
468
  return "Pending" /* Pending */;
470
- case CoreToolCallStatus.AwaitingApproval:
469
+ case "awaiting_approval" /* AwaitingApproval */:
471
470
  return "Confirming" /* Confirming */;
472
- case CoreToolCallStatus.Executing:
471
+ case "executing" /* Executing */:
473
472
  return "Executing" /* Executing */;
474
- case CoreToolCallStatus.Success:
473
+ case "success" /* Success */:
475
474
  return "Success" /* Success */;
476
- case CoreToolCallStatus.Cancelled:
475
+ case "cancelled" /* Cancelled */:
477
476
  return "Canceled" /* Canceled */;
478
- case CoreToolCallStatus.Error:
477
+ case "error" /* Error */:
479
478
  return "Error" /* Error */;
480
- case CoreToolCallStatus.Scheduled:
479
+ case "scheduled" /* Scheduled */:
481
480
  return "Pending" /* Pending */;
482
481
  default:
483
482
  return checkExhaustive(coreStatus);
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-CRMMYISA.js";
8
+ } from "./chunk-4NX72DYK.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";