@google/gemini-cli 0.67.0-nightly.20261104.g89e9d25d6 → 0.67.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 (74) hide show
  1. package/README.md +24 -18
  2. package/bundle/{chunk-TAYMSEDM.js → chunk-2E3ETS5J.js} +2 -2
  3. package/bundle/{chunk-2VRD7O3N.js → chunk-4JH2G4F4.js} +3 -3
  4. package/bundle/{chunk-AT7K3IZG.js → chunk-56IGTM4O.js} +1 -1
  5. package/bundle/{chunk-B2FKXXUH.js → chunk-5RNHNFYV.js} +106 -327
  6. package/bundle/{chunk-R7UEKGMB.js → chunk-7LX6MRZ6.js} +1 -1
  7. package/bundle/{chunk-HU3K5KGK.js → chunk-BW65QRZA.js} +11 -9
  8. package/bundle/{chunk-5WHCLVFH.js → chunk-CJFBYU4J.js} +157 -391
  9. package/bundle/{chunk-NMKJ47HQ.js → chunk-GBUWHRK6.js} +3 -3
  10. package/bundle/{chunk-VBHMFLBY.js → chunk-IDJ4QXBF.js} +1 -1
  11. package/bundle/{chunk-JMHCFAD6.js → chunk-IGE3G3WZ.js} +1 -1
  12. package/bundle/{chunk-RCF66HCI.js → chunk-LAR4JEC7.js} +1008 -1627
  13. package/bundle/{chunk-CXMHAFLN.js → chunk-M73CYIV5.js} +2 -2
  14. package/bundle/{chunk-TB5I5645.js → chunk-MQNW2IRI.js} +2 -2
  15. package/bundle/{chunk-DKKEYKSG.js → chunk-NGQU3QTQ.js} +996 -1558
  16. package/bundle/{chunk-VLYI5NP4.js → chunk-O7MGOE2I.js} +16023 -9466
  17. package/bundle/{chunk-RD2EMHV2.js → chunk-OJ62HCXG.js} +1 -1
  18. package/bundle/{chunk-HRM7UWGB.js → chunk-P62CI7AR.js} +11 -9
  19. package/bundle/{chunk-H3WGFU7D.js → chunk-PUNFASKY.js} +1 -1
  20. package/bundle/{chunk-L77QEOSK.js → chunk-QA5FT4VY.js} +3 -3
  21. package/bundle/{chunk-WY3X2UP2.js → chunk-QTXJG3I3.js} +8 -9
  22. package/bundle/{chunk-XBEZPOEF.js → chunk-VK766A3F.js} +1 -1
  23. package/bundle/{chunk-3DAQUNXR.js → chunk-VO6PFWLY.js} +15 -15
  24. package/bundle/{chunk-ILNZCTNC.js → chunk-XETHQLRU.js} +106 -327
  25. package/bundle/{chunk-7SSKD5HN.js → chunk-YUO7RUF4.js} +1 -1
  26. package/bundle/{cleanup-3ALSKRBJ.js → cleanup-B6AOSVD4.js} +2 -2
  27. package/bundle/{cleanup-6DVNSRQY.js → cleanup-BRFB47DL.js} +2 -2
  28. package/bundle/{cleanup-HRNPECKR.js → cleanup-S5QFYCEP.js} +2 -2
  29. package/bundle/{core-NQRKBS47.js → core-GTUUQBGE.js} +1 -3
  30. package/bundle/{dist-QYTQZ6QW.js → core-N27LU4DK.js} +1 -3
  31. package/bundle/{devtoolsService-EWNQDTC7.js → devtoolsService-6V46WMXX.js} +2 -2
  32. package/bundle/{devtoolsService-64TPRUWQ.js → devtoolsService-E74ZMDMM.js} +2 -2
  33. package/bundle/{devtoolsService-E6I4WSAL.js → devtoolsService-EFJXZRFD.js} +3 -4
  34. package/bundle/{dist-L5NYU7FF.js → dist-E6RCLXQU.js} +1 -3
  35. package/bundle/docs/changelogs/index.md +0 -24
  36. package/bundle/docs/changelogs/latest.md +90 -83
  37. package/bundle/docs/changelogs/preview.md +87 -89
  38. package/bundle/docs/cli/sandbox.md +2 -8
  39. package/bundle/docs/cli/themes.md +3 -6
  40. package/bundle/docs/extensions/releasing.md +0 -32
  41. package/bundle/docs/reference/configuration.md +10 -2
  42. package/bundle/{gemini-YFCTZ76S.js → gemini-4JPKPLQN.js} +24 -122
  43. package/bundle/{gemini-QAVNR7N4.js → gemini-QWDTSJTS.js} +209 -323
  44. package/bundle/{gemini-7USJ6MGR.js → gemini-VF5FS3OM.js} +24 -122
  45. package/bundle/gemini.js +7 -7
  46. package/bundle/{interactiveCli-X54KN2EM.js → interactiveCli-F2YYMYTP.js} +1145 -1350
  47. package/bundle/{interactiveCli-XN43CGES.js → interactiveCli-FQ3YKGOG.js} +1428 -1652
  48. package/bundle/{interactiveCli-3VTQP4GH.js → interactiveCli-QJZZISQQ.js} +1145 -1350
  49. package/bundle/{liteRtServerManager-E4PDEWY3.js → liteRtServerManager-27R2M6XE.js} +4 -4
  50. package/bundle/{liteRtServerManager-ENSSU4TN.js → liteRtServerManager-JAV3GR4V.js} +4 -4
  51. package/bundle/{liteRtServerManager-FLPMMDNM.js → liteRtServerManager-X5CCMKM6.js} +4 -4
  52. package/bundle/{oauth2-provider-3MJNDLJF.js → oauth2-provider-6UCP23AQ.js} +1 -1
  53. package/bundle/{oauth2-provider-VMBYZOC7.js → oauth2-provider-C65IJMNQ.js} +1 -1
  54. package/bundle/{oauth2-provider-ZIZQIT7D.js → oauth2-provider-H2KV36NU.js} +79 -41
  55. package/bundle/{start-B63MUWDV.js → start-E4ZL44QM.js} +6 -6
  56. package/bundle/{start-DFHM4HI4.js → start-GNOA75NQ.js} +6 -6
  57. package/bundle/{start-OHBUJSIL.js → start-K2AYYNST.js} +6 -6
  58. package/package.json +1 -1
  59. package/bundle/chunk-674DJGDU.js +0 -512
  60. package/bundle/chunk-M4REEHDQ.js +0 -185
  61. package/bundle/chunk-NOMIJA6W.js +0 -1956
  62. package/bundle/chunk-ORXIIXSA.js +0 -80453
  63. package/bundle/chunk-Q3OUSMTD.js +0 -39405
  64. package/bundle/chunk-Q76ZDILI.js +0 -118
  65. package/bundle/chunk-T6YNV33L.js +0 -1571
  66. package/bundle/chunk-YTSRA7S6.js +0 -403181
  67. package/bundle/cleanup-OQV2G5Y3.js +0 -34
  68. package/bundle/devtoolsService-PG47POWV.js +0 -4422
  69. package/bundle/dist-LJVRZOCO.js +0 -2298
  70. package/bundle/gemini-QVVNPYKF.js +0 -19271
  71. package/bundle/interactiveCli-ELN2VGHK.js +0 -35871
  72. package/bundle/liteRtServerManager-TYCQMNCE.js +0 -65
  73. package/bundle/oauth2-provider-NLSE3P5W.js +0 -273
  74. package/bundle/start-V3EP7MBL.js +0 -18
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-RCF66HCI.js";
8
+ } from "./chunk-LAR4JEC7.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
  require_react
