@sleep2agi/commhub-server 0.9.0-preview.257 → 0.9.0-preview.258
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/build-info.json +2 -2
- package/package.json +1 -1
- package/src/agent-acl-http.test.ts +5 -0
- package/src/agent-acl-slice3-http.test.ts +168 -0
- package/src/auth-abuse-counters.test.ts +125 -0
- package/src/auth-abuse-counters.ts +111 -0
- package/src/binding-generation-http.test.ts +10 -1
- package/src/clone-node.test.ts +7 -0
- package/src/create-node-blocked-gate.test.ts +9 -0
- package/src/daemon-provider-snapshots.test.ts +9 -1
- package/src/daemon-token-owner-http.test.ts +54 -0
- package/src/departments-agent-count.test.ts +7 -0
- package/src/expiry-counters.ts +6 -2
- package/src/expiry-evidence-db.test.ts +15 -0
- package/src/inbox-count-sse.test.ts +8 -0
- package/src/mcp-projects-events-http.test.ts +3 -0
- package/src/mcp-write-network-resolution.test.ts +15 -0
- package/src/network-scope.ts +24 -0
- package/src/node-daemon-bindings.test.ts +12 -2
- package/src/node-files-transport.test.ts +3 -0
- package/src/node-logs-transport.test.ts +3 -0
- package/src/node-security-write-gate.test.ts +72 -0
- package/src/provider-tools-shape.test.ts +16 -1
- package/src/requirement-participant-notify-http.test.ts +4 -0
- package/src/requirements-mcp.test.ts +17 -1
- package/src/rules-file-transport.test.ts +38 -4
- package/src/schedule-agent-mcp-http.test.ts +12 -1
- package/src/scheduled-requirement-wake-http.test.ts +5 -1
- package/src/server.ts +14 -5
- package/src/skillhub-http.test.ts +4 -2
- package/src/task-consumption.test.ts +6 -0
- package/src/task-idempotency-mcp.test.ts +6 -0
|
@@ -108,6 +108,12 @@ describe("send_task durable idempotency", () => {
|
|
|
108
108
|
const replay = await call(handler, args);
|
|
109
109
|
|
|
110
110
|
expect(first.ok).toBe(true);
|
|
111
|
+
// #3309 分支 —— send_task 的**第二个出口**(幂等重放)此前只有 toEqual 整体比较,
|
|
112
|
+
// 而工具名不在那一行(`call(handler, args)`)⇒ 归因不到。补一条同变量键集:
|
|
113
|
+
// 重放回执比新派单少 actual_to 之外的队列建议,多 idempotent_replay / task_status。
|
|
114
|
+
expect(Object.keys(replay).sort()).toEqual([
|
|
115
|
+
"actual_to", "idempotent_replay", "message_id", "ok", "task_id", "task_status",
|
|
116
|
+
]);
|
|
111
117
|
expect(replay).toEqual({
|
|
112
118
|
ok: true,
|
|
113
119
|
message_id: first.message_id,
|