fix(cli): v0.5.3 — add push delivery debug logging

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-06 16:49:49 +01:00
parent 7381738f0b
commit d004c95d58
2 changed files with 8 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "claudemesh-cli", "name": "claudemesh-cli",
"version": "0.5.2", "version": "0.5.3",
"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",

View File

@@ -729,6 +729,9 @@ Your message mode is "${messageMode}".
if (messageMode !== "off") { if (messageMode !== "off") {
const pushPollTimer = setInterval(async () => { const pushPollTimer = setInterval(async () => {
const buffered = client.drainPushBuffer(); const buffered = client.drainPushBuffer();
if (buffered.length > 0) {
process.stderr.write(`[claudemesh] poll: ${buffered.length} message(s) to push\n`);
}
for (const msg of buffered) { for (const msg of buffered) {
const fromPubkey = msg.senderPubkey || ""; const fromPubkey = msg.senderPubkey || "";
const fromName = fromPubkey const fromName = fromPubkey
@@ -767,7 +770,10 @@ Your message mode is "${messageMode}".
}, },
}, },
}); });
} catch { /* best effort */ } process.stderr.write(`[claudemesh] pushed: from=${fromName} content=${content.slice(0, 60)}\n`);
} catch (pushErr) {
process.stderr.write(`[claudemesh] push FAILED: ${pushErr}\n`);
}
} }
}, 1_000); }, 1_000);
pushPollTimer.unref(); pushPollTimer.unref();