@hasna/mementos 0.14.14 → 0.14.16
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 +3 -2
- package/dist/index.js +1 -0
- package/dist/mcp/index.js +1 -0
- package/dist/server/index.js +1 -0
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -14015,6 +14015,7 @@ function getDatabase(dbPath) {
|
|
|
14015
14015
|
_db.run("PRAGMA journal_mode = WAL");
|
|
14016
14016
|
_db.run("PRAGMA busy_timeout = 5000");
|
|
14017
14017
|
_db.run("PRAGMA foreign_keys = ON");
|
|
14018
|
+
_db.run("PRAGMA wal_autocheckpoint = 100");
|
|
14018
14019
|
runMigrations(_db);
|
|
14019
14020
|
_db.run(`CREATE TABLE IF NOT EXISTS feedback (
|
|
14020
14021
|
id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))),
|
|
@@ -22390,7 +22391,7 @@ function registerIoCommands(program2) {
|
|
|
22390
22391
|
if (!Array.isArray(memories)) {
|
|
22391
22392
|
throw new Error("JSON file must contain an array of memories");
|
|
22392
22393
|
}
|
|
22393
|
-
const dedupeMode = opts.overwrite ? "
|
|
22394
|
+
const dedupeMode = opts.overwrite ? "create" : "merge";
|
|
22394
22395
|
let imported = 0;
|
|
22395
22396
|
for (const mem of memories) {
|
|
22396
22397
|
createMemory({ ...mem, source: mem.source || "imported" }, dedupeMode);
|
|
@@ -24549,7 +24550,7 @@ session_end = "bun ${script}"`));
|
|
|
24549
24550
|
const { fileURLToPath: _ftu } = await import("url");
|
|
24550
24551
|
const { dirname: _dir, join: _join } = await import("path");
|
|
24551
24552
|
const { readFileSync: _rfs } = await import("fs");
|
|
24552
|
-
const pkg = JSON.parse(_rfs(_join(_dir(_ftu(import.meta.url)), "
|
|
24553
|
+
const pkg = JSON.parse(_rfs(_join(_dir(_ftu(import.meta.url)), "../../package.json"), "utf-8"));
|
|
24553
24554
|
db.run("INSERT INTO feedback (message, email, category, version) VALUES (?, ?, ?, ?)", [
|
|
24554
24555
|
message,
|
|
24555
24556
|
opts.email || null,
|
package/dist/index.js
CHANGED
|
@@ -10233,6 +10233,7 @@ function getDatabase(dbPath) {
|
|
|
10233
10233
|
_db.run("PRAGMA journal_mode = WAL");
|
|
10234
10234
|
_db.run("PRAGMA busy_timeout = 5000");
|
|
10235
10235
|
_db.run("PRAGMA foreign_keys = ON");
|
|
10236
|
+
_db.run("PRAGMA wal_autocheckpoint = 100");
|
|
10236
10237
|
runMigrations(_db);
|
|
10237
10238
|
_db.run(`CREATE TABLE IF NOT EXISTS feedback (
|
|
10238
10239
|
id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))),
|
package/dist/mcp/index.js
CHANGED
|
@@ -12025,6 +12025,7 @@ function getDatabase(dbPath) {
|
|
|
12025
12025
|
_db.run("PRAGMA journal_mode = WAL");
|
|
12026
12026
|
_db.run("PRAGMA busy_timeout = 5000");
|
|
12027
12027
|
_db.run("PRAGMA foreign_keys = ON");
|
|
12028
|
+
_db.run("PRAGMA wal_autocheckpoint = 100");
|
|
12028
12029
|
runMigrations(_db);
|
|
12029
12030
|
_db.run(`CREATE TABLE IF NOT EXISTS feedback (
|
|
12030
12031
|
id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))),
|
package/dist/server/index.js
CHANGED
|
@@ -10258,6 +10258,7 @@ function getDatabase(dbPath) {
|
|
|
10258
10258
|
_db.run("PRAGMA journal_mode = WAL");
|
|
10259
10259
|
_db.run("PRAGMA busy_timeout = 5000");
|
|
10260
10260
|
_db.run("PRAGMA foreign_keys = ON");
|
|
10261
|
+
_db.run("PRAGMA wal_autocheckpoint = 100");
|
|
10261
10262
|
runMigrations(_db);
|
|
10262
10263
|
_db.run(`CREATE TABLE IF NOT EXISTS feedback (
|
|
10263
10264
|
id TEXT PRIMARY KEY DEFAULT (lower(hex(randomblob(16)))),
|