@tencent-ai/agent-sdk 0.3.63 → 0.3.64
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 +22 -0
- package/cli/bin/codebuddy +25 -0
- package/cli/dist/codebuddy-headless.js +93 -93
- 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/lib/query.d.ts.map +1 -1
- package/lib/query.js +2 -0
- package/lib/query.js.map +1 -1
- package/package.json +1 -1
package/cli/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,28 @@ CodeBuddy Code 的所有重要更新都会记录在这里。
|
|
|
5
5
|
我们遵循 [语义化版本](https://semver.org/spec/v2.0.0.html) 规范。
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
## [2.52.1] - 2026-02-28
|
|
9
|
+
|
|
10
|
+
### 🔧 功能改进
|
|
11
|
+
|
|
12
|
+
- **启动速度**:`cbc -v` / `cbc --version` 现在即时响应,不再触发完整的初始化流程,启动时间从 5~10 秒缩短至约 500ms
|
|
13
|
+
- **管道环境**:在非 TTY 环境下执行子命令(config、mcp、sandbox、plugin 等)时不再等待 stdin,避免卡住
|
|
14
|
+
- **稳定性**:认证初始化增加超时保护,网络不通时不再导致 CLI 无限等待
|
|
15
|
+
- **团队成员切换**:使用左右键即时切换成员视图,无需回车确认,切换后输入框自动可用
|
|
16
|
+
- **成员选择模式**:按下键进入选择模式并默认选中 @main,按上键或 Esc 退出
|
|
17
|
+
- **输入历史隔离**:上下键的历史导航与成员选择模式互不干扰,清空输入框自动退出历史导航
|
|
18
|
+
- **SDK MCP Server API 简化**:简化 Python SDK 中 MCP Server 的传参方式,可直接传入 server 对象,无需手动构造字典
|
|
19
|
+
- **JS SDK 新增可执行文件配置**:支持通过 `executable` 和 `executableArgs` 自定义 CLI 可执行文件路径和参数
|
|
20
|
+
- **跳过内部请求头**:支持通过 `CODEBUDDY_SKIP_INTERNAL_HEADERS` 环境变量清理内部请求头,避免干扰第三方 API 网关
|
|
21
|
+
|
|
22
|
+
### 🐛 问题修复
|
|
23
|
+
|
|
24
|
+
- **Skill 加载**:修复插件中的 Skill 偶发无法加载的问题,确保插件管理器初始化完成后再读取插件列表
|
|
25
|
+
- **Team 成员生成**:修复并发生成 Team 成员时颜色索引重复的问题,将成员注册逻辑统一串行化
|
|
26
|
+
- **Skill 调用**:修复 `user-invocable: false` 的 Skill 无法被模型自动调用的问题
|
|
27
|
+
- **子代理并发**:增加 abort signal 最大监听器数量,避免大量并发子代理时产生 MaxListenersExceededWarning
|
|
28
|
+
|
|
29
|
+
|
|
8
30
|
## [2.52.0] - 2026-02-26
|
|
9
31
|
|
|
10
32
|
### 🚀 新功能
|
package/cli/bin/codebuddy
CHANGED
|
@@ -40,6 +40,31 @@ if (compareVersions(process.versions.node, minNode) < 0) {
|
|
|
40
40
|
|
|
41
41
|
require('events').EventEmitter.defaultMaxListeners = 50;
|
|
42
42
|
|
|
43
|
+
// Fast path for --version / -v: print version and exit before loading any bundle.
|
|
44
|
+
// This avoids the full DI container initialization (~150 components), network requests,
|
|
45
|
+
// and stdin reads that can cause multi-second startup delays on first install.
|
|
46
|
+
{
|
|
47
|
+
const args = process.argv.slice(2);
|
|
48
|
+
const hasVersionFlag = args.includes('--version') || args.includes('-v');
|
|
49
|
+
// Only apply fast path when no positional sub-command is present
|
|
50
|
+
// (e.g. "cbc mcp add -v somevalue" should NOT be treated as a version request)
|
|
51
|
+
const hasSubCommand = args.some(a => !a.startsWith('-'));
|
|
52
|
+
if (hasVersionFlag && !hasSubCommand) {
|
|
53
|
+
try {
|
|
54
|
+
const pkg = require('../package.json');
|
|
55
|
+
const version = (pkg && pkg.publishConfig && pkg.publishConfig.customPackage && pkg.publishConfig.customPackage.version)
|
|
56
|
+
|| (pkg && pkg.version)
|
|
57
|
+
|| 'unknown';
|
|
58
|
+
// eslint-disable-next-line no-console
|
|
59
|
+
console.log(version);
|
|
60
|
+
} catch (_e) {
|
|
61
|
+
// eslint-disable-next-line no-console
|
|
62
|
+
console.log('unknown');
|
|
63
|
+
}
|
|
64
|
+
process.exit(0);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
43
68
|
// Route to headless bundle when TUI is not needed
|
|
44
69
|
const args = process.argv.slice(2);
|
|
45
70
|
const isHeadless = args.includes('--print') || args.includes('-p')
|