memorix 0.2.1 → 0.2.2
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 +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -917,6 +917,9 @@ async function reindexObservations() {
|
|
|
917
917
|
return count2;
|
|
918
918
|
}
|
|
919
919
|
|
|
920
|
+
// src/server.ts
|
|
921
|
+
init_orama_store();
|
|
922
|
+
|
|
920
923
|
// src/memory/auto-relations.ts
|
|
921
924
|
init_esm_shims();
|
|
922
925
|
function inferRelationType(obs) {
|
|
@@ -2392,6 +2395,7 @@ async function createMemorixServer(cwd) {
|
|
|
2392
2395
|
if (reloadDebounce) clearTimeout(reloadDebounce);
|
|
2393
2396
|
reloadDebounce = setTimeout(async () => {
|
|
2394
2397
|
try {
|
|
2398
|
+
await resetDb();
|
|
2395
2399
|
await initObservations(projectDir2);
|
|
2396
2400
|
const count2 = await reindexObservations();
|
|
2397
2401
|
if (count2 > 0) {
|