@tencent-ai/agent-sdk 0.3.100 → 0.3.102
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 +38 -0
- package/cli/dist/codebuddy-headless.js +167 -140
- package/cli/dist/web-ui/assets/{index-BoMlEqUE.js → index-CIqmZV3y.js} +109 -108
- package/cli/dist/web-ui/docs/cn/cli/bash-sandboxing.md +4 -4
- package/cli/dist/web-ui/docs/cn/cli/common-workflows.md +1 -1
- package/cli/dist/web-ui/docs/cn/cli/gitlab-ci-cd.md +2 -2
- package/cli/dist/web-ui/docs/cn/cli/iam.md +3 -3
- package/cli/dist/web-ui/docs/cn/cli/release-notes/README.md +1 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.68.0.md +28 -0
- package/cli/dist/web-ui/docs/cn/cli/sdk-python.md +1 -1
- package/cli/dist/web-ui/docs/cn/cli/sdk-typescript.md +1 -1
- package/cli/dist/web-ui/docs/cn/cli/security.md +2 -2
- package/cli/dist/web-ui/docs/cn/cli/settings.md +5 -5
- package/cli/dist/web-ui/docs/en/cli/bash-sandboxing.md +0 -67
- package/cli/dist/web-ui/docs/en/cli/common-workflows.md +4 -2
- package/cli/dist/web-ui/docs/en/cli/iam.md +4 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/README.md +1 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.68.0.md +28 -0
- package/cli/dist/web-ui/docs/en/cli/sdk-python.md +0 -14
- package/cli/dist/web-ui/docs/en/cli/sdk-typescript.md +0 -11
- package/cli/dist/web-ui/docs/en/cli/security.md +0 -1
- package/cli/dist/web-ui/docs/search-index-en.json +1 -1
- package/cli/dist/web-ui/docs/search-index-zh.json +1 -1
- package/cli/dist/web-ui/docs/sidebar-en.json +1 -1
- package/cli/dist/web-ui/docs/sidebar-zh.json +1 -1
- package/cli/dist/web-ui/index.html +1 -1
- 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 +5 -4
- package/cli/product.selfhosted.json +2 -2
- package/lib/query.d.ts.map +1 -1
- package/lib/query.js +5 -1
- package/lib/query.js.map +1 -1
- package/lib/transport/index.d.ts +1 -1
- package/lib/transport/index.d.ts.map +1 -1
- package/lib/transport/process-transport.d.ts +1 -1
- package/lib/transport/process-transport.d.ts.map +1 -1
- package/lib/transport/process-transport.js +5 -1
- package/lib/transport/process-transport.js.map +1 -1
- package/lib/types.d.ts +3 -0
- package/lib/types.d.ts.map +1 -1
- package/package.json +1 -1
package/cli/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,44 @@ CodeBuddy Code 的所有重要更新都会记录在这里。
|
|
|
7
7
|
|
|
8
8
|
## [未发布]
|
|
9
9
|
|
|
10
|
+
## [2.70.0] - 2026-03-31
|
|
11
|
+
|
|
12
|
+
### ✨ 新功能
|
|
13
|
+
|
|
14
|
+
- **内置命令模型驱动调用**:AI 模型现在可以通过 Skill 工具直接执行部分内置斜杠命令(如 /clear、/model、/config、/resume、/gateway 等),支持在 WebChat、微信等非终端场景下由模型代理执行命令
|
|
15
|
+
- **命令参数扩展**:/model、/config、/resume 等命令新增 `list` 子命令,支持以文本方式列出可用选项(模型列表、配置项、会话列表)
|
|
16
|
+
- **统一控制机制**:通过 `disableModelInvocation` 字段统一控制内置命令和自定义命令是否允许模型调用
|
|
17
|
+
|
|
18
|
+
### 🔧 功能改进
|
|
19
|
+
|
|
20
|
+
- **实例注册地址简化**:将 localUrl/tunnelUrl 合并为统一的 url 字段,后端根据监听地址自动确定最佳可达地址
|
|
21
|
+
- **权限确认框显示修复**:使用 useSyncExternalStore 替代 useEffect 订阅模式,彻底解决权限确认框偶发不显示的竞态问题
|
|
22
|
+
- **会话权限模式保持**:修复多实例场景下切换会话时权限模式被重置的问题
|
|
23
|
+
|
|
24
|
+
## [2.69.0] - 2026-03-30
|
|
25
|
+
|
|
26
|
+
### ✨ 新功能
|
|
27
|
+
|
|
28
|
+
- **E2B 兼容文件系统 API**:新增 `/api/v1/fs/*` 和 `/api/v1/files/*` 端点,对齐 E2B filesystem.proto 和 envd.yaml,支持文件读写、目录操作、文件监听等完整文件系统功能
|
|
29
|
+
- **E2B 兼容进程管理 API**:新增 `/api/v1/process/*` 端点,对齐 E2B process.proto,支持进程启动(PTY/管道)、输入输出流、信号发送等全生命周期管理
|
|
30
|
+
- **系统指标与环境变量 API**:新增 `/api/v1/metrics` 和 `/api/v1/envs` 端点,提供 CPU/内存/磁盘使用指标和安全过滤的环境变量
|
|
31
|
+
|
|
32
|
+
### 🔧 功能改进
|
|
33
|
+
|
|
34
|
+
- **PTY 终端增强**:新增 SSE 输出流、HTTP 输入发送、HTTP resize 端点,提供 WebSocket 之外的纯 HTTP 替代方案
|
|
35
|
+
- **终端 Web UI 重构**:前端终端组件从 WebSocket 迁移到 SSE + HTTP 通信,对齐 E2B 流式输出模式,提升兼容性
|
|
36
|
+
- **分布式追踪**:基于 Hook 机制重构 trace 链路,支持 SDK 传递 traceId 实现端到端追踪
|
|
37
|
+
- **工具级追踪**:每次工具调用自动创建子 Span,记录工具名称、参数等关键属性
|
|
38
|
+
- **Trace 头注入**:自动将 B3 格式 trace header 注入模型请求,实现全链路串联
|
|
39
|
+
- **WeChat 多实例支持**:支持同时连接多个 WeChat 机器人实例,自动路由消息到正确的客户端
|
|
40
|
+
- **WeChat 媒体消息**:支持接收和发送图片、文件、语音、视频消息
|
|
41
|
+
- **中文引号修复**:自动修复模型输出中的中文引号(如 "" ''「」『』),避免工具调用 JSON 解析失败
|
|
42
|
+
- **文档更新**:同步更新 CLI 多语言文档
|
|
43
|
+
|
|
44
|
+
### 🔒 安全修复
|
|
45
|
+
|
|
46
|
+
- **企业微信机器人媒体下载 SSRF 防护**:添加 URL 白名单校验,确保媒体下载仅限企微官方 CDN 域名,防止服务端请求伪造(SSRF)攻击;禁用 HTTP 重定向以防止重定向绕过
|
|
47
|
+
|
|
10
48
|
## [2.68.0] - 2026-03-30
|
|
11
49
|
|
|
12
50
|
### ✨ 新功能
|