@neruva/mcp 0.30.0 → 0.30.1

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.
@@ -75,7 +75,19 @@ function buildHooks(cmd) {
75
75
 
76
76
  function readSettings() {
77
77
  if (!existsSync(SETTINGS)) return {};
78
- try { return JSON.parse(readFileSync(SETTINGS, 'utf8')); } catch { return {}; }
78
+ let raw;
79
+ try { raw = readFileSync(SETTINGS, 'utf8'); }
80
+ catch (e) { console.error(`[neruva] cannot read ${SETTINGS}: ${e.message}`); process.exit(1); }
81
+ if (!raw.trim()) return {};
82
+ try { return JSON.parse(raw); }
83
+ catch (e) {
84
+ // CRITICAL: never overwrite a settings file we can't parse -- that would
85
+ // destroy the user's mcpServers / hooks / env on a stray comma. Abort.
86
+ console.error(
87
+ `[neruva] ${SETTINGS} is not valid JSON (${e.message}).\n` +
88
+ ` Refusing to overwrite it. Fix or remove the file, then re-run.`);
89
+ process.exit(1);
90
+ }
79
91
  }
80
92
 
81
93
  function stripOurs(hooks) {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neruva/mcp",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "description": "MCP server for Neruva -- reliability infrastructure for production AI agents. One install, agent stops forgetting / drifting / repeating mistakes, every failure replayable bit-for-bit. v0.27 ships the qbound KG engine -- pick engine='qbound' on hd_kg_add_facts when document-stated facts must override LLM training-time priors. Now 6 KG engines (hadamard, opb, qbound, multishard, quorum, feature_bundle). v0.26 ships agent_recall_full -- 7-layer federated semantic recall across records, KG, learned rules, CBR episodes, SCM variables, belief tracking, and continual learners in parallel (one question, seven buckets, ~150ms p95). INSTALL: npx -y -p @neruva/mcp@latest neruva-mcp. BUNDLES the neruva-record-hook native binary (Rust, in-binary HTTPS hot path, ~1.5-2MB) for all 6 platforms. v0.30 adds ONE-COMMAND full-takeover install (npx -p @neruva/mcp neruva-mcp-install) -- wires the complete memory+reasoning auto-pilot (per-turn recall, auto-route, auto-reflect, code-graph, consistency, secret redaction, recording) with ZERO Python or daemon. Cache-hit p95 ~80ms via warm daemon + TTL cache. AUTO-PILOT: agent_route_intent_prompt + agent_reflect_prompt + auto-extract on records_ingest. Plus typed Records, federated agent_remember/recall/context, counterfactual rollouts, rule induction, code_kg_* navigation, .neruva V3 container. Pattern-C: substrate stays $0/call. Free tier, no card.",
5
5
  "license": "MIT",
6
6
  "type": "module",