@google/gemini-cli 0.39.0-preview.2 → 0.39.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.
- package/bundle/{chunk-RTX4LTWK.js → chunk-APBWRLCM.js} +1590 -6638
- package/bundle/{chunk-3R2FLB3Z.js → chunk-BEUOMVKF.js} +1587 -6636
- package/bundle/{chunk-67TFD6HC.js → chunk-FNPZLVJU.js} +16 -0
- package/bundle/{chunk-OXCH4FS3.js → chunk-GDRLBWZL.js} +3885 -2280
- package/bundle/{chunk-AZ7QQWNX.js → chunk-GRNHS2XR.js} +2 -2
- package/bundle/{chunk-45GIY5RT.js → chunk-N6R5LJKJ.js} +2 -2
- package/bundle/{chunk-GX4YOB7T.js → chunk-QPDKVNK5.js} +1590 -6638
- package/bundle/{chunk-QM5IP3NK.js → chunk-R32ABRMT.js} +16 -0
- package/bundle/{chunk-N3GUGFOL.js → chunk-RNWNACRD.js} +1590 -6638
- package/bundle/{chunk-QC6EGBZW.js → chunk-RVSGPQMZ.js} +2 -2
- package/bundle/{chunk-4UUOHXDW.js → chunk-UGFPG7AM.js} +3885 -2280
- package/bundle/{chunk-5J5LWISO.js → chunk-UIBQS45C.js} +3885 -2280
- package/bundle/{chunk-TKGFTY3B.js → chunk-WFCK2Z32.js} +3916 -2286
- package/bundle/{chunk-SS4CWRZ5.js → chunk-ZIXTYG56.js} +2 -2
- package/bundle/{cleanup-3EICKDDN.js → cleanup-DORKD3KW.js} +3 -3
- package/bundle/{cleanup-4SLYOL44.js → cleanup-ROCPAQIR.js} +3 -3
- package/bundle/{cleanup-6N6E742H.js → cleanup-RV4C23S4.js} +3 -3
- package/bundle/{cleanup-OG2MXKZ7.js → cleanup-VFR4VRPU.js} +3 -3
- package/bundle/{core-KLYK3V6Z.js → core-NHADWRAT.js} +28 -2
- package/bundle/{devtoolsService-FS7WXGBF.js → devtoolsService-65SKYXJR.js} +3 -3
- package/bundle/{devtoolsService-X4577PYZ.js → devtoolsService-6GKOMHGW.js} +3 -3
- package/bundle/{devtoolsService-K4DENTYF.js → devtoolsService-OIMHTGLW.js} +3 -3
- package/bundle/{devtoolsService-RLXZWLDT.js → devtoolsService-XJQQUBHU.js} +3 -3
- package/bundle/{dist-5ET5G5PC.js → dist-2DBCGLDI.js} +28 -2
- package/bundle/{dist-DQVXGLSO.js → dist-7UL5MZ3N.js} +28 -2
- package/bundle/{dist-P4XAO4SC.js → dist-FMEYWTZB.js} +28 -2
- package/bundle/docs/cli/cli-reference.md +1 -0
- package/bundle/docs/cli/trusted-folders.md +28 -0
- package/bundle/docs/reference/configuration.md +14 -0
- package/bundle/{gemini-6GWCDHXK.js → gemini-APY42TPN.js} +63 -19
- package/bundle/{gemini-FLGPH5GJ.js → gemini-ASA6UVNB.js} +61 -18
- package/bundle/{gemini-NBKLSVA3.js → gemini-JN2NUSDI.js} +63 -19
- package/bundle/{gemini-YOFQ5KF4.js → gemini-ZVQNZBQE.js} +63 -19
- package/bundle/gemini.js +3 -3
- package/bundle/{interactiveCli-AGSLCKNH.js → interactiveCli-7OEI5K4E.js} +15 -165
- package/bundle/{interactiveCli-NAPN3E2K.js → interactiveCli-F6YUYJT5.js} +28 -177
- package/bundle/{interactiveCli-TCZBSTKU.js → interactiveCli-MSV2JUI2.js} +28 -177
- package/bundle/{interactiveCli-H3NLGP7Z.js → interactiveCli-WY7NQZAW.js} +28 -177
- package/bundle/{memoryDiscovery-MYQ3ZWKM.js → memoryDiscovery-OGUXPAKW.js} +1 -1
- package/bundle/{memoryDiscovery-U3XUU4QY.js → memoryDiscovery-OJZ52WPE.js} +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-CWUR5RGE.js → oauth2-provider-5GKHTO3W.js} +2 -2
- package/bundle/{oauth2-provider-YKYTKUWD.js → oauth2-provider-J42P6NQU.js} +2 -2
- package/bundle/{oauth2-provider-EA452S4C.js → oauth2-provider-MJYS4GHA.js} +2 -2
- package/bundle/{oauth2-provider-LV6VPYTU.js → oauth2-provider-UI5C6WYR.js} +2 -2
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -563,6 +570,7 @@ import {
|
|
|
563
570
|
isTmux,
|
|
564
571
|
isToolActivityError,
|
|
565
572
|
isToolCallResponseInfo,
|
|
573
|
+
isTrustLevel,
|
|
566
574
|
isUserActive,
|
|
567
575
|
isUserVisibleHook,
|
|
568
576
|
isValidNonThoughtTextPart,
|
|
@@ -582,6 +590,7 @@ import {
|
|
|
582
590
|
loadPoliciesFromToml,
|
|
583
591
|
loadSkillFromFile,
|
|
584
592
|
loadSkillsFromDir,
|
|
593
|
+
loadTrustedFolders,
|
|
585
594
|
loadWasmBinary,
|
|
586
595
|
logApiError,
|
|
587
596
|
logApiRequest,
|
|
@@ -688,6 +697,7 @@ import {
|
|
|
688
697
|
resetBrowserSession,
|
|
689
698
|
resetEncodingCache,
|
|
690
699
|
resetOauthClientForTesting,
|
|
700
|
+
resetTrustedFoldersForTesting,
|
|
691
701
|
resetUserDataCacheForTesting,
|
|
692
702
|
resetVersionCache,
|
|
693
703
|
resolveAndValidatePlanPath,
|
|
@@ -706,6 +716,7 @@ import {
|
|
|
706
716
|
sanitizeOutput,
|
|
707
717
|
saveApiKey,
|
|
708
718
|
saveTruncatedToolOutput,
|
|
719
|
+
saveTrustedFolders,
|
|
709
720
|
scheduleAgentTools,
|
|
710
721
|
serializeTerminalToObject,
|
|
711
722
|
setGlobalProxy,
|
|
@@ -751,7 +762,7 @@ import {
|
|
|
751
762
|
wrapInAccountChooser,
|
|
752
763
|
writeToStderr,
|
|
753
764
|
writeToStdout
|
|
754
|
-
} from "./chunk-
|
|
765
|
+
} from "./chunk-UIBQS45C.js";
|
|
755
766
|
import {
|
|
756
767
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
757
768
|
AGENT_TOOL_NAME,
|
|
@@ -813,6 +824,7 @@ import {
|
|
|
813
824
|
FatalSandboxError,
|
|
814
825
|
FatalToolExecutionError,
|
|
815
826
|
FatalTurnLimitedError,
|
|
827
|
+
FatalUntrustedWorkspaceError,
|
|
816
828
|
ForbiddenError,
|
|
817
829
|
GEMINI_DIR,
|
|
818
830
|
GEMINI_IGNORE_FILE_NAME,
|
|
@@ -909,6 +921,7 @@ import {
|
|
|
909
921
|
TRACKER_LIST_TASKS_TOOL_NAME,
|
|
910
922
|
TRACKER_UPDATE_TASK_TOOL_NAME,
|
|
911
923
|
TRACKER_VISUALIZE_TOOL_NAME,
|
|
924
|
+
TRUSTED_FOLDERS_FILENAME,
|
|
912
925
|
ToolConfirmationOutcome,
|
|
913
926
|
ToolErrorType,
|
|
914
927
|
UPDATE_TOPIC_DISPLAY_NAME,
|
|
@@ -999,7 +1012,7 @@ import {
|
|
|
999
1012
|
toFriendlyError,
|
|
1000
1013
|
toPathKey,
|
|
1001
1014
|
unescapePath
|
|
1002
|
-
} from "./chunk-
|
|
1015
|
+
} from "./chunk-FNPZLVJU.js";
|
|
1003
1016
|
import "./chunk-664ZODQF.js";
|
|
1004
1017
|
import "./chunk-RJTRUG2J.js";
|
|
1005
1018
|
import {
|
|
@@ -1068,6 +1081,8 @@ export {
|
|
|
1068
1081
|
COMMON_IGNORE_PATTERNS,
|
|
1069
1082
|
COMPLETE_TASK_DISPLAY_NAME,
|
|
1070
1083
|
COMPLETE_TASK_TOOL_NAME,
|
|
1084
|
+
CONFIRMATION_REQUIRED_PRIORITY,
|
|
1085
|
+
CORE_TOOLS_FLAG_PRIORITY,
|
|
1071
1086
|
CacheService,
|
|
1072
1087
|
CanceledError,
|
|
1073
1088
|
ChangeAuthRequestedError,
|
|
@@ -1169,6 +1184,7 @@ export {
|
|
|
1169
1184
|
FatalSandboxError,
|
|
1170
1185
|
FatalToolExecutionError,
|
|
1171
1186
|
FatalTurnLimitedError,
|
|
1187
|
+
FatalUntrustedWorkspaceError,
|
|
1172
1188
|
FetchAdminControlsResponseSchema,
|
|
1173
1189
|
FetchError,
|
|
1174
1190
|
FileDiscoveryService,
|
|
@@ -1289,6 +1305,7 @@ export {
|
|
|
1289
1305
|
LegacyAgentProtocol,
|
|
1290
1306
|
LegacyAgentSession,
|
|
1291
1307
|
LlmRole,
|
|
1308
|
+
LoadedTrustedFolders,
|
|
1292
1309
|
LocalAgentExecutor,
|
|
1293
1310
|
LocalSandboxManager,
|
|
1294
1311
|
Logger,
|
|
@@ -1379,6 +1396,7 @@ export {
|
|
|
1379
1396
|
READ_MANY_PARAM_RECURSIVE,
|
|
1380
1397
|
READ_MANY_PARAM_USE_DEFAULT_EXCLUDES,
|
|
1381
1398
|
READ_ONLY_KINDS,
|
|
1399
|
+
REDIRECTION_NAMES,
|
|
1382
1400
|
REFERENCE_CONTENT_END,
|
|
1383
1401
|
REFERENCE_CONTENT_START,
|
|
1384
1402
|
ROOT_SCHEDULER_ID,
|
|
@@ -1446,6 +1464,7 @@ export {
|
|
|
1446
1464
|
TRACKER_LIST_TASKS_TOOL_NAME,
|
|
1447
1465
|
TRACKER_UPDATE_TASK_TOOL_NAME,
|
|
1448
1466
|
TRACKER_VISUALIZE_TOOL_NAME,
|
|
1467
|
+
TRUSTED_FOLDERS_FILENAME,
|
|
1449
1468
|
TRUSTED_MCP_SERVER_PRIORITY,
|
|
1450
1469
|
TaskStatus,
|
|
1451
1470
|
TaskStatusSchema,
|
|
@@ -1469,6 +1488,7 @@ export {
|
|
|
1469
1488
|
TrackerTaskSchema,
|
|
1470
1489
|
TrackerUpdateTaskTool,
|
|
1471
1490
|
TrackerVisualizeTool,
|
|
1491
|
+
TrustLevel,
|
|
1472
1492
|
Turn,
|
|
1473
1493
|
UPDATE_TOPIC_DISPLAY_NAME,
|
|
1474
1494
|
UPDATE_TOPIC_TOOL_NAME,
|
|
@@ -1527,6 +1547,7 @@ export {
|
|
|
1527
1547
|
canUseRipgrep,
|
|
1528
1548
|
categorizeAndConcatenate,
|
|
1529
1549
|
checkExhaustive,
|
|
1550
|
+
checkPathTrust,
|
|
1530
1551
|
checkPolicy,
|
|
1531
1552
|
classifyGoogleError,
|
|
1532
1553
|
cleanupWorktree,
|
|
@@ -1534,6 +1555,7 @@ export {
|
|
|
1534
1555
|
clearCachedCredentialFile,
|
|
1535
1556
|
clearEmittedPolicyWarnings,
|
|
1536
1557
|
clearOauthClientCache,
|
|
1558
|
+
clearRealPathCacheForTesting,
|
|
1537
1559
|
computeModelAddedAndRemovedLines,
|
|
1538
1560
|
concatenateInstructions,
|
|
1539
1561
|
connectAndDiscover,
|
|
@@ -1795,6 +1817,7 @@ export {
|
|
|
1795
1817
|
isTool,
|
|
1796
1818
|
isToolActivityError,
|
|
1797
1819
|
isToolCallResponseInfo,
|
|
1820
|
+
isTrustLevel,
|
|
1798
1821
|
isUserActive,
|
|
1799
1822
|
isUserVisibleHook,
|
|
1800
1823
|
isValidNonThoughtTextPart,
|
|
@@ -1819,6 +1842,7 @@ export {
|
|
|
1819
1842
|
loadServerHierarchicalMemory,
|
|
1820
1843
|
loadSkillFromFile,
|
|
1821
1844
|
loadSkillsFromDir,
|
|
1845
|
+
loadTrustedFolders,
|
|
1822
1846
|
loadWasmBinary,
|
|
1823
1847
|
logApiError,
|
|
1824
1848
|
logApiRequest,
|
|
@@ -1931,6 +1955,7 @@ export {
|
|
|
1931
1955
|
resetBrowserSession,
|
|
1932
1956
|
resetEncodingCache,
|
|
1933
1957
|
resetOauthClientForTesting,
|
|
1958
|
+
resetTrustedFoldersForTesting,
|
|
1934
1959
|
resetUserDataCacheForTesting,
|
|
1935
1960
|
resetVersionCache,
|
|
1936
1961
|
resolveAndValidatePlanPath,
|
|
@@ -1953,6 +1978,7 @@ export {
|
|
|
1953
1978
|
sanitizeOutput,
|
|
1954
1979
|
saveApiKey,
|
|
1955
1980
|
saveTruncatedToolOutput,
|
|
1981
|
+
saveTrustedFolders,
|
|
1956
1982
|
scheduleAgentTools,
|
|
1957
1983
|
serializeTerminalToObject,
|
|
1958
1984
|
setGeminiMdFilename,
|
|
@@ -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,
|
|
@@ -563,6 +570,7 @@ import {
|
|
|
563
570
|
isTmux,
|
|
564
571
|
isToolActivityError,
|
|
565
572
|
isToolCallResponseInfo,
|
|
573
|
+
isTrustLevel,
|
|
566
574
|
isUserActive,
|
|
567
575
|
isUserVisibleHook,
|
|
568
576
|
isValidNonThoughtTextPart,
|
|
@@ -582,6 +590,7 @@ import {
|
|
|
582
590
|
loadPoliciesFromToml,
|
|
583
591
|
loadSkillFromFile,
|
|
584
592
|
loadSkillsFromDir,
|
|
593
|
+
loadTrustedFolders,
|
|
585
594
|
loadWasmBinary,
|
|
586
595
|
logApiError,
|
|
587
596
|
logApiRequest,
|
|
@@ -688,6 +697,7 @@ import {
|
|
|
688
697
|
resetBrowserSession,
|
|
689
698
|
resetEncodingCache,
|
|
690
699
|
resetOauthClientForTesting,
|
|
700
|
+
resetTrustedFoldersForTesting,
|
|
691
701
|
resetUserDataCacheForTesting,
|
|
692
702
|
resetVersionCache,
|
|
693
703
|
resolveAndValidatePlanPath,
|
|
@@ -706,6 +716,7 @@ import {
|
|
|
706
716
|
sanitizeOutput,
|
|
707
717
|
saveApiKey,
|
|
708
718
|
saveTruncatedToolOutput,
|
|
719
|
+
saveTrustedFolders,
|
|
709
720
|
scheduleAgentTools,
|
|
710
721
|
serializeTerminalToObject,
|
|
711
722
|
setGlobalProxy,
|
|
@@ -751,7 +762,7 @@ import {
|
|
|
751
762
|
wrapInAccountChooser,
|
|
752
763
|
writeToStderr,
|
|
753
764
|
writeToStdout
|
|
754
|
-
} from "./chunk-
|
|
765
|
+
} from "./chunk-GDRLBWZL.js";
|
|
755
766
|
import {
|
|
756
767
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
757
768
|
AGENT_TOOL_NAME,
|
|
@@ -813,6 +824,7 @@ import {
|
|
|
813
824
|
FatalSandboxError,
|
|
814
825
|
FatalToolExecutionError,
|
|
815
826
|
FatalTurnLimitedError,
|
|
827
|
+
FatalUntrustedWorkspaceError,
|
|
816
828
|
ForbiddenError,
|
|
817
829
|
GEMINI_DIR,
|
|
818
830
|
GEMINI_IGNORE_FILE_NAME,
|
|
@@ -909,6 +921,7 @@ import {
|
|
|
909
921
|
TRACKER_LIST_TASKS_TOOL_NAME,
|
|
910
922
|
TRACKER_UPDATE_TASK_TOOL_NAME,
|
|
911
923
|
TRACKER_VISUALIZE_TOOL_NAME,
|
|
924
|
+
TRUSTED_FOLDERS_FILENAME,
|
|
912
925
|
ToolConfirmationOutcome,
|
|
913
926
|
ToolErrorType,
|
|
914
927
|
UPDATE_TOPIC_DISPLAY_NAME,
|
|
@@ -999,7 +1012,7 @@ import {
|
|
|
999
1012
|
toFriendlyError,
|
|
1000
1013
|
toPathKey,
|
|
1001
1014
|
unescapePath
|
|
1002
|
-
} from "./chunk-
|
|
1015
|
+
} from "./chunk-FNPZLVJU.js";
|
|
1003
1016
|
import "./chunk-664ZODQF.js";
|
|
1004
1017
|
import "./chunk-RJTRUG2J.js";
|
|
1005
1018
|
import {
|
|
@@ -1068,6 +1081,8 @@ export {
|
|
|
1068
1081
|
COMMON_IGNORE_PATTERNS,
|
|
1069
1082
|
COMPLETE_TASK_DISPLAY_NAME,
|
|
1070
1083
|
COMPLETE_TASK_TOOL_NAME,
|
|
1084
|
+
CONFIRMATION_REQUIRED_PRIORITY,
|
|
1085
|
+
CORE_TOOLS_FLAG_PRIORITY,
|
|
1071
1086
|
CacheService,
|
|
1072
1087
|
CanceledError,
|
|
1073
1088
|
ChangeAuthRequestedError,
|
|
@@ -1169,6 +1184,7 @@ export {
|
|
|
1169
1184
|
FatalSandboxError,
|
|
1170
1185
|
FatalToolExecutionError,
|
|
1171
1186
|
FatalTurnLimitedError,
|
|
1187
|
+
FatalUntrustedWorkspaceError,
|
|
1172
1188
|
FetchAdminControlsResponseSchema,
|
|
1173
1189
|
FetchError,
|
|
1174
1190
|
FileDiscoveryService,
|
|
@@ -1289,6 +1305,7 @@ export {
|
|
|
1289
1305
|
LegacyAgentProtocol,
|
|
1290
1306
|
LegacyAgentSession,
|
|
1291
1307
|
LlmRole,
|
|
1308
|
+
LoadedTrustedFolders,
|
|
1292
1309
|
LocalAgentExecutor,
|
|
1293
1310
|
LocalSandboxManager,
|
|
1294
1311
|
Logger,
|
|
@@ -1379,6 +1396,7 @@ export {
|
|
|
1379
1396
|
READ_MANY_PARAM_RECURSIVE,
|
|
1380
1397
|
READ_MANY_PARAM_USE_DEFAULT_EXCLUDES,
|
|
1381
1398
|
READ_ONLY_KINDS,
|
|
1399
|
+
REDIRECTION_NAMES,
|
|
1382
1400
|
REFERENCE_CONTENT_END,
|
|
1383
1401
|
REFERENCE_CONTENT_START,
|
|
1384
1402
|
ROOT_SCHEDULER_ID,
|
|
@@ -1446,6 +1464,7 @@ export {
|
|
|
1446
1464
|
TRACKER_LIST_TASKS_TOOL_NAME,
|
|
1447
1465
|
TRACKER_UPDATE_TASK_TOOL_NAME,
|
|
1448
1466
|
TRACKER_VISUALIZE_TOOL_NAME,
|
|
1467
|
+
TRUSTED_FOLDERS_FILENAME,
|
|
1449
1468
|
TRUSTED_MCP_SERVER_PRIORITY,
|
|
1450
1469
|
TaskStatus,
|
|
1451
1470
|
TaskStatusSchema,
|
|
@@ -1469,6 +1488,7 @@ export {
|
|
|
1469
1488
|
TrackerTaskSchema,
|
|
1470
1489
|
TrackerUpdateTaskTool,
|
|
1471
1490
|
TrackerVisualizeTool,
|
|
1491
|
+
TrustLevel,
|
|
1472
1492
|
Turn,
|
|
1473
1493
|
UPDATE_TOPIC_DISPLAY_NAME,
|
|
1474
1494
|
UPDATE_TOPIC_TOOL_NAME,
|
|
@@ -1527,6 +1547,7 @@ export {
|
|
|
1527
1547
|
canUseRipgrep,
|
|
1528
1548
|
categorizeAndConcatenate,
|
|
1529
1549
|
checkExhaustive,
|
|
1550
|
+
checkPathTrust,
|
|
1530
1551
|
checkPolicy,
|
|
1531
1552
|
classifyGoogleError,
|
|
1532
1553
|
cleanupWorktree,
|
|
@@ -1534,6 +1555,7 @@ export {
|
|
|
1534
1555
|
clearCachedCredentialFile,
|
|
1535
1556
|
clearEmittedPolicyWarnings,
|
|
1536
1557
|
clearOauthClientCache,
|
|
1558
|
+
clearRealPathCacheForTesting,
|
|
1537
1559
|
computeModelAddedAndRemovedLines,
|
|
1538
1560
|
concatenateInstructions,
|
|
1539
1561
|
connectAndDiscover,
|
|
@@ -1795,6 +1817,7 @@ export {
|
|
|
1795
1817
|
isTool,
|
|
1796
1818
|
isToolActivityError,
|
|
1797
1819
|
isToolCallResponseInfo,
|
|
1820
|
+
isTrustLevel,
|
|
1798
1821
|
isUserActive,
|
|
1799
1822
|
isUserVisibleHook,
|
|
1800
1823
|
isValidNonThoughtTextPart,
|
|
@@ -1819,6 +1842,7 @@ export {
|
|
|
1819
1842
|
loadServerHierarchicalMemory,
|
|
1820
1843
|
loadSkillFromFile,
|
|
1821
1844
|
loadSkillsFromDir,
|
|
1845
|
+
loadTrustedFolders,
|
|
1822
1846
|
loadWasmBinary,
|
|
1823
1847
|
logApiError,
|
|
1824
1848
|
logApiRequest,
|
|
@@ -1931,6 +1955,7 @@ export {
|
|
|
1931
1955
|
resetBrowserSession,
|
|
1932
1956
|
resetEncodingCache,
|
|
1933
1957
|
resetOauthClientForTesting,
|
|
1958
|
+
resetTrustedFoldersForTesting,
|
|
1934
1959
|
resetUserDataCacheForTesting,
|
|
1935
1960
|
resetVersionCache,
|
|
1936
1961
|
resolveAndValidatePlanPath,
|
|
@@ -1953,6 +1978,7 @@ export {
|
|
|
1953
1978
|
sanitizeOutput,
|
|
1954
1979
|
saveApiKey,
|
|
1955
1980
|
saveTruncatedToolOutput,
|
|
1981
|
+
saveTrustedFolders,
|
|
1956
1982
|
scheduleAgentTools,
|
|
1957
1983
|
serializeTerminalToObject,
|
|
1958
1984
|
setGeminiMdFilename,
|
|
@@ -52,6 +52,7 @@ These commands are available within the interactive REPL.
|
|
|
52
52
|
| `--prompt-interactive` | `-i` | string | - | Execute prompt and continue in interactive mode |
|
|
53
53
|
| `--worktree` | `-w` | string | - | Start Gemini in a new git worktree. If no name is provided, one is generated automatically. Requires `experimental.worktrees: true` in settings. |
|
|
54
54
|
| `--sandbox` | `-s` | boolean | `false` | Run in a sandboxed environment for safer execution |
|
|
55
|
+
| `--skip-trust` | - | boolean | `false` | Trust the current workspace for this session, skipping the folder trust check. |
|
|
55
56
|
| `--approval-mode` | - | string | `default` | Approval mode for tool execution. Choices: `default`, `auto_edit`, `yolo`, `plan` |
|
|
56
57
|
| `--yolo` | `-y` | boolean | `false` | **Deprecated.** Auto-approve all actions. Use `--approval-mode=yolo` instead. |
|
|
57
58
|
| `--experimental-acp` | - | boolean | - | Start in ACP (Agent Code Pilot) mode. **Experimental feature.** |
|
|
@@ -100,6 +100,34 @@ protect you. In this mode, the following features are disabled:
|
|
|
100
100
|
Granting trust to a folder unlocks the full functionality of Gemini CLI for that
|
|
101
101
|
workspace.
|
|
102
102
|
|
|
103
|
+
## Headless and automated environments
|
|
104
|
+
|
|
105
|
+
When running Gemini CLI in a headless environment (for example, a CI/CD
|
|
106
|
+
pipeline) where interactive prompts are not possible, the trust dialog cannot be
|
|
107
|
+
displayed. If the folder is untrusted and the Folder Trust feature is enabled,
|
|
108
|
+
the CLI will throw a `FatalUntrustedWorkspaceError` and exit.
|
|
109
|
+
|
|
110
|
+
To proceed in these environments, you can bypass the trust check using one of
|
|
111
|
+
the following methods:
|
|
112
|
+
|
|
113
|
+
- **Command-line flag:** Run the CLI with the `--skip-trust` flag.
|
|
114
|
+
- **Environment variable:** Set the `GEMINI_CLI_TRUST_WORKSPACE=true`
|
|
115
|
+
environment variable.
|
|
116
|
+
|
|
117
|
+
These methods will trust the current workspace for the duration of the session
|
|
118
|
+
without prompting.
|
|
119
|
+
|
|
120
|
+
For detailed instructions on managing folder trust within CI/CD workflows,
|
|
121
|
+
review the
|
|
122
|
+
[Gemini CLI trust guidance for GitHub Actions](https://github.com/google-github-actions/run-gemini-cli/blob/main/docs/trust-guidance.md).
|
|
123
|
+
|
|
124
|
+
## Overriding the trust file location
|
|
125
|
+
|
|
126
|
+
By default, trust settings are saved to `~/.gemini/trustedFolders.json`. If you
|
|
127
|
+
need to store this file in a different location, you can set the
|
|
128
|
+
`GEMINI_CLI_TRUSTED_FOLDERS_PATH` environment variable to the desired absolute
|
|
129
|
+
file path.
|
|
130
|
+
|
|
103
131
|
## Managing your trust settings
|
|
104
132
|
|
|
105
133
|
If you need to change a decision or see all your settings, you have a couple of
|
|
@@ -1437,6 +1437,12 @@ their corresponding top-level category object in your `settings.json` file.
|
|
|
1437
1437
|
- **Default:** `undefined`
|
|
1438
1438
|
- **Requires restart:** Yes
|
|
1439
1439
|
|
|
1440
|
+
- **`tools.confirmationRequired`** (array):
|
|
1441
|
+
- **Description:** Tool names that always require user confirmation. Takes
|
|
1442
|
+
precedence over allowed tools and core tool allowlists.
|
|
1443
|
+
- **Default:** `undefined`
|
|
1444
|
+
- **Requires restart:** Yes
|
|
1445
|
+
|
|
1440
1446
|
- **`tools.exclude`** (array):
|
|
1441
1447
|
- **Description:** Tool names to exclude from discovery.
|
|
1442
1448
|
- **Default:** `undefined`
|
|
@@ -2099,6 +2105,14 @@ the `advanced.excludedEnvVars` setting in your `settings.json` file.
|
|
|
2099
2105
|
- Overrides the hardcoded default
|
|
2100
2106
|
- Example: `export GEMINI_MODEL="gemini-3-flash-preview"` (Windows PowerShell:
|
|
2101
2107
|
`$env:GEMINI_MODEL="gemini-3-flash-preview"`)
|
|
2108
|
+
- **`GEMINI_CLI_TRUST_WORKSPACE`**:
|
|
2109
|
+
- If set to `"true"`, trusts the current workspace for the duration of the
|
|
2110
|
+
session, bypassing the folder trust check.
|
|
2111
|
+
- Useful for headless environments (for example, CI/CD pipelines).
|
|
2112
|
+
- **`GEMINI_CLI_TRUSTED_FOLDERS_PATH`**:
|
|
2113
|
+
- Overrides the default location for the `trustedFolders.json` file.
|
|
2114
|
+
- Useful if you want to store this configuration in a custom location instead
|
|
2115
|
+
of the default `~/.gemini/`.
|
|
2102
2116
|
- **`GEMINI_CLI_IDE_PID`**:
|
|
2103
2117
|
- Manually specifies the PID of the IDE process to use for integration. This
|
|
2104
2118
|
is useful when running Gemini CLI in a standalone terminal while still
|