@sleep2agi/agent-network 0.0.47 → 0.0.48
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/package.json +1 -1
- package/src/node-server.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleep2agi/agent-network",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"description": "AI Agent Network — Server + Client + Setup in one package. SSE real-time communication for multi-agent orchestration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/client.js",
|
package/src/node-server.ts
CHANGED
|
@@ -88,7 +88,7 @@ log(`ENV: URL=${COMMHUB_URL} ALIAS=${ALIAS} RESUME_ID=${RESUME_ID.slice(0, 8)}..
|
|
|
88
88
|
// ── MCP Server with Channel capability ──────────────
|
|
89
89
|
const mcp = new Server(
|
|
90
90
|
{
|
|
91
|
-
name: "commhub",
|
|
91
|
+
name: "commhub-channel",
|
|
92
92
|
version: "0.3.0",
|
|
93
93
|
},
|
|
94
94
|
{
|
|
@@ -360,6 +360,7 @@ async function handleSSEEvent(event: any) {
|
|
|
360
360
|
meta: {
|
|
361
361
|
sender: event.from || "hub",
|
|
362
362
|
sender_id: "commhub",
|
|
363
|
+
user: event.from || "hub",
|
|
363
364
|
priority: "normal",
|
|
364
365
|
},
|
|
365
366
|
},
|
|
@@ -385,6 +386,7 @@ async function handleSSEEvent(event: any) {
|
|
|
385
386
|
const meta: Record<string, string> = {
|
|
386
387
|
sender: msg.from_session || "hub",
|
|
387
388
|
sender_id: "commhub",
|
|
389
|
+
user: msg.from_session || "hub",
|
|
388
390
|
task_id: msg.id,
|
|
389
391
|
priority: msg.priority || "normal",
|
|
390
392
|
};
|