@google/gemini-cli 0.40.0-preview.2 → 0.40.0-preview.3

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-WL5MCPV2.js → chunk-35STMVQ6.js} +2 -2
  2. package/bundle/{chunk-EFCQXWIF.js → chunk-47HVBRLD.js} +3 -3
  3. package/bundle/{chunk-HV36F4CL.js → chunk-5UA5NDVP.js} +134 -354
  4. package/bundle/{chunk-IUVLJUOL.js → chunk-B4NHGUNE.js} +2 -2
  5. package/bundle/{chunk-NO7STVVM.js → chunk-EEQGWBJU.js} +1413 -1089
  6. package/bundle/{chunk-IMEC72NS.js → chunk-EJ5U5A3P.js} +1 -1
  7. package/bundle/{chunk-33ANPP4S.js → chunk-ELANWZTZ.js} +3 -3
  8. package/bundle/{chunk-3GU3LF3I.js → chunk-F2KGMQCY.js} +180 -9
  9. package/bundle/{chunk-VCGILCZV.js → chunk-F73F75XM.js} +16 -0
  10. package/bundle/{chunk-PLUWJHZZ.js → chunk-FRCZJECU.js} +237 -54
  11. package/bundle/{chunk-UBXB5AEJ.js → chunk-GDNYA45E.js} +3 -3
  12. package/bundle/{chunk-TDW6FM3A.js → chunk-KITSDDOZ.js} +1 -1
  13. package/bundle/{chunk-WHIWQCI5.js → chunk-KKO2XSBY.js} +1 -1
  14. package/bundle/{chunk-GXRQOXQF.js → chunk-KUAEOA2Q.js} +177 -7
  15. package/bundle/{chunk-4IJPDKI6.js → chunk-KVGAAOEJ.js} +146 -364
  16. package/bundle/{chunk-QK7UWGBN.js → chunk-MRSOTTBM.js} +1380 -1081
  17. package/bundle/{chunk-MUGUV6RZ.js → chunk-MUEKKRWF.js} +2 -2
  18. package/bundle/chunk-R4ZCSDPK.js +80018 -0
  19. package/bundle/chunk-RMQT572G.js +156 -0
  20. package/bundle/chunk-RVU5Q4NB.js +118 -0
  21. package/bundle/{chunk-2RHFUIH4.js → chunk-UHHRGNIO.js} +16 -0
  22. package/bundle/chunk-UX5CFZ75.js +17505 -0
  23. package/bundle/{chunk-RM43GNQQ.js → chunk-UZ5SUJO4.js} +7709 -12907
  24. package/bundle/chunk-VQVLJLWD.js +1571 -0
  25. package/bundle/{chunk-NIVCRM5L.js → chunk-VUHGADMU.js} +134 -354
  26. package/bundle/chunk-YCTQOSY2.js +351149 -0
  27. package/bundle/{cleanup-A7WXWAMI.js → cleanup-BWZ7GONS.js} +3 -3
  28. package/bundle/{cleanup-EWPIME2M.js → cleanup-F6XR3KDW.js} +3 -3
  29. package/bundle/{cleanup-IPLJJT5S.js → cleanup-PS3UGKWX.js} +3 -3
  30. package/bundle/cleanup-VV6AV4T2.js +33 -0
  31. package/bundle/{core-VCDK23ZC.js → core-NDKZ44LE.js} +28 -2
  32. package/bundle/{devtoolsService-B5VVZ752.js → devtoolsService-DNFLMYOX.js} +3 -3
  33. package/bundle/{devtoolsService-2JXSALRU.js → devtoolsService-F6QBRWPB.js} +5 -4
  34. package/bundle/{devtoolsService-6Y6YER6T.js → devtoolsService-XGIYIDBD.js} +3 -3
  35. package/bundle/devtoolsService-YD6JSR34.js +852 -0
  36. package/bundle/{dist-UIXQETMC.js → dist-54TUMSKA.js} +28 -2
  37. package/bundle/{core-BQT6T3CH.js → dist-6KUUELBS.js} +28 -2
  38. package/bundle/dist-QHCXV4N4.js +2046 -0
  39. package/bundle/docs/cli/cli-reference.md +1 -0
  40. package/bundle/docs/cli/trusted-folders.md +28 -0
  41. package/bundle/docs/reference/configuration.md +14 -0
  42. package/bundle/{gemini-ID44Z5SV.js → gemini-HLGERR6W.js} +65 -21
  43. package/bundle/{gemini-54LH6RUH.js → gemini-IRPF2U4N.js} +241 -182
  44. package/bundle/gemini-QZM4UKD6.js +16087 -0
  45. package/bundle/{gemini-44W2QEZI.js → gemini-TU6PHHWE.js} +63 -20
  46. package/bundle/gemini.js +3 -3
  47. package/bundle/{interactiveCli-5MTJDFYC.js → interactiveCli-374EDFUA.js} +17 -167
  48. package/bundle/{interactiveCli-JFBPGMNM.js → interactiveCli-EKTBCA5F.js} +30 -179
  49. package/bundle/{interactiveCli-5B3X6RNB.js → interactiveCli-GRSDCSR3.js} +300 -432
  50. package/bundle/interactiveCli-HN4DKCW5.js +34448 -0
  51. package/bundle/{liteRtServerManager-76V63PRJ.js → liteRtServerManager-46V57ROR.js} +4 -4
  52. package/bundle/{liteRtServerManager-WQMDPACQ.js → liteRtServerManager-E34UIEBJ.js} +4 -4
  53. package/bundle/{liteRtServerManager-6GJWEP5W.js → liteRtServerManager-EAWDC35K.js} +4 -4
  54. package/bundle/liteRtServerManager-HTDKEOQC.js +65 -0
  55. package/bundle/{memoryDiscovery-RYHYLAPJ.js → memoryDiscovery-CZURD35O.js} +1 -1
  56. package/bundle/{memoryDiscovery-HWEYBJE7.js → memoryDiscovery-GZLXKRGB.js} +1 -1
  57. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  58. package/bundle/{oauth2-provider-JCKLNKRV.js → oauth2-provider-N7Q7FNNA.js} +2 -2
  59. package/bundle/{oauth2-provider-EX6SQEZP.js → oauth2-provider-TW3RXTUS.js} +2 -2
  60. package/bundle/{oauth2-provider-ZF52AWQY.js → oauth2-provider-UQIDMKYA.js} +39 -73
  61. package/bundle/oauth2-provider-WTRWHBI2.js +237 -0
  62. package/bundle/{start-CYDJTOAP.js → start-4D5PYHGK.js} +6 -6
  63. package/bundle/{start-SHOUHW3Y.js → start-7DJXXKMH.js} +6 -6
  64. package/bundle/{start-B6EMQCH5.js → start-ERRBQVDH.js} +6 -6
  65. package/bundle/start-TKRKH572.js +18 -0
  66. package/package.json +1 -1
