@theronap/cortex-mcp 0.9.71 → 0.9.72

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/lib/server.mjs +8 -1
  2. package/package.json +1 -1
package/lib/server.mjs CHANGED
@@ -1507,10 +1507,17 @@ export async function runServer(version) {
1507
1507
  return toolError(`Could not replace variant: ${d.message}`)
1508
1508
  }
1509
1509
  if (!out) return { content: [{ type: 'text', text: 'Replace reported success, but the server returned no body — re-read the page before assuming it landed.' }] }
1510
+ // The summary rides along with the body, EXCEPT when the source has none — then the target's is
1511
+ // kept rather than erased. Say so on its own line rather than at the tail of `note`: this is the
1512
+ // 2026-08-04 W3 shape, where an empty summary copied over a populated one destroyed 31 of them
1513
+ // under a report that read as success. A rescue the operator does not see is still a silent write.
1514
+ const rescued = out.summaryRescued
1515
+ ? `\n\n⚠ The ${out.moved.from} variant had NO summary. The ${out.moved.to} page's own summary was KEPT rather than overwritten with an empty one — check it still describes the body that just landed, and set_summary if not.`
1516
+ : ''
1510
1517
  return {
1511
1518
  content: [{
1512
1519
  type: 'text',
1513
- text: `Done — "${out.moved.title}": the ${out.moved.from} body now occupies the ${out.moved.to} page (${out.sections} section${out.sections === 1 ? '' : 's'}), and the ${out.moved.from} variant was removed. The node now has ONE variant. ${out.note}`,
1520
+ text: `Done — "${out.moved.title}": the ${out.moved.from} body now occupies the ${out.moved.to} page (${out.sections} section${out.sections === 1 ? '' : 's'}), and the ${out.moved.from} variant was removed. The node now has ONE variant. Both prior bodies are retained in page history.${rescued}`,
1514
1521
  }],
1515
1522
  }
1516
1523
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theronap/cortex-mcp",
3
- "version": "0.9.71",
3
+ "version": "0.9.72",
4
4
  "description": "Connect your AI assistant to Cortex — your org's projects, activity, gaps, and directives, scoped to you.",
5
5
  "type": "module",
6
6
  "bin": {