agent-comm-hub 0.7.0 → 0.8.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 +1 -1
- package/agents/SKILL.md +5 -2
- package/assets/admin.html +526 -16
- package/lib/cli.js +207 -24
- package/lib/index.js +203 -22
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -420,7 +420,7 @@ const hub = startHub({ port: 18764 }, console) // returns { hub, registry, serve
|
|
|
420
420
|
```bash
|
|
421
421
|
pnpm install
|
|
422
422
|
pnpm typecheck # tsc --noEmit (strict)
|
|
423
|
-
pnpm test # test suite (
|
|
423
|
+
pnpm test # test suite (263 checks: 138 smoke + 36 setup + 11 ops + 35 herdr + 23 discover + 20 e2e)
|
|
424
424
|
pnpm run build # esbuild → lib/{cli,index,setup}.js (zero deps)
|
|
425
425
|
pnpm pack # build + npm pack (publishing artifact)
|
|
426
426
|
```
|
package/agents/SKILL.md
CHANGED
|
@@ -30,8 +30,11 @@ Optional: call `bridge_register(peerId)` to claim a readable id
|
|
|
30
30
|
- `bridge_ack(ref, status, note?)` — acknowledge a task
|
|
31
31
|
(`accepted`/`rejected`/`done`/`failed`), auto-routed back to the original
|
|
32
32
|
sender.
|
|
33
|
-
- `
|
|
34
|
-
|
|
33
|
+
- `bridge_task_status(ref)` — one task's ledger state + full ack timeline.
|
|
34
|
+
- `bridge_tasks(role?, status?, limit?)` — list tasks you sent or received.
|
|
35
|
+
- `bridge_wait(from?, ref?, timeoutMs?)` — long-poll for the next message
|
|
36
|
+
(default 30 s; `ref` waits specifically for that task's ack; loop it to
|
|
37
|
+
hold a real-time conversation).
|
|
35
38
|
- `bridge_poll(from?)` — non-blocking drain of every queued message.
|
|
36
39
|
- `bridge_status()` / `bridge_peers()` — hub health and who is online.
|
|
37
40
|
- `bridge_history(peer?, limit?)` — recent messages (newest first). `peer`
|