dsh-plugin-subagent-bridge 0.16.0 → 0.17.0
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 +17 -0
- package/README.zh-CN.md +17 -0
- package/index.js +17 -2221
- package/package.json +2 -1
- package/src/api.js +398 -0
- package/src/constants.js +61 -0
- package/src/guards.js +97 -0
- package/src/http.js +358 -0
- package/src/policy.js +19 -0
- package/src/questions.js +130 -0
- package/src/registry.js +155 -0
- package/src/runners/claude.js +177 -0
- package/src/runners/codex.js +185 -0
- package/src/sessions.js +336 -0
- package/src/settings.js +121 -0
- package/src/tools.js +228 -0
- package/src/utils.js +55 -0
package/README.md
CHANGED
|
@@ -307,6 +307,23 @@ Both are plain `SKILL.md` files: YAML frontmatter (`name` + `description`) plus
|
|
|
307
307
|
node --test "test/*.test.mjs"
|
|
308
308
|
```
|
|
309
309
|
|
|
310
|
+
```
|
|
311
|
+
index.js wiring: apply() + re-exports
|
|
312
|
+
src/constants.js versions, limits, binary candidates, policy text
|
|
313
|
+
src/utils.js JSON-RPC helpers, argument validation, sleep
|
|
314
|
+
src/settings.js defaults and config resolution
|
|
315
|
+
src/tools.js tool schemas
|
|
316
|
+
src/policy.js the standing instruction
|
|
317
|
+
src/questions.js ask_user_question takeover and reporting
|
|
318
|
+
src/sessions.js session reads, waits, model and workspace placement
|
|
319
|
+
src/guards.js depth and rate limits
|
|
320
|
+
src/registry.js worker registry persistence and capacity
|
|
321
|
+
src/http.js loopback server, JSON-RPC, tool dispatch
|
|
322
|
+
src/api.js the bridge API the tools call
|
|
323
|
+
src/runners/codex.js codex exec adapter
|
|
324
|
+
src/runners/claude.js claude -p adapter
|
|
325
|
+
```
|
|
326
|
+
|
|
310
327
|
83 tests: handshake and version negotiation, tool list and argument validation, dispatch call shape, result baselines, long polling, real HTTP round trips (404/405/202 and bearer), `codex exec` event parsing, binary resolution, success/failure/timeout runs, resume argument split, final-answer-only behaviour, `dsh_wait` terminal states, slot limits and release, followup rebaselining, registry persistence and restart recovery, `maxHops` and rate limiting, per-`cwd` budgets, workspace creation and reuse, `queue`/`steer` delivery and waiting, anchors for steered answers, Claude output parsing and resume arguments, `assumeDefaults` injection, `pendingQuestion` and `dsh_answer`.
|
|
311
328
|
|
|
312
329
|
## Related
|
package/README.zh-CN.md
CHANGED
|
@@ -305,6 +305,23 @@ mkdir -p ~/.dsh/skills && cp -R skills/delegate-to-external-agent ~/.dsh/skills
|
|
|
305
305
|
node --test "test/*.test.mjs"
|
|
306
306
|
```
|
|
307
307
|
|
|
308
|
+
```
|
|
309
|
+
index.js wiring: apply() + re-exports
|
|
310
|
+
src/constants.js versions, limits, binary candidates, policy text
|
|
311
|
+
src/utils.js JSON-RPC helpers, argument validation, sleep
|
|
312
|
+
src/settings.js defaults and config resolution
|
|
313
|
+
src/tools.js tool schemas
|
|
314
|
+
src/policy.js the standing instruction
|
|
315
|
+
src/questions.js ask_user_question takeover and reporting
|
|
316
|
+
src/sessions.js session reads, waits, model and workspace placement
|
|
317
|
+
src/guards.js depth and rate limits
|
|
318
|
+
src/registry.js worker registry persistence and capacity
|
|
319
|
+
src/http.js loopback server, JSON-RPC, tool dispatch
|
|
320
|
+
src/api.js the bridge API the tools call
|
|
321
|
+
src/runners/codex.js codex exec adapter
|
|
322
|
+
src/runners/claude.js claude -p adapter
|
|
323
|
+
```
|
|
324
|
+
|
|
308
325
|
83 项测试:握手与版本协商、工具清单与参数校验、派发调用形状、结果基线、长轮询、真实 HTTP 往返(404/405/202 与 bearer)、`codex exec` 事件解析、二进制解析、成功/失败/超时、resume 参数分叉、只回最终回答、`dsh_wait` 终态、名额上限与释放、followup 重基线、注册表持久化与重启恢复、`maxHops` 与速率限制、按 `cwd` 的预算、项目创建与复用、`queue`/`steer` 投递与等待、插话回答的锚点、Claude 输出解析与 resume 参数、`assumeDefaults` 注入、`pendingQuestion` 与 `dsh_answer`。
|
|
309
326
|
|
|
310
327
|
## 相关插件
|