@google/gemini-cli 0.63.0-preview.0 → 0.64.0-nightly.20261001.gc6bccb7ec

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-EIMVJG2V.js → chunk-2AWGKUBT.js} +1 -1
  2. package/bundle/{chunk-GRSO6OI3.js → chunk-33M6KTJD.js} +11 -9
  3. package/bundle/{chunk-2J6RC447.js → chunk-3V7PFNJW.js} +3 -3
  4. package/bundle/{chunk-NWSCUKK3.js → chunk-5Q2IR4AT.js} +1512 -1317
  5. package/bundle/{chunk-RXHIISMM.js → chunk-5S3XVXG6.js} +1 -1
  6. package/bundle/{chunk-R6Q6D3UA.js → chunk-A7EL6FWX.js} +1 -1
  7. package/bundle/{chunk-UEOEM4H5.js → chunk-AMALQQ3Z.js} +3 -3
  8. package/bundle/{chunk-EWEUWTBB.js → chunk-CBYMGCHX.js} +75 -60
  9. package/bundle/{chunk-2NCBQURB.js → chunk-CFKLEVXK.js} +1 -1
  10. package/bundle/{chunk-RC6VJ6FT.js → chunk-DGM2IXGQ.js} +1 -1
  11. package/bundle/{chunk-NTWFJ2RF.js → chunk-EUQCH4QF.js} +2 -2
  12. package/bundle/{chunk-KCB54UJ5.js → chunk-FLYR6TVJ.js} +9279 -16064
  13. package/bundle/{chunk-H4WLRV6U.js → chunk-FQCPUDNE.js} +2 -2
  14. package/bundle/{chunk-BVDTRESW.js → chunk-FSELSFI5.js} +1 -1
  15. package/bundle/{chunk-5VYF5TVF.js → chunk-G4FAHQEH.js} +2 -2
  16. package/bundle/{chunk-Z5RCAIV5.js → chunk-I5GYMICM.js} +7 -5
  17. package/bundle/{chunk-JEUVKR2X.js → chunk-IGVQSZBB.js} +3 -3
  18. package/bundle/{chunk-HBZBBLAV.js → chunk-JMQIN5UZ.js} +1521 -1323
  19. package/bundle/{chunk-KPPDDNGJ.js → chunk-JW5YA5WN.js} +9 -8
  20. package/bundle/chunk-KTIX6VY2.js +17446 -0
  21. package/bundle/{chunk-SNGNFODQ.js → chunk-KUSXLIPR.js} +1 -1
  22. package/bundle/{chunk-ZDQYLJYN.js → chunk-KVZWFEJY.js} +1 -1
  23. package/bundle/{chunk-2P4ETAEG.js → chunk-LTM347XQ.js} +1 -1
  24. package/bundle/chunk-LXT3NLFW.js +118 -0
  25. package/bundle/chunk-PAWJR2VY.js +1571 -0
  26. package/bundle/chunk-RVS5CHWO.js +425 -0
  27. package/bundle/{chunk-B2C7BQ4Z.js → chunk-RW6IRAFG.js} +11 -9
  28. package/bundle/{chunk-CTL6DZSY.js → chunk-U4667HKR.js} +1 -1
  29. package/bundle/chunk-WTO5SKFR.js +400730 -0
  30. package/bundle/chunk-WXSWGEUJ.js +512 -0
  31. package/bundle/chunk-XKSEOGBW.js +154 -0
  32. package/bundle/chunk-ZG5IQP2R.js +102953 -0
  33. package/bundle/{cleanup-EX2L3L3E.js → cleanup-I7CTORMX.js} +2 -2
  34. package/bundle/{cleanup-IT7XR7KS.js → cleanup-MOFJ6BES.js} +2 -2
  35. package/bundle/{cleanup-WWLYKZIX.js → cleanup-OAR3IBTA.js} +2 -2
  36. package/bundle/cleanup-WFLHSVPH.js +32 -0
  37. package/bundle/{core-GAJB2LOX.js → core-VXMTLS6K.js} +1 -1
  38. package/bundle/{devtoolsService-TJPENQSW.js → devtoolsService-4QAJJ6WJ.js} +2 -2
  39. package/bundle/{devtoolsService-S4ZTRGJL.js → devtoolsService-54XKSYYW.js} +4 -3
  40. package/bundle/{devtoolsService-4YTFHHPN.js → devtoolsService-L6BPP3IA.js} +2 -2
  41. package/bundle/devtoolsService-LSDQLZ62.js +4359 -0
  42. package/bundle/{dist-MTMOCTIW.js → dist-BNMP57Q5.js} +1 -1
  43. package/bundle/{core-D5D4MF5H.js → dist-FJ7DKGAM.js} +1 -1
  44. package/bundle/dist-U5DFAJ4Y.js +2250 -0
  45. package/bundle/docs/changelogs/preview.md +54 -65
  46. package/bundle/{gemini-5T5BS7L7.js → gemini-L553JD26.js} +66 -95
  47. package/bundle/{gemini-FHORRYHM.js → gemini-LN35PXGR.js} +66 -95
  48. package/bundle/gemini-VZOPAMKQ.js +17834 -0
  49. package/bundle/{gemini-UQRS6TBE.js → gemini-W63I3AHM.js} +266 -279
  50. package/bundle/gemini.js +7 -7
  51. package/bundle/{interactiveCli-WOM6QZHM.js → interactiveCli-2JCDVYVC.js} +26 -23
  52. package/bundle/{interactiveCli-I5K7O5Z6.js → interactiveCli-KN6ETEWY.js} +26 -23
  53. package/bundle/{interactiveCli-5YNYZTMK.js → interactiveCli-N7HBJ434.js} +329 -307
  54. package/bundle/interactiveCli-TX7INBPE.js +34918 -0
  55. package/bundle/{liteRtServerManager-EH2L2UVH.js → liteRtServerManager-GIDPQRR4.js} +4 -4
  56. package/bundle/{liteRtServerManager-ZLIHBLZP.js → liteRtServerManager-NK3OA5CI.js} +4 -4
  57. package/bundle/{liteRtServerManager-3N5KI6YS.js → liteRtServerManager-NSDSBW7B.js} +4 -4
  58. package/bundle/liteRtServerManager-PKOODTU4.js +65 -0
  59. package/bundle/{oauth2-provider-TA2KRXWQ.js → oauth2-provider-DE3RVHTQ.js} +1 -1
  60. package/bundle/{oauth2-provider-5GFYTXFU.js → oauth2-provider-FDRYB63N.js} +38 -72
  61. package/bundle/{oauth2-provider-NGSH2JQK.js → oauth2-provider-KMACQ2PX.js} +1 -1
  62. package/bundle/oauth2-provider-UAZAD3AF.js +235 -0
  63. package/bundle/{start-M3IUNCYH.js → start-5X2H6QGN.js} +6 -6
  64. package/bundle/{start-MWDNIQUY.js → start-AMYT67DW.js} +6 -6
  65. package/bundle/{start-CWI6OP6N.js → start-QYGGE4KC.js} +6 -6
  66. package/bundle/start-WWUBZPNX.js +18 -0
  67. package/package.json +1 -1
