claudemesh-cli 0.8.7 → 0.8.8
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 +24 -3
- package/package.json +4 -4
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) {
|
|
@@ -52725,7 +52746,7 @@ init_config();
|
|
|
52725
52746
|
// package.json
|
|
52726
52747
|
var package_default = {
|
|
52727
52748
|
name: "claudemesh-cli",
|
|
52728
|
-
version: "0.8.
|
|
52749
|
+
version: "0.8.8",
|
|
52729
52750
|
description: "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
|
|
52730
52751
|
keywords: [
|
|
52731
52752
|
"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.8",
|
|
4
4
|
"description": "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -48,10 +48,10 @@
|
|
|
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",
|
|
54
|
-
"@turbostarter/prettier-config": "0.1.0"
|
|
52
|
+
"@turbostarter/prettier-config": "0.1.0",
|
|
53
|
+
"@turbostarter/tsconfig": "0.1.0",
|
|
54
|
+
"@turbostarter/vitest-config": "0.1.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "bun build src/index.ts --target=node --outfile dist/index.js --banner \"#!/usr/bin/env node\" && chmod +x dist/index.js",
|