@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,436 @@
|
|
|
1
|
+
# 管理 CodeBuddy 的记忆
|
|
2
|
+
|
|
3
|
+
> 了解如何通过不同的记忆位置和最佳实践来管理 CodeBuddy Code 跨会话的记忆。
|
|
4
|
+
|
|
5
|
+
CodeBuddy Code 可以跨会话记住您的偏好,例如代码风格指南和工作流程中的常用命令。
|
|
6
|
+
|
|
7
|
+
## 确定记忆类型
|
|
8
|
+
|
|
9
|
+
CodeBuddy Code 提供四种分层结构的记忆位置,每种都有不同的用途:
|
|
10
|
+
|
|
11
|
+
| 记忆类型 | 位置 | 用途 | 使用场景示例 | 共享范围 |
|
|
12
|
+
|---------|------|------|-------------|---------|
|
|
13
|
+
| **用户记忆** | `~/.codebuddy/CODEBUDDY.md` | 适用于所有项目的个人偏好 | 代码风格偏好、个人工具快捷方式 | 仅限本人(所有项目) |
|
|
14
|
+
| **用户规则** | `~/.codebuddy/rules/*.md` | 模块化的个人规则 | 个人编码习惯、常用工作流 | 仅限本人(所有项目) |
|
|
15
|
+
| **项目记忆** | `./CODEBUDDY.md` 或 `./.codebuddy/CODEBUDDY.md` | 项目的团队共享指令 | 项目架构、编码标准、常用工作流程 | 通过源代码管理与团队成员共享 |
|
|
16
|
+
| **项目规则** | `./.codebuddy/rules/*.md` | 模块化的、按主题划分的项目指令 | 语言特定指南、测试规范、API 标准 | 通过源代码管理与团队成员共享 |
|
|
17
|
+
| **项目记忆(本地)** | `./CODEBUDDY.local.md` | 个人的项目特定偏好 | 您的沙箱 URL、首选测试数据 | 仅限本人(当前项目) |
|
|
18
|
+
|
|
19
|
+
所有记忆文件在启动 CodeBuddy Code 时自动加载到上下文中。加载顺序如下:
|
|
20
|
+
|
|
21
|
+
1. **用户级**:加载 `~/.codebuddy/CODEBUDDY.md` 等主文件及 `~/.codebuddy/rules/` 下的所有规则
|
|
22
|
+
2. **项目级主文件**:从当前工作目录向上递归加载所有 `CODEBUDDY.md` 和 `CODEBUDDY.local.md`
|
|
23
|
+
3. **项目级规则**:仅加载当前工作目录的 `.codebuddy/rules/` 下的规则(不加载父目录的规则)
|
|
24
|
+
4. **子目录记忆**:当 CodeBuddy 操作子目录中的文件时,动态加载该子目录的 `CODEBUDDY.md`
|
|
25
|
+
5. **本地记忆**:加载 `./CODEBUDDY.local.md`
|
|
26
|
+
|
|
27
|
+
> **提示**:CODEBUDDY.local.md 文件会自动添加到 .gitignore,非常适合存储不应提交到版本控制的私有项目特定偏好。
|
|
28
|
+
|
|
29
|
+
## CODEBUDDY.md 导入
|
|
30
|
+
|
|
31
|
+
CODEBUDDY.md 文件可以使用 `@path/to/import` 语法导入其他文件。以下示例导入了 3 个文件:
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
查看 @README 了解项目概述,@package.json 了解可用的 npm 命令。
|
|
35
|
+
|
|
36
|
+
# 附加说明
|
|
37
|
+
- Git 工作流程 @docs/git-instructions.md
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
支持相对路径和绝对路径。特别是,导入用户主目录中的文件是一种方便的方式,让团队成员可以提供不会提交到仓库的个人指令。导入是 CODEBUDDY.local.md 的替代方案,在多个 git worktree 之间工作得更好。
|
|
41
|
+
|
|
42
|
+
```markdown
|
|
43
|
+
# 个人偏好
|
|
44
|
+
- @~/.codebuddy/my-project-instructions.md
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
为避免潜在冲突,代码块和代码范围内的导入不会被解析。
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
此代码范围不会被视为导入:`@tencent-ai/codebuddy-code`
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
导入的文件可以递归导入其他文件,最大深度为 5 层。您可以通过运行 `/memory` 命令查看已加载的记忆文件。
|
|
54
|
+
|
|
55
|
+
## CodeBuddy 如何查找记忆
|
|
56
|
+
|
|
57
|
+
CodeBuddy Code 递归读取记忆:从当前工作目录开始,CodeBuddy Code 向上递归到根目录(但不包括根目录 `/`),并读取找到的任何 CODEBUDDY.md 或 CODEBUDDY.local.md 文件。这在大型仓库中特别方便,当您在 `foo/bar/` 目录中运行 CodeBuddy Code,并且在 `foo/CODEBUDDY.md` 和 `foo/bar/CODEBUDDY.md` 两处都有记忆时。
|
|
58
|
+
|
|
59
|
+
CodeBuddy 还会发现当前工作目录下子树中嵌套的 CODEBUDDY.md。这些文件不会在启动时加载,只有当 CodeBuddy 读取这些子树中的文件时才会包含。
|
|
60
|
+
|
|
61
|
+
## 使用 `/memory` 管理记忆
|
|
62
|
+
|
|
63
|
+
在会话中使用 `/memory` 斜杠命令,打开记忆管理面板。在该面板中你可以:
|
|
64
|
+
|
|
65
|
+
- 打开 Auto Memory 目录
|
|
66
|
+
- 打开 `MEMORY.md` 索引文件
|
|
67
|
+
- 切换 Auto Memory 开关
|
|
68
|
+
|
|
69
|
+
## 设置项目记忆
|
|
70
|
+
|
|
71
|
+
假设您想设置一个 CODEBUDDY.md 文件来存储重要的项目信息、约定和常用命令。项目记忆可以存储在 `./CODEBUDDY.md` 或 `./.codebuddy/CODEBUDDY.md` 中。
|
|
72
|
+
|
|
73
|
+
使用以下命令为您的代码库引导一个 CODEBUDDY.md:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
> /init
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
> **提示**:
|
|
80
|
+
> - 包含常用命令(构建、测试、lint)以避免重复搜索
|
|
81
|
+
> - 记录代码风格偏好和命名约定
|
|
82
|
+
> - 添加项目特定的重要架构模式
|
|
83
|
+
> - CODEBUDDY.md 记忆既可用于与团队共享的指令,也可用于个人偏好
|
|
84
|
+
|
|
85
|
+
## 使用 `.codebuddy/rules/` 实现模块化规则
|
|
86
|
+
|
|
87
|
+
对于较大的项目,您可以使用 `.codebuddy/rules/` 目录将指令组织到多个文件中。这允许团队维护专注的、组织良好的规则文件,而不是一个庞大的 CODEBUDDY.md。
|
|
88
|
+
|
|
89
|
+
### 基本结构
|
|
90
|
+
|
|
91
|
+
将 markdown 文件放在项目的 `.codebuddy/rules/` 目录中:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
your-project/
|
|
95
|
+
├── .codebuddy/
|
|
96
|
+
│ ├── CODEBUDDY.md # 主要项目指令
|
|
97
|
+
│ └── rules/
|
|
98
|
+
│ ├── code-style.md # 代码风格指南
|
|
99
|
+
│ ├── testing.md # 测试规范
|
|
100
|
+
│ └── security.md # 安全要求
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
`.codebuddy/rules/` 中的所有 `.md` 文件都会自动作为项目记忆加载,优先级与 `.codebuddy/CODEBUDDY.md` 相同。
|
|
104
|
+
|
|
105
|
+
> **注意**:项目级规则仅从当前工作目录(workDir)的 `.codebuddy/rules/` 加载,不会加载父目录的规则文件夹。这确保规则的作用域清晰明确。
|
|
106
|
+
|
|
107
|
+
### 规则控制字段
|
|
108
|
+
|
|
109
|
+
规则文件支持以下 YAML frontmatter 字段来控制加载和应用行为:
|
|
110
|
+
|
|
111
|
+
| 字段 | 类型 | 默认值 | 说明 |
|
|
112
|
+
|------|------|--------|------|
|
|
113
|
+
| `enabled` | boolean | `true` | 是否加载此规则。设为 `false` 时规则完全不加载 |
|
|
114
|
+
| `alwaysApply` | boolean | `true` | 是否始终应用此规则 |
|
|
115
|
+
| `paths` | string/string[] | - | 触发规则的文件路径 glob 模式 |
|
|
116
|
+
|
|
117
|
+
#### 规则类型判定
|
|
118
|
+
|
|
119
|
+
规则类型由 `alwaysApply` 和 `paths` 共同决定:
|
|
120
|
+
|
|
121
|
+
| alwaysApply | paths | 规则类型 | 行为 |
|
|
122
|
+
|-------------|-------|----------|------|
|
|
123
|
+
| `true`(默认) | 任意 | ALWAYS | 始终注入到上下文 |
|
|
124
|
+
| `false` | 有值 | MANUAL(条件触发) | 仅在操作匹配文件时触发 |
|
|
125
|
+
| `false` | 无 | 不支持 | 规则不会加载 |
|
|
126
|
+
|
|
127
|
+
#### 示例
|
|
128
|
+
|
|
129
|
+
**始终应用的规则**(默认行为):
|
|
130
|
+
|
|
131
|
+
```markdown
|
|
132
|
+
|
|
133
|
+
# 通用代码规范
|
|
134
|
+
|
|
135
|
+
- 使用 2 空格缩进
|
|
136
|
+
- 文件末尾保留空行
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
**条件触发规则**:
|
|
140
|
+
|
|
141
|
+
```markdown
|
|
142
|
+
---
|
|
143
|
+
alwaysApply: false
|
|
144
|
+
paths: src/api/**/*.ts
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
# API 开发规则
|
|
148
|
+
|
|
149
|
+
- 所有 API 端点必须包含输入验证
|
|
150
|
+
- 使用标准错误响应格式
|
|
151
|
+
- 包含 OpenAPI 文档注释
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**禁用规则**(临时关闭):
|
|
155
|
+
|
|
156
|
+
```markdown
|
|
157
|
+
---
|
|
158
|
+
enabled: false
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
# 暂时不使用的规则
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
> **注意**:`paths` 字段不仅限于 `.codebuddy/rules/` 目录,在所有记忆文件(包括 CODEBUDDY.md、CODEBUDDY.local.md)中都可以使用。
|
|
165
|
+
|
|
166
|
+
### Glob 模式
|
|
167
|
+
|
|
168
|
+
`paths` 字段支持标准 glob 模式,并启用了 `matchBase` 选项:
|
|
169
|
+
|
|
170
|
+
| 模式 | 匹配 |
|
|
171
|
+
|------|------|
|
|
172
|
+
| `**/*.ts` | 任意目录下的所有 TypeScript 文件 |
|
|
173
|
+
| `*.ts` | 任意目录下的所有 TypeScript 文件(matchBase 模式) |
|
|
174
|
+
| `src/**/*` | `src/` 目录下的所有文件 |
|
|
175
|
+
| `*.md` | 任意目录下的 Markdown 文件 |
|
|
176
|
+
| `src/components/*.tsx` | 特定目录下的 React 组件 |
|
|
177
|
+
|
|
178
|
+
> **matchBase 说明**:启用 matchBase 后,不包含路径分隔符的模式(如 `*.ts`)会匹配任意目录下的文件。例如 `*.ts` 可以匹配 `src/utils/helper.ts`。
|
|
179
|
+
|
|
180
|
+
您可以使用大括号高效匹配多个模式:
|
|
181
|
+
|
|
182
|
+
```markdown
|
|
183
|
+
---
|
|
184
|
+
paths: src/**/*.{ts,tsx}
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
# TypeScript/React 规则
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
这会展开匹配 `src/**/*.ts` 和 `src/**/*.tsx`。您也可以用逗号组合多个模式:
|
|
191
|
+
|
|
192
|
+
```markdown
|
|
193
|
+
---
|
|
194
|
+
paths: {src,lib}/**/*.ts, tests/**/*.test.ts
|
|
195
|
+
---
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### 子目录
|
|
199
|
+
|
|
200
|
+
规则可以组织到子目录中以获得更好的结构:
|
|
201
|
+
|
|
202
|
+
```
|
|
203
|
+
.codebuddy/rules/
|
|
204
|
+
├── frontend/
|
|
205
|
+
│ ├── react.md
|
|
206
|
+
│ └── styles.md
|
|
207
|
+
├── backend/
|
|
208
|
+
│ ├── api.md
|
|
209
|
+
│ └── database.md
|
|
210
|
+
└── general.md
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
所有 `.md` 文件都会被递归发现。
|
|
214
|
+
|
|
215
|
+
### 符号链接
|
|
216
|
+
|
|
217
|
+
`.codebuddy/rules/` 目录支持符号链接,允许您在多个项目之间共享通用规则:
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
# 符号链接共享规则目录
|
|
221
|
+
ln -s ~/shared-codebuddy-rules .codebuddy/rules/shared
|
|
222
|
+
|
|
223
|
+
# 符号链接单个规则文件
|
|
224
|
+
ln -s ~/company-standards/security.md .codebuddy/rules/security.md
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
符号链接会被解析,其内容正常加载。循环符号链接会被检测并优雅处理。
|
|
228
|
+
|
|
229
|
+
### 用户级规则
|
|
230
|
+
|
|
231
|
+
您可以在 `~/.codebuddy/rules/` 中创建适用于所有项目的个人规则:
|
|
232
|
+
|
|
233
|
+
```
|
|
234
|
+
~/.codebuddy/rules/
|
|
235
|
+
├── preferences.md # 您的个人编码偏好
|
|
236
|
+
└── workflows.md # 您首选的工作流程
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
用户级规则在项目规则之前加载,给予项目规则更高的优先级。
|
|
240
|
+
|
|
241
|
+
> **最佳实践**:
|
|
242
|
+
> - **保持规则专注**:每个文件应涵盖一个主题(如 `testing.md`、`api-design.md`)
|
|
243
|
+
> - **使用描述性文件名**:文件名应表明规则涵盖的内容
|
|
244
|
+
> - **谨慎使用条件规则**:仅当规则真正适用于特定文件类型时才添加 `paths` frontmatter
|
|
245
|
+
> - **用子目录组织**:分组相关规则(如 `frontend/`、`backend/`)
|
|
246
|
+
|
|
247
|
+
## 记忆最佳实践
|
|
248
|
+
|
|
249
|
+
- **具体明确**:"使用 2 空格缩进"比"正确格式化代码"更好。
|
|
250
|
+
- **使用结构组织**:将每条记忆格式化为要点,并在描述性 markdown 标题下分组相关记忆。
|
|
251
|
+
- **定期审查**:随着项目发展更新记忆,确保 CodeBuddy 始终使用最新的信息和上下文。
|
|
252
|
+
|
|
253
|
+
## 设置语言偏好
|
|
254
|
+
|
|
255
|
+
推荐使用 `/config` 命令配置首选响应语言(详见 [设置配置](settings.md#可用设置)),这是最简单直接的方式:
|
|
256
|
+
|
|
257
|
+
```
|
|
258
|
+
> /config
|
|
259
|
+
# 选择 Language,输入您的首选语言,如"简体中文"
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
如果需要更细粒度的控制(如代码注释语言、提交信息语言),可以在记忆文件中添加:
|
|
263
|
+
|
|
264
|
+
```markdown
|
|
265
|
+
## CodeBuddy Added Memories
|
|
266
|
+
|
|
267
|
+
### 语言偏好
|
|
268
|
+
- 代码注释使用中文
|
|
269
|
+
- 提交信息使用中文
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
项目级语言设置会覆盖用户级设置。
|
|
273
|
+
|
|
274
|
+
## 分层记忆策略示例
|
|
275
|
+
|
|
276
|
+
### 用户级记忆 (`~/.codebuddy/CODEBUDDY.md`)
|
|
277
|
+
|
|
278
|
+
```markdown
|
|
279
|
+
## CodeBuddy Added Memories
|
|
280
|
+
|
|
281
|
+
### 工具偏好
|
|
282
|
+
- 使用 pnpm 而非 npm
|
|
283
|
+
|
|
284
|
+
### 代码偏好
|
|
285
|
+
- 倾向函数式编程风格
|
|
286
|
+
- 优先代码可读性
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
> **提示**:响应语言推荐通过 `/config` 设置,而非在记忆文件中配置。
|
|
290
|
+
|
|
291
|
+
### 项目级记忆 (`./CODEBUDDY.md`)
|
|
292
|
+
|
|
293
|
+
```markdown
|
|
294
|
+
## CodeBuddy Added Memories
|
|
295
|
+
|
|
296
|
+
### 项目架构
|
|
297
|
+
- 使用微服务架构
|
|
298
|
+
- 前端:React + TypeScript
|
|
299
|
+
- 后端:Node.js + Express
|
|
300
|
+
|
|
301
|
+
### 团队约定
|
|
302
|
+
- PR 需要 2 人审查
|
|
303
|
+
- 遵循 Conventional Commits
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
### 本地项目记忆 (`./CODEBUDDY.local.md`)
|
|
307
|
+
|
|
308
|
+
```markdown
|
|
309
|
+
## CodeBuddy Added Memories
|
|
310
|
+
|
|
311
|
+
### 本地开发配置
|
|
312
|
+
- 数据库端口:5433
|
|
313
|
+
- 使用 debug 模式
|
|
314
|
+
- 跳过 CI 快速测试
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
## Auto Memory 系统
|
|
318
|
+
|
|
319
|
+
Auto Memory 是 CodeBuddy Code 的自动记忆系统,允许 CodeBuddy 在会话之间自动保存和检索持久化记忆。与 CODEBUDDY.md 的静态记忆不同,Auto Memory 由 CodeBuddy 在工作过程中自主决定保存什么内容。
|
|
320
|
+
|
|
321
|
+
### 存储位置
|
|
322
|
+
|
|
323
|
+
- **项目记忆**:`~/.codebuddy/memories/{project-id}/`
|
|
324
|
+
- **全局记忆**:`~/.codebuddy/memories/global/`
|
|
325
|
+
|
|
326
|
+
每个项目都有一个 `MEMORY.md` 索引文件,其前 200 行会自动加载到会话上下文。详细的记忆内容应存储在独立的主题文件中(如 `preferences.md`、`decisions.md`),并从 MEMORY.md 链接引用。
|
|
327
|
+
|
|
328
|
+
### 启用与禁用
|
|
329
|
+
|
|
330
|
+
- 通过 `/config` 面板切换 Auto Memory 开关
|
|
331
|
+
- 通过 `/memory` 命令面板切换
|
|
332
|
+
- 通过 `settings.json` 配置:`"memory": { "autoMemoryEnabled": false }`
|
|
333
|
+
- 通过环境变量:`CODEBUDDY_DISABLE_AUTO_MEMORY=1`
|
|
334
|
+
|
|
335
|
+
### Typed Memory 模式(Experimental)
|
|
336
|
+
|
|
337
|
+
Typed Memory 是 Auto Memory 的增强版本,提供结构化的记忆类型系统。启用后,记忆文件使用 YAML frontmatter 和 4 种类型进行管理。
|
|
338
|
+
|
|
339
|
+
**4 种记忆类型:**
|
|
340
|
+
|
|
341
|
+
| 类型 | 用途 | 示例 |
|
|
342
|
+
|------|------|------|
|
|
343
|
+
| `user` | 用户的角色、目标、偏好和知识背景 | “用户是高级后端工程师,擅长 Go” |
|
|
344
|
+
| `feedback` | 用户对 CodeBuddy 行为的纠正和指导 | “不要在测试中 mock 数据库” |
|
|
345
|
+
| `project` | 项目进行中的工作、目标和决策 | “下周三起冻结非关键合并” |
|
|
346
|
+
| `reference` | 外部系统和资源的指引 | “bug 跟踪在 Linear 项目 INGEST 中” |
|
|
347
|
+
|
|
348
|
+
**记忆文件格式:**
|
|
349
|
+
|
|
350
|
+
```markdown
|
|
351
|
+
---
|
|
352
|
+
name: 用户角色
|
|
353
|
+
description: 用户的职业背景和技术专长
|
|
354
|
+
type: user
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
用户是资深后端工程师,拥有 10 年 Go 语言经验,但首次接触项目的 React 前端部分。
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
**启用方式:**
|
|
361
|
+
|
|
362
|
+
- 通过 `/config` 面板启用 `[Experimental] Typed Memory`
|
|
363
|
+
- 通过 `settings.json` 配置:`"memory": { "typedMemory": true }`
|
|
364
|
+
- 通过环境变量:`CODEBUDDY_TYPED_MEMORY_ENABLED=true`
|
|
365
|
+
|
|
366
|
+
> **提示**:Typed Memory 关闭时,Auto Memory 会使用简化的通用格式,无类型系统和 YAML frontmatter。
|
|
367
|
+
|
|
368
|
+
## 缓存与重载
|
|
369
|
+
|
|
370
|
+
| 操作 | 重新加载 | 说明 |
|
|
371
|
+
|------|---------|------|
|
|
372
|
+
| 进程重启 | 是 | 缓存清空 |
|
|
373
|
+
| 通过 /memory 编辑 | 是 | 自动清除缓存 |
|
|
374
|
+
| /clear 命令 | 否 | 仅清除消息历史 |
|
|
375
|
+
| 手动修改文件 | 否 | 需手动重启 |
|
|
376
|
+
| 新增/删除规则文件 | 否 | 需手动重启 |
|
|
377
|
+
|
|
378
|
+
## 常见问题
|
|
379
|
+
|
|
380
|
+
**AGENTS.md 和 CODEBUDDY.md 有什么区别?**
|
|
381
|
+
|
|
382
|
+
CodeBuddy Code 同时支持 AGENTS.md 和 CODEBUDDY.md 作为项目记忆文件:
|
|
383
|
+
|
|
384
|
+
- **AGENTS.md 支持**:如果项目中存在 `CODEBUDDY.md` 文件,项目级记忆将使用 CODEBUDDY.md,否则使用 AGENTS.md
|
|
385
|
+
- **自动检测**:系统会自动检测项目中是否存在 AGENTS.md 文件
|
|
386
|
+
|
|
387
|
+
### 推荐使用 CODEBUDDY.md
|
|
388
|
+
|
|
389
|
+
虽然我们保持对 AGENTS.md 的支持,但建议新项目使用 CODEBUDDY.md 作为记忆文件名,以保持与 CodeBuddy Code 品牌的一致性。
|
|
390
|
+
|
|
391
|
+
**如何迁移 AGENTS.md 到 CODEBUDDY.md?**
|
|
392
|
+
|
|
393
|
+
重命名 `AGENTS.md` 为 `CODEBUDDY.md` 即可。系统自动检测,CODEBUDDY.md 优先加载。
|
|
394
|
+
|
|
395
|
+
**记忆文件如何同步?**
|
|
396
|
+
|
|
397
|
+
- **项目记忆**:通过 Git 与团队同步
|
|
398
|
+
- **用户记忆**:本地存储,不同步
|
|
399
|
+
- **本地项目记忆**:本地存储,自动添加到 .gitignore
|
|
400
|
+
|
|
401
|
+
**条件规则什么时候触发?**
|
|
402
|
+
|
|
403
|
+
在以下情况触发:
|
|
404
|
+
- 使用 `@path/to/file` 引用文件时
|
|
405
|
+
- 使用 Read、Glob、Grep、Edit、Write 等文件操作工具时
|
|
406
|
+
|
|
407
|
+
触发后,匹配规则会作为系统提醒注入到当前消息上下文。当所有条件规则都已注入后,不会重复注入。
|
|
408
|
+
|
|
409
|
+
**如何调试规则加载问题?**
|
|
410
|
+
|
|
411
|
+
1. 运行 `/memory` 查看已加载的规则列表
|
|
412
|
+
2. 检查 frontmatter 格式是否正确(`---` 分隔符)
|
|
413
|
+
3. 确认 glob 模式是否匹配
|
|
414
|
+
4. 重启 CodeBuddy 清除缓存
|
|
415
|
+
|
|
416
|
+
**规则文件大小有限制吗?**
|
|
417
|
+
|
|
418
|
+
建议保持简洁。特别大的规范文档使用 `@import` 语法引用而非直接包含。
|
|
419
|
+
|
|
420
|
+
## 与 CodeBuddy IDE 的兼容性
|
|
421
|
+
|
|
422
|
+
CodeBuddy Code CLI 和 CodeBuddy IDE 都支持记忆/规则功能,但条件规则的触发方式不同:
|
|
423
|
+
|
|
424
|
+
- **CLI**:条件规则通过 glob 模式自动匹配文件操作触发(包括 @ 引用和工具调用),不支持模型智能选择规则
|
|
425
|
+
- **IDE**:条件规则支持用户通过 @RuleName 手动引用,也支持模型基于上下文智能决策激活规则
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
## 相关资源
|
|
429
|
+
|
|
430
|
+
- [设置配置](settings.md) - 配置 CodeBuddy Code 行为
|
|
431
|
+
- [斜杠命令](slash-commands.md) - 所有可用命令
|
|
432
|
+
- [快速入门](quickstart.md) - 快速上手指南
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
*通过有效的记忆管理,让 CodeBuddy Code 更好地理解您的需求和偏好*
|