@gencode/plugin-sdk 0.2.2 → 0.2.3
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 +16 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @gencode/plugin-sdk
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4a2a4f7: 修复使用 `apiFormat: "anthropic-messages"` 连接 Anthropic Messages API 或兼容网关时,部分网关只在完整 assistant 消息中返回最终文本、或返回格式正常但没有文本和工具调用的空响应,导致 agent 可能丢失最终回复或静默结束的问题。修复后系统会从完整 assistant 消息中补齐最终文本,并将真正的空响应识别为可重试错误交给既有重试逻辑处理,无需调整 API 配置。
|
|
8
|
+
- 833f2dc: 为 agent 运行的收尾阶段增加超时保护与降级策略,避免因单个步骤阻塞导致整个流程挂起:
|
|
9
|
+
|
|
10
|
+
- **Session 标题生成**:增加 5 秒超时上限,超时或生成失败时自动降级为基于首条消息的本地标题,不再阻塞 session 结算流程。
|
|
11
|
+
- **Agent 运行超时**:启用 agent run 的 10 分钟默认超时(可通过 `timeoutMs` 参数配置),超时后优雅中止并记录诊断日志,而非无限挂起。
|
|
12
|
+
- **HTTP Callback 回调**:为 callback 事件投递增加 5 秒超时,超时或网络错误时仅记录日志,不再抛出异常导致进程崩溃。
|
|
13
|
+
- **WebSocket 连接与关闭**:为 WebSocket 建连和关闭分别增加 5 秒超时保护,防止连接异常时事件发送流程阻塞。
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [4a2a4f7]
|
|
16
|
+
- Updated dependencies [833f2dc]
|
|
17
|
+
- @gencode/agents@0.9.3
|
|
18
|
+
|
|
3
19
|
## 0.2.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gencode/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@gencode/agents": "0.9.
|
|
21
|
+
"@gencode/agents": "0.9.3",
|
|
22
22
|
"@gencode/shared": "0.2.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|