@tencent-ai/agent-sdk 0.3.99 → 0.3.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/CHANGELOG.md +26 -0
- package/cli/dist/codebuddy-headless.js +53 -53
- package/cli/dist/web-ui/assets/index-BoMlEqUE.js +439 -0
- package/cli/dist/web-ui/assets/index-Dt1puyHn.css +32 -0
- package/cli/dist/web-ui/docs/cn/cli/acp.md +152 -0
- package/cli/dist/web-ui/docs/cn/cli/agent-teams.md +327 -0
- package/cli/dist/web-ui/docs/cn/cli/bash-sandboxing.md +290 -0
- package/cli/dist/web-ui/docs/cn/cli/best-practices.md +554 -0
- package/cli/dist/web-ui/docs/cn/cli/channels-reference.md +293 -0
- package/cli/dist/web-ui/docs/cn/cli/channels.md +215 -0
- package/cli/dist/web-ui/docs/cn/cli/checkpointing.md +51 -0
- package/cli/dist/web-ui/docs/cn/cli/cli-reference.md +187 -0
- package/cli/dist/web-ui/docs/cn/cli/common-workflows.md +1013 -0
- package/cli/dist/web-ui/docs/cn/cli/costs.md +174 -0
- package/cli/dist/web-ui/docs/cn/cli/devcontainer.md +553 -0
- package/cli/dist/web-ui/docs/cn/cli/env-vars.md +326 -0
- package/cli/dist/web-ui/docs/cn/cli/gitlab-ci-cd.md +357 -0
- package/cli/dist/web-ui/docs/cn/cli/headless.md +258 -0
- package/cli/dist/web-ui/docs/cn/cli/hooks-guide.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/hooks.md +805 -0
- package/cli/dist/web-ui/docs/cn/cli/iam.md +530 -0
- package/cli/dist/web-ui/docs/cn/cli/ide-integrations.md +92 -0
- package/cli/dist/web-ui/docs/cn/cli/installation.md +291 -0
- package/cli/dist/web-ui/docs/cn/cli/interactive-mode.md +233 -0
- package/cli/dist/web-ui/docs/cn/cli/mcp.md +739 -0
- package/cli/dist/web-ui/docs/cn/cli/memory.md +436 -0
- package/cli/dist/web-ui/docs/cn/cli/models.md +356 -0
- package/cli/dist/web-ui/docs/cn/cli/overview.md +100 -0
- package/cli/dist/web-ui/docs/cn/cli/plugin-marketplaces.md +533 -0
- package/cli/dist/web-ui/docs/cn/cli/plugins-reference.md +774 -0
- package/cli/dist/web-ui/docs/cn/cli/plugins.md +689 -0
- package/cli/dist/web-ui/docs/cn/cli/quickstart.md +249 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/README.md +199 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.10.0.md +23 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.10.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.11.0.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.12.0.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.13.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.14.0.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.14.1.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.15.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.15.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.16.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.17.0.md +29 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.18.0.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.0.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.1.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.19.2.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.20.0.md +23 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.20.1.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.21.0.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.22.0.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.3.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.4.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.23.5.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.24.0.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.25.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.25.1.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.26.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.0.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.1.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.2.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.27.3.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.28.0.md +26 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.28.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.29.0.md +35 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.3.1.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.30.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.30.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.0.md +51 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.31.2.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.32.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.33.0.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.33.1.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.36.3.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.0.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.1.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.10.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.11.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.12.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.13.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.14.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.15.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.16.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.17.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.18.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.19.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.2.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.20.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.3.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.4.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.5.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.6.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.7.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.8.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.37.9.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.0.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.38.2.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.39.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.4.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.40.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.40.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.0.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.3.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.4.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.5.md +10 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.6.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.7.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.41.8.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.0.md +39 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.1.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.42.3.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.43.0.md +27 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.43.1.md +27 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.44.0.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.44.1.md +22 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.45.0.md +34 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.45.1.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.46.0.md +12 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.47.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.48.0.md +32 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.48.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.0.md +26 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.1.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.2.md +39 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.3.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.5.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.6.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.49.7.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.5.0.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.0.md +25 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.1.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.2.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.3.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.4.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.5.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.6.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.50.7.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.0.md +24 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.1.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.51.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.0.md +30 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.1.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.2.md +12 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.3.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.4.md +27 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.5.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.52.6.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.53.0.md +29 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.54.0.md +26 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.55.0.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.55.1.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.56.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.56.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.57.0.md +32 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.57.1.md +10 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.58.0.md +34 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.59.0.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.6.0.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.6.1.md +10 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.60.0.md +20 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.0.md +29 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.2.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.61.3.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.62.0.md +21 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.62.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.1.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.2.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.3.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.4.md +8 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.63.5.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.0.md +37 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.1.md +6 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.64.2.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.65.0.md +19 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.65.1.md +11 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.0.md +15 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.1.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.66.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.67.0.md +33 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.7.0.md +16 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.0.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.1.md +17 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.2.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.3.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.4.md +9 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.5.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.8.6.md +14 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.9.0.md +5 -0
- package/cli/dist/web-ui/docs/cn/cli/remote-control.md +247 -0
- package/cli/dist/web-ui/docs/cn/cli/sandboxing.md +316 -0
- package/cli/dist/web-ui/docs/cn/cli/scheduled-tasks.md +161 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-custom-tools.md +1195 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-demos.md +347 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-hooks.md +803 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-mcp.md +643 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-permissions.md +501 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-python.md +783 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-sessions.md +332 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-typescript.md +759 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk.md +1105 -0
- package/cli/dist/web-ui/docs/cn/cli/security.md +387 -0
- package/cli/dist/web-ui/docs/cn/cli/settings.md +602 -0
- package/cli/dist/web-ui/docs/cn/cli/skills.md +448 -0
- package/cli/dist/web-ui/docs/cn/cli/slash-commands.md +397 -0
- package/cli/dist/web-ui/docs/cn/cli/statusline.md +525 -0
- package/cli/dist/web-ui/docs/cn/cli/sub-agents.md +634 -0
- package/cli/dist/web-ui/docs/cn/cli/terminal-config.md +77 -0
- package/cli/dist/web-ui/docs/cn/cli/tools-reference.md +99 -0
- package/cli/dist/web-ui/docs/cn/cli/troubleshooting.md +190 -0
- package/cli/dist/web-ui/docs/cn/cli/web-ui.md +164 -0
- package/cli/dist/web-ui/docs/cn/cli/wecom-bot-setup.md +274 -0
- package/cli/dist/web-ui/docs/cn/cli/worktree.md +660 -0
- package/cli/dist/web-ui/docs/en/cli/acp.md +126 -0
- package/cli/dist/web-ui/docs/en/cli/agent-teams.md +327 -0
- package/cli/dist/web-ui/docs/en/cli/bash-sandboxing.md +357 -0
- package/cli/dist/web-ui/docs/en/cli/best-practices.md +554 -0
- package/cli/dist/web-ui/docs/en/cli/channels-reference.md +293 -0
- package/cli/dist/web-ui/docs/en/cli/channels.md +215 -0
- package/cli/dist/web-ui/docs/en/cli/checkpointing.md +53 -0
- package/cli/dist/web-ui/docs/en/cli/cli-reference.md +187 -0
- package/cli/dist/web-ui/docs/en/cli/common-workflows.md +1011 -0
- package/cli/dist/web-ui/docs/en/cli/costs.md +174 -0
- package/cli/dist/web-ui/docs/en/cli/devcontainer.md +553 -0
- package/cli/dist/web-ui/docs/en/cli/env-vars.md +326 -0
- package/cli/dist/web-ui/docs/en/cli/gitlab-ci-cd.md +357 -0
- package/cli/dist/web-ui/docs/en/cli/headless.md +258 -0
- package/cli/dist/web-ui/docs/en/cli/hooks-guide.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/hooks.md +801 -0
- package/cli/dist/web-ui/docs/en/cli/iam.md +526 -0
- package/cli/dist/web-ui/docs/en/cli/ide-integrations.md +92 -0
- package/cli/dist/web-ui/docs/en/cli/installation.md +266 -0
- package/cli/dist/web-ui/docs/en/cli/interactive-mode.md +233 -0
- package/cli/dist/web-ui/docs/en/cli/mcp.md +739 -0
- package/cli/dist/web-ui/docs/en/cli/memory.md +436 -0
- package/cli/dist/web-ui/docs/en/cli/models.md +355 -0
- package/cli/dist/web-ui/docs/en/cli/overview.md +100 -0
- package/cli/dist/web-ui/docs/en/cli/plugin-marketplaces.md +534 -0
- package/cli/dist/web-ui/docs/en/cli/plugins-reference.md +774 -0
- package/cli/dist/web-ui/docs/en/cli/plugins.md +688 -0
- package/cli/dist/web-ui/docs/en/cli/quickstart.md +249 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/README.md +193 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.10.0.md +23 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.10.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.11.0.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.12.0.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.13.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.14.0.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.14.1.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.15.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.15.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.16.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.17.0.md +29 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.18.0.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.0.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.1.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.19.2.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.20.0.md +23 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.20.1.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.21.0.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.22.0.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.0.md +41 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.3.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.4.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.23.5.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.24.0.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.25.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.25.1.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.26.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.0.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.1.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.2.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.27.3.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.28.0.md +26 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.28.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.29.0.md +35 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.3.1.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.30.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.30.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.0.md +51 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.31.2.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.32.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.33.0.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.33.1.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.34.0.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.34.1.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.35.0.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.0.md +23 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.2.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.36.3.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.0.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.1.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.10.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.11.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.12.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.13.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.14.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.15.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.16.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.17.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.18.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.19.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.2.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.20.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.3.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.4.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.5.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.6.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.7.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.8.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.37.9.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.0.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.38.2.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.39.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.4.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.40.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.40.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.0.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.3.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.4.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.5.md +10 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.6.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.7.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.41.8.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.0.md +39 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.1.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.42.3.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.43.0.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.43.1.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.44.0.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.44.1.md +22 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.45.0.md +34 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.45.1.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.46.0.md +12 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.47.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.48.0.md +32 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.48.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.0.md +26 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.1.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.2.md +39 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.3.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.5.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.6.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.49.7.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.5.0.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.0.md +25 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.1.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.2.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.3.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.4.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.5.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.6.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.50.7.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.0.md +24 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.1.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.51.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.0.md +30 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.1.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.2.md +12 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.3.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.4.md +27 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.5.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.52.6.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.53.0.md +29 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.54.0.md +26 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.55.0.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.55.1.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.56.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.56.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.57.0.md +32 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.57.1.md +10 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.58.0.md +34 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.59.0.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.6.0.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.6.1.md +10 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.60.0.md +20 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.0.md +29 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.2.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.61.3.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.62.0.md +21 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.62.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.1.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.2.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.3.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.4.md +8 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.63.5.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.0.md +37 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.1.md +6 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.64.2.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.65.0.md +19 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.65.1.md +11 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.0.md +15 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.1.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.66.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.67.0.md +33 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.7.0.md +16 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.0.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.1.md +17 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.2.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.3.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.4.md +9 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.5.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.8.6.md +14 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.9.0.md +5 -0
- package/cli/dist/web-ui/docs/en/cli/remote-control.md +247 -0
- package/cli/dist/web-ui/docs/en/cli/sandboxing.md +316 -0
- package/cli/dist/web-ui/docs/en/cli/scheduled-tasks.md +160 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-custom-tools.md +1131 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-demos.md +347 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-hooks.md +813 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-mcp.md +645 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-permissions.md +461 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-python.md +797 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-sessions.md +340 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-typescript.md +770 -0
- package/cli/dist/web-ui/docs/en/cli/sdk.md +1103 -0
- package/cli/dist/web-ui/docs/en/cli/security.md +388 -0
- package/cli/dist/web-ui/docs/en/cli/settings.md +602 -0
- package/cli/dist/web-ui/docs/en/cli/skills.md +448 -0
- package/cli/dist/web-ui/docs/en/cli/slash-commands.md +397 -0
- package/cli/dist/web-ui/docs/en/cli/statusline.md +525 -0
- package/cli/dist/web-ui/docs/en/cli/sub-agents.md +621 -0
- package/cli/dist/web-ui/docs/en/cli/terminal-config.md +77 -0
- package/cli/dist/web-ui/docs/en/cli/tools-reference.md +99 -0
- package/cli/dist/web-ui/docs/en/cli/troubleshooting.md +190 -0
- package/cli/dist/web-ui/docs/en/cli/web-ui.md +164 -0
- package/cli/dist/web-ui/docs/en/cli/wecom-bot-setup.md +274 -0
- package/cli/dist/web-ui/docs/en/cli/worktree.md +660 -0
- package/cli/dist/web-ui/docs/search-index-en.json +1 -0
- package/cli/dist/web-ui/docs/search-index-zh.json +1 -0
- package/cli/dist/web-ui/docs/sidebar-en.json +1 -0
- package/cli/dist/web-ui/docs/sidebar-zh.json +1 -0
- package/cli/dist/web-ui/index.html +2 -2
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +2 -2
- package/cli/product.internal.json +2 -2
- package/cli/product.ioa.json +2 -2
- package/cli/product.json +3 -3
- package/cli/product.selfhosted.json +2 -2
- package/package.json +1 -1
- package/cli/dist/web-ui/assets/index-BPT-qRRx.js +0 -411
- package/cli/dist/web-ui/assets/index-f_ibHSHw.css +0 -32
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
# Status Line Configuration
|
|
2
|
+
|
|
3
|
+
> Create a custom status line for CodeBuddy Code to display contextual information
|
|
4
|
+
|
|
5
|
+
Personalize CodeBuddy Code with a custom status line that displays at the bottom of the CodeBuddy Code interface, similar to how terminal prompts (PS1) work in shells like Oh-my-zsh.
|
|
6
|
+
|
|
7
|
+
## Creating a Custom Status Line
|
|
8
|
+
|
|
9
|
+
You can choose one of the following methods:
|
|
10
|
+
|
|
11
|
+
* Run `/statusline` to have CodeBuddy Code help you set up a custom status line. By default, it will try to replicate your terminal's prompt, but you can provide additional instructions about desired behavior, like `/statusline show the model name in orange`
|
|
12
|
+
|
|
13
|
+
* Add a `statusLine` command directly to your `.codebuddy/settings.json`:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"statusLine": {
|
|
18
|
+
"type": "command",
|
|
19
|
+
"command": "~/.codebuddy/statusline.sh",
|
|
20
|
+
"padding": 0 // Optional: set to 0 to let the status line extend to the edges
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## How It Works
|
|
26
|
+
|
|
27
|
+
* The status line updates when conversation messages are updated
|
|
28
|
+
* Updates run at most every 300ms
|
|
29
|
+
* The first line of stdout from the command becomes the status line text
|
|
30
|
+
* ANSI color codes are supported for styling the status line
|
|
31
|
+
* CodeBuddy Code passes context information about the current session (model, directory, etc.) to your script via stdin in JSON format
|
|
32
|
+
|
|
33
|
+
## JSON Input Structure
|
|
34
|
+
|
|
35
|
+
Your status line command receives structured data in JSON format via stdin:
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"hook_event_name": "Status",
|
|
40
|
+
"session_id": "abc123...",
|
|
41
|
+
"transcript_path": "/path/to/transcript.json",
|
|
42
|
+
"cwd": "/current/working/directory",
|
|
43
|
+
"model": {
|
|
44
|
+
"id": "gpt-5",
|
|
45
|
+
"display_name": "GPT-5"
|
|
46
|
+
},
|
|
47
|
+
"workspace": {
|
|
48
|
+
"current_dir": "/current/working/directory",
|
|
49
|
+
"project_dir": "/original/project/directory"
|
|
50
|
+
},
|
|
51
|
+
"version": "2.9.0",
|
|
52
|
+
"output_style": {
|
|
53
|
+
"name": "default"
|
|
54
|
+
},
|
|
55
|
+
"cost": {
|
|
56
|
+
"total_cost_usd": 0.01234,
|
|
57
|
+
"total_duration_ms": 45000,
|
|
58
|
+
"total_api_duration_ms": 2300,
|
|
59
|
+
"total_lines_added": 156,
|
|
60
|
+
"total_lines_removed": 23
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Example Scripts
|
|
66
|
+
|
|
67
|
+
### Simple Status Line
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
#!/bin/bash
|
|
71
|
+
# Read JSON input from stdin
|
|
72
|
+
input=$(cat)
|
|
73
|
+
|
|
74
|
+
# Extract values using jq
|
|
75
|
+
MODEL_DISPLAY=$(echo "$input" | jq -r '.model.display_name')
|
|
76
|
+
CURRENT_DIR=$(echo "$input" | jq -r '.workspace.current_dir')
|
|
77
|
+
|
|
78
|
+
echo "[$MODEL_DISPLAY] 📁 ${CURRENT_DIR##*/}"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Git-Aware Status Line
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
#!/bin/bash
|
|
85
|
+
# Read JSON input from stdin
|
|
86
|
+
input=$(cat)
|
|
87
|
+
|
|
88
|
+
# Extract values using jq
|
|
89
|
+
MODEL_DISPLAY=$(echo "$input" | jq -r '.model.display_name')
|
|
90
|
+
CURRENT_DIR=$(echo "$input" | jq -r '.workspace.current_dir')
|
|
91
|
+
|
|
92
|
+
# Show git branch if in a git repository
|
|
93
|
+
GIT_BRANCH=""
|
|
94
|
+
if git rev-parse --git-dir > /dev/null 2>&1; then
|
|
95
|
+
BRANCH=$(git branch --show-current 2>/dev/null)
|
|
96
|
+
if [ -n "$BRANCH" ]; then
|
|
97
|
+
GIT_BRANCH=" | 🌿 $BRANCH"
|
|
98
|
+
fi
|
|
99
|
+
fi
|
|
100
|
+
|
|
101
|
+
echo "[$MODEL_DISPLAY] 📁 ${CURRENT_DIR##*/}$GIT_BRANCH"
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Status Line with Colors
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
#!/bin/bash
|
|
108
|
+
# Read JSON input from stdin
|
|
109
|
+
input=$(cat)
|
|
110
|
+
|
|
111
|
+
# Extract values using jq
|
|
112
|
+
MODEL_DISPLAY=$(echo "$input" | jq -r '.model.display_name')
|
|
113
|
+
CURRENT_DIR=$(echo "$input" | jq -r '.workspace.current_dir')
|
|
114
|
+
SESSION_ID=$(echo "$input" | jq -r '.session_id' | cut -c1-8)
|
|
115
|
+
|
|
116
|
+
# ANSI color codes
|
|
117
|
+
GREEN='\033[0;32m'
|
|
118
|
+
BLUE='\033[0;34m'
|
|
119
|
+
YELLOW='\033[1;33m'
|
|
120
|
+
NC='\033[0m' # No color
|
|
121
|
+
|
|
122
|
+
# Get git branch
|
|
123
|
+
GIT_BRANCH=""
|
|
124
|
+
if git rev-parse --git-dir > /dev/null 2>&1; then
|
|
125
|
+
BRANCH=$(git branch --show-current 2>/dev/null)
|
|
126
|
+
if [ -n "$BRANCH" ]; then
|
|
127
|
+
GIT_BRANCH=" ${GREEN}on${NC} ${YELLOW}$BRANCH${NC}"
|
|
128
|
+
fi
|
|
129
|
+
fi
|
|
130
|
+
|
|
131
|
+
echo -e "${BLUE}[$MODEL_DISPLAY]${NC} 📁 ${GREEN}${CURRENT_DIR##*/}${NC}$GIT_BRANCH ${BLUE}(${SESSION_ID})${NC}"
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Showing Cost and Statistics
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
#!/bin/bash
|
|
138
|
+
# Read JSON input from stdin
|
|
139
|
+
input=$(cat)
|
|
140
|
+
|
|
141
|
+
# Extract values
|
|
142
|
+
MODEL_DISPLAY=$(echo "$input" | jq -r '.model.display_name')
|
|
143
|
+
CURRENT_DIR=$(echo "$input" | jq -r '.workspace.current_dir')
|
|
144
|
+
TOTAL_COST=$(echo "$input" | jq -r '.cost.total_cost_usd')
|
|
145
|
+
LINES_ADDED=$(echo "$input" | jq -r '.cost.total_lines_added')
|
|
146
|
+
LINES_REMOVED=$(echo "$input" | jq -r '.cost.total_lines_removed')
|
|
147
|
+
|
|
148
|
+
# Format cost
|
|
149
|
+
COST_STR=""
|
|
150
|
+
if [ "$TOTAL_COST" != "null" ] && [ "$TOTAL_COST" != "0" ]; then
|
|
151
|
+
COST_STR=$(printf " | 💰 \$%.4f" "$TOTAL_COST")
|
|
152
|
+
fi
|
|
153
|
+
|
|
154
|
+
# Format code statistics
|
|
155
|
+
STATS=""
|
|
156
|
+
if [ "$LINES_ADDED" != "null" ] && [ "$LINES_ADDED" != "0" ]; then
|
|
157
|
+
STATS=" | +$LINES_ADDED -$LINES_REMOVED"
|
|
158
|
+
fi
|
|
159
|
+
|
|
160
|
+
echo "[$MODEL_DISPLAY] 📁 ${CURRENT_DIR##*/}$COST_STR$STATS"
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Python Example
|
|
164
|
+
|
|
165
|
+
```python
|
|
166
|
+
#!/usr/bin/env python3
|
|
167
|
+
import json
|
|
168
|
+
import sys
|
|
169
|
+
import os
|
|
170
|
+
import subprocess
|
|
171
|
+
|
|
172
|
+
# Read JSON from stdin
|
|
173
|
+
data = json.load(sys.stdin)
|
|
174
|
+
|
|
175
|
+
# Extract values
|
|
176
|
+
model = data['model']['display_name']
|
|
177
|
+
current_dir = os.path.basename(data['workspace']['current_dir'])
|
|
178
|
+
|
|
179
|
+
# Check git branch
|
|
180
|
+
git_branch = ""
|
|
181
|
+
try:
|
|
182
|
+
branch = subprocess.check_output(
|
|
183
|
+
['git', 'branch', '--show-current'],
|
|
184
|
+
stderr=subprocess.DEVNULL
|
|
185
|
+
).decode('utf-8').strip()
|
|
186
|
+
if branch:
|
|
187
|
+
git_branch = f" | 🌿 {branch}"
|
|
188
|
+
except:
|
|
189
|
+
pass
|
|
190
|
+
|
|
191
|
+
# ANSI color codes
|
|
192
|
+
BLUE = '\033[0;34m'
|
|
193
|
+
GREEN = '\033[0;32m'
|
|
194
|
+
NC = '\033[0m'
|
|
195
|
+
|
|
196
|
+
print(f"{BLUE}[{model}]{NC} 📁 {GREEN}{current_dir}{NC}{git_branch}")
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Node.js Example
|
|
200
|
+
|
|
201
|
+
```javascript
|
|
202
|
+
#!/usr/bin/env node
|
|
203
|
+
|
|
204
|
+
const fs = require('fs');
|
|
205
|
+
const path = require('path');
|
|
206
|
+
const { execSync } = require('child_process');
|
|
207
|
+
|
|
208
|
+
// Read JSON from stdin
|
|
209
|
+
let input = '';
|
|
210
|
+
process.stdin.on('data', chunk => input += chunk);
|
|
211
|
+
process.stdin.on('end', () => {
|
|
212
|
+
const data = JSON.parse(input);
|
|
213
|
+
|
|
214
|
+
// Extract values
|
|
215
|
+
const model = data.model.display_name;
|
|
216
|
+
const currentDir = path.basename(data.workspace.current_dir);
|
|
217
|
+
|
|
218
|
+
// Check git branch
|
|
219
|
+
let gitBranch = '';
|
|
220
|
+
try {
|
|
221
|
+
const branch = execSync('git branch --show-current', {
|
|
222
|
+
encoding: 'utf8',
|
|
223
|
+
stdio: ['pipe', 'pipe', 'ignore']
|
|
224
|
+
}).trim();
|
|
225
|
+
if (branch) {
|
|
226
|
+
gitBranch = ` | 🌿 ${branch}`;
|
|
227
|
+
}
|
|
228
|
+
} catch (e) {
|
|
229
|
+
// Not a git repo or can't read branch
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// ANSI colors
|
|
233
|
+
const BLUE = '\x1b[0;34m';
|
|
234
|
+
const GREEN = '\x1b[0;32m';
|
|
235
|
+
const NC = '\x1b[0m';
|
|
236
|
+
|
|
237
|
+
console.log(`${BLUE}[${model}]${NC} 📁 ${GREEN}${currentDir}${NC}${gitBranch}`);
|
|
238
|
+
});
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Helper Function Approach
|
|
242
|
+
|
|
243
|
+
For more complex bash scripts, you can create helper functions:
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
#!/bin/bash
|
|
247
|
+
# Read JSON input once
|
|
248
|
+
input=$(cat)
|
|
249
|
+
|
|
250
|
+
# Helper functions for common extractions
|
|
251
|
+
get_model_name() { echo "$input" | jq -r '.model.display_name'; }
|
|
252
|
+
get_model_id() { echo "$input" | jq -r '.model.id'; }
|
|
253
|
+
get_current_dir() { echo "$input" | jq -r '.workspace.current_dir'; }
|
|
254
|
+
get_project_dir() { echo "$input" | jq -r '.workspace.project_dir'; }
|
|
255
|
+
get_version() { echo "$input" | jq -r '.version'; }
|
|
256
|
+
get_cost() { echo "$input" | jq -r '.cost.total_cost_usd'; }
|
|
257
|
+
get_duration() { echo "$input" | jq -r '.cost.total_duration_ms'; }
|
|
258
|
+
get_lines_added() { echo "$input" | jq -r '.cost.total_lines_added'; }
|
|
259
|
+
get_lines_removed() { echo "$input" | jq -r '.cost.total_lines_removed'; }
|
|
260
|
+
get_session_id() { echo "$input" | jq -r '.session_id'; }
|
|
261
|
+
|
|
262
|
+
# Use helper functions
|
|
263
|
+
MODEL=$(get_model_name)
|
|
264
|
+
DIR=$(get_current_dir)
|
|
265
|
+
COST=$(get_cost)
|
|
266
|
+
|
|
267
|
+
# Format cost
|
|
268
|
+
if [ "$COST" != "null" ] && [ "$COST" != "0" ]; then
|
|
269
|
+
COST_DISPLAY=$(printf " | 💰 \$%.4f" "$COST")
|
|
270
|
+
else
|
|
271
|
+
COST_DISPLAY=""
|
|
272
|
+
fi
|
|
273
|
+
|
|
274
|
+
echo "[$MODEL] 📁 ${DIR##*/}$COST_DISPLAY"
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Complete Example
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
#!/bin/bash
|
|
281
|
+
# ~/.codebuddy/statusline.sh
|
|
282
|
+
# CodeBuddy Code Status Line Example
|
|
283
|
+
|
|
284
|
+
# Read JSON input from stdin
|
|
285
|
+
input=$(cat)
|
|
286
|
+
|
|
287
|
+
# Extract basic information
|
|
288
|
+
MODEL=$(echo "$input" | jq -r '.model.display_name')
|
|
289
|
+
CURRENT_DIR=$(echo "$input" | jq -r '.workspace.current_dir')
|
|
290
|
+
DIR_NAME=${CURRENT_DIR##*/}
|
|
291
|
+
|
|
292
|
+
# ANSI colors
|
|
293
|
+
BLUE='\033[0;34m'
|
|
294
|
+
GREEN='\033[0;32m'
|
|
295
|
+
YELLOW='\033[1;33m'
|
|
296
|
+
CYAN='\033[0;36m'
|
|
297
|
+
NC='\033[0m'
|
|
298
|
+
|
|
299
|
+
# Git information
|
|
300
|
+
GIT_INFO=""
|
|
301
|
+
if git rev-parse --git-dir > /dev/null 2>&1; then
|
|
302
|
+
BRANCH=$(git branch --show-current 2>/dev/null)
|
|
303
|
+
if [ -n "$BRANCH" ]; then
|
|
304
|
+
# Check for uncommitted changes
|
|
305
|
+
if ! git diff-index --quiet HEAD -- 2>/dev/null; then
|
|
306
|
+
STATUS="*"
|
|
307
|
+
else
|
|
308
|
+
STATUS=""
|
|
309
|
+
fi
|
|
310
|
+
GIT_INFO=" ${GREEN}branch${NC} ${YELLOW}$BRANCH$STATUS${NC}"
|
|
311
|
+
fi
|
|
312
|
+
fi
|
|
313
|
+
|
|
314
|
+
# Cost information
|
|
315
|
+
COST=$(echo "$input" | jq -r '.cost.total_cost_usd')
|
|
316
|
+
COST_INFO=""
|
|
317
|
+
if [ "$COST" != "null" ] && [ "$COST" != "0" ]; then
|
|
318
|
+
COST_INFO=$(printf " ${CYAN}cost${NC} \$%.4f" "$COST")
|
|
319
|
+
fi
|
|
320
|
+
|
|
321
|
+
# Output status line
|
|
322
|
+
echo -e "${BLUE}[$MODEL]${NC} 📁 ${GREEN}$DIR_NAME${NC}$GIT_INFO$COST_INFO"
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
## Advanced Examples
|
|
326
|
+
|
|
327
|
+
### Showing Current Time and Session Duration
|
|
328
|
+
|
|
329
|
+
```bash
|
|
330
|
+
#!/bin/bash
|
|
331
|
+
input=$(cat)
|
|
332
|
+
|
|
333
|
+
MODEL=$(echo "$input" | jq -r '.model.display_name')
|
|
334
|
+
DIR=$(echo "$input" | jq -r '.workspace.current_dir')
|
|
335
|
+
DURATION_MS=$(echo "$input" | jq -r '.cost.total_duration_ms')
|
|
336
|
+
|
|
337
|
+
# Format duration
|
|
338
|
+
if [ "$DURATION_MS" != "null" ] && [ "$DURATION_MS" != "0" ]; then
|
|
339
|
+
DURATION_SEC=$((DURATION_MS / 1000))
|
|
340
|
+
DURATION_MIN=$((DURATION_SEC / 60))
|
|
341
|
+
DURATION_SEC=$((DURATION_SEC % 60))
|
|
342
|
+
TIME_INFO=$(printf " | ⏱️ %dm%ds" "$DURATION_MIN" "$DURATION_SEC")
|
|
343
|
+
else
|
|
344
|
+
TIME_INFO=""
|
|
345
|
+
fi
|
|
346
|
+
|
|
347
|
+
# Current time
|
|
348
|
+
CURRENT_TIME=$(date +"%H:%M:%S")
|
|
349
|
+
|
|
350
|
+
echo "[$MODEL] 📁 ${DIR##*/}$TIME_INFO | 🕐 $CURRENT_TIME"
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### Color-Coded by Cost
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
#!/bin/bash
|
|
357
|
+
input=$(cat)
|
|
358
|
+
|
|
359
|
+
MODEL=$(echo "$input" | jq -r '.model.display_name')
|
|
360
|
+
DIR=$(echo "$input" | jq -r '.workspace.current_dir')
|
|
361
|
+
COST=$(echo "$input" | jq -r '.cost.total_cost_usd')
|
|
362
|
+
|
|
363
|
+
# Color definitions
|
|
364
|
+
GREEN='\033[0;32m'
|
|
365
|
+
YELLOW='\033[1;33m'
|
|
366
|
+
RED='\033[0;31m'
|
|
367
|
+
NC='\033[0m'
|
|
368
|
+
|
|
369
|
+
# Choose color based on cost
|
|
370
|
+
if [ "$COST" != "null" ]; then
|
|
371
|
+
if (( $(echo "$COST < 0.01" | bc -l) )); then
|
|
372
|
+
COST_COLOR=$GREEN
|
|
373
|
+
elif (( $(echo "$COST < 0.1" | bc -l) )); then
|
|
374
|
+
COST_COLOR=$YELLOW
|
|
375
|
+
else
|
|
376
|
+
COST_COLOR=$RED
|
|
377
|
+
fi
|
|
378
|
+
COST_DISPLAY=$(printf "${COST_COLOR}\$%.4f${NC}" "$COST")
|
|
379
|
+
else
|
|
380
|
+
COST_DISPLAY=""
|
|
381
|
+
fi
|
|
382
|
+
|
|
383
|
+
echo -e "[$MODEL] 📁 ${DIR##*/} | 💰 $COST_DISPLAY"
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
## Tips
|
|
387
|
+
|
|
388
|
+
* Keep the status line concise - it should fit on one line
|
|
389
|
+
* Use emoji (if your terminal supports them) and colors to make information easy to scan
|
|
390
|
+
* Use `jq` for JSON parsing in Bash (see examples above)
|
|
391
|
+
* Test your script by running it manually with mock JSON input:
|
|
392
|
+
```bash
|
|
393
|
+
echo '{"model":{"display_name":"Test"},"workspace":{"current_dir":"/test"}}' | ./statusline.sh
|
|
394
|
+
```
|
|
395
|
+
* Consider caching expensive operations (like git status) if needed
|
|
396
|
+
* Ensure script output is valid UTF-8 for correct display of Chinese characters and emoji
|
|
397
|
+
|
|
398
|
+
## Common ANSI Color Codes
|
|
399
|
+
|
|
400
|
+
```bash
|
|
401
|
+
# Text colors
|
|
402
|
+
BLACK='\033[0;30m'
|
|
403
|
+
RED='\033[0;31m'
|
|
404
|
+
GREEN='\033[0;32m'
|
|
405
|
+
YELLOW='\033[0;33m'
|
|
406
|
+
BLUE='\033[0;34m'
|
|
407
|
+
PURPLE='\033[0;35m'
|
|
408
|
+
CYAN='\033[0;36m'
|
|
409
|
+
WHITE='\033[0;37m'
|
|
410
|
+
|
|
411
|
+
# Bold colors
|
|
412
|
+
BOLD_BLACK='\033[1;30m'
|
|
413
|
+
BOLD_RED='\033[1;31m'
|
|
414
|
+
BOLD_GREEN='\033[1;32m'
|
|
415
|
+
BOLD_YELLOW='\033[1;33m'
|
|
416
|
+
BOLD_BLUE='\033[1;34m'
|
|
417
|
+
BOLD_PURPLE='\033[1;35m'
|
|
418
|
+
BOLD_CYAN='\033[1;36m'
|
|
419
|
+
BOLD_WHITE='\033[1;37m'
|
|
420
|
+
|
|
421
|
+
# Background colors
|
|
422
|
+
BG_BLACK='\033[40m'
|
|
423
|
+
BG_RED='\033[41m'
|
|
424
|
+
BG_GREEN='\033[42m'
|
|
425
|
+
BG_YELLOW='\033[43m'
|
|
426
|
+
BG_BLUE='\033[44m'
|
|
427
|
+
BG_PURPLE='\033[45m'
|
|
428
|
+
BG_CYAN='\033[46m'
|
|
429
|
+
BG_WHITE='\033[47m'
|
|
430
|
+
|
|
431
|
+
# Reset
|
|
432
|
+
NC='\033[0m' # No Color
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
## Troubleshooting
|
|
436
|
+
|
|
437
|
+
### Status Line Not Showing
|
|
438
|
+
|
|
439
|
+
* Check if the script is executable: `chmod +x ~/.codebuddy/statusline.sh`
|
|
440
|
+
* Ensure the script outputs to stdout (not stderr)
|
|
441
|
+
* Verify JSON paths are correct: `echo '{}' | ~/.codebuddy/statusline.sh`
|
|
442
|
+
|
|
443
|
+
### Chinese Characters or Emoji Displaying Incorrectly
|
|
444
|
+
|
|
445
|
+
* Ensure your terminal supports UTF-8 encoding
|
|
446
|
+
* Check the script file is saved as UTF-8
|
|
447
|
+
* Add at the beginning of the script: `export LANG=en_US.UTF-8`
|
|
448
|
+
|
|
449
|
+
### Colors Not Displaying
|
|
450
|
+
|
|
451
|
+
* Check if your terminal supports ANSI colors
|
|
452
|
+
* Ensure using `echo -e` to interpret escape sequences
|
|
453
|
+
* Verify color codes are correct
|
|
454
|
+
|
|
455
|
+
### Git Information Not Showing
|
|
456
|
+
|
|
457
|
+
* Ensure running in a git repository
|
|
458
|
+
* Check if git command is in PATH
|
|
459
|
+
* Verify permission to read `.git` directory
|
|
460
|
+
|
|
461
|
+
### Script Executing Slowly
|
|
462
|
+
|
|
463
|
+
* Cache expensive operations (like git status)
|
|
464
|
+
* Avoid network requests in status line scripts
|
|
465
|
+
* Use background processes to update cached information
|
|
466
|
+
|
|
467
|
+
## Configuration Examples
|
|
468
|
+
|
|
469
|
+
### User-Level Configuration
|
|
470
|
+
|
|
471
|
+
In `~/.codebuddy/settings.json`:
|
|
472
|
+
|
|
473
|
+
```json
|
|
474
|
+
{
|
|
475
|
+
"statusLine": {
|
|
476
|
+
"type": "command",
|
|
477
|
+
"command": "~/.codebuddy/statusline.sh",
|
|
478
|
+
"padding": 0
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
### Project-Level Configuration
|
|
484
|
+
|
|
485
|
+
In `.codebuddy/settings.json`:
|
|
486
|
+
|
|
487
|
+
```json
|
|
488
|
+
{
|
|
489
|
+
"statusLine": {
|
|
490
|
+
"type": "command",
|
|
491
|
+
"command": "./.codebuddy/statusline.sh"
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
This allows different projects to use different status line styles.
|
|
497
|
+
|
|
498
|
+
## Recommended Tools
|
|
499
|
+
|
|
500
|
+
* **jq**: JSON parsing tool, essential
|
|
501
|
+
* **bc**: For floating-point calculations (cost comparison)
|
|
502
|
+
* **git**: Display branch and status information
|
|
503
|
+
* **date**: Display time information
|
|
504
|
+
|
|
505
|
+
Installation:
|
|
506
|
+
```bash
|
|
507
|
+
# macOS
|
|
508
|
+
brew install jq bc
|
|
509
|
+
|
|
510
|
+
# Ubuntu/Debian
|
|
511
|
+
sudo apt-get install jq bc
|
|
512
|
+
|
|
513
|
+
# CentOS/RHEL
|
|
514
|
+
sudo yum install jq bc
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
## Related Resources
|
|
518
|
+
|
|
519
|
+
* [Settings Configuration](settings.md) - Learn about complete configuration options
|
|
520
|
+
* [Hooks Documentation](hooks.md) - Learn about more customization features
|
|
521
|
+
* [Slash Commands](slash-commands.md) - Use `/statusline` for quick configuration
|
|
522
|
+
|
|
523
|
+
---
|
|
524
|
+
|
|
525
|
+
*Personalize CodeBuddy Code with a custom status line that fits your workflow*
|