claudemesh-cli 0.1.11 → 0.1.12

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -46822,7 +46822,7 @@ async function startMcpServer() {
46822
46822
 
46823
46823
  IMPORTANT: When you receive a <channel source="claudemesh" ...> message, RESPOND IMMEDIATELY. Do not wait until your current task is finished. Pause what you are doing, reply to the message using send_message, then resume your work. Treat incoming peer messages like a coworker tapping you on the shoulder — answer right away, even if you're in the middle of something.
46824
46824
 
46825
- Read the from_id, from_name, mesh_slug, and priority attributes to understand context. Reply by calling send_message with the same target (for direct messages the from_id is the sender's pubkey).
46825
+ Read the from_id, from_name, mesh_slug, and priority attributes to understand context. Reply by calling send_message with to set to the from_name (display name) of the sender.
46826
46826
 
46827
46827
  Available tools:
46828
46828
  - list_peers: see joined meshes + their connection status
@@ -46929,7 +46929,13 @@ ${drained.join(`
46929
46929
  for (const client of allClients()) {
46930
46930
  client.onPush(async (msg) => {
46931
46931
  const fromPubkey = msg.senderPubkey || "";
46932
- const fromName = fromPubkey ? `peer-${fromPubkey.slice(0, 8)}` : "unknown";
46932
+ let fromName = fromPubkey ? `peer-${fromPubkey.slice(0, 8)}` : "unknown";
46933
+ try {
46934
+ const peers = await client.listPeers();
46935
+ const match = peers.find((p) => p.pubkey === fromPubkey);
46936
+ if (match)
46937
+ fromName = match.displayName;
46938
+ } catch {}
46933
46939
  const content = msg.plaintext ?? decryptFailedWarning(fromPubkey);
46934
46940
  try {
46935
46941
  await server.notification({
@@ -47737,7 +47743,7 @@ init_config();
47737
47743
  // package.json
47738
47744
  var package_default = {
47739
47745
  name: "claudemesh-cli",
47740
- version: "0.1.11",
47746
+ version: "0.1.12",
47741
47747
  description: "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
47742
47748
  keywords: [
47743
47749
  "claude-code",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudemesh-cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
5
5
  "keywords": [
6
6
  "claude-code",