package/bundle/gemini.js CHANGED
@@ -4,10 +4,10 @@ import {
4
4
  RELAUNCH_EXIT_CODE,
5
5
  getScriptArgs,
6
6
  getSpawnConfig
7
- } from "./chunk-NTWFJ2RF.js";
8
- import "./chunk-EIMVJG2V.js";
9
- import "./chunk-RXHIISMM.js";
10
- import "./chunk-NWSCUKK3.js";
7
+ } from "./chunk-EUQCH4QF.js";
8
+ import "./chunk-WXSWGEUJ.js";
9
+ import "./chunk-U4667HKR.js";
10
+ import "./chunk-FLYR6TVJ.js";
11
11
  import "./chunk-664ZODQF.js";
12
12
  import "./chunk-IUUIT4SU.js";
13
13
  import "./chunk-L6PII3GR.js";
@@ -107,9 +107,9 @@ ${error instanceof Error ? error.stack ?? error.message : String(error)}
107
107
  }
108
108
  }
109
109
  } else {
110
- const { main } = await import("./gemini-5T5BS7L7.js");
111
- const { FatalError, writeToStderr } = await import("./dist-MTMOCTIW.js");
112
- const { runExitCleanup } = await import("./cleanup-EX2L3L3E.js");
110
+ const { main } = await import("./gemini-VZOPAMKQ.js");
111
+ const { FatalError, writeToStderr } = await import("./dist-U5DFAJ4Y.js");
112
+ const { runExitCleanup } = await import("./cleanup-I7CTORMX.js");
113
113
  main().catch(async (error) => {
114
114
  const cleanupTimeout = setTimeout(() => {
115
115
  writeToStderr("Cleanup timed out, forcing exit...\n");
@@ -171,10 +171,10 @@ import {
171
171
  widestLineFromStyledChars,
172
172
  wordBreakStyledChars,
173
173
  wrapStyledChars
174
- } from "./chunk-EWEUWTBB.js";
174
+ } from "./chunk-RW6IRAFG.js";
175
175
  import {
176
176
  require_source
177
- } from "./chunk-SNGNFODQ.js";
177
+ } from "./chunk-PAWJR2VY.js";
178
178
  import {
179
179
  appEvents
180
180
  } from "./chunk-5PS3AYFU.js";
@@ -227,24 +227,24 @@ import {
227
227
  stripAnsi,
228
228
  stripUnsafeCharacters,
229
229
  toCodePoints
230
- } from "./chunk-RC6VJ6FT.js";
230
+ } from "./chunk-DGM2IXGQ.js";
231
231
  import {
232
232
  handleAutoUpdate,
233
233
  isDevelopment,
234
234
  relaunchApp,
235
235
  setUpdateHandler
236
- } from "./chunk-5VYF5TVF.js";
236
+ } from "./chunk-FQCPUDNE.js";
237
237
  import {
238
238
  isTodoList,
239
239
  mapCoreStatusToDisplayStatus,
240
240
  require_react
241
- } from "./chunk-ZDQYLJYN.js";
241
+ } from "./chunk-KVZWFEJY.js";
242
242
  import {
243
243
  registerCleanup,
244
244
  removeCleanup,
245
245
  runExitCleanup,
246
246
  setupTtyCheck
247
- } from "./chunk-CTL6DZSY.js";
247
+ } from "./chunk-FSELSFI5.js";
248
248
  import {
249
249
  ACTIVATE_SKILL_TOOL_NAME,
250
250
  AGENT_TOOL_NAME,
@@ -430,7 +430,7 @@ import {
430
430
  validatePlanContent,
431
431
  validatePlanPath,
432
432
  writeToStdout
433
- } from "./chunk-KCB54UJ5.js";
433
+ } from "./chunk-JMQIN5UZ.js";
434
434
  import "./chunk-664ZODQF.js";
