@cerefox/memory 1.3.0-beta.3 → 1.3.0-beta.4

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.
@@ -7438,7 +7438,7 @@ var exports_meta = {};
7438
7438
  __export(exports_meta, {
7439
7439
  PKG_VERSION: () => PKG_VERSION
7440
7440
  });
7441
- var PKG_VERSION = "1.3.0-beta.3";
7441
+ var PKG_VERSION = "1.3.0-beta.4";
7442
7442
  var init_meta = () => {};
7443
7443
 
7444
7444
  // ../../_shared/config/paths.ts
@@ -70216,10 +70216,8 @@ function buildServer() {
70216
70216
  const text = await tool.handler(supabase, args, ctx);
70217
70217
  return { content: [{ type: "text", text }] };
70218
70218
  } catch (err) {
70219
- if (err instanceof McpInvalidParams)
70220
- throw err;
70221
70219
  const message = err instanceof Error ? err.message : String(err);
70222
- throw new Error(message);
70220
+ return { content: [{ type: "text", text: message }], isError: true };
70223
70221
  }
70224
70222
  });
70225
70223
  return {
@@ -76321,8 +76319,8 @@ import { homedir as homedir6 } from "node:os";
76321
76319
  import { join as join9 } from "node:path";
76322
76320
 
76323
76321
  // ../../_shared/ef-meta/index.ts
76324
- var EF_VERSION = "1.3.0-beta.3";
76325
- var EF_LAST_CHANGED = "1.3.0-beta.3";
76322
+ var EF_VERSION = "1.3.0-beta.4";
76323
+ var EF_LAST_CHANGED = "1.3.0-beta.4";
76326
76324
 
76327
76325
  // src/cli/util/checks.ts
76328
76326
  init_config();
@@ -18,7 +18,7 @@
18
18
  * doesn't touch `supabase/functions/` leaves it alone).
19
19
  */
20
20
 
21
- export const EF_VERSION = "1.3.0-beta.3";
21
+ export const EF_VERSION = "1.3.0-beta.4";
22
22
 
23
23
  /**
24
24
  * The most recent version whose EF-side SOURCE actually changed (#127).
@@ -28,7 +28,7 @@ export const EF_VERSION = "1.3.0-beta.3";
28
28
  * `cut_release.ts` ONLY when EF source changed since the last tag; doctor
29
29
  * uses it to stay silent on label-only drift.
30
30
  */
31
- export const EF_LAST_CHANGED = "1.3.0-beta.3";
31
+ export const EF_LAST_CHANGED = "1.3.0-beta.4";
32
32
 
33
33
  /**
34
34
  * The 8 peer EFs the cerefox-mcp aggregator probes (excludes cerefox-mcp
@@ -176,9 +176,18 @@ async function handleToolsCall(
176
176
  result: { content: [{ type: "text", text }] },
177
177
  });
178
178
  } catch (err) {
179
+ // Tool failures are RESULTS, not protocol errors — same rule as the local
180
+ // stdio server (packages/memory/src/server.ts), and for the same reason:
181
+ // a client may render a JSON-RPC error however it likes, and at least one
182
+ // major one replaces the body with a generic failure dialog. The message is
183
+ // the actionable part; it has to travel where the model can read it.
184
+ // Protocol errors above this point (unknown tool, bad JSON) are unchanged.
179
185
  const message = err instanceof Error ? err.message : String(err);
180
- const code = err instanceof McpInvalidParams ? -32602 : -32603;
181
- return errorResponse(id, code, message);
186
+ return jsonResponse({
187
+ jsonrpc: "2.0",
188
+ id,
189
+ result: { content: [{ type: "text", text: message }], isError: true },
190
+ });
182
191
  }
183
192
  }
184
193
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerefox/memory",
3
- "version": "1.3.0-beta.3",
3
+ "version": "1.3.0-beta.4",
4
4
  "description": "Cerefox — user-owned shared memory for AI agents. CLI + stdio MCP server + web UI + ingestion for a knowledge base on your own Supabase project (or fully self-hosted with Cerefox Local).",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/fstamatelopoulos/cerefox",