@google/gemini-cli 0.36.0 → 0.37.0-preview.1

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/bundle/{chunk-UNM3DGTG.js → chunk-33B2YA3V.js} +711 -240
  2. package/bundle/{chunk-2OFO4ODK.js → chunk-43UUP7VO.js} +6717 -4203
  3. package/bundle/{chunk-MYI75E6G.js → chunk-5OOT636U.js} +262 -92
  4. package/bundle/{chunk-GHJNEZXJ.js → chunk-BLL44IGV.js} +777 -294
  5. package/bundle/{chunk-S2IQOR7T.js → chunk-JS5WSGB2.js} +243 -88
  6. package/bundle/{chunk-QVTX2M5J.js → chunk-PPWUMHZT.js} +6355 -4117
  7. package/bundle/chunk-TSSVZ7RZ.js +98376 -0
  8. package/bundle/chunk-U4FACSVX.js +30 -0
  9. package/bundle/{chunk-VB55KQW3.js → chunk-VSXV53B7.js} +11735 -14377
  10. package/bundle/{chunk-EAXTBDLN.js → chunk-WZB27TDF.js} +711 -240
  11. package/bundle/chunk-ZB4UQCX5.js +356418 -0
  12. package/bundle/{core-6V2OYDRU.js → core-RMRIZ3E5.js} +60 -4
  13. package/bundle/{devtoolsService-ZKU2HLK2.js → devtoolsService-2ULAA43E.js} +20 -3
  14. package/bundle/{devtoolsService-UL6JE436.js → devtoolsService-AWVCG2N2.js} +22 -4
  15. package/bundle/devtoolsService-IWSTJYRB.js +871 -0
  16. package/bundle/{devtoolsService-QTW7GHQP.js → devtoolsService-SZYXXACN.js} +20 -3
  17. package/bundle/{core-BMLL5RF4.js → dist-4FKFY6XB.js} +60 -4
  18. package/bundle/{dist-PYC2JXAJ.js → dist-PRDBNGX2.js} +60 -4
  19. package/bundle/dist-TCCEQJDV.js +1942 -0
  20. package/bundle/docs/CONTRIBUTING.md +10 -7
  21. package/bundle/docs/assets/theme-tokyonight-dark.png +0 -0
  22. package/bundle/docs/changelogs/index.md +24 -0
  23. package/bundle/docs/changelogs/latest.md +366 -459
  24. package/bundle/docs/changelogs/preview.md +362 -356
  25. package/bundle/docs/cli/acp-mode.md +126 -0
  26. package/bundle/docs/cli/cli-reference.md +1 -1
  27. package/bundle/docs/cli/notifications.md +5 -5
  28. package/bundle/docs/cli/plan-mode.md +22 -11
  29. package/bundle/docs/cli/sandbox.md +1 -1
  30. package/bundle/docs/cli/settings.md +14 -13
  31. package/bundle/docs/cli/themes.md +5 -0
  32. package/bundle/docs/core/index.md +2 -2
  33. package/bundle/docs/core/subagents.md +134 -23
  34. package/bundle/docs/get-started/gemini-3.md +1 -1
  35. package/bundle/docs/get-started/index.md +127 -1
  36. package/bundle/docs/ide-integration/index.md +99 -24
  37. package/bundle/docs/index.md +0 -2
  38. package/bundle/docs/redirects.json +1 -0
  39. package/bundle/docs/reference/commands.md +1 -3
  40. package/bundle/docs/reference/configuration.md +182 -91
  41. package/bundle/docs/reference/keyboard-shortcuts.md +14 -6
  42. package/bundle/docs/reference/policy-engine.md +36 -31
  43. package/bundle/docs/reference/tools.md +56 -23
  44. package/bundle/docs/resources/quota-and-pricing.md +23 -9
  45. package/bundle/docs/sidebar.json +11 -4
  46. package/bundle/docs/tools/planning.md +6 -4
  47. package/bundle/events-CLX3JQHP.js +12 -0
  48. package/bundle/gemini.js +342 -52
  49. package/bundle/{interactiveCli-VLQHRXHU.js → interactiveCli-24VGI5NV.js} +5066 -4010
  50. package/bundle/{interactiveCli-A6HZ2TDO.js → interactiveCli-D2MTTARB.js} +5066 -4010
  51. package/bundle/{interactiveCli-DWMSDCKV.js → interactiveCli-DX76MWWT.js} +5296 -4223
  52. package/bundle/interactiveCli-VNDJAKWG.js +50355 -0
  53. package/bundle/{memoryDiscovery-BQGYT4OD.js → memoryDiscovery-A265O6ML.js} +3 -1
  54. package/bundle/{memoryDiscovery-FCEPFZ3M.js → memoryDiscovery-H6J7KIH2.js} +3 -1
  55. package/bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js +26 -19
  56. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.d.ts +1 -1
  57. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js +1 -1
  58. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js.map +1 -1
  59. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js +35 -1
  60. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js.map +1 -1
  61. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  62. package/bundle/{oauth2-provider-5ENESIRQ.js → oauth2-provider-FZUTS3SV.js} +2 -2
  63. package/bundle/{oauth2-provider-CAKFQRQV.js → oauth2-provider-K25DXIWC.js} +2 -2
  64. package/bundle/{oauth2-provider-RVED6DAZ.js → oauth2-provider-N73M7SQI.js} +39 -73
  65. package/bundle/oauth2-provider-RMDEEXSP.js +237 -0
  66. package/bundle/policies/discovered.toml +7 -0
  67. package/bundle/policies/non-interactive.toml +7 -0
  68. package/bundle/policies/plan.toml +25 -0
  69. package/bundle/policies/read-only.toml +6 -0
  70. package/bundle/policies/sandbox-default.toml +3 -2
  71. package/bundle/policies/write.toml +21 -0
  72. package/bundle/policies/yolo.toml +1 -1
  73. package/package.json +1 -1
  74. package/bundle/docs/get-started/examples.md +0 -141