435
435
  import "./chunk-IUUIT4SU.js";
436
436
  import "./chunk-L6PII3GR.js";
@@ -30349,10 +30349,20 @@ var useFolderTrust = (settings, onTrustChange, addItem) => {
30349
30349
  const [discoveryResults, setDiscoveryResults] = (0, import_react103.useState)(null);
30350
30350
  const [isRestarting, setIsRestarting] = (0, import_react103.useState)(false);
30351
30351
  const startupMessageSent = (0, import_react103.useRef)(false);
30352
+ const onTrustChangeRef = (0, import_react103.useRef)(onTrustChange);
30353
+ const addItemRef = (0, import_react103.useRef)(addItem);
30354
+ const settingsRef = (0, import_react103.useRef)(settings);
30355
+ (0, import_react103.useEffect)(() => {
30356
+ onTrustChangeRef.current = onTrustChange;
30357
+ addItemRef.current = addItem;
30358
+ settingsRef.current = settings;
30359
+ }, [onTrustChange, addItem, settings]);
30352
30360
  const folderTrust = settings.merged.security.folderTrust.enabled ?? true;
30353
30361
  (0, import_react103.useEffect)(() => {
30354
30362
  let isMounted = true;
30355
- const { isTrusted: trusted } = isWorkspaceTrusted(settings.merged);
30363
+ const { isTrusted: trusted } = isWorkspaceTrusted(
30364
+ settingsRef.current.merged
30365
+ );
30356
30366
  if (trusted === void 0 || trusted === false) {
30357
30367
  void FolderTrustDiscoveryService.discover(process10.cwd()).then((results) => {
30358
30368
  if (isMounted) {
@@ -30363,7 +30373,7 @@ var useFolderTrust = (settings, onTrustChange, addItem) => {
30363
30373
  }
30364
30374
  const showUntrustedMessage = () => {
30365
30375
  if (trusted === false && !startupMessageSent.current) {
30366
- addItem(
30376
+ addItemRef.current(
30367
30377
  {
30368
30378
  type: "info" /* INFO */,
30369
30379
  text: "This folder is untrusted, project settings, hooks, MCPs, and GEMINI.md files will not be applied for this folder.\nUse the `/permissions` command to change the trust level."
@@ -30373,23 +30383,16 @@ var useFolderTrust = (settings, onTrustChange, addItem) => {
30373
30383
  startupMessageSent.current = true;
30374
30384
  }
30375
30385
  };
30376
- if (isHeadlessMode()) {
30377
- if (isMounted) {
30378
- setIsTrusted(trusted);
30379
- setIsFolderTrustDialogOpen(false);
30380
- onTrustChange(true);
30381
- showUntrustedMessage();
30382
- }
30383
- } else if (isMounted) {
30386
+ if (isMounted) {
30384
30387
  setIsTrusted(trusted);
30385
- setIsFolderTrustDialogOpen(trusted === void 0);
30386
- onTrustChange(trusted);
30388
+ setIsFolderTrustDialogOpen(!isHeadlessMode() && trusted === void 0);
30389
+ onTrustChangeRef.current(trusted);
30387
30390
  showUntrustedMessage();
30388
30391
  }
30389
30392
  return () => {
30390
30393
  isMounted = false;
30391
30394
  };
30392
- }, [folderTrust, onTrustChange, settings.merged, addItem]);
30395
+ }, [folderTrust]);
30393
30396
  const handleFolderTrustSelect = (0, import_react103.useCallback)(
30394
30397
  async (choice) => {
30395
30398
  const trustLevelMap = {
@@ -30415,7 +30418,7 @@ var useFolderTrust = (settings, onTrustChange, addItem) => {
30415
30418
  return;
30416
30419
  }
30417
30420
  const currentIsTrusted = trustLevel === "TRUST_FOLDER" /* TRUST_FOLDER */ || trustLevel === "TRUST_PARENT" /* TRUST_PARENT */;
30418
- onTrustChange(currentIsTrusted);
30421
+ onTrustChangeRef.current(currentIsTrusted);
30419
30422
  setIsTrusted(currentIsTrusted);
30420
30423
  const wasTrusted = isTrusted ?? false;
30421
30424
  if (wasTrusted !== currentIsTrusted) {
@@ -30425,7 +30428,7 @@ var useFolderTrust = (settings, onTrustChange, addItem) => {
30425
30428
  setIsFolderTrustDialogOpen(false);
30426
30429
  }
30427
30430
  },
30428
- [onTrustChange, isTrusted]
30431
+ [isTrusted]
30429
30432
  );
30430
30433
  return {
30431
30434
  isTrusted,
@@ -33869,7 +33872,7 @@ ${queuedText}` : queuedText;
33869
33872
  if (keyMatchers["app.showErrorDetails" /* SHOW_ERROR_DETAILS */](key)) {
33870
33873
  if (settings.merged.general.devtools) {
33871
33874
  void (async () => {
33872
- const { toggleDevToolsPanel } = await import("./devtoolsService-S4ZTRGJL.js");
33875
+ const { toggleDevToolsPanel } = await import("./devtoolsService-L6BPP3IA.js");
33873
33876
  await toggleDevToolsPanel(
33874
33877
  config,
33875
33878
  showErrorDetails,
@@ -171,10 +171,10 @@ import {
171
171
  widestLineFromStyledChars,
172
172
  wordBreakStyledChars,
173
173
  wrapStyledChars
174
- } from "./chunk-GRSO6OI3.js";
174
+ } from "./chunk-33M6KTJD.js";
175
175
  import {
176
176
  require_source
177
- } from "./chunk-R6Q6D3UA.js";
177
+ } from "./chunk-LTM347XQ.js";
178
178
  import {
179
179
  appEvents
180
180
  } from "./chunk-5PS3AYFU.js";
@@ -227,24 +227,24 @@ import {
227
227
  stripAnsi,
228
228
  stripUnsafeCharacters,
229
229
  toCodePoints
230
- } from "./chunk-2NCBQURB.js";
230
+ } from "./chunk-I5GYMICM.js";
231
231
  import {
232
232
  handleAutoUpdate,
233
233
  isDevelopment,
234
234
  relaunchApp,
235
235
  setUpdateHandler
236
- } from "./chunk-NTWFJ2RF.js";
236
+ } from "./chunk-RVS5CHWO.js";
237
237
  import {
238
238
  isTodoList,
239
239
  mapCoreStatusToDisplayStatus,
240
240
  require_react
241
- } from "./chunk-EIMVJG2V.js";
241
+ } from "./chunk-2AWGKUBT.js";
242
242
  import {
243
243
  registerCleanup,
244
244
  removeCleanup,
245
245
  runExitCleanup,
246
246
  setupTtyCheck
247
- } from "./chunk-RXHIISMM.js";
247
+ } from "./chunk-XKSEOGBW.js";
248
248
  import {
249
249
  ACTIVATE_SKILL_TOOL_NAME,
250
250
  AGENT_TOOL_NAME,
@@ -449,7 +449,7 @@ import {
449
449
  validatePlanContent,
450
450
  validatePlanPath,
451
451
  writeToStdout
452
- } from "./chunk-NWSCUKK3.js";
452
+ } from "./chunk-WTO5SKFR.js";
453
453
  import "./chunk-664ZODQF.js";
454
454
  import "./chunk-IUUIT4SU.js";
455
455
  import "./chunk-L6PII3GR.js";
@@ -30368,10 +30368,20 @@ var useFolderTrust = (settings, onTrustChange, addItem) => {
30368
30368
  const [discoveryResults, setDiscoveryResults] = (0, import_react103.useState)(null);
30369
30369
  const [isRestarting, setIsRestarting] = (0, import_react103.useState)(false);
30370
30370
  const startupMessageSent = (0, import_react103.useRef)(false);
30371
+ const onTrustChangeRef = (0, import_react103.useRef)(onTrustChange);
30372
+ const addItemRef = (0, import_react103.useRef)(addItem);
30373
+ const settingsRef = (0, import_react103.useRef)(settings);
30374
+ (0, import_react103.useEffect)(() => {
30375
+ onTrustChangeRef.current = onTrustChange;
30376
+ addItemRef.current = addItem;
30377
+ settingsRef.current = settings;
30378
+ }, [onTrustChange, addItem, settings]);
30371
30379
  const folderTrust = settings.merged.security.folderTrust.enabled ?? true;
30372
30380
  (0, import_react103.useEffect)(() => {
30373
30381
  let isMounted = true;
30374
- const { isTrusted: trusted } = isWorkspaceTrusted(settings.merged);
30382
+ const { isTrusted: trusted } = isWorkspaceTrusted(
30383
+ settingsRef.current.merged
30384
+ );
30375
30385
  if (trusted === void 0 || trusted === false) {
30376
30386
  void FolderTrustDiscoveryService.discover(process10.cwd()).then((results) => {
30377
30387
  if (isMounted) {
@@ -30382,7 +30392,7 @@ var useFolderTrust = (settings, onTrustChange, addItem) => {
30382
30392
  }
30383
30393
  const showUntrustedMessage = () => {
30384
30394
  if (trusted === false && !startupMessageSent.current) {
30385
- addItem(
30395
+ addItemRef.current(
30386
30396
  {
30387
30397
  type: "info" /* INFO */,
30388
30398
  text: "This folder is untrusted, project settings, hooks, MCPs, and GEMINI.md files will not be applied for this folder.\nUse the `/permissions` command to change the trust level."
@@ -30392,23 +30402,16 @@ var useFolderTrust = (settings, onTrustChange, addItem) => {
30392
30402
  startupMessageSent.current = true;
30393
30403
  }
30394
30404
  };
30395
- if (isHeadlessMode()) {
30396
- if (isMounted) {
30397
- setIsTrusted(trusted);
30398
- setIsFolderTrustDialogOpen(false);
30399
- onTrustChange(true);
30400
- showUntrustedMessage();
30401
- }
30402
- } else if (isMounted) {
30405
+ if (isMounted) {
30403
30406
  setIsTrusted(trusted);
30404
- setIsFolderTrustDialogOpen(trusted === void 0);
30405
- onTrustChange(trusted);
30407
+ setIsFolderTrustDialogOpen(!isHeadlessMode() && trusted === void 0);
30408
+ onTrustChangeRef.current(trusted);
30406
30409
  showUntrustedMessage();
30407
30410
  }
30408
30411
  return () => {
30409
30412
  isMounted = false;
30410
30413
  };
30411
- }, [folderTrust, onTrustChange, settings.merged, addItem]);
30414
+ }, [folderTrust]);
30412
30415
  const handleFolderTrustSelect = (0, import_react103.useCallback)(
30413
30416
  async (choice) => {
30414
30417
  const trustLevelMap = {
@@ -30434,7 +30437,7 @@ var useFolderTrust = (settings, onTrustChange, addItem) => {
30434
30437
  return;
30435
30438
  }
30436
30439
  const currentIsTrusted = trustLevel === TrustLevel.TRUST_FOLDER || trustLevel === TrustLevel.TRUST_PARENT;
30437
- onTrustChange(currentIsTrusted);
30440
+ onTrustChangeRef.current(currentIsTrusted);
30438
30441
  setIsTrusted(currentIsTrusted);
30439
30442
  const wasTrusted = isTrusted ?? false;
30440
30443
  if (wasTrusted !== currentIsTrusted) {
@@ -30444,7 +30447,7 @@ var useFolderTrust = (settings, onTrustChange, addItem) => {
30444
30447
  setIsFolderTrustDialogOpen(false);
30445
30448
  }
30446
30449
  },
30447
- [onTrustChange, isTrusted]
30450
+ [isTrusted]
30448
30451
  );
30449
30452
  return {
30450
30453
  isTrusted,
@@ -33888,7 +33891,7 @@ ${queuedText}` : queuedText;
33888
33891
  if (keyMatchers["app.showErrorDetails" /* SHOW_ERROR_DETAILS */](key)) {
33889
33892
  if (settings.merged.general.devtools) {
33890
33893
  void (async () => {
33891
- const { toggleDevToolsPanel } = await import("./devtoolsService-TJPENQSW.js");
33894
+ const { toggleDevToolsPanel } = await import("./devtoolsService-4QAJJ6WJ.js");
33892
33895
  await toggleDevToolsPanel(
33893
33896
  config,
33894
33897
  showErrorDetails,