@tencent-ai/codebuddy-code 2.76.0-next.949c0a4.20260403 → 2.77.0

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/codebuddy-headless.js +88 -88
  3. package/dist/codebuddy.js +95 -95
  4. package/dist/web-ui/assets/{index-BC_Bh2yt.js → index-C25QEkQn.js} +107 -107
  5. package/dist/web-ui/docs/cn/cli/cli-reference.md +1 -0
  6. package/dist/web-ui/docs/cn/cli/env-vars.md +2 -0
  7. package/dist/web-ui/docs/cn/cli/http-api.md +117 -2
  8. package/dist/web-ui/docs/cn/cli/plugin-marketplaces.md +338 -61
  9. package/dist/web-ui/docs/cn/cli/plugins-reference.md +484 -420
  10. package/dist/web-ui/docs/cn/cli/plugins.md +333 -458
  11. package/dist/web-ui/docs/cn/cli/release-notes/README.md +5 -0
  12. package/dist/web-ui/docs/cn/cli/release-notes/v2.72.0.md +26 -0
  13. package/dist/web-ui/docs/cn/cli/release-notes/v2.73.0.md +21 -0
  14. package/dist/web-ui/docs/cn/cli/release-notes/v2.74.0.md +15 -0
  15. package/dist/web-ui/docs/cn/cli/release-notes/v2.75.0.md +6 -0
  16. package/dist/web-ui/docs/cn/cli/release-notes/v2.76.0.md +9 -0
  17. package/dist/web-ui/docs/cn/cli/slash-commands.md +3 -0
  18. package/dist/web-ui/docs/en/cli/cli-reference.md +1 -0
  19. package/dist/web-ui/docs/en/cli/release-notes/README.md +5 -0
  20. package/dist/web-ui/docs/en/cli/release-notes/v2.72.0.md +26 -0
  21. package/dist/web-ui/docs/en/cli/release-notes/v2.73.0.md +21 -0
  22. package/dist/web-ui/docs/en/cli/release-notes/v2.74.0.md +15 -0
  23. package/dist/web-ui/docs/en/cli/release-notes/v2.75.0.md +6 -0
  24. package/dist/web-ui/docs/en/cli/release-notes/v2.76.0.md +9 -0
  25. package/dist/web-ui/docs/en/cli/slash-commands.md +3 -0
  26. package/dist/web-ui/docs/search-index-en.json +1 -1
  27. package/dist/web-ui/docs/search-index-zh.json +1 -1
  28. package/dist/web-ui/docs/sidebar-en.json +1 -1
  29. package/dist/web-ui/docs/sidebar-zh.json +1 -1
  30. package/dist/web-ui/index.html +1 -1
  31. package/package.json +2 -3
  32. package/product.cloudhosted.json +2 -2
  33. package/product.internal.json +2 -2
  34. package/product.ioa.json +2 -2
  35. package/product.json +3 -2
  36. package/product.selfhosted.json +2 -2
@@ -17,6 +17,11 @@ Release Notes 记录了每个版本的用户可见变更,包括:
17
17
 
18
18
  <!-- 新版本自动添加到此处 -->
19
19
 
20
+ - [v2.76.0](./v2.76.0.md) - 2026-04-03
21
+ - [v2.75.0](./v2.75.0.md) - 2026-04-03
22
+ - [v2.74.0](./v2.74.0.md) - 2026-04-03
23
+ - [v2.73.0](./v2.73.0.md) - 2026-04-03
24
+ - [v2.72.0](./v2.72.0.md) - 2026-04-02
20
25
  - [v2.71.1](./v2.71.1.md) - 2026-04-01
21
26
  - [v2.71.0](./v2.71.0.md) - 2026-04-01
22
27
  - [v2.70.1](./v2.70.1.md) - 2026-03-31
