claudemesh-cli 1.34.0 → 1.34.1
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
CHANGED
|
@@ -104,7 +104,7 @@ __export(exports_urls, {
|
|
|
104
104
|
VERSION: () => VERSION,
|
|
105
105
|
URLS: () => URLS
|
|
106
106
|
});
|
|
107
|
-
var URLS, VERSION = "1.34.
|
|
107
|
+
var URLS, VERSION = "1.34.1", env;
|
|
108
108
|
var init_urls = __esm(() => {
|
|
109
109
|
URLS = {
|
|
110
110
|
BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
|
|
@@ -18147,8 +18147,9 @@ import {
|
|
|
18147
18147
|
ListResourcesRequestSchema,
|
|
18148
18148
|
ReadResourceRequestSchema
|
|
18149
18149
|
} from "@modelcontextprotocol/sdk/types.js";
|
|
18150
|
-
import { existsSync as existsSync28 } from "node:fs";
|
|
18150
|
+
import { existsSync as existsSync28, appendFileSync as appendFileSync2 } from "node:fs";
|
|
18151
18151
|
import { request as httpRequest2 } from "node:http";
|
|
18152
|
+
import { join as join16 } from "node:path";
|
|
18152
18153
|
async function daemonReady() {
|
|
18153
18154
|
for (let i = 0;i < DAEMON_BOOT_RETRIES; i++) {
|
|
18154
18155
|
if (existsSync28(DAEMON_PATHS.SOCK_FILE))
|
|
@@ -18270,7 +18271,14 @@ async function startMcpServer() {
|
|
|
18270
18271
|
const ok = await daemonReady();
|
|
18271
18272
|
if (!ok)
|
|
18272
18273
|
bailNoDaemon();
|
|
18273
|
-
const server = new Server({ name: "claudemesh", version: VERSION }, {
|
|
18274
|
+
const server = new Server({ name: "claudemesh", version: VERSION }, {
|
|
18275
|
+
capabilities: {
|
|
18276
|
+
tools: {},
|
|
18277
|
+
prompts: {},
|
|
18278
|
+
resources: {},
|
|
18279
|
+
experimental: { "claude/channel": {} }
|
|
18280
|
+
}
|
|
18281
|
+
});
|
|
18274
18282
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [] }));
|
|
18275
18283
|
server.setRequestHandler(ListPromptsRequestSchema, async () => {
|
|
18276
18284
|
try {
|
|
@@ -18386,7 +18394,17 @@ ${mf.allowed_tools.map((t) => ` - ${t}`).join(`
|
|
|
18386
18394
|
return { contents: [{ uri, mimeType: "text/markdown", text: fm.join(`
|
|
18387
18395
|
`) + skill.instructions }] };
|
|
18388
18396
|
});
|
|
18397
|
+
const mcpLogPath = join16(DAEMON_PATHS.DAEMON_DIR, `mcp-${process.pid}.log`);
|
|
18398
|
+
const mcpLog = (msg, meta) => {
|
|
18399
|
+
const line = JSON.stringify({ ts: new Date().toISOString(), pid: process.pid, msg, ...meta }) + `
|
|
18400
|
+
`;
|
|
18401
|
+
try {
|
|
18402
|
+
appendFileSync2(mcpLogPath, line);
|
|
18403
|
+
} catch {}
|
|
18404
|
+
};
|
|
18405
|
+
mcpLog("mcp_started", { version: VERSION });
|
|
18389
18406
|
const sub = subscribeEvents(async (ev) => {
|
|
18407
|
+
mcpLog("sse_event_received", { kind: ev.kind });
|
|
18390
18408
|
if (ev.kind === "message") {
|
|
18391
18409
|
const d = ev.data;
|
|
18392
18410
|
const fromName = String(d.sender_name ?? "unknown");
|
|
@@ -18416,7 +18434,9 @@ ${mf.allowed_tools.map((t) => ` - ${t}`).join(`
|
|
|
18416
18434
|
}
|
|
18417
18435
|
}
|
|
18418
18436
|
});
|
|
18437
|
+
mcpLog("channel_emitted", { content_preview: content.slice(0, 80), mesh: String(d.mesh ?? "") });
|
|
18419
18438
|
} catch (err) {
|
|
18439
|
+
mcpLog("channel_emit_failed", { err: String(err) });
|
|
18420
18440
|
process.stderr.write(`[claudemesh-mcp] channel emit failed: ${err}
|
|
18421
18441
|
`);
|
|
18422
18442
|
}
|
|
@@ -20493,4 +20513,4 @@ main().catch((err) => {
|
|
|
20493
20513
|
process.exit(EXIT.INTERNAL_ERROR);
|
|
20494
20514
|
});
|
|
20495
20515
|
|
|
20496
|
-
//# debugId=
|
|
20516
|
+
//# debugId=CC0DC435F105164564756E2164756E21
|