@@ -11,9 +11,9 @@ import {
11
11
  runSyncCleanup,
12
12
  setupSignalHandlers,
13
13
  setupTtyCheck
14
- } from "./chunk-WL5MCPV2.js";
15
- import "./chunk-QK7UWGBN.js";
16
- import "./chunk-VCGILCZV.js";
14
+ } from "./chunk-MUEKKRWF.js";
15
+ import "./chunk-MRSOTTBM.js";
16
+ import "./chunk-F73F75XM.js";
17
17
  import "./chunk-664ZODQF.js";
18
18
  import "./chunk-RJTRUG2J.js";
19
19
  import "./chunk-IUUIT4SU.js";
@@ -11,9 +11,9 @@ import {
11
11
  runSyncCleanup,
12
12
  setupSignalHandlers,
13
13
  setupTtyCheck
14
- } from "./chunk-IUVLJUOL.js";
15
- import "./chunk-NO7STVVM.js";
16
- import "./chunk-2RHFUIH4.js";
14
+ } from "./chunk-RMQT572G.js";
15
+ import "./chunk-YCTQOSY2.js";
16
+ import "./chunk-F73F75XM.js";
17
17
  import "./chunk-664ZODQF.js";
18
18
  import "./chunk-RJTRUG2J.js";
19
19
  import "./chunk-IUUIT4SU.js";
@@ -11,9 +11,9 @@ import {
11
11
  runSyncCleanup,
12
12
  setupSignalHandlers,
13
13
  setupTtyCheck
14
- } from "./chunk-MUGUV6RZ.js";
15
- import "./chunk-RM43GNQQ.js";
16
- import "./chunk-2RHFUIH4.js";
14
+ } from "./chunk-35STMVQ6.js";
15
+ import "./chunk-UZ5SUJO4.js";
16
+ import "./chunk-F73F75XM.js";
17
17
  import "./chunk-664ZODQF.js";
18
18
  import "./chunk-RJTRUG2J.js";
19
19
  import "./chunk-IUUIT4SU.js";
