mnemosyne-core 2.1.5 → 2.1.8
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/cli/index.js +16 -11
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +16 -11
- package/dist/cli/index.mjs.map +1 -1
- package/dist/dashboard/assets/banner.png +0 -0
- package/dist/dashboard/assets/favicon.png +0 -0
- package/dist/dashboard/assets/full-horizontal-logo.png +0 -0
- package/dist/dashboard/assets/logo.png +0 -0
- package/dist/dashboard/index.html +5 -5
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -7
- package/dist/index.mjs.map +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/index.mjs +1 -1
- package/dist/mcp/index.mjs.map +1 -1
- package/dist/server/api.js +3 -3
- package/dist/server/api.js.map +1 -1
- package/dist/server/api.mjs +3 -3
- package/dist/server/api.mjs.map +1 -1
- package/dist/server/index.js +11 -6
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +11 -6
- package/dist/server/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -3635,7 +3635,7 @@ function getVersion() {
|
|
|
3635
3635
|
const pkg = JSON.parse(readFileSync8(resolve14(process.cwd(), "package.json"), "utf-8"));
|
|
3636
3636
|
return pkg.version;
|
|
3637
3637
|
} catch {
|
|
3638
|
-
return "2.1.
|
|
3638
|
+
return "2.1.8";
|
|
3639
3639
|
}
|
|
3640
3640
|
}
|
|
3641
3641
|
}
|
|
@@ -7599,7 +7599,7 @@ var require_package = __commonJS({
|
|
|
7599
7599
|
"package.json"(exports2, module2) {
|
|
7600
7600
|
module2.exports = {
|
|
7601
7601
|
name: "mnemosyne-core",
|
|
7602
|
-
version: "2.1.
|
|
7602
|
+
version: "2.1.8",
|
|
7603
7603
|
description: "Unified memory engine for AI agents \u2014 graph atoms, semantic search, and collaborative memory",
|
|
7604
7604
|
logo: "logo.png",
|
|
7605
7605
|
author: "Arman Aslanyan <aslanyanarman88@gmail.com> (https://www.linkedin.com/in/arman-aslanyan/)",
|
|
@@ -7644,7 +7644,7 @@ var require_package = __commonJS({
|
|
|
7644
7644
|
scripts: {
|
|
7645
7645
|
start: "node dist/cli/index.js",
|
|
7646
7646
|
dev: "tsx watch src/cli/index.ts",
|
|
7647
|
-
build: `tsup --config tsup.config.ts && node -e "require('fs').mkdirSync('dist/dashboard',{recursive:true});
|
|
7647
|
+
build: `tsup --config tsup.config.ts && node -e "const fs=require('fs'),path=require('path');fs.mkdirSync('dist/dashboard',{recursive:true});fs.copyFileSync('src/dashboard/index.html','dist/dashboard/index.html');fs.mkdirSync('dist/dashboard/assets',{recursive:true});for(const f of fs.readdirSync('src/dashboard/assets')){fs.copyFileSync(path.join('src/dashboard/assets',f),path.join('dist/dashboard/assets',f));}"`,
|
|
7648
7648
|
typecheck: "tsc --noEmit"
|
|
7649
7649
|
},
|
|
7650
7650
|
devDependencies: {
|
|
@@ -8144,8 +8144,9 @@ var Store = class extends EventEmitter {
|
|
|
8144
8144
|
vals.push(this.now());
|
|
8145
8145
|
sets.push("version = version + 1");
|
|
8146
8146
|
vals.push(id);
|
|
8147
|
+
const sql = `UPDATE atoms SET ${sets.join(", ")} WHERE id = ?`;
|
|
8147
8148
|
try {
|
|
8148
|
-
this.stmt(
|
|
8149
|
+
this.stmt(sql).run(...vals);
|
|
8149
8150
|
} catch (err) {
|
|
8150
8151
|
if (err.message?.includes("malformed") || err.message?.includes("corrupt")) {
|
|
8151
8152
|
throw new Error(`Database appears corrupted. Run "mnemosyne doctor --data-dir ./data" or delete the data directory and run "mnemosyne init" again.`);
|
|
@@ -8936,7 +8937,7 @@ function getVersion2() {
|
|
|
8936
8937
|
const pkg = JSON.parse(readFileSync8(resolve14(process.cwd(), "package.json"), "utf-8"));
|
|
8937
8938
|
return pkg.version;
|
|
8938
8939
|
} catch {
|
|
8939
|
-
return "2.1.
|
|
8940
|
+
return "2.1.8";
|
|
8940
8941
|
}
|
|
8941
8942
|
}
|
|
8942
8943
|
}
|
|
@@ -9175,7 +9176,7 @@ CREATE TRIGGER IF NOT EXISTS trig_search_atoms_insert AFTER INSERT ON atoms BEGI
|
|
|
9175
9176
|
END;
|
|
9176
9177
|
|
|
9177
9178
|
CREATE TRIGGER IF NOT EXISTS trig_search_atoms_update AFTER UPDATE ON atoms BEGIN
|
|
9178
|
-
|
|
9179
|
+
INSERT OR REPLACE INTO search_atoms(rowid, title, summary) VALUES (new.rowid, new.title, COALESCE(new.summary, ''));
|
|
9179
9180
|
END;
|
|
9180
9181
|
|
|
9181
9182
|
CREATE TRIGGER IF NOT EXISTS trig_search_atoms_delete AFTER DELETE ON atoms BEGIN
|
|
@@ -9538,7 +9539,7 @@ function getVersion3() {
|
|
|
9538
9539
|
const pkg = JSON.parse(readFileSync8(resolve14(process.cwd(), "package.json"), "utf-8"));
|
|
9539
9540
|
return pkg.version;
|
|
9540
9541
|
} catch {
|
|
9541
|
-
return "2.1.
|
|
9542
|
+
return "2.1.8";
|
|
9542
9543
|
}
|
|
9543
9544
|
}
|
|
9544
9545
|
}
|
|
@@ -10673,7 +10674,7 @@ var PKG_VERSION = (() => {
|
|
|
10673
10674
|
const pkg = JSON.parse(require("fs").readFileSync(require("path").resolve(__dirname, "../../package.json"), "utf-8"));
|
|
10674
10675
|
return pkg.version;
|
|
10675
10676
|
} catch {
|
|
10676
|
-
return "2.1.
|
|
10677
|
+
return "2.1.8";
|
|
10677
10678
|
}
|
|
10678
10679
|
})();
|
|
10679
10680
|
function handleHealth(store, pathname, method, res) {
|
|
@@ -10919,6 +10920,10 @@ function getDb() {
|
|
|
10919
10920
|
db.pragma("journal_mode = WAL");
|
|
10920
10921
|
db.pragma("foreign_keys = ON");
|
|
10921
10922
|
db.pragma("synchronous = NORMAL");
|
|
10923
|
+
try {
|
|
10924
|
+
db.pragma("wal_checkpoint(TRUNCATE)");
|
|
10925
|
+
} catch {
|
|
10926
|
+
}
|
|
10922
10927
|
try {
|
|
10923
10928
|
const { getLoadablePath } = require("sqlite-vec");
|
|
10924
10929
|
db.loadExtension(getLoadablePath());
|
|
@@ -10997,7 +11002,7 @@ var MnemosyneServer = class {
|
|
|
10997
11002
|
const wss = new import_websocket_server.default({ server: this.httpServer });
|
|
10998
11003
|
this.wsHandler = new WebSocketHandler(wss, this.store);
|
|
10999
11004
|
}
|
|
11000
|
-
const version = cfg?.server?.version || "2.1.
|
|
11005
|
+
const version = cfg?.server?.version || "2.1.8";
|
|
11001
11006
|
this.httpServer.listen(port, () => {
|
|
11002
11007
|
console.log(`Mnemosyne v${version} \u2014 port ${port}`);
|
|
11003
11008
|
console.log(`Dashboard: http://${host}:${port}/dashboard`);
|
|
@@ -11055,7 +11060,7 @@ function getVersion4() {
|
|
|
11055
11060
|
const { resolve: resolve14 } = require("path");
|
|
11056
11061
|
return JSON.parse(readFileSync8(resolve14(__dirname, "../../package.json"), "utf-8")).version;
|
|
11057
11062
|
} catch {
|
|
11058
|
-
return "2.1.
|
|
11063
|
+
return "2.1.8";
|
|
11059
11064
|
}
|
|
11060
11065
|
}
|
|
11061
11066
|
async function startCommand(options) {
|
|
@@ -11347,7 +11352,7 @@ program2.name("mnemosyne").description("Mnemosyne \u2014 Your exocortex").versio
|
|
|
11347
11352
|
try {
|
|
11348
11353
|
return require_package().version;
|
|
11349
11354
|
} catch {
|
|
11350
|
-
return "2.1.
|
|
11355
|
+
return "2.1.8";
|
|
11351
11356
|
}
|
|
11352
11357
|
})());
|
|
11353
11358
|
program2.command("init").description("Initialize a new Mnemosyne workspace").option("-d, --data-dir <path>", "Data directory", "./data").option("-c, --config <path>", "Config file path").action(initCommand);
|