@sym-bot/mesh-channel 0.1.21 → 0.1.22

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/CHANGELOG.md CHANGED
@@ -1,218 +1,292 @@
1
- # Changelog
2
-
3
- ## 0.1.21
4
-
5
- ### Changed
6
-
7
- - **README: accurate `sym_status` / `sym_peers` example output.** The
8
- Quick Start sample output was a stylized one-line compression; the
9
- real output is multi-line with additional fields (nodeId suffix,
10
- Relay, Memories, one peer per line). Updated so users see in the
11
- README exactly what their terminal will show. Doc-only — no code
12
- changes.
13
-
14
- ## 0.1.20
15
-
16
- ### Added
17
-
18
- - **`sym-mesh-channel init --project`** — new flag to install the MCP
19
- server at project scope (`<cwd>/.mcp.json` + merged
20
- `<cwd>/.claude/settings.local.json`) instead of global
21
- `~/.claude.json`. Enables multi-identity-per-machine workflows where
22
- several Claude Code sessions run in parallel from distinct project
23
- directories and each appears as its own peer on the mesh. Project
24
- `.mcp.json` entries override the global `mcpServers` entry when
25
- Claude Code launches from that directory, so `SYM_NODE_NAME` can
26
- differ per project without siblings stepping on each other.
27
- - Project mode supports the same `--force` semantics as global install:
28
- backs up existing `.mcp.json` and `settings.local.json` next to
29
- themselves (`*.bak-<timestamp>`), merges `settings.local.json` so
30
- unrelated keys (permissions, custom settings) are preserved, atomic
31
- writes via tmp+rename, refuses to overwrite an existing
32
- `claude-sym-mesh` entry without `--force`.
33
- - `--postinstall` always runs global install regardless of `--project`
34
- (npm postinstall runs from npm's staging dir, not the user's
35
- project). Keeps `npm install -g` auto-configure behavior unchanged.
36
- - **5 new tests** covering project-mode install: writes `.mcp.json`
37
- and `settings.local.json`, merge preserves existing keys, refusal
38
- path exits 2, `--force` overwrite creates backup, postinstall
39
- fallback ignores `--project`. Test suite now 22 tests total.
40
-
41
- ### Why
42
-
43
- Default mode (single mesh identity per machine, global install) is
44
- correct for most users and unchanged. `--project` exists for the
45
- small but real set of users who run multiple Claude Code sessions
46
- in parallel from distinct project directories and want each session
47
- to show up as its own peer on the mesh. Previously this workflow
48
- required hand-editing `.mcp.json` and `.claude/settings.local.json`
49
- per project; now it's one command per project.
50
-
51
- ## 0.1.19
52
-
53
- ### Added
54
-
55
- - **Claude Code plugin manifest** for Anthropic Channels allowlist
56
- submission. `.claude-plugin/plugin.json` + `.mcp.json` following the
57
- official single-repo pattern (Telegram/Discord). Submitted to
58
- Anthropic Plugin Directory 10 Apr 2026.
59
- - **`SYM_ALLOWED_PEERS`** optional peer allowlist (defense-in-depth).
60
- Comma-separated node names; only listed peers can push to Claude's
61
- context. Empty = accept all authenticated peers. SVAF still gates on
62
- content relevance regardless.
63
- - **`SECURITY.md`** — 3-layer defense model documentation (transport
64
- auth + SVAF content gate + peer allowlist) for Anthropic review.
65
- - **17 plugin tests** covering manifest validation, security checks
66
- (no permission relay, no code execution, self-echo filtering, peer
67
- allowlist), and lifecycle (shutdown handlers, identity collision).
68
-
69
- ## 0.1.18
70
-
71
- ### Changed
72
-
73
- - **Auto-configure on install.** `npm install -g` now runs `postinstall`
74
- that writes the MCP server config to global `mcpServers` in
75
- `~/.claude.json` automatically. No separate `sym-mesh-channel init`
76
- step needed — two commands to mesh: install + launch.
77
- - **Global MCP config** — server entry is now written to top-level
78
- `mcpServers` (available in all Claude Code sessions), not
79
- project-scoped.
80
- - **Windows postinstall fixes** — `require.resolve` for server.js path
81
- (handles npm staging directory on Windows), EBUSY handling when
82
- Claude Code has `~/.claude.json` locked, graceful skip if Claude
83
- Code not yet installed.
84
- - **README repositioned** lead with capability ("first non-Anthropic
85
- Claude Code Channels implementation"), not use case. Simplified
86
- Quick Start to two commands.
87
- - **0 vulnerabilities** — fresh dependency rebuild resolves all 6
88
- moderate hono/node-server advisories.
89
- - Windows mDNS: built-in on Windows 10+, no Bonjour install needed.
90
-
91
- ## 0.1.7
92
-
93
- ### Added
94
-
95
- - **`npx @sym-bot/mesh-channel init`** — interactive installer that
96
- writes `~/.claude.json` for the current project, picks a sensible
97
- default `SYM_NODE_NAME` (`claude-mac` / `claude-win` / `claude-linux`),
98
- resolves the absolute path to `server.js`, and prints the launch
99
- command including the `--dangerously-load-development-channels` flag.
100
- Backs up the existing config to `~/.claude.json.bak-<timestamp>`,
101
- validates JSON round-trip, atomic write via tmp+rename. Refuses to
102
- overwrite an existing entry without `--force`.
103
- - **README rewritten for LAN-first install.** Quick start is two
104
- minutes: install, init, launch. No relay required. Bonjour/mDNS
105
- is the default discovery path. Cross-network setup (relay) is now
106
- the optional advanced section.
107
-
108
- ### Changed
109
-
110
- - `package.json` `bin` now exposes both `sym-mesh-channel` (server
111
- entrypoint) and `sym-mesh-channel-init` (installer). The package
112
- description leads with "LAN-first via Bonjour, no relay required."
113
-
114
- ### Why
115
-
116
- The 0.1.5/0.1.6 install path required users to manually edit
117
- `~/.claude.json`, know about the Channels dev flag, set up a relay,
118
- and obtain a relay token. That gated the demo behind real friction.
119
- LAN-only mode has worked since day one in the underlying SymNode
120
- (`sym/lib/node.js:509-511` only connects to the relay if `SYM_RELAY_URL`
121
- is set; Bonjour discovery starts unconditionally), but no documentation
122
- or installer surfaced it. This release closes that gap: two users on
123
- the same wifi can join the same mesh in two minutes with three commands.
124
-
125
- ## 0.1.6
126
-
127
- ### Fixed
128
-
129
- - `sym_send` no longer double-delivers. Previously called both
130
- `node.send()` (broadcast as `event_type=message`) AND `node.remember()`
131
- (persist as CMB which gets gossiped as `event_type=cmb`), causing
132
- the same payload to arrive twice on receivers and double the
133
- context-window cost. Now broadcasts the message frame only. Hosts
134
- that want CMB persistence should call `sym_observe` separately
135
- with proper CAT7 fields.
136
- - `sym_send` now reports the actual delivered count, not
137
- `peers().length`. Requires `@sym-bot/sym >= 0.3.70` where `send()`
138
- returns the count of peer transports that successfully accepted
139
- the broadcast. The two can disagree when peers are tracked but
140
- have broken transports the delivered count is the truth about
141
- what was actually sent.
142
-
143
- ### Changed
144
-
145
- - Bumped `@sym-bot/sym` dep `^0.3.69` → `^0.3.70`. 0.3.70 ships the
146
- identity lockfile that prevents two SymNode processes from
147
- claiming the same nodeId on a host (the cliHostMode-vs-MCP
148
- collision that broke real-time push on Windows during the
149
- 2026-04-09 round-trip test).
150
-
151
- ## 0.1.5
152
-
153
- ### Changed
154
-
155
- - Bumped `@sym-bot/sym` dep `^0.3.68` `^0.3.69` (0.3.68 deprecated;
156
- same code in 0.3.69 with a cleaner published tarball).
157
- - Added `files` whitelist to `package.json` and `.npmignore` for
158
- `*.bak`, `*.swp`, `.DS_Store` so future publishes can't accidentally
159
- ship local backup files. First NPM publish of this package.
160
-
161
- ## 0.1.4
162
-
163
- ### Changed
164
-
165
- - Bumped `@sym-bot/sym` dep `^0.3.43` → `^0.3.68` to pick up
166
- duplicate-identity refusal (close code 4004) and the new
167
- `identity-collision` event.
168
-
169
- ### Added
170
-
171
- - Wired `node.on('identity-collision', ...)` to `process.exit(2)` so
172
- the MCP dies cleanly when the relay reports a duplicate-identity
173
- race. Together with v0.1.3's clean shutdown, this fully resolves
174
- the host-side half of the duplicate-identity bug.
175
-
176
- ## 0.1.3
177
-
178
- ### Added
179
-
180
- - Clean shutdown handlers (SIGTERM/SIGINT/SIGHUP) that call
181
- `node.stop()` before exiting, so the SymNode disconnects from the
182
- relay before the process dies. Without this, restarts left zombie
183
- registrations on the relay until the next heartbeat tick (up to
184
- 30s), creating a duplicate-identity race window for the next MCP
185
- spawn. Idempotent re-entry guard.
186
-
187
- ## 0.1.2
188
-
189
- ### Fixed
190
-
191
- - Suppressed `peer-joined` / `peer-left` events from being pushed to
192
- Claude's context as `<channel>` notifications. Presence is high-
193
- frequency and low-signal a relay reconnect could fire one event
194
- per peer per cycle, flooding the context window. CMBs and direct
195
- messages still flow through.
196
-
197
- ## 0.1.1
198
-
199
- ### Changed
200
-
201
- - Replaced hardcoded `claude-code` / `claude-code-mac` literals with
202
- a single `NODE_NAME` constant sourced from `process.env.SYM_NODE_NAME`
203
- (default `claude-code-mac`). Enables platform-scoped naming per
204
- MMP §3.1.2 without source edits. Fixed stale display strings in
205
- the MCP instructions, `sym_send` perspective, `sym_status` header,
206
- and the self-echo dedup filter.
207
-
208
- ## 0.1.0
209
-
210
- ### Added
211
-
212
- - Initial release. MCP server that runs a `SymNode` peer node inside
213
- a Claude Code session own identity, own relay connection, own
214
- SVAF evaluation. Tools: `sym_send`, `sym_observe`, `sym_recall`,
215
- `sym_peers`, `sym_status`. Mesh events arrive as `<channel>`
216
- notifications when launched with
217
- `claude --dangerously-load-development-channels server:claude-sym-mesh`
218
- (allowlisted server name required by Claude Code Channels).
1
+ # Changelog
2
+
3
+ ## 0.1.22
4
+
5
+ ### Added
6
+
7
+ - **Plugin marketplace distribution**: `.claude-plugin/marketplace.json`
8
+ enables direct install via the Claude Code plugin marketplace without
9
+ waiting on the Anthropic Plugin Directory propagation pipeline:
10
+
11
+ ```
12
+ /plugin marketplace add sym-bot/sym-mesh-channel
13
+ /plugin install sym-mesh-channel@sym-mesh-channel
14
+ ```
15
+
16
+ Validates cleanly with `claude plugin validate .` and installs
17
+ end-to-end with no manual steps.
18
+
19
+ - **`LICENSE`** file (Apache-2.0). `package.json` already declared
20
+ Apache-2.0 but no LICENSE text was present in the repo; this
21
+ aligns the distribution with SPDX expectations.
22
+
23
+ - **MMP §5.8 mesh-group support** LAN isolation via Bonjour service
24
+ type so Claude Code sessions can join app-specific meshes (e.g.
25
+ MeloTune mood rooms on `_melotune._tcp`) instead of the global
26
+ `_sym._tcp` mesh. Enables cross-app CMB delivery without cross-app
27
+ noise: nodes in different groups never discover each other at mDNS.
28
+
29
+ Config surface (two equivalent paths):
30
+ - `SYM_GROUP=<name>` → service type `_<name>._tcp`
31
+ - `SYM_SERVICE_TYPE=<st>` → explicit override (`_foo._tcp` form)
32
+
33
+ Default remains `_sym._tcp` / `group=default` backward compatible.
34
+
35
+ - **Two new MCP tools for mesh-group operations**:
36
+ - `sym_group_info` reports current group + service type + peer
37
+ roster scoped to this group.
38
+ - `sym_invite_info` parses app-specific invite URLs
39
+ (`melotune://room/{id}/{name}`, `sym://group/{name}`) into service
40
+ type + group + room name. Read-only inspection; caller opens a
41
+ new session/env to join.
42
+
43
+ `sym_status` output now includes `Group` + service type.
44
+
45
+ ### Fixed
46
+
47
+ - **`plugin.json` validation failure on install.** The three
48
+ `channels[0].userConfig` entries (`relay_url`, `relay_token`,
49
+ `allowed_peers`) were missing the required `type` and `title`
50
+ fields per the Claude Code plugin schema. Install failed with:
51
+
52
+ ```
53
+ channels.0.userConfig.relay_url.type: Invalid option
54
+ channels.0.userConfig.relay_url.title: expected string, received undefined
55
+ ```
56
+
57
+ Added `type: "string"` and a human-readable `title` to all three.
58
+ Likely one of the root causes of the 10 Apr 2026 submission
59
+ showing "Published" on the Anthropic submissions portal but not
60
+ propagating to the public `claude-plugins-official` marketplace.
61
+
62
+ ### Changed
63
+
64
+ - **README**: self-hosted plugin-marketplace install path promoted to
65
+ the primary install recommendation (works today, independent of
66
+ Anthropic directory propagation). npm path kept as alternative.
67
+ Tool table updated 5 8 entries to reflect the current surface.
68
+ Clarified that plugin-directory approval and Channels-allowlist
69
+ inclusion are independent gates — the MCP tools work without the
70
+ `--dangerously-load-development-channels` flag; the flag is only
71
+ needed for the `<channel>` async-push behaviour.
72
+
73
+ - Pairs with `@sym-bot/sym` 0.3.78 which added the
74
+ `discoveryServiceType` and `group` constructor params consumed by
75
+ the mesh-group tools.
76
+
77
+ ## 0.1.21
78
+
79
+ ### Changed
80
+
81
+ - **README: accurate `sym_status` / `sym_peers` example output.** The
82
+ Quick Start sample output was a stylized one-line compression; the
83
+ real output is multi-line with additional fields (nodeId suffix,
84
+ Relay, Memories, one peer per line). Updated so users see in the
85
+ README exactly what their terminal will show. Doc-only — no code
86
+ changes.
87
+
88
+ ## 0.1.20
89
+
90
+ ### Added
91
+
92
+ - **`sym-mesh-channel init --project`** — new flag to install the MCP
93
+ server at project scope (`<cwd>/.mcp.json` + merged
94
+ `<cwd>/.claude/settings.local.json`) instead of global
95
+ `~/.claude.json`. Enables multi-identity-per-machine workflows where
96
+ several Claude Code sessions run in parallel from distinct project
97
+ directories and each appears as its own peer on the mesh. Project
98
+ `.mcp.json` entries override the global `mcpServers` entry when
99
+ Claude Code launches from that directory, so `SYM_NODE_NAME` can
100
+ differ per project without siblings stepping on each other.
101
+ - Project mode supports the same `--force` semantics as global install:
102
+ backs up existing `.mcp.json` and `settings.local.json` next to
103
+ themselves (`*.bak-<timestamp>`), merges `settings.local.json` so
104
+ unrelated keys (permissions, custom settings) are preserved, atomic
105
+ writes via tmp+rename, refuses to overwrite an existing
106
+ `claude-sym-mesh` entry without `--force`.
107
+ - `--postinstall` always runs global install regardless of `--project`
108
+ (npm postinstall runs from npm's staging dir, not the user's
109
+ project). Keeps `npm install -g` auto-configure behavior unchanged.
110
+ - **5 new tests** covering project-mode install: writes `.mcp.json`
111
+ and `settings.local.json`, merge preserves existing keys, refusal
112
+ path exits 2, `--force` overwrite creates backup, postinstall
113
+ fallback ignores `--project`. Test suite now 22 tests total.
114
+
115
+ ### Why
116
+
117
+ Default mode (single mesh identity per machine, global install) is
118
+ correct for most users and unchanged. `--project` exists for the
119
+ small but real set of users who run multiple Claude Code sessions
120
+ in parallel from distinct project directories and want each session
121
+ to show up as its own peer on the mesh. Previously this workflow
122
+ required hand-editing `.mcp.json` and `.claude/settings.local.json`
123
+ per project; now it's one command per project.
124
+
125
+ ## 0.1.19
126
+
127
+ ### Added
128
+
129
+ - **Claude Code plugin manifest** for Anthropic Channels allowlist
130
+ submission. `.claude-plugin/plugin.json` + `.mcp.json` following the
131
+ official single-repo pattern (Telegram/Discord). Submitted to
132
+ Anthropic Plugin Directory 10 Apr 2026.
133
+ - **`SYM_ALLOWED_PEERS`** optional peer allowlist (defense-in-depth).
134
+ Comma-separated node names; only listed peers can push to Claude's
135
+ context. Empty = accept all authenticated peers. SVAF still gates on
136
+ content relevance regardless.
137
+ - **`SECURITY.md`** 3-layer defense model documentation (transport
138
+ auth + SVAF content gate + peer allowlist) for Anthropic review.
139
+ - **17 plugin tests** covering manifest validation, security checks
140
+ (no permission relay, no code execution, self-echo filtering, peer
141
+ allowlist), and lifecycle (shutdown handlers, identity collision).
142
+
143
+ ## 0.1.18
144
+
145
+ ### Changed
146
+
147
+ - **Auto-configure on install.** `npm install -g` now runs `postinstall`
148
+ that writes the MCP server config to global `mcpServers` in
149
+ `~/.claude.json` automatically. No separate `sym-mesh-channel init`
150
+ step needed — two commands to mesh: install + launch.
151
+ - **Global MCP config** — server entry is now written to top-level
152
+ `mcpServers` (available in all Claude Code sessions), not
153
+ project-scoped.
154
+ - **Windows postinstall fixes** — `require.resolve` for server.js path
155
+ (handles npm staging directory on Windows), EBUSY handling when
156
+ Claude Code has `~/.claude.json` locked, graceful skip if Claude
157
+ Code not yet installed.
158
+ - **README repositioned** lead with capability ("first non-Anthropic
159
+ Claude Code Channels implementation"), not use case. Simplified
160
+ Quick Start to two commands.
161
+ - **0 vulnerabilities** — fresh dependency rebuild resolves all 6
162
+ moderate hono/node-server advisories.
163
+ - Windows mDNS: built-in on Windows 10+, no Bonjour install needed.
164
+
165
+ ## 0.1.7
166
+
167
+ ### Added
168
+
169
+ - **`npx @sym-bot/mesh-channel init`** — interactive installer that
170
+ writes `~/.claude.json` for the current project, picks a sensible
171
+ default `SYM_NODE_NAME` (`claude-mac` / `claude-win` / `claude-linux`),
172
+ resolves the absolute path to `server.js`, and prints the launch
173
+ command including the `--dangerously-load-development-channels` flag.
174
+ Backs up the existing config to `~/.claude.json.bak-<timestamp>`,
175
+ validates JSON round-trip, atomic write via tmp+rename. Refuses to
176
+ overwrite an existing entry without `--force`.
177
+ - **README rewritten for LAN-first install.** Quick start is two
178
+ minutes: install, init, launch. No relay required. Bonjour/mDNS
179
+ is the default discovery path. Cross-network setup (relay) is now
180
+ the optional advanced section.
181
+
182
+ ### Changed
183
+
184
+ - `package.json` `bin` now exposes both `sym-mesh-channel` (server
185
+ entrypoint) and `sym-mesh-channel-init` (installer). The package
186
+ description leads with "LAN-first via Bonjour, no relay required."
187
+
188
+ ### Why
189
+
190
+ The 0.1.5/0.1.6 install path required users to manually edit
191
+ `~/.claude.json`, know about the Channels dev flag, set up a relay,
192
+ and obtain a relay token. That gated the demo behind real friction.
193
+ LAN-only mode has worked since day one in the underlying SymNode
194
+ (`sym/lib/node.js:509-511` only connects to the relay if `SYM_RELAY_URL`
195
+ is set; Bonjour discovery starts unconditionally), but no documentation
196
+ or installer surfaced it. This release closes that gap: two users on
197
+ the same wifi can join the same mesh in two minutes with three commands.
198
+
199
+ ## 0.1.6
200
+
201
+ ### Fixed
202
+
203
+ - `sym_send` no longer double-delivers. Previously called both
204
+ `node.send()` (broadcast as `event_type=message`) AND `node.remember()`
205
+ (persist as CMB which gets gossiped as `event_type=cmb`), causing
206
+ the same payload to arrive twice on receivers and double the
207
+ context-window cost. Now broadcasts the message frame only. Hosts
208
+ that want CMB persistence should call `sym_observe` separately
209
+ with proper CAT7 fields.
210
+ - `sym_send` now reports the actual delivered count, not
211
+ `peers().length`. Requires `@sym-bot/sym >= 0.3.70` where `send()`
212
+ returns the count of peer transports that successfully accepted
213
+ the broadcast. The two can disagree when peers are tracked but
214
+ have broken transports the delivered count is the truth about
215
+ what was actually sent.
216
+
217
+ ### Changed
218
+
219
+ - Bumped `@sym-bot/sym` dep `^0.3.69` → `^0.3.70`. 0.3.70 ships the
220
+ identity lockfile that prevents two SymNode processes from
221
+ claiming the same nodeId on a host (the cliHostMode-vs-MCP
222
+ collision that broke real-time push on Windows during the
223
+ 2026-04-09 round-trip test).
224
+
225
+ ## 0.1.5
226
+
227
+ ### Changed
228
+
229
+ - Bumped `@sym-bot/sym` dep `^0.3.68` → `^0.3.69` (0.3.68 deprecated;
230
+ same code in 0.3.69 with a cleaner published tarball).
231
+ - Added `files` whitelist to `package.json` and `.npmignore` for
232
+ `*.bak`, `*.swp`, `.DS_Store` so future publishes can't accidentally
233
+ ship local backup files. First NPM publish of this package.
234
+
235
+ ## 0.1.4
236
+
237
+ ### Changed
238
+
239
+ - Bumped `@sym-bot/sym` dep `^0.3.43` → `^0.3.68` to pick up
240
+ duplicate-identity refusal (close code 4004) and the new
241
+ `identity-collision` event.
242
+
243
+ ### Added
244
+
245
+ - Wired `node.on('identity-collision', ...)` to `process.exit(2)` so
246
+ the MCP dies cleanly when the relay reports a duplicate-identity
247
+ race. Together with v0.1.3's clean shutdown, this fully resolves
248
+ the host-side half of the duplicate-identity bug.
249
+
250
+ ## 0.1.3
251
+
252
+ ### Added
253
+
254
+ - Clean shutdown handlers (SIGTERM/SIGINT/SIGHUP) that call
255
+ `node.stop()` before exiting, so the SymNode disconnects from the
256
+ relay before the process dies. Without this, restarts left zombie
257
+ registrations on the relay until the next heartbeat tick (up to
258
+ 30s), creating a duplicate-identity race window for the next MCP
259
+ spawn. Idempotent re-entry guard.
260
+
261
+ ## 0.1.2
262
+
263
+ ### Fixed
264
+
265
+ - Suppressed `peer-joined` / `peer-left` events from being pushed to
266
+ Claude's context as `<channel>` notifications. Presence is high-
267
+ frequency and low-signal — a relay reconnect could fire one event
268
+ per peer per cycle, flooding the context window. CMBs and direct
269
+ messages still flow through.
270
+
271
+ ## 0.1.1
272
+
273
+ ### Changed
274
+
275
+ - Replaced hardcoded `claude-code` / `claude-code-mac` literals with
276
+ a single `NODE_NAME` constant sourced from `process.env.SYM_NODE_NAME`
277
+ (default `claude-code-mac`). Enables platform-scoped naming per
278
+ MMP §3.1.2 without source edits. Fixed stale display strings in
279
+ the MCP instructions, `sym_send` perspective, `sym_status` header,
280
+ and the self-echo dedup filter.
281
+
282
+ ## 0.1.0
283
+
284
+ ### Added
285
+
286
+ - Initial release. MCP server that runs a `SymNode` peer node inside
287
+ a Claude Code session — own identity, own relay connection, own
288
+ SVAF evaluation. Tools: `sym_send`, `sym_observe`, `sym_recall`,
289
+ `sym_peers`, `sym_status`. Mesh events arrive as `<channel>`
290
+ notifications when launched with
291
+ `claude --dangerously-load-development-channels server:claude-sym-mesh`
292
+ (allowlisted server name required by Claude Code Channels).