@sym-bot/mesh-channel 0.3.8 → 0.3.9
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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/.mcp.json +4 -1
- package/package.json +1 -1
- package/server.js +19 -0
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Real-time communication and collaboration among Claude Code sessions — agent-to-agent cognitive signals over Bonjour LAN or WebSocket relay, on the Mesh Memory Protocol (MMP).",
|
|
9
|
-
"version": "0.3.
|
|
9
|
+
"version": "0.3.9"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "sym-mesh-channel",
|
|
14
14
|
"source": "./",
|
|
15
15
|
"description": "Real-time communication and collaboration among Claude Code sessions. Turns Claude Code into a peer node on the SYM mesh — two or more sessions discover each other via Bonjour (LAN) or a WebSocket relay (cross-network) and exchange structured cognitive signals as channel notifications. Each peer has its own Ed25519 identity, SVAF content gating, and local memory. Built on the Mesh Memory Protocol (MMP), an open peer-to-peer protocol for multi-agent collective intelligence.",
|
|
16
|
-
"version": "0.3.
|
|
16
|
+
"version": "0.3.9",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "Hongwei Xu",
|
|
19
19
|
"email": "hongwei@sym.bot"
|
package/.mcp.json
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
"mcpServers": {
|
|
3
3
|
"claude-sym-mesh": {
|
|
4
4
|
"command": "npx",
|
|
5
|
-
"args": [
|
|
5
|
+
"args": [
|
|
6
|
+
"-y",
|
|
7
|
+
"@sym-bot/mesh-channel@0.3.9"
|
|
8
|
+
],
|
|
6
9
|
"env": {
|
|
7
10
|
"SYM_RELAY_URL": "${user_config.relay_url}",
|
|
8
11
|
"SYM_RELAY_TOKEN": "${user_config.relay_token}",
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -7,6 +7,25 @@ if (process.argv[2] === 'init') {
|
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
// ── stdout discipline (v0.3.9) ──────────────────────────────────────────────
|
|
11
|
+
// MCP frames JSON-RPC on stdout. Any non-JSON write there — ours or, far more
|
|
12
|
+
// often, a dependency's load banner (e.g. "[encoder] Semantic encoder ready"
|
|
13
|
+
// from the semantic model) — corrupts the stream and makes Claude Code drop the
|
|
14
|
+
// connection (-32000) or log "Ignoring non-JSON line on stdout". Guard it: lines
|
|
15
|
+
// that look like JSON-RPC (start with '{') pass through to the real stdout;
|
|
16
|
+
// everything else is redirected to stderr. Installed before any require so it
|
|
17
|
+
// catches dependency output at load time.
|
|
18
|
+
const __realStdoutWrite = process.stdout.write.bind(process.stdout);
|
|
19
|
+
process.stdout.write = function (chunk, ...rest) {
|
|
20
|
+
try {
|
|
21
|
+
const s = typeof chunk === 'string' ? chunk : chunk.toString('utf8');
|
|
22
|
+
if (s.trimStart().startsWith('{')) return __realStdoutWrite(chunk, ...rest);
|
|
23
|
+
return process.stderr.write(chunk, ...rest);
|
|
24
|
+
} catch {
|
|
25
|
+
return __realStdoutWrite(chunk, ...rest);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
10
29
|
/**
|
|
11
30
|
* sym-mesh-channel — MCP server that makes Claude Code a peer node on the SYM mesh.
|
|
12
31
|
*
|