agent-comm-hub 0.1.9 → 0.1.11

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,6 +52,26 @@ 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
+ ## 典型工作流(口语化示例)
56
+
57
+ 按场景直接照做(工具名保持英文):
58
+
59
+ **1. 别人派活给你(如 codex 规划 → 你开发)**
60
+ - 收到任务:先 `bridge_ack(ref, "accepted")` 回执,说"收到,开始干"。
61
+ - 干完:把成果和交付说明发回给派活的人(`bridge_chat` / `bridge_task`),
62
+ 再 `bridge_ack(ref, "done", 交付说明)`,让它审查。
63
+ - 干不了:`bridge_ack(ref, "rejected")` 并说明原因。
64
+
65
+ **2. 你派活给别人(等 vs 不等)**
66
+ - 挂着等:`bridge_task` 发出去后循环 `bridge_wait()`,直到收到交付,接手检查。
67
+ - 不等:发完就干别的;对方完成会主动发回结果,你之后随时用
68
+ `bridge_poll()` / `bridge_wait()` / `bridge_history()` 查收(消息会排队存着)。
69
+
70
+ **3. 多 agent 实时讨论**
71
+ - 说完自己的观点后不要散场:循环 `bridge_wait()` 继续听,一轮没消息就再等
72
+ 一轮,直到讨论有结论或用户说"结束"。
73
+ - 超时(`{type:"timeout"}`)不是失败,继续等。
74
+
55
75
  ## Notes
56
76
 
57
77
  - Messages travel on loopback only (127.0.0.1:18764); never put credentials
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.9";
713
+ var SERVER_VERSION = "0.1.11";
714
714
  var DEFAULT_HOST = "127.0.0.1";
715
715
  var DEFAULT_PORT = 18764;
716
716
  var DEFAULT_PATH = "/mcp";
@@ -1018,7 +1018,7 @@ function runUpdate() {
1018
1018
  const before = readVersion();
1019
1019
  messages.push(`current version: ${before}`);
1020
1020
  const npmBin = process.platform === "win32" ? "npm.cmd" : "npm";
1021
- const out = execFileSync(npmBin, ["install", "-g", "agent-comm-hub@latest"], { encoding: "utf8", windowsHide: true, shell: process.platform === "win32" });
1021
+ const out = execFileSync(npmBin, ["install", "-g", "--prefer-online", "agent-comm-hub@latest"], { encoding: "utf8", windowsHide: true, shell: process.platform === "win32" });
1022
1022
  const tail = out.trim().split(/\r?\n/).slice(-3).filter(Boolean).join(" | ");
1023
1023
  if (tail) messages.push(tail);
1024
1024
  const after = readVersion();
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.9";
716
+ var SERVER_VERSION = "0.1.11";
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.9",
3
+ "version": "0.1.11",
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",