nox-mem 3.1.0 → 3.1.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/index.js +2 -1
- package/dist/mcp-server.js +2 -1
- package/dist/version.d.ts +1 -0
- package/dist/version.js +22 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -17,8 +17,9 @@ import { getTierStats, evaluateTiers } from "./tier-manager.js";
|
|
|
17
17
|
import { getNoiseStats, isNoise } from "./noise-filter.js";
|
|
18
18
|
import { distillSessions } from "./session-distill.js";
|
|
19
19
|
import { startWatch } from "./watch.js";
|
|
20
|
+
import { VERSION } from "./version.js";
|
|
20
21
|
const program = new Command();
|
|
21
|
-
program.name("nox-mem").description("Nox Supermem — search, consolidate, recover").version(
|
|
22
|
+
program.name("nox-mem").description("Nox Supermem — search, consolidate, recover").version(VERSION);
|
|
22
23
|
program
|
|
23
24
|
.command("search <query>")
|
|
24
25
|
.description("Search memory (FTS5 + boost + recency)")
|
package/dist/mcp-server.js
CHANGED
|
@@ -13,9 +13,10 @@ import { selfImprove } from "./self-improve.js";
|
|
|
13
13
|
import { getStats } from "./stats.js";
|
|
14
14
|
import { primer } from "./primer.js";
|
|
15
15
|
import { createInterface } from "readline";
|
|
16
|
+
import { VERSION } from "./version.js";
|
|
16
17
|
const SERVER_INFO = {
|
|
17
18
|
name: "nox-mem",
|
|
18
|
-
version:
|
|
19
|
+
version: VERSION,
|
|
19
20
|
};
|
|
20
21
|
const TOOLS = [
|
|
21
22
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VERSION: string;
|
package/dist/version.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single source of truth for the package version.
|
|
3
|
+
*
|
|
4
|
+
* Read from package.json at runtime so the CLI banner (`nox-mem --version`) and
|
|
5
|
+
* the MCP server handshake never drift from the actually-published version — the
|
|
6
|
+
* cause of the old hardcoded "2.3.0" / "3.0.0" mismatches. Bumping package.json
|
|
7
|
+
* is now the only place a version lives.
|
|
8
|
+
*/
|
|
9
|
+
import { readFileSync } from "fs";
|
|
10
|
+
import { fileURLToPath } from "url";
|
|
11
|
+
import { dirname, join } from "path";
|
|
12
|
+
export const VERSION = (() => {
|
|
13
|
+
try {
|
|
14
|
+
// Compiled file lives at dist/version.js → package.json is one level up.
|
|
15
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
16
|
+
const pkg = JSON.parse(readFileSync(join(here, "..", "package.json"), "utf8"));
|
|
17
|
+
return pkg.version ?? "0.0.0";
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
return "0.0.0";
|
|
21
|
+
}
|
|
22
|
+
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nox-mem",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Pain-weighted hybrid memory engine: FTS5 + semantic search + knowledge graph, self-hosted on any Linux VPS.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@google-cloud/documentai": "^9.6.1",
|
|
57
|
-
"@xenova/transformers": "^2.
|
|
57
|
+
"@xenova/transformers": "^2.17.2",
|
|
58
58
|
"better-sqlite3": "^11.0.0",
|
|
59
59
|
"commander": "^12.0.0",
|
|
60
60
|
"sqlite-vec": "^0.1.10-alpha.1"
|