@tencent-ai/agent-sdk 0.3.63 → 0.3.65

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 CHANGED
@@ -5,6 +5,39 @@ CodeBuddy Code 的所有重要更新都会记录在这里。
5
5
  我们遵循 [语义化版本](https://semver.org/spec/v2.0.0.html) 规范。
6
6
 
7
7
 
8
+ ## [2.52.2] - 2026-02-28
9
+
10
+ ### 🔧 功能改进
11
+
12
+ - **自定义令牌认证**:支持从 ACC_PRODUCT_CONFIG 环境变量中识别 custom-token 认证配置,修复配置已加载但同步未完成时的认证回退问题
13
+ - **/doctor 命令**:修复 session 为空时可能导致属性访问错误的问题
14
+ - **修复 SDK Python 构建脚本**:更新 goreleaser 输出目录路径以匹配 headless 构建产物命名,移除未使用的导入
15
+ - **会话加载性能优化**:`/resume` 命令加载历史会话时使用并行读取,减少等待时间
16
+ - **插件加载提速**:并行化插件加载流程,多插件场景下启动速度提升数倍
17
+
18
+
19
+ ## [2.52.1] - 2026-02-28
20
+
21
+ ### 🔧 功能改进
22
+
23
+ - **启动速度**:`cbc -v` / `cbc --version` 现在即时响应,不再触发完整的初始化流程,启动时间从 5~10 秒缩短至约 500ms
24
+ - **管道环境**:在非 TTY 环境下执行子命令(config、mcp、sandbox、plugin 等)时不再等待 stdin,避免卡住
25
+ - **稳定性**:认证初始化增加超时保护,网络不通时不再导致 CLI 无限等待
26
+ - **团队成员切换**:使用左右键即时切换成员视图,无需回车确认,切换后输入框自动可用
27
+ - **成员选择模式**:按下键进入选择模式并默认选中 @main,按上键或 Esc 退出
28
+ - **输入历史隔离**:上下键的历史导航与成员选择模式互不干扰,清空输入框自动退出历史导航
29
+ - **SDK MCP Server API 简化**:简化 Python SDK 中 MCP Server 的传参方式,可直接传入 server 对象,无需手动构造字典
30
+ - **JS SDK 新增可执行文件配置**:支持通过 `executable` 和 `executableArgs` 自定义 CLI 可执行文件路径和参数
31
+ - **跳过内部请求头**:支持通过 `CODEBUDDY_SKIP_INTERNAL_HEADERS` 环境变量清理内部请求头,避免干扰第三方 API 网关
32
+
33
+ ### 🐛 问题修复
34
+
35
+ - **Skill 加载**:修复插件中的 Skill 偶发无法加载的问题,确保插件管理器初始化完成后再读取插件列表
36
+ - **Team 成员生成**:修复并发生成 Team 成员时颜色索引重复的问题,将成员注册逻辑统一串行化
37
+ - **Skill 调用**:修复 `user-invocable: false` 的 Skill 无法被模型自动调用的问题
38
+ - **子代理并发**:增加 abort signal 最大监听器数量,避免大量并发子代理时产生 MaxListenersExceededWarning
39
+
40
+
8
41
  ## [2.52.0] - 2026-02-26
9
42
 
10
43
  ### 🚀 新功能
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')