@engramlabs/mcp 0.1.6-alpha → 0.1.8-alpha

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/bin.js +8 -2
  2. package/package.json +6 -6
package/bin.js CHANGED
@@ -82,8 +82,14 @@ function resolveBinary() {
82
82
  fail(`platform package ${pkg} is present but the binary is missing: ${binPath}`);
83
83
  }
84
84
  // Version lockstep: the platform package must match the launcher version.
85
- const binVersion = require(manifest).version;
86
- if (binVersion !== LAUNCHER_VERSION) {
85
+ // Both sides are normalized (leading `v` stripped) — releases before
86
+ // 0.1.8 stamped platform packages with the git tag's `v` prefix
87
+ // ("v0.1.7-alpha"), which npm tolerates on install but a literal string
88
+ // compare rejects. Normalizing keeps those already-installed packages
89
+ // working instead of forcing a reinstall.
90
+ const norm = (v) => String(v).replace(/^v/, "");
91
+ const binVersion = norm(require(manifest).version);
92
+ if (binVersion !== norm(LAUNCHER_VERSION)) {
87
93
  fail(
88
94
  `version mismatch: launcher ${LAUNCHER_VERSION} != platform package ${binVersion}.\n` +
89
95
  `Mixed versions are unsupported. Fix: npm install @engramlabs/mcp@${LAUNCHER_VERSION}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engramlabs/mcp",
3
- "version": "0.1.6-alpha",
3
+ "version": "0.1.8-alpha",
4
4
  "description": "Local-first agentic memory: the engram MCP server launcher. Memory + knowledge graph + beliefs + code intelligence for any MCP client.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,11 +32,11 @@
32
32
  "local-first"
33
33
  ],
34
34
  "optionalDependencies": {
35
- "@engramlabs/mcp-linux-x64-gnu": "0.1.6-alpha",
36
- "@engramlabs/mcp-linux-arm64-gnu": "0.1.6-alpha",
37
- "@engramlabs/mcp-darwin-arm64": "0.1.6-alpha",
38
- "@engramlabs/mcp-darwin-x64": "0.1.6-alpha",
39
- "@engramlabs/mcp-win32-x64": "0.1.6-alpha"
35
+ "@engramlabs/mcp-linux-x64-gnu": "0.1.8-alpha",
36
+ "@engramlabs/mcp-linux-arm64-gnu": "0.1.8-alpha",
37
+ "@engramlabs/mcp-darwin-arm64": "0.1.8-alpha",
38
+ "@engramlabs/mcp-darwin-x64": "0.1.8-alpha",
39
+ "@engramlabs/mcp-win32-x64": "0.1.8-alpha"
40
40
  },
41
41
  "scripts": {
42
42
  "test": "node --test test/*.test.cjs"