@google/gemini-cli 0.35.0-preview.2 → 0.36.0-nightly.20260321.fc03891a1
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.
- package/README.md +0 -1
- package/bundle/{chunk-QO53VEHI.js → chunk-5725SFQR.js} +87 -47
- package/bundle/{chunk-HYF34ISK.js → chunk-CCJTFLFP.js} +5629 -5226
- package/bundle/{chunk-5OVDZKPV.js → chunk-D7FYAQ3H.js} +59887 -34723
- package/bundle/{chunk-6AQAEYFC.js → chunk-HFDLZAI6.js} +59887 -34723
- package/bundle/{chunk-WTYAEXC3.js → chunk-MIAZ3PM6.js} +59887 -34723
- package/bundle/{chunk-WXXNCSKU.js → chunk-NA5KUNBD.js} +5629 -5226
- package/bundle/{chunk-SCIFYSWM.js → chunk-UOFTUVGG.js} +5629 -5226
- package/bundle/{chunk-C2LINL7G.js → chunk-W5ORWYUB.js} +83 -45
- package/bundle/{chunk-TYZCRVGB.js → chunk-XYHDU7NF.js} +5629 -5226
- package/bundle/{chunk-ELVZ5MKI.js → chunk-ZUXLXS2J.js} +72724 -47403
- package/bundle/{core-ZWMLWHG7.js → core-GS2P42IT.js} +48 -3
- package/bundle/{devtoolsService-XMVPJFZ7.js → devtoolsService-DUME7JA6.js} +3 -4
- package/bundle/{devtoolsService-DH7MKZL2.js → devtoolsService-GFJFWZMN.js} +3 -4
- package/bundle/{devtoolsService-EVTQ32UO.js → devtoolsService-NYUXHIPC.js} +3 -4
- package/bundle/{devtoolsService-FPFZEEVK.js → devtoolsService-RC5CN5TA.js} +3 -4
- package/bundle/{dist-6LCHGUBD.js → dist-GAJJIGQH.js} +48 -3
- package/bundle/{dist-AWPSKKKO.js → dist-RXTU4IDW.js} +48 -3
- package/bundle/{dist-WOQEPX5R.js → dist-ULRCP5C6.js} +48 -3
- package/bundle/docs/CONTRIBUTING.md +0 -15
- package/bundle/docs/admin/enterprise-controls.md +61 -0
- package/bundle/docs/changelogs/index.md +11 -0
- package/bundle/docs/changelogs/latest.md +459 -209
- package/bundle/docs/changelogs/preview.md +355 -454
- package/bundle/docs/cli/checkpointing.md +3 -1
- package/bundle/docs/cli/cli-reference.md +1 -0
- package/bundle/docs/cli/custom-commands.md +7 -5
- package/bundle/docs/cli/enterprise.md +15 -9
- package/bundle/docs/cli/git-worktrees.md +107 -0
- package/bundle/docs/cli/model-steering.md +4 -3
- package/bundle/docs/cli/model.md +3 -1
- package/bundle/docs/cli/notifications.md +4 -3
- package/bundle/docs/cli/plan-mode.md +28 -8
- package/bundle/docs/cli/sandbox.md +24 -4
- package/bundle/docs/cli/session-management.md +6 -0
- package/bundle/docs/cli/settings.md +14 -1
- package/bundle/docs/cli/skills.md +4 -2
- package/bundle/docs/cli/system-prompt.md +3 -1
- package/bundle/docs/cli/telemetry.md +6 -3
- package/bundle/docs/cli/themes.md +12 -8
- package/bundle/docs/cli/tutorials/file-management.md +8 -6
- package/bundle/docs/cli/tutorials/mcp-setup.md +5 -3
- package/bundle/docs/cli/tutorials/memory-management.md +6 -6
- package/bundle/docs/cli/tutorials/plan-mode-steering.md +4 -3
- package/bundle/docs/cli/tutorials/shell-commands.md +3 -3
- package/bundle/docs/core/remote-agents.md +8 -3
- package/bundle/docs/core/subagents.md +21 -13
- package/bundle/docs/extensions/reference.md +8 -3
- package/bundle/docs/get-started/authentication.md +60 -50
- package/bundle/docs/get-started/examples.md +3 -1
- package/bundle/docs/get-started/gemini-3.md +11 -5
- package/bundle/docs/hooks/index.md +3 -1
- package/bundle/docs/hooks/writing-hooks.md +2 -2
- package/bundle/docs/ide-integration/ide-companion-spec.md +5 -3
- package/bundle/docs/ide-integration/index.md +8 -4
- package/bundle/docs/issue-and-pr-automation.md +3 -1
- package/bundle/docs/local-development.md +3 -1
- package/bundle/docs/reference/commands.md +2 -2
- package/bundle/docs/reference/configuration.md +410 -16
- package/bundle/docs/reference/policy-engine.md +47 -19
- package/bundle/docs/reference/tools.md +3 -1
- package/bundle/docs/release-confidence.md +7 -3
- package/bundle/docs/releases.md +11 -7
- package/bundle/docs/resources/faq.md +13 -0
- package/bundle/docs/resources/tos-privacy.md +4 -2
- package/bundle/docs/resources/troubleshooting.md +3 -1
- package/bundle/docs/sidebar.json +5 -0
- package/bundle/docs/tools/mcp-server.md +17 -9
- package/bundle/docs/tools/planning.md +3 -1
- package/bundle/docs/tools/shell.md +4 -4
- package/bundle/docs/tools/todos.md +2 -1
- package/bundle/gemini.js +4392 -7551
- package/bundle/{interactiveCli-E3DWTWRM.js → interactiveCli-FYYDCEQS.js} +2738 -2353
- package/bundle/{interactiveCli-N4QW3NCZ.js → interactiveCli-OY77TZRB.js} +2738 -2353
- package/bundle/{interactiveCli-Z4Y6XB7M.js → interactiveCli-QWWY5YAU.js} +2738 -2353
- package/bundle/{interactiveCli-7H3T4KJF.js → interactiveCli-RMQZ5WRR.js} +2738 -2353
- package/bundle/{memoryDiscovery-7LUUOJNM.js → memoryDiscovery-HKWK4IPH.js} +1 -1
- package/bundle/{memoryDiscovery-RRX6QF4Y.js → memoryDiscovery-OV4FUTHJ.js} +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js +2 -2
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.d.ts +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js.map +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-CPMX7ITW.js → oauth2-provider-CFIR577H.js} +2 -3
- package/bundle/{oauth2-provider-IU6STKL7.js → oauth2-provider-DX62BK7X.js} +2 -3
- package/bundle/{oauth2-provider-LTBDSRHY.js → oauth2-provider-EKENRGNL.js} +2 -3
- package/bundle/{oauth2-provider-ZWWMTBET.js → oauth2-provider-EWXMX6DR.js} +2 -3
- package/bundle/policies/memory-manager.toml +10 -0
- package/bundle/policies/plan.toml +14 -0
- package/bundle/policies/yolo.toml +1 -0
- package/package.json +1 -1
- package/bundle/chunk-37ZTTFQF.js +0 -23568
- package/bundle/undici-4X2YZID5.js +0 -6
|
@@ -234,6 +234,7 @@ import {
|
|
|
234
234
|
ReadManyFilesTool,
|
|
235
235
|
RecordingContentGenerator,
|
|
236
236
|
ReleaseChannel,
|
|
237
|
+
RequiredMcpServerConfigSchema,
|
|
237
238
|
ResourceRegistry,
|
|
238
239
|
RetryableQuotaError,
|
|
239
240
|
RewindEvent,
|
|
@@ -244,8 +245,11 @@ import {
|
|
|
244
245
|
SERVICE_NAME,
|
|
245
246
|
SESSION_FILE_PREFIX,
|
|
246
247
|
SHELL_TOOL_NAMES,
|
|
248
|
+
SUBAGENT_CANCELLED_ERROR_MESSAGE,
|
|
249
|
+
SUBAGENT_REJECTED_ERROR_PREFIX,
|
|
247
250
|
SYNTHETIC_THOUGHT_SIGNATURE,
|
|
248
251
|
SYSTEM_FILE_EXCLUDES,
|
|
252
|
+
SandboxedFileSystemService,
|
|
249
253
|
Scheduler,
|
|
250
254
|
SemanticAttributes,
|
|
251
255
|
SessionEndReason,
|
|
@@ -261,6 +265,7 @@ import {
|
|
|
261
265
|
StartupProfiler,
|
|
262
266
|
StreamEventType,
|
|
263
267
|
StreamJsonFormatter,
|
|
268
|
+
SubagentActivityErrorType,
|
|
264
269
|
TASK_TYPE_LABELS,
|
|
265
270
|
TOOL_OUTPUTS_DIR,
|
|
266
271
|
TRUSTED_MCP_SERVER_PRIORITY,
|
|
@@ -299,7 +304,9 @@ import {
|
|
|
299
304
|
WebFetchFallbackAttemptEvent,
|
|
300
305
|
WebFetchTool,
|
|
301
306
|
WebSearchTool,
|
|
307
|
+
WindowsSandboxManager,
|
|
302
308
|
WorkspaceContext,
|
|
309
|
+
WorktreeService,
|
|
303
310
|
WriteFileTool,
|
|
304
311
|
WriteTodosTool,
|
|
305
312
|
_clearCache,
|
|
@@ -309,6 +316,7 @@ import {
|
|
|
309
316
|
appendToLastTextPart,
|
|
310
317
|
applyAdminAllowlist,
|
|
311
318
|
applyReplacement,
|
|
319
|
+
applyRequiredServers,
|
|
312
320
|
assumeExhaustive,
|
|
313
321
|
authEvents,
|
|
314
322
|
buildG1Url,
|
|
@@ -319,6 +327,7 @@ import {
|
|
|
319
327
|
canUseRipgrep,
|
|
320
328
|
checkExhaustive,
|
|
321
329
|
classifyGoogleError,
|
|
330
|
+
cleanupWorktree,
|
|
322
331
|
clearApiKey,
|
|
323
332
|
clearCachedCredentialFile,
|
|
324
333
|
clearEmittedPolicyWarnings,
|
|
@@ -345,6 +354,8 @@ import {
|
|
|
345
354
|
createTransport,
|
|
346
355
|
createUnauthorizedToolError,
|
|
347
356
|
createWorkingStdio,
|
|
357
|
+
createWorktree,
|
|
358
|
+
createWorktreeService,
|
|
348
359
|
decodeTagName,
|
|
349
360
|
detectBOM,
|
|
350
361
|
detectEncodingFromBuffer,
|
|
@@ -446,6 +457,7 @@ import {
|
|
|
446
457
|
getPolicyDirectories,
|
|
447
458
|
getPolicyTier,
|
|
448
459
|
getPreviousSession,
|
|
460
|
+
getProjectRootForWorktree,
|
|
449
461
|
getPromptIdWithFallback,
|
|
450
462
|
getPty,
|
|
451
463
|
getRealPath,
|
|
@@ -462,11 +474,13 @@ import {
|
|
|
462
474
|
getToolSuggestion,
|
|
463
475
|
getTruncatedCheckpointNames,
|
|
464
476
|
getVersion,
|
|
477
|
+
getWorktreePath,
|
|
465
478
|
handleFallback,
|
|
466
479
|
hasNetworkTransport,
|
|
467
480
|
hasRedirection,
|
|
468
481
|
hasValidEditorCommand,
|
|
469
482
|
hasValidEditorCommandAsync,
|
|
483
|
+
hasWorktreeChanges,
|
|
470
484
|
ideContextStore,
|
|
471
485
|
initializeActivityMonitor,
|
|
472
486
|
initializeMemoryMonitor,
|
|
@@ -480,17 +494,21 @@ import {
|
|
|
480
494
|
isBinaryFile,
|
|
481
495
|
isCloudShell,
|
|
482
496
|
isCompletedAskUserTool,
|
|
497
|
+
isDumbTerminal,
|
|
483
498
|
isEditToolParams,
|
|
484
499
|
isEditorAvailable,
|
|
485
500
|
isEditorAvailableAsync,
|
|
486
501
|
isEmpty,
|
|
487
502
|
isEnabled,
|
|
503
|
+
isGeminiWorktree,
|
|
488
504
|
isGitRepository,
|
|
505
|
+
isGnuScreen,
|
|
489
506
|
isGuiEditor,
|
|
490
507
|
isHeadlessMode,
|
|
491
508
|
isInvalidArgumentError,
|
|
492
509
|
isJetBrainsTerminal,
|
|
493
510
|
isLoopbackHost,
|
|
511
|
+
isLowColorTmux,
|
|
494
512
|
isNightly,
|
|
495
513
|
isOverageEligibleModel,
|
|
496
514
|
isPerformanceMonitoringActive,
|
|
@@ -504,6 +522,7 @@ import {
|
|
|
504
522
|
isSubagentProgress,
|
|
505
523
|
isTelemetrySdkInitialized,
|
|
506
524
|
isTerminalEditor,
|
|
525
|
+
isTmux,
|
|
507
526
|
isToolCallResponseInfo,
|
|
508
527
|
isUserActive,
|
|
509
528
|
isValidNonThoughtTextPart,
|
|
@@ -665,8 +684,7 @@ import {
|
|
|
665
684
|
wrapInAccountChooser,
|
|
666
685
|
writeToStderr,
|
|
667
686
|
writeToStdout
|
|
668
|
-
} from "./chunk-
|
|
669
|
-
import "./chunk-37ZTTFQF.js";
|
|
687
|
+
} from "./chunk-MIAZ3PM6.js";
|
|
670
688
|
import {
|
|
671
689
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
672
690
|
ALL_BUILTIN_TOOL_NAMES,
|
|
@@ -782,6 +800,7 @@ import {
|
|
|
782
800
|
PREVIEW_GEMINI_MODEL,
|
|
783
801
|
PREVIEW_GEMINI_MODEL_AUTO,
|
|
784
802
|
PRIORITY_SUBAGENT_TOOL,
|
|
803
|
+
PRIORITY_YOLO_ALLOW_ALL,
|
|
785
804
|
PolicyDecision,
|
|
786
805
|
QuestionType,
|
|
787
806
|
READ_FILE_DISPLAY_NAME,
|
|
@@ -863,9 +882,11 @@ import {
|
|
|
863
882
|
isNodeError,
|
|
864
883
|
isPreviewModel,
|
|
865
884
|
isProModel,
|
|
885
|
+
isRecord,
|
|
866
886
|
isSubpath,
|
|
867
887
|
isTool,
|
|
868
888
|
isValidToolName,
|
|
889
|
+
jsonToMarkdown,
|
|
869
890
|
loadJitSubdirectoryMemory,
|
|
870
891
|
loadServerHierarchicalMemory,
|
|
871
892
|
makeRelative,
|
|
@@ -877,6 +898,7 @@ import {
|
|
|
877
898
|
resolveClassifierModel,
|
|
878
899
|
resolveModel,
|
|
879
900
|
resolveToRealPath,
|
|
901
|
+
safeJsonToMarkdown,
|
|
880
902
|
setGeminiMdFilename,
|
|
881
903
|
shortenPath,
|
|
882
904
|
supportsModernFeatures,
|
|
@@ -885,7 +907,7 @@ import {
|
|
|
885
907
|
tmpdir,
|
|
886
908
|
toFriendlyError,
|
|
887
909
|
unescapePath
|
|
888
|
-
} from "./chunk-
|
|
910
|
+
} from "./chunk-W5ORWYUB.js";
|
|
889
911
|
import "./chunk-664ZODQF.js";
|
|
890
912
|
import "./chunk-RJTRUG2J.js";
|
|
891
913
|
import {
|
|
@@ -1228,6 +1250,7 @@ export {
|
|
|
1228
1250
|
PREVIEW_GEMINI_MODEL,
|
|
1229
1251
|
PREVIEW_GEMINI_MODEL_AUTO,
|
|
1230
1252
|
PRIORITY_SUBAGENT_TOOL,
|
|
1253
|
+
PRIORITY_YOLO_ALLOW_ALL,
|
|
1231
1254
|
PYTHON_EXCLUDES,
|
|
1232
1255
|
PerformanceMetricType,
|
|
1233
1256
|
PlanErrorMessages,
|
|
@@ -1256,6 +1279,7 @@ export {
|
|
|
1256
1279
|
ReadManyFilesTool,
|
|
1257
1280
|
RecordingContentGenerator,
|
|
1258
1281
|
ReleaseChannel,
|
|
1282
|
+
RequiredMcpServerConfigSchema,
|
|
1259
1283
|
ResourceRegistry,
|
|
1260
1284
|
RetryableQuotaError,
|
|
1261
1285
|
RewindEvent,
|
|
@@ -1272,8 +1296,11 @@ export {
|
|
|
1272
1296
|
SHELL_TOOL_NAME,
|
|
1273
1297
|
SHELL_TOOL_NAMES,
|
|
1274
1298
|
SKILL_PARAM_NAME,
|
|
1299
|
+
SUBAGENT_CANCELLED_ERROR_MESSAGE,
|
|
1300
|
+
SUBAGENT_REJECTED_ERROR_PREFIX,
|
|
1275
1301
|
SYNTHETIC_THOUGHT_SIGNATURE,
|
|
1276
1302
|
SYSTEM_FILE_EXCLUDES,
|
|
1303
|
+
SandboxedFileSystemService,
|
|
1277
1304
|
Scheduler,
|
|
1278
1305
|
SchemaValidator,
|
|
1279
1306
|
SemanticAttributes,
|
|
@@ -1292,6 +1319,7 @@ export {
|
|
|
1292
1319
|
Storage,
|
|
1293
1320
|
StreamEventType,
|
|
1294
1321
|
StreamJsonFormatter,
|
|
1322
|
+
SubagentActivityErrorType,
|
|
1295
1323
|
TASK_TYPE_LABELS,
|
|
1296
1324
|
TODOS_ITEM_PARAM_DESCRIPTION,
|
|
1297
1325
|
TODOS_ITEM_PARAM_STATUS,
|
|
@@ -1353,7 +1381,9 @@ export {
|
|
|
1353
1381
|
WebFetchFallbackAttemptEvent,
|
|
1354
1382
|
WebFetchTool,
|
|
1355
1383
|
WebSearchTool,
|
|
1384
|
+
WindowsSandboxManager,
|
|
1356
1385
|
WorkspaceContext,
|
|
1386
|
+
WorktreeService,
|
|
1357
1387
|
WriteFileTool,
|
|
1358
1388
|
WriteTodosTool,
|
|
1359
1389
|
_clearCache,
|
|
@@ -1363,6 +1393,7 @@ export {
|
|
|
1363
1393
|
appendToLastTextPart,
|
|
1364
1394
|
applyAdminAllowlist,
|
|
1365
1395
|
applyReplacement,
|
|
1396
|
+
applyRequiredServers,
|
|
1366
1397
|
assumeExhaustive,
|
|
1367
1398
|
authEvents,
|
|
1368
1399
|
buildG1Url,
|
|
@@ -1374,6 +1405,7 @@ export {
|
|
|
1374
1405
|
categorizeAndConcatenate,
|
|
1375
1406
|
checkExhaustive,
|
|
1376
1407
|
classifyGoogleError,
|
|
1408
|
+
cleanupWorktree,
|
|
1377
1409
|
clearApiKey,
|
|
1378
1410
|
clearCachedCredentialFile,
|
|
1379
1411
|
clearEmittedPolicyWarnings,
|
|
@@ -1402,6 +1434,8 @@ export {
|
|
|
1402
1434
|
createTransport,
|
|
1403
1435
|
createUnauthorizedToolError,
|
|
1404
1436
|
createWorkingStdio,
|
|
1437
|
+
createWorktree,
|
|
1438
|
+
createWorktreeService,
|
|
1405
1439
|
debugLogger,
|
|
1406
1440
|
decodeTagName,
|
|
1407
1441
|
deduplicatePathsByFileIdentity,
|
|
@@ -1519,6 +1553,7 @@ export {
|
|
|
1519
1553
|
getPolicyTier,
|
|
1520
1554
|
getPreviousSession,
|
|
1521
1555
|
getProjectHash,
|
|
1556
|
+
getProjectRootForWorktree,
|
|
1522
1557
|
getPromptIdWithFallback,
|
|
1523
1558
|
getPty,
|
|
1524
1559
|
getRealPath,
|
|
@@ -1536,12 +1571,14 @@ export {
|
|
|
1536
1571
|
getToolSuggestion,
|
|
1537
1572
|
getTruncatedCheckpointNames,
|
|
1538
1573
|
getVersion,
|
|
1574
|
+
getWorktreePath,
|
|
1539
1575
|
handleFallback,
|
|
1540
1576
|
hasCycleInSchema,
|
|
1541
1577
|
hasNetworkTransport,
|
|
1542
1578
|
hasRedirection,
|
|
1543
1579
|
hasValidEditorCommand,
|
|
1544
1580
|
hasValidEditorCommandAsync,
|
|
1581
|
+
hasWorktreeChanges,
|
|
1545
1582
|
homedir,
|
|
1546
1583
|
ideContextStore,
|
|
1547
1584
|
initializeActivityMonitor,
|
|
@@ -1563,6 +1600,7 @@ export {
|
|
|
1563
1600
|
isCloudShell,
|
|
1564
1601
|
isCompletedAskUserTool,
|
|
1565
1602
|
isCustomModel,
|
|
1603
|
+
isDumbTerminal,
|
|
1566
1604
|
isEditToolParams,
|
|
1567
1605
|
isEditorAvailable,
|
|
1568
1606
|
isEditorAvailableAsync,
|
|
@@ -1571,12 +1609,15 @@ export {
|
|
|
1571
1609
|
isFatalToolError,
|
|
1572
1610
|
isGemini2Model,
|
|
1573
1611
|
isGemini3Model,
|
|
1612
|
+
isGeminiWorktree,
|
|
1574
1613
|
isGitRepository,
|
|
1614
|
+
isGnuScreen,
|
|
1575
1615
|
isGuiEditor,
|
|
1576
1616
|
isHeadlessMode,
|
|
1577
1617
|
isInvalidArgumentError,
|
|
1578
1618
|
isJetBrainsTerminal,
|
|
1579
1619
|
isLoopbackHost,
|
|
1620
|
+
isLowColorTmux,
|
|
1580
1621
|
isMcpToolAnnotation,
|
|
1581
1622
|
isMcpToolName,
|
|
1582
1623
|
isNightly,
|
|
@@ -1588,6 +1629,7 @@ export {
|
|
|
1588
1629
|
isPrivateIp,
|
|
1589
1630
|
isPrivateIpAsync,
|
|
1590
1631
|
isProModel,
|
|
1632
|
+
isRecord,
|
|
1591
1633
|
isRetryableError,
|
|
1592
1634
|
isSchemaDepthError,
|
|
1593
1635
|
isStable,
|
|
@@ -1596,6 +1638,7 @@ export {
|
|
|
1596
1638
|
isSubpath,
|
|
1597
1639
|
isTelemetrySdkInitialized,
|
|
1598
1640
|
isTerminalEditor,
|
|
1641
|
+
isTmux,
|
|
1599
1642
|
isTool,
|
|
1600
1643
|
isToolCallResponseInfo,
|
|
1601
1644
|
isUserActive,
|
|
@@ -1605,6 +1648,7 @@ export {
|
|
|
1605
1648
|
isWindows10,
|
|
1606
1649
|
isWithinRoot,
|
|
1607
1650
|
isWriteFileToolParams,
|
|
1651
|
+
jsonToMarkdown,
|
|
1608
1652
|
listExtensions,
|
|
1609
1653
|
listMemoryFiles,
|
|
1610
1654
|
loadAgentsFromDirectory,
|
|
@@ -1724,6 +1768,7 @@ export {
|
|
|
1724
1768
|
resolveToRealPath,
|
|
1725
1769
|
retryWithBackoff,
|
|
1726
1770
|
runInDevTraceSpan,
|
|
1771
|
+
safeJsonToMarkdown,
|
|
1727
1772
|
safeLiteralReplace,
|
|
1728
1773
|
safeTemplateReplace,
|
|
1729
1774
|
sanitizeAdminSettings,
|
|
@@ -234,6 +234,7 @@ import {
|
|
|
234
234
|
ReadManyFilesTool,
|
|
235
235
|
RecordingContentGenerator,
|
|
236
236
|
ReleaseChannel,
|
|
237
|
+
RequiredMcpServerConfigSchema,
|
|
237
238
|
ResourceRegistry,
|
|
238
239
|
RetryableQuotaError,
|
|
239
240
|
RewindEvent,
|
|
@@ -244,8 +245,11 @@ import {
|
|
|
244
245
|
SERVICE_NAME,
|
|
245
246
|
SESSION_FILE_PREFIX,
|
|
246
247
|
SHELL_TOOL_NAMES,
|
|
248
|
+
SUBAGENT_CANCELLED_ERROR_MESSAGE,
|
|
249
|
+
SUBAGENT_REJECTED_ERROR_PREFIX,
|
|
247
250
|
SYNTHETIC_THOUGHT_SIGNATURE,
|
|
248
251
|
SYSTEM_FILE_EXCLUDES,
|
|
252
|
+
SandboxedFileSystemService,
|
|
249
253
|
Scheduler,
|
|
250
254
|
SemanticAttributes,
|
|
251
255
|
SessionEndReason,
|
|
@@ -261,6 +265,7 @@ import {
|
|
|
261
265
|
StartupProfiler,
|
|
262
266
|
StreamEventType,
|
|
263
267
|
StreamJsonFormatter,
|
|
268
|
+
SubagentActivityErrorType,
|
|
264
269
|
TASK_TYPE_LABELS,
|
|
265
270
|
TOOL_OUTPUTS_DIR,
|
|
266
271
|
TRUSTED_MCP_SERVER_PRIORITY,
|
|
@@ -299,7 +304,9 @@ import {
|
|
|
299
304
|
WebFetchFallbackAttemptEvent,
|
|
300
305
|
WebFetchTool,
|
|
301
306
|
WebSearchTool,
|
|
307
|
+
WindowsSandboxManager,
|
|
302
308
|
WorkspaceContext,
|
|
309
|
+
WorktreeService,
|
|
303
310
|
WriteFileTool,
|
|
304
311
|
WriteTodosTool,
|
|
305
312
|
_clearCache,
|
|
@@ -309,6 +316,7 @@ import {
|
|
|
309
316
|
appendToLastTextPart,
|
|
310
317
|
applyAdminAllowlist,
|
|
311
318
|
applyReplacement,
|
|
319
|
+
applyRequiredServers,
|
|
312
320
|
assumeExhaustive,
|
|
313
321
|
authEvents,
|
|
314
322
|
buildG1Url,
|
|
@@ -319,6 +327,7 @@ import {
|
|
|
319
327
|
canUseRipgrep,
|
|
320
328
|
checkExhaustive,
|
|
321
329
|
classifyGoogleError,
|
|
330
|
+
cleanupWorktree,
|
|
322
331
|
clearApiKey,
|
|
323
332
|
clearCachedCredentialFile,
|
|
324
333
|
clearEmittedPolicyWarnings,
|
|
@@ -345,6 +354,8 @@ import {
|
|
|
345
354
|
createTransport,
|
|
346
355
|
createUnauthorizedToolError,
|
|
347
356
|
createWorkingStdio,
|
|
357
|
+
createWorktree,
|
|
358
|
+
createWorktreeService,
|
|
348
359
|
decodeTagName,
|
|
349
360
|
detectBOM,
|
|
350
361
|
detectEncodingFromBuffer,
|
|
@@ -446,6 +457,7 @@ import {
|
|
|
446
457
|
getPolicyDirectories,
|
|
447
458
|
getPolicyTier,
|
|
448
459
|
getPreviousSession,
|
|
460
|
+
getProjectRootForWorktree,
|
|
449
461
|
getPromptIdWithFallback,
|
|
450
462
|
getPty,
|
|
451
463
|
getRealPath,
|
|
@@ -462,11 +474,13 @@ import {
|
|
|
462
474
|
getToolSuggestion,
|
|
463
475
|
getTruncatedCheckpointNames,
|
|
464
476
|
getVersion,
|
|
477
|
+
getWorktreePath,
|
|
465
478
|
handleFallback,
|
|
466
479
|
hasNetworkTransport,
|
|
467
480
|
hasRedirection,
|
|
468
481
|
hasValidEditorCommand,
|
|
469
482
|
hasValidEditorCommandAsync,
|
|
483
|
+
hasWorktreeChanges,
|
|
470
484
|
ideContextStore,
|
|
471
485
|
initializeActivityMonitor,
|
|
472
486
|
initializeMemoryMonitor,
|
|
@@ -480,17 +494,21 @@ import {
|
|
|
480
494
|
isBinaryFile,
|
|
481
495
|
isCloudShell,
|
|
482
496
|
isCompletedAskUserTool,
|
|
497
|
+
isDumbTerminal,
|
|
483
498
|
isEditToolParams,
|
|
484
499
|
isEditorAvailable,
|
|
485
500
|
isEditorAvailableAsync,
|
|
486
501
|
isEmpty,
|
|
487
502
|
isEnabled,
|
|
503
|
+
isGeminiWorktree,
|
|
488
504
|
isGitRepository,
|
|
505
|
+
isGnuScreen,
|
|
489
506
|
isGuiEditor,
|
|
490
507
|
isHeadlessMode,
|
|
491
508
|
isInvalidArgumentError,
|
|
492
509
|
isJetBrainsTerminal,
|
|
493
510
|
isLoopbackHost,
|
|
511
|
+
isLowColorTmux,
|
|
494
512
|
isNightly,
|
|
495
513
|
isOverageEligibleModel,
|
|
496
514
|
isPerformanceMonitoringActive,
|
|
@@ -504,6 +522,7 @@ import {
|
|
|
504
522
|
isSubagentProgress,
|
|
505
523
|
isTelemetrySdkInitialized,
|
|
506
524
|
isTerminalEditor,
|
|
525
|
+
isTmux,
|
|
507
526
|
isToolCallResponseInfo,
|
|
508
527
|
isUserActive,
|
|
509
528
|
isValidNonThoughtTextPart,
|
|
@@ -665,8 +684,7 @@ import {
|
|
|
665
684
|
wrapInAccountChooser,
|
|
666
685
|
writeToStderr,
|
|
667
686
|
writeToStdout
|
|
668
|
-
} from "./chunk-
|
|
669
|
-
import "./chunk-37ZTTFQF.js";
|
|
687
|
+
} from "./chunk-HFDLZAI6.js";
|
|
670
688
|
import {
|
|
671
689
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
672
690
|
ALL_BUILTIN_TOOL_NAMES,
|
|
@@ -782,6 +800,7 @@ import {
|
|
|
782
800
|
PREVIEW_GEMINI_MODEL,
|
|
783
801
|
PREVIEW_GEMINI_MODEL_AUTO,
|
|
784
802
|
PRIORITY_SUBAGENT_TOOL,
|
|
803
|
+
PRIORITY_YOLO_ALLOW_ALL,
|
|
785
804
|
PolicyDecision,
|
|
786
805
|
QuestionType,
|
|
787
806
|
READ_FILE_DISPLAY_NAME,
|
|
@@ -863,9 +882,11 @@ import {
|
|
|
863
882
|
isNodeError,
|
|
864
883
|
isPreviewModel,
|
|
865
884
|
isProModel,
|
|
885
|
+
isRecord,
|
|
866
886
|
isSubpath,
|
|
867
887
|
isTool,
|
|
868
888
|
isValidToolName,
|
|
889
|
+
jsonToMarkdown,
|
|
869
890
|
loadJitSubdirectoryMemory,
|
|
870
891
|
loadServerHierarchicalMemory,
|
|
871
892
|
makeRelative,
|
|
@@ -877,6 +898,7 @@ import {
|
|
|
877
898
|
resolveClassifierModel,
|
|
878
899
|
resolveModel,
|
|
879
900
|
resolveToRealPath,
|
|
901
|
+
safeJsonToMarkdown,
|
|
880
902
|
setGeminiMdFilename,
|
|
881
903
|
shortenPath,
|
|
882
904
|
supportsModernFeatures,
|
|
@@ -885,7 +907,7 @@ import {
|
|
|
885
907
|
tmpdir,
|
|
886
908
|
toFriendlyError,
|
|
887
909
|
unescapePath
|
|
888
|
-
} from "./chunk-
|
|
910
|
+
} from "./chunk-W5ORWYUB.js";
|
|
889
911
|
import "./chunk-664ZODQF.js";
|
|
890
912
|
import "./chunk-RJTRUG2J.js";
|
|
891
913
|
import {
|
|
@@ -1228,6 +1250,7 @@ export {
|
|
|
1228
1250
|
PREVIEW_GEMINI_MODEL,
|
|
1229
1251
|
PREVIEW_GEMINI_MODEL_AUTO,
|
|
1230
1252
|
PRIORITY_SUBAGENT_TOOL,
|
|
1253
|
+
PRIORITY_YOLO_ALLOW_ALL,
|
|
1231
1254
|
PYTHON_EXCLUDES,
|
|
1232
1255
|
PerformanceMetricType,
|
|
1233
1256
|
PlanErrorMessages,
|
|
@@ -1256,6 +1279,7 @@ export {
|
|
|
1256
1279
|
ReadManyFilesTool,
|
|
1257
1280
|
RecordingContentGenerator,
|
|
1258
1281
|
ReleaseChannel,
|
|
1282
|
+
RequiredMcpServerConfigSchema,
|
|
1259
1283
|
ResourceRegistry,
|
|
1260
1284
|
RetryableQuotaError,
|
|
1261
1285
|
RewindEvent,
|
|
@@ -1272,8 +1296,11 @@ export {
|
|
|
1272
1296
|
SHELL_TOOL_NAME,
|
|
1273
1297
|
SHELL_TOOL_NAMES,
|
|
1274
1298
|
SKILL_PARAM_NAME,
|
|
1299
|
+
SUBAGENT_CANCELLED_ERROR_MESSAGE,
|
|
1300
|
+
SUBAGENT_REJECTED_ERROR_PREFIX,
|
|
1275
1301
|
SYNTHETIC_THOUGHT_SIGNATURE,
|
|
1276
1302
|
SYSTEM_FILE_EXCLUDES,
|
|
1303
|
+
SandboxedFileSystemService,
|
|
1277
1304
|
Scheduler,
|
|
1278
1305
|
SchemaValidator,
|
|
1279
1306
|
SemanticAttributes,
|
|
@@ -1292,6 +1319,7 @@ export {
|
|
|
1292
1319
|
Storage,
|
|
1293
1320
|
StreamEventType,
|
|
1294
1321
|
StreamJsonFormatter,
|
|
1322
|
+
SubagentActivityErrorType,
|
|
1295
1323
|
TASK_TYPE_LABELS,
|
|
1296
1324
|
TODOS_ITEM_PARAM_DESCRIPTION,
|
|
1297
1325
|
TODOS_ITEM_PARAM_STATUS,
|
|
@@ -1353,7 +1381,9 @@ export {
|
|
|
1353
1381
|
WebFetchFallbackAttemptEvent,
|
|
1354
1382
|
WebFetchTool,
|
|
1355
1383
|
WebSearchTool,
|
|
1384
|
+
WindowsSandboxManager,
|
|
1356
1385
|
WorkspaceContext,
|
|
1386
|
+
WorktreeService,
|
|
1357
1387
|
WriteFileTool,
|
|
1358
1388
|
WriteTodosTool,
|
|
1359
1389
|
_clearCache,
|
|
@@ -1363,6 +1393,7 @@ export {
|
|
|
1363
1393
|
appendToLastTextPart,
|
|
1364
1394
|
applyAdminAllowlist,
|
|
1365
1395
|
applyReplacement,
|
|
1396
|
+
applyRequiredServers,
|
|
1366
1397
|
assumeExhaustive,
|
|
1367
1398
|
authEvents,
|
|
1368
1399
|
buildG1Url,
|
|
@@ -1374,6 +1405,7 @@ export {
|
|
|
1374
1405
|
categorizeAndConcatenate,
|
|
1375
1406
|
checkExhaustive,
|
|
1376
1407
|
classifyGoogleError,
|
|
1408
|
+
cleanupWorktree,
|
|
1377
1409
|
clearApiKey,
|
|
1378
1410
|
clearCachedCredentialFile,
|
|
1379
1411
|
clearEmittedPolicyWarnings,
|
|
@@ -1402,6 +1434,8 @@ export {
|
|
|
1402
1434
|
createTransport,
|
|
1403
1435
|
createUnauthorizedToolError,
|
|
1404
1436
|
createWorkingStdio,
|
|
1437
|
+
createWorktree,
|
|
1438
|
+
createWorktreeService,
|
|
1405
1439
|
debugLogger,
|
|
1406
1440
|
decodeTagName,
|
|
1407
1441
|
deduplicatePathsByFileIdentity,
|
|
@@ -1519,6 +1553,7 @@ export {
|
|
|
1519
1553
|
getPolicyTier,
|
|
1520
1554
|
getPreviousSession,
|
|
1521
1555
|
getProjectHash,
|
|
1556
|
+
getProjectRootForWorktree,
|
|
1522
1557
|
getPromptIdWithFallback,
|
|
1523
1558
|
getPty,
|
|
1524
1559
|
getRealPath,
|
|
@@ -1536,12 +1571,14 @@ export {
|
|
|
1536
1571
|
getToolSuggestion,
|
|
1537
1572
|
getTruncatedCheckpointNames,
|
|
1538
1573
|
getVersion,
|
|
1574
|
+
getWorktreePath,
|
|
1539
1575
|
handleFallback,
|
|
1540
1576
|
hasCycleInSchema,
|
|
1541
1577
|
hasNetworkTransport,
|
|
1542
1578
|
hasRedirection,
|
|
1543
1579
|
hasValidEditorCommand,
|
|
1544
1580
|
hasValidEditorCommandAsync,
|
|
1581
|
+
hasWorktreeChanges,
|
|
1545
1582
|
homedir,
|
|
1546
1583
|
ideContextStore,
|
|
1547
1584
|
initializeActivityMonitor,
|
|
@@ -1563,6 +1600,7 @@ export {
|
|
|
1563
1600
|
isCloudShell,
|
|
1564
1601
|
isCompletedAskUserTool,
|
|
1565
1602
|
isCustomModel,
|
|
1603
|
+
isDumbTerminal,
|
|
1566
1604
|
isEditToolParams,
|
|
1567
1605
|
isEditorAvailable,
|
|
1568
1606
|
isEditorAvailableAsync,
|
|
@@ -1571,12 +1609,15 @@ export {
|
|
|
1571
1609
|
isFatalToolError,
|
|
1572
1610
|
isGemini2Model,
|
|
1573
1611
|
isGemini3Model,
|
|
1612
|
+
isGeminiWorktree,
|
|
1574
1613
|
isGitRepository,
|
|
1614
|
+
isGnuScreen,
|
|
1575
1615
|
isGuiEditor,
|
|
1576
1616
|
isHeadlessMode,
|
|
1577
1617
|
isInvalidArgumentError,
|
|
1578
1618
|
isJetBrainsTerminal,
|
|
1579
1619
|
isLoopbackHost,
|
|
1620
|
+
isLowColorTmux,
|
|
1580
1621
|
isMcpToolAnnotation,
|
|
1581
1622
|
isMcpToolName,
|
|
1582
1623
|
isNightly,
|
|
@@ -1588,6 +1629,7 @@ export {
|
|
|
1588
1629
|
isPrivateIp,
|
|
1589
1630
|
isPrivateIpAsync,
|
|
1590
1631
|
isProModel,
|
|
1632
|
+
isRecord,
|
|
1591
1633
|
isRetryableError,
|
|
1592
1634
|
isSchemaDepthError,
|
|
1593
1635
|
isStable,
|
|
@@ -1596,6 +1638,7 @@ export {
|
|
|
1596
1638
|
isSubpath,
|
|
1597
1639
|
isTelemetrySdkInitialized,
|
|
1598
1640
|
isTerminalEditor,
|
|
1641
|
+
isTmux,
|
|
1599
1642
|
isTool,
|
|
1600
1643
|
isToolCallResponseInfo,
|
|
1601
1644
|
isUserActive,
|
|
@@ -1605,6 +1648,7 @@ export {
|
|
|
1605
1648
|
isWindows10,
|
|
1606
1649
|
isWithinRoot,
|
|
1607
1650
|
isWriteFileToolParams,
|
|
1651
|
+
jsonToMarkdown,
|
|
1608
1652
|
listExtensions,
|
|
1609
1653
|
listMemoryFiles,
|
|
1610
1654
|
loadAgentsFromDirectory,
|
|
@@ -1724,6 +1768,7 @@ export {
|
|
|
1724
1768
|
resolveToRealPath,
|
|
1725
1769
|
retryWithBackoff,
|
|
1726
1770
|
runInDevTraceSpan,
|
|
1771
|
+
safeJsonToMarkdown,
|
|
1727
1772
|
safeLiteralReplace,
|
|
1728
1773
|
safeTemplateReplace,
|
|
1729
1774
|
sanitizeAdminSettings,
|
|
@@ -352,21 +352,6 @@ npm run lint
|
|
|
352
352
|
- **Imports:** Pay special attention to import paths. The project uses ESLint to
|
|
353
353
|
enforce restrictions on relative imports between packages.
|
|
354
354
|
|
|
355
|
-
### Project structure
|
|
356
|
-
|
|
357
|
-
- `packages/`: Contains the individual sub-packages of the project.
|
|
358
|
-
- `a2a-server`: A2A server implementation for the Gemini CLI. (Experimental)
|
|
359
|
-
- `cli/`: The command-line interface.
|
|
360
|
-
- `core/`: The core backend logic for the Gemini CLI.
|
|
361
|
-
- `test-utils` Utilities for creating and cleaning temporary file systems for
|
|
362
|
-
testing.
|
|
363
|
-
- `vscode-ide-companion/`: The Gemini CLI Companion extension pairs with
|
|
364
|
-
Gemini CLI.
|
|
365
|
-
- `docs/`: Contains all project documentation.
|
|
366
|
-
- `scripts/`: Utility scripts for building, testing, and development tasks.
|
|
367
|
-
|
|
368
|
-
For more detailed architecture, see `docs/architecture.md`.
|
|
369
|
-
|
|
370
355
|
### Debugging
|
|
371
356
|
|
|
372
357
|
#### VS Code
|
|
@@ -106,6 +106,67 @@ organization.
|
|
|
106
106
|
ensures users maintain final control over which permitted servers are actually
|
|
107
107
|
active in their environment.
|
|
108
108
|
|
|
109
|
+
#### Required MCP Servers (preview)
|
|
110
|
+
|
|
111
|
+
**Default**: empty
|
|
112
|
+
|
|
113
|
+
Allows administrators to define MCP servers that are **always injected** into
|
|
114
|
+
the user's environment. Unlike the allowlist (which filters user-configured
|
|
115
|
+
servers), required servers are automatically added regardless of the user's
|
|
116
|
+
local configuration.
|
|
117
|
+
|
|
118
|
+
**Required Servers Format:**
|
|
119
|
+
|
|
120
|
+
```json
|
|
121
|
+
{
|
|
122
|
+
"requiredMcpServers": {
|
|
123
|
+
"corp-compliance-tool": {
|
|
124
|
+
"url": "https://mcp.corp/compliance",
|
|
125
|
+
"type": "http",
|
|
126
|
+
"trust": true,
|
|
127
|
+
"description": "Corporate compliance tool"
|
|
128
|
+
},
|
|
129
|
+
"internal-registry": {
|
|
130
|
+
"url": "https://registry.corp/mcp",
|
|
131
|
+
"type": "sse",
|
|
132
|
+
"authProviderType": "google_credentials",
|
|
133
|
+
"oauth": {
|
|
134
|
+
"scopes": ["https://www.googleapis.com/auth/scope"]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**Supported Fields:**
|
|
142
|
+
|
|
143
|
+
- `url`: (Required) The full URL of the MCP server endpoint.
|
|
144
|
+
- `type`: (Required) The connection type (`sse` or `http`).
|
|
145
|
+
- `trust`: (Optional) If set to `true`, tool execution will not require user
|
|
146
|
+
approval. Defaults to `true` for required servers.
|
|
147
|
+
- `description`: (Optional) Human-readable description of the server.
|
|
148
|
+
- `authProviderType`: (Optional) Authentication provider (`dynamic_discovery`,
|
|
149
|
+
`google_credentials`, or `service_account_impersonation`).
|
|
150
|
+
- `oauth`: (Optional) OAuth configuration including `scopes`, `clientId`, and
|
|
151
|
+
`clientSecret`.
|
|
152
|
+
- `targetAudience`: (Optional) OAuth target audience for service-to-service
|
|
153
|
+
auth.
|
|
154
|
+
- `targetServiceAccount`: (Optional) Service account email to impersonate.
|
|
155
|
+
- `headers`: (Optional) Additional HTTP headers to send with requests.
|
|
156
|
+
- `includeTools` / `excludeTools`: (Optional) Tool filtering lists.
|
|
157
|
+
- `timeout`: (Optional) Timeout in milliseconds for MCP requests.
|
|
158
|
+
|
|
159
|
+
**Client Enforcement Logic:**
|
|
160
|
+
|
|
161
|
+
- Required servers are injected **after** allowlist filtering, so they are
|
|
162
|
+
always available even if the allowlist is active.
|
|
163
|
+
- If a required server has the **same name** as a locally configured server, the
|
|
164
|
+
admin configuration **completely overrides** the local one.
|
|
165
|
+
- Required servers only support remote transports (`sse`, `http`). Local
|
|
166
|
+
execution fields (`command`, `args`, `env`, `cwd`) are not supported.
|
|
167
|
+
- Required servers can coexist with allowlisted servers — both features work
|
|
168
|
+
independently.
|
|
169
|
+
|
|
109
170
|
### Unmanaged Capabilities
|
|
110
171
|
|
|
111
172
|
**Enabled/Disabled** | Default: disabled
|
|
@@ -18,6 +18,17 @@ on GitHub.
|
|
|
18
18
|
| [Preview](preview.md) | Experimental features ready for early feedback. |
|
|
19
19
|
| [Stable](latest.md) | Stable, recommended for general use. |
|
|
20
20
|
|
|
21
|
+
## Announcements: v0.34.0 - 2026-03-17
|
|
22
|
+
|
|
23
|
+
- **Plan Mode Enabled by Default:** Plan Mode is now enabled by default to help
|
|
24
|
+
you break down complex tasks and execute them systematically
|
|
25
|
+
([#21713](https://github.com/google-gemini/gemini-cli/pull/21713) by @jerop).
|
|
26
|
+
- **Sandboxing Enhancements:** We've added native gVisor (runsc) and
|
|
27
|
+
experimental LXC container sandboxing support for safer execution environments
|
|
28
|
+
([#21062](https://github.com/google-gemini/gemini-cli/pull/21062) by
|
|
29
|
+
@Zheyuan-Lin, [#20735](https://github.com/google-gemini/gemini-cli/pull/20735)
|
|
30
|
+
by @h30s).
|
|
31
|
+
|
|
21
32
|
## Announcements: v0.33.0 - 2026-03-11
|
|
22
33
|
|
|
23
34
|
- **Agent Architecture Enhancements:** Introduced HTTP authentication for A2A
|