@google/gemini-cli 0.42.0 → 0.44.0-nightly.20260513.g5ee05c775

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 (80) hide show
  1. package/bundle/{chunk-COQP2M4D.js → chunk-27SPXGT2.js} +562 -437
  2. package/bundle/{chunk-EDKX67D6.js → chunk-2VH3SA6M.js} +43 -23
  3. package/bundle/{chunk-PUDLNWHE.js → chunk-3KOQHVJU.js} +3 -3
  4. package/bundle/{chunk-COKAF5GM.js → chunk-4QQ5AHZP.js} +2 -2
  5. package/bundle/{chunk-KVEAHIIV.js → chunk-5EEEHNEE.js} +3 -3
  6. package/bundle/{chunk-G2VTSEZ6.js → chunk-5SMSFUPB.js} +1 -1
  7. package/bundle/{chunk-7VVHSNDQ.js → chunk-AC2EWTF7.js} +1970 -731
  8. package/bundle/{chunk-GA527JB7.js → chunk-ATSNFRDF.js} +1 -1
  9. package/bundle/{chunk-3IS7GD6D.js → chunk-BA752AEU.js} +3 -3
  10. package/bundle/{chunk-CYEIWMZJ.js → chunk-FGYOOMPI.js} +1 -1
  11. package/bundle/{chunk-QOZSZYL7.js → chunk-FK45PHSI.js} +3 -3
  12. package/bundle/{chunk-I7AME6VC.js → chunk-FTY6BJEY.js} +9 -8
  13. package/bundle/{chunk-NTOPH4WG.js → chunk-GCWBZXBS.js} +2 -2
  14. package/bundle/chunk-I2JHD4D3.js +512 -0
  15. package/bundle/{chunk-7C6GGDK6.js → chunk-IZJOLGNO.js} +3 -3
  16. package/bundle/{chunk-4SLGT6YD.js → chunk-J4YAW3P3.js} +1 -1
  17. package/bundle/chunk-KADNKBXT.js +118 -0
  18. package/bundle/{chunk-DN4XSYRG.js → chunk-LF33N5QM.js} +8696 -13355
  19. package/bundle/{chunk-CHERUG6W.js → chunk-LO22NRY4.js} +502 -390
  20. package/bundle/{chunk-JEW7ZIWE.js → chunk-M7OUJJZ2.js} +5270 -5234
  21. package/bundle/{chunk-WIXUKOZA.js → chunk-MFNKZZOB.js} +1 -1
  22. package/bundle/chunk-MLPM54XD.js +357247 -0
  23. package/bundle/{chunk-ECNYAST2.js → chunk-N22WUHJE.js} +5419 -5378
  24. package/bundle/chunk-OC7XGTLV.js +81656 -0
  25. package/bundle/{chunk-ZNMQA242.js → chunk-QDEK3TQ6.js} +3 -3
  26. package/bundle/{chunk-BCYBA52D.js → chunk-QMXQUBC4.js} +43 -23
  27. package/bundle/chunk-TBHMNRI3.js +1571 -0
  28. package/bundle/{chunk-LATVEETM.js → chunk-TOOOS4HD.js} +2 -2
  29. package/bundle/{chunk-XUMRUXOT.js → chunk-UHSQLPNG.js} +50 -27
  30. package/bundle/chunk-USS2A6NQ.js +156 -0
  31. package/bundle/chunk-WMTLLWRC.js +391 -0
  32. package/bundle/chunk-XDWZDV7C.js +17250 -0
  33. package/bundle/{chunk-DMWX7UP6.js → chunk-YBYQH75I.js} +2252 -829
  34. package/bundle/{chunk-FCAODPNO.js → chunk-ZZN56QZ3.js} +502 -390
  35. package/bundle/{cleanup-3RILFNVM.js → cleanup-2H3SANYB.js} +3 -3
  36. package/bundle/{cleanup-SVRKYBR6.js → cleanup-7GY7BVC6.js} +3 -3
  37. package/bundle/{cleanup-XFVHHDVO.js → cleanup-FERREFU6.js} +3 -3
  38. package/bundle/cleanup-VIITMMDH.js +33 -0
  39. package/bundle/{core-FRVSDP2C.js → core-GS6NXK7Y.js} +30 -2
  40. package/bundle/{devtoolsService-VM2WTHBX.js → devtoolsService-FKC6Y4OE.js} +3 -3
  41. package/bundle/{devtoolsService-TRDGMQLJ.js → devtoolsService-K2DRCZEY.js} +5 -4
  42. package/bundle/{devtoolsService-RUEO5PGP.js → devtoolsService-PS6RYICL.js} +3 -3
  43. package/bundle/devtoolsService-ZDXC2NPD.js +857 -0
  44. package/bundle/{dist-6BN2CJPN.js → dist-S3YUNQKP.js} +30 -2
  45. package/bundle/{core-B5S6HZJT.js → dist-TBGNMYU2.js} +30 -2
  46. package/bundle/dist-ZEW43MLQ.js +2124 -0
  47. package/bundle/docs/changelogs/index.md +30 -0
  48. package/bundle/docs/changelogs/latest.md +261 -166
  49. package/bundle/docs/changelogs/preview.md +178 -103
  50. package/bundle/docs/cli/auto-memory.md +60 -38
  51. package/bundle/docs/cli/settings.md +1 -1
  52. package/bundle/docs/cli/tutorials/memory-management.md +1 -1
  53. package/bundle/docs/extensions/releasing.md +58 -24
  54. package/bundle/docs/reference/configuration.md +14 -1
  55. package/bundle/docs/reference/keyboard-shortcuts.md +23 -0
  56. package/bundle/{gemini-QSTQ2DBG.js → gemini-6YGVETF3.js} +165 -61
  57. package/bundle/{gemini-GHUELHBF.js → gemini-7FCGNXOV.js} +350 -232
  58. package/bundle/gemini-IXZUGRVP.js +16360 -0
  59. package/bundle/{gemini-NQPVX5JC.js → gemini-WYTY4CD5.js} +165 -61
  60. package/bundle/gemini.js +8 -8
  61. package/bundle/{interactiveCli-AG2YWL2O.js → interactiveCli-A2FV6NYD.js} +1721 -1472
  62. package/bundle/{interactiveCli-MZFG35NB.js → interactiveCli-DWNRHVIB.js} +2003 -1736
  63. package/bundle/{interactiveCli-453M2IVE.js → interactiveCli-H7N4UXVQ.js} +1720 -1472
  64. package/bundle/interactiveCli-XRZEELCX.js +34754 -0
  65. package/bundle/{liteRtServerManager-G4Q7OVBX.js → liteRtServerManager-5C5EONBK.js} +5 -5
  66. package/bundle/{liteRtServerManager-S7WL25VD.js → liteRtServerManager-NQKPNCLR.js} +5 -5
  67. package/bundle/{liteRtServerManager-BXQ6VVWP.js → liteRtServerManager-UJBPII3P.js} +5 -5
  68. package/bundle/liteRtServerManager-UZCAJJCS.js +66 -0
  69. package/bundle/{memoryDiscovery-KSYZVCWF.js → memoryDiscovery-ALKMYAPP.js} +1 -1
  70. package/bundle/{memoryDiscovery-FB7MMKTA.js → memoryDiscovery-XFCKEF3F.js} +1 -1
  71. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  72. package/bundle/{oauth2-provider-VR4DL6AL.js → oauth2-provider-JNOY6NUI.js} +2 -2
  73. package/bundle/{oauth2-provider-H7G6RSFW.js → oauth2-provider-O6OA5EMU.js} +2 -2
  74. package/bundle/{oauth2-provider-5UF5WEE2.js → oauth2-provider-QYCLASEA.js} +39 -73
  75. package/bundle/oauth2-provider-VWLTUFO7.js +237 -0
  76. package/bundle/{start-CQBSKFYB.js → start-6FV3VPPH.js} +7 -7
  77. package/bundle/{start-NIMXQJYB.js → start-IWAUTCYF.js} +7 -7
  78. package/bundle/{start-2SKRN43X.js → start-L4DAQUQM.js} +7 -7
  79. package/bundle/start-XTXUKP77.js +19 -0
  80. package/package.json +1 -1
