fix(cli): display system push messages without decryption
System messages (watch_triggered, mcp_deployed, peer_joined, etc.) have senderPubkey='system' with empty ciphertext. The push handler now formats them as readable plaintext instead of failing to decrypt. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "claudemesh-cli",
|
"name": "claudemesh-cli",
|
||||||
"version": "0.8.8",
|
"version": "0.8.9",
|
||||||
"description": "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
|
"description": "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"claude-code",
|
"claude-code",
|
||||||
|
|||||||
@@ -1635,6 +1635,14 @@ Your message mode is "${messageMode}".
|
|||||||
content = `[system] MCP server "${data.serverName}" removed (was hosted by ${data.hostedBy})`;
|
content = `[system] MCP server "${data.serverName}" removed (was hosted by ${data.hostedBy})`;
|
||||||
} else if (eventName === "mcp_restored") {
|
} else if (eventName === "mcp_restored") {
|
||||||
content = `[system] MCP server "${data.serverName}" is back online (hosted by ${data.hostedBy})`;
|
content = `[system] MCP server "${data.serverName}" is back online (hosted by ${data.hostedBy})`;
|
||||||
|
} else if (eventName === "watch_triggered") {
|
||||||
|
content = `[WATCH] ${data.label ?? data.url}: ${data.oldValue} → ${data.newValue}`;
|
||||||
|
} else if (eventName === "mcp_deployed") {
|
||||||
|
content = `[SERVICE] "${data.name}" deployed (${data.tool_count} tools) by ${data.deployed_by}`;
|
||||||
|
} else if (eventName === "mcp_undeployed") {
|
||||||
|
content = `[SERVICE] "${data.name}" undeployed by ${data.by}`;
|
||||||
|
} else if (eventName === "mcp_scope_changed") {
|
||||||
|
content = `[SERVICE] "${data.name}" scope changed to ${JSON.stringify(data.scope)} by ${data.by}`;
|
||||||
} else {
|
} else {
|
||||||
content = `[system] ${eventName}: ${JSON.stringify(data)}`;
|
content = `[system] ${eventName}: ${JSON.stringify(data)}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user