4
- } from "./chunk-VBHMFLBY.js";
4
+ } from "./chunk-QTXJG3I3.js";
5
5
  import {
6
6
  AuthProviderType,
7
7
  AuthType,
@@ -35,7 +35,7 @@ import {
35
35
  partListUnionToString,
36
36
  require_strip_json_comments,
37
37
  sanitizeFilenamePart
38
- } from "./chunk-RCF66HCI.js";
38
+ } from "./chunk-LAR4JEC7.js";
39
39
  import {
40
40
  __commonJS,
41
41
  __export,
@@ -31297,11 +31297,14 @@ function sanitizeForDisplay(str, maxLength) {
31297
31297
  return "";
31298
31298
  }
31299
31299
  let sanitized = stripUnsafeCharacters(str).replace(/\s+/g, " ");
31300
- if (maxLength && cpLen(sanitized) > maxLength) {
31301
- sanitized = cpSlice(sanitized, 0, Math.max(0, maxLength - 3)) + "...";
31300
+ if (maxLength && sanitized.length > maxLength) {
31301
+ sanitized = sanitized.substring(0, maxLength - 3) + "...";
31302
31302
  }
31303
31303
  return sanitized;
31304
31304
  }
31305
+ function normalizeEscapedNewlines(value) {
31306
+ return value.replace(/\\r\\n/g, "\n").replace(/\\n/g, "\n");
31307
+ }
31305
31308
  var stringWidthCache = new import_lru_cache.default(
31306
31309
  LRU_BUFFER_PERF_CACHE_LIMIT
31307
31310
  );
@@ -33435,7 +33438,6 @@ var Theme = class _Theme {
33435
33438
  }
33436
33439
  };
