@theronap/cortex-mcp 0.9.120 → 0.9.121

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 +6 -1
  2. package/package.json +1 -1
package/lib/server.mjs CHANGED
@@ -1449,7 +1449,12 @@ export async function runServer(version) {
1449
1449
  // behaviour, and a nudge that claimed certainty it did not have is how an agent learns to stop
1450
1450
  // reading them.
1451
1451
  const nudgeBlock = (() => {
1452
- const n = Array.isArray(out?.nudge) ? out.nudge : []
1452
+ // `page`, NOT `out`. Shipped as `out` in 0.9.120 and broke read_page outright with
1453
+ // "out is not defined" — every call, for everyone on that build. `node --check` passes it
1454
+ // because an undefined free variable is a RUNTIME error, not a syntax one, and the tool was
1455
+ // never invoked before publishing. Same mistake as the split_page uuid break on 2026-08-28:
1456
+ // typecheck plus pure tests, no call of the actual path.
1457
+ const n = Array.isArray(page?.nudge) ? page.nudge : []
1453
1458
  if (!n.length) return ''
1454
1459
  const lines = n.map((x) => {
1455
1460
  const why = x.via?.length ? ` — you have this open via ${x.via.map((v) => `"${v}"`).join(', ')}` : ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theronap/cortex-mcp",
3
- "version": "0.9.120",
3
+ "version": "0.9.121",
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": {