@tencent-ai/agent-sdk 0.3.210 → 0.3.211
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 +6 -0
- package/cli/bin/cbc-prewarm +7 -2
- package/cli/dist/codebuddy-headless.js +7 -7
- 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 +2 -2
- package/cli/product.selfhosted.json +2 -2
- package/package.json +1 -1
package/cli/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ CodeBuddy Code 的所有重要更新都会记录在这里。
|
|
|
7
7
|
|
|
8
8
|
## [未发布]
|
|
9
9
|
|
|
10
|
+
## [2.119.4] - 2026-07-12
|
|
11
|
+
|
|
12
|
+
### 🔧 功能改进
|
|
13
|
+
|
|
14
|
+
- **Prewarm socket 目录支持 env 自定义**:新增 env `CODEBUDDY_CODE_PREWARM_SOCKET_PATH` 控制预热进程 unix socket 的落盘目录(默认 `/tmp`)。设置后 socket 改落 `<dir>/codebuddy-prewarm-<id>.sock`,进程侧创建与 `cbc-prewarm` 客户端连接读取同一 env 保持同构;仅影响 unix socket,Windows named pipe 不受影响。
|
|
15
|
+
|
|
10
16
|
## [2.119.3] - 2026-07-12
|
|
11
17
|
|
|
12
18
|
### 🐛 Bug 修复
|
package/cli/bin/cbc-prewarm
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* 预热进程。
|
|
11
11
|
*
|
|
12
12
|
* 地址约定与进程侧 `src/node/prewarm/prewarm-protocol.ts::resolvePrewarmIpcPath`
|
|
13
|
-
* 保持同构(codebuddy-prewarm-<id>,unix
|
|
13
|
+
* 保持同构(codebuddy-prewarm-<id>,unix=<dir>/*.sock,win=\\.\pipe\*;unix 落盘
|
|
14
|
+
* 目录默认 /tmp,可由 CODEBUDDY_CODE_PREWARM_SOCKET_PATH env 覆盖)。
|
|
14
15
|
* 发现目录复用 daemon 的 ~/.codebuddy/sessions/(PidFileEntry.kind==='prewarm')。
|
|
15
16
|
*
|
|
16
17
|
* 用法:
|
|
@@ -55,7 +56,11 @@ function resolveIpcPath(id) {
|
|
|
55
56
|
if (process.platform === 'win32') {
|
|
56
57
|
return `\\\\.\\pipe\\${address}`;
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
+
// 自定义落盘目录:与进程侧 resolvePrewarmSocketDir 同构
|
|
60
|
+
// (CODEBUDDY_CODE_PREWARM_SOCKET_PATH,默认 /tmp)。
|
|
61
|
+
const custom = process.env.CODEBUDDY_CODE_PREWARM_SOCKET_PATH;
|
|
62
|
+
const dir = custom && custom.trim() !== '' ? custom.trim() : '/tmp';
|
|
63
|
+
return path.join(dir, `${address}.sock`);
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
function getSessionsDir() {
|