lemma-mcp 0.14.0 → 0.14.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.
- package/dist/version.d.ts +0 -5
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +13 -3
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
package/dist/version.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single source of truth for the version Lemma reports (MCP serverInfo, etc.).
|
|
3
|
-
* Read from package.json at module load so the published version and the
|
|
4
|
-
* reported version can never drift via a stale hardcoded literal.
|
|
5
|
-
*/
|
|
6
1
|
export declare const VERSION: string;
|
|
7
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,OAAO,EAAE,MAAoB,CAAC"}
|
package/dist/version.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import fs from "fs";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
2
4
|
/**
|
|
3
5
|
* Single source of truth for the version Lemma reports (MCP serverInfo, etc.).
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
+
*
|
|
7
|
+
* Read from package.json at module load via fs (NOT a JSON import) so:
|
|
8
|
+
* - the reported version can never drift via a stale hardcoded literal, and
|
|
9
|
+
* - it works on every supported Node version. A bare `import pkg from
|
|
10
|
+
* "../package.json"` compiles under tsc but crashes at runtime on Node 22+
|
|
11
|
+
* (ERR_IMPORT_ATTRIBUTE_MISSING — JSON imports require `with { type: "json" }`),
|
|
12
|
+
* which is invisible under tsx but breaks the published package.
|
|
6
13
|
*/
|
|
14
|
+
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
15
|
+
const pkgPath = path.resolve(here, "..", "package.json");
|
|
16
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
|
|
7
17
|
export const VERSION = pkg.version;
|
|
8
18
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC;;;;;;;;;GASG;AACH,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AACzD,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAwB,CAAC;AAEhF,MAAM,CAAC,MAAM,OAAO,GAAW,GAAG,CAAC,OAAO,CAAC"}
|