@@ -0,0 +1,26 @@
1
+ # 🚀 CodeBuddy Code v2.72.0 发布
2
+
3
+ ## ✨ 新功能
4
+
5
+ ### 文件变更面板
6
+
7
+ Web UI 新增 Changes 视图,让你可以实时查看 Agent 修改的所有文件。点击文件即可打开 Monaco Diff 编辑器,以语法高亮的方式对比查看每个文件的具体变更内容。
8
+
9
+ ### Checkpoint 回退
10
+
11
+ 新增强大的代码回退能力,支持三种灵活的回退模式:
12
+
13
+ - **按文件撤回**:精确撤回单个文件的修改
14
+ - **按回退点回退**:回到之前的某个对话节点
15
+ - **多模式选择**:仅回退代码、仅回退对话、或全部回退
16
+
17
+ ## 🔧 改进优化
18
+
19
+ - **Diff 查看体验升级**:从自定义 diff 算法迁移到 Monaco DiffEditor,支持语法高亮,大文件查看更流畅
20
+ - **文件图标优化**:消除图标加载时的闪烁问题,文件列表展示更顺滑
21
+ - **会话状态恢复**:刷新页面后自动恢复文件变更面板状态,不丢失上下文
22
+ - **实时变更通知**:Agent 修改文件后,所有已连接的客户端都会实时收到变更通知
23
+ - **插件管理 API**:新增公开 REST API 管理插件的安装、卸载、启用和禁用
24
+ - **配置管理 API**:新增公开 REST API 查询和修改配置,支持按作用域操作
25
+ - **剪贴板兼容性增强**:macOS 图片粘贴新增 JXA NSPasteboard 后备方案,兼容企业微信等第三方截图工具
26
+ - **消息通知优化**:优化微信和企微 Channel 中工具操作的中文描述,更易理解
@@ -0,0 +1,21 @@
1
+ # 🚀 CodeBuddy Code v2.73.0 发布
2
+
3
+ ## ✨ 新功能
4
+
5
+ ### Channel 建议确认
6
+
7
+ 通过微信/企业微信渠道完成一轮对话后,系统会自动生成下一步操作建议并发送给用户确认,回复 y 即可继续执行,让渠道交互更加流畅自然。
8
+
9
+ ## 🔧 改进优化
10
+
11
+ - **微信/企微权限三选项**:权限请求提示从 `(y/n)` 升级为 `(y=允许/n=拒绝/a=总是允许)`,支持记住选择,减少重复确认
12
+ - **修复权限卡死**:微信/企微中回复非选项内容时不再卡死,自动拒绝当前权限并将输入作为新消息处理
13
+ - **上下文压缩优化**:压缩前自动清理超过 1 小时的旧工具结果,实测可节省 80%+ 的压缩输入 token,显著降低压缩成本
14
+ - **图片内容剥离**:压缩前自动将图片替换为占位符,避免无意义的图片 token 进入摘要
15
+ - **压缩提示词增强**:改进 9 章节结构化摘要格式,提高压缩质量和信息保留率
16
+ - **JSON 修复增强**:使用 jsonrepair 库替换自定义修复逻辑,支持修复中文引号、缺失逗号、截断 JSON 等更多畸形场景,减少不必要的模型重试
17
+
18
+ ## 🐛 问题修复
19
+
20
+ - **渠道消息斜杠命令**:修复从微信等渠道发送的斜杠命令因被标签包裹而无法正确识别的问题
21
+ - **队列消息命令保留**:消息队列处理时保留斜杠命令,等 agent 空闲后通过正常管道执行,避免命令被吞掉
@@ -0,0 +1,15 @@
1
+ # 🚀 CodeBuddy Code v2.74.0 发布
2
+
3
+ ## ✨ 新功能
4
+
5
+ ### 侧问题命令 /btw
6
+
7
+ 在 Agent 工作过程中,使用 `/btw` 快速提出侧问题,无需中断当前任务。答案基于已有上下文即时生成,适合在复杂任务中随时确认细节或获取补充信息。
8
+
9
+ ## 🔧 改进优化
10
+
11
+ - **渠道会话建议确认**:通过微信/企业微信渠道完成一轮对话后,自动生成后续建议并等待用户确认后再执行,避免不必要的自动操作
12
+
13
+ ## 🐛 问题修复
14
+
15
+ - **AskUserQuestion 面板稳定性**:修复当模型返回的选项数据不完整时,问答面板可能崩溃的问题
@@ -0,0 +1,6 @@
1
+ # 🚀 CodeBuddy Code v2.75.0 发布
2
+
3
+ ## 🔧 改进优化
4
+
5
+ - **微信实例 ID 动态更新**:微信客户端扫码认证后,自动将临时实例 ID 更新为真实 ID,确保后续消息回复能正确路由到对应的微信账号
6
+ - **微信消息发送错误检查**:消息发送接口增加返回值校验,发送失败时抛出明确的错误信息,便于问题排查
@@ -0,0 +1,9 @@
1
+ # 🚀 CodeBuddy Code v2.76.0 发布
2
+
3
+ ## ✨ 新功能
4
+
5
+ - **GLM-5v-Turbo 模型上线**:新增 GLM-5v-Turbo 多模态视觉模型,支持图片理解能力,让 AI 助手能够分析和理解图片内容,同步上线国内版和 iOA 版
6
+
7
+ ## 🐛 问题修复
8
+
9
+ - **模型 temperature 配置修复**:修复部分模型的温度参数(temperature)被错误地硬编码为默认值 1 的问题,现在正确读取产品配置中各模型指定的 temperature 值,确保模型以最佳参数运行
@@ -16,6 +16,7 @@ CodeBuddy Code 支持斜杠命令,允许您在聊天中执行特殊操作、
16
16
  | `/status` | | ✅ 支持 | 显示当前仓库和会话的状态。 |
