@tencent-ai/agent-sdk 0.3.99 → 0.3.100
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/cli/CHANGELOG.md +26 -0
- package/cli/dist/codebuddy-headless.js +53 -53
- package/cli/dist/web-ui/assets/index-BoMlEqUE.js +439 -0
- package/cli/dist/web-ui/assets/index-Dt1puyHn.css +32 -0
- package/cli/dist/web-ui/docs/cn/cli/acp.md +152 -0
- package/cli/dist/web-ui/docs/cn/cli/agent-teams.md +327 -0
- package/cli/dist/web-ui/docs/cn/cli/bash-sandboxing.md +290 -0
- package/cli/dist/web-ui/docs/cn/cli/best-practices.md +554 -0
- package/cli/dist/web-ui/docs/cn/cli/channels-reference.md +293 -0
- package/cli/dist/web-ui/docs/cn/cli/channels.md +215 -0
- package/cli/dist/web-ui/docs/cn/cli/checkpointing.md +51 -0
- package/cli/dist/web-ui/docs/cn/cli/cli-reference.md +187 -0
- package/cli/dist/web-ui/docs/cn/cli/common-workflows.md +1013 -0
- package/cli/dist/web-ui/docs/cn/cli/costs.md +174 -0
- package/cli/dist/web-ui/docs/cn/cli/devcontainer.md +553 -0
- package/cli/dist/web-ui/docs/cn/cli/env-vars.md +326 -0
- package/cli/dist/web-ui/docs/cn/cli/gitlab-ci-cd.md +357 -0
- package/cli/dist/web-ui/docs/cn/cli/headless.md +258 -0
- package/cli/dist/web-ui/docs/cn/cli/hooks-guide.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/hooks.md +805 -0
- package/cli/dist/web-ui/docs/cn/cli/iam.md +530 -0
- package/cli/dist/web-ui/docs/cn/cli/ide-integrations.md +92 -0
- package/cli/dist/web-ui/docs/cn/cli/installation.md +291 -0
- package/cli/dist/web-ui/docs/cn/cli/interactive-mode.md +233 -0
- package/cli/dist/web-ui/docs/cn/cli/mcp.md +739 -0
- package/cli/dist/web-ui/docs/cn/cli/memory.md +436 -0
- package/cli/dist/web-ui/docs/cn/cli/models.md +356 -0
- package/cli/dist/web-ui/docs/cn/cli/overview.md +100 -0
- package/cli/dist/web-ui/docs/cn/cli/plugin-marketplaces.md +533 -0
- package/cli/dist/web-ui/docs/cn/cli/plugins-reference.md +774 -0
- package/cli/dist/web-ui/docs/cn/cli/plugins.md +689 -0
- package/cli/dist/web-ui/docs/cn/cli/quickstart.md +249 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/README.md +199 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.10.0.md +23 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.10.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.11.0.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.12.0.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.13.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.14.0.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.14.1.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.15.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.15.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.16.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.17.0.md +29 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.18.0.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.0.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.1.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.2.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.20.0.md +23 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.20.1.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.21.0.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.22.0.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.3.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.4.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.5.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.24.0.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.25.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.25.1.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.26.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.0.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.1.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.2.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.3.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.28.0.md +26 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.28.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.29.0.md +35 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.3.1.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.30.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.30.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.0.md +51 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.2.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.32.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.33.0.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.33.1.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.36.3.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.0.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.1.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.10.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.11.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.12.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.13.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.14.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.15.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.16.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.17.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.18.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.19.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.2.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.20.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.3.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.4.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.5.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.6.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.7.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.8.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.9.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.0.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.2.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.39.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.4.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.40.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.40.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.0.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.3.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.4.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.5.md +10 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.6.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.7.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.8.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.0.md +39 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.1.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.3.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.43.0.md +27 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.43.1.md +27 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.44.0.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.44.1.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.45.0.md +34 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.45.1.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.46.0.md +12 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.47.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.48.0.md +32 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.48.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.0.md +26 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.1.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.2.md +39 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.3.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.5.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.6.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.7.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.5.0.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.0.md +25 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.1.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.2.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.3.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.4.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.5.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.6.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.7.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.0.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.1.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.0.md +30 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.1.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.2.md +12 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.3.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.4.md +27 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.5.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.6.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.53.0.md +29 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.54.0.md +26 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.55.0.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.55.1.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.56.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.56.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.57.0.md +32 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.57.1.md +10 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.58.0.md +34 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.59.0.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.6.0.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.6.1.md +10 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.60.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.0.md +29 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.2.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.3.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.62.0.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.62.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.2.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.3.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.4.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.5.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.0.md +37 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.2.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.65.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.65.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.0.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.1.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.67.0.md +33 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.7.0.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.1.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.3.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.4.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.5.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.6.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.9.0.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/remote-control.md +247 -0
- package/cli/dist/web-ui/docs/cn/cli/sandboxing.md +316 -0
- package/cli/dist/web-ui/docs/cn/cli/scheduled-tasks.md +161 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-custom-tools.md +1195 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-demos.md +347 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-hooks.md +803 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-mcp.md +643 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-permissions.md +501 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-python.md +783 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-sessions.md +332 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-typescript.md +759 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk.md +1105 -0
- package/cli/dist/web-ui/docs/cn/cli/security.md +387 -0
- package/cli/dist/web-ui/docs/cn/cli/settings.md +602 -0
- package/cli/dist/web-ui/docs/cn/cli/skills.md +448 -0
- package/cli/dist/web-ui/docs/cn/cli/slash-commands.md +397 -0
- package/cli/dist/web-ui/docs/cn/cli/statusline.md +525 -0
- package/cli/dist/web-ui/docs/cn/cli/sub-agents.md +634 -0
- package/cli/dist/web-ui/docs/cn/cli/terminal-config.md +77 -0
- package/cli/dist/web-ui/docs/cn/cli/tools-reference.md +99 -0
- package/cli/dist/web-ui/docs/cn/cli/troubleshooting.md +190 -0
- package/cli/dist/web-ui/docs/cn/cli/web-ui.md +164 -0
- package/cli/dist/web-ui/docs/cn/cli/wecom-bot-setup.md +274 -0
- package/cli/dist/web-ui/docs/cn/cli/worktree.md +660 -0
- package/cli/dist/web-ui/docs/en/cli/acp.md +126 -0
- package/cli/dist/web-ui/docs/en/cli/agent-teams.md +327 -0
- package/cli/dist/web-ui/docs/en/cli/bash-sandboxing.md +357 -0
- package/cli/dist/web-ui/docs/en/cli/best-practices.md +554 -0
- package/cli/dist/web-ui/docs/en/cli/channels-reference.md +293 -0
- package/cli/dist/web-ui/docs/en/cli/channels.md +215 -0
- package/cli/dist/web-ui/docs/en/cli/checkpointing.md +53 -0
- package/cli/dist/web-ui/docs/en/cli/cli-reference.md +187 -0
- package/cli/dist/web-ui/docs/en/cli/common-workflows.md +1011 -0
- package/cli/dist/web-ui/docs/en/cli/costs.md +174 -0
- package/cli/dist/web-ui/docs/en/cli/devcontainer.md +553 -0
- package/cli/dist/web-ui/docs/en/cli/env-vars.md +326 -0
- package/cli/dist/web-ui/docs/en/cli/gitlab-ci-cd.md +357 -0
- package/cli/dist/web-ui/docs/en/cli/headless.md +258 -0
- package/cli/dist/web-ui/docs/en/cli/hooks-guide.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/hooks.md +801 -0
- package/cli/dist/web-ui/docs/en/cli/iam.md +526 -0
- package/cli/dist/web-ui/docs/en/cli/ide-integrations.md +92 -0
- package/cli/dist/web-ui/docs/en/cli/installation.md +266 -0
- package/cli/dist/web-ui/docs/en/cli/interactive-mode.md +233 -0
- package/cli/dist/web-ui/docs/en/cli/mcp.md +739 -0
- package/cli/dist/web-ui/docs/en/cli/memory.md +436 -0
- package/cli/dist/web-ui/docs/en/cli/models.md +355 -0
- package/cli/dist/web-ui/docs/en/cli/overview.md +100 -0
- package/cli/dist/web-ui/docs/en/cli/plugin-marketplaces.md +534 -0
- package/cli/dist/web-ui/docs/en/cli/plugins-reference.md +774 -0
- package/cli/dist/web-ui/docs/en/cli/plugins.md +688 -0
- package/cli/dist/web-ui/docs/en/cli/quickstart.md +249 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/README.md +193 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.10.0.md +23 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.10.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.11.0.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.12.0.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.13.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.14.0.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.14.1.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.15.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.15.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.16.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.17.0.md +29 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.18.0.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.0.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.1.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.2.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.20.0.md +23 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.20.1.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.21.0.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.22.0.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.0.md +41 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.3.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.4.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.5.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.24.0.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.25.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.25.1.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.26.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.0.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.1.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.2.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.3.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.28.0.md +26 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.28.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.29.0.md +35 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.3.1.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.30.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.30.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.0.md +51 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.2.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.32.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.33.0.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.33.1.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.34.0.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.34.1.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.35.0.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.0.md +23 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.2.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.3.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.0.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.1.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.10.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.11.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.12.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.13.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.14.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.15.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.16.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.17.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.18.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.19.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.2.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.20.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.3.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.4.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.5.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.6.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.7.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.8.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.9.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.0.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.2.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.39.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.4.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.40.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.40.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.0.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.3.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.4.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.5.md +10 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.6.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.7.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.8.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.0.md +39 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.1.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.3.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.43.0.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.43.1.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.44.0.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.44.1.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.45.0.md +34 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.45.1.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.46.0.md +12 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.47.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.48.0.md +32 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.48.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.0.md +26 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.1.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.2.md +39 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.3.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.5.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.6.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.7.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.5.0.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.0.md +25 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.1.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.2.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.3.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.4.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.5.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.6.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.7.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.0.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.1.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.0.md +30 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.1.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.2.md +12 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.3.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.4.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.5.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.6.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.53.0.md +29 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.54.0.md +26 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.55.0.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.55.1.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.56.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.56.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.57.0.md +32 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.57.1.md +10 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.58.0.md +34 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.59.0.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.6.0.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.6.1.md +10 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.60.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.0.md +29 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.2.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.3.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.62.0.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.62.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.2.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.3.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.4.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.5.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.0.md +37 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.2.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.65.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.65.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.0.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.1.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.67.0.md +33 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.7.0.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.1.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.3.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.4.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.5.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.6.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.9.0.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/remote-control.md +247 -0
- package/cli/dist/web-ui/docs/en/cli/sandboxing.md +316 -0
- package/cli/dist/web-ui/docs/en/cli/scheduled-tasks.md +160 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-custom-tools.md +1131 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-demos.md +347 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-hooks.md +813 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-mcp.md +645 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-permissions.md +461 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-python.md +797 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-sessions.md +340 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-typescript.md +770 -0
- package/cli/dist/web-ui/docs/en/cli/sdk.md +1103 -0
- package/cli/dist/web-ui/docs/en/cli/security.md +388 -0
- package/cli/dist/web-ui/docs/en/cli/settings.md +602 -0
- package/cli/dist/web-ui/docs/en/cli/skills.md +448 -0
- package/cli/dist/web-ui/docs/en/cli/slash-commands.md +397 -0
- package/cli/dist/web-ui/docs/en/cli/statusline.md +525 -0
- package/cli/dist/web-ui/docs/en/cli/sub-agents.md +621 -0
- package/cli/dist/web-ui/docs/en/cli/terminal-config.md +77 -0
- package/cli/dist/web-ui/docs/en/cli/tools-reference.md +99 -0
- package/cli/dist/web-ui/docs/en/cli/troubleshooting.md +190 -0
- package/cli/dist/web-ui/docs/en/cli/web-ui.md +164 -0
- package/cli/dist/web-ui/docs/en/cli/wecom-bot-setup.md +274 -0
- package/cli/dist/web-ui/docs/en/cli/worktree.md +660 -0
- package/cli/dist/web-ui/docs/search-index-en.json +1 -0
- package/cli/dist/web-ui/docs/search-index-zh.json +1 -0
- package/cli/dist/web-ui/docs/sidebar-en.json +1 -0
- package/cli/dist/web-ui/docs/sidebar-zh.json +1 -0
- package/cli/dist/web-ui/index.html +2 -2
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +2 -2
- package/cli/product.internal.json +2 -2
- package/cli/product.ioa.json +2 -2
- package/cli/product.json +3 -3
- package/cli/product.selfhosted.json +2 -2
- package/package.json +1 -1
- package/cli/dist/web-ui/assets/index-BPT-qRRx.js +0 -411
- package/cli/dist/web-ui/assets/index-f_ibHSHw.css +0 -32
|
@@ -0,0 +1,602 @@
|
|
|
1
|
+
# 设置配置
|
|
2
|
+
|
|
3
|
+
CodeBuddy Code 使用分层配置系统,让您能够在不同级别进行个性化定制,从个人偏好到团队标准,再到项目特定需求。
|
|
4
|
+
|
|
5
|
+
## 配置文件
|
|
6
|
+
|
|
7
|
+
`settings.json` 文件是配置 CodeBuddy Code 的官方机制,支持分层设置:
|
|
8
|
+
|
|
9
|
+
* **用户设置** 定义在 `~/.codebuddy/settings.json`,应用于所有项目
|
|
10
|
+
* **项目设置** 保存在项目目录中:
|
|
11
|
+
* `.codebuddy/settings.json` 用于检入源代码控制并与团队共享的设置
|
|
12
|
+
* `.codebuddy/settings.local.json` 用于不检入的设置,适合个人偏好和实验。CodeBuddy Code 会自动配置 git 忽略此文件
|
|
13
|
+
|
|
14
|
+
### 完整配置示例
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
"language": "简体中文",
|
|
19
|
+
"permissions": {
|
|
20
|
+
"allow": [
|
|
21
|
+
"Bash(npm run lint)",
|
|
22
|
+
"Bash(npm run test:*)",
|
|
23
|
+
"Read(~/.zshrc)"
|
|
24
|
+
],
|
|
25
|
+
"ask": [
|
|
26
|
+
"Bash(git push:*)"
|
|
27
|
+
],
|
|
28
|
+
"deny": [
|
|
29
|
+
"Bash(curl:*)",
|
|
30
|
+
"Read(./.env)",
|
|
31
|
+
"Read(./.env.*)",
|
|
32
|
+
"Read(./secrets/**)"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"env": {
|
|
36
|
+
"NODE_ENV": "development",
|
|
37
|
+
"DEBUG": "codebuddy:*"
|
|
38
|
+
},
|
|
39
|
+
"model": "gpt-5",
|
|
40
|
+
"cleanupPeriodDays": 30,
|
|
41
|
+
"includeCoAuthoredBy": false,
|
|
42
|
+
"statusLine": {
|
|
43
|
+
"type": "command",
|
|
44
|
+
"command": "~/.codebuddy/statusline.sh"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## 可用设置
|
|
50
|
+
|
|
51
|
+
`settings.json` 支持以下选项:
|
|
52
|
+
|
|
53
|
+
| 配置键 | 描述 | 示例 |
|
|
54
|
+
|:------|:-----|:-----|
|
|
55
|
+
| `language` | 首选响应语言,设置后 CodeBuddy Code 将使用指定语言进行回复。留空则自动根据用户输入判断语言 | `"简体中文"` |
|
|
56
|
+
| `apiKeyHelper` | 自定义脚本,在 `/bin/sh` 中执行,生成认证值。此值将作为模型请求的 `X-Api-Key` 和 `Authorization: Bearer` 头发送 | `/bin/generate_temp_api_key.sh` |
|
|
57
|
+
| `textToImageModel` | 文生图功能使用的模型 ID | `"your-image-model"` |
|
|
58
|
+
| `imageToImageModel` | 图生图功能使用的模型 ID | `"your-edit-model"` |
|
|
59
|
+
| `cleanupPeriodDays` | 根据最后活动日期本地保留聊天记录的时长(默认:30 天) | `20` |
|
|
60
|
+
| `env` | 应用于每个会话的环境变量 | `{"FOO": "bar"}` |
|
|
61
|
+
| `includeCoAuthoredBy` | 是否在 git 提交和拉取请求中包含 `co-authored-by CodeBuddy` 署名(默认:`true`) | `false` |
|
|
62
|
+
| `permissions` | 权限配置,见下表 | |
|
|
63
|
+
| `hooks` | 配置在工具执行前后运行的自定义命令。见 [hooks 文档](hooks.md) | `{"PreToolUse": {"Bash": "echo 'Running command...'"}}` |
|
|
64
|
+
| `disableAllHooks` | 禁用所有 [hooks](hooks.md) | `true` |
|
|
65
|
+
| `model` | 覆盖 CodeBuddy Code 使用的默认模型 | `"gpt-5"` |
|
|
66
|
+
| `statusLine` | 配置自定义状态行以显示上下文。见 [statusLine 文档](#状态行配置) | `{"type": "command", "command": "~/.codebuddy/statusline.sh"}` |
|
|
67
|
+
| `enableAllProjectMcpServers` | 自动批准项目 `.mcp.json` 文件中定义的所有 MCP 服务器 | `true` |
|
|
68
|
+
| `enabledMcpjsonServers` | 从 `.mcp.json` 文件批准的特定 MCP 服务器列表 | `["memory", "github"]` |
|
|
69
|
+
| `disabledMcpjsonServers` | 从 `.mcp.json` 文件拒绝的特定 MCP 服务器列表 | `["filesystem"]` |
|
|
70
|
+
| `autoCompactEnabled` | 开启自动压缩功能 | `true` |
|
|
71
|
+
| `autoUpdates` | 自动更新设置 | `false` |
|
|
72
|
+
| `alwaysThinkingEnabled` | 始终启用思考模式 | `true` |
|
|
73
|
+
| `showTokensCounter` | 是否在界面中显示 Tokens 计数器 | `false` |
|
|
74
|
+
| `endpoint` | 自定义服务端点地址 | `"https://api.example.com"` |
|
|
75
|
+
| `envRouteMode` | 环境路由模式配置 | `"production"` |
|
|
76
|
+
| `sandbox` | Bash 沙箱配置,见[Bash 沙箱设置](#bash 沙箱设置) | `{"enabled": true}` |
|
|
77
|
+
| `promptSuggestionEnabled` | 启用 Prompt 建议功能,在 Agent 完成对话后自动预测下一步操作(默认:`true`) | `false` |
|
|
78
|
+
| `reasoningEffort` | Reasoning effort 级别配置,控制模型推理的深度。可选值:`low`、`medium`、`high`、`xhigh`。留空时使用产品配置默认值。可通过 `/config` 面板切换,选择 `auto` 等效于清除此设置 | `"high"` |
|
|
79
|
+
| `memory` | [Experimental] 记忆功能配置,见[记忆功能配置](#记忆功能配置experimental) | `{"enabled": true}` |
|
|
80
|
+
|
|
81
|
+
### 权限设置
|
|
82
|
+
|
|
83
|
+
| 配置键 | 描述 | 示例 |
|
|
84
|
+
|:------|:-----|:-----|
|
|
85
|
+
| `allow` | [权限规则](iam.md#配置权限)数组,允许工具使用。**注意:** Bash 规则使用前缀匹配,不是正则表达式 | `[ "Bash(git diff:*)" ]` |
|
|
86
|
+
| `ask` | [权限规则](iam.md#配置权限)数组,在工具使用时询问确认 | `[ "Bash(git push:*)" ]` |
|
|
87
|
+
| `deny` | [权限规则](iam.md#配置权限)数组,拒绝工具使用。用于排除 CodeBuddy Code 访问敏感文件。**注意:** Bash 模式是前缀匹配,可以被绕过(参见 [Bash 权限限制](iam.md#工具特定的权限规则)) | `[ "WebFetch", "Bash(curl:*)", "Read(./.env)", "Read(./secrets/**)" ]` |
|
|
88
|
+
| `additionalDirectories` | CodeBuddy 可以访问的额外[工作目录](iam.md#工作目录) | `[ "../docs/" ]` |
|
|
89
|
+
| `defaultMode` | 打开 CodeBuddy Code 时的默认[权限模式](iam.md#权限模式) | `"acceptEdits"` |
|
|
90
|
+
| `disableBypassPermissionsMode` | 设置为 `"disable"` 以防止激活 `bypassPermissions` 模式。这会禁用 `-y` 和 `--dangerously-skip-permissions` 命令行标志 | `"disable"` |
|
|
91
|
+
|
|
92
|
+
### 记忆功能配置(Experimental)
|
|
93
|
+
|
|
94
|
+
记忆功能允许 CodeBuddy Code 在会话之间保持持久化记忆,自动管理项目上下文和学习历史。
|
|
95
|
+
|
|
96
|
+
| 配置键 | 描述 | 示例 |
|
|
97
|
+
|:------|:-----|:-----|
|
|
98
|
+
| `enabled` | 是否启用记忆功能(默认:`false`) | `true` |
|
|
99
|
+
| `autoMemoryEnabled` | 是否启用 Auto Memory 功能(默认:`true`)。Auto Memory 允许 CodeBuddy 自动管理跨会话的持久化记忆,存储在 `~/.codebuddy/memories/` 目录 | `true` |
|
|
100
|
+
| `typedMemory` | [Experimental] 是否启用 Typed Memory 模式(默认:`false`)。启用后使用 4 种记忆类型(user/feedback/project/reference)+ YAML frontmatter 格式管理记忆 | `true` |
|
|
101
|
+
| `teamMemory.enabled` | 是否启用团队记忆模式(默认:`false`)。启用后,项目记忆存储在项目目录下,便于团队共享 | `true` |
|
|
102
|
+
| `teamMemory.userId` | 团队用户 ID,用于隔离不同用户的记忆。默认自动获取(git user.name > 系统用户名) | `"yangsubo"` |
|
|
103
|
+
|
|
104
|
+
**配置示例:**
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"memory": {
|
|
109
|
+
"enabled": true,
|
|
110
|
+
"autoMemoryEnabled": true,
|
|
111
|
+
"typedMemory": false,
|
|
112
|
+
"teamMemory": {
|
|
113
|
+
"enabled": true,
|
|
114
|
+
"userId": "yangsubo"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**记忆存储位置:**
|
|
121
|
+
|
|
122
|
+
- **个人模式**(默认):`~/.codebuddy/memories/{project-id}/`
|
|
123
|
+
- **团队模式**:`{project}/.codebuddy/memories/@{user-id}/`
|
|
124
|
+
- **全局记忆**:`~/.codebuddy/memories/global/`
|
|
125
|
+
|
|
126
|
+
也可以通过 `/config` 命令在设置面板中启用此功能。
|
|
127
|
+
|
|
128
|
+
### Bash沙箱设置
|
|
129
|
+
|
|
130
|
+
配置高级沙箱行为。沙箱将 bash 命令与您的文件系统和网络隔离。详见 [Bash 沙箱文档](bash-sandboxing.md)。
|
|
131
|
+
|
|
132
|
+
**文件系统和网络限制**通过 Read、Edit 和 WebFetch 权限规则配置,而非通过这些沙箱设置。
|
|
133
|
+
|
|
134
|
+
| 配置键 | 描述 | 示例 |
|
|
135
|
+
|:------|:-----|:-----|
|
|
136
|
+
| `enabled` | 启用 bash 沙箱(仅限 macOS/Linux)。默认:false | `true` |
|
|
137
|
+
| `autoAllowBashIfSandboxed` | 在沙箱环境中自动批准 bash 命令。默认:true | `true` |
|
|
138
|
+
| `excludedCommands` | 应在沙箱外运行的命令 | `["git", "docker"]` |
|
|
139
|
+
| `allowUnsandboxedCommands` | 允许通过 `dangerouslyDisableSandbox` 参数在沙箱外运行命令。设置为 `false` 时,完全禁用 |
|
|
140
|
+
| `network.allowUnixSockets` | 沙箱中可访问的 Unix 套接字路径(用于 SSH 代理等) | `["~/.ssh/agent-socket"]` |
|
|
141
|
+
| `network.allowLocalBinding` | 允许绑定到 localhost 端口(仅限 macOS)。默认: false | `true` |
|
|
142
|
+
| `network.httpProxyPort` | 如果您希望使用自己的代理,使用的 HTTP 代理端口。如果未指定,CodeBuddy 将运行自己的代理 | `8080` |
|
|
143
|
+
| `network.socksProxyPort` | 如果您希望使用自己的代理,使用的 SOCKS5 代理端口。如果未指定,CodeBuddy 将运行自己的代理 | `8081` |
|
|
144
|
+
| `enableWeakerNestedSandbox` | 为无特权的 Docker 环境启用较弱的沙箱(仅限 Linux)。**降低安全性。** 默认:false | `true` |
|
|
145
|
+
|
|
146
|
+
**配置示例:**
|
|
147
|
+
|
|
148
|
+
```json
|
|
149
|
+
{
|
|
150
|
+
"sandbox": {
|
|
151
|
+
"enabled": true,
|
|
152
|
+
"autoAllowBashIfSandboxed": true,
|
|
153
|
+
"excludedCommands": ["docker"],
|
|
154
|
+
"network": {
|
|
155
|
+
"allowUnixSockets": [
|
|
156
|
+
"/var/run/docker.sock"
|
|
157
|
+
],
|
|
158
|
+
"allowLocalBinding": true
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"permissions": {
|
|
162
|
+
"deny": [
|
|
163
|
+
"Read(.envrc)",
|
|
164
|
+
"Read(~/.aws/**)"
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
**文件系统访问**通过 Read/Edit 权限控制:
|
|
171
|
+
|
|
172
|
+
* Read deny 规则阻止沙箱中的文件读取
|
|
173
|
+
* Edit allow 规则允许文件写入(除默认值外,如当前工作目录)
|
|
174
|
+
* Edit deny 规则阻止允许路径内的写入
|
|
175
|
+
|
|
176
|
+
> **注意**:沙箱默认将 CodeBuddy 配置文件(`settings.json`、`settings.local.json`)加入写保护列表,防止沙箱内的命令或工具篡改配置。详见 [Bash 沙箱 - 配置文件保护](bash-sandboxing.md#配置文件保护)。
|
|
177
|
+
|
|
178
|
+
**网络访问**通过 WebFetch 权限控制:
|
|
179
|
+
|
|
180
|
+
* WebFetch allow 规则允许网络域
|
|
181
|
+
* WebFetch deny 规则阻止网络域
|
|
182
|
+
|
|
183
|
+
### 设置优先级
|
|
184
|
+
|
|
185
|
+
设置按优先级顺序应用(从高到低):
|
|
186
|
+
|
|
187
|
+
1. **命令行参数**
|
|
188
|
+
* 特定会话的临时覆盖
|
|
189
|
+
|
|
190
|
+
2. **本地项目设置** (`.codebuddy/settings.local.json`)
|
|
191
|
+
* 个人项目特定设置
|
|
192
|
+
|
|
193
|
+
3. **共享项目设置** (`.codebuddy/settings.json`)
|
|
194
|
+
* 源代码控制中的团队共享项目设置
|
|
195
|
+
|
|
196
|
+
4. **用户设置** (`~/.codebuddy/settings.json`)
|
|
197
|
+
* 个人全局设置
|
|
198
|
+
|
|
199
|
+
此层次结构确保团队可以建立共享标准,同时仍允许个人自定义体验。
|
|
200
|
+
|
|
201
|
+
### 配置系统要点
|
|
202
|
+
|
|
203
|
+
* **内存文件 (CODEBUDDY.md)**:包含 CodeBuddy 在启动时加载的指令和上下文
|
|
204
|
+
* **设置文件 (JSON)**:配置权限、环境变量和工具行为
|
|
205
|
+
* **斜杠命令**:可在会话期间使用 `/command-name` 调用的自定义命令
|
|
206
|
+
* **MCP 服务器**:使用额外工具和集成扩展 CodeBuddy Code
|
|
207
|
+
* **优先级**:更高级别的配置覆盖更低级别的配置
|
|
208
|
+
* **继承**:设置被合并,更具体的设置添加或覆盖更广泛的设置
|
|
209
|
+
|
|
210
|
+
### 排除敏感文件
|
|
211
|
+
|
|
212
|
+
为防止 CodeBuddy Code 访问包含敏感信息的文件(如 API 密钥、秘密、环境文件),在 `.codebuddy/settings.json` 文件中使用 `permissions.deny` 设置:
|
|
213
|
+
|
|
214
|
+
```json
|
|
215
|
+
{
|
|
216
|
+
"permissions": {
|
|
217
|
+
"deny": [
|
|
218
|
+
"Read(./.env)",
|
|
219
|
+
"Read(./.env.*)",
|
|
220
|
+
"Read(./secrets/**)",
|
|
221
|
+
"Read(./config/credentials.json)",
|
|
222
|
+
"Read(./build)"
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
匹配这些模式的文件将对 CodeBuddy Code 完全不可见,防止任何敏感数据的意外泄露。
|
|
229
|
+
|
|
230
|
+
## 子代理配置
|
|
231
|
+
|
|
232
|
+
CodeBuddy Code 支持可在用户和项目级别配置的自定义 AI 子代理。这些子代理存储为带有 YAML frontmatter 的 Markdown 文件:
|
|
233
|
+
|
|
234
|
+
* **用户子代理**:`~/.codebuddy/agents/` - 在所有项目中可用
|
|
235
|
+
* **项目子代理**:`.codebuddy/agents/` - 特定于项目,可与团队共享
|
|
236
|
+
|
|
237
|
+
子代理文件定义具有自定义提示和工具权限的专用 AI 助手。详见 [子代理文档](sub-agents.md)。
|
|
238
|
+
|
|
239
|
+
## 插件配置
|
|
240
|
+
|
|
241
|
+
CodeBuddy Code 支持插件系统,允许您使用自定义命令、代理、hooks 和 MCP 服务器扩展功能。插件通过市场分发,可在用户和项目级别配置。
|
|
242
|
+
|
|
243
|
+
### 插件设置
|
|
244
|
+
|
|
245
|
+
`settings.json` 中的插件相关设置:
|
|
246
|
+
|
|
247
|
+
```json
|
|
248
|
+
{
|
|
249
|
+
"enabledPlugins": {
|
|
250
|
+
"formatter@company-tools": true,
|
|
251
|
+
"deployer@company-tools": true,
|
|
252
|
+
"analyzer@security-plugins": false
|
|
253
|
+
},
|
|
254
|
+
"extraKnownMarketplaces": {
|
|
255
|
+
"company-tools": {
|
|
256
|
+
"source": {
|
|
257
|
+
"source": "github",
|
|
258
|
+
"repo": "company/codebuddy-plugins"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
#### `enabledPlugins`
|
|
266
|
+
|
|
267
|
+
控制启用哪些插件。格式:`"plugin-name@marketplace-name": true/false`
|
|
268
|
+
|
|
269
|
+
**作用域**:
|
|
270
|
+
|
|
271
|
+
* **用户设置** (`~/.codebuddy/settings.json`):个人插件偏好
|
|
272
|
+
* **项目设置** (`.codebuddy/settings.json`):与团队共享的项目特定插件
|
|
273
|
+
* **本地设置** (`.codebuddy/settings.local.json`):每台机器的覆盖(不提交)
|
|
274
|
+
|
|
275
|
+
**示例**:
|
|
276
|
+
|
|
277
|
+
```json
|
|
278
|
+
{
|
|
279
|
+
"enabledPlugins": {
|
|
280
|
+
"code-formatter@team-tools": true,
|
|
281
|
+
"deployment-tools@team-tools": true,
|
|
282
|
+
"experimental-features@personal": false
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
#### `extraKnownMarketplaces`
|
|
288
|
+
|
|
289
|
+
定义应为项目提供的额外市场。通常在项目级设置中使用,以确保团队成员可以访问所需的插件源。
|
|
290
|
+
|
|
291
|
+
**当项目包含 `extraKnownMarketplaces` 时**:
|
|
292
|
+
|
|
293
|
+
1. 团队成员在信任文件夹时被提示安装市场
|
|
294
|
+
2. 然后团队成员被提示从该市场安装插件
|
|
295
|
+
3. 用户可以跳过不需要的市场或插件(存储在用户设置中)
|
|
296
|
+
4. 安装遵守信任边界并需要明确同意
|
|
297
|
+
|
|
298
|
+
**示例**:
|
|
299
|
+
|
|
300
|
+
```json
|
|
301
|
+
{
|
|
302
|
+
"extraKnownMarketplaces": {
|
|
303
|
+
"company-tools": {
|
|
304
|
+
"source": {
|
|
305
|
+
"source": "github",
|
|
306
|
+
"repo": "company-org/codebuddy-plugins"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"security-plugins": {
|
|
310
|
+
"source": {
|
|
311
|
+
"source": "git",
|
|
312
|
+
"url": "https://git.company.com/security/plugins.git"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
**市场源类型**:
|
|
320
|
+
|
|
321
|
+
* `github`: GitHub 仓库(使用 `repo`)
|
|
322
|
+
* `git`:任何 git URL(使用 `url`)
|
|
323
|
+
* `directory`:本地文件系统路径(使用 `path`,仅用于开发)
|
|
324
|
+
|
|
325
|
+
### 管理插件
|
|
326
|
+
|
|
327
|
+
使用 `/plugin` 命令交互式管理插件:
|
|
328
|
+
|
|
329
|
+
* 浏览市场中的可用插件
|
|
330
|
+
* 安装/卸载插件
|
|
331
|
+
* 启用/禁用插件
|
|
332
|
+
* 查看插件详细信息(提供的命令、代理、hooks)
|
|
333
|
+
* 添加/删除市场
|
|
334
|
+
|
|
335
|
+
详见 [插件文档](plugins.md)。
|
|
336
|
+
|
|
337
|
+
## 环境变量
|
|
338
|
+
|
|
339
|
+
CodeBuddy Code 支持通过环境变量来控制其行为。所有环境变量也可以在 [`settings.json`](#可用设置) 的 `env` 字段中配置,这样可以自动为每个会话应用,或为整个团队推出配置。
|
|
340
|
+
|
|
341
|
+
完整的环境变量参考文档请参见 [**环境变量参考**](./env-vars.md)。
|
|
342
|
+
|
|
343
|
+
### 快速入门
|
|
344
|
+
|
|
345
|
+
**基础认证配置**:
|
|
346
|
+
|
|
347
|
+
```bash
|
|
348
|
+
# 使用 API 密钥
|
|
349
|
+
export CODEBUDDY_API_KEY="your-api-key"
|
|
350
|
+
codebuddy
|
|
351
|
+
|
|
352
|
+
# 或使用授权令牌
|
|
353
|
+
export CODEBUDDY_AUTH_TOKEN="your-token"
|
|
354
|
+
codebuddy
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
**设置代理**:
|
|
358
|
+
|
|
359
|
+
```bash
|
|
360
|
+
export HTTPS_PROXY="https://proxy.example.com:8080"
|
|
361
|
+
export NO_PROXY="localhost,127.0.0.1"
|
|
362
|
+
codebuddy
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
**启用高级功能**:
|
|
366
|
+
|
|
367
|
+
```bash
|
|
368
|
+
# 扩展思考
|
|
369
|
+
export MAX_THINKING_TOKENS="10000"
|
|
370
|
+
|
|
371
|
+
# 自动内存
|
|
372
|
+
export CODEBUDDY_DISABLE_AUTO_MEMORY="0"
|
|
373
|
+
|
|
374
|
+
codebuddy -p "你的查询"
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### 在 settings.json 中配置
|
|
378
|
+
|
|
379
|
+
环境变量也可以在 `settings.json` 的 `env` 字段中设置:
|
|
380
|
+
|
|
381
|
+
```json
|
|
382
|
+
{
|
|
383
|
+
"env": {
|
|
384
|
+
"CODEBUDDY_API_KEY": "your-api-key",
|
|
385
|
+
"HTTPS_PROXY": "https://proxy.example.com:8080",
|
|
386
|
+
"MAX_THINKING_TOKENS": "10000"
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
更多配置示例和高级用法,请参见 [**环境变量参考**](./env-vars.md) 和 [**使用示例**](./env-vars.md#使用示例)。
|
|
392
|
+
|
|
393
|
+
## 状态行配置
|
|
394
|
+
|
|
395
|
+
配置终端底部显示的状态行,可以显示当前会话、模型、成本等信息:
|
|
396
|
+
|
|
397
|
+
| 配置键 | 类型 | 描述 |
|
|
398
|
+
|--------|------|------|
|
|
399
|
+
| `statusLine.type` | string | 状态行类型,目前支持 "command" |
|
|
400
|
+
| `statusLine.command` | string | 执行的命令路径,支持 ~ 路径扩展 |
|
|
401
|
+
|
|
402
|
+
```json
|
|
403
|
+
{
|
|
404
|
+
"statusLine": {
|
|
405
|
+
"type": "command",
|
|
406
|
+
"command": "~/.codebuddy/statusline-script.sh"
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
状态行命令会接收包含会话信息的 JSON 数据作为 stdin 输入,包括:
|
|
412
|
+
- `session_id`:会话 ID
|
|
413
|
+
- `model`:当前模型信息
|
|
414
|
+
- `workspace`:工作空间路径信息
|
|
415
|
+
- `cost`:成本统计信息
|
|
416
|
+
- `version`:应用版本
|
|
417
|
+
|
|
418
|
+
使用 `/statusline` 命令可以快速配置状态行。
|
|
419
|
+
|
|
420
|
+
## 配置管理命令
|
|
421
|
+
|
|
422
|
+
使用 `codebuddy config` 命令管理配置:
|
|
423
|
+
|
|
424
|
+
### 基本语法
|
|
425
|
+
```bash
|
|
426
|
+
codebuddy config [command] [options]
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
### 可用命令
|
|
430
|
+
|
|
431
|
+
| 命令 | 语法 | 描述 |
|
|
432
|
+
|------|------|------|
|
|
433
|
+
| `get` | `codebuddy config get <key>` | 获取配置值 |
|
|
434
|
+
| `set` | `codebuddy config set [options] <key> <value>` | 设置配置值 |
|
|
435
|
+
| `list` | `codebuddy config list`(别名:`ls`)| 列出所有配置 |
|
|
436
|
+
| `add` | `codebuddy config add <key> <values...>` | 向数组配置添加项目 |
|
|
437
|
+
| `remove` | `codebuddy config remove <key> [values...]`(别名:`rm`)| 移除配置或数组项 |
|
|
438
|
+
|
|
439
|
+
### 选项
|
|
440
|
+
|
|
441
|
+
| 选项 | 描述 | 适用命令 |
|
|
442
|
+
|------|------|----------|
|
|
443
|
+
| `-g, --global` | 设置全局配置 | `set` |
|
|
444
|
+
|
|
445
|
+
### 使用示例
|
|
446
|
+
|
|
447
|
+
#### 查看配置
|
|
448
|
+
```bash
|
|
449
|
+
# 列出所有配置
|
|
450
|
+
codebuddy config list
|
|
451
|
+
|
|
452
|
+
# 获取特定配置值
|
|
453
|
+
codebuddy config get model
|
|
454
|
+
codebuddy config get permissions
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
#### 设置配置
|
|
458
|
+
```bash
|
|
459
|
+
# 设置项目级模型(不需要 -g 标志)
|
|
460
|
+
codebuddy config set model gpt-5
|
|
461
|
+
|
|
462
|
+
# 设置全局模型(需要 -g 标志)
|
|
463
|
+
codebuddy config set -g model gpt-4
|
|
464
|
+
|
|
465
|
+
# 设置项目级权限配置(不需要 -g 标志)
|
|
466
|
+
codebuddy config set permissions '{"allow": ["Read", "Edit"], "deny": ["Bash(rm:*)"]}'
|
|
467
|
+
|
|
468
|
+
# 设置项目级环境变量(不需要 -g 标志)
|
|
469
|
+
codebuddy config set env '{"NODE_ENV": "development", "DEBUG": "true"}'
|
|
470
|
+
|
|
471
|
+
# 设置全局专用配置(需要 -g 标志)
|
|
472
|
+
codebuddy config set -g cleanupPeriodDays 30
|
|
473
|
+
codebuddy config set -g includeCoAuthoredBy false
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
## CodeBuddy 可用的工具
|
|
477
|
+
|
|
478
|
+
CodeBuddy Code 可以访问一组强大的工具,帮助它理解和修改您的代码库:
|
|
479
|
+
|
|
480
|
+
| 工具 | 描述 | 需要权限 |
|
|
481
|
+
|:-----|:-----|:---------|
|
|
482
|
+
| **AskUserQuestion** | 向用户询问多选问题以收集信息或澄清歧义 | 否 |
|
|
483
|
+
| **Bash** | 在您的环境中执行 shell 命令 | 是 |
|
|
484
|
+
| **TaskOutput** | 从正在运行或已完成的后台任务检索输出 | 否 |
|
|
485
|
+
| **Edit** | 对特定文件进行有针对性的编辑 | 是 |
|
|
486
|
+
| **MultiEdit** | 在单个操作中对单个文件进行多次编辑 | 是 |
|
|
487
|
+
| **ExitPlanMode** | 提示用户退出计划模式并开始编码 | 是 |
|
|
488
|
+
| **Glob** | 基于模式匹配查找文件 | 否 |
|
|
489
|
+
| **Grep** | 在文件内容中搜索模式 | 否 |
|
|
490
|
+
| **TaskStop** | 通过 ID 终止正在运行的后台任务 | 否 |
|
|
491
|
+
| **LSP** | 与 LSP 服务器交互获取代码智能功能(跳转定义、查找引用、悬停信息等) | 否 |
|
|
492
|
+
| **NotebookEdit** | 修改 Jupyter notebook 单元格 | 是 |
|
|
493
|
+
| **Read** | 读取文件内容 | 否 |
|
|
494
|
+
| **Skill** | 在主对话中执行技能 | 是 |
|
|
495
|
+
| **SlashCommand** | 运行[自定义斜杠命令](slash-commands.md#slashcommand-工具) | 是 |
|
|
496
|
+
| **Task** | 运行子代理以处理复杂的多步骤任务 | 否 |
|
|
497
|
+
| **TaskOutput** | 从正在运行或已完成的后台任务检索输出 | 否 |
|
|
498
|
+
| **TaskCreate** | 创建任务以跟踪工作进度 | 否 |
|
|
499
|
+
| **TaskUpdate** | 更新任务状态(pending/in_progress/completed) | 否 |
|
|
500
|
+
| **TaskList** | 列出当前任务 | 否 |
|
|
501
|
+
| **TaskGet** | 获取特定任务详情 | 否 |
|
|
502
|
+
| **WebFetch** | 从指定 URL 获取内容 | 是 |
|
|
503
|
+
| **WebSearch** | 执行带域过滤的网络搜索 | 是 |
|
|
504
|
+
| **Write** | 创建或覆盖文件 | 是 |
|
|
505
|
+
|
|
506
|
+
权限规则可以使用 `/permissions` 或在[权限设置](#权限设置)中配置。另见[工具特定的权限规则](iam.md#工具特定的权限规则)。
|
|
507
|
+
|
|
508
|
+
### 使用 hooks 扩展工具
|
|
509
|
+
|
|
510
|
+
您可以使用 [CodeBuddy Code hooks](hooks.md) 在任何工具执行前后运行自定义命令。
|
|
511
|
+
|
|
512
|
+
例如,您可以在 CodeBuddy 修改 Python 文件后自动运行 Python 格式化程序,或通过阻止对某些路径的 Write 操作来防止修改生产配置文件。
|
|
513
|
+
|
|
514
|
+
## 常见配置场景
|
|
515
|
+
|
|
516
|
+
### 团队协作配置
|
|
517
|
+
|
|
518
|
+
**项目共享配置**(`.codebuddy/settings.json`):
|
|
519
|
+
```json
|
|
520
|
+
{
|
|
521
|
+
"model": "gpt-5",
|
|
522
|
+
"permissions": {
|
|
523
|
+
"allow": ["Read", "Edit", "Bash(git:*)", "Bash(npm:*)"],
|
|
524
|
+
"ask": ["WebFetch", "Bash(docker:*)"],
|
|
525
|
+
"deny": ["Bash(rm:*)", "Bash(sudo:*)"]
|
|
526
|
+
},
|
|
527
|
+
"env": {
|
|
528
|
+
"NODE_ENV": "development"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
**个人本地配置**(`.codebuddy/settings.local.json`):
|
|
534
|
+
```json
|
|
535
|
+
{
|
|
536
|
+
"model": "gpt-4",
|
|
537
|
+
"env": {
|
|
538
|
+
"DEBUG": "myapp:*"
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
### 安全配置
|
|
544
|
+
|
|
545
|
+
限制敏感操作和文件访问:
|
|
546
|
+
|
|
547
|
+
```json
|
|
548
|
+
{
|
|
549
|
+
"permissions": {
|
|
550
|
+
"allow": ["Read", "Edit(src/**)", "Bash(git:status,git:diff)"],
|
|
551
|
+
"ask": ["WebFetch", "Bash(curl:*)"],
|
|
552
|
+
"deny": [
|
|
553
|
+
"Edit(**/*.env)",
|
|
554
|
+
"Edit(**/*.key)",
|
|
555
|
+
"Edit(**/*.pem)",
|
|
556
|
+
"Bash(wget:*)",
|
|
557
|
+
"Read(/etc/**)",
|
|
558
|
+
"Read(~/.ssh/**)"
|
|
559
|
+
],
|
|
560
|
+
"defaultMode": "default"
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
### 沙箱安全配置
|
|
566
|
+
|
|
567
|
+
启用沙箱并配置文件系统和网络访问:
|
|
568
|
+
|
|
569
|
+
```json
|
|
570
|
+
{
|
|
571
|
+
"sandbox": {
|
|
572
|
+
"enabled": true,
|
|
573
|
+
"autoAllowBashIfSandboxed": true,
|
|
574
|
+
"excludedCommands": ["docker", "git"],
|
|
575
|
+
"network": {
|
|
576
|
+
"allowUnixSockets": ["/var/run/docker.sock"],
|
|
577
|
+
"allowLocalBinding": true
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"permissions": {
|
|
581
|
+
"allow": [
|
|
582
|
+
"Edit(src/**)",
|
|
583
|
+
"WebFetch(https://api.github.com/**)"
|
|
584
|
+
],
|
|
585
|
+
"deny": [
|
|
586
|
+
"Read(.envrc)",
|
|
587
|
+
"Read(~/.aws/**)",
|
|
588
|
+
"Edit(**/*.env)"
|
|
589
|
+
]
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
## 另见
|
|
595
|
+
|
|
596
|
+
* [身份和访问管理](iam.md#配置权限) - 了解 CodeBuddy Code 的权限系统
|
|
597
|
+
* [Bash 沙箱](bash-sandboxing.md) - 了解沙箱隔离功能
|
|
598
|
+
* [故障排除](troubleshooting.md) - 常见配置问题的解决方案
|
|
599
|
+
|
|
600
|
+
---
|
|
601
|
+
|
|
602
|
+
*合适的配置让 CodeBuddy Code 更懂您的需求 ⚙️*
|