@tencent-ai/codebuddy-code 2.99.1 → 2.100.1
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/CHANGELOG.md +42 -0
- package/README.md +1 -1
- package/dist/codebuddy-headless.js +106 -94
- package/dist/codebuddy.js +109 -97
- package/dist/web-ui/docs/cn/cli/env-vars.md +1 -0
- package/dist/web-ui/docs/cn/cli/release-notes/README.md +1 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.99.1.md +46 -0
- package/dist/web-ui/docs/en/cli/env-vars.md +1 -0
- package/dist/web-ui/docs/en/cli/release-notes/README.md +1 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.99.1.md +46 -0
- package/dist/web-ui/docs/search-index-en.json +1 -1
- package/dist/web-ui/docs/search-index-zh.json +1 -1
- package/dist/web-ui/docs/sidebar-en.json +1 -1
- package/dist/web-ui/docs/sidebar-zh.json +1 -1
- package/package.json +1 -1
- package/product.cloudhosted.json +6 -4
- package/product.internal.json +6 -4
- package/product.ioa.json +26 -104
- package/product.json +14 -4
- package/product.selfhosted.json +6 -4
|
@@ -63,6 +63,7 @@ CodeBuddy Code 支持通过环境变量来控制其行为。这些变量可以
|
|
|
63
63
|
| `CODEBUDDY_IMAGE_GEN_ENABLED` | 设置为 `false` 或 `0` 禁用图片生成功能 |
|
|
64
64
|
| `CODEBUDDY_IMAGE_EDIT_ENABLED` | 设置为 `false` 或 `0` 禁用图片编辑功能 |
|
|
65
65
|
| `CODEBUDDY_COMPUTER_USE_ENABLED` | **实验功能**:设置为 `true` 或 `1` 启用 macOS 桌面控制工具(截图、鼠标、键盘)。仅 macOS 可用,默认关闭。首次调用键盘/鼠标动作需在系统设置 → 隐私与安全 → 辅助功能、屏幕录制中为终端授权 |
|
|
66
|
+
| `CODEBUDDY_WAIT_FOR_MCP_SERVERS_ENABLED` | 设置为 `0` 或 `false` 禁用 WaitForMcpServers 工具。默认开启。交互模式下不阻塞等待 MCP 连接,当 LLM 需要尚未就绪的 MCP 工具时可主动调用此工具按需等待。WorkBuddy 场景设置为 `0` 禁用 |
|
|
66
67
|
| `CODEBUDDY_DEFER_TOOL_LOADING` | 设置为 `false` 或 `0` 禁用 MCP 工具延迟加载 |
|
|
67
68
|
| `CODEBUDDY_SHOW_ALL_DEFERRED_TOOLS` | 设置为 `true` 或 `1` 显示所有延迟工具的完整描述 |
|
|
68
69
|
| `CODEBUDDY_DISABLE_CRON` | 设置为 `1` 禁用计划任务 |
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# 🚀 CodeBuddy Code v2.99.1 发布
|
|
2
|
+
|
|
3
|
+
## 📦 版本信息
|
|
4
|
+
|
|
5
|
+
| 组件 | 版本 |
|
|
6
|
+
|------|------|
|
|
7
|
+
| CodeBuddy Code CLI | v2.99.1 |
|
|
8
|
+
| Agent SDK JS | v0.3.159 |
|
|
9
|
+
| Agent SDK Python | v0.3.158 |
|
|
10
|
+
|
|
11
|
+
## 🔧 改进优化
|
|
12
|
+
|
|
13
|
+
### OTel 可观测性增强
|
|
14
|
+
|
|
15
|
+
- **Span Schema 单一真相源**:新增 `otel-span-schema.ts` 统一管理 span 名称、属性键和事件名,确保实现与文档一致
|
|
16
|
+
- **细粒度隐私开关**:支持 `OTEL_LOG_USER_PROMPTS`、`OTEL_LOG_TOOL_DETAILS`、`OTEL_LOG_TOOL_CONTENT` 等环境变量,逐级 opt-in 控制敏感数据记录
|
|
17
|
+
- **Tool Span 增强**:按开关记录工具输入参数和输出内容,带 60KB 截断保护
|
|
18
|
+
- **Trace 可视化**:Web UI TracesView 新增 LLM 调用统计、Cache 命中率、多模型展示等指标
|
|
19
|
+
|
|
20
|
+
### Galileo 监控体系升级
|
|
21
|
+
|
|
22
|
+
- 将 tool 打点逻辑拆分为独立的 GalileoToolPreHook / GalileoToolPostHook,职责更单一
|
|
23
|
+
- Agent SLA 全指标补齐 model 维度(ttfb / streaming / task_total / prompt_build / tool / request / cache)
|
|
24
|
+
- 新增 agent_name、agent_purpose、conversation_request_id 维度,支持多角度聚合分析
|
|
25
|
+
- patchName 全局注入,三端统一受 galileo.enable 开关控制
|
|
26
|
+
|
|
27
|
+
### ACP 会话稳定性
|
|
28
|
+
|
|
29
|
+
- 完善 ACP 团队桥接、会话回放与消息 ID 工具的边界处理,避免渲染抖动
|
|
30
|
+
- 会话运行状态机移除冗余状态切换,状态推进更稳定
|
|
31
|
+
|
|
32
|
+
### Skill 与工具优化
|
|
33
|
+
|
|
34
|
+
- Skill 列表从 XML 格式改为 Markdown 列表,减少 token 占用
|
|
35
|
+
- 单条 skill 描述截断阈值从 250 降至 150 字符
|
|
36
|
+
- 移除工具返回内容中无意义的标签注入
|
|
37
|
+
- 优化延迟工具列表体积,减少大型 MCP 工具集合对上下文的占用
|
|
38
|
+
- 帮助面板移除推广链接
|
|
39
|
+
|
|
40
|
+
## 🐛 问题修复
|
|
41
|
+
|
|
42
|
+
- **延迟工具加载**:修复裸名 MCP 工具通过工具搜索加载后无法正确调用的问题
|
|
43
|
+
- **自定义模型透传**:避免把内部上报字段透传给客户网关,仅在非自定义模型时合并 providerData
|
|
44
|
+
- **权限错误提示**:修改无权限文件失败时保留更具体的错误详情,减少排查成本
|
|
45
|
+
- **会话压缩**:修复 `/clear` 后压缩仍可能带入旧会话内容的问题
|
|
46
|
+
- **Galileo 字段大小写**:product.json 中统一为小写 `galileo`
|
|
@@ -63,6 +63,7 @@ CodeBuddy Code supports environment variables to control its behavior. These var
|
|
|
63
63
|
| `CODEBUDDY_IMAGE_GEN_ENABLED` | Set to `false` or `0` to disable image generation |
|
|
64
64
|
| `CODEBUDDY_IMAGE_EDIT_ENABLED` | Set to `false` or `0` to disable image editing |
|
|
65
65
|
| `CODEBUDDY_COMPUTER_USE_ENABLED` | **Experimental**: Set to `true` or `1` to enable the macOS desktop control tool (screenshot, mouse, keyboard). Available only on macOS, disabled by default. The first invocation of keyboard/mouse actions requires authorizing the terminal in System Settings → Privacy & Security → Accessibility and Screen Recording |
|
|
66
|
+
| `CODEBUDDY_WAIT_FOR_MCP_SERVERS_ENABLED` | Set to `0` or `false` to disable the WaitForMcpServers tool. Enabled by default. In interactive mode, MCP connections are not awaited blockingly; when the LLM needs an MCP tool that is not yet ready, it can proactively call this tool to wait on demand. Set to `0` to disable in WorkBuddy scenarios |
|
|
66
67
|
| `CODEBUDDY_DEFER_TOOL_LOADING` | Set to `false` or `0` to disable MCP tool deferred loading |
|
|
67
68
|
| `CODEBUDDY_SHOW_ALL_DEFERRED_TOOLS` | Set to `true` or `1` to show full descriptions for all deferred tools |
|
|
68
69
|
| `CODEBUDDY_DISABLE_CRON` | Set to `1` to disable scheduled tasks |
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# 🚀 CodeBuddy Code v2.99.1 Release
|
|
2
|
+
|
|
3
|
+
## 📦 Version Information
|
|
4
|
+
|
|
5
|
+
| Component | Version |
|
|
6
|
+
|-----------|---------|
|
|
7
|
+
| CodeBuddy Code CLI | v2.99.1 |
|
|
8
|
+
| Agent SDK JS | v0.3.159 |
|
|
9
|
+
| Agent SDK Python | v0.3.158 |
|
|
10
|
+
|
|
11
|
+
## 🔧 Improvements
|
|
12
|
+
|
|
13
|
+
### Enhanced OTel Observability
|
|
14
|
+
|
|
15
|
+
- **Single Source of Truth for Span Schema**: Added `otel-span-schema.ts` to centrally manage span names, attribute keys, and event names, ensuring implementation stays consistent with documentation
|
|
16
|
+
- **Fine-grained Privacy Switches**: Support for environment variables such as `OTEL_LOG_USER_PROMPTS`, `OTEL_LOG_TOOL_DETAILS`, and `OTEL_LOG_TOOL_CONTENT`, providing tiered opt-in control over sensitive data logging
|
|
17
|
+
- **Tool Span Enhancements**: Records tool input parameters and output content based on switches, with 60KB truncation protection
|
|
18
|
+
- **Trace Visualization**: Web UI TracesView adds new metrics including LLM call statistics, cache hit rate, and multi-model display
|
|
19
|
+
|
|
20
|
+
### Galileo Monitoring System Upgrade
|
|
21
|
+
|
|
22
|
+
- Split tool tracking logic into independent GalileoToolPreHook / GalileoToolPostHook with more focused responsibilities
|
|
23
|
+
- Completed model dimension coverage for all Agent SLA metrics (ttfb / streaming / task_total / prompt_build / tool / request / cache)
|
|
24
|
+
- Added agent_name, agent_purpose, and conversation_request_id dimensions to support multi-angle aggregation analysis
|
|
25
|
+
- patchName is globally injected, with all three platforms uniformly controlled by the galileo.enable switch
|
|
26
|
+
|
|
27
|
+
### ACP Session Stability
|
|
28
|
+
|
|
29
|
+
- Refined boundary handling for ACP team bridging, session replay, and message ID utilities to avoid rendering jitter
|
|
30
|
+
- Removed redundant state transitions in the session run state machine for more stable state progression
|
|
31
|
+
|
|
32
|
+
### Skill and Tool Optimizations
|
|
33
|
+
|
|
34
|
+
- Skill list changed from XML format to Markdown list, reducing token usage
|
|
35
|
+
- Single skill description truncation threshold lowered from 250 to 150 characters
|
|
36
|
+
- Removed meaningless tag injection from tool return content
|
|
37
|
+
- Optimized deferred tool list size, reducing context occupation by large MCP tool collections
|
|
38
|
+
- Removed promotional links from the help panel
|
|
39
|
+
|
|
40
|
+
## 🐛 Bug Fixes
|
|
41
|
+
|
|
42
|
+
- **Deferred Tool Loading**: Fixed the issue where bare-name MCP tools loaded via tool search could not be invoked correctly
|
|
43
|
+
- **Custom Model Pass-through**: Avoid passing internal reporting fields to customer gateways; merge providerData only for non-custom models
|
|
44
|
+
- **Permission Error Messages**: Preserve more specific error details when modifying permission-restricted files fails, reducing troubleshooting cost
|
|
45
|
+
- **Session Compaction**: Fixed the issue where compaction after `/clear` could still carry over old session content
|
|
46
|
+
- **Galileo Field Casing**: Unified to lowercase `galileo` in product.json
|