agent-comm-hub 0.1.12 → 0.2.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/agents/SKILL.md CHANGED
@@ -52,25 +52,30 @@ Optional: call `bridge_register(peerId)` to claim a readable id
52
52
  decline and `"failed"` when it could not be completed (always with a note).
53
53
  5. Unsure whether the peer is online: check `bridge_peers()` first.
54
54
 
55
- ## 典型工作流(口语化示例)
55
+ ## Common workflows (plain language)
56
56
 
57
- 按场景直接照做(工具名保持英文):
57
+ Follow the scenario directly (tool names stay as-is):
58
58
 
59
- **1. 别人派活给你(如 codex 规划 你开发)**
60
- - 收到任务:先 `bridge_ack(ref, "accepted")` 回执,说"收到,开始干"。
61
- - 干完:把成果和交付说明发回给派活的人(`bridge_chat` / `bridge_task`),
62
- `bridge_ack(ref, "done", 交付说明)`,让它审查。
63
- - 干不了:`bridge_ack(ref, "rejected")` 并说明原因。
59
+ **1. Someone delegates a task to you (e.g. codex plans -> you build)**
60
+ - On receiving a task: acknowledge first — `bridge_ack(ref, "accepted")`,
61
+ say "got it, starting".
62
+ - When done: send the result and a delivery note back to the delegator
63
+ (`bridge_chat` / `bridge_task`), then `bridge_ack(ref, "done", note)` so it
64
+ can review.
65
+ - If you can't do it: `bridge_ack(ref, "rejected")` with the reason.
64
66
 
65
- **2. 你派活给别人(等 vs 不等)**
66
- - 挂着等:`bridge_task` 发出去后循环 `bridge_wait()`,直到收到交付,接手检查。
67
- - 不等:发完就干别的;对方完成会主动发回结果,你之后随时用
68
- `bridge_poll()` / `bridge_wait()` / `bridge_history()` 查收(消息会排队存着)。
67
+ **2. You delegate to someone else (wait vs don't-wait)**
68
+ - Wait for delivery: after `bridge_task`, loop `bridge_wait()` until the
69
+ result arrives, then take it over.
70
+ - Don't wait: send it and move on; the peer sends the result back when done —
71
+ collect it later with `bridge_poll()` / `bridge_wait()` /
72
+ `bridge_history()` (messages queue while you are away).
69
73
 
70
- **3. agent 实时讨论**
71
- - 说完自己的观点后不要散场:循环 `bridge_wait()` 继续听,一轮没消息就再等
72
- 一轮,直到讨论有结论或用户说"结束"。
73
- - 超时(`{type:"timeout"}`)不是失败,继续等。
74
+ **3. Multi-agent real-time discussion**
75
+ - After you've said your piece, stay in the conversation: loop
76
+ `bridge_wait()` to keep listening — nothing arrived this round, wait the
77
+ next — until a conclusion is reached or the user says "done".
78
+ - A timeout (`{type:"timeout"}`) is not a failure; keep waiting.
74
79
 
75
80
  ## Notes
76
81
 
package/lib/cli.js CHANGED
@@ -710,7 +710,7 @@ function readBody(req) {
710
710
 
711
711
  // src/index.ts
712
712
  var SERVER_NAME = "agent-comm-hub";
713
- var SERVER_VERSION = "0.1.12";
713
+ var SERVER_VERSION = "0.2.0";
714
714
  var DEFAULT_HOST = "127.0.0.1";
715
715
  var DEFAULT_PORT = 18764;
716
716
  var DEFAULT_PATH = "/mcp";
package/lib/index.js CHANGED
@@ -713,7 +713,7 @@ function readBody(req) {
713
713
 
714
714
  // src/index.ts
715
715
  var SERVER_NAME = "agent-comm-hub";
716
- var SERVER_VERSION = "0.1.12";
716
+ var SERVER_VERSION = "0.2.0";
717
717
  var DEFAULT_HOST = "127.0.0.1";
718
718
  var DEFAULT_PORT = 18764;
719
719
  var DEFAULT_PATH = "/mcp";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-comm-hub",
3
- "version": "0.1.12",
3
+ "version": "0.2.0",
4
4
  "description": "Generic multi-peer MCP hub: any MCP-capable agent (MiniMax Code, Claude Code, opencode, Codex, Gemini CLI, DSH, ...) connects to one local streamable-http endpoint and they chat, delegate tasks, and acknowledge in real time",
5
5
  "keywords": [
6
6
  "mcp",