33437
33440
  function createCustomTheme(customTheme) {
33438
- const focusColor = customTheme.ui?.focus ?? customTheme.status?.success ?? customTheme.AccentGreen ?? "#3CA84B";
33439
33441
  const colors = {
33440
33442
  type: "custom",
33441
33443
  Background: customTheme.background?.primary ?? customTheme.Background ?? "",
@@ -33468,10 +33470,11 @@ function createCustomTheme(customTheme) {
33468
33470
  ),
33469
33471
  FocusBackground: interpolateColor(
33470
33472
  customTheme.background?.primary ?? customTheme.Background ?? "",
33471
- focusColor,
33473
+ customTheme.status?.success ?? customTheme.AccentGreen ?? "#3CA84B",
33474
+ // Fallback to a default green if not found
33472
33475
  DEFAULT_SELECTION_OPACITY
33473
33476
  ),
33474
- FocusColor: focusColor,
33477
+ FocusColor: customTheme.ui?.focus ?? customTheme.AccentGreen,
33475
33478
  GradientColors: customTheme.ui?.gradient ?? customTheme.GradientColors
33476
33479
  };
33477
33480
  const rawMappings = {
@@ -37004,8 +37007,6 @@ var SETTINGS_SCHEMA_DEFINITIONS = {
37004
37007
  properties: {
37005
37008
  comment: { type: "string" },
37006
37009
  symbol: { type: "string" },
37007
- active: { type: "string" },
37008
- focus: { type: "string" },
37009
37010
  gradient: {
37010
37011
  type: "array",
37011
37012
  items: { type: "string" }
@@ -39171,6 +39172,7 @@ export {
39171
39172
  cpSlice,
39172
39173
  stripUnsafeCharacters,
39173
39174
  sanitizeForDisplay,
39175
+ normalizeEscapedNewlines,
39174
39176
  setAmbiguousCharactersWide,
39175
39177
  getCachedStringWidth,
39176
39178
  escapeAnsiCtrlCodes,
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-YTSRA7S6.js";
8
+ } from "./chunk-NGQU3QTQ.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises 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-T6YNV33L.js";
5
+ } from "./chunk-IGE3G3WZ.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-Q3OUSMTD.js";
17
+ } from "./chunk-P62CI7AR.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-DKKEYKSG.js";
20
+ } from "./chunk-LAR4JEC7.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -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-VLYI5NP4.js";
4
+ } from "./chunk-LAR4JEC7.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-DKKEYKSG.js";
8
+ } from "./chunk-O7MGOE2I.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -1,12 +1,10 @@
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
  require_react
