claudemesh-cli 1.8.0 → 1.9.2

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.
@@ -2011,6 +2011,11 @@ class BrokerClient {
2011
2011
  messageId: String(msg.messageId ?? ""),
2012
2012
  meshId: String(msg.meshId ?? ""),
2013
2013
  senderPubkey,
2014
+ ...msg.senderMemberPubkey ? { senderMemberPubkey: String(msg.senderMemberPubkey) } : {},
2015
+ ...msg.senderMemberId ? { senderMemberId: String(msg.senderMemberId) } : {},
2016
+ ...msg.senderName ? { senderName: String(msg.senderName) } : {},
2017
+ ...msg.topic ? { topic: String(msg.topic) } : {},
2018
+ ...msg.replyToId ? { replyToId: String(msg.replyToId) } : {},
2014
2019
  priority: msg.priority ?? "next",
2015
2020
  nonce,
2016
2021
  ciphertext,
@@ -2998,7 +3003,7 @@ __export(exports_urls, {
2998
3003
  VERSION: () => VERSION,
2999
3004
  URLS: () => URLS
3000
3005
  });
3001
- var URLS, VERSION = "1.8.0", env;
3006
+ var URLS, VERSION = "1.9.2", env;
3002
3007
  var init_urls = __esm(() => {
3003
3008
  URLS = {
3004
3009
  BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
@@ -3960,7 +3965,16 @@ async function startMcpServer() {
3960
3965
  You are "${myName}"${myRole ? ` (${myRole})` : ""} — a peer in the claudemesh network. Your groups: ${myGroups}. You are one of several Claude Code sessions connected to the same mesh. No orchestrator exists — peers are equals. Your identity comes from your name and group roles, not from a central authority.
3961
3966
 
3962
3967
  ## Responding to messages
3963
- When you receive a <channel source="claudemesh" ...> message, RESPOND IMMEDIATELY. Pause your current task, reply via send_message, then resume. Read from_name, mesh_slug, and priority from the channel attributes. Reply by setting \`to\` to the sender's from_name (display name). Stay in character per your system prompt. Do not ignore low-priority messages — acknowledge them briefly even if you defer action.
3968
+ When you receive a <channel source="claudemesh" ...> message, RESPOND IMMEDIATELY. Pause your current task, reply via send_message (or \`claudemesh topic post --reply-to <message_id>\` for topic threads), then resume. Stay in character per your system prompt. Do not ignore low-priority messages — acknowledge them briefly even if you defer action.
3969
+
3970
+ The channel attributes carry everything you need to reply — no extra lookups:
3971
+ - \`from_name\` — sender display name. Use as the \`to\` arg when replying to a DM.
3972
+ - \`from_pubkey\` / \`from_member_id\` — stable ids. Use \`from_member_id\` if the sender's display name might change.
3973
+ - \`mesh_slug\` — pass via \`--mesh\` if your default mesh differs.
3974
+ - \`priority\` — \`now\` / \`next\` / \`low\`.
3975
+ - \`message_id\` — id of THIS message. To thread a reply onto it in a topic, run \`claudemesh topic post <topic> "<text>" --reply-to <message_id>\`.
3976
+ - \`topic\` — set when the message arrived through a topic (vs DM). Reply in the same topic.
3977
+ - \`reply_to_id\` — set when the incoming message is itself a reply. Render thread context if you re-narrate.
3964
3978
 
3965
3979
  If the channel meta contains \`subtype: reminder\`, this is a scheduled reminder you set for yourself — act on it immediately (no reply needed).
3966
3980
 
@@ -4320,20 +4334,27 @@ ${manifest.allowed_tools.map((t) => ` - ${t}`).join(`
4320
4334
  const prioBadge = msg.priority === "now" ? "[URGENT] " : msg.priority === "low" ? "[low] " : "";
4321
4335
  const kindBadge = msg.kind === "broadcast" ? " (broadcast)" : "";
4322
4336
  const content = `${prioBadge}${fromName}${kindBadge}: ${body}`;
4337
+ const fromMemberPubkey = msg.senderMemberPubkey ?? fromPubkey;
4323
4338
  try {
4324
4339
  await server.notification({
4325
4340
  method: "notifications/claude/channel",
4326
4341
  params: {
4327
4342
  content,
4328
4343
  meta: {
4329
- from_id: fromPubkey,
4344
+ from_id: fromMemberPubkey,
4345
+ from_pubkey: fromMemberPubkey,
4346
+ from_session_pubkey: fromPubkey,
4330
4347
  from_name: fromName,
4348
+ ...msg.senderMemberId ? { from_member_id: msg.senderMemberId } : {},
4331
4349
  mesh_slug: client.meshSlug,
4332
4350
  mesh_id: client.meshId,
4333
4351
  priority: msg.priority,
4334
4352
  sent_at: msg.createdAt,
4335
4353
  delivered_at: msg.receivedAt,
4336
4354
  kind: msg.kind,
4355
+ message_id: msg.messageId,
4356
+ ...msg.topic ? { topic: msg.topic } : {},
4357
+ ...msg.replyToId ? { reply_to_id: msg.replyToId } : {},
4337
4358
  ...msg.subtype ? { subtype: msg.subtype } : {}
4338
4359
  }
4339
4360
  }
@@ -4538,4 +4559,4 @@ startMcpServer().catch((err) => {
4538
4559
  process.exit(1);
4539
4560
  });
4540
4561
 
4541
- //# debugId=D006E143172B79F264756E2164756E21
4562
+ //# debugId=20B6A0A664F9AC8C64756E2164756E21