@@ -1,15 +1,15 @@
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-NTOPH4WG.js";
4
+ } from "./chunk-4QQ5AHZP.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  getChannelFromVersion,
8
8
  isGitRepository
9
- } from "./chunk-DMWX7UP6.js";
9
+ } from "./chunk-YBYQH75I.js";
10
10
  import {
11
11
  debugLogger
12
- } from "./chunk-ECNYAST2.js";
12
+ } from "./chunk-N22WUHJE.js";
13
13
 
14
14
  // packages/cli/src/utils/installationInfo.ts
15
15
  import * as fs from "node:fs";
@@ -20,7 +20,7 @@ import {
20
20
  require_strip_json_comments,
21
21
  sanitizeFilenamePart,
22
22
  stripAnsi
23
- } from "./chunk-DMWX7UP6.js";
23
+ } from "./chunk-YBYQH75I.js";
24
24
  import {
25
25
  FatalConfigError,
26
26
  GEMINI_DIR,
@@ -30,7 +30,7 @@ import {
30
30
  external_exports,
31
31
  getErrorMessage,
32
32
  homedir
33
- } from "./chunk-ECNYAST2.js";
33
+ } from "./chunk-N22WUHJE.js";
34
34
  import {
35
35
  __commonJS,
36
36
  __require,
@@ -9959,9 +9959,13 @@ var getAllSessionFiles = async (chatsDir, currentSessionId, options = {}) => {
9959
9959
  if (!content) {
9960
9960
  return { fileName: file, sessionInfo: null };
9961
9961
  }
9962
- if (!content.sessionId || !content.startTime || !content.lastUpdated) {
9962
+ if (!content.sessionId) {
9963
9963
  return { fileName: file, sessionInfo: null };
9964
9964
  }
9965
+ const fileTimestamp = !content.startTime || !content.lastUpdated ? (await fs.stat(filePath).catch(() => void 0))?.mtime.toISOString() : void 0;
9966
+ const fallbackTimestamp = fileTimestamp ?? (/* @__PURE__ */ new Date()).toISOString();
9967
+ const startTime = content.startTime || content.lastUpdated || fallbackTimestamp;
9968
+ const lastUpdated = content.lastUpdated || content.startTime || fallbackTimestamp;
9965
9969
  if (!content.hasUserOrAssistantMessage) {
9966
9970
  return { fileName: file, sessionInfo: null };
9967
9971
  }
@@ -9983,8 +9987,8 @@ var getAllSessionFiles = async (chatsDir, currentSessionId, options = {}) => {
9983
9987
  id: content.sessionId,
9984
9988
  file: file.replace(/\.jsonl?$/, ""),
9985
9989
  fileName: file,
9986
- startTime: content.startTime,
9987
- lastUpdated: content.lastUpdated,
9990
+ startTime,
9991
+ lastUpdated,
9988
9992
  messageCount: content.messageCount ?? content.messages.length,
9989
9993
  displayName: content.summary ? stripUnsafeCharacters(content.summary) : firstUserMessage,
9990
9994
  firstUserMessage,
@@ -10138,10 +10142,15 @@ var SessionSelector = class {
10138
10142
  if (!sessionData) {
10139
10143
  throw new Error("Failed to load session data");
10140
10144
  }
10145
+ const normalizedSessionData = {
10146
+ ...sessionData,
10147
+ startTime: sessionData.startTime || sessionInfo.startTime,
10148
+ lastUpdated: sessionData.lastUpdated || sessionInfo.lastUpdated
10149
+ };
10141
10150
  const displayInfo = `Session ${sessionInfo.index}: ${sessionInfo.firstUserMessage} (${sessionInfo.messageCount} messages, ${formatRelativeTime(sessionInfo.lastUpdated)})`;
10142
10151
  return {
10143
10152
  sessionPath,
10144
- sessionData,
10153
+ sessionData: normalizedSessionData,
10145
10154
  displayInfo
10146
10155
  };
10147
10156
  } catch (error) {
@@ -10528,8 +10537,8 @@ async function cleanupToolOutputFiles(settings, debugMode = false, projectTempDi
10528
10537
  files.map(async (file) => {
10529
10538
  try {
10530
10539
  const filePath = path2.join(toolOutputDir, file.name);
10531
- const stat2 = await fs2.stat(filePath);
10532
- return { name: file.name, mtime: stat2.mtime };
10540
+ const stat3 = await fs2.stat(filePath);
10541
+ return { name: file.name, mtime: stat3.mtime };
10533
10542
  } catch (error) {
10534
10543
  debugLogger.debug(
10535
10544
  `Failed to stat file ${file.name}: ${error instanceof Error ? error.message : "Unknown error"}`
@@ -10582,12 +10591,12 @@ async function cleanupToolOutputFiles(settings, debugMode = false, projectTempDi
10582
10591
  continue;
10583
10592
  }
10584
10593
  const subdirPath = path2.join(toolOutputDir, subdir.name);
10585
- const stat2 = await fs2.stat(subdirPath);
10594
+ const stat3 = await fs2.stat(subdirPath);
10586
10595
  let shouldDelete = false;
10587
10596
  if (retentionConfig.maxAge) {
10588
10597
  const maxAgeMs = parseRetentionPeriod(retentionConfig.maxAge);
10589
10598
  const cutoffDate = new Date(now.getTime() - maxAgeMs);
10590
- if (stat2.mtime < cutoffDate) {
10599
+ if (stat3.mtime < cutoffDate) {
10591
10600
  shouldDelete = true;
10592
10601
  }
10593
10602
  }
@@ -14265,7 +14274,7 @@ var SETTINGS_SCHEMA = {
14265
14274
  label: "Voice Stop Grace Period (ms)",
14266
14275
  category: "Experimental",
14267
14276
  requiresRestart: false,
14268
- default: 1e3,
14277
+ default: 4e3,
14269
14278
  description: "How long to wait for final transcription after stopping recording.",
14270
14279
  showInDialog: true
14271
14280
  }
@@ -15611,17 +15620,19 @@ function resolveEnvVarsInObjectInternal(obj, visited, customEnv) {
15611
15620
  }
15612
15621
  if (Array.isArray(obj)) {
15613
15622
  if (visited.has(obj)) {
15614
- return [...obj];
15623
+ const copy = [...obj];
15624
+ const isTArray2 = (val) => Array.isArray(val);
15625
+ if (isTArray2(copy)) return copy;
15626
+ throw new Error("Unreachable");
15615
15627
  }
15616
15628
  visited.add(obj);
15617
- const result = obj.map(
15618
- (item) => (
15619
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
15620
- resolveEnvVarsInObjectInternal(item, visited, customEnv)
15621
- )
15629
+ const mapped = obj.map(
15630
+ (item) => resolveEnvVarsInObjectInternal(item, visited, customEnv)
15622
15631
  );
15623
15632
  visited.delete(obj);
15624
- return result;
15633
+ const isTArray = (val) => Array.isArray(val);
15634
+ if (isTArray(mapped)) return mapped;
15635
+ throw new Error("Unreachable");
15625
15636
  }
15626
15637
  if (typeof obj === "object") {
15627
15638
  if (visited.has(obj)) {
@@ -16172,6 +16183,14 @@ var LoadedSettings = class {
16172
16183
  get merged() {
16173
16184
  return this._merged;
16174
16185
  }
16186
+ /**
16187
+ * Returns a merged settings object as if the folder were trusted.
16188
+ * This is useful for commands like 'mcp list' that want to show
16189
+ * what's configured even if it's currently disabled for security reasons.
16190
+ */
16191
+ getMergedSettingsAsIfTrusted() {
16192
+ return this.computeMergedSettings(true);
16193
+ }
16175
16194
  setTrusted(isTrusted) {
16176
16195
  if (this.isTrusted === isTrusted) {
16177
16196
  return;
@@ -16188,13 +16207,15 @@ var LoadedSettings = class {
16188
16207
  originalSettings: {}
16189
16208
  };
16190
16209
  }
16191
- computeMergedSettings() {
16210
+ computeMergedSettings(forceTrusted = false) {
16211
+ const isTrusted = forceTrusted || this.isTrusted;
16212
+ const workspace = forceTrusted ? this._workspaceFile : this.workspace;
16192
16213
  const merged = mergeSettings(
16193
16214
  this.system.settings,
16194
16215
  this.systemDefaults.settings,
16195
16216
  this.user.settings,
16196
- this.workspace.settings,
16197
- this.isTrusted
16217
+ workspace.settings,
16218
+ isTrusted
16198
16219
  );
16199
16220
  const adminSettingSchema = getSettingsSchema().admin;
16200
16221
  if (adminSettingSchema?.properties) {
@@ -16210,8 +16231,7 @@ var LoadedSettings = class {
16210
16231
  }
16211
16232
  computeSnapshot() {
16212
16233
  const cloneSettingsFile = (file) => ({
16213
- path: file.path,
16214
- rawJson: file.rawJson,
16234
+ ...file,
16215
16235
  settings: structuredClone(file.settings),
16216
16236
  originalSettings: structuredClone(file.originalSettings)
16217
16237
  });