17
17
  | `/add-dir` | `<path>` | ✅ 支持 | 添加工作目录。指定要添加的目录路径。 |
18
18
  | `/agents` | | ✅ 支持 | 管理实验性 AI 智能体 |
19
+ | `/btw` | `<question>` | ✅ 支持 | 快速提问,不中断当前 Agent 工作流。适用于在 Agent 执行任务时临时提出简短问题,答案基于已有上下文生成。 |
19
20
  | `/compact`| | ✅ 支持 | 压缩上下文。 |
20
21
  | `/config`| `[list \| get \| set]` | ✅ 支持 | 查看或修改本地配置。不带参数时打开交互式面板,`list` 列出当前设置,`get <key>` 读取设置,`set <key> <value>` 修改设置。 |
21
22
  | `/context` | | ✅ 支持 | 计算当前会话的上下文 token 分布情况。 |
@@ -43,6 +44,8 @@ CodeBuddy Code 支持斜杠命令,允许您在聊天中执行特殊操作、
43
44
  | `/stats` | | ✅ 支持 | 显示使用统计信息,包括 Token 使用量、模型调用次数、会话时长等详细数据,支持总览和按模型分类两个视图。 |
44
45
  | `/ide` | | ✅ 支持 | 管理 IDE 集成状态。可以查看当前连接的 IDE、切换 IDE 连接或断开连接。详见 [IDE 集成文档](ide-integrations.md)。 |
45
46
  | `/plugin` | `[action] [args...]` | ✅ 支持 | 管理插件和插件市场。不带参数时打开交互式界面,支持 `marketplace add`、`install`、`enable`、`disable`、`uninstall` 等操作。详见 [插件文档](plugins.md)。 |
47
+ | `/plugin-validate` | `[path]` | ✅ 支持 | 验证插件目录结构和 manifest 有效性。不带参数时验证当前目录。详见 [插件参考文档](plugins-reference.md)。 |
48
+ | `/reload-plugins` | | ✅ 支持 | 重新加载所有插件(Skills、Agents、Hooks、MCP/LSP 服务器等),无需重启。 |
46
49
  | `/skills` | | ✅ 支持 | 查看当前已加载的所有 Skills,包括用户级、项目级和插件级 Skills,并显示预估 token 数量。详见 [Skills 文档](skills.md)。 |
47
50
  | `/insights` | | ✅ 支持 | 生成 AI 驱动的使用洞察报告,分析您的 CodeBuddy Code 使用模式、交互风格、项目领域、摩擦点等多个维度,并生成可在浏览器中查看的 HTML 报告。 |
48
51
 
@@ -52,6 +52,7 @@ Command-line parameters to customize CodeBuddy Code behavior:
52
52
  | `--debug` | Enable debug mode with optional category filtering | `codebuddy --debug` |
53
53
  | `--worktree [name]` | Run in an isolated git worktree (see [Worktree documentation](./worktree.md)) | `codebuddy --worktree` or `codebuddy --worktree my-feature` |
54
54
  | `--tmux` | Run in a tmux session (used together with `--worktree`) | `codebuddy --worktree --tmux` |
55
+ | `--plugin-dir <dirs...>` | Load plugins from local directories (for development/testing), multiple paths supported. See [Plugin documentation](plugins.md) | `codebuddy --plugin-dir ./my-plugin ../other-plugin` |
55
56
 
56
57
  > **Important Note**: When using the `-p/--print` parameter for non-interactive execution, operations involving file reading/writing, command execution, network requests, etc. typically require adding the `-y` (or `--dangerously-skip-permissions`) parameter to execute, otherwise the operations will be blocked.
57
58
 
@@ -17,6 +17,11 @@ Difference from [CHANGELOG.md](../../CHANGELOG.md):
17
17
 
18
18
  <!-- New versions are automatically added here -->
19
19
 
