@productbrain/mcp 0.0.1-beta.20 → 0.0.1-beta.22

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.
@@ -13,7 +13,7 @@ import {
13
13
  requireWriteAccess,
14
14
  setSessionOriented,
15
15
  startAgentSession
16
- } from "./chunk-AVSAR3AS.js";
16
+ } from "./chunk-CXYNWTRQ.js";
17
17
 
18
18
  // src/server.ts
19
19
  import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -185,11 +185,13 @@ ${formatted}` }]
185
185
  });
186
186
  await recordSessionActivity({ entryModified: id });
187
187
  const wsCtx = await getWorkspaceContext();
188
- const mode = autoPublish ? "published" : "saved as draft";
188
+ const updated = await mcpQuery("chain.getEntry", { entryId });
189
+ const entryStatus = updated?.status ?? "draft";
190
+ const versionMode = entryStatus === "active" ? "published" : `saved as ${entryStatus}`;
189
191
  return {
190
192
  content: [{ type: "text", text: `# Entry Updated
191
193
 
192
- **${entryId}** has been ${mode}.
194
+ **${entryId}** \u2014 ${versionMode}.
193
195
 
194
196
  Internal ID: ${id}
195
197
  **Workspace:** ${wsCtx.workspaceSlug} (${wsCtx.workspaceId})` }]
@@ -856,7 +858,7 @@ Use \`list-collections\` to verify the result.`
856
858
  },
857
859
  async ({ entryId }) => {
858
860
  requireWriteAccess();
859
- const { runContradictionCheck } = await import("./smart-capture-BR2OO2XS.js");
861
+ const { runContradictionCheck } = await import("./smart-capture-2N7E4OAJ.js");
860
862
  const entry = await mcpQuery("chain.getEntry", { entryId });
861
863
  if (!entry) {
862
864
  return {
@@ -1367,6 +1369,14 @@ function registerHealthTools(server) {
1367
1369
  } else if (readiness) {
1368
1370
  lines.push(`Readiness: ${readiness.score}% (${readiness.passedChecks}/${readiness.totalChecks}).`);
1369
1371
  lines.push("");
1372
+ if (orientEntries?.strategicContext) {
1373
+ const sc = orientEntries.strategicContext;
1374
+ lines.push("## Strategic Context");
1375
+ if (sc.vision) lines.push(`**Vision:** ${sc.vision}`);
1376
+ const betLine = sc.currentBet ? `**Current bet:** ${sc.currentBet}. ${sc.activeBetCount} active bet(s).` : "No active bets.";
1377
+ lines.push(`${betLine} ${sc.activeTensionCount} open tension(s).`);
1378
+ lines.push("");
1379
+ }
1370
1380
  if (orientEntries) {
1371
1381
  const fmt = (e) => {
1372
1382
  const type = e.canonicalKey ?? "generic";
@@ -4543,4 +4553,4 @@ export {
4543
4553
  SERVER_VERSION,
4544
4554
  createProductBrainServer
4545
4555
  };
4546
- //# sourceMappingURL=chunk-I466BKBU.js.map
4556
+ //# sourceMappingURL=chunk-4JFYHA5Q.js.map