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.mjs
CHANGED
|
@@ -3641,7 +3641,7 @@ function getVersion() {
|
|
|
3641
3641
|
const pkg = JSON.parse(readFileSync8(resolve14(process.cwd(), "package.json"), "utf-8"));
|
|
3642
3642
|
return pkg.version;
|
|
3643
3643
|
} catch {
|
|
3644
|
-
return "2.1.
|
|
3644
|
+
return "2.1.8";
|
|
3645
3645
|
}
|
|
3646
3646
|
}
|
|
3647
3647
|
}
|
|
@@ -7602,7 +7602,7 @@ var require_package = __commonJS({
|
|
|
7602
7602
|
"package.json"(exports, module2) {
|
|
7603
7603
|
module2.exports = {
|
|
7604
7604
|
name: "mnemosyne-core",
|
|
7605
|
-
version: "2.1.
|
|
7605
|
+
version: "2.1.8",
|
|
7606
7606
|
description: "Unified memory engine for AI agents \u2014 graph atoms, semantic search, and collaborative memory",
|
|
7607
7607
|
logo: "logo.png",
|
|
7608
7608
|
author: "Arman Aslanyan <aslanyanarman88@gmail.com> (https://www.linkedin.com/in/arman-aslanyan/)",
|
|
@@ -7647,7 +7647,7 @@ var require_package = __commonJS({
|
|
|
7647
7647
|
scripts: {
|
|
7648
7648
|
start: "node dist/cli/index.js",
|
|
7649
7649
|
dev: "tsx watch src/cli/index.ts",
|
|
7650
|
-
build: `tsup --config tsup.config.ts && node -e "require('fs').mkdirSync('dist/dashboard',{recursive:true});
|
|
7650
|
+
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));}"`,
|
|
7651
7651
|
typecheck: "tsc --noEmit"
|
|
7652
7652
|
},
|
|
7653
7653
|
devDependencies: {
|
|
@@ -8140,8 +8140,9 @@ var Store = class extends EventEmitter {
|
|
|
8140
8140
|
vals.push(this.now());
|
|
8141
8141
|
sets.push("version = version + 1");
|
|
8142
8142
|
vals.push(id);
|
|
8143
|
+
const sql = `UPDATE atoms SET ${sets.join(", ")} WHERE id = ?`;
|
|
8143
8144
|
try {
|
|
8144
|
-
this.stmt(
|
|
8145
|
+
this.stmt(sql).run(...vals);
|
|
8145
8146
|
} catch (err) {
|
|
8146
8147
|
if (err.message?.includes("malformed") || err.message?.includes("corrupt")) {
|
|
8147
8148
|
throw new Error(`Database appears corrupted. Run "mnemosyne doctor --data-dir ./data" or delete the data directory and run "mnemosyne init" again.`);
|
|
@@ -8932,7 +8933,7 @@ function getVersion2() {
|
|
|
8932
8933
|
const pkg = JSON.parse(readFileSync8(resolve14(process.cwd(), "package.json"), "utf-8"));
|
|
8933
8934
|
return pkg.version;
|
|
8934
8935
|
} catch {
|
|
8935
|
-
return "2.1.
|
|
8936
|
+
return "2.1.8";
|
|
8936
8937
|
}
|
|
8937
8938
|
}
|
|
8938
8939
|
}
|
|
@@ -9171,7 +9172,7 @@ CREATE TRIGGER IF NOT EXISTS trig_search_atoms_insert AFTER INSERT ON atoms BEGI
|
|
|
9171
9172
|
END;
|
|
9172
9173
|
|
|
9173
9174
|
CREATE TRIGGER IF NOT EXISTS trig_search_atoms_update AFTER UPDATE ON atoms BEGIN
|
|
9174
|
-
|
|
9175
|
+
INSERT OR REPLACE INTO search_atoms(rowid, title, summary) VALUES (new.rowid, new.title, COALESCE(new.summary, ''));
|
|
9175
9176
|
END;
|
|
9176
9177
|
|
|
9177
9178
|
CREATE TRIGGER IF NOT EXISTS trig_search_atoms_delete AFTER DELETE ON atoms BEGIN
|
|
@@ -9534,7 +9535,7 @@ function getVersion3() {
|
|
|
9534
9535
|
const pkg = JSON.parse(readFileSync8(resolve14(process.cwd(), "package.json"), "utf-8"));
|
|
9535
9536
|
return pkg.version;
|
|
9536
9537
|
} catch {
|
|
9537
|
-
return "2.1.
|
|
9538
|
+
return "2.1.8";
|
|
9538
9539
|
}
|
|
9539
9540
|
}
|
|
9540
9541
|
}
|
|
@@ -10669,7 +10670,7 @@ var PKG_VERSION = (() => {
|
|
|
10669
10670
|
const pkg = JSON.parse(__require("fs").readFileSync(__require("path").resolve(__dirname, "../../package.json"), "utf-8"));
|
|
10670
10671
|
return pkg.version;
|
|
10671
10672
|
} catch {
|
|
10672
|
-
return "2.1.
|
|
10673
|
+
return "2.1.8";
|
|
10673
10674
|
}
|
|
10674
10675
|
})();
|
|
10675
10676
|
function handleHealth(store, pathname, method, res) {
|
|
@@ -10915,6 +10916,10 @@ function getDb() {
|
|
|
10915
10916
|
db.pragma("journal_mode = WAL");
|
|
10916
10917
|
db.pragma("foreign_keys = ON");
|
|
10917
10918
|
db.pragma("synchronous = NORMAL");
|
|
10919
|
+
try {
|
|
10920
|
+
db.pragma("wal_checkpoint(TRUNCATE)");
|
|
10921
|
+
} catch {
|
|
10922
|
+
}
|
|
10918
10923
|
try {
|
|
10919
10924
|
const { getLoadablePath } = __require("sqlite-vec");
|
|
10920
10925
|
db.loadExtension(getLoadablePath());
|
|
@@ -10993,7 +10998,7 @@ var MnemosyneServer = class {
|
|
|
10993
10998
|
const wss = new import_websocket_server.default({ server: this.httpServer });
|
|
10994
10999
|
this.wsHandler = new WebSocketHandler(wss, this.store);
|
|
10995
11000
|
}
|
|
10996
|
-
const version = cfg?.server?.version || "2.1.
|
|
11001
|
+
const version = cfg?.server?.version || "2.1.8";
|
|
10997
11002
|
this.httpServer.listen(port, () => {
|
|
10998
11003
|
console.log(`Mnemosyne v${version} \u2014 port ${port}`);
|
|
10999
11004
|
console.log(`Dashboard: http://${host}:${port}/dashboard`);
|
|
@@ -11051,7 +11056,7 @@ function getVersion4() {
|
|
|
11051
11056
|
const { resolve: resolve14 } = __require("path");
|
|
11052
11057
|
return JSON.parse(readFileSync8(resolve14(__dirname, "../../package.json"), "utf-8")).version;
|
|
11053
11058
|
} catch {
|
|
11054
|
-
return "2.1.
|
|
11059
|
+
return "2.1.8";
|
|
11055
11060
|
}
|
|
11056
11061
|
}
|
|
11057
11062
|
async function startCommand(options) {
|
|
@@ -11343,7 +11348,7 @@ program2.name("mnemosyne").description("Mnemosyne \u2014 Your exocortex").versio
|
|
|
11343
11348
|
try {
|
|
11344
11349
|
return require_package().version;
|
|
11345
11350
|
} catch {
|
|
11346
|
-
return "2.1.
|
|
11351
|
+
return "2.1.8";
|
|
11347
11352
|
}
|
|
11348
11353
|
})());
|
|
11349
11354
|
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);
|