20
+ - [v2.76.0](./v2.76.0.md) - 2026-04-03
21
+ - [v2.75.0](./v2.75.0.md) - 2026-04-03
22
+ - [v2.74.0](./v2.74.0.md) - 2026-04-03
23
+ - [v2.73.0](./v2.73.0.md) - 2026-04-03
24
+ - [v2.72.0](./v2.72.0.md) - 2026-04-02
20
25
  - [v2.71.1](./v2.71.1.md) - 2026-04-01
21
26
  - [v2.71.0](./v2.71.0.md) - 2026-04-01
22
27
  - [v2.70.1](./v2.70.1.md) - 2026-03-31
@@ -0,0 +1,26 @@
1
+ # 🚀 CodeBuddy Code v2.72.0 Release
2
+
3
+ ## ✨ New Features
4
+
5
+ ### File Changes Panel
6
+
7
+ The Web UI now includes a Changes view that lets you see all files modified by the Agent in real time. Click any file to open the Monaco Diff Editor, which displays the specific changes for each file with syntax highlighting.
8
+
9
+ ### Checkpoint Rollback
10
+
11
+ Added powerful code rollback capabilities with three flexible rollback modes:
12
+
13
+ - **Per-file revert**: Precisely revert changes to a single file
14
+ - **Checkpoint rollback**: Return to a previous conversation node
15
+ - **Multi-mode selection**: Roll back code only, conversation only, or both
16
+
17
+ ## 🔧 Improvements
18
+
19
+ - **Diff Viewing Upgrade**: Migrated from custom diff algorithm to Monaco DiffEditor with syntax highlighting support and smoother large file viewing
20
+ - **File Icon Optimization**: Eliminated icon flickering during loading for smoother file list display
21
+ - **Session State Restoration**: Automatically restores the file changes panel state after page refresh, preserving context
22
+ - **Real-time Change Notifications**: All connected clients receive real-time notifications when the Agent modifies files
23
+ - **Plugin Management API**: Added public REST APIs for managing plugin installation, uninstallation, enabling, and disabling
24
+ - **Configuration Management API**: Added public REST APIs for querying and modifying configuration with scope-based operations
25
+ - **Clipboard Compatibility Enhancement**: Added JXA NSPasteboard fallback for macOS image pasting, improving compatibility with third-party screenshot tools like WeCom
26
+ - **Message Notification Optimization**: Improved Chinese descriptions for tool operations in WeChat and WeCom Channels for better readability
@@ -0,0 +1,21 @@
1
+ # CodeBuddy Code v2.73.0 Release
2
+
3
+ ## New Features
4
+
5
+ ### Channel Suggestion Confirmation
6
+
7
+ After completing a conversation round through WeChat/WeCom channels, the system automatically generates next-step action suggestions and sends them to the user for confirmation. Reply with "y" to continue execution, making channel interactions smoother and more natural.
8
+
9
+ ## Improvements
10
+
11
+ - **WeChat/WeCom Three-Option Permissions**: Permission request prompts upgraded from `(y/n)` to `(y=allow/n=deny/a=always allow)`, supporting remembered choices to reduce repetitive confirmations
12
+ - **Permission Deadlock Fix**: Replying with non-option content in WeChat/WeCom no longer causes a deadlock; the system automatically denies the current permission and processes the input as a new message
13
+ - **Context Compaction Optimization**: Automatically cleans up stale tool results older than 1 hour before compaction, reducing compaction input tokens by 80%+ in practice and significantly lowering compaction costs
14
+ - **Image Content Stripping**: Automatically replaces images with placeholders before compaction, preventing meaningless image tokens from entering the summary
15
+ - **Compaction Prompt Enhancement**: Improved 9-section structured summary format for better compaction quality and information retention
16
+ - **JSON Repair Enhancement**: Replaced custom repair logic with the jsonrepair library, supporting repair of Chinese quotes, missing commas, truncated JSON, and more malformed scenarios, reducing unnecessary model retries
17
+
18
+ ## Bug Fixes
19
+
20
+ - **Channel Message Slash Commands**: Fixed an issue where slash commands sent from WeChat and other channels were wrapped in tags and could not be correctly recognized
21
+ - **Queue Message Command Preservation**: Slash commands are now preserved during message queue processing and executed through the normal pipeline once the agent is idle, preventing commands from being silently dropped
@@ -0,0 +1,15 @@
1
+ # CodeBuddy Code v2.74.0 Release
2
+
3
+ ## New Features
4
+
5
+ ### Side Question Command /btw
6
+
7
+ Use `/btw` to quickly ask a side question while the Agent is working, without interrupting the current task. Answers are generated instantly based on the existing context, making it easy to confirm details or get supplementary information during complex tasks.
8
+
9
+ ## Improvements
10
+
11
+ - **Channel Session Suggestion Confirmation**: After completing a conversation round through WeChat/WeCom channels, follow-up suggestions are automatically generated and wait for user confirmation before execution, preventing unnecessary automated actions
12
+
13
+ ## Bug Fixes
14
+
15
+ - **AskUserQuestion Panel Stability**: Fixed an issue where the question-and-answer panel could crash when the model returned incomplete option data
@@ -0,0 +1,6 @@
1
+ # CodeBuddy Code v2.75.0 Release
2
+
3
+ ## Improvements
4
+
5
+ - **WeChat Instance ID Dynamic Update**: After WeChat client QR code authentication, the temporary instance ID is automatically updated to the real ID, ensuring subsequent message replies are correctly routed to the corresponding WeChat account
6
+ - **WeChat Message Send Error Checking**: Added return value validation to the message sending interface, throwing clear error messages on send failure to facilitate troubleshooting
@@ -0,0 +1,9 @@
1
+ # CodeBuddy Code v2.76.0 Release
2
+
3
+ ## New Features
4
+
5
+ - **GLM-5v-Turbo Model Launch**: Added GLM-5v-Turbo multimodal vision model with image understanding capabilities, enabling the AI assistant to analyze and understand image content. Simultaneously launched on both the domestic and iOA versions
6
+
7
+ ## Bug Fixes
8
+
9
+ - **Model Temperature Configuration Fix**: Fixed an issue where the temperature parameter for some models was incorrectly hardcoded to the default value of 1. Now correctly reads the temperature value specified in the product configuration for each model, ensuring models run with optimal parameters
@@ -16,6 +16,7 @@ These commands are used to manage your CodeBuddy Code sessions. Here is the curr
16
16
  | `/status` | | ✅ Supported | Display the status of the current repository and session. |
