claudemesh-cli 0.5.5 → 0.5.6

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 +21 -25
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -48583,38 +48583,34 @@ ${rows.join(`
48583
48583
  if (!client)
48584
48584
  return text("ping_mesh: not connected", true);
48585
48585
  const results = [];
48586
+ results.push(`WS status: ${client.status}`);
48587
+ results.push(`Mesh: ${client.meshSlug}`);
48588
+ const peers = await client.listPeers();
48589
+ const selfPeer = peers.find((p) => p.displayName === myName);
48590
+ results.push(`Your status: ${selfPeer?.status ?? "not found in peer list"}`);
48591
+ results.push(`Peers online: ${peers.length}`);
48592
+ results.push(`Push buffer: ${client.pushHistory.length} buffered`);
48586
48593
  for (const prio of toTest) {
48587
48594
  const sendTime = Date.now();
48588
- const pingId = `ping-${sendTime}-${prio}`;
48589
- const sendResult = await client.send("*", `__ping__${pingId}`, prio);
48595
+ const target = peers.find((p) => p.displayName !== myName);
48596
+ const sendResult = await client.send(target?.pubkey ?? "*", `__ping__ ${prio} from ${myName} at ${new Date().toISOString()}`, prio);
48590
48597
  const ackTime = Date.now();
48591
48598
  if (!sendResult.ok) {
48592
48599
  results.push(`[${prio}] SEND FAILED: ${sendResult.error}`);
48593
- continue;
48594
- }
48595
- let received = false;
48596
- let receiveTime = 0;
48597
- for (let i = 0;i < 100; i++) {
48598
- await new Promise((r) => setTimeout(r, 100));
48599
- const buffer = client.pushHistory;
48600
- const match = buffer.find((m) => m.plaintext?.includes(pingId) || false);
48601
- if (match) {
48602
- received = true;
48603
- receiveTime = Date.now();
48604
- break;
48605
- }
48606
- }
48607
- if (received) {
48608
- results.push(`[${prio}] OK — send→ack: ${ackTime - sendTime}ms, send→receive: ${receiveTime - sendTime}ms`);
48609
48600
  } else {
48610
- const peers = await client.listPeers();
48611
- const selfStatus = peers.find((p) => p.displayName === myName)?.status ?? "unknown";
48612
- results.push(`[${prio}] NOT RECEIVED in 10s (your status: ${selfStatus}${selfStatus === "working" ? " — broker holds next/low" : ""})`);
48601
+ results.push(`[${prio}] send→ack: ${ackTime - sendTime}ms (msgId: ${sendResult.messageId?.slice(0, 12)})`);
48602
+ if (prio !== "now" && selfPeer?.status === "working") {
48603
+ results.push(` peer status is "working" — broker holds "${prio}" until idle`);
48604
+ }
48613
48605
  }
48614
48606
  }
48615
- return text(`Ping results:
48616
- ${results.join(`
48617
- `)}`);
48607
+ results.push("");
48608
+ results.push("Pipeline check:");
48609
+ results.push(` onPush handlers: active`);
48610
+ results.push(` messageMode: ${messageMode}`);
48611
+ results.push(` server.notification: ${messageMode === "off" ? "disabled (mode=off)" : "enabled"}`);
48612
+ return text(results.join(`
48613
+ `));
48618
48614
  }
48619
48615
  default:
48620
48616
  return text(`Unknown tool: ${name}`, true);
@@ -49610,7 +49606,7 @@ init_config();
49610
49606
  // package.json
49611
49607
  var package_default = {
49612
49608
  name: "claudemesh-cli",
49613
- version: "0.5.5",
49609
+ version: "0.5.6",
49614
49610
  description: "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
49615
49611
  keywords: [
49616
49612
  "claude-code",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudemesh-cli",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
5
5
  "keywords": [
6
6
  "claude-code",