@anthropic-field/core 0.1.0
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/.last_build +0 -0
- package/dist/docs/architecture.md +80 -0
- package/dist/docs/assets/connected_devtools.png +0 -0
- package/dist/docs/assets/gemini-screenshot.png +0 -0
- package/dist/docs/assets/monitoring-dashboard-logs.png +0 -0
- package/dist/docs/assets/monitoring-dashboard-metrics.png +0 -0
- package/dist/docs/assets/monitoring-dashboard-overview.png +0 -0
- package/dist/docs/assets/release_patch.png +0 -0
- package/dist/docs/assets/theme-ansi-light.png +0 -0
- package/dist/docs/assets/theme-ansi.png +0 -0
- package/dist/docs/assets/theme-atom-one.png +0 -0
- package/dist/docs/assets/theme-ayu-light.png +0 -0
- package/dist/docs/assets/theme-ayu.png +0 -0
- package/dist/docs/assets/theme-custom.png +0 -0
- package/dist/docs/assets/theme-default-light.png +0 -0
- package/dist/docs/assets/theme-default.png +0 -0
- package/dist/docs/assets/theme-dracula.png +0 -0
- package/dist/docs/assets/theme-github-light.png +0 -0
- package/dist/docs/assets/theme-github.png +0 -0
- package/dist/docs/assets/theme-google-light.png +0 -0
- package/dist/docs/assets/theme-xcode-light.png +0 -0
- package/dist/docs/changelogs/index.md +743 -0
- package/dist/docs/changelogs/latest.md +338 -0
- package/dist/docs/changelogs/preview.md +437 -0
- package/dist/docs/cli/authentication.md +3 -0
- package/dist/docs/cli/checkpointing.md +94 -0
- package/dist/docs/cli/cli-reference.md +101 -0
- package/dist/docs/cli/commands.md +430 -0
- package/dist/docs/cli/creating-skills.md +80 -0
- package/dist/docs/cli/custom-commands.md +315 -0
- package/dist/docs/cli/enterprise.md +565 -0
- package/dist/docs/cli/gemini-ignore.md +71 -0
- package/dist/docs/cli/gemini-md.md +108 -0
- package/dist/docs/cli/generation-settings.md +210 -0
- package/dist/docs/cli/headless.md +388 -0
- package/dist/docs/cli/index.md +65 -0
- package/dist/docs/cli/keyboard-shortcuts.md +140 -0
- package/dist/docs/cli/model-routing.md +42 -0
- package/dist/docs/cli/model.md +62 -0
- package/dist/docs/cli/rewind.md +51 -0
- package/dist/docs/cli/sandbox.md +171 -0
- package/dist/docs/cli/session-management.md +158 -0
- package/dist/docs/cli/settings.md +139 -0
- package/dist/docs/cli/skills.md +112 -0
- package/dist/docs/cli/system-prompt.md +125 -0
- package/dist/docs/cli/telemetry.md +826 -0
- package/dist/docs/cli/themes.md +235 -0
- package/dist/docs/cli/token-caching.md +20 -0
- package/dist/docs/cli/trusted-folders.md +95 -0
- package/dist/docs/cli/tutorials/skills-getting-started.md +97 -0
- package/dist/docs/cli/tutorials.md +87 -0
- package/dist/docs/cli/uninstall.md +65 -0
- package/dist/docs/core/index.md +107 -0
- package/dist/docs/core/memport.md +246 -0
- package/dist/docs/core/policy-engine.md +305 -0
- package/dist/docs/core/remote-agents.md +84 -0
- package/dist/docs/core/subagents.md +191 -0
- package/dist/docs/core/tools-api.md +131 -0
- package/dist/docs/examples/proxy-script.md +83 -0
- package/dist/docs/extensions/best-practices.md +139 -0
- package/dist/docs/extensions/index.md +45 -0
- package/dist/docs/extensions/reference.md +336 -0
- package/dist/docs/extensions/releasing.md +183 -0
- package/dist/docs/extensions/writing-extensions.md +281 -0
- package/dist/docs/faq.md +154 -0
- package/dist/docs/get-started/authentication.md +321 -0
- package/dist/docs/get-started/configuration-v1.md +888 -0
- package/dist/docs/get-started/configuration.md +1585 -0
- package/dist/docs/get-started/examples.md +219 -0
- package/dist/docs/get-started/gemini-3.md +101 -0
- package/dist/docs/get-started/index.md +71 -0
- package/dist/docs/get-started/installation.md +141 -0
- package/dist/docs/hooks/best-practices.md +677 -0
- package/dist/docs/hooks/index.md +164 -0
- package/dist/docs/hooks/reference.md +322 -0
- package/dist/docs/hooks/writing-hooks.md +450 -0
- package/dist/docs/ide-integration/ide-companion-spec.md +267 -0
- package/dist/docs/ide-integration/index.md +202 -0
- package/dist/docs/index.md +149 -0
- package/dist/docs/integration-tests.md +211 -0
- package/dist/docs/issue-and-pr-automation.md +134 -0
- package/dist/docs/local-development.md +128 -0
- package/dist/docs/mermaid/context.mmd +103 -0
- package/dist/docs/mermaid/render-path.mmd +64 -0
- package/dist/docs/npm.md +62 -0
- package/dist/docs/quota-and-pricing.md +158 -0
- package/dist/docs/release-confidence.md +164 -0
- package/dist/docs/releases.md +540 -0
- package/dist/docs/sidebar.json +152 -0
- package/dist/docs/tools/file-system.md +217 -0
- package/dist/docs/tools/index.md +98 -0
- package/dist/docs/tools/mcp-server.md +1079 -0
- package/dist/docs/tools/memory.md +54 -0
- package/dist/docs/tools/shell.md +260 -0
- package/dist/docs/tools/todos.md +57 -0
- package/dist/docs/tools/web-fetch.md +59 -0
- package/dist/docs/tools/web-search.md +42 -0
- package/dist/docs/tos-privacy.md +96 -0
- package/dist/docs/troubleshooting.md +173 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/src/__mocks__/fs/promises.d.ts +11 -0
- package/dist/src/__mocks__/fs/promises.js +17 -0
- package/dist/src/__mocks__/fs/promises.js.map +1 -0
- package/dist/src/agents/a2a-client-manager.d.ts +77 -0
- package/dist/src/agents/a2a-client-manager.js +173 -0
- package/dist/src/agents/a2a-client-manager.js.map +1 -0
- package/dist/src/agents/a2aUtils.d.ts +29 -0
- package/dist/src/agents/a2aUtils.js +113 -0
- package/dist/src/agents/a2aUtils.js.map +1 -0
- package/dist/src/agents/acknowledgedAgents.d.ts +18 -0
- package/dist/src/agents/acknowledgedAgents.js +58 -0
- package/dist/src/agents/acknowledgedAgents.js.map +1 -0
- package/dist/src/agents/agent-scheduler.d.ts +33 -0
- package/dist/src/agents/agent-scheduler.js +29 -0
- package/dist/src/agents/agent-scheduler.js.map +1 -0
- package/dist/src/agents/agentLoader.d.ts +73 -0
- package/dist/src/agents/agentLoader.js +268 -0
- package/dist/src/agents/agentLoader.js.map +1 -0
- package/dist/src/agents/cli-help-agent.d.ts +24 -0
- package/dist/src/agents/cli-help-agent.js +80 -0
- package/dist/src/agents/cli-help-agent.js.map +1 -0
- package/dist/src/agents/codebase-investigator.d.ts +47 -0
- package/dist/src/agents/codebase-investigator.js +159 -0
- package/dist/src/agents/codebase-investigator.js.map +1 -0
- package/dist/src/agents/generalist-agent.d.ts +21 -0
- package/dist/src/agents/generalist-agent.js +60 -0
- package/dist/src/agents/generalist-agent.js.map +1 -0
- package/dist/src/agents/local-executor.d.ts +110 -0
- package/dist/src/agents/local-executor.js +879 -0
- package/dist/src/agents/local-executor.js.map +1 -0
- package/dist/src/agents/local-invocation.d.ts +45 -0
- package/dist/src/agents/local-invocation.js +101 -0
- package/dist/src/agents/local-invocation.js.map +1 -0
- package/dist/src/agents/registry.d.ts +85 -0
- package/dist/src/agents/registry.js +374 -0
- package/dist/src/agents/registry.js.map +1 -0
- package/dist/src/agents/remote-invocation.d.ts +35 -0
- package/dist/src/agents/remote-invocation.js +127 -0
- package/dist/src/agents/remote-invocation.js.map +1 -0
- package/dist/src/agents/subagent-tool-wrapper.d.ts +38 -0
- package/dist/src/agents/subagent-tool-wrapper.js +51 -0
- package/dist/src/agents/subagent-tool-wrapper.js.map +1 -0
- package/dist/src/agents/subagent-tool.d.ts +15 -0
- package/dist/src/agents/subagent-tool.js +61 -0
- package/dist/src/agents/subagent-tool.js.map +1 -0
- package/dist/src/agents/types.d.ts +154 -0
- package/dist/src/agents/types.js +23 -0
- package/dist/src/agents/types.js.map +1 -0
- package/dist/src/agents/utils.d.ts +15 -0
- package/dist/src/agents/utils.js +29 -0
- package/dist/src/agents/utils.js.map +1 -0
- package/dist/src/availability/errorClassification.d.ts +7 -0
- package/dist/src/availability/errorClassification.js +20 -0
- package/dist/src/availability/errorClassification.js.map +1 -0
- package/dist/src/availability/modelAvailabilityService.d.ts +36 -0
- package/dist/src/availability/modelAvailabilityService.js +87 -0
- package/dist/src/availability/modelAvailabilityService.js.map +1 -0
- package/dist/src/availability/modelPolicy.d.ts +49 -0
- package/dist/src/availability/modelPolicy.js +7 -0
- package/dist/src/availability/modelPolicy.js.map +1 -0
- package/dist/src/availability/policyCatalog.d.ts +24 -0
- package/dist/src/availability/policyCatalog.js +106 -0
- package/dist/src/availability/policyCatalog.js.map +1 -0
- package/dist/src/availability/policyHelpers.d.ts +52 -0
- package/dist/src/availability/policyHelpers.js +143 -0
- package/dist/src/availability/policyHelpers.js.map +1 -0
- package/dist/src/availability/testUtils.d.ts +10 -0
- package/dist/src/availability/testUtils.js +22 -0
- package/dist/src/availability/testUtils.js.map +1 -0
- package/dist/src/code_assist/admin/admin_controls.d.ts +32 -0
- package/dist/src/code_assist/admin/admin_controls.js +120 -0
- package/dist/src/code_assist/admin/admin_controls.js.map +1 -0
- package/dist/src/code_assist/codeAssist.d.ts +12 -0
- package/dist/src/code_assist/codeAssist.js +31 -0
- package/dist/src/code_assist/codeAssist.js.map +1 -0
- package/dist/src/code_assist/converter.d.ts +75 -0
- package/dist/src/code_assist/converter.js +161 -0
- package/dist/src/code_assist/converter.js.map +1 -0
- package/dist/src/code_assist/experiments/client_metadata.d.ts +12 -0
- package/dist/src/code_assist/experiments/client_metadata.js +51 -0
- package/dist/src/code_assist/experiments/client_metadata.js.map +1 -0
- package/dist/src/code_assist/experiments/experiments.d.ts +17 -0
- package/dist/src/code_assist/experiments/experiments.js +57 -0
- package/dist/src/code_assist/experiments/experiments.js.map +1 -0
- package/dist/src/code_assist/experiments/flagNames.d.ts +16 -0
- package/dist/src/code_assist/experiments/flagNames.js +16 -0
- package/dist/src/code_assist/experiments/flagNames.js.map +1 -0
- package/dist/src/code_assist/experiments/types.d.ts +35 -0
- package/dist/src/code_assist/experiments/types.js +7 -0
- package/dist/src/code_assist/experiments/types.js.map +1 -0
- package/dist/src/code_assist/oauth-credential-storage.d.ts +25 -0
- package/dist/src/code_assist/oauth-credential-storage.js +109 -0
- package/dist/src/code_assist/oauth-credential-storage.js.map +1 -0
- package/dist/src/code_assist/oauth2.d.ts +25 -0
- package/dist/src/code_assist/oauth2.js +579 -0
- package/dist/src/code_assist/oauth2.js.map +1 -0
- package/dist/src/code_assist/server.d.ts +50 -0
- package/dist/src/code_assist/server.js +228 -0
- package/dist/src/code_assist/server.js.map +1 -0
- package/dist/src/code_assist/setup.d.ts +46 -0
- package/dist/src/code_assist/setup.js +179 -0
- package/dist/src/code_assist/setup.js.map +1 -0
- package/dist/src/code_assist/telemetry.d.ts +14 -0
- package/dist/src/code_assist/telemetry.js +157 -0
- package/dist/src/code_assist/telemetry.js.map +1 -0
- package/dist/src/code_assist/types.d.ts +306 -0
- package/dist/src/code_assist/types.js +94 -0
- package/dist/src/code_assist/types.js.map +1 -0
- package/dist/src/cognitive/gemini-adapter.d.ts +29 -0
- package/dist/src/cognitive/gemini-adapter.js +109 -0
- package/dist/src/cognitive/gemini-adapter.js.map +1 -0
- package/dist/src/cognitive/index.d.ts +22 -0
- package/dist/src/cognitive/index.js +50 -0
- package/dist/src/cognitive/index.js.map +1 -0
- package/dist/src/cognitive/integration.d.ts +57 -0
- package/dist/src/cognitive/integration.js +103 -0
- package/dist/src/cognitive/integration.js.map +1 -0
- package/dist/src/cognitive/loader/index.d.ts +8 -0
- package/dist/src/cognitive/loader/index.js +9 -0
- package/dist/src/cognitive/loader/index.js.map +1 -0
- package/dist/src/cognitive/loader/module-loader.d.ts +67 -0
- package/dist/src/cognitive/loader/module-loader.js +369 -0
- package/dist/src/cognitive/loader/module-loader.js.map +1 -0
- package/dist/src/cognitive/runtime/envelope.d.ts +31 -0
- package/dist/src/cognitive/runtime/envelope.js +167 -0
- package/dist/src/cognitive/runtime/envelope.js.map +1 -0
- package/dist/src/cognitive/runtime/executor.d.ts +65 -0
- package/dist/src/cognitive/runtime/executor.js +245 -0
- package/dist/src/cognitive/runtime/executor.js.map +1 -0
- package/dist/src/cognitive/runtime/index.d.ts +12 -0
- package/dist/src/cognitive/runtime/index.js +18 -0
- package/dist/src/cognitive/runtime/index.js.map +1 -0
- package/dist/src/cognitive/runtime/prompt-builder.d.ts +34 -0
- package/dist/src/cognitive/runtime/prompt-builder.js +216 -0
- package/dist/src/cognitive/runtime/prompt-builder.js.map +1 -0
- package/dist/src/cognitive/runtime/repair-pass.d.ts +43 -0
- package/dist/src/cognitive/runtime/repair-pass.js +170 -0
- package/dist/src/cognitive/runtime/repair-pass.js.map +1 -0
- package/dist/src/cognitive/runtime/risk-aggregator.d.ts +39 -0
- package/dist/src/cognitive/runtime/risk-aggregator.js +90 -0
- package/dist/src/cognitive/runtime/risk-aggregator.js.map +1 -0
- package/dist/src/cognitive/tool/cognitive-registry.d.ts +99 -0
- package/dist/src/cognitive/tool/cognitive-registry.js +192 -0
- package/dist/src/cognitive/tool/cognitive-registry.js.map +1 -0
- package/dist/src/cognitive/tool/cognitive-tool.d.ts +56 -0
- package/dist/src/cognitive/tool/cognitive-tool.js +217 -0
- package/dist/src/cognitive/tool/cognitive-tool.js.map +1 -0
- package/dist/src/cognitive/tool/index.d.ts +9 -0
- package/dist/src/cognitive/tool/index.js +10 -0
- package/dist/src/cognitive/tool/index.js.map +1 -0
- package/dist/src/cognitive/types.d.ts +234 -0
- package/dist/src/cognitive/types.js +10 -0
- package/dist/src/cognitive/types.js.map +1 -0
- package/dist/src/cognitive/validator/envelope-validator.d.ts +45 -0
- package/dist/src/cognitive/validator/envelope-validator.js +214 -0
- package/dist/src/cognitive/validator/envelope-validator.js.map +1 -0
- package/dist/src/cognitive/validator/index.d.ts +9 -0
- package/dist/src/cognitive/validator/index.js +10 -0
- package/dist/src/cognitive/validator/index.js.map +1 -0
- package/dist/src/cognitive/validator/schema-validator.d.ts +46 -0
- package/dist/src/cognitive/validator/schema-validator.js +202 -0
- package/dist/src/cognitive/validator/schema-validator.js.map +1 -0
- package/dist/src/commands/cognitive.d.ts +39 -0
- package/dist/src/commands/cognitive.js +335 -0
- package/dist/src/commands/cognitive.js.map +1 -0
- package/dist/src/commands/extensions.d.ts +7 -0
- package/dist/src/commands/extensions.js +9 -0
- package/dist/src/commands/extensions.js.map +1 -0
- package/dist/src/commands/init.d.ts +7 -0
- package/dist/src/commands/init.js +53 -0
- package/dist/src/commands/init.js.map +1 -0
- package/dist/src/commands/memory.d.ts +11 -0
- package/dist/src/commands/memory.js +80 -0
- package/dist/src/commands/memory.js.map +1 -0
- package/dist/src/commands/restore.d.ts +9 -0
- package/dist/src/commands/restore.js +46 -0
- package/dist/src/commands/restore.js.map +1 -0
- package/dist/src/commands/types.d.ts +41 -0
- package/dist/src/commands/types.js +7 -0
- package/dist/src/commands/types.js.map +1 -0
- package/dist/src/config/config.d.ts +766 -0
- package/dist/src/config/config.js +1625 -0
- package/dist/src/config/config.js.map +1 -0
- package/dist/src/config/constants.d.ts +15 -0
- package/dist/src/config/constants.js +24 -0
- package/dist/src/config/constants.js.map +1 -0
- package/dist/src/config/defaultModelConfigs.d.ts +7 -0
- package/dist/src/config/defaultModelConfigs.js +231 -0
- package/dist/src/config/defaultModelConfigs.js.map +1 -0
- package/dist/src/config/models.d.ts +67 -0
- package/dist/src/config/models.js +144 -0
- package/dist/src/config/models.js.map +1 -0
- package/dist/src/config/storage.d.ts +44 -0
- package/dist/src/config/storage.js +139 -0
- package/dist/src/config/storage.js.map +1 -0
- package/dist/src/confirmation-bus/index.d.ts +7 -0
- package/dist/src/confirmation-bus/index.js +8 -0
- package/dist/src/confirmation-bus/index.js.map +1 -0
- package/dist/src/confirmation-bus/message-bus.d.ts +24 -0
- package/dist/src/confirmation-bus/message-bus.js +120 -0
- package/dist/src/confirmation-bus/message-bus.js.map +1 -0
- package/dist/src/confirmation-bus/types.d.ts +147 -0
- package/dist/src/confirmation-bus/types.js +25 -0
- package/dist/src/confirmation-bus/types.js.map +1 -0
- package/dist/src/core/apiKeyCredentialStorage.d.ts +17 -0
- package/dist/src/core/apiKeyCredentialStorage.js +64 -0
- package/dist/src/core/apiKeyCredentialStorage.js.map +1 -0
- package/dist/src/core/baseLlmClient.d.ts +74 -0
- package/dist/src/core/baseLlmClient.js +167 -0
- package/dist/src/core/baseLlmClient.js.map +1 -0
- package/dist/src/core/client.d.ts +59 -0
- package/dist/src/core/client.js +716 -0
- package/dist/src/core/client.js.map +1 -0
- package/dist/src/core/contentGenerator.d.ts +34 -0
- package/dist/src/core/contentGenerator.js +107 -0
- package/dist/src/core/contentGenerator.js.map +1 -0
- package/dist/src/core/coreToolHookTriggers.d.ts +23 -0
- package/dist/src/core/coreToolHookTriggers.js +195 -0
- package/dist/src/core/coreToolHookTriggers.js.map +1 -0
- package/dist/src/core/coreToolScheduler.d.ts +50 -0
- package/dist/src/core/coreToolScheduler.js +703 -0
- package/dist/src/core/coreToolScheduler.js.map +1 -0
- package/dist/src/core/fakeContentGenerator.d.ts +34 -0
- package/dist/src/core/fakeContentGenerator.js +59 -0
- package/dist/src/core/fakeContentGenerator.js.map +1 -0
- package/dist/src/core/geminiChat.d.ts +160 -0
- package/dist/src/core/geminiChat.js +744 -0
- package/dist/src/core/geminiChat.js.map +1 -0
- package/dist/src/core/geminiRequest.d.ts +13 -0
- package/dist/src/core/geminiRequest.js +11 -0
- package/dist/src/core/geminiRequest.js.map +1 -0
- package/dist/src/core/logger.d.ts +65 -0
- package/dist/src/core/logger.js +368 -0
- package/dist/src/core/logger.js.map +1 -0
- package/dist/src/core/loggingContentGenerator.d.ts +29 -0
- package/dist/src/core/loggingContentGenerator.js +202 -0
- package/dist/src/core/loggingContentGenerator.js.map +1 -0
- package/dist/src/core/prompts.d.ts +19 -0
- package/dist/src/core/prompts.js +27 -0
- package/dist/src/core/prompts.js.map +1 -0
- package/dist/src/core/recordingContentGenerator.d.ts +19 -0
- package/dist/src/core/recordingContentGenerator.js +82 -0
- package/dist/src/core/recordingContentGenerator.js.map +1 -0
- package/dist/src/core/tokenLimits.d.ts +10 -0
- package/dist/src/core/tokenLimits.js +22 -0
- package/dist/src/core/tokenLimits.js.map +1 -0
- package/dist/src/core/turn.d.ts +167 -0
- package/dist/src/core/turn.js +209 -0
- package/dist/src/core/turn.js.map +1 -0
- package/dist/src/fallback/handler.d.ts +7 -0
- package/dist/src/fallback/handler.js +110 -0
- package/dist/src/fallback/handler.js.map +1 -0
- package/dist/src/fallback/types.d.ts +31 -0
- package/dist/src/fallback/types.js +7 -0
- package/dist/src/fallback/types.js.map +1 -0
- package/dist/src/generated/git-commit.d.ts +7 -0
- package/dist/src/generated/git-commit.js +10 -0
- package/dist/src/generated/git-commit.js.map +1 -0
- package/dist/src/hooks/hookAggregator.d.ts +68 -0
- package/dist/src/hooks/hookAggregator.js +279 -0
- package/dist/src/hooks/hookAggregator.js.map +1 -0
- package/dist/src/hooks/hookEventHandler.d.ts +107 -0
- package/dist/src/hooks/hookEventHandler.js +325 -0
- package/dist/src/hooks/hookEventHandler.js.map +1 -0
- package/dist/src/hooks/hookPlanner.d.ts +42 -0
- package/dist/src/hooks/hookPlanner.js +103 -0
- package/dist/src/hooks/hookPlanner.js.map +1 -0
- package/dist/src/hooks/hookRegistry.d.ts +75 -0
- package/dist/src/hooks/hookRegistry.js +215 -0
- package/dist/src/hooks/hookRegistry.js.map +1 -0
- package/dist/src/hooks/hookRunner.d.ts +44 -0
- package/dist/src/hooks/hookRunner.js +329 -0
- package/dist/src/hooks/hookRunner.js.map +1 -0
- package/dist/src/hooks/hookSystem.d.ts +99 -0
- package/dist/src/hooks/hookSystem.js +262 -0
- package/dist/src/hooks/hookSystem.js.map +1 -0
- package/dist/src/hooks/hookTranslator.d.ts +113 -0
- package/dist/src/hooks/hookTranslator.js +233 -0
- package/dist/src/hooks/hookTranslator.js.map +1 -0
- package/dist/src/hooks/index.d.ts +16 -0
- package/dist/src/hooks/index.js +16 -0
- package/dist/src/hooks/index.js.map +1 -0
- package/dist/src/hooks/trustedHooks.d.ts +28 -0
- package/dist/src/hooks/trustedHooks.js +90 -0
- package/dist/src/hooks/trustedHooks.js.map +1 -0
- package/dist/src/hooks/types.d.ts +442 -0
- package/dist/src/hooks/types.js +303 -0
- package/dist/src/hooks/types.js.map +1 -0
- package/dist/src/ide/constants.d.ts +9 -0
- package/dist/src/ide/constants.js +10 -0
- package/dist/src/ide/constants.js.map +1 -0
- package/dist/src/ide/detect-ide.d.ts +109 -0
- package/dist/src/ide/detect-ide.js +125 -0
- package/dist/src/ide/detect-ide.js.map +1 -0
- package/dist/src/ide/ide-client.d.ts +113 -0
- package/dist/src/ide/ide-client.js +669 -0
- package/dist/src/ide/ide-client.js.map +1 -0
- package/dist/src/ide/ide-installer.d.ts +14 -0
- package/dist/src/ide/ide-installer.js +227 -0
- package/dist/src/ide/ide-installer.js.map +1 -0
- package/dist/src/ide/ideContext.d.ts +44 -0
- package/dist/src/ide/ideContext.js +101 -0
- package/dist/src/ide/ideContext.js.map +1 -0
- package/dist/src/ide/process-utils.d.ts +21 -0
- package/dist/src/ide/process-utils.js +181 -0
- package/dist/src/ide/process-utils.js.map +1 -0
- package/dist/src/ide/types.d.ts +486 -0
- package/dist/src/ide/types.js +138 -0
- package/dist/src/ide/types.js.map +1 -0
- package/dist/src/index.d.ts +145 -0
- package/dist/src/index.js +161 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mcp/auth-provider.d.ts +16 -0
- package/dist/src/mcp/auth-provider.js +7 -0
- package/dist/src/mcp/auth-provider.js.map +1 -0
- package/dist/src/mcp/google-auth-provider.d.ts +33 -0
- package/dist/src/mcp/google-auth-provider.js +118 -0
- package/dist/src/mcp/google-auth-provider.js.map +1 -0
- package/dist/src/mcp/oauth-provider.d.ts +160 -0
- package/dist/src/mcp/oauth-provider.js +729 -0
- package/dist/src/mcp/oauth-provider.js.map +1 -0
- package/dist/src/mcp/oauth-token-storage.d.ts +65 -0
- package/dist/src/mcp/oauth-token-storage.js +181 -0
- package/dist/src/mcp/oauth-token-storage.js.map +1 -0
- package/dist/src/mcp/oauth-utils.d.ts +142 -0
- package/dist/src/mcp/oauth-utils.js +289 -0
- package/dist/src/mcp/oauth-utils.js.map +1 -0
- package/dist/src/mcp/sa-impersonation-provider.d.ts +27 -0
- package/dist/src/mcp/sa-impersonation-provider.js +113 -0
- package/dist/src/mcp/sa-impersonation-provider.js.map +1 -0
- package/dist/src/mcp/token-storage/base-token-storage.d.ts +19 -0
- package/dist/src/mcp/token-storage/base-token-storage.js +36 -0
- package/dist/src/mcp/token-storage/base-token-storage.js.map +1 -0
- package/dist/src/mcp/token-storage/file-token-storage.d.ts +24 -0
- package/dist/src/mcp/token-storage/file-token-storage.js +145 -0
- package/dist/src/mcp/token-storage/file-token-storage.js.map +1 -0
- package/dist/src/mcp/token-storage/hybrid-token-storage.d.ts +23 -0
- package/dist/src/mcp/token-storage/hybrid-token-storage.js +78 -0
- package/dist/src/mcp/token-storage/hybrid-token-storage.js.map +1 -0
- package/dist/src/mcp/token-storage/index.d.ts +11 -0
- package/dist/src/mcp/token-storage/index.js +12 -0
- package/dist/src/mcp/token-storage/index.js.map +1 -0
- package/dist/src/mcp/token-storage/keychain-token-storage.d.ts +35 -0
- package/dist/src/mcp/token-storage/keychain-token-storage.js +246 -0
- package/dist/src/mcp/token-storage/keychain-token-storage.js.map +1 -0
- package/dist/src/mcp/token-storage/types.d.ts +44 -0
- package/dist/src/mcp/token-storage/types.js +11 -0
- package/dist/src/mcp/token-storage/types.js.map +1 -0
- package/dist/src/mocks/msw.d.ts +6 -0
- package/dist/src/mocks/msw.js +8 -0
- package/dist/src/mocks/msw.js.map +1 -0
- package/dist/src/output/json-formatter.d.ts +11 -0
- package/dist/src/output/json-formatter.js +33 -0
- package/dist/src/output/json-formatter.js.map +1 -0
- package/dist/src/output/stream-json-formatter.d.ts +32 -0
- package/dist/src/output/stream-json-formatter.js +58 -0
- package/dist/src/output/stream-json-formatter.js.map +1 -0
- package/dist/src/output/types.d.ts +85 -0
- package/dist/src/output/types.js +22 -0
- package/dist/src/output/types.js.map +1 -0
- package/dist/src/policy/config.d.ts +31 -0
- package/dist/src/policy/config.js +355 -0
- package/dist/src/policy/config.js.map +1 -0
- package/dist/src/policy/index.d.ts +9 -0
- package/dist/src/policy/index.js +10 -0
- package/dist/src/policy/index.js.map +1 -0
- package/dist/src/policy/policies/discovered.toml +8 -0
- package/dist/src/policy/policies/plan.toml +79 -0
- package/dist/src/policy/policies/read-only.toml +51 -0
- package/dist/src/policy/policies/write.toml +78 -0
- package/dist/src/policy/policies/yolo.toml +32 -0
- package/dist/src/policy/policy-engine.d.ts +65 -0
- package/dist/src/policy/policy-engine.js +357 -0
- package/dist/src/policy/policy-engine.js.map +1 -0
- package/dist/src/policy/stable-stringify.d.ts +58 -0
- package/dist/src/policy/stable-stringify.js +122 -0
- package/dist/src/policy/stable-stringify.js.map +1 -0
- package/dist/src/policy/toml-loader.d.ts +45 -0
- package/dist/src/policy/toml-loader.js +366 -0
- package/dist/src/policy/toml-loader.js.map +1 -0
- package/dist/src/policy/types.d.ts +220 -0
- package/dist/src/policy/types.js +44 -0
- package/dist/src/policy/types.js.map +1 -0
- package/dist/src/policy/utils.d.ts +21 -0
- package/dist/src/policy/utils.js +45 -0
- package/dist/src/policy/utils.js.map +1 -0
- package/dist/src/prompts/mcp-prompts.d.ts +8 -0
- package/dist/src/prompts/mcp-prompts.js +13 -0
- package/dist/src/prompts/mcp-prompts.js.map +1 -0
- package/dist/src/prompts/prompt-registry.d.ts +34 -0
- package/dist/src/prompts/prompt-registry.js +64 -0
- package/dist/src/prompts/prompt-registry.js.map +1 -0
- package/dist/src/prompts/promptProvider.d.ts +18 -0
- package/dist/src/prompts/promptProvider.js +129 -0
- package/dist/src/prompts/promptProvider.js.map +1 -0
- package/dist/src/prompts/snippets.d.ts +76 -0
- package/dist/src/prompts/snippets.js +455 -0
- package/dist/src/prompts/snippets.js.map +1 -0
- package/dist/src/prompts/utils.d.ts +23 -0
- package/dist/src/prompts/utils.js +72 -0
- package/dist/src/prompts/utils.js.map +1 -0
- package/dist/src/resources/resource-registry.d.ts +30 -0
- package/dist/src/resources/resource-registry.js +57 -0
- package/dist/src/resources/resource-registry.js.map +1 -0
- package/dist/src/routing/modelRouterService.d.ts +23 -0
- package/dist/src/routing/modelRouterService.js +80 -0
- package/dist/src/routing/modelRouterService.js.map +1 -0
- package/dist/src/routing/routingStrategy.d.ts +64 -0
- package/dist/src/routing/routingStrategy.js +7 -0
- package/dist/src/routing/routingStrategy.js.map +1 -0
- package/dist/src/routing/strategies/classifierStrategy.d.ts +12 -0
- package/dist/src/routing/strategies/classifierStrategy.js +152 -0
- package/dist/src/routing/strategies/classifierStrategy.js.map +1 -0
- package/dist/src/routing/strategies/compositeStrategy.d.ts +26 -0
- package/dist/src/routing/strategies/compositeStrategy.js +70 -0
- package/dist/src/routing/strategies/compositeStrategy.js.map +1 -0
- package/dist/src/routing/strategies/defaultStrategy.d.ts +12 -0
- package/dist/src/routing/strategies/defaultStrategy.js +21 -0
- package/dist/src/routing/strategies/defaultStrategy.js.map +1 -0
- package/dist/src/routing/strategies/fallbackStrategy.d.ts +12 -0
- package/dist/src/routing/strategies/fallbackStrategy.js +33 -0
- package/dist/src/routing/strategies/fallbackStrategy.js.map +1 -0
- package/dist/src/routing/strategies/numericalClassifierStrategy.d.ts +13 -0
- package/dist/src/routing/strategies/numericalClassifierStrategy.js +178 -0
- package/dist/src/routing/strategies/numericalClassifierStrategy.js.map +1 -0
- package/dist/src/routing/strategies/overrideStrategy.d.ts +15 -0
- package/dist/src/routing/strategies/overrideStrategy.js +29 -0
- package/dist/src/routing/strategies/overrideStrategy.js.map +1 -0
- package/dist/src/safety/built-in.d.ts +21 -0
- package/dist/src/safety/built-in.js +106 -0
- package/dist/src/safety/built-in.js.map +1 -0
- package/dist/src/safety/checker-runner.d.ts +48 -0
- package/dist/src/safety/checker-runner.js +219 -0
- package/dist/src/safety/checker-runner.js.map +1 -0
- package/dist/src/safety/context-builder.d.ts +23 -0
- package/dist/src/safety/context-builder.js +47 -0
- package/dist/src/safety/context-builder.js.map +1 -0
- package/dist/src/safety/protocol.d.ts +88 -0
- package/dist/src/safety/protocol.js +15 -0
- package/dist/src/safety/protocol.js.map +1 -0
- package/dist/src/safety/registry.d.ts +26 -0
- package/dist/src/safety/registry.js +65 -0
- package/dist/src/safety/registry.js.map +1 -0
- package/dist/src/scheduler/confirmation.d.ts +49 -0
- package/dist/src/scheduler/confirmation.js +183 -0
- package/dist/src/scheduler/confirmation.js.map +1 -0
- package/dist/src/scheduler/policy.d.ts +25 -0
- package/dist/src/scheduler/policy.js +108 -0
- package/dist/src/scheduler/policy.js.map +1 -0
- package/dist/src/scheduler/scheduler.d.ts +61 -0
- package/dist/src/scheduler/scheduler.js +356 -0
- package/dist/src/scheduler/scheduler.js.map +1 -0
- package/dist/src/scheduler/state-manager.d.ts +73 -0
- package/dist/src/scheduler/state-manager.js +356 -0
- package/dist/src/scheduler/state-manager.js.map +1 -0
- package/dist/src/scheduler/tool-executor.d.ts +22 -0
- package/dist/src/scheduler/tool-executor.js +201 -0
- package/dist/src/scheduler/tool-executor.js.map +1 -0
- package/dist/src/scheduler/tool-modifier.d.ts +23 -0
- package/dist/src/scheduler/tool-modifier.js +50 -0
- package/dist/src/scheduler/tool-modifier.js.map +1 -0
- package/dist/src/scheduler/types.d.ts +118 -0
- package/dist/src/scheduler/types.js +7 -0
- package/dist/src/scheduler/types.js.map +1 -0
- package/dist/src/services/chatCompressionService.d.ts +41 -0
- package/dist/src/services/chatCompressionService.js +339 -0
- package/dist/src/services/chatCompressionService.js.map +1 -0
- package/dist/src/services/chatRecordingService.d.ts +174 -0
- package/dist/src/services/chatRecordingService.js +427 -0
- package/dist/src/services/chatRecordingService.js.map +1 -0
- package/dist/src/services/contextManager.d.ts +29 -0
- package/dist/src/services/contextManager.js +71 -0
- package/dist/src/services/contextManager.js.map +1 -0
- package/dist/src/services/environmentSanitization.d.ts +15 -0
- package/dist/src/services/environmentSanitization.js +145 -0
- package/dist/src/services/environmentSanitization.js.map +1 -0
- package/dist/src/services/fileDiscoveryService.d.ts +45 -0
- package/dist/src/services/fileDiscoveryService.js +141 -0
- package/dist/src/services/fileDiscoveryService.js.map +1 -0
- package/dist/src/services/fileSystemService.d.ts +31 -0
- package/dist/src/services/fileSystemService.js +18 -0
- package/dist/src/services/fileSystemService.js.map +1 -0
- package/dist/src/services/gitService.d.ts +24 -0
- package/dist/src/services/gitService.js +132 -0
- package/dist/src/services/gitService.js.map +1 -0
- package/dist/src/services/loopDetectionService.d.ts +106 -0
- package/dist/src/services/loopDetectionService.js +433 -0
- package/dist/src/services/loopDetectionService.js.map +1 -0
- package/dist/src/services/modelConfigService.d.ts +86 -0
- package/dist/src/services/modelConfigService.js +215 -0
- package/dist/src/services/modelConfigService.js.map +1 -0
- package/dist/src/services/modelConfigServiceTestUtils.d.ts +10 -0
- package/dist/src/services/modelConfigServiceTestUtils.js +17 -0
- package/dist/src/services/modelConfigServiceTestUtils.js.map +1 -0
- package/dist/src/services/sessionSummaryService.d.ts +28 -0
- package/dist/src/services/sessionSummaryService.js +131 -0
- package/dist/src/services/sessionSummaryService.js.map +1 -0
- package/dist/src/services/sessionSummaryUtils.d.ts +16 -0
- package/dist/src/services/sessionSummaryUtils.js +129 -0
- package/dist/src/services/sessionSummaryUtils.js.map +1 -0
- package/dist/src/services/shellExecutionService.d.ts +145 -0
- package/dist/src/services/shellExecutionService.js +871 -0
- package/dist/src/services/shellExecutionService.js.map +1 -0
- package/dist/src/services/test-data/resolved-aliases-retry.golden.json +238 -0
- package/dist/src/services/test-data/resolved-aliases.golden.json +238 -0
- package/dist/src/skills/builtin/skill-creator/SKILL.md +382 -0
- package/dist/src/skills/builtin/skill-creator/scripts/init_skill.cjs +235 -0
- package/dist/src/skills/builtin/skill-creator/scripts/package_skill.cjs +102 -0
- package/dist/src/skills/builtin/skill-creator/scripts/validate_skill.cjs +127 -0
- package/dist/src/skills/skillLoader.d.ts +31 -0
- package/dist/src/skills/skillLoader.js +133 -0
- package/dist/src/skills/skillLoader.js.map +1 -0
- package/dist/src/skills/skillManager.d.ts +69 -0
- package/dist/src/skills/skillManager.js +138 -0
- package/dist/src/skills/skillManager.js.map +1 -0
- package/dist/src/telemetry/activity-detector.d.ts +41 -0
- package/dist/src/telemetry/activity-detector.js +61 -0
- package/dist/src/telemetry/activity-detector.js.map +1 -0
- package/dist/src/telemetry/activity-monitor.d.ts +116 -0
- package/dist/src/telemetry/activity-monitor.js +209 -0
- package/dist/src/telemetry/activity-monitor.js.map +1 -0
- package/dist/src/telemetry/activity-types.d.ts +19 -0
- package/dist/src/telemetry/activity-types.js +21 -0
- package/dist/src/telemetry/activity-types.js.map +1 -0
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.d.ts +172 -0
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.js +1316 -0
- package/dist/src/telemetry/clearcut-logger/clearcut-logger.js.map +1 -0
- package/dist/src/telemetry/clearcut-logger/event-metadata-key.d.ts +150 -0
- package/dist/src/telemetry/clearcut-logger/event-metadata-key.js +377 -0
- package/dist/src/telemetry/clearcut-logger/event-metadata-key.js.map +1 -0
- package/dist/src/telemetry/config.d.ts +31 -0
- package/dist/src/telemetry/config.js +78 -0
- package/dist/src/telemetry/config.js.map +1 -0
- package/dist/src/telemetry/constants.d.ts +6 -0
- package/dist/src/telemetry/constants.js +7 -0
- package/dist/src/telemetry/constants.js.map +1 -0
- package/dist/src/telemetry/file-exporters.d.ts +29 -0
- package/dist/src/telemetry/file-exporters.js +62 -0
- package/dist/src/telemetry/file-exporters.js.map +1 -0
- package/dist/src/telemetry/gcp-exporters.d.ts +35 -0
- package/dist/src/telemetry/gcp-exporters.js +120 -0
- package/dist/src/telemetry/gcp-exporters.js.map +1 -0
- package/dist/src/telemetry/high-water-mark-tracker.d.ts +43 -0
- package/dist/src/telemetry/high-water-mark-tracker.js +88 -0
- package/dist/src/telemetry/high-water-mark-tracker.js.map +1 -0
- package/dist/src/telemetry/index.d.ts +33 -0
- package/dist/src/telemetry/index.js +44 -0
- package/dist/src/telemetry/index.js.map +1 -0
- package/dist/src/telemetry/integration.test.circular.d.ts +6 -0
- package/dist/src/telemetry/integration.test.circular.js +54 -0
- package/dist/src/telemetry/integration.test.circular.js.map +1 -0
- package/dist/src/telemetry/loggers.d.ts +46 -0
- package/dist/src/telemetry/loggers.js +517 -0
- package/dist/src/telemetry/loggers.js.map +1 -0
- package/dist/src/telemetry/loggers.test.circular.d.ts +6 -0
- package/dist/src/telemetry/loggers.test.circular.js +107 -0
- package/dist/src/telemetry/loggers.test.circular.js.map +1 -0
- package/dist/src/telemetry/memory-monitor.d.ts +149 -0
- package/dist/src/telemetry/memory-monitor.js +335 -0
- package/dist/src/telemetry/memory-monitor.js.map +1 -0
- package/dist/src/telemetry/metrics.d.ts +533 -0
- package/dist/src/telemetry/metrics.js +852 -0
- package/dist/src/telemetry/metrics.js.map +1 -0
- package/dist/src/telemetry/rate-limiter.d.ts +48 -0
- package/dist/src/telemetry/rate-limiter.js +100 -0
- package/dist/src/telemetry/rate-limiter.js.map +1 -0
- package/dist/src/telemetry/sanitize.d.ts +25 -0
- package/dist/src/telemetry/sanitize.js +48 -0
- package/dist/src/telemetry/sanitize.js.map +1 -0
- package/dist/src/telemetry/sdk.d.ts +16 -0
- package/dist/src/telemetry/sdk.js +307 -0
- package/dist/src/telemetry/sdk.js.map +1 -0
- package/dist/src/telemetry/semantic.d.ts +82 -0
- package/dist/src/telemetry/semantic.js +357 -0
- package/dist/src/telemetry/semantic.js.map +1 -0
- package/dist/src/telemetry/startupProfiler.d.ts +51 -0
- package/dist/src/telemetry/startupProfiler.js +170 -0
- package/dist/src/telemetry/startupProfiler.js.map +1 -0
- package/dist/src/telemetry/telemetry-utils.d.ts +6 -0
- package/dist/src/telemetry/telemetry-utils.js +14 -0
- package/dist/src/telemetry/telemetry-utils.js.map +1 -0
- package/dist/src/telemetry/telemetryAttributes.d.ts +8 -0
- package/dist/src/telemetry/telemetryAttributes.js +19 -0
- package/dist/src/telemetry/telemetryAttributes.js.map +1 -0
- package/dist/src/telemetry/tool-call-decision.d.ts +13 -0
- package/dist/src/telemetry/tool-call-decision.js +29 -0
- package/dist/src/telemetry/tool-call-decision.js.map +1 -0
- package/dist/src/telemetry/trace.d.ts +46 -0
- package/dist/src/telemetry/trace.js +121 -0
- package/dist/src/telemetry/trace.js.map +1 -0
- package/dist/src/telemetry/types.d.ts +566 -0
- package/dist/src/telemetry/types.js +1495 -0
- package/dist/src/telemetry/types.js.map +1 -0
- package/dist/src/telemetry/uiTelemetry.d.ts +76 -0
- package/dist/src/telemetry/uiTelemetry.js +154 -0
- package/dist/src/telemetry/uiTelemetry.js.map +1 -0
- package/dist/src/test-utils/config.d.ts +17 -0
- package/dist/src/test-utils/config.js +32 -0
- package/dist/src/test-utils/config.js.map +1 -0
- package/dist/src/test-utils/index.d.ts +6 -0
- package/dist/src/test-utils/index.js +7 -0
- package/dist/src/test-utils/index.js.map +1 -0
- package/dist/src/test-utils/mock-message-bus.d.ts +43 -0
- package/dist/src/test-utils/mock-message-bus.js +96 -0
- package/dist/src/test-utils/mock-message-bus.js.map +1 -0
- package/dist/src/test-utils/mock-tool.d.ts +69 -0
- package/dist/src/test-utils/mock-tool.js +123 -0
- package/dist/src/test-utils/mock-tool.js.map +1 -0
- package/dist/src/test-utils/mockWorkspaceContext.d.ts +13 -0
- package/dist/src/test-utils/mockWorkspaceContext.js +24 -0
- package/dist/src/test-utils/mockWorkspaceContext.js.map +1 -0
- package/dist/src/tools/activate-skill.d.ts +27 -0
- package/dist/src/tools/activate-skill.js +133 -0
- package/dist/src/tools/activate-skill.js.map +1 -0
- package/dist/src/tools/ask-user.d.ts +23 -0
- package/dist/src/tools/ask-user.js +155 -0
- package/dist/src/tools/ask-user.js.map +1 -0
- package/dist/src/tools/constants.d.ts +7 -0
- package/dist/src/tools/constants.js +8 -0
- package/dist/src/tools/constants.js.map +1 -0
- package/dist/src/tools/diffOptions.d.ts +9 -0
- package/dist/src/tools/diffOptions.js +50 -0
- package/dist/src/tools/diffOptions.js.map +1 -0
- package/dist/src/tools/edit.d.ts +79 -0
- package/dist/src/tools/edit.js +750 -0
- package/dist/src/tools/edit.js.map +1 -0
- package/dist/src/tools/get-internal-docs.d.ts +27 -0
- package/dist/src/tools/get-internal-docs.js +122 -0
- package/dist/src/tools/get-internal-docs.js.map +1 -0
- package/dist/src/tools/glob.d.ts +57 -0
- package/dist/src/tools/glob.js +240 -0
- package/dist/src/tools/glob.js.map +1 -0
- package/dist/src/tools/grep.d.ts +41 -0
- package/dist/src/tools/grep.js +505 -0
- package/dist/src/tools/grep.js.map +1 -0
- package/dist/src/tools/ls.d.ts +69 -0
- package/dist/src/tools/ls.js +214 -0
- package/dist/src/tools/ls.js.map +1 -0
- package/dist/src/tools/mcp-client-manager.d.ts +93 -0
- package/dist/src/tools/mcp-client-manager.js +338 -0
- package/dist/src/tools/mcp-client-manager.js.map +1 -0
- package/dist/src/tools/mcp-client.d.ts +243 -0
- package/dist/src/tools/mcp-client.js +1351 -0
- package/dist/src/tools/mcp-client.js.map +1 -0
- package/dist/src/tools/mcp-tool.d.ts +49 -0
- package/dist/src/tools/mcp-tool.js +300 -0
- package/dist/src/tools/mcp-tool.js.map +1 -0
- package/dist/src/tools/memoryTool.d.ts +42 -0
- package/dist/src/tools/memoryTool.js +269 -0
- package/dist/src/tools/memoryTool.js.map +1 -0
- package/dist/src/tools/modifiable-tool.d.ts +36 -0
- package/dist/src/tools/modifiable-tool.js +110 -0
- package/dist/src/tools/modifiable-tool.js.map +1 -0
- package/dist/src/tools/read-file.d.ts +37 -0
- package/dist/src/tools/read-file.js +141 -0
- package/dist/src/tools/read-file.js.map +1 -0
- package/dist/src/tools/read-many-files.d.ts +54 -0
- package/dist/src/tools/read-many-files.js +364 -0
- package/dist/src/tools/read-many-files.js.map +1 -0
- package/dist/src/tools/ripGrep.d.ts +74 -0
- package/dist/src/tools/ripGrep.js +422 -0
- package/dist/src/tools/ripGrep.js.map +1 -0
- package/dist/src/tools/shell.d.ts +33 -0
- package/dist/src/tools/shell.js +436 -0
- package/dist/src/tools/shell.js.map +1 -0
- package/dist/src/tools/tool-error.d.ts +70 -0
- package/dist/src/tools/tool-error.js +92 -0
- package/dist/src/tools/tool-error.js.map +1 -0
- package/dist/src/tools/tool-names.d.ts +41 -0
- package/dist/src/tools/tool-names.js +94 -0
- package/dist/src/tools/tool-names.js.map +1 -0
- package/dist/src/tools/tool-registry.d.ts +103 -0
- package/dist/src/tools/tool-registry.js +429 -0
- package/dist/src/tools/tool-registry.js.map +1 -0
- package/dist/src/tools/tools.d.ts +347 -0
- package/dist/src/tools/tools.js +405 -0
- package/dist/src/tools/tools.js.map +1 -0
- package/dist/src/tools/web-fetch.d.ts +35 -0
- package/dist/src/tools/web-fetch.js +299 -0
- package/dist/src/tools/web-fetch.js.map +1 -0
- package/dist/src/tools/web-search.d.ts +50 -0
- package/dist/src/tools/web-search.js +141 -0
- package/dist/src/tools/web-search.js.map +1 -0
- package/dist/src/tools/write-file.d.ts +53 -0
- package/dist/src/tools/write-file.js +341 -0
- package/dist/src/tools/write-file.js.map +1 -0
- package/dist/src/tools/write-todos.d.ts +50 -0
- package/dist/src/tools/write-todos.js +194 -0
- package/dist/src/tools/write-todos.js.map +1 -0
- package/dist/src/utils/apiConversionUtils.d.ts +12 -0
- package/dist/src/utils/apiConversionUtils.js +46 -0
- package/dist/src/utils/apiConversionUtils.js.map +1 -0
- package/dist/src/utils/bfsFileSearch.d.ts +32 -0
- package/dist/src/utils/bfsFileSearch.js +136 -0
- package/dist/src/utils/bfsFileSearch.js.map +1 -0
- package/dist/src/utils/browser.d.ts +13 -0
- package/dist/src/utils/browser.js +50 -0
- package/dist/src/utils/browser.js.map +1 -0
- package/dist/src/utils/channel.d.ts +19 -0
- package/dist/src/utils/channel.js +49 -0
- package/dist/src/utils/channel.js.map +1 -0
- package/dist/src/utils/checkpointUtils.d.ts +82 -0
- package/dist/src/utils/checkpointUtils.js +117 -0
- package/dist/src/utils/checkpointUtils.js.map +1 -0
- package/dist/src/utils/constants.d.ts +7 -0
- package/dist/src/utils/constants.js +8 -0
- package/dist/src/utils/constants.js.map +1 -0
- package/dist/src/utils/customHeaderUtils.d.ts +9 -0
- package/dist/src/utils/customHeaderUtils.js +34 -0
- package/dist/src/utils/customHeaderUtils.js.map +1 -0
- package/dist/src/utils/debugLogger.d.ts +28 -0
- package/dist/src/utils/debugLogger.js +61 -0
- package/dist/src/utils/debugLogger.js.map +1 -0
- package/dist/src/utils/delay.d.ts +16 -0
- package/dist/src/utils/delay.js +43 -0
- package/dist/src/utils/delay.js.map +1 -0
- package/dist/src/utils/editCorrector.d.ts +54 -0
- package/dist/src/utils/editCorrector.js +596 -0
- package/dist/src/utils/editCorrector.js.map +1 -0
- package/dist/src/utils/editor.d.ts +39 -0
- package/dist/src/utils/editor.js +219 -0
- package/dist/src/utils/editor.js.map +1 -0
- package/dist/src/utils/environmentContext.d.ts +23 -0
- package/dist/src/utils/environmentContext.js +81 -0
- package/dist/src/utils/environmentContext.js.map +1 -0
- package/dist/src/utils/errorParsing.d.ts +8 -0
- package/dist/src/utils/errorParsing.js +65 -0
- package/dist/src/utils/errorParsing.js.map +1 -0
- package/dist/src/utils/errorReporting.d.ts +14 -0
- package/dist/src/utils/errorReporting.js +89 -0
- package/dist/src/utils/errorReporting.js.map +1 -0
- package/dist/src/utils/errors.d.ts +53 -0
- package/dist/src/utils/errors.js +145 -0
- package/dist/src/utils/errors.js.map +1 -0
- package/dist/src/utils/events.d.ts +211 -0
- package/dist/src/utils/events.js +134 -0
- package/dist/src/utils/events.js.map +1 -0
- package/dist/src/utils/exitCodes.d.ts +12 -0
- package/dist/src/utils/exitCodes.js +13 -0
- package/dist/src/utils/exitCodes.js.map +1 -0
- package/dist/src/utils/extensionLoader.d.ts +86 -0
- package/dist/src/utils/extensionLoader.js +208 -0
- package/dist/src/utils/extensionLoader.js.map +1 -0
- package/dist/src/utils/fetch.d.ts +12 -0
- package/dist/src/utils/fetch.js +55 -0
- package/dist/src/utils/fetch.js.map +1 -0
- package/dist/src/utils/fileDiffUtils.d.ts +18 -0
- package/dist/src/utils/fileDiffUtils.js +37 -0
- package/dist/src/utils/fileDiffUtils.js.map +1 -0
- package/dist/src/utils/fileUtils.d.ts +86 -0
- package/dist/src/utils/fileUtils.js +495 -0
- package/dist/src/utils/fileUtils.js.map +1 -0
- package/dist/src/utils/filesearch/crawlCache.d.ts +25 -0
- package/dist/src/utils/filesearch/crawlCache.js +57 -0
- package/dist/src/utils/filesearch/crawlCache.js.map +1 -0
- package/dist/src/utils/filesearch/crawler.d.ts +16 -0
- package/dist/src/utils/filesearch/crawler.js +67 -0
- package/dist/src/utils/filesearch/crawler.js.map +1 -0
- package/dist/src/utils/filesearch/fileSearch.d.ts +39 -0
- package/dist/src/utils/filesearch/fileSearch.js +192 -0
- package/dist/src/utils/filesearch/fileSearch.js.map +1 -0
- package/dist/src/utils/filesearch/ignore.d.ts +37 -0
- package/dist/src/utils/filesearch/ignore.js +99 -0
- package/dist/src/utils/filesearch/ignore.js.map +1 -0
- package/dist/src/utils/filesearch/result-cache.d.ts +33 -0
- package/dist/src/utils/filesearch/result-cache.js +59 -0
- package/dist/src/utils/filesearch/result-cache.js.map +1 -0
- package/dist/src/utils/formatters.d.ts +7 -0
- package/dist/src/utils/formatters.js +17 -0
- package/dist/src/utils/formatters.js.map +1 -0
- package/dist/src/utils/generateContentResponseUtilities.d.ts +15 -0
- package/dist/src/utils/generateContentResponseUtilities.js +186 -0
- package/dist/src/utils/generateContentResponseUtilities.js.map +1 -0
- package/dist/src/utils/getFolderStructure.d.ts +31 -0
- package/dist/src/utils/getFolderStructure.js +243 -0
- package/dist/src/utils/getFolderStructure.js.map +1 -0
- package/dist/src/utils/getPty.d.ts +19 -0
- package/dist/src/utils/getPty.js +23 -0
- package/dist/src/utils/getPty.js.map +1 -0
- package/dist/src/utils/gitIgnoreParser.d.ts +19 -0
- package/dist/src/utils/gitIgnoreParser.js +169 -0
- package/dist/src/utils/gitIgnoreParser.js.map +1 -0
- package/dist/src/utils/gitUtils.d.ts +17 -0
- package/dist/src/utils/gitUtils.js +61 -0
- package/dist/src/utils/gitUtils.js.map +1 -0
- package/dist/src/utils/googleErrors.d.ts +104 -0
- package/dist/src/utils/googleErrors.js +165 -0
- package/dist/src/utils/googleErrors.js.map +1 -0
- package/dist/src/utils/googleQuotaErrors.d.ts +51 -0
- package/dist/src/utils/googleQuotaErrors.js +250 -0
- package/dist/src/utils/googleQuotaErrors.js.map +1 -0
- package/dist/src/utils/httpErrors.d.ts +18 -0
- package/dist/src/utils/httpErrors.js +36 -0
- package/dist/src/utils/httpErrors.js.map +1 -0
- package/dist/src/utils/ignoreFileParser.d.ts +30 -0
- package/dist/src/utils/ignoreFileParser.js +100 -0
- package/dist/src/utils/ignoreFileParser.js.map +1 -0
- package/dist/src/utils/ignorePatterns.d.ts +103 -0
- package/dist/src/utils/ignorePatterns.js +220 -0
- package/dist/src/utils/ignorePatterns.js.map +1 -0
- package/dist/src/utils/installationManager.d.ts +16 -0
- package/dist/src/utils/installationManager.js +51 -0
- package/dist/src/utils/installationManager.js.map +1 -0
- package/dist/src/utils/language-detection.d.ts +6 -0
- package/dist/src/utils/language-detection.js +101 -0
- package/dist/src/utils/language-detection.js.map +1 -0
- package/dist/src/utils/llm-edit-fixer.d.ts +26 -0
- package/dist/src/utils/llm-edit-fixer.js +152 -0
- package/dist/src/utils/llm-edit-fixer.js.map +1 -0
- package/dist/src/utils/memoryDiscovery.d.ts +40 -0
- package/dist/src/utils/memoryDiscovery.js +421 -0
- package/dist/src/utils/memoryDiscovery.js.map +1 -0
- package/dist/src/utils/memoryImportProcessor.d.ts +42 -0
- package/dist/src/utils/memoryImportProcessor.js +273 -0
- package/dist/src/utils/memoryImportProcessor.js.map +1 -0
- package/dist/src/utils/messageInspectors.d.ts +8 -0
- package/dist/src/utils/messageInspectors.js +16 -0
- package/dist/src/utils/messageInspectors.js.map +1 -0
- package/dist/src/utils/nextSpeakerChecker.d.ts +12 -0
- package/dist/src/utils/nextSpeakerChecker.js +97 -0
- package/dist/src/utils/nextSpeakerChecker.js.map +1 -0
- package/dist/src/utils/package.d.ts +26 -0
- package/dist/src/utils/package.js +35 -0
- package/dist/src/utils/package.js.map +1 -0
- package/dist/src/utils/partUtils.d.ts +35 -0
- package/dist/src/utils/partUtils.js +133 -0
- package/dist/src/utils/partUtils.js.map +1 -0
- package/dist/src/utils/pathCorrector.d.ts +25 -0
- package/dist/src/utils/pathCorrector.js +43 -0
- package/dist/src/utils/pathCorrector.js.map +1 -0
- package/dist/src/utils/pathReader.d.ts +17 -0
- package/dist/src/utils/pathReader.js +92 -0
- package/dist/src/utils/pathReader.js.map +1 -0
- package/dist/src/utils/paths.d.ts +78 -0
- package/dist/src/utils/paths.js +311 -0
- package/dist/src/utils/paths.js.map +1 -0
- package/dist/src/utils/process-utils.d.ts +32 -0
- package/dist/src/utils/process-utils.js +88 -0
- package/dist/src/utils/process-utils.js.map +1 -0
- package/dist/src/utils/promptIdContext.d.ts +13 -0
- package/dist/src/utils/promptIdContext.js +23 -0
- package/dist/src/utils/promptIdContext.js.map +1 -0
- package/dist/src/utils/quotaErrorDetection.d.ts +16 -0
- package/dist/src/utils/quotaErrorDetection.js +19 -0
- package/dist/src/utils/quotaErrorDetection.js.map +1 -0
- package/dist/src/utils/retry.d.ts +39 -0
- package/dist/src/utils/retry.js +267 -0
- package/dist/src/utils/retry.js.map +1 -0
- package/dist/src/utils/safeJsonStringify.d.ts +13 -0
- package/dist/src/utils/safeJsonStringify.js +49 -0
- package/dist/src/utils/safeJsonStringify.js.map +1 -0
- package/dist/src/utils/schemaValidator.d.ts +21 -0
- package/dist/src/utils/schemaValidator.js +59 -0
- package/dist/src/utils/schemaValidator.js.map +1 -0
- package/dist/src/utils/secure-browser-launcher.d.ts +23 -0
- package/dist/src/utils/secure-browser-launcher.js +165 -0
- package/dist/src/utils/secure-browser-launcher.js.map +1 -0
- package/dist/src/utils/security.d.ts +16 -0
- package/dist/src/utils/security.js +88 -0
- package/dist/src/utils/security.js.map +1 -0
- package/dist/src/utils/session.d.ts +6 -0
- package/dist/src/utils/session.js +8 -0
- package/dist/src/utils/session.js.map +1 -0
- package/dist/src/utils/shell-utils.d.ts +118 -0
- package/dist/src/utils/shell-utils.js +708 -0
- package/dist/src/utils/shell-utils.js.map +1 -0
- package/dist/src/utils/stdio.d.ts +32 -0
- package/dist/src/utils/stdio.js +85 -0
- package/dist/src/utils/stdio.js.map +1 -0
- package/dist/src/utils/summarizer.d.ts +27 -0
- package/dist/src/utils/summarizer.js +50 -0
- package/dist/src/utils/summarizer.js.map +1 -0
- package/dist/src/utils/systemEncoding.d.ts +40 -0
- package/dist/src/utils/systemEncoding.js +150 -0
- package/dist/src/utils/systemEncoding.js.map +1 -0
- package/dist/src/utils/terminal.d.ts +22 -0
- package/dist/src/utils/terminal.js +62 -0
- package/dist/src/utils/terminal.js.map +1 -0
- package/dist/src/utils/terminalSerializer.d.ts +25 -0
- package/dist/src/utils/terminalSerializer.js +444 -0
- package/dist/src/utils/terminalSerializer.js.map +1 -0
- package/dist/src/utils/testUtils.d.ts +29 -0
- package/dist/src/utils/testUtils.js +70 -0
- package/dist/src/utils/testUtils.js.map +1 -0
- package/dist/src/utils/textUtils.d.ts +32 -0
- package/dist/src/utils/textUtils.js +65 -0
- package/dist/src/utils/textUtils.js.map +1 -0
- package/dist/src/utils/thoughtUtils.d.ts +21 -0
- package/dist/src/utils/thoughtUtils.js +39 -0
- package/dist/src/utils/thoughtUtils.js.map +1 -0
- package/dist/src/utils/tokenCalculation.d.ts +19 -0
- package/dist/src/utils/tokenCalculation.js +150 -0
- package/dist/src/utils/tokenCalculation.js.map +1 -0
- package/dist/src/utils/tool-utils.d.ts +28 -0
- package/dist/src/utils/tool-utils.js +96 -0
- package/dist/src/utils/tool-utils.js.map +1 -0
- package/dist/src/utils/toolCallContext.d.ts +35 -0
- package/dist/src/utils/toolCallContext.js +29 -0
- package/dist/src/utils/toolCallContext.js.map +1 -0
- package/dist/src/utils/userAccountManager.d.ts +20 -0
- package/dist/src/utils/userAccountManager.js +115 -0
- package/dist/src/utils/userAccountManager.js.map +1 -0
- package/dist/src/utils/version.d.ts +6 -0
- package/dist/src/utils/version.js +15 -0
- package/dist/src/utils/version.js.map +1 -0
- package/dist/src/utils/workspaceContext.d.ts +82 -0
- package/dist/src/utils/workspaceContext.js +192 -0
- package/dist/src/utils/workspaceContext.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +97 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# IDE integration
|
|
2
|
+
|
|
3
|
+
Gemini CLI can integrate with your IDE to provide a more seamless and
|
|
4
|
+
context-aware experience. This integration allows the CLI to understand your
|
|
5
|
+
workspace better and enables powerful features like native in-editor diffing.
|
|
6
|
+
|
|
7
|
+
Currently, the supported IDEs are [Antigravity](https://antigravity.google),
|
|
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).
|
|
11
|
+
|
|
12
|
+
## Features
|
|
13
|
+
|
|
14
|
+
- **Workspace context:** The CLI automatically gains awareness of your workspace
|
|
15
|
+
to provide more relevant and accurate responses. This context includes:
|
|
16
|
+
- The **10 most recently accessed files** in your workspace.
|
|
17
|
+
- Your active cursor position.
|
|
18
|
+
- Any text you have selected (up to a 16KB limit; longer selections will be
|
|
19
|
+
truncated).
|
|
20
|
+
|
|
21
|
+
- **Native diffing:** When Gemini suggests code modifications, you can view the
|
|
22
|
+
changes directly within your IDE's native diff viewer. This allows you to
|
|
23
|
+
review, edit, and accept or reject the suggested changes seamlessly.
|
|
24
|
+
|
|
25
|
+
- **VS Code commands:** You can access Gemini CLI features directly from the VS
|
|
26
|
+
Code Command Palette (`Cmd+Shift+P` or `Ctrl+Shift+P`):
|
|
27
|
+
- `Gemini CLI: Run`: Starts a new Gemini CLI session in the integrated
|
|
28
|
+
terminal.
|
|
29
|
+
- `Gemini CLI: Accept Diff`: Accepts the changes in the active diff editor.
|
|
30
|
+
- `Gemini CLI: Close Diff Editor`: Rejects the changes and closes the active
|
|
31
|
+
diff editor.
|
|
32
|
+
- `Gemini CLI: View Third-Party Notices`: Displays the third-party notices for
|
|
33
|
+
the extension.
|
|
34
|
+
|
|
35
|
+
## Installation and setup
|
|
36
|
+
|
|
37
|
+
There are three ways to set up the IDE integration:
|
|
38
|
+
|
|
39
|
+
### 1. Automatic nudge (recommended)
|
|
40
|
+
|
|
41
|
+
When you run Gemini CLI inside a supported editor, it will automatically detect
|
|
42
|
+
your environment and prompt you to connect. Answering "Yes" will automatically
|
|
43
|
+
run the necessary setup, which includes installing the companion extension and
|
|
44
|
+
enabling the connection.
|
|
45
|
+
|
|
46
|
+
### 2. Manual installation from CLI
|
|
47
|
+
|
|
48
|
+
If you previously dismissed the prompt or want to install the extension
|
|
49
|
+
manually, you can run the following command inside Gemini CLI:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
/ide install
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
This will find the correct extension for your IDE and install it.
|
|
56
|
+
|
|
57
|
+
### 3. Manual installation from a marketplace
|
|
58
|
+
|
|
59
|
+
You can also install the extension directly from a marketplace.
|
|
60
|
+
|
|
61
|
+
- **For Visual Studio Code:** Install from the
|
|
62
|
+
[VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=google.gemini-cli-vscode-ide-companion).
|
|
63
|
+
- **For VS Code forks:** To support forks of VS Code, the extension is also
|
|
64
|
+
published on the
|
|
65
|
+
[Open VSX Registry](https://open-vsx.org/extension/google/gemini-cli-vscode-ide-companion).
|
|
66
|
+
Follow your editor's instructions for installing extensions from this
|
|
67
|
+
registry.
|
|
68
|
+
|
|
69
|
+
> NOTE: The "Gemini CLI Companion" extension may appear towards the bottom of
|
|
70
|
+
> search results. If you don't see it immediately, try scrolling down or sorting
|
|
71
|
+
> by "Newly Published".
|
|
72
|
+
>
|
|
73
|
+
> After manually installing the extension, you must run `/ide enable` in the CLI
|
|
74
|
+
> to activate the integration.
|
|
75
|
+
|
|
76
|
+
## Usage
|
|
77
|
+
|
|
78
|
+
### Enabling and disabling
|
|
79
|
+
|
|
80
|
+
You can control the IDE integration from within the CLI:
|
|
81
|
+
|
|
82
|
+
- To enable the connection to the IDE, run:
|
|
83
|
+
```
|
|
84
|
+
/ide enable
|
|
85
|
+
```
|
|
86
|
+
- To disable the connection, run:
|
|
87
|
+
```
|
|
88
|
+
/ide disable
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
When enabled, Gemini CLI will automatically attempt to connect to the IDE
|
|
92
|
+
companion extension.
|
|
93
|
+
|
|
94
|
+
### Checking the status
|
|
95
|
+
|
|
96
|
+
To check the connection status and see the context the CLI has received from the
|
|
97
|
+
IDE, run:
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
/ide status
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
If connected, this command will show the IDE it's connected to and a list of
|
|
104
|
+
recently opened files it is aware of.
|
|
105
|
+
|
|
106
|
+
> [!NOTE] The file list is limited to 10 recently accessed files within your
|
|
107
|
+
> workspace and only includes local files on disk.)
|
|
108
|
+
|
|
109
|
+
### Working with diffs
|
|
110
|
+
|
|
111
|
+
When you ask Gemini to modify a file, it can open a diff view directly in your
|
|
112
|
+
editor.
|
|
113
|
+
|
|
114
|
+
**To accept a diff**, you can perform any of the following actions:
|
|
115
|
+
|
|
116
|
+
- Click the **checkmark icon** in the diff editor's title bar.
|
|
117
|
+
- Save the file (e.g., with `Cmd+S` or `Ctrl+S`).
|
|
118
|
+
- Open the Command Palette and run **Gemini CLI: Accept Diff**.
|
|
119
|
+
- Respond with `yes` in the CLI when prompted.
|
|
120
|
+
|
|
121
|
+
**To reject a diff**, you can:
|
|
122
|
+
|
|
123
|
+
- Click the **'x' icon** in the diff editor's title bar.
|
|
124
|
+
- Close the diff editor tab.
|
|
125
|
+
- Open the Command Palette and run **Gemini CLI: Close Diff Editor**.
|
|
126
|
+
- Respond with `no` in the CLI when prompted.
|
|
127
|
+
|
|
128
|
+
You can also **modify the suggested changes** directly in the diff view before
|
|
129
|
+
accepting them.
|
|
130
|
+
|
|
131
|
+
If you select ‘Allow for this session’ in the CLI, changes will no longer show
|
|
132
|
+
up in the IDE as they will be auto-accepted.
|
|
133
|
+
|
|
134
|
+
## Using with sandboxing
|
|
135
|
+
|
|
136
|
+
If you are using Gemini CLI within a sandbox, please be aware of the following:
|
|
137
|
+
|
|
138
|
+
- **On macOS:** The IDE integration requires network access to communicate with
|
|
139
|
+
the IDE companion extension. You must use a Seatbelt profile that allows
|
|
140
|
+
network access.
|
|
141
|
+
- **In a Docker container:** If you run Gemini CLI inside a Docker (or Podman)
|
|
142
|
+
container, the IDE integration can still connect to the VS Code extension
|
|
143
|
+
running on your host machine. The CLI is configured to automatically find the
|
|
144
|
+
IDE server on `host.docker.internal`. No special configuration is usually
|
|
145
|
+
required, but you may need to ensure your Docker networking setup allows
|
|
146
|
+
connections from the container to the host.
|
|
147
|
+
|
|
148
|
+
## Troubleshooting
|
|
149
|
+
|
|
150
|
+
If you encounter issues with IDE integration, here are some common error
|
|
151
|
+
messages and how to resolve them.
|
|
152
|
+
|
|
153
|
+
### Connection errors
|
|
154
|
+
|
|
155
|
+
- **Message:**
|
|
156
|
+
`🔴 Disconnected: Failed to connect to IDE companion extension in [IDE Name]. Please ensure the extension is running. To install the extension, run /ide install.`
|
|
157
|
+
- **Cause:** Gemini CLI could not find the necessary environment variables
|
|
158
|
+
(`GEMINI_CLI_IDE_WORKSPACE_PATH` or `GEMINI_CLI_IDE_SERVER_PORT`) to connect
|
|
159
|
+
to the IDE. This usually means the IDE companion extension is not running or
|
|
160
|
+
did not initialize correctly.
|
|
161
|
+
- **Solution:**
|
|
162
|
+
1. Make sure you have installed the **Gemini CLI Companion** extension in
|
|
163
|
+
your IDE and that it is enabled.
|
|
164
|
+
2. Open a new terminal window in your IDE to ensure it picks up the correct
|
|
165
|
+
environment.
|
|
166
|
+
|
|
167
|
+
- **Message:**
|
|
168
|
+
`🔴 Disconnected: IDE connection error. The connection was lost unexpectedly. Please try reconnecting by running /ide enable`
|
|
169
|
+
- **Cause:** The connection to the IDE companion was lost.
|
|
170
|
+
- **Solution:** Run `/ide enable` to try and reconnect. If the issue
|
|
171
|
+
continues, open a new terminal window or restart your IDE.
|
|
172
|
+
|
|
173
|
+
### Configuration errors
|
|
174
|
+
|
|
175
|
+
- **Message:**
|
|
176
|
+
`🔴 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]`
|
|
177
|
+
- **Cause:** The CLI's current working directory is outside the workspace you
|
|
178
|
+
have open in your IDE.
|
|
179
|
+
- **Solution:** `cd` into the same directory that is open in your IDE and
|
|
180
|
+
restart the CLI.
|
|
181
|
+
|
|
182
|
+
- **Message:**
|
|
183
|
+
`🔴 Disconnected: To use this feature, please open a workspace folder in [IDE Name] and try again.`
|
|
184
|
+
- **Cause:** You have no workspace open in your IDE.
|
|
185
|
+
- **Solution:** Open a workspace in your IDE and restart the CLI.
|
|
186
|
+
|
|
187
|
+
### General errors
|
|
188
|
+
|
|
189
|
+
- **Message:**
|
|
190
|
+
`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]`
|
|
191
|
+
- **Cause:** You are running Gemini CLI in a terminal or environment that is
|
|
192
|
+
not a supported IDE.
|
|
193
|
+
- **Solution:** Run Gemini CLI from the integrated terminal of a supported
|
|
194
|
+
IDE, like Antigravity or VS Code.
|
|
195
|
+
|
|
196
|
+
- **Message:**
|
|
197
|
+
`No installer is available for IDE. Please install the Gemini CLI Companion extension manually from the marketplace.`
|
|
198
|
+
- **Cause:** You ran `/ide install`, but the CLI does not have an automated
|
|
199
|
+
installer for your specific IDE.
|
|
200
|
+
- **Solution:** Open your IDE's extension marketplace, search for "Gemini CLI
|
|
201
|
+
Companion", and
|
|
202
|
+
[install it manually](#3-manual-installation-from-a-marketplace).
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Welcome to Gemini CLI documentation
|
|
2
|
+
|
|
3
|
+
This documentation provides a comprehensive guide to installing, using, and
|
|
4
|
+
developing Gemini CLI, a tool that lets you interact with Gemini models through
|
|
5
|
+
a command-line interface.
|
|
6
|
+
|
|
7
|
+
## Gemini CLI overview
|
|
8
|
+
|
|
9
|
+
Gemini CLI brings the capabilities of Gemini models to your terminal in an
|
|
10
|
+
interactive Read-Eval-Print Loop (REPL) environment. Gemini CLI consists of a
|
|
11
|
+
client-side application (`packages/cli`) that communicates with a local server
|
|
12
|
+
(`packages/core`), which in turn manages requests to the Gemini API and its AI
|
|
13
|
+
models. Gemini CLI also contains a variety of tools for tasks such as performing
|
|
14
|
+
file system operations, running shells, and web fetching, which are managed by
|
|
15
|
+
`packages/core`.
|
|
16
|
+
|
|
17
|
+
## Navigating the documentation
|
|
18
|
+
|
|
19
|
+
This documentation is organized into the following sections:
|
|
20
|
+
|
|
21
|
+
### Overview
|
|
22
|
+
|
|
23
|
+
- **[Architecture overview](./architecture.md):** Understand the high-level
|
|
24
|
+
design of Gemini CLI, including its components and how they interact.
|
|
25
|
+
- **[Contribution guide](../CONTRIBUTING.md):** Information for contributors and
|
|
26
|
+
developers, including setup, building, testing, and coding conventions.
|
|
27
|
+
|
|
28
|
+
### Get started
|
|
29
|
+
|
|
30
|
+
- **[Gemini CLI quickstart](./get-started/index.md):** Let's get started with
|
|
31
|
+
Gemini CLI.
|
|
32
|
+
- **[Gemini 3 Pro on Gemini CLI](./get-started/gemini-3.md):** Learn how to
|
|
33
|
+
enable and use Gemini 3.
|
|
34
|
+
- **[Authentication](./get-started/authentication.md):** Authenticate to Gemini
|
|
35
|
+
CLI.
|
|
36
|
+
- **[Configuration](./get-started/configuration.md):** Learn how to configure
|
|
37
|
+
the CLI.
|
|
38
|
+
- **[Installation](./get-started/installation.md):** Install and run Gemini CLI.
|
|
39
|
+
- **[Examples](./get-started/examples.md):** Example usage of Gemini CLI.
|
|
40
|
+
|
|
41
|
+
### CLI
|
|
42
|
+
|
|
43
|
+
- **[Introduction: Gemini CLI](./cli/index.md):** Overview of the command-line
|
|
44
|
+
interface.
|
|
45
|
+
- **[Commands](./cli/commands.md):** Description of available CLI commands.
|
|
46
|
+
- **[Checkpointing](./cli/checkpointing.md):** Documentation for the
|
|
47
|
+
checkpointing feature.
|
|
48
|
+
- **[Custom commands](./cli/custom-commands.md):** Create your own commands and
|
|
49
|
+
shortcuts for frequently used prompts.
|
|
50
|
+
- **[Enterprise](./cli/enterprise.md):** Gemini CLI for enterprise.
|
|
51
|
+
- **[Headless mode](./cli/headless.md):** Use Gemini CLI programmatically for
|
|
52
|
+
scripting and automation.
|
|
53
|
+
- **[Keyboard shortcuts](./cli/keyboard-shortcuts.md):** A reference for all
|
|
54
|
+
keyboard shortcuts to improve your workflow.
|
|
55
|
+
- **[Model selection](./cli/model.md):** Select the model used to process your
|
|
56
|
+
commands with `/model`.
|
|
57
|
+
- **[Sandbox](./cli/sandbox.md):** Isolate tool execution in a secure,
|
|
58
|
+
containerized environment.
|
|
59
|
+
- **[Agent Skills](./cli/skills.md):** Extend the CLI with specialized expertise
|
|
60
|
+
and procedural workflows.
|
|
61
|
+
- **[Settings](./cli/settings.md):** Configure various aspects of the CLI's
|
|
62
|
+
behavior and appearance with `/settings`.
|
|
63
|
+
- **[Telemetry](./cli/telemetry.md):** Overview of telemetry in the CLI.
|
|
64
|
+
- **[Themes](./cli/themes.md):** Themes for Gemini CLI.
|
|
65
|
+
- **[Token caching](./cli/token-caching.md):** Token caching and optimization.
|
|
66
|
+
- **[Trusted Folders](./cli/trusted-folders.md):** An overview of the Trusted
|
|
67
|
+
Folders security feature.
|
|
68
|
+
- **[Tutorials](./cli/tutorials.md):** Tutorials for Gemini CLI.
|
|
69
|
+
- **[Uninstall](./cli/uninstall.md):** Methods for uninstalling the Gemini CLI.
|
|
70
|
+
|
|
71
|
+
### Core
|
|
72
|
+
|
|
73
|
+
- **[Introduction: Gemini CLI core](./core/index.md):** Information about Gemini
|
|
74
|
+
CLI core.
|
|
75
|
+
- **[Memport](./core/memport.md):** Using the Memory Import Processor.
|
|
76
|
+
- **[Tools API](./core/tools-api.md):** Information on how the core manages and
|
|
77
|
+
exposes tools.
|
|
78
|
+
- **[System Prompt Override](./cli/system-prompt.md):** Replace built-in system
|
|
79
|
+
instructions using `GEMINI_SYSTEM_MD`.
|
|
80
|
+
|
|
81
|
+
- **[Policy Engine](./core/policy-engine.md):** Use the Policy Engine for
|
|
82
|
+
fine-grained control over tool execution.
|
|
83
|
+
|
|
84
|
+
### Tools
|
|
85
|
+
|
|
86
|
+
- **[Introduction: Gemini CLI tools](./tools/index.md):** Information about
|
|
87
|
+
Gemini CLI's tools.
|
|
88
|
+
- **[File system tools](./tools/file-system.md):** Documentation for the
|
|
89
|
+
`read_file` and `write_file` tools.
|
|
90
|
+
- **[Shell tool](./tools/shell.md):** Documentation for the `run_shell_command`
|
|
91
|
+
tool.
|
|
92
|
+
- **[Web fetch tool](./tools/web-fetch.md):** Documentation for the `web_fetch`
|
|
93
|
+
tool.
|
|
94
|
+
- **[Web search tool](./tools/web-search.md):** Documentation for the
|
|
95
|
+
`google_web_search` tool.
|
|
96
|
+
- **[Memory tool](./tools/memory.md):** Documentation for the `save_memory`
|
|
97
|
+
tool.
|
|
98
|
+
- **[Todo tool](./tools/todos.md):** Documentation for the `write_todos` tool.
|
|
99
|
+
- **[MCP servers](./tools/mcp-server.md):** Using MCP servers with Gemini CLI.
|
|
100
|
+
|
|
101
|
+
### Extensions
|
|
102
|
+
|
|
103
|
+
- **[Introduction: Extensions](./extensions/index.md):** How to extend the CLI
|
|
104
|
+
with new functionality.
|
|
105
|
+
- **[Writing extensions](./extensions/writing-extensions.md):** Learn how to
|
|
106
|
+
build your own extension.
|
|
107
|
+
- **[Extension releasing](./extensions/releasing.md):** How to release Gemini
|
|
108
|
+
CLI extensions.
|
|
109
|
+
|
|
110
|
+
### Hooks
|
|
111
|
+
|
|
112
|
+
- **[Hooks](./hooks/index.md):** Intercept and customize Gemini CLI behavior at
|
|
113
|
+
key lifecycle points.
|
|
114
|
+
- **[Writing Hooks](./hooks/writing-hooks.md):** Learn how to create your first
|
|
115
|
+
hook with a comprehensive example.
|
|
116
|
+
- **[Best Practices](./hooks/best-practices.md):** Security, performance, and
|
|
117
|
+
debugging guidelines for hooks.
|
|
118
|
+
|
|
119
|
+
### IDE integration
|
|
120
|
+
|
|
121
|
+
- **[Introduction to IDE integration](./ide-integration/index.md):** Connect the
|
|
122
|
+
CLI to your editor.
|
|
123
|
+
- **[IDE companion extension spec](./ide-integration/ide-companion-spec.md):**
|
|
124
|
+
Spec for building IDE companion extensions.
|
|
125
|
+
|
|
126
|
+
### Development
|
|
127
|
+
|
|
128
|
+
- **[NPM](./npm.md):** Details on how the project's packages are structured.
|
|
129
|
+
- **[Releases](./releases.md):** Information on the project's releases and
|
|
130
|
+
deployment cadence.
|
|
131
|
+
- **[Changelog](./changelogs/index.md):** Highlights and notable changes to
|
|
132
|
+
Gemini CLI.
|
|
133
|
+
- **[Integration tests](./integration-tests.md):** Information about the
|
|
134
|
+
integration testing framework used in this project.
|
|
135
|
+
- **[Issue and PR automation](./issue-and-pr-automation.md):** A detailed
|
|
136
|
+
overview of the automated processes we use to manage and triage issues and
|
|
137
|
+
pull requests.
|
|
138
|
+
|
|
139
|
+
### Support
|
|
140
|
+
|
|
141
|
+
- **[FAQ](./faq.md):** Frequently asked questions.
|
|
142
|
+
- **[Troubleshooting guide](./troubleshooting.md):** Find solutions to common
|
|
143
|
+
problems.
|
|
144
|
+
- **[Quota and pricing](./quota-and-pricing.md):** Learn about the free tier and
|
|
145
|
+
paid options.
|
|
146
|
+
- **[Terms of service and privacy notice](./tos-privacy.md):** Information on
|
|
147
|
+
the terms of service and privacy notices applicable to your use of Gemini CLI.
|
|
148
|
+
|
|
149
|
+
We hope this documentation helps you make the most of Gemini CLI!
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
# Integration tests
|
|
2
|
+
|
|
3
|
+
This document provides information about the integration testing framework used
|
|
4
|
+
in this project.
|
|
5
|
+
|
|
6
|
+
## Overview
|
|
7
|
+
|
|
8
|
+
The integration tests are designed to validate the end-to-end functionality of
|
|
9
|
+
the Gemini CLI. They execute the built binary in a controlled environment and
|
|
10
|
+
verify that it behaves as expected when interacting with the file system.
|
|
11
|
+
|
|
12
|
+
These tests are located in the `integration-tests` directory and are run using a
|
|
13
|
+
custom test runner.
|
|
14
|
+
|
|
15
|
+
## Building the tests
|
|
16
|
+
|
|
17
|
+
Prior to running any integration tests, you need to create a release bundle that
|
|
18
|
+
you want to actually test:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm run bundle
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
You must re-run this command after making any changes to the CLI source code,
|
|
25
|
+
but not after making changes to tests.
|
|
26
|
+
|
|
27
|
+
## Running the tests
|
|
28
|
+
|
|
29
|
+
The integration tests are not run as part of the default `npm run test` command.
|
|
30
|
+
They must be run explicitly using the `npm run test:integration:all` script.
|
|
31
|
+
|
|
32
|
+
The integration tests can also be run using the following shortcut:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm run test:e2e
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Running a specific set of tests
|
|
39
|
+
|
|
40
|
+
To run a subset of test files, you can use
|
|
41
|
+
`npm run <integration test command> <file_name1> ....` where <integration
|
|
42
|
+
test command> is either `test:e2e` or `test:integration*` and `<file_name>`
|
|
43
|
+
is any of the `.test.js` files in the `integration-tests/` directory. For
|
|
44
|
+
example, the following command runs `list_directory.test.js` and
|
|
45
|
+
`write_file.test.js`:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npm run test:e2e list_directory write_file
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Running a single test by name
|
|
52
|
+
|
|
53
|
+
To run a single test by its name, use the `--test-name-pattern` flag:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm run test:e2e -- --test-name-pattern "reads a file"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Regenerating model responses
|
|
60
|
+
|
|
61
|
+
Some integration tests use faked out model responses, which may need to be
|
|
62
|
+
regenerated from time to time as the implementations change.
|
|
63
|
+
|
|
64
|
+
To regenerate these golden files, set the REGENERATE_MODEL_GOLDENS environment
|
|
65
|
+
variable to "true" when running the tests, for example:
|
|
66
|
+
|
|
67
|
+
**WARNING**: If running locally you should review these updated responses for
|
|
68
|
+
any information about yourself or your system that gemini may have included in
|
|
69
|
+
these responses.
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
REGENERATE_MODEL_GOLDENS="true" npm run test:e2e
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**WARNING**: Make sure you run **await rig.cleanup()** at the end of your test,
|
|
76
|
+
else the golden files will not be updated.
|
|
77
|
+
|
|
78
|
+
### Deflaking a test
|
|
79
|
+
|
|
80
|
+
Before adding a **new** integration test, you should test it at least 5 times
|
|
81
|
+
with the deflake script or workflow to make sure that it is not flaky.
|
|
82
|
+
|
|
83
|
+
### Deflake script
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm run deflake -- --runs=5 --command="npm run test:e2e -- -- --test-name-pattern '<your-new-test-name>'"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
#### Deflake workflow
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
gh workflow run deflake.yml --ref <your-branch> -f test_name_pattern="<your-test-name-pattern>"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Running all tests
|
|
96
|
+
|
|
97
|
+
To run the entire suite of integration tests, use the following command:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
npm run test:integration:all
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Sandbox matrix
|
|
104
|
+
|
|
105
|
+
The `all` command will run tests for `no sandboxing`, `docker` and `podman`.
|
|
106
|
+
Each individual type can be run using the following commands:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
npm run test:integration:sandbox:none
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
npm run test:integration:sandbox:docker
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
npm run test:integration:sandbox:podman
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Diagnostics
|
|
121
|
+
|
|
122
|
+
The integration test runner provides several options for diagnostics to help
|
|
123
|
+
track down test failures.
|
|
124
|
+
|
|
125
|
+
### Keeping test output
|
|
126
|
+
|
|
127
|
+
You can preserve the temporary files created during a test run for inspection.
|
|
128
|
+
This is useful for debugging issues with file system operations.
|
|
129
|
+
|
|
130
|
+
To keep the test output set the `KEEP_OUTPUT` environment variable to `true`.
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
KEEP_OUTPUT=true npm run test:integration:sandbox:none
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
When output is kept, the test runner will print the path to the unique directory
|
|
137
|
+
for the test run.
|
|
138
|
+
|
|
139
|
+
### Verbose output
|
|
140
|
+
|
|
141
|
+
For more detailed debugging, set the `VERBOSE` environment variable to `true`.
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
VERBOSE=true npm run test:integration:sandbox:none
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
When using `VERBOSE=true` and `KEEP_OUTPUT=true` in the same command, the output
|
|
148
|
+
is streamed to the console and also saved to a log file within the test's
|
|
149
|
+
temporary directory.
|
|
150
|
+
|
|
151
|
+
The verbose output is formatted to clearly identify the source of the logs:
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
--- TEST: <log dir>:<test-name> ---
|
|
155
|
+
... output from the gemini command ...
|
|
156
|
+
--- END TEST: <log dir>:<test-name> ---
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Linting and formatting
|
|
160
|
+
|
|
161
|
+
To ensure code quality and consistency, the integration test files are linted as
|
|
162
|
+
part of the main build process. You can also manually run the linter and
|
|
163
|
+
auto-fixer.
|
|
164
|
+
|
|
165
|
+
### Running the linter
|
|
166
|
+
|
|
167
|
+
To check for linting errors, run the following command:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
npm run lint
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
You can include the `:fix` flag in the command to automatically fix any fixable
|
|
174
|
+
linting errors:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
npm run lint:fix
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Directory structure
|
|
181
|
+
|
|
182
|
+
The integration tests create a unique directory for each test run inside the
|
|
183
|
+
`.integration-tests` directory. Within this directory, a subdirectory is created
|
|
184
|
+
for each test file, and within that, a subdirectory is created for each
|
|
185
|
+
individual test case.
|
|
186
|
+
|
|
187
|
+
This structure makes it easy to locate the artifacts for a specific test run,
|
|
188
|
+
file, or case.
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
.integration-tests/
|
|
192
|
+
└── <run-id>/
|
|
193
|
+
└── <test-file-name>.test.js/
|
|
194
|
+
└── <test-case-name>/
|
|
195
|
+
├── output.log
|
|
196
|
+
└── ...other test artifacts...
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## Continuous integration
|
|
200
|
+
|
|
201
|
+
To ensure the integration tests are always run, a GitHub Actions workflow is
|
|
202
|
+
defined in `.github/workflows/chained_e2e.yml`. This workflow automatically runs
|
|
203
|
+
the integrations tests for pull requests against the `main` branch, or when a
|
|
204
|
+
pull request is added to a merge queue.
|
|
205
|
+
|
|
206
|
+
The workflow runs the tests in different sandboxing environments to ensure
|
|
207
|
+
Gemini CLI is tested across each:
|
|
208
|
+
|
|
209
|
+
- `sandbox:none`: Runs the tests without any sandboxing.
|
|
210
|
+
- `sandbox:docker`: Runs the tests in a Docker container.
|
|
211
|
+
- `sandbox:podman`: Runs the tests in a Podman container.
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Automation and triage processes
|
|
2
|
+
|
|
3
|
+
This document provides a detailed overview of the automated processes we use to
|
|
4
|
+
manage and triage issues and pull requests. Our goal is to provide prompt
|
|
5
|
+
feedback and ensure that contributions are reviewed and integrated efficiently.
|
|
6
|
+
Understanding this automation will help you as a contributor know what to expect
|
|
7
|
+
and how to best interact with our repository bots.
|
|
8
|
+
|
|
9
|
+
## Guiding principle: Issues and pull requests
|
|
10
|
+
|
|
11
|
+
First and foremost, almost every Pull Request (PR) should be linked to a
|
|
12
|
+
corresponding Issue. The issue describes the "what" and the "why" (the bug or
|
|
13
|
+
feature), while the PR is the "how" (the implementation). This separation helps
|
|
14
|
+
us track work, prioritize features, and maintain clear historical context. Our
|
|
15
|
+
automation is built around this principle.
|
|
16
|
+
|
|
17
|
+
> **Note:** Issues tagged as "🔒Maintainers only" are reserved for project
|
|
18
|
+
> maintainers. We will not accept pull requests related to these issues.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Detailed automation workflows
|
|
23
|
+
|
|
24
|
+
Here is a breakdown of the specific automation workflows that run in our
|
|
25
|
+
repository.
|
|
26
|
+
|
|
27
|
+
### 1. When you open an issue: `Automated Issue Triage`
|
|
28
|
+
|
|
29
|
+
This is the first bot you will interact with when you create an issue. Its job
|
|
30
|
+
is to perform an initial analysis and apply the correct labels.
|
|
31
|
+
|
|
32
|
+
- **Workflow File**: `.github/workflows/gemini-automated-issue-triage.yml`
|
|
33
|
+
- **When it runs**: Immediately after an issue is created or reopened.
|
|
34
|
+
- **What it does**:
|
|
35
|
+
- It uses a Gemini model to analyze the issue's title and body against a
|
|
36
|
+
detailed set of guidelines.
|
|
37
|
+
- **Applies one `area/*` label**: Categorizes the issue into a functional area
|
|
38
|
+
of the project (e.g., `area/ux`, `area/models`, `area/platform`).
|
|
39
|
+
- **Applies one `kind/*` label**: Identifies the type of issue (e.g.,
|
|
40
|
+
`kind/bug`, `kind/enhancement`, `kind/question`).
|
|
41
|
+
- **Applies one `priority/*` label**: Assigns a priority from P0 (critical) to
|
|
42
|
+
P3 (low) based on the described impact.
|
|
43
|
+
- **May apply `status/need-information`**: If the issue lacks critical details
|
|
44
|
+
(like logs or reproduction steps), it will be flagged for more information.
|
|
45
|
+
- **May apply `status/need-retesting`**: If the issue references a CLI version
|
|
46
|
+
that is more than six versions old, it will be flagged for retesting on a
|
|
47
|
+
current version.
|
|
48
|
+
- **What you should do**:
|
|
49
|
+
- Fill out the issue template as completely as possible. The more detail you
|
|
50
|
+
provide, the more accurate the triage will be.
|
|
51
|
+
- If the `status/need-information` label is added, please provide the
|
|
52
|
+
requested details in a comment.
|
|
53
|
+
|
|
54
|
+
### 2. When you open a pull request: `Continuous Integration (CI)`
|
|
55
|
+
|
|
56
|
+
This workflow ensures that all changes meet our quality standards before they
|
|
57
|
+
can be merged.
|
|
58
|
+
|
|
59
|
+
- **Workflow File**: `.github/workflows/ci.yml`
|
|
60
|
+
- **When it runs**: On every push to a pull request.
|
|
61
|
+
- **What it does**:
|
|
62
|
+
- **Lint**: Checks that your code adheres to our project's formatting and
|
|
63
|
+
style rules.
|
|
64
|
+
- **Test**: Runs our full suite of automated tests across macOS, Windows, and
|
|
65
|
+
Linux, and on multiple Node.js versions. This is the most time-consuming
|
|
66
|
+
part of the CI process.
|
|
67
|
+
- **Post Coverage Comment**: After all tests have successfully passed, a bot
|
|
68
|
+
will post a comment on your PR. This comment provides a summary of how well
|
|
69
|
+
your changes are covered by tests.
|
|
70
|
+
- **What you should do**:
|
|
71
|
+
- Ensure all CI checks pass. A green checkmark ✅ will appear next to your
|
|
72
|
+
commit when everything is successful.
|
|
73
|
+
- If a check fails (a red "X" ❌), click the "Details" link next to the failed
|
|
74
|
+
check to view the logs, identify the problem, and push a fix.
|
|
75
|
+
|
|
76
|
+
### 3. Ongoing triage for pull requests: `PR Auditing and Label Sync`
|
|
77
|
+
|
|
78
|
+
This workflow runs periodically to ensure all open PRs are correctly linked to
|
|
79
|
+
issues and have consistent labels.
|
|
80
|
+
|
|
81
|
+
- **Workflow File**: `.github/workflows/gemini-scheduled-pr-triage.yml`
|
|
82
|
+
- **When it runs**: Every 15 minutes on all open pull requests.
|
|
83
|
+
- **What it does**:
|
|
84
|
+
- **Checks for a linked issue**: The bot scans your PR description for a
|
|
85
|
+
keyword that links it to an issue (e.g., `Fixes #123`, `Closes #456`).
|
|
86
|
+
- **Adds `status/need-issue`**: If no linked issue is found, the bot will add
|
|
87
|
+
the `status/need-issue` label to your PR. This is a clear signal that an
|
|
88
|
+
issue needs to be created and linked.
|
|
89
|
+
- **Synchronizes labels**: If an issue _is_ linked, the bot ensures the PR's
|
|
90
|
+
labels perfectly match the issue's labels. It will add any missing labels
|
|
91
|
+
and remove any that don't belong, and it will remove the `status/need-issue`
|
|
92
|
+
label if it was present.
|
|
93
|
+
- **What you should do**:
|
|
94
|
+
- **Always link your PR to an issue.** This is the most important step. Add a
|
|
95
|
+
line like `Resolves #<issue-number>` to your PR description.
|
|
96
|
+
- This will ensure your PR is correctly categorized and moves through the
|
|
97
|
+
review process smoothly.
|
|
98
|
+
|
|
99
|
+
### 4. Ongoing triage for issues: `Scheduled Issue Triage`
|
|
100
|
+
|
|
101
|
+
This is a fallback workflow to ensure that no issue gets missed by the triage
|
|
102
|
+
process.
|
|
103
|
+
|
|
104
|
+
- **Workflow File**: `.github/workflows/gemini-scheduled-issue-triage.yml`
|
|
105
|
+
- **When it runs**: Every hour on all open issues.
|
|
106
|
+
- **What it does**:
|
|
107
|
+
- It actively seeks out issues that either have no labels at all or still have
|
|
108
|
+
the `status/need-triage` label.
|
|
109
|
+
- It then triggers the same powerful Gemini-based analysis as the initial
|
|
110
|
+
triage bot to apply the correct labels.
|
|
111
|
+
- **What you should do**:
|
|
112
|
+
- You typically don't need to do anything. This workflow is a safety net to
|
|
113
|
+
ensure every issue is eventually categorized, even if the initial triage
|
|
114
|
+
fails.
|
|
115
|
+
|
|
116
|
+
### 5. Release automation
|
|
117
|
+
|
|
118
|
+
This workflow handles the process of packaging and publishing new versions of
|
|
119
|
+
the Gemini CLI.
|
|
120
|
+
|
|
121
|
+
- **Workflow File**: `.github/workflows/release-manual.yml`
|
|
122
|
+
- **When it runs**: On a daily schedule for "nightly" releases, and manually for
|
|
123
|
+
official patch/minor releases.
|
|
124
|
+
- **What it does**:
|
|
125
|
+
- Automatically builds the project, bumps the version numbers, and publishes
|
|
126
|
+
the packages to npm.
|
|
127
|
+
- Creates a corresponding release on GitHub with generated release notes.
|
|
128
|
+
- **What you should do**:
|
|
129
|
+
- As a contributor, you don't need to do anything for this process. You can be
|
|
130
|
+
confident that once your PR is merged into the `main` branch, your changes
|
|
131
|
+
will be included in the very next nightly release.
|
|
132
|
+
|
|
133
|
+
We hope this detailed overview is helpful. If you have any questions about our
|
|
134
|
+
automation or processes, please don't hesitate to ask!
|