@@ -0,0 +1,33 @@
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
+ import {
3
+ cleanupCheckpoints,
4
+ registerCleanup,
5
+ registerSyncCleanup,
6
+ registerTelemetryConfig,
7
+ removeCleanup,
8
+ removeSyncCleanup,
9
+ resetCleanupForTesting,
10
+ runExitCleanup,
11
+ runSyncCleanup,
12
+ setupSignalHandlers,
13
+ setupTtyCheck
14
+ } from "./chunk-B4NHGUNE.js";
15
+ import "./chunk-EEQGWBJU.js";
16
+ import "./chunk-UHHRGNIO.js";
17
+ import "./chunk-664ZODQF.js";
18
+ import "./chunk-RJTRUG2J.js";
19
+ import "./chunk-IUUIT4SU.js";
20
+ import "./chunk-34MYV7JD.js";
21
+ export {
22
+ cleanupCheckpoints,
23
+ registerCleanup,
24
+ registerSyncCleanup,
25
+ registerTelemetryConfig,
26
+ removeCleanup,
27
+ removeSyncCleanup,
28
+ resetCleanupForTesting,
29
+ runExitCleanup,
30
+ runSyncCleanup,
31
+ setupSignalHandlers,
32
+ setupTtyCheck
33
+ };
@@ -37,6 +37,8 @@ import {
37
37
  CODE_ASSIST_ENDPOINT,
38
38
  COMMON_DIRECTORY_EXCLUDES,
39
39
  COMMON_IGNORE_PATTERNS,
40
+ CONFIRMATION_REQUIRED_PRIORITY,
41
+ CORE_TOOLS_FLAG_PRIORITY,
40
42
  CacheService,
41
43
  ChatRecordingService,
42
44
  ClearcutLogger,
@@ -190,6 +192,7 @@ import {
190
192
  LegacyAgentProtocol,
191
193
  LegacyAgentSession,
192
194
  LlmRole,
195
+ LoadedTrustedFolders,
193
196
  LocalAgentExecutor,
194
197
  LocalSandboxManager,
195
198
  Logger,
@@ -238,6 +241,7 @@ import {
238
241
  PreCompressTrigger,
239
242
  PrivateIpError,
240
243
  ProjectIdRequiredError,
244
+ REDIRECTION_NAMES,
241
245
  ROOT_SCHEDULER_ID,
242
246
  RateLimiter,
243
247
  ReadFileTool,
@@ -302,6 +306,7 @@ import {
302
306
  TrackerTaskSchema,
303
307
  TrackerUpdateTaskTool,
304
308
  TrackerVisualizeTool,
309
+ TrustLevel,
305
310
  Turn,
306
311
  UPGRADE_URL_PAGE,
307
312
  USER_POLICY_TIER,
@@ -343,6 +348,7 @@ import {
343
348
  calculateReplacement,
344
349
  canUseRipgrep,
345
350
  checkExhaustive,
351
+ checkPathTrust,
346
352
  checkPolicy,
347
353
  classifyGoogleError,
348
354
  cleanupWorktree,
@@ -350,6 +356,7 @@ import {
350
356
  clearCachedCredentialFile,
351
357
  clearEmittedPolicyWarnings,
352
358
  clearOauthClientCache,
359
+ clearRealPathCacheForTesting,
353
360
  computeModelAddedAndRemovedLines,
354
361
  connectAndDiscover,
355
362
  connectToMcpServer,
@@ -565,6 +572,7 @@ import {
565
572
  isTmux,
566
573
  isToolActivityError,
567
574
  isToolCallResponseInfo,
575
+ isTrustLevel,
568
576
  isUserActive,
569
577
  isUserVisibleHook,
570
578
  isValidNonThoughtTextPart,
@@ -584,6 +592,7 @@ import {
584
592
  loadPoliciesFromToml,
585
593
  loadSkillFromFile,
586
594
  loadSkillsFromDir,
595
+ loadTrustedFolders,
587
596
  loadWasmBinary,
588
597
  logApiError,
589
598
  logApiRequest,
@@ -690,6 +699,7 @@ import {
690
699
  resetBrowserSession,
691
700
  resetEncodingCache,
692
701
  resetOauthClientForTesting,
702
+ resetTrustedFoldersForTesting,
693
703
  resetUserDataCacheForTesting,
694
704
  resetVersionCache,
695
705
  resolveAndValidatePlanPath,
@@ -708,6 +718,7 @@ import {
708
718
  sanitizeOutput,
709
719
  saveApiKey,
710
720
  saveTruncatedToolOutput,
721
+ saveTrustedFolders,
711
722
  scheduleAgentTools,
712
723
  serializeTerminalToObject,
713
724
  setGlobalProxy,
@@ -753,7 +764,7 @@ import {
753
764
  wrapInAccountChooser,
754
765
  writeToStderr,
755
766
  writeToStdout
756
- } from "./chunk-RM43GNQQ.js";
767
+ } from "./chunk-EEQGWBJU.js";
757
768
  import {
758
769
  ACTIVATE_SKILL_TOOL_NAME,
759
770
  AGENT_TOOL_NAME,
@@ -815,6 +826,7 @@ import {
815
826
  FatalSandboxError,
816
827
  FatalToolExecutionError,
817
828
  FatalTurnLimitedError,
829
+ FatalUntrustedWorkspaceError,
818
830
  ForbiddenError,
819
831
  GEMINI_DIR,
820
832
  GEMINI_IGNORE_FILE_NAME,
@@ -914,6 +926,7 @@ import {
914
926
  TRACKER_LIST_TASKS_TOOL_NAME,
915
927
  TRACKER_UPDATE_TASK_TOOL_NAME,
916
928
  TRACKER_VISUALIZE_TOOL_NAME,
929
+ TRUSTED_FOLDERS_FILENAME,
917
930
  ToolConfirmationOutcome,
918
931
  ToolErrorType,
919
932
  UPDATE_TOPIC_DISPLAY_NAME,
@@ -1004,7 +1017,7 @@ import {
1004
1017
  toFriendlyError,
1005
1018
  toPathKey,
1006
1019
  unescapePath
1007
- } from "./chunk-2RHFUIH4.js";
1020
+ } from "./chunk-UHHRGNIO.js";
1008
1021
  import "./chunk-664ZODQF.js";
1009
1022
  import "./chunk-RJTRUG2J.js";
1010
1023
  import {
@@ -1073,6 +1086,8 @@ export {
1073
1086
  COMMON_IGNORE_PATTERNS,
1074
1087
  COMPLETE_TASK_DISPLAY_NAME,
1075
1088
  COMPLETE_TASK_TOOL_NAME,
1089
+ CONFIRMATION_REQUIRED_PRIORITY,
1090
+ CORE_TOOLS_FLAG_PRIORITY,
1076
1091
  CacheService,
1077
1092
  CanceledError,
1078
1093
  ChangeAuthRequestedError,
@@ -1174,6 +1189,7 @@ export {
1174
1189
  FatalSandboxError,
1175
1190
  FatalToolExecutionError,
1176
1191
  FatalTurnLimitedError,
1192
+ FatalUntrustedWorkspaceError,
1177
1193
  FetchAdminControlsResponseSchema,
1178
1194
  FetchError,
1179
1195
  FileDiscoveryService,
@@ -1295,6 +1311,7 @@ export {
1295
1311
  LegacyAgentProtocol,
1296
1312
  LegacyAgentSession,
1297
1313
  LlmRole,
1314
+ LoadedTrustedFolders,
1298
1315
  LocalAgentExecutor,
1299
1316
  LocalSandboxManager,
1300
1317
  Logger,
@@ -1387,6 +1404,7 @@ export {
1387
1404
  READ_MANY_PARAM_USE_DEFAULT_EXCLUDES,
1388
1405
  READ_MCP_RESOURCE_TOOL_NAME,
1389
1406
  READ_ONLY_KINDS,
1407
+ REDIRECTION_NAMES,
1390
1408
  REFERENCE_CONTENT_END,
1391
1409
  REFERENCE_CONTENT_START,
1392
1410
  ROOT_SCHEDULER_ID,
@@ -1454,6 +1472,7 @@ export {
1454
1472
  TRACKER_LIST_TASKS_TOOL_NAME,
1455
1473
  TRACKER_UPDATE_TASK_TOOL_NAME,
1456
1474
  TRACKER_VISUALIZE_TOOL_NAME,
1475
+ TRUSTED_FOLDERS_FILENAME,
1457
1476
  TRUSTED_MCP_SERVER_PRIORITY,
1458
1477
  TaskStatus,
1459
1478
  TaskStatusSchema,
@@ -1477,6 +1496,7 @@ export {
1477
1496
  TrackerTaskSchema,
1478
1497
  TrackerUpdateTaskTool,
1479
1498
  TrackerVisualizeTool,
1499
+ TrustLevel,
1480
1500
  Turn,
1481
1501
  UPDATE_TOPIC_DISPLAY_NAME,
1482
1502
  UPDATE_TOPIC_TOOL_NAME,
@@ -1535,6 +1555,7 @@ export {
1535
1555
  canUseRipgrep,
1536
1556
  categorizeAndConcatenate,
1537
1557
  checkExhaustive,
1558
+ checkPathTrust,
1538
1559
  checkPolicy,
1539
1560
  classifyGoogleError,
1540
1561
  cleanupWorktree,
@@ -1542,6 +1563,7 @@ export {
1542
1563
  clearCachedCredentialFile,
1543
1564
  clearEmittedPolicyWarnings,
1544
1565
  clearOauthClientCache,
1566
+ clearRealPathCacheForTesting,
1545
1567
  computeModelAddedAndRemovedLines,
1546
1568
  concatenateInstructions,
1547
1569
  connectAndDiscover,
@@ -1805,6 +1827,7 @@ export {
1805
1827
  isTool,
1806
1828
  isToolActivityError,
1807
1829
  isToolCallResponseInfo,
1830
+ isTrustLevel,
1808
1831
  isUserActive,
1809
1832
  isUserVisibleHook,
1810
1833
  isValidNonThoughtTextPart,
@@ -1829,6 +1852,7 @@ export {
1829
1852
  loadServerHierarchicalMemory,
1830
1853
  loadSkillFromFile,
1831
1854
  loadSkillsFromDir,
1855
+ loadTrustedFolders,
1832
1856
  loadWasmBinary,
1833
1857
  logApiError,
1834
1858
  logApiRequest,
@@ -1941,6 +1965,7 @@ export {
1941
1965
  resetBrowserSession,
1942
1966
  resetEncodingCache,
1943
1967
  resetOauthClientForTesting,
1968
+ resetTrustedFoldersForTesting,
1944
1969
  resetUserDataCacheForTesting,
1945
1970
  resetVersionCache,
1946
1971
  resolveAndValidatePlanPath,
@@ -1963,6 +1988,7 @@ export {
1963
1988
  sanitizeOutput,
1964
1989
  saveApiKey,
1965
1990
  saveTruncatedToolOutput,
1991
+ saveTrustedFolders,
1966
1992
  scheduleAgentTools,
1967
1993
  serializeTerminalToObject,
1968
1994
  setGeminiMdFilename,
@@ -1,10 +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
- import "./chunk-QK7UWGBN.js";
2
+ import "./chunk-UZ5SUJO4.js";
3
3
  import {
4
4
  CoreEvent,
5
5
  coreEvents,
6
6
  debugLogger
7
- } from "./chunk-VCGILCZV.js";
7
+ } from "./chunk-F73F75XM.js";
8
8
  import {
9
9
  wrapper_default
10
10
  } from "./chunk-664ZODQF.js";
@@ -818,7 +818,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
818
818
  return;
819
819
  }
820
820
  try {
821
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-UIXQETMC.js");
821
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-6KUUELBS.js");
822
822
  const url = await startDevToolsServer(config);
823
823
  if (shouldLaunchBrowser()) {
824
824
  try {
@@ -1,9 +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
- import "./chunk-NO7STVVM.js";
2
+ import "./chunk-YCTQOSY2.js";
3
3
  import {
4
+ CoreEvent,
4
5
  coreEvents,
5
6
  debugLogger
6
- } from "./chunk-2RHFUIH4.js";
7
+ } from "./chunk-F73F75XM.js";
7
8
  import {
8
9
  wrapper_default
9
10
  } from "./chunk-664ZODQF.js";
@@ -666,7 +667,7 @@ var bridgeAttached = false;
666
667
  function bridgeCoreEvents(capture) {
667
668
  if (bridgeAttached) return;
668
669
  bridgeAttached = true;
669
- coreEvents.on("console-log" /* ConsoleLog */, (payload) => {
670
+ coreEvents.on(CoreEvent.ConsoleLog, (payload) => {
670
671
  capture.logConsole(payload);
671
672
  });
672
673
  }
@@ -817,7 +818,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
817
818
  return;
818
819
  }
819
820
  try {
820
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-BQT6T3CH.js");
821
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-QHCXV4N4.js");
821
822
  const url = await startDevToolsServer(config);
822
823
  if (shouldLaunchBrowser()) {
823
824
  try {
@@ -1,9 +1,9 @@
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
- import "./chunk-RM43GNQQ.js";
2
+ import "./chunk-EEQGWBJU.js";
3
3
  import {
4
4
  coreEvents,
5
5
  debugLogger
6
- } from "./chunk-2RHFUIH4.js";
6
+ } from "./chunk-UHHRGNIO.js";
7
7
  import {
8
8
  wrapper_default
9
9
  } from "./chunk-664ZODQF.js";
@@ -817,7 +817,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
817
817
  return;
818
818
  }
819
819
  try {
820
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-VCDK23ZC.js");
820
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-NDKZ44LE.js");
821
821
  const url = await startDevToolsServer(config);
822
822
  if (shouldLaunchBrowser()) {
823
823
  try {