@google/gemini-cli-core 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.
- package/dist/docs/CONTRIBUTING.md +10 -7
- package/dist/docs/assets/theme-tokyonight-dark.png +0 -0
- package/dist/docs/changelogs/index.md +24 -0
- package/dist/docs/changelogs/latest.md +366 -459
- package/dist/docs/changelogs/preview.md +362 -356
- package/dist/docs/cli/acp-mode.md +126 -0
- package/dist/docs/cli/cli-reference.md +1 -1
- package/dist/docs/cli/notifications.md +5 -5
- package/dist/docs/cli/plan-mode.md +22 -11
- package/dist/docs/cli/sandbox.md +1 -1
- package/dist/docs/cli/settings.md +14 -13
- package/dist/docs/cli/themes.md +5 -0
- package/dist/docs/core/index.md +2 -2
- package/dist/docs/core/subagents.md +134 -23
- package/dist/docs/get-started/gemini-3.md +1 -1
- package/dist/docs/get-started/index.md +127 -1
- package/dist/docs/ide-integration/index.md +99 -24
- package/dist/docs/index.md +0 -2
- package/dist/docs/redirects.json +1 -0
- package/dist/docs/reference/commands.md +1 -3
- package/dist/docs/reference/configuration.md +182 -91
- package/dist/docs/reference/keyboard-shortcuts.md +14 -6
- package/dist/docs/reference/policy-engine.md +36 -31
- package/dist/docs/reference/tools.md +56 -23
- package/dist/docs/resources/quota-and-pricing.md +23 -9
- package/dist/docs/sidebar.json +11 -4
- package/dist/docs/tools/planning.md +6 -4
- package/dist/google-gemini-cli-core-0.37.0-preview.0.tgz +0 -0
- package/dist/src/agents/agentLoader.d.ts +12 -12
- package/dist/src/agents/agentLoader.js +1 -0
- package/dist/src/agents/agentLoader.js.map +1 -1
- package/dist/src/agents/browser/automationOverlay.js +2 -10
- package/dist/src/agents/browser/automationOverlay.js.map +1 -1
- package/dist/src/agents/browser/browserAgentDefinition.js +10 -3
- package/dist/src/agents/browser/browserAgentDefinition.js.map +1 -1
- package/dist/src/agents/browser/browserAgentFactory.d.ts +4 -4
- package/dist/src/agents/browser/browserAgentFactory.js +15 -29
- package/dist/src/agents/browser/browserAgentFactory.js.map +1 -1
- package/dist/src/agents/browser/browserAgentFactory.test.js +41 -24
- package/dist/src/agents/browser/browserAgentFactory.test.js.map +1 -1
- package/dist/src/agents/browser/browserAgentInvocation.d.ts +1 -0
- package/dist/src/agents/browser/browserAgentInvocation.js +60 -27
- package/dist/src/agents/browser/browserAgentInvocation.js.map +1 -1
- package/dist/src/agents/browser/browserAgentInvocation.test.js +59 -5
- package/dist/src/agents/browser/browserAgentInvocation.test.js.map +1 -1
- package/dist/src/agents/browser/browserManager.d.ts +51 -8
- package/dist/src/agents/browser/browserManager.js +242 -70
- package/dist/src/agents/browser/browserManager.js.map +1 -1
- package/dist/src/agents/browser/browserManager.test.js +384 -17
- package/dist/src/agents/browser/browserManager.test.js.map +1 -1
- package/dist/src/agents/browser/inputBlocker.d.ts +4 -4
- package/dist/src/agents/browser/inputBlocker.js +8 -18
- package/dist/src/agents/browser/inputBlocker.js.map +1 -1
- package/dist/src/agents/browser/inputBlocker.test.js +31 -3
- package/dist/src/agents/browser/inputBlocker.test.js.map +1 -1
- package/dist/src/agents/browser/mcpToolWrapper.d.ts +1 -1
- package/dist/src/agents/browser/mcpToolWrapper.js +9 -6
- package/dist/src/agents/browser/mcpToolWrapper.js.map +1 -1
- package/dist/src/agents/browser/mcpToolWrapper.test.js +2 -2
- package/dist/src/agents/browser/mcpToolWrapper.test.js.map +1 -1
- package/dist/src/agents/browser/snapshotSuperseder.d.ts +31 -0
- package/dist/src/agents/browser/snapshotSuperseder.js +101 -0
- package/dist/src/agents/browser/snapshotSuperseder.js.map +1 -0
- package/dist/src/agents/browser/snapshotSuperseder.test.js +158 -0
- package/dist/src/agents/browser/snapshotSuperseder.test.js.map +1 -0
- package/dist/src/agents/local-executor.d.ts +4 -0
- package/dist/src/agents/local-executor.js +46 -19
- package/dist/src/agents/local-executor.js.map +1 -1
- package/dist/src/agents/local-executor.test.js +118 -18
- package/dist/src/agents/local-executor.test.js.map +1 -1
- package/dist/src/agents/local-invocation.d.ts +1 -0
- package/dist/src/agents/local-invocation.js +19 -9
- package/dist/src/agents/local-invocation.js.map +1 -1
- package/dist/src/agents/local-invocation.test.js +24 -0
- package/dist/src/agents/local-invocation.test.js.map +1 -1
- package/dist/src/agents/registry.js +16 -1
- package/dist/src/agents/registry.js.map +1 -1
- package/dist/src/agents/registry.test.js +67 -0
- package/dist/src/agents/registry.test.js.map +1 -1
- package/dist/src/agents/types.d.ts +9 -0
- package/dist/src/agents/types.js.map +1 -1
- package/dist/src/code_assist/oauth2.js +8 -3
- package/dist/src/code_assist/oauth2.js.map +1 -1
- package/dist/src/code_assist/oauth2.test.js +57 -0
- package/dist/src/code_assist/oauth2.test.js.map +1 -1
- package/dist/src/code_assist/setup.js +5 -2
- package/dist/src/code_assist/setup.js.map +1 -1
- package/dist/src/code_assist/setup.test.js +27 -1
- package/dist/src/code_assist/setup.test.js.map +1 -1
- package/dist/src/code_assist/types.d.ts +80 -80
- package/dist/src/config/agent-loop-context.d.ts +2 -0
- package/dist/src/config/config.d.ts +81 -16
- package/dist/src/config/config.js +146 -50
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/config.test.js +89 -2
- package/dist/src/config/config.test.js.map +1 -1
- package/dist/src/config/defaultModelConfigs.js +9 -0
- package/dist/src/config/defaultModelConfigs.js.map +1 -1
- package/dist/src/config/memory.d.ts +1 -0
- package/dist/src/config/memory.js +6 -0
- package/dist/src/config/memory.js.map +1 -1
- package/dist/src/config/storage.d.ts +1 -0
- package/dist/src/config/storage.js +4 -0
- package/dist/src/config/storage.js.map +1 -1
- package/dist/src/config/storage.test.js +5 -0
- package/dist/src/config/storage.test.js.map +1 -1
- package/dist/src/config/topicState.d.ts +21 -0
- package/dist/src/config/topicState.js +41 -0
- package/dist/src/config/topicState.js.map +1 -0
- package/dist/src/confirmation-bus/types.d.ts +11 -2
- package/dist/src/confirmation-bus/types.js +2 -0
- package/dist/src/confirmation-bus/types.js.map +1 -1
- package/dist/src/context/agentHistoryProvider.d.ts +45 -0
- package/dist/src/context/agentHistoryProvider.js +298 -0
- package/dist/src/context/agentHistoryProvider.js.map +1 -0
- package/dist/src/context/agentHistoryProvider.test.d.ts +6 -0
- package/dist/src/context/agentHistoryProvider.test.js +394 -0
- package/dist/src/context/agentHistoryProvider.test.js.map +1 -0
- package/dist/src/context/chatCompressionService.js.map +1 -0
- package/dist/src/context/chatCompressionService.test.js.map +1 -0
- package/dist/src/{services → context}/contextManager.d.ts +2 -0
- package/dist/src/{services → context}/contextManager.js +18 -9
- package/dist/src/context/contextManager.js.map +1 -0
- package/dist/src/{services → context}/contextManager.test.js +21 -6
- package/dist/src/context/contextManager.test.js.map +1 -0
- package/dist/src/context/toolDistillationService.d.ts +38 -0
- package/dist/src/context/toolDistillationService.js +170 -0
- package/dist/src/context/toolDistillationService.js.map +1 -0
- package/dist/src/context/toolDistillationService.test.d.ts +6 -0
- package/dist/src/context/toolDistillationService.test.js +83 -0
- package/dist/src/context/toolDistillationService.test.js.map +1 -0
- package/dist/src/{services → context}/toolOutputMaskingService.d.ts +2 -2
- package/dist/src/{services → context}/toolOutputMaskingService.js +7 -7
- package/dist/src/context/toolOutputMaskingService.js.map +1 -0
- package/dist/src/context/toolOutputMaskingService.test.d.ts +6 -0
- package/dist/src/{services → context}/toolOutputMaskingService.test.js +4 -5
- package/dist/src/context/toolOutputMaskingService.test.js.map +1 -0
- package/dist/src/context/truncation.d.ts +26 -0
- package/dist/src/context/truncation.js +102 -0
- package/dist/src/context/truncation.js.map +1 -0
- package/dist/src/core/client.d.ts +3 -1
- package/dist/src/core/client.js +23 -13
- package/dist/src/core/client.js.map +1 -1
- package/dist/src/core/client.test.js +29 -34
- package/dist/src/core/client.test.js.map +1 -1
- package/dist/src/core/contentGenerator.d.ts +0 -1
- package/dist/src/core/contentGenerator.js +2 -28
- package/dist/src/core/contentGenerator.js.map +1 -1
- package/dist/src/core/contentGenerator.test.js +1 -101
- package/dist/src/core/contentGenerator.test.js.map +1 -1
- package/dist/src/core/geminiChat.js +4 -5
- package/dist/src/core/geminiChat.js.map +1 -1
- package/dist/src/core/geminiChat.test.js +71 -18
- package/dist/src/core/geminiChat.test.js.map +1 -1
- package/dist/src/core/prompts-substitution.test.js +5 -0
- package/dist/src/core/prompts-substitution.test.js.map +1 -1
- package/dist/src/core/prompts.test.js +3 -0
- package/dist/src/core/prompts.test.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +2 -2
- package/dist/src/generated/git-commit.js +2 -2
- package/dist/src/generated/git-commit.js.map +1 -1
- package/dist/src/index.d.ts +7 -3
- package/dist/src/index.js +9 -5
- package/dist/src/index.js.map +1 -1
- package/dist/src/policy/config.d.ts +1 -1
- package/dist/src/policy/config.js +61 -24
- package/dist/src/policy/config.js.map +1 -1
- package/dist/src/policy/persistence.test.js +42 -0
- package/dist/src/policy/persistence.test.js.map +1 -1
- package/dist/src/policy/policies/discovered.toml +7 -0
- package/dist/src/policy/policies/non-interactive.toml +7 -0
- package/dist/src/policy/policies/plan.toml +25 -0
- package/dist/src/policy/policies/read-only.toml +6 -0
- package/dist/src/policy/policies/sandbox-default.toml +3 -2
- package/dist/src/policy/policies/write.toml +21 -0
- package/dist/src/policy/policies/yolo.toml +1 -1
- package/dist/src/policy/policy-engine.d.ts +2 -4
- package/dist/src/policy/policy-engine.js +24 -37
- package/dist/src/policy/policy-engine.js.map +1 -1
- package/dist/src/policy/policy-engine.test.js +107 -29
- package/dist/src/policy/policy-engine.test.js.map +1 -1
- package/dist/src/policy/topic-policy.test.d.ts +6 -0
- package/dist/src/policy/topic-policy.test.js +48 -0
- package/dist/src/policy/topic-policy.test.js.map +1 -0
- package/dist/src/policy/types.d.ts +9 -6
- package/dist/src/policy/types.js +11 -0
- package/dist/src/policy/types.js.map +1 -1
- package/dist/src/prompts/promptProvider.js +20 -4
- package/dist/src/prompts/promptProvider.js.map +1 -1
- package/dist/src/prompts/promptProvider.test.js +84 -1
- package/dist/src/prompts/promptProvider.test.js.map +1 -1
- package/dist/src/prompts/snippets-memory-manager.test.js +1 -1
- package/dist/src/prompts/snippets-memory-manager.test.js.map +1 -1
- package/dist/src/prompts/snippets.d.ts +3 -4
- package/dist/src/prompts/snippets.js +33 -51
- package/dist/src/prompts/snippets.js.map +1 -1
- package/dist/src/prompts/snippets.legacy.d.ts +6 -4
- package/dist/src/prompts/snippets.legacy.js +32 -7
- package/dist/src/prompts/snippets.legacy.js.map +1 -1
- package/dist/src/sandbox/linux/LinuxSandboxManager.d.ts +11 -1
- package/dist/src/sandbox/linux/LinuxSandboxManager.js +261 -27
- package/dist/src/sandbox/linux/LinuxSandboxManager.js.map +1 -1
- package/dist/src/sandbox/linux/LinuxSandboxManager.test.js +430 -125
- package/dist/src/sandbox/linux/LinuxSandboxManager.test.js.map +1 -1
- package/dist/src/sandbox/macos/MacOsSandboxManager.d.ts +7 -22
- package/dist/src/sandbox/macos/MacOsSandboxManager.js +58 -57
- package/dist/src/sandbox/macos/MacOsSandboxManager.js.map +1 -1
- package/dist/src/sandbox/macos/MacOsSandboxManager.test.js +148 -103
- package/dist/src/sandbox/macos/MacOsSandboxManager.test.js.map +1 -1
- package/dist/src/sandbox/macos/baseProfile.d.ts +1 -1
- package/dist/src/sandbox/macos/baseProfile.js +0 -6
- package/dist/src/sandbox/macos/baseProfile.js.map +1 -1
- package/dist/src/sandbox/macos/seatbeltArgsBuilder.d.ts +10 -10
- package/dist/src/sandbox/macos/seatbeltArgsBuilder.js +80 -92
- package/dist/src/sandbox/macos/seatbeltArgsBuilder.js.map +1 -1
- package/dist/src/sandbox/macos/seatbeltArgsBuilder.test.js +135 -99
- package/dist/src/sandbox/macos/seatbeltArgsBuilder.test.js.map +1 -1
- package/dist/src/sandbox/{macos → utils}/commandSafety.d.ts +11 -0
- package/dist/src/sandbox/{macos → utils}/commandSafety.js +47 -14
- package/dist/src/sandbox/utils/commandSafety.js.map +1 -0
- package/dist/src/sandbox/utils/commandUtils.d.ts +9 -0
- package/dist/src/sandbox/utils/commandUtils.js +57 -0
- package/dist/src/sandbox/utils/commandUtils.js.map +1 -0
- package/dist/src/sandbox/utils/fsUtils.d.ts +11 -0
- package/dist/src/sandbox/utils/fsUtils.js +82 -0
- package/dist/src/sandbox/utils/fsUtils.js.map +1 -0
- package/dist/src/sandbox/utils/sandboxDenialUtils.d.ts +12 -0
- package/dist/src/sandbox/utils/sandboxDenialUtils.js +68 -0
- package/dist/src/sandbox/utils/sandboxDenialUtils.js.map +1 -0
- package/dist/src/sandbox/utils/sandboxDenialUtils.test.d.ts +6 -0
- package/dist/src/sandbox/utils/sandboxDenialUtils.test.js +37 -0
- package/dist/src/sandbox/utils/sandboxDenialUtils.test.js.map +1 -0
- package/dist/src/sandbox/utils/sandboxReadWriteUtils.d.ts +5 -0
- package/dist/src/sandbox/utils/sandboxReadWriteUtils.js +60 -0
- package/dist/src/sandbox/utils/sandboxReadWriteUtils.js.map +1 -0
- package/dist/src/sandbox/windows/GeminiSandbox.cs +257 -216
- package/dist/src/sandbox/windows/WindowsSandboxManager.d.ts +12 -2
- package/dist/src/sandbox/windows/WindowsSandboxManager.js +250 -38
- package/dist/src/sandbox/windows/WindowsSandboxManager.js.map +1 -1
- package/dist/src/sandbox/windows/WindowsSandboxManager.test.js +326 -9
- package/dist/src/sandbox/windows/WindowsSandboxManager.test.js.map +1 -1
- package/dist/src/sandbox/windows/commandSafety.d.ts +19 -0
- package/dist/src/sandbox/windows/commandSafety.js +128 -0
- package/dist/src/sandbox/windows/commandSafety.js.map +1 -0
- package/dist/src/sandbox/windows/commandSafety.test.d.ts +6 -0
- package/dist/src/sandbox/windows/commandSafety.test.js +42 -0
- package/dist/src/sandbox/windows/commandSafety.test.js.map +1 -0
- package/dist/src/sandbox/windows/windowsSandboxDenialUtils.d.ts +12 -0
- package/dist/src/sandbox/windows/windowsSandboxDenialUtils.js +68 -0
- package/dist/src/sandbox/windows/windowsSandboxDenialUtils.js.map +1 -0
- package/dist/src/sandbox/windows/windowsSandboxDenialUtils.test.d.ts +6 -0
- package/dist/src/sandbox/windows/windowsSandboxDenialUtils.test.js +68 -0
- package/dist/src/sandbox/windows/windowsSandboxDenialUtils.test.js.map +1 -0
- package/dist/src/scheduler/policy.js +20 -5
- package/dist/src/scheduler/policy.js.map +1 -1
- package/dist/src/scheduler/policy.test.js +80 -0
- package/dist/src/scheduler/policy.test.js.map +1 -1
- package/dist/src/scheduler/scheduler.js +12 -2
- package/dist/src/scheduler/scheduler.js.map +1 -1
- package/dist/src/scheduler/scheduler.test.js +52 -0
- package/dist/src/scheduler/scheduler.test.js.map +1 -1
- package/dist/src/scheduler/scheduler_hooks.test.js +1 -0
- package/dist/src/scheduler/scheduler_hooks.test.js.map +1 -1
- package/dist/src/scheduler/state-manager.js +1 -1
- package/dist/src/scheduler/state-manager.js.map +1 -1
- package/dist/src/scheduler/state-manager.test.js +10 -0
- package/dist/src/scheduler/state-manager.test.js.map +1 -1
- package/dist/src/scheduler/tool-executor.js +7 -2
- package/dist/src/scheduler/tool-executor.js.map +1 -1
- package/dist/src/scheduler/tool-executor.test.js +38 -0
- package/dist/src/scheduler/tool-executor.test.js.map +1 -1
- package/dist/src/scheduler/types.d.ts +4 -2
- package/dist/src/services/chatRecordingService.d.ts +1 -13
- package/dist/src/services/chatRecordingService.js +45 -46
- package/dist/src/services/chatRecordingService.js.map +1 -1
- package/dist/src/services/chatRecordingService.test.js +79 -10
- package/dist/src/services/chatRecordingService.test.js.map +1 -1
- package/dist/src/services/executionLifecycleService.d.ts +43 -6
- package/dist/src/services/executionLifecycleService.js +49 -12
- package/dist/src/services/executionLifecycleService.js.map +1 -1
- package/dist/src/services/executionLifecycleService.test.js +157 -3
- package/dist/src/services/executionLifecycleService.test.js.map +1 -1
- package/dist/src/services/fileDiscoveryService.d.ts +17 -2
- package/dist/src/services/fileDiscoveryService.js +84 -20
- package/dist/src/services/fileDiscoveryService.js.map +1 -1
- package/dist/src/services/fileDiscoveryService.test.js +67 -1
- package/dist/src/services/fileDiscoveryService.test.js.map +1 -1
- package/dist/src/services/modelConfigService.d.ts +11 -0
- package/dist/src/services/modelConfigService.js +67 -0
- package/dist/src/services/modelConfigService.js.map +1 -1
- package/dist/src/services/modelConfigService.test.js +30 -0
- package/dist/src/services/modelConfigService.test.js.map +1 -1
- package/dist/src/services/sandboxManager.d.ts +90 -8
- package/dist/src/services/sandboxManager.integration.test.js +438 -0
- package/dist/src/services/sandboxManager.integration.test.js.map +1 -0
- package/dist/src/services/sandboxManager.js +156 -13
- package/dist/src/services/sandboxManager.js.map +1 -1
- package/dist/src/services/sandboxManager.test.js +373 -117
- package/dist/src/services/sandboxManager.test.js.map +1 -1
- package/dist/src/services/sandboxManagerFactory.d.ts +2 -3
- package/dist/src/services/sandboxManagerFactory.js +10 -17
- package/dist/src/services/sandboxManagerFactory.js.map +1 -1
- package/dist/src/services/sandboxedFileSystemService.d.ts +1 -0
- package/dist/src/services/sandboxedFileSystemService.js +32 -3
- package/dist/src/services/sandboxedFileSystemService.js.map +1 -1
- package/dist/src/services/sandboxedFileSystemService.test.js +83 -12
- package/dist/src/services/sandboxedFileSystemService.test.js.map +1 -1
- package/dist/src/services/shellExecutionService.d.ts +2 -0
- package/dist/src/services/shellExecutionService.js +45 -16
- package/dist/src/services/shellExecutionService.js.map +1 -1
- package/dist/src/services/shellExecutionService.test.js +5 -4
- package/dist/src/services/shellExecutionService.test.js.map +1 -1
- package/dist/src/services/test-data/resolved-aliases-retry.golden.json +4 -0
- package/dist/src/services/test-data/resolved-aliases.golden.json +4 -0
- package/dist/src/services/types.d.ts +14 -0
- package/dist/src/services/types.js +7 -0
- package/dist/src/services/types.js.map +1 -0
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.js +6 -0
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.js.map +1 -1
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js +5 -1
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js.map +1 -1
- package/dist/src/telemetry/clearcut-logger/event-metadata-key.d.ts +2 -1
- package/dist/src/telemetry/clearcut-logger/event-metadata-key.js +3 -1
- package/dist/src/telemetry/clearcut-logger/event-metadata-key.js.map +1 -1
- package/dist/src/telemetry/loggers.js +1 -1
- package/dist/src/telemetry/loggers.js.map +1 -1
- package/dist/src/telemetry/loggers.test.js +8 -3
- package/dist/src/telemetry/loggers.test.js.map +1 -1
- package/dist/src/telemetry/metrics.d.ts +10 -1
- package/dist/src/telemetry/metrics.js +19 -4
- package/dist/src/telemetry/metrics.js.map +1 -1
- package/dist/src/telemetry/metrics.test.js +44 -0
- package/dist/src/telemetry/metrics.test.js.map +1 -1
- package/dist/src/telemetry/types.d.ts +3 -3
- package/dist/src/telemetry/types.js +9 -4
- package/dist/src/telemetry/types.js.map +1 -1
- package/dist/src/test-utils/mock-message-bus.d.ts +1 -1
- package/dist/src/test-utils/mock-message-bus.js +1 -1
- package/dist/src/test-utils/mock-message-bus.js.map +1 -1
- package/dist/src/tools/definitions/base-declarations.d.ts +6 -0
- package/dist/src/tools/definitions/base-declarations.js +7 -0
- package/dist/src/tools/definitions/base-declarations.js.map +1 -1
- package/dist/src/tools/definitions/coreTools.d.ts +2 -1
- package/dist/src/tools/definitions/coreTools.js +9 -3
- package/dist/src/tools/definitions/coreTools.js.map +1 -1
- package/dist/src/tools/definitions/dynamic-declaration-helpers.d.ts +4 -0
- package/dist/src/tools/definitions/dynamic-declaration-helpers.js +29 -2
- package/dist/src/tools/definitions/dynamic-declaration-helpers.js.map +1 -1
- package/dist/src/tools/definitions/model-family-sets/default-legacy.js +11 -6
- package/dist/src/tools/definitions/model-family-sets/default-legacy.js.map +1 -1
- package/dist/src/tools/definitions/model-family-sets/gemini-3.js +10 -4
- package/dist/src/tools/definitions/model-family-sets/gemini-3.js.map +1 -1
- package/dist/src/tools/definitions/trackerTools.js +3 -3
- package/dist/src/tools/definitions/trackerTools.js.map +1 -1
- package/dist/src/tools/definitions/types.d.ts +1 -0
- package/dist/src/tools/enter-plan-mode.js +15 -0
- package/dist/src/tools/enter-plan-mode.js.map +1 -1
- package/dist/src/tools/enter-plan-mode.test.js +25 -0
- package/dist/src/tools/enter-plan-mode.test.js.map +1 -1
- package/dist/src/tools/grep-utils.d.ts +2 -1
- package/dist/src/tools/grep-utils.js +22 -3
- package/dist/src/tools/grep-utils.js.map +1 -1
- package/dist/src/tools/grep.js +16 -3
- package/dist/src/tools/grep.js.map +1 -1
- package/dist/src/tools/grep.test.js +34 -6
- package/dist/src/tools/grep.test.js.map +1 -1
- package/dist/src/tools/ls.js +6 -4
- package/dist/src/tools/ls.js.map +1 -1
- package/dist/src/tools/ls.test.js +22 -7
- package/dist/src/tools/ls.test.js.map +1 -1
- package/dist/src/tools/mcp-client-manager.js +6 -3
- package/dist/src/tools/mcp-client-manager.js.map +1 -1
- package/dist/src/tools/mcp-client-manager.test.js +35 -0
- package/dist/src/tools/mcp-client-manager.test.js.map +1 -1
- package/dist/src/tools/memoryTool.d.ts +9 -2
- package/dist/src/tools/memoryTool.js +39 -15
- package/dist/src/tools/memoryTool.js.map +1 -1
- package/dist/src/tools/memoryTool.test.js +61 -2
- package/dist/src/tools/memoryTool.test.js.map +1 -1
- package/dist/src/tools/read-many-files.js +12 -4
- package/dist/src/tools/read-many-files.js.map +1 -1
- package/dist/src/tools/read-many-files.test.js +17 -17
- package/dist/src/tools/read-many-files.test.js.map +1 -1
- package/dist/src/tools/ripGrep.js +14 -1
- package/dist/src/tools/ripGrep.js.map +1 -1
- package/dist/src/tools/ripGrep.test.js +9 -9
- package/dist/src/tools/ripGrep.test.js.map +1 -1
- package/dist/src/tools/shell.d.ts +10 -0
- package/dist/src/tools/shell.js +97 -124
- package/dist/src/tools/shell.js.map +1 -1
- package/dist/src/tools/shell.test.js +22 -3
- package/dist/src/tools/shell.test.js.map +1 -1
- package/dist/src/tools/tool-names.d.ts +4 -4
- package/dist/src/tools/tool-names.js +5 -3
- package/dist/src/tools/tool-names.js.map +1 -1
- package/dist/src/tools/tool-registry.js +11 -1
- package/dist/src/tools/tool-registry.js.map +1 -1
- package/dist/src/tools/tool-registry.test.js +43 -1
- package/dist/src/tools/tool-registry.test.js.map +1 -1
- package/dist/src/tools/tools.d.ts +12 -1
- package/dist/src/tools/tools.js +15 -0
- package/dist/src/tools/tools.js.map +1 -1
- package/dist/src/tools/tools.test.js +42 -1
- package/dist/src/tools/tools.test.js.map +1 -1
- package/dist/src/tools/topicTool.d.ts +29 -0
- package/dist/src/tools/topicTool.js +72 -0
- package/dist/src/tools/topicTool.js.map +1 -0
- package/dist/src/tools/topicTool.test.d.ts +6 -0
- package/dist/src/tools/topicTool.test.js +105 -0
- package/dist/src/tools/topicTool.test.js.map +1 -0
- package/dist/src/tools/web-fetch.js +38 -20
- package/dist/src/tools/web-fetch.js.map +1 -1
- package/dist/src/tools/web-fetch.test.js +28 -0
- package/dist/src/tools/web-fetch.test.js.map +1 -1
- package/dist/src/utils/checkpointUtils.d.ts +4 -4
- package/dist/src/utils/errors.d.ts +3 -0
- package/dist/src/utils/errors.js +28 -6
- package/dist/src/utils/errors.js.map +1 -1
- package/dist/src/utils/errors.test.js +23 -0
- package/dist/src/utils/errors.test.js.map +1 -1
- package/dist/src/utils/getFolderStructure.js +1 -1
- package/dist/src/utils/getFolderStructure.js.map +1 -1
- package/dist/src/utils/gitIgnoreParser.d.ts +2 -2
- package/dist/src/utils/gitIgnoreParser.js +28 -50
- package/dist/src/utils/gitIgnoreParser.js.map +1 -1
- package/dist/src/utils/gitIgnoreParser.test.js +51 -185
- package/dist/src/utils/gitIgnoreParser.test.js.map +1 -1
- package/dist/src/utils/ignoreFileParser.d.ts +2 -2
- package/dist/src/utils/ignoreFileParser.js +6 -17
- package/dist/src/utils/ignoreFileParser.js.map +1 -1
- package/dist/src/utils/ignoreFileParser.test.js +40 -132
- package/dist/src/utils/ignoreFileParser.test.js.map +1 -1
- package/dist/src/utils/ignorePathUtils.d.ts +11 -0
- package/dist/src/utils/ignorePathUtils.js +39 -0
- package/dist/src/utils/ignorePathUtils.js.map +1 -0
- package/dist/src/utils/ignorePathUtils.test.d.ts +6 -0
- package/dist/src/utils/ignorePathUtils.test.js +70 -0
- package/dist/src/utils/ignorePathUtils.test.js.map +1 -0
- package/dist/src/utils/memoryDiscovery.d.ts +6 -4
- package/dist/src/utils/memoryDiscovery.js +66 -41
- package/dist/src/utils/memoryDiscovery.js.map +1 -1
- package/dist/src/utils/memoryDiscovery.test.js +40 -0
- package/dist/src/utils/memoryDiscovery.test.js.map +1 -1
- package/dist/src/utils/memoryImportProcessor.d.ts +1 -1
- package/dist/src/utils/memoryImportProcessor.js +24 -15
- package/dist/src/utils/memoryImportProcessor.js.map +1 -1
- package/dist/src/utils/sessionOperations.d.ts +19 -0
- package/dist/src/utils/sessionOperations.js +101 -0
- package/dist/src/utils/sessionOperations.js.map +1 -0
- package/dist/src/utils/sessionOperations.test.d.ts +6 -0
- package/dist/src/utils/sessionOperations.test.js +92 -0
- package/dist/src/utils/sessionOperations.test.js.map +1 -0
- package/dist/src/utils/shell-utils.d.ts +15 -0
- package/dist/src/utils/shell-utils.js +43 -2
- package/dist/src/utils/shell-utils.js.map +1 -1
- package/dist/src/utils/textUtils.d.ts +8 -0
- package/dist/src/utils/textUtils.js +16 -0
- package/dist/src/utils/textUtils.js.map +1 -1
- package/dist/src/utils/tokenCalculation.d.ts +2 -0
- package/dist/src/utils/tokenCalculation.js +2 -2
- package/dist/src/utils/tokenCalculation.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/docs/get-started/examples.md +0 -141
- package/dist/src/sandbox/macos/MacOsSandboxManager.integration.test.js +0 -164
- package/dist/src/sandbox/macos/MacOsSandboxManager.integration.test.js.map +0 -1
- package/dist/src/sandbox/macos/commandSafety.js.map +0 -1
- package/dist/src/services/chatCompressionService.js.map +0 -1
- package/dist/src/services/chatCompressionService.test.js.map +0 -1
- package/dist/src/services/contextManager.js.map +0 -1
- package/dist/src/services/contextManager.test.js.map +0 -1
- package/dist/src/services/toolOutputMaskingService.js.map +0 -1
- package/dist/src/services/toolOutputMaskingService.test.js.map +0 -1
- /package/dist/src/{services/toolOutputMaskingService.test.d.ts → agents/browser/snapshotSuperseder.test.d.ts} +0 -0
- /package/dist/src/{services → context}/chatCompressionService.d.ts +0 -0
- /package/dist/src/{services → context}/chatCompressionService.js +0 -0
- /package/dist/src/{services → context}/chatCompressionService.test.d.ts +0 -0
- /package/dist/src/{services → context}/chatCompressionService.test.js +0 -0
- /package/dist/src/{services → context}/contextManager.test.d.ts +0 -0
- /package/dist/src/{sandbox/macos/MacOsSandboxManager.integration.test.d.ts → services/sandboxManager.integration.test.d.ts} +0 -0
|
@@ -62,7 +62,133 @@ Once installed and authenticated, you can start using Gemini CLI by issuing
|
|
|
62
62
|
commands and prompts in your terminal. Ask it to generate code, explain files,
|
|
63
63
|
and more.
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
<!-- prettier-ignore -->
|
|
66
|
+
> [!NOTE]
|
|
67
|
+
> These examples demonstrate potential capabilities. Your actual
|
|
68
|
+
> results can vary based on the model used and your project environment.
|
|
69
|
+
|
|
70
|
+
### Rename your photographs based on content
|
|
71
|
+
|
|
72
|
+
You can use Gemini CLI to automate file management tasks that require visual
|
|
73
|
+
analysis. In this example, Gemini CLI renames images based on their actual
|
|
74
|
+
subject matter.
|
|
75
|
+
|
|
76
|
+
Scenario: You have a folder containing the following files:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
photos/photo1.png
|
|
80
|
+
photos/photo2.png
|
|
81
|
+
photos/photo3.png
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Give Gemini the following prompt:
|
|
85
|
+
|
|
86
|
+
```cli
|
|
87
|
+
Rename the photos in my "photos" directory based on their contents.
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Result: Gemini asks for permission to rename your files.
|
|
91
|
+
|
|
92
|
+
Select **Allow once** and your files are renamed:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
photos/yellow_flowers.png
|
|
96
|
+
photos/antique_dresser.png
|
|
97
|
+
photos/green_android_robot.png
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Explain a repository by reading its code
|
|
101
|
+
|
|
102
|
+
Gemini CLI is effective for rapid codebase exploration. The following example
|
|
103
|
+
shows how to ask Gemini CLI to fetch, analyze, and summarize a remote project.
|
|
104
|
+
|
|
105
|
+
Scenario: You want to understand how a popular open-source utility works by
|
|
106
|
+
inspecting its code, not just its README.
|
|
107
|
+
|
|
108
|
+
Give Gemini CLI the following prompt:
|
|
109
|
+
|
|
110
|
+
```cli
|
|
111
|
+
Clone the 'chalk' repository from https://github.com/chalk/chalk, read its key source files, and explain how it works.
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Result: Gemini performs a sequence of actions to answer your request.
|
|
115
|
+
|
|
116
|
+
1. First, it asks for permission to run `git clone` to download the repository.
|
|
117
|
+
2. Next, it finds the important source files and asks for permission to read
|
|
118
|
+
them.
|
|
119
|
+
3. Finally, after analyzing the code, it provides a summary.
|
|
120
|
+
|
|
121
|
+
Gemini CLI returns an explanation based on the actual source code:
|
|
122
|
+
|
|
123
|
+
```markdown
|
|
124
|
+
The `chalk` library is a popular npm package for styling terminal output with
|
|
125
|
+
colors. After analyzing the source code, here's how it works:
|
|
126
|
+
|
|
127
|
+
- **Core functionality:** The main file sets up a chainable API. Each color or
|
|
128
|
+
modifier (like `bold` or `italic`) is a getter that appends the corresponding
|
|
129
|
+
ANSI escape code to an internal stack.
|
|
130
|
+
|
|
131
|
+
- **Chainable API:** When you call `chalk.red.bold('Hello')`, you are accessing
|
|
132
|
+
getters. The `red` getter adds the red color code, and the `bold` getter adds
|
|
133
|
+
the bold code.
|
|
134
|
+
|
|
135
|
+
- **Output generation:** When the chain is treated as a string (e.g., in
|
|
136
|
+
`console.log`), a final `toString()` method is called. This method joins all
|
|
137
|
+
the stored ANSI codes, wraps them around the input string ('Hello'), and adds
|
|
138
|
+
a reset code at the end. This produces the final, styled string that the
|
|
139
|
+
terminal can render.
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Combine two spreadsheets into one spreadsheet
|
|
143
|
+
|
|
144
|
+
Gemini CLI can process and transform data across multiple files. Use this
|
|
145
|
+
capability to merge reports or reformat data sets without manual copying.
|
|
146
|
+
|
|
147
|
+
Scenario: You have two .csv files: `Revenue - 2023.csv` and
|
|
148
|
+
`Revenue - 2024.csv`. Each file contains monthly revenue figures.
|
|
149
|
+
|
|
150
|
+
Give Gemini CLI the following prompt:
|
|
151
|
+
|
|
152
|
+
```cli
|
|
153
|
+
Combine the two .csv files into a single .csv file, with each year a different column.
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Result: Gemini CLI reads each file and then asks for permission to write a new
|
|
157
|
+
file. Provide your permission and Gemini CLI provides the combined data:
|
|
158
|
+
|
|
159
|
+
```csv
|
|
160
|
+
Month,2023,2024
|
|
161
|
+
January,0,1000
|
|
162
|
+
February,0,1200
|
|
163
|
+
March,0,2400
|
|
164
|
+
April,900,500
|
|
165
|
+
May,1000,800
|
|
166
|
+
June,1000,900
|
|
167
|
+
July,1200,1000
|
|
168
|
+
August,1800,400
|
|
169
|
+
September,2000,2000
|
|
170
|
+
October,2400,3400
|
|
171
|
+
November,3400,1800
|
|
172
|
+
December,2100,9000
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Run unit tests
|
|
176
|
+
|
|
177
|
+
Gemini CLI can generate boilerplate code and tests based on your existing
|
|
178
|
+
implementation. This example demonstrates how to request code coverage for a
|
|
179
|
+
JavaScript component.
|
|
180
|
+
|
|
181
|
+
Scenario: You've written a simple login page. You wish to write unit tests to
|
|
182
|
+
ensure that your login page has code coverage.
|
|
183
|
+
|
|
184
|
+
Give Gemini CLI the following prompt:
|
|
185
|
+
|
|
186
|
+
```cli
|
|
187
|
+
Write unit tests for Login.js.
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Result: Gemini CLI asks for permission to write a new file and creates a test
|
|
191
|
+
for your login page.
|
|
66
192
|
|
|
67
193
|
## Check usage and quota
|
|
68
194
|
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
# IDE
|
|
1
|
+
# IDE Integration
|
|
2
2
|
|
|
3
3
|
Gemini CLI can integrate with your IDE to provide a more seamless and
|
|
4
4
|
context-aware experience. This integration allows the CLI to understand your
|
|
5
5
|
workspace better and enables powerful features like native in-editor diffing.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
[Visual Studio Code](https://code.visualstudio.com/), and other editors that
|
|
9
|
-
support VS Code extensions. To build support for other editors, see the
|
|
10
|
-
[IDE Companion Extension Spec](./ide-companion-spec.md).
|
|
7
|
+
There are two primary ways to integrate Gemini CLI with an IDE:
|
|
11
8
|
|
|
12
|
-
|
|
9
|
+
1. **VS Code companion extension**: Install the "Gemini CLI Companion"
|
|
10
|
+
extension on [Antigravity](https://antigravity.google),
|
|
11
|
+
[Visual Studio Code](https://code.visualstudio.com/), or other VS Code
|
|
12
|
+
compatible editors.
|
|
13
|
+
2. **Agent Client Protocol (ACP)**: An open protocol for interoperability
|
|
14
|
+
between AI coding agents and IDEs. This method is used for integrations with
|
|
15
|
+
tools like JetBrains and Zed, which leverage the ACP Agent Registry for easy
|
|
16
|
+
discovery and installation of compatible agents like Gemini CLI.
|
|
17
|
+
|
|
18
|
+
## VS Code companion extension
|
|
19
|
+
|
|
20
|
+
The **Gemini CLI Companion extension** grants Gemini CLI direct access to your
|
|
21
|
+
VS Code compatible IDEs and improves your experience by providing real-time
|
|
22
|
+
context such as open files, cursor positions, and text selection. The extension
|
|
23
|
+
also enables a native diffing interface so you can seamlessly review and apply
|
|
24
|
+
AI-generated code changes directly within your editor.
|
|
25
|
+
|
|
26
|
+
### Features
|
|
13
27
|
|
|
14
28
|
- **Workspace context:** The CLI automatically gains awareness of your workspace
|
|
15
29
|
to provide more relevant and accurate responses. This context includes:
|
|
@@ -19,8 +33,8 @@ support VS Code extensions. To build support for other editors, see the
|
|
|
19
33
|
truncated).
|
|
20
34
|
|
|
21
35
|
- **Native diffing:** When Gemini suggests code modifications, you can view the
|
|
22
|
-
changes directly within your IDE's native diff viewer. This
|
|
23
|
-
|
|
36
|
+
changes directly within your IDE's native diff viewer. This lets you review,
|
|
37
|
+
edit, and accept or reject the suggested changes seamlessly.
|
|
24
38
|
|
|
25
39
|
- **VS Code commands:** You can access Gemini CLI features directly from the VS
|
|
26
40
|
Code Command Palette (`Cmd+Shift+P` or `Ctrl+Shift+P`):
|
|
@@ -32,18 +46,18 @@ support VS Code extensions. To build support for other editors, see the
|
|
|
32
46
|
- `Gemini CLI: View Third-Party Notices`: Displays the third-party notices for
|
|
33
47
|
the extension.
|
|
34
48
|
|
|
35
|
-
|
|
49
|
+
### Installation and setup
|
|
36
50
|
|
|
37
51
|
There are three ways to set up the IDE integration:
|
|
38
52
|
|
|
39
|
-
|
|
53
|
+
#### 1. Automatic nudge (recommended)
|
|
40
54
|
|
|
41
55
|
When you run Gemini CLI inside a supported editor, it will automatically detect
|
|
42
56
|
your environment and prompt you to connect. Answering "Yes" will automatically
|
|
43
57
|
run the necessary setup, which includes installing the companion extension and
|
|
44
58
|
enabling the connection.
|
|
45
59
|
|
|
46
|
-
|
|
60
|
+
#### 2. Manual installation from CLI
|
|
47
61
|
|
|
48
62
|
If you previously dismissed the prompt or want to install the extension
|
|
49
63
|
manually, you can run the following command inside Gemini CLI:
|
|
@@ -54,7 +68,7 @@ manually, you can run the following command inside Gemini CLI:
|
|
|
54
68
|
|
|
55
69
|
This will find the correct extension for your IDE and install it.
|
|
56
70
|
|
|
57
|
-
|
|
71
|
+
#### 3. Manual installation from a marketplace
|
|
58
72
|
|
|
59
73
|
You can also install the extension directly from a marketplace.
|
|
60
74
|
|
|
@@ -75,9 +89,9 @@ You can also install the extension directly from a marketplace.
|
|
|
75
89
|
> After manually installing the extension, you must run `/ide enable` in the CLI
|
|
76
90
|
> to activate the integration.
|
|
77
91
|
|
|
78
|
-
|
|
92
|
+
### Usage
|
|
79
93
|
|
|
80
|
-
|
|
94
|
+
#### Enabling and disabling
|
|
81
95
|
|
|
82
96
|
You can control the IDE integration from within the CLI:
|
|
83
97
|
|
|
@@ -93,7 +107,7 @@ You can control the IDE integration from within the CLI:
|
|
|
93
107
|
When enabled, Gemini CLI will automatically attempt to connect to the IDE
|
|
94
108
|
companion extension.
|
|
95
109
|
|
|
96
|
-
|
|
110
|
+
#### Checking the status
|
|
97
111
|
|
|
98
112
|
To check the connection status and see the context the CLI has received from the
|
|
99
113
|
IDE, run:
|
|
@@ -108,9 +122,9 @@ recently opened files it is aware of.
|
|
|
108
122
|
<!-- prettier-ignore -->
|
|
109
123
|
> [!NOTE]
|
|
110
124
|
> The file list is limited to 10 recently accessed files within your
|
|
111
|
-
> workspace and only includes local files on disk.
|
|
125
|
+
> workspace and only includes local files on disk.
|
|
112
126
|
|
|
113
|
-
|
|
127
|
+
#### Working with diffs
|
|
114
128
|
|
|
115
129
|
When you ask Gemini to modify a file, it can open a diff view directly in your
|
|
116
130
|
editor.
|
|
@@ -135,6 +149,63 @@ accepting them.
|
|
|
135
149
|
If you select ‘Allow for this session’ in the CLI, changes will no longer show
|
|
136
150
|
up in the IDE as they will be auto-accepted.
|
|
137
151
|
|
|
152
|
+
## Agent Client Protocol (ACP)
|
|
153
|
+
|
|
154
|
+
ACP is an open protocol that standardizes how AI coding agents communicate with
|
|
155
|
+
code editors and IDEs. It addresses the challenge of fragmented distribution,
|
|
156
|
+
where agents traditionally needed custom integrations for each client. With ACP,
|
|
157
|
+
developers can implement their agent once, and it becomes compatible with any
|
|
158
|
+
ACP-compliant editor.
|
|
159
|
+
|
|
160
|
+
For a comprehensive introduction to ACP, including its architecture and
|
|
161
|
+
benefits, refer to the official
|
|
162
|
+
[ACP Introduction](https://agentclientprotocol.com/get-started/introduction)
|
|
163
|
+
documentation.
|
|
164
|
+
|
|
165
|
+
### The ACP Agent Registry
|
|
166
|
+
|
|
167
|
+
Gemini CLI is officially available in the **ACP Agent Registry**. This allows
|
|
168
|
+
you to install and update Gemini CLI directly within supporting IDEs and
|
|
169
|
+
eliminates the need for manual downloads or IDE-specific extensions.
|
|
170
|
+
|
|
171
|
+
Using the registry ensures:
|
|
172
|
+
|
|
173
|
+
- **Ease of use**: Discover and install agents directly within your IDE
|
|
174
|
+
settings.
|
|
175
|
+
- **Latest versions**: Ensures users always have access to the most up-to-date
|
|
176
|
+
agent implementations.
|
|
177
|
+
|
|
178
|
+
For more details on how the registry works, visit the official
|
|
179
|
+
[ACP Agent Registry](https://agentclientprotocol.com/get-started/registry) page.
|
|
180
|
+
You can learn about how specific IDEs leverage this integration in the following
|
|
181
|
+
section.
|
|
182
|
+
|
|
183
|
+
### IDE-specific integration
|
|
184
|
+
|
|
185
|
+
Gemini CLI is an ACP-compatible agent available in the ACP Agent Registry.
|
|
186
|
+
Here’s how different IDEs leverage the ACP and the registry:
|
|
187
|
+
|
|
188
|
+
#### JetBrains IDEs
|
|
189
|
+
|
|
190
|
+
JetBrains IDEs (like IntelliJ IDEA, PyCharm, or GoLand) offer built-in registry
|
|
191
|
+
support, allowing users to find and install ACP-compatible agents directly.
|
|
192
|
+
|
|
193
|
+
For more details, refer to the official
|
|
194
|
+
[JetBrains AI Blog announcement](https://blog.jetbrains.com/ai/2026/01/acp-agent-registry/).
|
|
195
|
+
|
|
196
|
+
#### Zed
|
|
197
|
+
|
|
198
|
+
Zed, a modern code editor, also integrates with the ACP Agent Registry. This
|
|
199
|
+
allows Zed users to easily browse, install, and manage ACP agents.
|
|
200
|
+
|
|
201
|
+
Learn more about Zed's integration with the ACP Registry in their
|
|
202
|
+
[blog post](https://zed.dev/blog/acp-registry).
|
|
203
|
+
|
|
204
|
+
#### Other ACP-compatible IDEs
|
|
205
|
+
|
|
206
|
+
Any other IDE that supports the ACP Agent Registry can install Gemini CLI
|
|
207
|
+
directly through their in-built registry features.
|
|
208
|
+
|
|
138
209
|
## Using with sandboxing
|
|
139
210
|
|
|
140
211
|
If you are using Gemini CLI within a sandbox, please be aware of the following:
|
|
@@ -151,10 +222,9 @@ If you are using Gemini CLI within a sandbox, please be aware of the following:
|
|
|
151
222
|
|
|
152
223
|
## Troubleshooting
|
|
153
224
|
|
|
154
|
-
|
|
155
|
-
messages and how to resolve them.
|
|
225
|
+
### VS Code companion extension errors
|
|
156
226
|
|
|
157
|
-
|
|
227
|
+
#### Connection errors
|
|
158
228
|
|
|
159
229
|
- **Message:**
|
|
160
230
|
`🔴 Disconnected: Failed to connect to IDE companion extension in [IDE Name]. Please ensure the extension is running. To install the extension, run /ide install.`
|
|
@@ -174,7 +244,7 @@ messages and how to resolve them.
|
|
|
174
244
|
- **Solution:** Run `/ide enable` to try and reconnect. If the issue
|
|
175
245
|
continues, open a new terminal window or restart your IDE.
|
|
176
246
|
|
|
177
|
-
|
|
247
|
+
#### Manual PID override
|
|
178
248
|
|
|
179
249
|
If automatic IDE detection fails, or if you are running Gemini CLI in a
|
|
180
250
|
standalone terminal and want to manually associate it with a specific IDE
|
|
@@ -196,7 +266,7 @@ $env:GEMINI_CLI_IDE_PID=12345
|
|
|
196
266
|
When this variable is set, Gemini CLI will skip automatic detection and attempt
|
|
197
267
|
to connect using the provided PID.
|
|
198
268
|
|
|
199
|
-
|
|
269
|
+
#### Configuration errors
|
|
200
270
|
|
|
201
271
|
- **Message:**
|
|
202
272
|
`🔴 Disconnected: Directory mismatch. Gemini CLI is running in a different location than the open workspace in [IDE Name]. Please run the CLI from one of the following directories: [List of directories]`
|
|
@@ -210,7 +280,7 @@ to connect using the provided PID.
|
|
|
210
280
|
- **Cause:** You have no workspace open in your IDE.
|
|
211
281
|
- **Solution:** Open a workspace in your IDE and restart the CLI.
|
|
212
282
|
|
|
213
|
-
|
|
283
|
+
#### General errors
|
|
214
284
|
|
|
215
285
|
- **Message:**
|
|
216
286
|
`IDE integration is not supported in your current environment. To use this feature, run Gemini CLI in one of these supported IDEs: [List of IDEs]`
|
|
@@ -220,9 +290,14 @@ to connect using the provided PID.
|
|
|
220
290
|
IDE, like Antigravity or VS Code.
|
|
221
291
|
|
|
222
292
|
- **Message:**
|
|
223
|
-
`No installer is available for IDE. Please install
|
|
293
|
+
`No installer is available for IDE. Please install Gemini CLI Companion extension manually from the marketplace.`
|
|
224
294
|
- **Cause:** You ran `/ide install`, but the CLI does not have an automated
|
|
225
295
|
installer for your specific IDE.
|
|
226
296
|
- **Solution:** Open your IDE's extension marketplace, search for "Gemini CLI
|
|
227
297
|
Companion", and
|
|
228
298
|
[install it manually](#3-manual-installation-from-a-marketplace).
|
|
299
|
+
|
|
300
|
+
### ACP integration errors
|
|
301
|
+
|
|
302
|
+
For issues related to ACP integration, please refer to the debugging and
|
|
303
|
+
telemetry section in the [ACP Mode](../cli/acp-mode.md) documentation.
|
package/dist/docs/index.md
CHANGED
|
@@ -19,8 +19,6 @@ Jump in to Gemini CLI.
|
|
|
19
19
|
on your system.
|
|
20
20
|
- **[Authentication](./get-started/authentication.md):** Setup instructions for
|
|
21
21
|
personal and enterprise accounts.
|
|
22
|
-
- **[Examples](./get-started/examples.md):** Practical examples of Gemini CLI in
|
|
23
|
-
action.
|
|
24
22
|
- **[CLI cheatsheet](./cli/cli-reference.md):** A quick reference for common
|
|
25
23
|
commands and options.
|
|
26
24
|
- **[Gemini 3 on Gemini CLI](./get-started/gemini-3.md):** Learn about Gemini 3
|
package/dist/docs/redirects.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"/docs/faq": "/docs/resources/faq",
|
|
14
14
|
"/docs/get-started/configuration": "/docs/reference/configuration",
|
|
15
15
|
"/docs/get-started/configuration-v1": "/docs/reference/configuration",
|
|
16
|
+
"/docs/get-started/examples": "/docs/get-started/index",
|
|
16
17
|
"/docs/index": "/docs",
|
|
17
18
|
"/docs/quota-and-pricing": "/docs/resources/quota-and-pricing",
|
|
18
19
|
"/docs/tos-privacy": "/docs/resources/tos-privacy",
|
|
@@ -17,8 +17,6 @@ Slash commands provide meta-level control over the CLI itself.
|
|
|
17
17
|
### `/agents`
|
|
18
18
|
|
|
19
19
|
- **Description:** Manage local and remote subagents.
|
|
20
|
-
- **Note:** This command is experimental and requires
|
|
21
|
-
`experimental.enableAgents: true` in your `settings.json`.
|
|
22
20
|
- **Sub-commands:**
|
|
23
21
|
- **`list`**:
|
|
24
22
|
- **Description:** Lists all discovered agents, including built-in, local,
|
|
@@ -305,7 +303,7 @@ Slash commands provide meta-level control over the CLI itself.
|
|
|
305
303
|
- **Description:** Switch to Plan Mode (read-only) and view the current plan if
|
|
306
304
|
one has been generated.
|
|
307
305
|
- **Note:** This feature is enabled by default. It can be disabled via the
|
|
308
|
-
`
|
|
306
|
+
`general.plan.enabled` setting in your configuration.
|
|
309
307
|
- **Sub-commands:**
|
|
310
308
|
- **`copy`**:
|
|
311
309
|
- **Description:** Copy the currently approved plan to your clipboard.
|