claudemesh-cli 1.34.5 → 1.34.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.
- package/dist/entrypoints/cli.js +12 -14
- package/dist/entrypoints/cli.js.map +3 -3
- package/dist/entrypoints/mcp.js +12 -14
- package/dist/entrypoints/mcp.js.map +3 -3
- package/package.json +1 -1
package/dist/entrypoints/mcp.js
CHANGED
|
@@ -81,7 +81,7 @@ __export(exports_urls, {
|
|
|
81
81
|
VERSION: () => VERSION,
|
|
82
82
|
URLS: () => URLS
|
|
83
83
|
});
|
|
84
|
-
var URLS, VERSION = "1.34.
|
|
84
|
+
var URLS, VERSION = "1.34.6", env;
|
|
85
85
|
var init_urls = __esm(() => {
|
|
86
86
|
URLS = {
|
|
87
87
|
BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
|
|
@@ -3003,18 +3003,16 @@ ${mf.allowed_tools.map((t) => ` - ${t}`).join(`
|
|
|
3003
3003
|
} catch {}
|
|
3004
3004
|
}
|
|
3005
3005
|
});
|
|
3006
|
-
const
|
|
3007
|
-
|
|
3006
|
+
const WELCOME_GRACE_MS = 3000;
|
|
3007
|
+
let welcomeSent = false;
|
|
3008
3008
|
server.oninitialized = () => {
|
|
3009
3009
|
mcpLog("server_initialized");
|
|
3010
|
+
if (welcomeSent)
|
|
3011
|
+
return;
|
|
3012
|
+
welcomeSent = true;
|
|
3010
3013
|
setTimeout(() => {
|
|
3011
|
-
mcpLog("welcome_attempt", { lane: "fast", grace_ms: WELCOME_GRACE_FAST_MS });
|
|
3012
|
-
emitMeshWelcome(server, mcpLog);
|
|
3013
|
-
}, WELCOME_GRACE_FAST_MS);
|
|
3014
|
-
setTimeout(() => {
|
|
3015
|
-
mcpLog("welcome_attempt", { lane: "slow", grace_ms: WELCOME_GRACE_SLOW_MS });
|
|
3016
3014
|
emitMeshWelcome(server, mcpLog);
|
|
3017
|
-
},
|
|
3015
|
+
}, WELCOME_GRACE_MS);
|
|
3018
3016
|
};
|
|
3019
3017
|
const transport = new StdioServerTransport;
|
|
3020
3018
|
await server.connect(transport);
|
|
@@ -3127,10 +3125,10 @@ async function emitMeshWelcome(server, mcpLog) {
|
|
|
3127
3125
|
self_session_pubkey: selfSessionPubkey ?? "",
|
|
3128
3126
|
self_role: selfRole ?? "",
|
|
3129
3127
|
mesh_slug: selfMeshSlug ?? "",
|
|
3130
|
-
peer_count: peerCount >= 0 ? peerCount :
|
|
3131
|
-
peer_names: peerNames,
|
|
3132
|
-
unread_count: inboxItems.length,
|
|
3133
|
-
latest_message_ids: inboxItems.slice(0, 10).map((it) => String(it.id ?? ""))
|
|
3128
|
+
peer_count: peerCount >= 0 ? String(peerCount) : "",
|
|
3129
|
+
peer_names: JSON.stringify(peerNames),
|
|
3130
|
+
unread_count: String(inboxItems.length),
|
|
3131
|
+
latest_message_ids: JSON.stringify(inboxItems.slice(0, 10).map((it) => String(it.id ?? "")))
|
|
3134
3132
|
}
|
|
3135
3133
|
}
|
|
3136
3134
|
});
|
|
@@ -3255,4 +3253,4 @@ startMcpServer().catch((err) => {
|
|
|
3255
3253
|
process.exit(1);
|
|
3256
3254
|
});
|
|
3257
3255
|
|
|
3258
|
-
//# debugId=
|
|
3256
|
+
//# debugId=4F71089DFFB6986164756E2164756E21
|