4
- } from "./chunk-WY3X2UP2.js";
4
+ } from "./chunk-IDJ4QXBF.js";
5
5
  import {
6
6
  AuthProviderType,
7
7
  AuthType,
8
- CoreEvent,
9
- CoreToolCallStatus,
10
8
  DEFAULT_MODEL_CONFIGS,
11
9
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
12
10
  EDITOR_OPTIONS,
@@ -37,7 +35,7 @@ import {
37
35
  partListUnionToString,
38
36
  require_strip_json_comments,
39
37
  sanitizeFilenamePart
40
- } from "./chunk-VLYI5NP4.js";
38
+ } from "./chunk-O7MGOE2I.js";
41
39
  import {
42
40
  __commonJS,
43
41
  __export,
@@ -31299,11 +31297,14 @@ function sanitizeForDisplay(str, maxLength) {
31299
31297
  return "";
31300
31298
  }
31301
31299
  let sanitized = stripUnsafeCharacters(str).replace(/\s+/g, " ");
31302
- if (maxLength && cpLen(sanitized) > maxLength) {
31303
- sanitized = cpSlice(sanitized, 0, Math.max(0, maxLength - 3)) + "...";
31300
+ if (maxLength && sanitized.length > maxLength) {
31301
+ sanitized = sanitized.substring(0, maxLength - 3) + "...";
31304
31302
  }
31305
31303
  return sanitized;
31306
31304
  }
31305
+ function normalizeEscapedNewlines(value) {
31306
+ return value.replace(/\\r\\n/g, "\n").replace(/\\n/g, "\n");
31307
+ }
31307
31308
  var stringWidthCache = new import_lru_cache.default(
31308
31309
  LRU_BUFFER_PERF_CACHE_LIMIT
31309
31310
  );
@@ -31795,7 +31796,7 @@ function convertSessionToHistoryFormats(messages) {
31795
31796
  args: tool.args,
31796
31797
  description: tool.description || "",
31797
31798
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
31798
- status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
31799
+ status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
31799
31800
  resultDisplay: tool.resultDisplay,
31800
31801
  confirmationDetails: void 0
31801
31802
  }))
@@ -33437,7 +33438,6 @@ var Theme = class _Theme {
33437
33438
  }
33438
33439
  };
33439
33440
  function createCustomTheme(customTheme) {
33440
- const focusColor = customTheme.ui?.focus ?? customTheme.status?.success ?? customTheme.AccentGreen ?? "#3CA84B";
33441
33441
  const colors = {
33442
33442
  type: "custom",
33443
33443
  Background: customTheme.background?.primary ?? customTheme.Background ?? "",
@@ -33470,10 +33470,11 @@ function createCustomTheme(customTheme) {
33470
33470
  ),
33471
33471
  FocusBackground: interpolateColor(
33472
33472
  customTheme.background?.primary ?? customTheme.Background ?? "",
33473
- focusColor,
33473
+ customTheme.status?.success ?? customTheme.AccentGreen ?? "#3CA84B",
33474
+ // Fallback to a default green if not found
33474
33475
  DEFAULT_SELECTION_OPACITY
33475
33476
  ),
33476
- FocusColor: focusColor,
33477
+ FocusColor: customTheme.ui?.focus ?? customTheme.AccentGreen,
33477
33478
  GradientColors: customTheme.ui?.gradient ?? customTheme.GradientColors
33478
33479
  };
33479
33480
  const rawMappings = {
@@ -37006,8 +37007,6 @@ var SETTINGS_SCHEMA_DEFINITIONS = {
37006
37007
  properties: {
37007
37008
  comment: { type: "string" },
37008
37009
  symbol: { type: "string" },
37009
- active: { type: "string" },
37010
- focus: { type: "string" },
37011
37010
  gradient: {
37012
37011
  type: "array",
37013
37012
  items: { type: "string" }
@@ -37974,8 +37973,8 @@ var LoadedSettings = class {
37974
37973
  // React will pass a listener fn into this subscribe fn
37975
37974
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
37976
37975
  subscribe(listener) {
37977
- coreEvents.on(CoreEvent.SettingsChanged, listener);
37978
- return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
37976
+ coreEvents.on("settings-changed" /* SettingsChanged */, listener);
37977
+ return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
37979
37978
  }
37980
37979
  getSnapshot() {
37981
37980
  return this._snapshot;
@@ -38124,7 +38123,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
38124
38123
  }
38125
38124
  }
38126
38125
  let value = "cloudshell-gca";
38127
- if (selectedAuthType === AuthType.USE_VERTEX_AI) {
38126
+ if (selectedAuthType === "vertex-ai" /* USE_VERTEX_AI */) {
38128
38127
  value = process19.env[USER_GCP_PROJECT];
38129
38128
  }
38130
38129
  if (envFilePath && fs9.existsSync(envFilePath)) {
@@ -39173,6 +39172,7 @@ export {
39173
39172
  cpSlice,
39174
39173
  stripUnsafeCharacters,
39175
39174
  sanitizeForDisplay,
39175
+ normalizeEscapedNewlines,
39176
39176
  setAmbiguousCharactersWide,
39177
39177
  getCachedStringWidth,
39178
39178
  escapeAnsiCtrlCodes,