@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,316 @@
|
|
|
1
|
+
# Sandbox 沙箱使用指南 (Beta)
|
|
2
|
+
|
|
3
|
+
> ⚠️ **Beta 功能**: Sandbox 功能目前处于 Beta 阶段,API 和功能可能会有变动。
|
|
4
|
+
|
|
5
|
+
CodeBuddy 支持在隔离的沙箱环境中运行,提供安全的代码执行和项目开发环境。
|
|
6
|
+
|
|
7
|
+
## 🎯 沙箱类型
|
|
8
|
+
|
|
9
|
+
- **Container Sandbox (容器沙箱)**:基于 Docker/Podman 的本地容器环境
|
|
10
|
+
- **E2B Sandbox (云端沙箱)**:基于 E2B 云服务的远程隔离环境
|
|
11
|
+
- **Teleport 模式 (远程连接)**:连接到已部署的远程沙箱服务
|
|
12
|
+
|
|
13
|
+
## 🚀 快速开始
|
|
14
|
+
|
|
15
|
+
### Container Sandbox (容器)
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# 基本使用 - 自动挂载当前目录
|
|
19
|
+
codebuddy --sandbox "帮我分析这个项目"
|
|
20
|
+
|
|
21
|
+
# 等价于
|
|
22
|
+
codebuddy --sandbox container "帮我分析这个项目"
|
|
23
|
+
|
|
24
|
+
# 管道模式
|
|
25
|
+
echo "运行测试" | codebuddy --sandbox --print
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**前置要求**:
|
|
29
|
+
- 安装 Docker 或 Podman
|
|
30
|
+
- 确保 Docker daemon 运行中
|
|
31
|
+
|
|
32
|
+
### E2B Sandbox (云端)
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# 设置 E2B API Key
|
|
36
|
+
export E2B_API_KEY=your_api_key
|
|
37
|
+
|
|
38
|
+
# 基本使用 (需要完整的 API URL)
|
|
39
|
+
codebuddy --sandbox https://api.e2b.dev "创建一个 Python web 应用"
|
|
40
|
+
|
|
41
|
+
# 上传当前工作目录
|
|
42
|
+
codebuddy --sandbox https://api.e2b.dev --sandbox-upload-dir "分析这个项目"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Teleport 模式 (远程连接)
|
|
46
|
+
|
|
47
|
+
Teleport 模式用于连接到 BGA (Background Agent) 后台已创建的远程沙箱环境。这是一种特殊的连接模式,主要用于云端调度场景。
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# 使用 teleport 值连接到远程沙箱
|
|
51
|
+
codebuddy --teleport session_abc123XYZ4567890 "连接到远程沙箱"
|
|
52
|
+
|
|
53
|
+
# 自定义请求头 (用于认证或路由)
|
|
54
|
+
codebuddy --teleport session_abc123XYZ4567890 \
|
|
55
|
+
-H "X-Domain: example.com" \
|
|
56
|
+
-H "X-Enterprise-Id: ent123" \
|
|
57
|
+
"执行任务"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**Teleport 值格式**:
|
|
61
|
+
- 格式: `session_{cliSessionId}`
|
|
62
|
+
- `cliSessionId`:唯一的会话标识符
|
|
63
|
+
- 示例: `session_abc123XYZ4567890`
|
|
64
|
+
|
|
65
|
+
**工作原理**:
|
|
66
|
+
1. BGA 后台生成唯一的 `cliSessionId`
|
|
67
|
+
2. BGA 在沙箱中将代码 clone 到 `/workspace/{cliSessionId}` 目录
|
|
68
|
+
3. BGA 生成 teleport 命令: `codebuddy --teleport session_{cliSessionId}`
|
|
69
|
+
4. CLI 解析 teleport 值,连接到指定沙箱并切换到正确的工作目录
|
|
70
|
+
5. 以 `root` 用户身份在沙箱中执行命令
|
|
71
|
+
|
|
72
|
+
**前置要求**:
|
|
73
|
+
- 有效的 teleport 值 (由 BGA 后台生成)
|
|
74
|
+
- 正确的认证凭证 (通过 E2B_API_KEY 或 CODEBUDDY_AUTH_TOKEN)
|
|
75
|
+
- 网络连通性到 BGA 后台服务
|
|
76
|
+
|
|
77
|
+
**特点**:
|
|
78
|
+
- 代码已由 BGA 后台准备,无需上传
|
|
79
|
+
- 自动使用 root 用户执行命令
|
|
80
|
+
- 工作目录自动设置为 `/workspace/{cliSessionId}`
|
|
81
|
+
- 支持自定义 HTTP 请求头进行认证和路由
|
|
82
|
+
|
|
83
|
+
## 📦 沙箱复用机制
|
|
84
|
+
|
|
85
|
+
### 别名系统
|
|
86
|
+
|
|
87
|
+
为用户/项目分配独立沙箱:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# 使用用户 ID 作为别名
|
|
91
|
+
codebuddy --sandbox https://api.e2b.dev --sandbox-id user-123 -p "任务"
|
|
92
|
+
|
|
93
|
+
# 使用项目名作为别名
|
|
94
|
+
codebuddy --sandbox https://api.e2b.dev --sandbox-id project-foo -p "任务"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
别名映射存储在 `~/.codebuddy/sandbox-state.json`,支持自动创建和复用。
|
|
98
|
+
|
|
99
|
+
### 默认行为
|
|
100
|
+
|
|
101
|
+
沙箱自动复用,无需手动指定 ID:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# 第一次 - 创建新沙箱
|
|
105
|
+
$ codebuddy --sandbox https://api.e2b.dev "Hello"
|
|
106
|
+
[Sandbox] Creating new E2B sandbox...
|
|
107
|
+
[Sandbox] Created new sandbox: sb_abc123
|
|
108
|
+
|
|
109
|
+
# 再次启动 - 自动复用
|
|
110
|
+
$ codebuddy --sandbox https://api.e2b.dev "继续工作"
|
|
111
|
+
[Sandbox] Reusing sandbox: sb_abc123
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### 多项目管理
|
|
115
|
+
|
|
116
|
+
一个沙箱可托管多个项目,自动隔离在不同目录:
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
/workspace/
|
|
120
|
+
├── home-user-projectA/
|
|
121
|
+
├── home-user-projectB/
|
|
122
|
+
└── var-www-website/
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## ⚙️ 高级参数
|
|
126
|
+
|
|
127
|
+
### 沙箱创建和连接
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# 强制创建新沙箱 (忽略缓存)
|
|
131
|
+
codebuddy --sandbox --sandbox-new "从头开始"
|
|
132
|
+
|
|
133
|
+
# 连接到指定沙箱 ID (真实 ID)
|
|
134
|
+
codebuddy --sandbox --sandbox-id sb_abc123 "继续上次的工作"
|
|
135
|
+
|
|
136
|
+
# 使用别名 (自定义名称,自动创建和复用)
|
|
137
|
+
codebuddy --sandbox https://api.e2b.dev --sandbox-id user-123 -p "任务" # 用户ID
|
|
138
|
+
codebuddy --sandbox https://api.e2b.dev --sandbox-id project-foo -p "任务" # 项目名
|
|
139
|
+
codebuddy --sandbox https://api.e2b.dev --sandbox-id team-backend -p "任务" # 团队名
|
|
140
|
+
|
|
141
|
+
# 退出时终止沙箱 (默认保持运行以便复用)
|
|
142
|
+
codebuddy --sandbox --sandbox-kill "完成后清理"
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### 环境变量配置
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
# E2B 配置
|
|
149
|
+
export E2B_API_KEY=your_api_key # 必需
|
|
150
|
+
export E2B_TEMPLATE=base # 模板名称 (默认: base)
|
|
151
|
+
export E2B_TIMEOUT_MS=3600000 # 超时时间 (默认: 1小时)
|
|
152
|
+
export E2B_ALLOW_INTERNET_ACCESS=true # 允许互联网访问 (默认: true)
|
|
153
|
+
|
|
154
|
+
# Container Sandbox 配置
|
|
155
|
+
export CODEBUDDY_SANDBOX_IMAGE=node:20-alpine # Docker 镜像
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## 📊 沙箱管理
|
|
159
|
+
|
|
160
|
+
### 列出沙箱
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
$ codebuddy sandbox list
|
|
164
|
+
E2B Sandboxes:
|
|
165
|
+
* sb_abc123 (2 projects, last used 2m ago)
|
|
166
|
+
sb_xyz789 (1 project, last used 2h ago)
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### 查看详情
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
# 查看当前沙箱
|
|
173
|
+
$ codebuddy sandbox info
|
|
174
|
+
|
|
175
|
+
# 查看指定沙箱
|
|
176
|
+
$ codebuddy sandbox info sb_xyz789
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### 终止沙箱
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
$ codebuddy sandbox kill sb_abc123
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### 清理失效沙箱
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
$ codebuddy sandbox clean
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## 🔍 工作原理
|
|
192
|
+
|
|
193
|
+
### 项目目录映射
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
本地路径: /Users/yangsubo/projectA
|
|
197
|
+
沙箱路径: /workspace/Users-yangsubo-projectA
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### 状态持久化
|
|
201
|
+
|
|
202
|
+
沙箱状态保存在 `~/.codebuddy/sandbox-state.json`
|
|
203
|
+
|
|
204
|
+
## 💡 最佳实践
|
|
205
|
+
|
|
206
|
+
### 1. 选择合适的沙箱类型
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
# 需要本地容器隔离
|
|
210
|
+
codebuddy --sandbox container "本地开发任务"
|
|
211
|
+
|
|
212
|
+
# 云端协作或无本地环境
|
|
213
|
+
codebuddy --sandbox https://api.e2b.dev "云端开发"
|
|
214
|
+
|
|
215
|
+
# 连接到远程部署的沙箱服务
|
|
216
|
+
codebuddy --teleport session_abc123XYZ4567890 "远程开发"
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### 2. 项目隔离
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
cd ~/work/projectA
|
|
223
|
+
codebuddy --sandbox "开发功能 X"
|
|
224
|
+
|
|
225
|
+
cd ~/work/projectB
|
|
226
|
+
codebuddy --sandbox "修复 bug Y"
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### 3. 长期开发
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
# 第一天
|
|
233
|
+
codebuddy --sandbox "搭建开发环境"
|
|
234
|
+
|
|
235
|
+
# 第二天 - 秒级启动,环境保留
|
|
236
|
+
codebuddy --sandbox "继续开发"
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### 4. 临时任务
|
|
240
|
+
|
|
241
|
+
使用 `--sandbox-kill` 自动清理:
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
codebuddy --sandbox --sandbox-kill "快速测试一个想法"
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### 5. 定期清理
|
|
248
|
+
|
|
249
|
+
```bash
|
|
250
|
+
# 查看所有沙箱
|
|
251
|
+
codebuddy sandbox list
|
|
252
|
+
|
|
253
|
+
# 清理失效的
|
|
254
|
+
codebuddy sandbox clean
|
|
255
|
+
|
|
256
|
+
# 手动终止特定沙箱
|
|
257
|
+
codebuddy sandbox kill sb_old123
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
## ⚠️ 注意事项
|
|
261
|
+
|
|
262
|
+
### Container Sandbox
|
|
263
|
+
|
|
264
|
+
- **挂载模式**:容器沙箱自动挂载当前目录,文件修改实时同步
|
|
265
|
+
- **网络隔离**: Docker 容器与主机网络隔离
|
|
266
|
+
- **资源限制**:受 Docker 配置限制
|
|
267
|
+
|
|
268
|
+
### E2B Sandbox
|
|
269
|
+
|
|
270
|
+
- **上传延迟**:首次上传项目需要时间,文件越多越慢
|
|
271
|
+
- **文件同步**:不支持自动同步,需要重新上传或手动同步
|
|
272
|
+
- **费用**: E2B 云服务可能产生费用,请查看官方定价
|
|
273
|
+
- **超时**:沙箱有最大运行时间限制 (默认 1 小时)
|
|
274
|
+
|
|
275
|
+
### 交互式命令
|
|
276
|
+
|
|
277
|
+
E2B 和 Container 都支持交互式 PTY:
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
codebuddy --sandbox "用 vim 编辑 main.py"
|
|
281
|
+
codebuddy --sandbox "运行 htop 查看进程"
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
## 🔧 故障排查
|
|
285
|
+
|
|
286
|
+
### Docker 未运行
|
|
287
|
+
|
|
288
|
+
```bash
|
|
289
|
+
Error: Neither Docker nor Podman is available
|
|
290
|
+
```
|
|
291
|
+
**解决**:启动 Docker Desktop 或 Podman
|
|
292
|
+
|
|
293
|
+
### E2B API Key 缺失
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
Error: E2B_API_KEY environment variable is required
|
|
297
|
+
```
|
|
298
|
+
**解决**: `export E2B_API_KEY=your_key_here`
|
|
299
|
+
|
|
300
|
+
### 沙箱连接失败
|
|
301
|
+
|
|
302
|
+
```bash
|
|
303
|
+
Failed to connect to sandbox sb_abc123
|
|
304
|
+
```
|
|
305
|
+
**解决**:沙箱可能已过期,使用 `--sandbox-new` 创建新的
|
|
306
|
+
|
|
307
|
+
### 查看调试日志
|
|
308
|
+
|
|
309
|
+
```bash
|
|
310
|
+
codebuddy --sandbox --debug "测试命令"
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
## 📚 相关文档
|
|
314
|
+
|
|
315
|
+
- [CLI 参考](./cli-reference.md) - 完整命令行参数说明
|
|
316
|
+
- [E2B 官方文档](https://e2b.dev/docs) - E2B 云服务文档
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# 定时任务
|
|
2
|
+
|
|
3
|
+
CodeBuddy Code 支持在会话中创建和管理定时任务,可以按照设定的时间表重复执行指令,或者在未来某个时间点触发一次性操作。常见用途包括:定期检查构建状态、轮询任务完成情况、在特定时间点提醒自己等。
|
|
4
|
+
|
|
5
|
+
> **注意**:定时任务是会话级别的。任务只在 CodeBuddy Code 运行期间有效,退出后自动清除。
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## 创建一次性提醒
|
|
9
|
+
|
|
10
|
+
如果只需要在未来某个时间点提醒一次,可以直接用自然语言描述:
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
下午四点半提醒我同步一下今天的进展
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
一个小时后看看刚才那个构建任务有没有产出
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
明天早上 9 点帮我生成一份昨天的工作日报
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
这类任务会在指定时间触发一次,执行完毕后自动删除。
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 管理已有任务
|
|
29
|
+
|
|
30
|
+
### 查看当前所有任务
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
我现在有哪些定时任务?
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
列表中包含任务 ID、执行频率、任务类型(循环 / 一次性)以及对应的指令。
|
|
37
|
+
|
|
38
|
+
### 取消任务
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
取消部署检查的定时任务
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
或者通过任务 ID 取消:
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
帮我删掉 ID 为 xxx 的定时任务
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
底层分别对应 `CronList` 和 `CronDelete` 工具,可以通过对话直接操作,无需记住具体命令。
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 任务执行机制
|
|
55
|
+
|
|
56
|
+
### 执行时机
|
|
57
|
+
|
|
58
|
+
任务只会在会话**空闲**时触发,即系统没有在处理其他请求的时候。如果正好在执行某个操作,触发时间会顺延到操作完成后。
|
|
59
|
+
|
|
60
|
+
### 时间偏移(Jitter)
|
|
61
|
+
|
|
62
|
+
系统会对任务的触发时间添加少量随机偏移,以避免大量任务同时执行带来的拥堵:
|
|
63
|
+
|
|
64
|
+
- **循环任务**:最多延迟周期时长的 10%(上限 15 分钟)
|
|
65
|
+
- **一次性任务**:对于整点和半点任务,最多提前 90 秒执行
|
|
66
|
+
|
|
67
|
+
例如,设置 `每小时` 执行的任务,实际触发时间可能在整点后的 0-6 分钟内随机分布。
|
|
68
|
+
|
|
69
|
+
### 自动过期
|
|
70
|
+
|
|
71
|
+
**循环任务在创建 3 天后自动过期删除**,过期前会最后触发一次。
|
|
72
|
+
如果需要任务持续更长时间,可以在过期后重新创建,或者改用外部调度方案(如 GitHub Actions 等)。
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Cron 表达式参考
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
需要「每周一早上 10 点」「每月 1 号」这类精确时间,直接告诉 AI 你的需求,它会自动转成 cron 表达式并创建任务:
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
每周一早上 10 点帮我生成本周的工作计划
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
每月 1 号早上统计上个月的代码提交量,按人汇总
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
每周五下午 5:30 提醒我同步进度、更新任务状态
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
每天中午 12 点检查一下有没有待我审查的 PR
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
工作日早上 9:15 把昨天未合并的 PR 列出来
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
AI 回复时会告诉你实际使用的 cron 表达式和执行频率,方便确认是否符合预期。
|
|
102
|
+
|
|
103
|
+
**格式:**
|
|
104
|
+
```
|
|
105
|
+
分钟 小时 日期 月份 周几
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**常用表达式:**
|
|
109
|
+
|
|
110
|
+
| 表达式 | 含义 |
|
|
111
|
+
|--------|------|
|
|
112
|
+
| `*/5 * * * *` | 每 5 分钟 |
|
|
113
|
+
| `*/15 * * * *` | 每 15 分钟 |
|
|
114
|
+
| `0 * * * *` | 每小时整点 |
|
|
115
|
+
| `0 9 * * *` | 每天上午 9 点 |
|
|
116
|
+
| `0 9 * * 1-5` | 工作日上午 9 点 |
|
|
117
|
+
| `0 0 1 * *` | 每月 1 日午夜 |
|
|
118
|
+
| `30 18 * * 5` | 每周五下午 6:30 |
|
|
119
|
+
|
|
120
|
+
**字段说明:**
|
|
121
|
+
|
|
122
|
+
| 字段 | 取值范围 | 特殊符号 |
|
|
123
|
+
|------|---------|---------|
|
|
124
|
+
| 分钟 | 0–59 | `*`(任意)、`*/N`(每 N 分钟)、`N,M`(列举)、`N-M`(范围)|
|
|
125
|
+
| 小时 | 0–23 | 同上 |
|
|
126
|
+
| 日期 | 1–31 | 同上 |
|
|
127
|
+
| 月份 | 1–12 | 同上 |
|
|
128
|
+
| 周几 | 0–6 | 0 或 7 = 周日,1 = 周一,依此类推 |
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## 注意事项
|
|
133
|
+
|
|
134
|
+
| 事项 | 说明 |
|
|
135
|
+
|------|------|
|
|
136
|
+
| **会话绑定** | 任务随会话存在,CodeBuddy Code 退出后任务消失,不会写入磁盘 |
|
|
137
|
+
| **循环任务上限** | 每个会话最多同时存在 50 个定时任务 |
|
|
138
|
+
| **最小间隔** | 1 分钟(秒级设置会被自动向上取整) |
|
|
139
|
+
| **任务过期** | 循环任务 3 天后自动清除 |
|
|
140
|
+
| **不补跑** | 会话中断期间错过的任务不会补发执行 |
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 禁用定时任务
|
|
145
|
+
|
|
146
|
+
如果需要完全关闭定时任务功能,可以设置环境变量:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
CODEBUDDY_DISABLE_CRON=1 codebuddy
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
启用后,`/loop` 技能不再可用,`CronCreate`、`CronList`、`CronDelete` 工具也会被禁用。
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## 相关文档
|
|
157
|
+
|
|
158
|
+
- [技能系统](./skills.md)
|
|
159
|
+
- [斜杠命令参考](./slash-commands.md)
|
|
160
|
+
- [会话与上下文管理](./cli-reference.md)
|
|
161
|
+
- [Hooks 事件系统](./hooks.md)
|