memorix 1.0.1 → 1.0.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/index.js CHANGED
@@ -2556,8 +2556,8 @@ async function upsertObservation(existing, input, now) {
2556
2556
  status: "active"
2557
2557
  };
2558
2558
  try {
2559
- const { removeObservation: removeObservation2 } = await Promise.resolve().then(() => (init_orama_store(), orama_store_exports));
2560
- await removeObservation2(`obs-${existing.id}`);
2559
+ const { removeObservation: removeObservation3 } = await Promise.resolve().then(() => (init_orama_store(), orama_store_exports));
2560
+ await removeObservation3(`obs-${existing.id}`);
2561
2561
  } catch {
2562
2562
  }
2563
2563
  await insertObservation(doc);
@@ -2696,6 +2696,7 @@ function suggestTopicKey(type, title) {
2696
2696
  }
2697
2697
  async function reindexObservations() {
2698
2698
  if (observations.length === 0) return 0;
2699
+ await resetDb();
2699
2700
  let embeddings = [];
2700
2701
  if (isEmbeddingEnabled()) {
2701
2702
  try {
@@ -2711,8 +2712,9 @@ async function reindexObservations() {
2711
2712
  const obs = observations[i];
2712
2713
  try {
2713
2714
  const embedding = embeddings[i] ?? null;
2715
+ const docId = `obs-${obs.id}`;
2714
2716
  const doc = {
2715
- id: `obs-${obs.id}`,
2717
+ id: docId,
2716
2718
  observationId: obs.id,
2717
2719
  entityName: obs.entityName,
2718
2720
  type: obs.type,
@@ -8336,7 +8338,7 @@ async function createMemorixServer(cwd, existingServer, sharedTeam) {
8336
8338
  let syncAdvisory = null;
8337
8339
  const server = existingServer ?? new McpServer({
8338
8340
  name: "memorix",
8339
- version: "0.1.0"
8341
+ version: true ? "1.0.2" : "1.0.1"
8340
8342
  });
8341
8343
  server.registerTool(
8342
8344
  "memorix_store",