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/CHANGELOG.md +10 -0
- package/dist/cli/index.js +9 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.0.2] — 2026-03-14
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **MCP Server version mismatch** — Server now reports the correct version from `package.json` (was hardcoded `0.1.0`). Injected at build time via tsup `define`.
|
|
9
|
+
- **CI Node.js matrix** — Removed Node 18 from CI matrix to match `engines: >=20` in `package.json`.
|
|
10
|
+
- **Orama reindex idempotency** — `reindexObservations()` now resets the Orama DB before rebuilding, eliminating "document already exists" errors in multi-session scenarios.
|
|
11
|
+
- **E2E tests no longer touch real user data** — Mini-skills E2E tests now use a temporary directory with synthetic observations instead of reading/writing `~/.memorix/data/`.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
5
15
|
## [1.0.1] — 2026-03-14
|
|
6
16
|
|
|
7
17
|
### Fixed
|
package/dist/cli/index.js
CHANGED
|
@@ -13868,8 +13868,8 @@ async function upsertObservation(existing, input, now) {
|
|
|
13868
13868
|
status: "active"
|
|
13869
13869
|
};
|
|
13870
13870
|
try {
|
|
13871
|
-
const { removeObservation:
|
|
13872
|
-
await
|
|
13871
|
+
const { removeObservation: removeObservation3 } = await Promise.resolve().then(() => (init_orama_store(), orama_store_exports));
|
|
13872
|
+
await removeObservation3(`obs-${existing.id}`);
|
|
13873
13873
|
} catch {
|
|
13874
13874
|
}
|
|
13875
13875
|
await insertObservation(doc);
|
|
@@ -14008,6 +14008,7 @@ function suggestTopicKey(type, title) {
|
|
|
14008
14008
|
}
|
|
14009
14009
|
async function reindexObservations() {
|
|
14010
14010
|
if (observations.length === 0) return 0;
|
|
14011
|
+
await resetDb();
|
|
14011
14012
|
let embeddings = [];
|
|
14012
14013
|
if (isEmbeddingEnabled()) {
|
|
14013
14014
|
try {
|
|
@@ -14023,8 +14024,9 @@ async function reindexObservations() {
|
|
|
14023
14024
|
const obs = observations[i2];
|
|
14024
14025
|
try {
|
|
14025
14026
|
const embedding = embeddings[i2] ?? null;
|
|
14027
|
+
const docId = `obs-${obs.id}`;
|
|
14026
14028
|
const doc = {
|
|
14027
|
-
id:
|
|
14029
|
+
id: docId,
|
|
14028
14030
|
observationId: obs.id,
|
|
14029
14031
|
entityName: obs.entityName,
|
|
14030
14032
|
type: obs.type,
|
|
@@ -14077,7 +14079,7 @@ __export(orama_store_exports, {
|
|
|
14077
14079
|
getTimeline: () => getTimeline,
|
|
14078
14080
|
insertObservation: () => insertObservation,
|
|
14079
14081
|
isEmbeddingEnabled: () => isEmbeddingEnabled,
|
|
14080
|
-
removeObservation: () =>
|
|
14082
|
+
removeObservation: () => removeObservation2,
|
|
14081
14083
|
resetDb: () => resetDb,
|
|
14082
14084
|
searchObservations: () => searchObservations
|
|
14083
14085
|
});
|
|
@@ -14133,7 +14135,7 @@ async function insertObservation(doc) {
|
|
|
14133
14135
|
const database = await getDb();
|
|
14134
14136
|
await insert3(database, doc);
|
|
14135
14137
|
}
|
|
14136
|
-
async function
|
|
14138
|
+
async function removeObservation2(oramaId) {
|
|
14137
14139
|
const database = await getDb();
|
|
14138
14140
|
await remove4(database, oramaId);
|
|
14139
14141
|
}
|
|
@@ -45660,7 +45662,7 @@ async function createMemorixServer(cwd, existingServer, sharedTeam) {
|
|
|
45660
45662
|
let syncAdvisory = null;
|
|
45661
45663
|
const server = existingServer ?? new McpServer({
|
|
45662
45664
|
name: "memorix",
|
|
45663
|
-
version: "0.1.0"
|
|
45665
|
+
version: true ? "1.0.2" : "1.0.1"
|
|
45664
45666
|
});
|
|
45665
45667
|
server.registerTool(
|
|
45666
45668
|
"memorix_store",
|
|
@@ -47696,7 +47698,7 @@ var init_serve = __esm({
|
|
|
47696
47698
|
});
|
|
47697
47699
|
} else {
|
|
47698
47700
|
console.error(`[memorix] cwd may not be a valid project, trying MCP roots protocol...`);
|
|
47699
|
-
const mcpServer = new McpServer2({ name: "memorix", version: "0.1.0" });
|
|
47701
|
+
const mcpServer = new McpServer2({ name: "memorix", version: true ? "1.0.2" : "1.0.1" });
|
|
47700
47702
|
mcpServer.registerTool("_memorix_loading", {
|
|
47701
47703
|
description: "Memorix is initializing, detecting project root...",
|
|
47702
47704
|
inputSchema: {}
|