dsh-plugin-subagent-bridge 0.6.2 → 0.6.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/README.md +2 -2
- package/index.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,7 +111,7 @@ codex mcp remove dsh-bridge
|
|
|
111
111
|
| `maxHops` | `1` | 跨工具委派层数上限(1 = 只允许一层,和 Codex / DSH 的默认 `maxDepth: 1` 一致) |
|
|
112
112
|
| `dispatchPerMinute` | `10` | 滚动窗口内允许的派发次数(spawn / task / dispatch / followup / codex_dispatch 合计) |
|
|
113
113
|
| `dispatchWindowMs` | `60000` | 上述窗口长度 |
|
|
114
|
-
| `maxWorkers` | `4` |
|
|
114
|
+
| `maxWorkers` | `4` | **整个 App 共享**的 worker 上限;已完成但未 `dsh_close` 的也占名额(与 Codex 一致),不按会话隔离 |
|
|
115
115
|
| `waitTimeoutMs` | `30000` | `dsh_wait` 的默认超时(1s ~ 1h,客户端可用 `timeoutMs` 覆盖) |
|
|
116
116
|
| `readWaitSeconds` | `25` | `dsh_read_result` 的默认长轮询时长(上限 55,客户端可用 `waitSeconds` 覆盖) |
|
|
117
117
|
| `codexBin` | `codex` | Codex 可执行文件;含 `/` 时按路径严格解析,找不到就报错而不回退 |
|
|
@@ -219,7 +219,7 @@ mkdir -p ~/.dsh/skills && cp -R skills/delegate-to-codex ~/.dsh/skills/
|
|
|
219
219
|
node --test "test/*.test.mjs"
|
|
220
220
|
```
|
|
221
221
|
|
|
222
|
-
|
|
222
|
+
53 项:握手与版本协商、通知处理、工具清单、未知方法与未知工具、参数校验、元数据列表不含消息内容、派发调用形状、拒绝与错误透出、结果读取的时间基线、未派发会话的拒绝、长轮询(文本晚到即返回 / 超时 / 调用方取消)、真实 HTTP 往返(含 404/405/202 与 bearer 分支)、`codex exec` 事件解析、二进制解析、成功/失败/超时三种运行结果、resume 的参数分叉、工具结果的 lossless JSON 约束、**只回最终回答**(多步叙述被丢弃)、`dsh_wait` 的任一完成 / 超时 / 错误 / 未派发四种状态、`dsh_spawn` 立即返回与注册、`fork_turns=all` 走 fork、并发上限与 `dsh_close` 释放名额、`dsh_followup` 的重基线与最终回答切换、注册表落盘与重启后复原、冷会话下的缓存回答与 `offline` 状态、注册表 200 条上限的淘汰顺序、`maxHops` 拒绝回派而放行首层、在飞链路阻塞嵌套派发、速率突发的拒绝与窗口过期、followup 计入同一预算、握手版本号取自 `package.json`(不再硬编码)、阻塞式 `dsh_task` 不占 spawn 名额(重启后也不占)。
|
|
223
223
|
`test/persistence.test.mjs` 单独覆盖持久化:文件权限 0600、缺失/损坏/畸形记录、spawn 返回时文件已落盘、完成即缓存、followup 清缓存、close 后重启仍为 closed、冷会话走缓存或 `offline`、并发写不串。
|
|
224
224
|
|
|
225
225
|
---
|
package/index.js
CHANGED
|
@@ -988,6 +988,8 @@ export async function loadWorkers(settings, state) {
|
|
|
988
988
|
taskName: entry.taskName,
|
|
989
989
|
sessionId: entry.sessionId,
|
|
990
990
|
status: entry.status === 'closed' ? 'closed' : 'open',
|
|
991
|
+
/* Blocking tasks resume as non-counting records, exactly as they were written. */
|
|
992
|
+
countsTowardLimit: entry.countsTowardLimit !== false,
|
|
991
993
|
createdAt: Number(entry.createdAt ?? Date.now()),
|
|
992
994
|
updatedAt: Number(entry.updatedAt ?? Date.now()),
|
|
993
995
|
...(entry.outcome === undefined ? {} : { outcome: entry.outcome }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-subagent-bridge",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Subagent bridge: lets Codex delegate a task to DeepSeek Harness the way it would spawn a subagent (one call, waits for the answer), plus a codex_dispatch tool for the reverse direction.",
|
|
6
6
|
"keywords": [
|