@tencent-ai/agent-sdk 0.3.99 → 0.3.101
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 +50 -0
- package/cli/dist/codebuddy-headless.js +140 -131
- package/cli/dist/web-ui/assets/index-CIqmZV3y.js +440 -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 +200 -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.68.0.md +28 -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 +290 -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 +1013 -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 +530 -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 +194 -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.68.0.md +28 -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 +783 -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 +759 -0
- package/cli/dist/web-ui/docs/en/cli/sdk.md +1103 -0
- package/cli/dist/web-ui/docs/en/cli/security.md +387 -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 +4 -3
- package/cli/product.selfhosted.json +2 -2
- package/lib/query.d.ts.map +1 -1
- package/lib/query.js +5 -1
- package/lib/query.js.map +1 -1
- package/lib/transport/index.d.ts +1 -1
- package/lib/transport/index.d.ts.map +1 -1
- package/lib/transport/process-transport.d.ts +1 -1
- package/lib/transport/process-transport.d.ts.map +1 -1
- package/lib/transport/process-transport.js +5 -1
- package/lib/transport/process-transport.js.map +1 -1
- package/lib/types.d.ts +3 -0
- package/lib/types.d.ts.map +1 -1
- 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,356 @@
|
|
|
1
|
+
# models.json 配置指南
|
|
2
|
+
|
|
3
|
+
## 概述
|
|
4
|
+
|
|
5
|
+
`models.json` 是一个配置文件,用于自定义模型列表和控制模型下拉列表的显示。该配置支持两个级别:
|
|
6
|
+
|
|
7
|
+
- **用户级**: `~/.codebuddy/models.json` - 全局配置,适用于所有项目
|
|
8
|
+
- **项目级**: `<workspace>/.codebuddy/models.json` - 项目特定配置,优先级高于用户级
|
|
9
|
+
|
|
10
|
+
## 配置文件位置
|
|
11
|
+
|
|
12
|
+
### 用户级配置
|
|
13
|
+
```
|
|
14
|
+
~/.codebuddy/models.json
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### 项目级配置
|
|
18
|
+
```
|
|
19
|
+
<project-root>/.codebuddy/models.json
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 配置优先级
|
|
23
|
+
|
|
24
|
+
配置合并优先级从高到低:
|
|
25
|
+
1. 项目级 models.json
|
|
26
|
+
2. 用户级 models.json
|
|
27
|
+
3. 内置默认配置
|
|
28
|
+
|
|
29
|
+
项目级配置会覆盖用户级配置中的相同模型定义(基于 `id` 字段匹配)。`availableModels` 字段:项目级完全覆盖用户级,不进行合并。
|
|
30
|
+
|
|
31
|
+
## 配置结构
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"models": [
|
|
36
|
+
{
|
|
37
|
+
"id": "model-id",
|
|
38
|
+
"name": "Model Display Name",
|
|
39
|
+
"vendor": "vendor-name",
|
|
40
|
+
"apiKey": "sk-actual-api-key-value",
|
|
41
|
+
"maxInputTokens": 200000,
|
|
42
|
+
"maxOutputTokens": 8192,
|
|
43
|
+
"url": "https://api.example.com/v1/chat/completions",
|
|
44
|
+
"temperature": 0.7,
|
|
45
|
+
"supportsToolCall": true,
|
|
46
|
+
"supportsImages": true
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"availableModels": ["model-id-1", "model-id-2"]
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## 配置字段说明
|
|
54
|
+
|
|
55
|
+
### models
|
|
56
|
+
类型: `Array<LanguageModel>`
|
|
57
|
+
|
|
58
|
+
定义自定义模型列表。可以添加新模型或覆盖内置模型配置。
|
|
59
|
+
|
|
60
|
+
#### LanguageModel 字段
|
|
61
|
+
|
|
62
|
+
| 字段 | 类型 | 必填 | 说明 |
|
|
63
|
+
|------|------|------|------|
|
|
64
|
+
| `id` | string | ✓ | 模型唯一标识符 |
|
|
65
|
+
| `name` | string | - | 模型显示名称 |
|
|
66
|
+
| `vendor` | string | - | 模型供应商 (如 OpenAI, Google) |
|
|
67
|
+
| `apiKey` | string | - | API 密钥,支持环境变量引用(见下方安全配置说明) |
|
|
68
|
+
| `maxInputTokens` | number | - | 最大输入 token 数 |
|
|
69
|
+
| `maxOutputTokens` | number | - | 最大输出 token 数 |
|
|
70
|
+
| `url` | string | - | API 端点 URL,支持环境变量引用 (必须是接口完整路径,一般以 `/chat/completions` 结尾) |
|
|
71
|
+
| `temperature` | number | - | 采样温度,范围 0-2,值越高输出越随机,值越低输出越确定 |
|
|
72
|
+
| `supportsToolCall` | boolean | - | 是否支持工具调用 |
|
|
73
|
+
| `supportsImages` | boolean | - | 是否支持图片输入 |
|
|
74
|
+
| `supportsReasoning` | boolean | - | 是否支持推理模式 |
|
|
75
|
+
|
|
76
|
+
**重要说明:**
|
|
77
|
+
- 目前仅支持 OpenAI 接口格式的 API
|
|
78
|
+
- `url` 字段必须是接口完整路径,一般以 `/chat/completions` 结尾
|
|
79
|
+
- 例如: `https://api.openai.com/v1/chat/completions` 或 `http://localhost:11434/v1/chat/completions`
|
|
80
|
+
|
|
81
|
+
### 安全配置:使用环境变量引用
|
|
82
|
+
|
|
83
|
+
为避免 API 密钥明文存储在配置文件中,`apiKey` 和 `url` 字段支持环境变量引用语法 `${VAR_NAME}`。
|
|
84
|
+
|
|
85
|
+
**语法格式:**
|
|
86
|
+
```
|
|
87
|
+
${环境变量名}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**配置示例:**
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{
|
|
94
|
+
"models": [
|
|
95
|
+
{
|
|
96
|
+
"id": "gpt-4o",
|
|
97
|
+
"name": "GPT-4o",
|
|
98
|
+
"vendor": "OpenAI",
|
|
99
|
+
"apiKey": "${OPENAI_API_KEY}",
|
|
100
|
+
"url": "https://api.openai.com/v1/chat/completions"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**设置环境变量:**
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# 在 ~/.zshrc 或 ~/.bashrc 中添加
|
|
110
|
+
export OPENAI_API_KEY="sk-your-actual-api-key"
|
|
111
|
+
|
|
112
|
+
# 或者在启动时临时设置
|
|
113
|
+
OPENAI_API_KEY="sk-xxx" codebuddy
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**使用系统 Keychain(macOS):**
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# 存储密钥到 Keychain
|
|
120
|
+
security add-generic-password -a "$USER" -s "openai-api-key" -w "sk-xxx"
|
|
121
|
+
|
|
122
|
+
# 在 ~/.zshrc 中配置自动导出
|
|
123
|
+
export OPENAI_API_KEY=$(security find-generic-password -s "openai-api-key" -w 2>/dev/null)
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**注意事项:**
|
|
127
|
+
- 环境变量在 CLI 启动时解析
|
|
128
|
+
- 如果环境变量不存在,将保留原始占位符(会导致 API 调用失败)
|
|
129
|
+
- 建议将 `models.json` 文件权限设置为 `600`(仅所有者可读写)
|
|
130
|
+
- 不要将包含实际密钥的配置文件提交到版本控制系统
|
|
131
|
+
|
|
132
|
+
### availableModels
|
|
133
|
+
类型: `Array<string>`
|
|
134
|
+
|
|
135
|
+
控制模型下拉列表中显示哪些模型。只有在此数组中列出的模型 ID 才会在 UI 中显示。
|
|
136
|
+
|
|
137
|
+
- 如果未配置或为空数组,则显示所有模型
|
|
138
|
+
- 配置后,只显示列出的模型 ID
|
|
139
|
+
- 可以同时包含内置模型和自定义模型的 ID
|
|
140
|
+
|
|
141
|
+
## 使用场景
|
|
142
|
+
|
|
143
|
+
### 1. 添加自定义模型
|
|
144
|
+
|
|
145
|
+
在用户级或项目级添加新的模型配置:
|
|
146
|
+
|
|
147
|
+
```json
|
|
148
|
+
{
|
|
149
|
+
"models": [
|
|
150
|
+
{
|
|
151
|
+
"id": "my-custom-model",
|
|
152
|
+
"name": "My Custom Model",
|
|
153
|
+
"vendor": "OpenAI",
|
|
154
|
+
"apiKey": "sk-custom-key-here",
|
|
155
|
+
"maxInputTokens": 128000,
|
|
156
|
+
"maxOutputTokens": 4096,
|
|
157
|
+
"url": "https://api.myservice.com/v1/chat/completions",
|
|
158
|
+
"supportsToolCall": true
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### 2. 覆盖内置模型配置
|
|
165
|
+
|
|
166
|
+
修改内置模型的默认参数:
|
|
167
|
+
|
|
168
|
+
```json
|
|
169
|
+
{
|
|
170
|
+
"models": [
|
|
171
|
+
{
|
|
172
|
+
"id": "gpt-4-turbo",
|
|
173
|
+
"name": "GPT-4 Turbo (Custom Endpoint)",
|
|
174
|
+
"vendor": "OpenAI",
|
|
175
|
+
"url": "https://my-proxy.example.com/v1/chat/completions",
|
|
176
|
+
"apiKey": "sk-your-key-here"
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### 3. 限制可用模型列表
|
|
183
|
+
|
|
184
|
+
只在下拉列表中显示特定模型:
|
|
185
|
+
|
|
186
|
+
```json
|
|
187
|
+
{
|
|
188
|
+
"availableModels": [
|
|
189
|
+
"gpt-4-turbo",
|
|
190
|
+
"gpt-4o",
|
|
191
|
+
"my-custom-model"
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### 4. 项目特定配置
|
|
197
|
+
|
|
198
|
+
为特定项目使用不同的模型或 API 端点:
|
|
199
|
+
|
|
200
|
+
**项目 A** (`.codebuddy/models.json`):
|
|
201
|
+
```json
|
|
202
|
+
{
|
|
203
|
+
"models": [
|
|
204
|
+
{
|
|
205
|
+
"id": "project-a-model",
|
|
206
|
+
"name": "Project A Model",
|
|
207
|
+
"vendor": "OpenAI",
|
|
208
|
+
"url": "https://project-a-api.example.com/v1/chat/completions",
|
|
209
|
+
"apiKey": "sk-project-a-key",
|
|
210
|
+
"maxInputTokens": 100000,
|
|
211
|
+
"maxOutputTokens": 4096
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"availableModels": ["project-a-model", "gpt-4-turbo"]
|
|
215
|
+
}
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## 热重载
|
|
219
|
+
|
|
220
|
+
配置文件支持热重载:
|
|
221
|
+
- 文件变更会被自动检测
|
|
222
|
+
- 使用 1 秒防抖延迟避免频繁重载
|
|
223
|
+
- 配置更新后会自动同步到应用
|
|
224
|
+
|
|
225
|
+
监听的文件:
|
|
226
|
+
- `~/.codebuddy/models.json` (用户级)
|
|
227
|
+
- `<workspace>/.codebuddy/models.json` (项目级)
|
|
228
|
+
|
|
229
|
+
## 标签系统
|
|
230
|
+
|
|
231
|
+
通过 `models.json` 添加的模型会自动标记 `custom` 标签,便于在 UI 中识别和过滤。
|
|
232
|
+
|
|
233
|
+
## 合并策略
|
|
234
|
+
|
|
235
|
+
配置使用 `SmartMerge` 策略:
|
|
236
|
+
- 相同 ID 的模型配置会被覆盖
|
|
237
|
+
- 不同 ID 的模型会被追加
|
|
238
|
+
- 项目级配置优先于用户级配置
|
|
239
|
+
- `availableModels` 过滤在所有合并完成后执行
|
|
240
|
+
|
|
241
|
+
## 示例配置
|
|
242
|
+
|
|
243
|
+
### API 端点 URL 格式说明
|
|
244
|
+
|
|
245
|
+
**必须使用完整路径:**
|
|
246
|
+
所有自定义模型的 `url` 字段一般以 `/chat/completions` 结尾。
|
|
247
|
+
|
|
248
|
+
✅ **正确示例:**
|
|
249
|
+
```
|
|
250
|
+
https://api.openai.com/v1/chat/completions
|
|
251
|
+
https://api.myservice.com/v1/chat/completions
|
|
252
|
+
http://localhost:11434/v1/chat/completions
|
|
253
|
+
https://my-proxy.example.com/v1/chat/completions
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
❌ **错误示例:**
|
|
257
|
+
```
|
|
258
|
+
https://api.openai.com/v1
|
|
259
|
+
https://api.myservice.com
|
|
260
|
+
http://localhost:11434
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### OpenRouter 平台配置示例
|
|
264
|
+
|
|
265
|
+
使用 OpenRouter 访问多种模型:
|
|
266
|
+
|
|
267
|
+
```json
|
|
268
|
+
{
|
|
269
|
+
"models": [
|
|
270
|
+
{
|
|
271
|
+
"id": "openai/gpt-4o",
|
|
272
|
+
"name": "open-router-model",
|
|
273
|
+
"url": "https://openrouter.ai/api/v1/chat/completions",
|
|
274
|
+
"apiKey": "sk-or-v1-your-openrouter-api-key",
|
|
275
|
+
"maxInputTokens": 128000,
|
|
276
|
+
"maxOutputTokens": 4096,
|
|
277
|
+
"supportsToolCall": true,
|
|
278
|
+
"supportsImages": false
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### DeepSeek 平台配置示例
|
|
285
|
+
|
|
286
|
+
使用 DeepSeek 模型:
|
|
287
|
+
|
|
288
|
+
```json
|
|
289
|
+
{
|
|
290
|
+
"models": [
|
|
291
|
+
{
|
|
292
|
+
"id": "deepseek-chat",
|
|
293
|
+
"name": "DeepSeek Chat",
|
|
294
|
+
"vendor": "DeepSeek",
|
|
295
|
+
"url": "https://api.deepseek.com/v1/chat/completions",
|
|
296
|
+
"apiKey": "sk-your-deepseek-api-key",
|
|
297
|
+
"maxInputTokens": 32000,
|
|
298
|
+
"maxOutputTokens": 4096,
|
|
299
|
+
"supportsToolCall": true,
|
|
300
|
+
"supportsImages": false
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
### 完整示例
|
|
307
|
+
|
|
308
|
+
```json
|
|
309
|
+
{
|
|
310
|
+
"models": [
|
|
311
|
+
{
|
|
312
|
+
"id": "gpt-4o",
|
|
313
|
+
"name": "GPT-4o",
|
|
314
|
+
"vendor": "OpenAI",
|
|
315
|
+
"apiKey": "sk-your-openai-key",
|
|
316
|
+
"maxInputTokens": 128000,
|
|
317
|
+
"maxOutputTokens": 16384,
|
|
318
|
+
"supportsToolCall": true,
|
|
319
|
+
"supportsImages": true
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"id": "my-local-llm",
|
|
323
|
+
"name": "My Local LLM",
|
|
324
|
+
"vendor": "Ollama",
|
|
325
|
+
"url": "http://localhost:11434/v1/chat/completions",
|
|
326
|
+
"apiKey": "ollama",
|
|
327
|
+
"maxInputTokens": 8192,
|
|
328
|
+
"maxOutputTokens": 2048,
|
|
329
|
+
"supportsToolCall": true
|
|
330
|
+
}
|
|
331
|
+
],
|
|
332
|
+
"availableModels": [
|
|
333
|
+
"gpt-4o",
|
|
334
|
+
"my-local-llm"
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
## 故障排查
|
|
340
|
+
|
|
341
|
+
### 配置未生效
|
|
342
|
+
1. 检查 JSON 格式是否正确
|
|
343
|
+
2. 确认文件路径是否正确
|
|
344
|
+
3. 查看日志输出确认配置是否被加载
|
|
345
|
+
4. 确认环境变量中的 API 密钥是否已设置
|
|
346
|
+
|
|
347
|
+
### 模型未在列表中显示
|
|
348
|
+
1. 检查模型 ID 是否在 `availableModels` 中列出
|
|
349
|
+
2. 确认 `models` 配置是否正确
|
|
350
|
+
3. 验证必填字段 (`id`, `name`, `provider`) 是否都已提供
|
|
351
|
+
|
|
352
|
+
### 热重载未触发
|
|
353
|
+
- 配置文件变更有 1 秒防抖延迟
|
|
354
|
+
- 确保文件确实被保存到磁盘
|
|
355
|
+
- 检查文件监听是否正常启动 (查看调试日志)
|
|
356
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# 概述
|
|
2
|
+
|
|
3
|
+
**腾讯云智能编程助手 - 让代码开发更智能、更高效**
|
|
4
|
+
|
|
5
|
+
CodeBuddy Code 是基于腾讯云 AI 技术的智能编程工具,深度集成腾讯云生态,提供从代码编写到项目部署的全链路 AI 辅助。
|
|
6
|
+
|
|
7
|
+
## 为什么选择 CodeBuddy Code?
|
|
8
|
+
|
|
9
|
+
### 🚀 用自然语言驱动整个开发运维生命周期
|
|
10
|
+
|
|
11
|
+
CodeBuddy Code 让您能够用自然语言描述需求,自动化完成从代码编写、测试、调试到部署的全链路开发任务,实现极致的自动化效率提升。无论是简单的代码修改还是复杂的架构重构,都能通过对话式交互轻松完成。
|
|
12
|
+
|
|
13
|
+
### 🔧 终端原生,无缝集成
|
|
14
|
+
|
|
15
|
+
* **熟悉的环境**:直接在您熟悉的命令行环境中获得 AI 辅助,无需切换开发工具或学习新界面
|
|
16
|
+
* **原生体验**:完美融入现有的开发工作流,支持所有主流操作系统和终端
|
|
17
|
+
* **零学习成本**:保持原有的开发习惯,AI 助手静默工作在后台
|
|
18
|
+
|
|
19
|
+
### ⚡ 开箱即用的强大能力
|
|
20
|
+
|
|
21
|
+
* **内置工具链**:集成文件编辑、命令运行、Git 操作、测试执行等核心开发工具
|
|
22
|
+
* **智能提交**:自动生成规范的提交信息,支持代码审查和变更管理
|
|
23
|
+
* **灵活扩展**:通过 MCP (模型上下文协议) 轻松集成第三方工具和服务
|
|
24
|
+
* **自定义开发工具**:根据项目需求定制专属的开发助手
|
|
25
|
+
|
|
26
|
+
### 🛠️ Unix 哲学的 AI 集成
|
|
27
|
+
|
|
28
|
+
* **管道友好**:像 `grep` 和 `awk` 一样,原生支持管道输入进行智能分析
|
|
29
|
+
|
|
30
|
+
* **脚本集成**:完美融入 shell 脚本和自动化工具链
|
|
31
|
+
|
|
32
|
+
* **组合能力**:与现有 Unix 工具无缝组合,构建强大的 AI 驱动工作流
|
|
33
|
+
|
|
34
|
+
* **标准输入输出**:遵循 Unix 标准,支持重定向和管道操作
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# 管道集成示例
|
|
38
|
+
|
|
39
|
+
git log --oneline | codebuddy "分析这些提交,找出可能的问题"
|
|
40
|
+
cat error.log | codebuddy "帮我分析这些错误日志"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## 快速体验
|
|
44
|
+
|
|
45
|
+
### 环境要求
|
|
46
|
+
|
|
47
|
+
* Node.js 18.0+
|
|
48
|
+
|
|
49
|
+
### 一键安装
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npm install -g @tencent-ai/codebuddy-code
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### 开始使用
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# 进入项目目录
|
|
59
|
+
cd my-project
|
|
60
|
+
|
|
61
|
+
# 启动 CodeBuddy
|
|
62
|
+
codebuddy
|
|
63
|
+
cbc
|
|
64
|
+
|
|
65
|
+
# 或直接提问
|
|
66
|
+
codebuddy "帮我优化这个函数的性能"
|
|
67
|
+
cbc "帮我优化这个函数的性能"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## 下一步操作
|
|
71
|
+
|
|
72
|
+
### 📚 深入了解
|
|
73
|
+
|
|
74
|
+
* [快速入门指南](./quickstart.md) - 详细的设置和使用指南
|
|
75
|
+
* [常见工作流](./common-workflows.md) - 扩展思考、图片粘贴、--resume 等功能
|
|
76
|
+
* [IDE 集成](./ide-integrations.md) - 在你喜欢的编辑器中使用
|
|
77
|
+
|
|
78
|
+
### 🔧 配置和扩展
|
|
79
|
+
|
|
80
|
+
* [MCP 集成](./mcp.md) - 模型上下文协议集成
|
|
81
|
+
* [斜杠命令](./slash-commands.md) - 内置命令参考
|
|
82
|
+
* [设置配置](./settings.md) - 配置文件、环境变量、工具设置
|
|
83
|
+
|
|
84
|
+
### 🚀 高级用法
|
|
85
|
+
|
|
86
|
+
* **GitHub Actions** - CI/CD 集成
|
|
87
|
+
* **SDK 开发** - 扩展和自定义
|
|
88
|
+
* **企业部署** - 容器化部署
|
|
89
|
+
|
|
90
|
+
### 🆘 获取帮助
|
|
91
|
+
|
|
92
|
+
* [故障排除](./troubleshooting.md) - 常见问题解决
|
|
93
|
+
* [CLI 参考](./reference.md) - 完整命令行参考
|
|
94
|
+
* **交互模式** - 键盘快捷键和技巧
|
|
95
|
+
|
|
96
|
+
## 反馈和支持
|
|
97
|
+
|
|
98
|
+
* 📧 技术支持:codebuddy@tencent.com
|
|
99
|
+
* 🌐 [国内官方网站](https://copilot.tencent.com/cli)
|
|
100
|
+
* 🌐 [海外官方网站](https://www.codebuddy.ai/cli)
|