claudemesh-cli 0.8.7 → 0.8.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/dist/index.js +32 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -49191,9 +49191,30 @@ class BrokerClient {
|
|
|
49191
49191
|
const ciphertext = String(msg.ciphertext ?? "");
|
|
49192
49192
|
const senderPubkey = String(msg.senderPubkey ?? "");
|
|
49193
49193
|
(async () => {
|
|
49194
|
-
const
|
|
49194
|
+
const isSystem = msg.subtype === "system" || senderPubkey === "system";
|
|
49195
|
+
const kind = isSystem ? "broadcast" : senderPubkey ? "direct" : "unknown";
|
|
49195
49196
|
let plaintext = null;
|
|
49196
|
-
if (
|
|
49197
|
+
if (isSystem) {
|
|
49198
|
+
const event = msg.event ? String(msg.event) : "system";
|
|
49199
|
+
const data = msg.eventData;
|
|
49200
|
+
if (event === "watch_triggered" && data) {
|
|
49201
|
+
plaintext = `[WATCH] ${data.label ?? data.url}: ${data.oldValue} → ${data.newValue}`;
|
|
49202
|
+
} else if (event === "mcp_deployed" && data) {
|
|
49203
|
+
plaintext = `[SERVICE] "${data.name}" deployed (${data.tool_count} tools) by ${data.deployed_by}`;
|
|
49204
|
+
} else if (event === "mcp_undeployed" && data) {
|
|
49205
|
+
plaintext = `[SERVICE] "${data.name}" undeployed by ${data.by}`;
|
|
49206
|
+
} else if (event === "mcp_scope_changed" && data) {
|
|
49207
|
+
plaintext = `[SERVICE] "${data.name}" scope changed to ${JSON.stringify(data.scope)} by ${data.by}`;
|
|
49208
|
+
} else if (event === "peer_joined" && data) {
|
|
49209
|
+
plaintext = `[MESH] ${data.displayName ?? "peer"} joined`;
|
|
49210
|
+
} else if (event === "peer_left" && data) {
|
|
49211
|
+
plaintext = `[MESH] ${data.displayName ?? "peer"} left`;
|
|
49212
|
+
} else if (data) {
|
|
49213
|
+
plaintext = `[${event}] ${JSON.stringify(data)}`;
|
|
49214
|
+
} else {
|
|
49215
|
+
plaintext = `[${event}]`;
|
|
49216
|
+
}
|
|
49217
|
+
} else if (senderPubkey && nonce && ciphertext) {
|
|
49197
49218
|
plaintext = await decryptDirect({ nonce, ciphertext }, senderPubkey, this.sessionSecretKey ?? this.mesh.secretKey);
|
|
49198
49219
|
}
|
|
49199
49220
|
if (plaintext === null && ciphertext && !senderPubkey) {
|
|
@@ -51406,6 +51427,14 @@ ${lines.join(`
|
|
|
51406
51427
|
content2 = `[system] MCP server "${data.serverName}" removed (was hosted by ${data.hostedBy})`;
|
|
51407
51428
|
} else if (eventName === "mcp_restored") {
|
|
51408
51429
|
content2 = `[system] MCP server "${data.serverName}" is back online (hosted by ${data.hostedBy})`;
|
|
51430
|
+
} else if (eventName === "watch_triggered") {
|
|
51431
|
+
content2 = `[WATCH] ${data.label ?? data.url}: ${data.oldValue} → ${data.newValue}`;
|
|
51432
|
+
} else if (eventName === "mcp_deployed") {
|
|
51433
|
+
content2 = `[SERVICE] "${data.name}" deployed (${data.tool_count} tools) by ${data.deployed_by}`;
|
|
51434
|
+
} else if (eventName === "mcp_undeployed") {
|
|
51435
|
+
content2 = `[SERVICE] "${data.name}" undeployed by ${data.by}`;
|
|
51436
|
+
} else if (eventName === "mcp_scope_changed") {
|
|
51437
|
+
content2 = `[SERVICE] "${data.name}" scope changed to ${JSON.stringify(data.scope)} by ${data.by}`;
|
|
51409
51438
|
} else {
|
|
51410
51439
|
content2 = `[system] ${eventName}: ${JSON.stringify(data)}`;
|
|
51411
51440
|
}
|
|
@@ -52725,7 +52754,7 @@ init_config();
|
|
|
52725
52754
|
// package.json
|
|
52726
52755
|
var package_default = {
|
|
52727
52756
|
name: "claudemesh-cli",
|
|
52728
|
-
version: "0.8.
|
|
52757
|
+
version: "0.8.9",
|
|
52729
52758
|
description: "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
|
|
52730
52759
|
keywords: [
|
|
52731
52760
|
"claude-code",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudemesh-cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
4
4
|
"description": "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"prettier": "3.6.2",
|
|
49
49
|
"typescript": "5.9.3",
|
|
50
50
|
"vitest": "4.0.14",
|
|
51
|
-
"@turbostarter/vitest-config": "0.1.0",
|
|
52
|
-
"@turbostarter/tsconfig": "0.1.0",
|
|
53
51
|
"@turbostarter/eslint-config": "0.1.0",
|
|
52
|
+
"@turbostarter/tsconfig": "0.1.0",
|
|
53
|
+
"@turbostarter/vitest-config": "0.1.0",
|
|
54
54
|
"@turbostarter/prettier-config": "0.1.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|