@google/gemini-cli 0.42.0-preview.2 → 0.43.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 (80) hide show
  1. package/bundle/{chunk-FIIOJPLW.js → chunk-43AGRA7S.js} +3 -3
  2. package/bundle/{chunk-M6ZQAQKH.js → chunk-46T44JOY.js} +1 -1
  3. package/bundle/{chunk-OFOKTVUH.js → chunk-4TLQKGTR.js} +1 -1
  4. package/bundle/{chunk-4NXNVHPO.js → chunk-6XOSIMPZ.js} +8 -9
  5. package/bundle/{chunk-AAU5XCLJ.js → chunk-HQXINMBL.js} +2 -2
  6. package/bundle/{chunk-QM234EIA.js → chunk-JENIU3E3.js} +1 -1
  7. package/bundle/{chunk-R7BHIYZD.js → chunk-LBQFRHYD.js} +1 -1
  8. package/bundle/{chunk-WLPWIJ3Y.js → chunk-LFGJVOVZ.js} +486 -381
  9. package/bundle/{chunk-DEKZKOVU.js → chunk-MRHFLHPJ.js} +2 -2
  10. package/bundle/{chunk-ODIOD5TJ.js → chunk-MXKXLNQD.js} +3 -3
  11. package/bundle/{chunk-ECNYAST2.js → chunk-N6QYTC2T.js} +5417 -5376
  12. package/bundle/{chunk-WOGMVEEF.js → chunk-NBRZ4A3S.js} +2170 -791
  13. package/bundle/{chunk-Q24MYLMP.js → chunk-P4UQCQUB.js} +3 -3
  14. package/bundle/{chunk-S3WIE72K.js → chunk-PGJUNQPO.js} +34 -16
  15. package/bundle/{chunk-THNM4JU6.js → chunk-PSWUV2OO.js} +3 -3
  16. package/bundle/{chunk-6QBZKEWW.js → chunk-PYLHDAUK.js} +3 -3
  17. package/bundle/{chunk-2KRAWFEQ.js → chunk-Q23X5R4A.js} +486 -381
  18. package/bundle/{chunk-SJ6AOVZF.js → chunk-QYUN3J2L.js} +533 -441
  19. package/bundle/{chunk-77HSANAH.js → chunk-SAISHGWW.js} +1907 -716
  20. package/bundle/{chunk-I6IY72IP.js → chunk-SYD5SJFT.js} +38 -23
  21. package/bundle/{chunk-JW36FWGZ.js → chunk-T3SUXLQQ.js} +2 -2
  22. package/bundle/{chunk-BLNG7CSO.js → chunk-UIG2IVPJ.js} +34 -16
  23. package/bundle/{chunk-JEW7ZIWE.js → chunk-UJ26GAE5.js} +5326 -5290
  24. package/bundle/{chunk-E54WEGH3.js → chunk-UNAVBUTP.js} +14729 -7452
  25. package/bundle/{chunk-LYMYMKWM.js → chunk-WQOLTO3C.js} +1 -1
  26. package/bundle/{chunk-WFKT4UTI.js → chunk-X26T73X6.js} +3 -3
  27. package/bundle/{cleanup-5FPOUEHR.js → cleanup-EIZJH2E3.js} +3 -3
  28. package/bundle/{cleanup-G7DNOS4V.js → cleanup-MI76P55B.js} +3 -3
  29. package/bundle/{cleanup-GZM5KIZA.js → cleanup-NZBQYB7U.js} +3 -3
  30. package/bundle/{core-IYSSLWMM.js → core-ERSGIOMQ.js} +30 -2
  31. package/bundle/{dist-D7FZVGG3.js → core-T2TBFAYG.js} +30 -2
  32. package/bundle/{devtoolsService-UADEEKOH.js → devtoolsService-7KZDSYEF.js} +3 -3
  33. package/bundle/{devtoolsService-3XOQOECV.js → devtoolsService-FYTOIC37.js} +3 -3
  34. package/bundle/{devtoolsService-7ZN7CSSO.js → devtoolsService-LV5NJ2BT.js} +4 -5
  35. package/bundle/{dist-GF2RNVWZ.js → dist-ETX67B7P.js} +30 -2
  36. package/bundle/docs/changelogs/index.md +14 -0
  37. package/bundle/docs/changelogs/latest.md +108 -166
  38. package/bundle/docs/changelogs/preview.md +227 -103
  39. package/bundle/docs/cli/auto-memory.md +60 -38
  40. package/bundle/docs/cli/settings.md +1 -1
  41. package/bundle/docs/cli/tutorials/memory-management.md +1 -1
  42. package/bundle/docs/extensions/releasing.md +58 -24
  43. package/bundle/docs/reference/configuration.md +14 -1
  44. package/bundle/docs/reference/keyboard-shortcuts.md +23 -0
  45. package/bundle/{gemini-IRKIMLB4.js → gemini-IVKBXHDT.js} +160 -60
  46. package/bundle/{gemini-MWN2MSYV.js → gemini-JKWQQTKP.js} +160 -60
  47. package/bundle/{gemini-IMX43TZ4.js → gemini-Z77GAAR6.js} +331 -245
  48. package/bundle/gemini.js +8 -8
  49. package/bundle/{interactiveCli-SAMKYHUU.js → interactiveCli-36WZS6KT.js} +1704 -1457
  50. package/bundle/{interactiveCli-752P4PTI.js → interactiveCli-BQ36B66Z.js} +1703 -1457
  51. package/bundle/{interactiveCli-VX6GBWOV.js → interactiveCli-SME5QTEN.js} +1967 -1739
  52. package/bundle/{liteRtServerManager-CDLVKT7N.js → liteRtServerManager-2QD4R3A3.js} +5 -5
  53. package/bundle/{liteRtServerManager-FPYU5KEK.js → liteRtServerManager-ISYDOBNC.js} +5 -5
  54. package/bundle/{liteRtServerManager-OWPZ35U6.js → liteRtServerManager-N6OMT6W5.js} +5 -5
  55. package/bundle/{memoryDiscovery-FB7MMKTA.js → memoryDiscovery-LLSKN6HL.js} +1 -1
  56. package/bundle/{memoryDiscovery-KSYZVCWF.js → memoryDiscovery-SJ7P6RCN.js} +1 -1
  57. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  58. package/bundle/{oauth2-provider-446FDCUW.js → oauth2-provider-DOSIH6VE.js} +2 -2
  59. package/bundle/{oauth2-provider-RQNNLGWV.js → oauth2-provider-TZF6EZRX.js} +2 -2
  60. package/bundle/{oauth2-provider-6W4IY3LC.js → oauth2-provider-VFOABWBW.js} +73 -39
  61. package/bundle/{start-6U3XBAVH.js → start-3GPIRK3E.js} +7 -7
  62. package/bundle/{start-KUNHDGRA.js → start-6NONW677.js} +7 -7
  63. package/bundle/{start-TTLMBKNX.js → start-M6MUPEJS.js} +7 -7
  64. package/package.json +1 -1
  65. package/bundle/chunk-76KOJPMV.js +0 -391
  66. package/bundle/chunk-LHVIO4J4.js +0 -81544
  67. package/bundle/chunk-OP6THN3K.js +0 -118
  68. package/bundle/chunk-RO2XVFEU.js +0 -512
  69. package/bundle/chunk-WRDVEMWE.js +0 -1571
  70. package/bundle/chunk-YDC4M26X.js +0 -156
  71. package/bundle/chunk-ZDP2ZWKG.js +0 -17230
  72. package/bundle/chunk-ZFOGBX2H.js +0 -356008
  73. package/bundle/cleanup-J6AUEKWI.js +0 -33
  74. package/bundle/devtoolsService-KTUMQHXG.js +0 -857
  75. package/bundle/dist-HBMVDPXB.js +0 -2096
  76. package/bundle/gemini-SYFUC6XO.js +0 -16256
  77. package/bundle/interactiveCli-37SKHAKX.js +0 -34505
  78. package/bundle/liteRtServerManager-OWTQEYE6.js +0 -66
  79. package/bundle/oauth2-provider-TITPL3DN.js +0 -237
  80. package/bundle/start-TZXEJLTH.js +0 -19
