claudemesh-cli 0.5.6 → 0.5.7

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 +17 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -47231,7 +47231,10 @@ class BrokerClient {
47231
47231
  signal: AbortSignal.timeout(30000)
47232
47232
  });
47233
47233
  const body = await res.json();
47234
- return body.fileId ?? null;
47234
+ if (!res.ok || !body.fileId) {
47235
+ throw new Error(body.error ?? `HTTP ${res.status}`);
47236
+ }
47237
+ return body.fileId;
47235
47238
  }
47236
47239
  async vectorStore(collection, text, metadata) {
47237
47240
  if (!this.ws || this.ws.readyState !== this.ws.OPEN)
@@ -48251,14 +48254,16 @@ ${lines.join(`
48251
48254
  const client = allClients()[0];
48252
48255
  if (!client)
48253
48256
  return text("share_file: not connected", true);
48254
- const fileId = await client.uploadFile(filePath, client.meshId, client.meshSlug, {
48255
- name: fileName,
48256
- tags,
48257
- persistent: true
48258
- });
48259
- if (!fileId)
48260
- return text("share_file: upload failed", true);
48261
- return text(`Shared: ${fileName ?? filePath} (${fileId})`);
48257
+ try {
48258
+ const fileId = await client.uploadFile(filePath, client.meshId, client.meshSlug, {
48259
+ name: fileName,
48260
+ tags,
48261
+ persistent: true
48262
+ });
48263
+ return text(`Shared: ${fileName ?? filePath} (${fileId})`);
48264
+ } catch (e) {
48265
+ return text(`share_file: upload failed — ${e instanceof Error ? e.message : String(e)}`, true);
48266
+ }
48262
48267
  }
48263
48268
  case "get_file": {
48264
48269
  const { id, save_to } = args ?? {};
@@ -48693,7 +48698,9 @@ ${rows.join(`
48693
48698
  } catch {}
48694
48699
  });
48695
48700
  }
48701
+ const keepalive = setInterval(() => {}, 1000);
48696
48702
  const shutdown = () => {
48703
+ clearInterval(keepalive);
48697
48704
  stopAll();
48698
48705
  process.exit(0);
48699
48706
  };
@@ -49606,7 +49613,7 @@ init_config();
49606
49613
  // package.json
49607
49614
  var package_default = {
49608
49615
  name: "claudemesh-cli",
49609
- version: "0.5.6",
49616
+ version: "0.5.7",
49610
49617
  description: "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
49611
49618
  keywords: [
49612
49619
  "claude-code",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudemesh-cli",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
5
5
  "keywords": [
6
6
  "claude-code",