memory-journal-mcp 8.0.0 → 8.0.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/{chunk-MWNLAEHR.js → chunk-V3UTFQQK.js} +21 -10
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -182,15 +182,26 @@ var NativeConnectionManager = class {
|
|
|
182
182
|
db.pragma("synchronous = NORMAL");
|
|
183
183
|
db.pragma("foreign_keys = ON");
|
|
184
184
|
db.pragma("temp_store = MEMORY");
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
try {
|
|
186
|
+
const sqliteVec = await import('sqlite-vec');
|
|
187
|
+
if (this.db === null) {
|
|
188
|
+
logger.info("Database closed during initialization, aborting", {
|
|
189
|
+
module: "NativeConnectionManager"
|
|
190
|
+
});
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
sqliteVec.load(db);
|
|
194
|
+
logger.info("sqlite-vec extension loaded via npm package", {
|
|
188
195
|
module: "NativeConnectionManager"
|
|
189
196
|
});
|
|
190
|
-
|
|
197
|
+
} catch {
|
|
198
|
+
const fallbackPath = path2.resolve(process.cwd(), "vec0");
|
|
199
|
+
db.loadExtension(fallbackPath);
|
|
200
|
+
logger.info("sqlite-vec extension loaded via compiled fallback", {
|
|
201
|
+
module: "NativeConnectionManager",
|
|
202
|
+
path: fallbackPath
|
|
203
|
+
});
|
|
191
204
|
}
|
|
192
|
-
sqliteVec.load(db);
|
|
193
|
-
logger.info("sqlite-vec extension loaded", { module: "NativeConnectionManager" });
|
|
194
205
|
db.exec(SCHEMA_SQL);
|
|
195
206
|
db.exec(`
|
|
196
207
|
CREATE VIRTUAL TABLE IF NOT EXISTS vec_embeddings USING vec0(
|
|
@@ -2842,7 +2853,7 @@ var VectorSearchManager = class {
|
|
|
2842
2853
|
const embeddings = await Promise.all(
|
|
2843
2854
|
batch.map(async (entry) => {
|
|
2844
2855
|
try {
|
|
2845
|
-
await new Promise((
|
|
2856
|
+
await new Promise((resolve3) => setImmediate(resolve3));
|
|
2846
2857
|
return {
|
|
2847
2858
|
entry,
|
|
2848
2859
|
embedding: await this.generateEmbedding(entry.content),
|
|
@@ -2885,7 +2896,7 @@ var VectorSearchManager = class {
|
|
|
2885
2896
|
});
|
|
2886
2897
|
}
|
|
2887
2898
|
}
|
|
2888
|
-
await new Promise((
|
|
2899
|
+
await new Promise((resolve3) => setTimeout(resolve3, 10));
|
|
2889
2900
|
if (indexed % 10 === 0 || indexed === totalEntries) {
|
|
2890
2901
|
await sendProgress(
|
|
2891
2902
|
progress,
|
|
@@ -4898,8 +4909,8 @@ var MaintenanceManager = class {
|
|
|
4898
4909
|
if (this.activeJobs > 1) {
|
|
4899
4910
|
if (this.maintenanceWaitPromise === null) {
|
|
4900
4911
|
let resolver;
|
|
4901
|
-
const promise = new Promise((
|
|
4902
|
-
resolver =
|
|
4912
|
+
const promise = new Promise((resolve3) => {
|
|
4913
|
+
resolver = resolve3;
|
|
4903
4914
|
});
|
|
4904
4915
|
if (resolver) {
|
|
4905
4916
|
this.maintenanceWaitPromise = { promise, resolve: resolver };
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createServer } from './chunk-
|
|
1
|
+
export { createServer } from './chunk-V3UTFQQK.js';
|
|
2
2
|
import './chunk-UHSO65A4.js';
|
|
3
3
|
export { VERSION } from './chunk-JFMITANR.js';
|
|
4
4
|
export { META_GROUPS, TOOL_GROUPS, calculateTokenSavings, filterTools, getAllToolNames, getFilterSummary, getToolFilterFromEnv, getToolGroup, isToolEnabled, logger, parseToolFilter } from './chunk-6OHRCNYW.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memory-journal-mcp",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Project context management for AI-assisted development - Persistent knowledge graphs and intelligent context recall across fragmented AI threads",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|