@@ -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-WRDVEMWE.js";
5
+ } from "./chunk-LBQFRHYD.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-BLNG7CSO.js";
17
+ } from "./chunk-SYD5SJFT.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-JEW7ZIWE.js";
20
+ } from "./chunk-N6QYTC2T.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -20,7 +20,7 @@ import {
20
20
  require_strip_json_comments,
21
21
  sanitizeFilenamePart,
22
22
  stripAnsi
23
- } from "./chunk-WOGMVEEF.js";
23
+ } from "./chunk-NBRZ4A3S.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-N6QYTC2T.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
  }
@@ -16172,6 +16181,14 @@ var LoadedSettings = class {
16172
16181
  get merged() {
16173
16182
  return this._merged;
16174
16183
  }
16184
+ /**
16185
+ * Returns a merged settings object as if the folder were trusted.
16186
+ * This is useful for commands like 'mcp list' that want to show
16187
+ * what's configured even if it's currently disabled for security reasons.
16188
+ */
16189
+ getMergedSettingsAsIfTrusted() {
16190
+ return this.computeMergedSettings(true);
16191
+ }
16175
16192
  setTrusted(isTrusted) {
16176
16193
  if (this.isTrusted === isTrusted) {
16177
16194
  return;
@@ -16188,13 +16205,15 @@ var LoadedSettings = class {
16188
16205
  originalSettings: {}
16189
16206
  };
16190
16207
  }
16191
- computeMergedSettings() {
16208
+ computeMergedSettings(forceTrusted = false) {
16209
+ const isTrusted = forceTrusted || this.isTrusted;
16210
+ const workspace = forceTrusted ? this._workspaceFile : this.workspace;
16192
16211
  const merged = mergeSettings(
16193
16212
  this.system.settings,
16194
16213
  this.systemDefaults.settings,
16195
16214
  this.user.settings,
16196
- this.workspace.settings,
16197
- this.isTrusted
16215
+ workspace.settings,
16216
+ isTrusted
16198
16217
  );
16199
16218
  const adminSettingSchema = getSettingsSchema().admin;
16200
16219
  if (adminSettingSchema?.properties) {
@@ -16210,8 +16229,7 @@ var LoadedSettings = class {
16210
16229
  }
16211
16230
  computeSnapshot() {
16212
16231
  const cloneSettingsFile = (file) => ({
16213
- path: file.path,
16214
- rawJson: file.rawJson,
16232
+ ...file,
16215
16233
  settings: structuredClone(file.settings),
16216
16234
  originalSettings: structuredClone(file.originalSettings)
16217
16235
  });
@@ -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-OFOKTVUH.js";
5
+ } from "./chunk-JENIU3E3.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-ZDP2ZWKG.js";
17
+ } from "./chunk-UIG2IVPJ.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-JEW7ZIWE.js";
20
+ } from "./chunk-UJ26GAE5.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -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-DEKZKOVU.js";
4
+ } from "./chunk-MRHFLHPJ.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  getChannelFromVersion,
8
8
  isGitRepository
9
- } from "./chunk-WOGMVEEF.js";
9
+ } from "./chunk-NBRZ4A3S.js";
10
10
  import {
11
11
  debugLogger
12
- } from "./chunk-ECNYAST2.js";
12
+ } from "./chunk-N6QYTC2T.js";
13
13
 
14
14
  // packages/cli/src/utils/installationInfo.ts
15
15
  import * as fs from "node:fs";