mnemosyne-core 2.1.3 → 2.1.4
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 +10 -9
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +10 -9
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -6
- 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 +5 -4
- package/dist/server/api.js.map +1 -1
- package/dist/server/api.mjs +5 -4
- package/dist/server/api.mjs.map +1 -1
- package/dist/server/index.js +6 -5
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +6 -5
- package/dist/server/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/server/api.mjs
CHANGED
|
@@ -323,7 +323,7 @@ function getVersion() {
|
|
|
323
323
|
const pkg = JSON.parse(readFileSync4(resolve4(process.cwd(), "package.json"), "utf-8"));
|
|
324
324
|
return pkg.version;
|
|
325
325
|
} catch {
|
|
326
|
-
return "2.1.
|
|
326
|
+
return "2.1.4";
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
}
|
|
@@ -1245,7 +1245,8 @@ async function handleSearch(store, pathname, method, res, searchParams) {
|
|
|
1245
1245
|
} else {
|
|
1246
1246
|
results = store.search(projectId, q, limit);
|
|
1247
1247
|
}
|
|
1248
|
-
|
|
1248
|
+
const filtered = results.filter((r) => r.title !== "__INDEX__");
|
|
1249
|
+
json(res, 200, { query: q, semantic, count: filtered.length, results: filtered });
|
|
1249
1250
|
return true;
|
|
1250
1251
|
}
|
|
1251
1252
|
return false;
|
|
@@ -1347,7 +1348,7 @@ function getVersion2() {
|
|
|
1347
1348
|
const pkg = JSON.parse(readFileSync4(resolve4(process.cwd(), "package.json"), "utf-8"));
|
|
1348
1349
|
return pkg.version;
|
|
1349
1350
|
} catch {
|
|
1350
|
-
return "2.1.
|
|
1351
|
+
return "2.1.4";
|
|
1351
1352
|
}
|
|
1352
1353
|
}
|
|
1353
1354
|
}
|
|
@@ -1620,7 +1621,7 @@ var PKG_VERSION = (() => {
|
|
|
1620
1621
|
const pkg = JSON.parse(__require("fs").readFileSync(__require("path").resolve(__dirname, "../../package.json"), "utf-8"));
|
|
1621
1622
|
return pkg.version;
|
|
1622
1623
|
} catch {
|
|
1623
|
-
return "2.1.
|
|
1624
|
+
return "2.1.4";
|
|
1624
1625
|
}
|
|
1625
1626
|
})();
|
|
1626
1627
|
function handleHealth(store, pathname, method, res) {
|