@@ -208,7 +208,9 @@ import {
208
208
  MemoryMonitor,
209
209
  MessageBus,
210
210
  MessageSenderType,
211
+ ModelConfigService,
211
212
  ModelNotFoundError,
213
+ ModelRouterService,
212
214
  ModelSlashCommandEvent,
213
215
  NO_EDITOR_AVAILABLE_ERROR,
214
216
  NetworkRetryAttemptEvent,
@@ -244,6 +246,7 @@ import {
244
246
  RewindEvent,
245
247
  RipGrepTool,
246
248
  SCROLLBACK_LIMIT,
249
+ SECRET_FILES,
247
250
  SECRET_PREFIX,
248
251
  SERVICE_DESCRIPTION,
249
252
  SERVICE_NAME,
@@ -331,6 +334,7 @@ import {
331
334
  calculateReplacement,
332
335
  canUseRipgrep,
333
336
  checkExhaustive,
337
+ checkPolicy,
334
338
  classifyGoogleError,
335
339
  cleanupWorktree,
336
340
  clearApiKey,
@@ -364,6 +368,8 @@ import {
364
368
  createWorktree,
365
369
  createWorktreeService,
366
370
  decodeTagName,
371
+ deleteSessionArtifactsAsync,
372
+ deleteSubagentSessionDirAndArtifactsAsync,
367
373
  detectBOM,
368
374
  detectEncodingFromBuffer,
369
375
  detectFileType,
@@ -393,12 +399,14 @@ import {
393
399
  execStreaming,
394
400
  exitAlternateScreen,
395
401
  extractExtensionsFromPatterns,
402
+ extractStringFromParseEntry,
396
403
  fetchAdminControls,
397
404
  fetchAdminControlsOnce,
398
405
  fetchWithTimeout,
399
406
  fileExists,
400
407
  filter,
401
408
  findGitRoot,
409
+ findSecretFiles,
402
410
  flatMapTextParts,
403
411
  flattenMemory,
404
412
  flushTelemetry,
@@ -429,6 +437,7 @@ import {
429
437
  getCheckpointInfoList,
430
438
  getCitations,
431
439
  getCodeAssistServer,
440
+ getCommandName,
432
441
  getCommandRoot,
433
442
  getCommandRoots,
434
443
  getCompatibilityWarnings,
@@ -462,7 +471,9 @@ import {
462
471
  getMemoryMonitor,
463
472
  getOauthClient,
464
473
  getPackageJson,
474
+ getPathIdentity,
465
475
  getPlanModeExitMessage,
476
+ getPolicyDenialError,
466
477
  getPolicyDirectories,
467
478
  getPolicyTier,
468
479
  getPreviousSession,
@@ -475,6 +486,7 @@ import {
475
486
  getResponseText,
476
487
  getResponseTextFromParts,
477
488
  getRetryErrorType,
489
+ getSecretFileFindArgs,
478
490
  getShellConfiguration,
479
491
  getSpecificMimeType,
480
492
  getStructuredResponse,
@@ -527,6 +539,7 @@ import {
527
539
  isPrivateIpAsync,
528
540
  isRetryableError,
529
541
  isSchemaDepthError,
542
+ isSecretFile,
530
543
  isStable,
531
544
  isStructuredError,
532
545
  isSubagentProgress,
@@ -592,6 +605,7 @@ import {
592
605
  openDiff,
593
606
  parseAgentMarkdown,
594
607
  parseAndFormatApiError,
608
+ parseBashCommandDetails,
595
609
  parseBooleanEnvFlag,
596
610
  parseCommandDetails,
597
611
  parsePrompt,
@@ -646,6 +660,7 @@ import {
646
660
  refreshMemory,
647
661
  removeMCPStatusChangeListener,
648
662
  resetApiKeyCacheForTesting,
663
+ resetBrowserSession,
649
664
  resetEncodingCache,
650
665
  resetOauthClientForTesting,
651
666
  resetUserDataCacheForTesting,
@@ -653,6 +668,7 @@ import {
653
668
  resolveEditorAsync,
654
669
  resolveExecutable,
655
670
  resolvePathFromEnv,
671
+ resolveSandboxPaths,
656
672
  resolveTelemetrySettings,
657
673
  retryWithBackoff,
658
674
  runInDevTraceSpan,
@@ -661,6 +677,7 @@ import {
661
677
  sanitizeAdminSettings,
662
678
  sanitizeFilenamePart,
663
679
  sanitizeHostname,
680
+ sanitizeOutput,
664
681
  sanitizePaths,
665
682
  saveApiKey,
666
683
  saveTruncatedToolOutput,
@@ -695,9 +712,11 @@ import {
695
712
  translateEvent,
696
713
  truncateFastAckInput,
697
714
  truncateString,
715
+ tryRealpath,
698
716
  uiTelemetryService,
699
717
  updateMCPServerStatus,
700
- validateBaseUrl,
718
+ updatePolicy,
719
+ validateAndSanitizeSessionId,
701
720
  validateMcpPolicyToolNames,
702
721
  validatePlanContent,
703
722
  validatePlanPath,
@@ -705,7 +724,7 @@ import {
705
724
  wrapInAccountChooser,
706
725
  writeToStderr,
707
726
  writeToStdout
708
- } from "./chunk-QVTX2M5J.js";
727
+ } from "./chunk-PPWUMHZT.js";
709
728
  import {
710
729
  ACTIVATE_SKILL_TOOL_NAME,
711
730
  ALL_BUILTIN_TOOL_NAMES,
@@ -802,6 +821,7 @@ import {
802
821
  MEMORY_PARAM_FACT,
803
822
  MEMORY_SECTION_HEADER,
804
823
  MEMORY_TOOL_NAME,
824
+ MODES_BY_PERMISSIVENESS,
805
825
  MUTATOR_KINDS,
806
826
  MemoryTool,
807
827
  MessageBusType,
@@ -850,6 +870,9 @@ import {
850
870
  TODOS_PARAM_TODOS,
851
871
  TOOLS_REQUIRING_NARROWING,
852
872
  TOOL_LEGACY_ALIASES,
873
+ TOPIC_PARAM_STRATEGIC_INTENT,
874
+ TOPIC_PARAM_SUMMARY,
875
+ TOPIC_PARAM_TITLE,
853
876
  TRACKER_ADD_DEPENDENCY_TOOL_NAME,
854
877
  TRACKER_CREATE_TASK_TOOL_NAME,
855
878
  TRACKER_GET_TASK_TOOL_NAME,
@@ -858,6 +881,8 @@ import {
858
881
  TRACKER_VISUALIZE_TOOL_NAME,
859
882
  ToolConfirmationOutcome,
860
883
  ToolErrorType,
884
+ UPDATE_TOPIC_DISPLAY_NAME,
885
+ UPDATE_TOPIC_TOOL_NAME,
861
886
  UnauthorizedError,
862
887
  VALID_GEMINI_MODELS,
863
888
  WEB_FETCH_DISPLAY_NAME,
@@ -889,7 +914,9 @@ import {
889
914
  getGlobalMemoryPaths,
890
915
  getHookSource,
891
916
  getProjectHash,
917
+ getProjectMemoryFilePath,
892
918
  getToolAliases,
919
+ getUserProjectMemoryPaths,
893
920
  hasCycleInSchema,
894
921
  hasSummary,
895
922
  homedir,
@@ -911,6 +938,7 @@ import {
911
938
  isNodeError,
912
939
  isPreviewModel,
913
940
  isProModel,
941
+ isReadManyFilesResult,
914
942
  isRecord,
915
943
  isStructuredToolResult,
916
944
  isSubpath,
@@ -937,7 +965,7 @@ import {
937
965
  tmpdir,
938
966
  toFriendlyError,
939
967
  unescapePath
940
- } from "./chunk-S2IQOR7T.js";
968
+ } from "./chunk-JS5WSGB2.js";
941
969
  import "./chunk-664ZODQF.js";
942
970
  import "./chunk-RJTRUG2J.js";
943
971
  import {
@@ -1243,6 +1271,7 @@ export {
1243
1271
  MEMORY_SECTION_HEADER,
1244
1272
  MEMORY_TOOL_NAME,
1245
1273
  MIN_CREDIT_BALANCE,
1274
+ MODES_BY_PERMISSIVENESS,
1246
1275
  MUTATOR_KINDS,
1247
1276
  McpClient,
1248
1277
  McpConfigDefinitionSchema,
@@ -1252,7 +1281,9 @@ export {
1252
1281
  MessageBus,
1253
1282
  MessageBusType,
1254
1283
  MessageSenderType,
1284
+ ModelConfigService,
1255
1285
  ModelNotFoundError,
1286
+ ModelRouterService,
1256
1287
  ModelSlashCommandEvent,
1257
1288
  NO_EDITOR_AVAILABLE_ERROR,
1258
1289
  NetworkRetryAttemptEvent,
@@ -1321,6 +1352,7 @@ export {
1321
1352
  RewindEvent,
1322
1353
  RipGrepTool,
1323
1354
  SCROLLBACK_LIMIT,
1355
+ SECRET_FILES,
1324
1356
  SECRET_KEY_ACCOUNT,
1325
1357
  SECRET_PREFIX,
1326
1358
  SERVICE_DESCRIPTION,
@@ -1362,6 +1394,9 @@ export {
1362
1394
  TOOLS_REQUIRING_NARROWING,
1363
1395
  TOOL_LEGACY_ALIASES,
1364
1396
  TOOL_OUTPUTS_DIR,
1397
+ TOPIC_PARAM_STRATEGIC_INTENT,
1398
+ TOPIC_PARAM_SUMMARY,
1399
+ TOPIC_PARAM_TITLE,
1365
1400
  TRACKER_ADD_DEPENDENCY_TOOL_NAME,
1366
1401
  TRACKER_CREATE_TASK_TOOL_NAME,
1367
1402
  TRACKER_GET_TASK_TOOL_NAME,
@@ -1392,6 +1427,8 @@ export {
1392
1427
  TrackerUpdateTaskTool,
1393
1428
  TrackerVisualizeTool,
1394
1429
  Turn,
1430
+ UPDATE_TOPIC_DISPLAY_NAME,
1431
+ UPDATE_TOPIC_TOOL_NAME,
1395
1432
  UPGRADE_URL_PAGE,
1396
1433
  USER_POLICY_TIER,
1397
1434
  USER_STEERING_INSTRUCTION,
@@ -1443,6 +1480,7 @@ export {
1443
1480
  canUseRipgrep,
1444
1481
  categorizeAndConcatenate,
1445
1482
  checkExhaustive,
1483
+ checkPolicy,
1446
1484
  classifyGoogleError,
1447
1485
  cleanupWorktree,
1448
1486
  clearApiKey,
@@ -1480,6 +1518,8 @@ export {
1480
1518
  debugLogger,
1481
1519
  decodeTagName,
1482
1520
  deduplicatePathsByFileIdentity,
1521
+ deleteSessionArtifactsAsync,
1522
+ deleteSubagentSessionDirAndArtifactsAsync,
1483
1523
  detectBOM,
1484
1524
  detectEncodingFromBuffer,
1485
1525
  detectFileType,
@@ -1510,12 +1550,14 @@ export {
1510
1550
  execStreaming,
1511
1551
  exitAlternateScreen,
1512
1552
  extractExtensionsFromPatterns,
1553
+ extractStringFromParseEntry,
1513
1554
  fetchAdminControls,
1514
1555
  fetchAdminControlsOnce,
1515
1556
  fetchWithTimeout,
1516
1557
  fileExists,
1517
1558
  filter,
1518
1559
  findGitRoot,
1560
+ findSecretFiles,
1519
1561
  flatMapTextParts,
1520
1562
  flattenMemory,
1521
1563
  flushTelemetry,
@@ -1549,6 +1591,7 @@ export {
1549
1591
  getCheckpointInfoList,
1550
1592
  getCitations,
1551
1593
  getCodeAssistServer,
1594
+ getCommandName,
1552
1595
  getCommandRoot,
1553
1596
  getCommandRoots,
1554
1597
  getCompatibilityWarnings,
@@ -1591,11 +1634,14 @@ export {
1591
1634
  getMemoryMonitor,
1592
1635
  getOauthClient,
1593
1636
  getPackageJson,
1637
+ getPathIdentity,
1594
1638
  getPlanModeExitMessage,
1639
+ getPolicyDenialError,
1595
1640
  getPolicyDirectories,
1596
1641
  getPolicyTier,
1597
1642
  getPreviousSession,
1598
1643
  getProjectHash,
1644
+ getProjectMemoryFilePath,
1599
1645
  getProjectRootForWorktree,
1600
1646
  getPromptIdWithFallback,
1601
1647
  getPty,
@@ -1605,6 +1651,7 @@ export {
1605
1651
  getResponseText,
1606
1652
  getResponseTextFromParts,
1607
1653
  getRetryErrorType,
1654
+ getSecretFileFindArgs,
1608
1655
  getShellConfiguration,
1609
1656
  getSpecificMimeType,
1610
1657
  getStructuredResponse,
@@ -1614,6 +1661,7 @@ export {
1614
1661
  getToolCallDataSchema,
1615
1662
  getToolSuggestion,
1616
1663
  getTruncatedCheckpointNames,
1664
+ getUserProjectMemoryPaths,
1617
1665
  getVersion,
1618
1666
  getWorktreePath,
1619
1667
  handleFallback,
@@ -1677,9 +1725,11 @@ export {
1677
1725
  isPrivateIp,
1678
1726
  isPrivateIpAsync,
1679
1727
  isProModel,
1728
+ isReadManyFilesResult,
1680
1729
  isRecord,
1681
1730
  isRetryableError,
1682
1731
  isSchemaDepthError,
1732
+ isSecretFile,
1683
1733
  isStable,
1684
1734
  isStructuredError,
1685
1735
  isStructuredToolResult,
@@ -1754,6 +1804,7 @@ export {
1754
1804
  openDiff,
1755
1805
  parseAgentMarkdown,
1756
1806
  parseAndFormatApiError,
1807
+ parseBashCommandDetails,
1757
1808
  parseBooleanEnvFlag,
1758
1809
  parseCommandDetails,
1759
1810
  parseGoogleApiError,
@@ -1812,6 +1863,7 @@ export {
1812
1863
  refreshServerHierarchicalMemory,
1813
1864
  removeMCPStatusChangeListener,
1814
1865
  resetApiKeyCacheForTesting,
1866
+ resetBrowserSession,
1815
1867
  resetEncodingCache,
1816
1868
  resetOauthClientForTesting,
1817
1869
  resetUserDataCacheForTesting,
@@ -1821,6 +1873,7 @@ export {
1821
1873
  resolveExecutable,
1822
1874
  resolveModel,
1823
1875
  resolvePathFromEnv,
1876
+ resolveSandboxPaths,
1824
1877
  resolveTelemetrySettings,
1825
1878
  resolveToRealPath,
1826
1879
  retryWithBackoff,
@@ -1831,6 +1884,7 @@ export {
1831
1884
  sanitizeAdminSettings,
1832
1885
  sanitizeFilenamePart,
1833
1886
  sanitizeHostname,
1887
+ sanitizeOutput,
1834
1888
  sanitizePaths,
1835
1889
  saveApiKey,
1836
1890
  saveTruncatedToolOutput,
@@ -1872,10 +1926,12 @@ export {
1872
1926
  translateEvent,
1873
1927
  truncateFastAckInput,
1874
1928
  truncateString,
1929
+ tryRealpath,
1875
1930
  uiTelemetryService,
1876
1931
  unescapePath,
1877
1932
  updateMCPServerStatus,
1878
- validateBaseUrl,
1933
+ updatePolicy,
1934
+ validateAndSanitizeSessionId,
1879
1935
  validateMcpPolicyToolNames,
1880
1936
  validatePlanContent,
1881
1937
  validatePlanPath,