@productbrain/mcp 0.0.1-beta.17 → 0.0.1-beta.18

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.
@@ -321,7 +321,7 @@ ${formatted}` }]
321
321
  fromEntryId: from,
322
322
  toEntryId: to,
323
323
  type,
324
- metadata: score != null ? { suggestionScore: score } : void 0
324
+ suggestionScore: score ?? void 0
325
325
  });
326
326
  await recordSessionActivity({ relationCreated: result?.status !== "proposal_created" });
327
327
  const wsCtx = await getWorkspaceContext();
@@ -1473,14 +1473,16 @@ function registerHealthTools(server) {
1473
1473
  lines.push("---");
1474
1474
  lines.push("_Warning: Could not mark session as oriented. Write tools may be restricted._");
1475
1475
  }
1476
- await mcpMutation("chain.recordSessionSignal", {
1477
- sessionId: agentSessionId,
1478
- signalType: "immediate_context_load",
1479
- metadata: { source: "orient" }
1480
- }).catch((err) => {
1476
+ try {
1477
+ await mcpMutation("chain.recordSessionSignal", {
1478
+ sessionId: agentSessionId,
1479
+ signalType: "immediate_context_load",
1480
+ metadata: { source: "orient" }
1481
+ });
1482
+ } catch (err) {
1481
1483
  process.stderr.write(`[MCP] recordSessionSignal failed: ${err.message}
1482
1484
  `);
1483
- });
1485
+ }
1484
1486
  } else {
1485
1487
  lines.push("---");
1486
1488
  lines.push("_No active agent session. Call `agent-start` to begin a tracked session._");
@@ -4553,4 +4555,4 @@ export {
4553
4555
  SERVER_VERSION,
4554
4556
  createProductBrainServer
4555
4557
  };
4556
- //# sourceMappingURL=chunk-REFAR36Z.js.map
4558
+ //# sourceMappingURL=chunk-TUNNDDD7.js.map