17
17
  | `/add-dir` | `<path>` | ✅ Supported | Add a working directory. Specify the path of the directory to add. |
18
18
  | `/agents` | | ✅ Supported | Manage experimental AI agents |
19
+ | `/btw` | `<question>` | ✅ Supported | Quick side question without interrupting the current Agent workflow. Useful for asking brief questions while the Agent is executing a task. Answers are generated based on existing context. |
19
20
  | `/compact`| | ✅ Supported | Compress context. |
20
21
  | `/config`| `[list \| get \| set]` | ✅ Supported | View or modify local configuration. Opens an interactive panel when used without parameters, `list` lists current settings, `get <key>` reads a setting, `set <key> <value>` modifies a setting. |
21
22
  | `/context` | | ✅ Supported | Calculate the context token distribution for the current session. |
@@ -43,6 +44,8 @@ These commands are used to manage your CodeBuddy Code sessions. Here is the curr
43
44
  | `/stats` | | ✅ Supported | Display usage statistics, including token usage, model invocation counts, session duration, and other detailed data. Supports both overview and per-model classification views. |
44
45
  | `/ide` | | ✅ Supported | Manage IDE integration status. View currently connected IDE, switch IDE connections, or disconnect. See [IDE Integration Documentation](ide-integrations.md) for details. |
45
46
  | `/plugin` | `[action] [args...]` | ✅ Supported | Manage plugins and the plugin marketplace. Opens an interactive interface when used without parameters, supporting operations like `marketplace add`, `install`, `enable`, `disable`, `uninstall`, etc. See [Plugin Documentation](plugins.md) for details. |
47
+ | `/plugin-validate` | `[path]` | ✅ Supported | Validate plugin directory structure and manifest. Validates the current directory when used without parameters. See [Plugin Reference](plugins-reference.md) for details. |
48
+ | `/reload-plugins` | | ✅ Supported | Reload all plugins (Skills, Agents, Hooks, MCP/LSP servers, etc.) without restarting. |
46
49
  | `/skills` | | ✅ Supported | View all currently loaded Skills, including user-level, project-level, and plugin-level Skills, and display estimated token count. See [Skills Documentation](skills.md) for details. |
47
50
  | `/insights` | | ✅ Supported | Generate AI-driven usage insight reports, analyzing your CodeBuddy Code usage patterns, interaction style, project domains, friction points, and other dimensions, generating an HTML report viewable in the browser. |
48
51