memorix 1.9.10 → 1.9.12
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 +42 -0
- package/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/cli/index.js +767 -211
- package/dist/index.js +196 -57
- package/dist/maintenance-runner.js +74 -20
- package/dist/media-audio-runner.js +74 -20
- package/dist/media-video-runner.js +74 -20
- package/dist/memcode/index.js +1532 -1002
- package/dist/memcode-runtime/CHANGELOG.md +42 -0
- package/dist/memcode-runtime/package.json +4 -4
- package/dist/sdk.js +194 -55
- package/dist/vector-backfill-runner.js +74 -20
- package/docs/CONFIGURATION.md +26 -0
- package/docs/DEVELOPMENT.md +3 -2
- package/docs/INTEGRATIONS.md +2 -0
- package/docs/README.md +3 -1
- package/docs/ROADMAP-1.9.12-2.0.md +637 -0
- package/docs/hooks-architecture.md +5 -0
- package/package.json +19 -12
- package/plugins/antigravity/memorix/plugin.json +1 -1
- package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
- package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
- package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/copilot/memorix/plugin.json +1 -1
- package/plugins/gemini/memorix/gemini-extension.json +1 -1
- package/plugins/hermes/memorix/plugin.yaml +1 -1
- package/plugins/omp/memorix/package.json +1 -1
- package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/pi/memorix/package.json +1 -1
- package/server.json +2 -2
- package/src/cli/commands/hooks-install.ts +2 -0
- package/src/cli/commands/init.ts +6 -2
- package/src/cli/commands/integrate.ts +2 -0
- package/src/cli/commands/setup.ts +1 -1
- package/src/cli/index.ts +2 -2
- package/src/cli/tui/ConfigureView.tsx +2 -0
- package/src/cli/update-checker.ts +2 -1
- package/src/config/dotenv-loader.ts +1 -0
- package/src/config/resolved-config.ts +7 -3
- package/src/config/yaml-loader.ts +2 -2
- package/src/dashboard/server.ts +3 -0
- package/src/hooks/installers/index.ts +130 -10
- package/src/hooks/lifecycle.ts +4 -9
- package/src/hooks/normalizer.ts +6 -1
- package/src/hooks/types.ts +3 -1
- package/src/llm/provider.ts +2 -1
- package/src/memory/observations.ts +11 -0
- package/src/memory/session.ts +4 -13
- package/src/memory/visibility.ts +8 -2
- package/src/multimodal/image-loader.ts +6 -5
- package/src/server.ts +8 -4
- package/src/store/obs-store.ts +3 -0
- package/src/store/orama-store.ts +43 -6
- package/src/store/sqlite-store.ts +15 -0
|
@@ -2038,9 +2038,9 @@ function sharedAgentIds(record80) {
|
|
|
2038
2038
|
return [];
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
2041
|
-
function canReadObservation(record80, reader) {
|
|
2041
|
+
function canReadObservation(record80, reader, allowedProjectIds) {
|
|
2042
2042
|
if (!reader) return true;
|
|
2043
|
-
const sameProject = reader.projectId === record80.projectId;
|
|
2043
|
+
const sameProject = allowedProjectIds ? allowedProjectIds.includes(record80.projectId) : reader.projectId === record80.projectId;
|
|
2044
2044
|
const visibility = resolveObservationVisibility(record80);
|
|
2045
2045
|
if (visibility === "project") return !reader.projectId || sameProject;
|
|
2046
2046
|
if (!sameProject || !reader.agentId) return false;
|
|
@@ -2406,15 +2406,16 @@ function getResolvedConfig(options = {}) {
|
|
|
2406
2406
|
const openRouterMemoryLlmApiKey = isOpenRouterMemoryLane(memoryLlmProvider, memoryLlmBaseUrl) ? process.env.OPENROUTER_API_KEY : void 0;
|
|
2407
2407
|
const isAtlasCloud = memoryLlmProvider === "atlascloud";
|
|
2408
2408
|
const isRequesty = memoryLlmProvider === "requesty";
|
|
2409
|
-
const
|
|
2409
|
+
const isApiRoute = memoryLlmProvider === "apiroute";
|
|
2410
|
+
const usesPresetKeyOnly = isAtlasCloud || isRequesty || isApiRoute;
|
|
2410
2411
|
const memoryLlmApiKey = first(
|
|
2411
2412
|
process.env.MEMORIX_LLM_API_KEY,
|
|
2412
2413
|
process.env.MEMORIX_API_KEY,
|
|
2413
2414
|
toml.memory?.llm?.api_key,
|
|
2414
2415
|
yaml.llm?.apiKey,
|
|
2415
2416
|
legacy.llm?.apiKey,
|
|
2416
|
-
// Never borrow another provider's credentials for
|
|
2417
|
-
isAtlasCloud ? process.env.ATLASCLOUD_API_KEY : isRequesty ? process.env.REQUESTY_API_KEY : process.env.OPENAI_API_KEY,
|
|
2417
|
+
// Never borrow another provider's credentials for these gateway presets.
|
|
2418
|
+
isAtlasCloud ? process.env.ATLASCLOUD_API_KEY : isRequesty ? process.env.REQUESTY_API_KEY : isApiRoute ? process.env.API_ROUTE_API_KEY : process.env.OPENAI_API_KEY,
|
|
2418
2419
|
usesPresetKeyOnly ? void 0 : process.env.ANTHROPIC_API_KEY,
|
|
2419
2420
|
usesPresetKeyOnly ? void 0 : openRouterMemoryLlmApiKey
|
|
2420
2421
|
);
|
|
@@ -2597,6 +2598,7 @@ function getEnvSourceNames() {
|
|
|
2597
2598
|
"MEMORIX_CODEGRAPH_EXTERNAL_TIMEOUT_MS",
|
|
2598
2599
|
"OPENROUTER_API_KEY",
|
|
2599
2600
|
"REQUESTY_API_KEY",
|
|
2601
|
+
"API_ROUTE_API_KEY",
|
|
2600
2602
|
"ATLASCLOUD_API_KEY"
|
|
2601
2603
|
].filter((name) => process.env[name]);
|
|
2602
2604
|
}
|
|
@@ -5590,6 +5592,7 @@ var init_provider2 = __esm({
|
|
|
5590
5592
|
anthropic: { baseUrl: "https://api.anthropic.com/v1", model: "claude-3-5-haiku-latest" },
|
|
5591
5593
|
openrouter: { baseUrl: "https://openrouter.ai/api/v1", model: "openai/gpt-4.1-nano" },
|
|
5592
5594
|
requesty: { baseUrl: "https://router.requesty.ai/v1", model: "openai/gpt-4.1-nano" },
|
|
5595
|
+
apiroute: { baseUrl: "https://global.api-route.com/v1", model: "deepseek-v4.1-flash" },
|
|
5593
5596
|
atlascloud: { baseUrl: "https://api.atlascloud.ai/v1", model: "deepseek-ai/deepseek-v3.2" },
|
|
5594
5597
|
custom: { baseUrl: "http://localhost:11434/v1", model: "llama3" }
|
|
5595
5598
|
};
|
|
@@ -6084,6 +6087,19 @@ var init_sqlite_store = __esm({
|
|
|
6084
6087
|
async listProjectIds() {
|
|
6085
6088
|
return this.db.prepare("SELECT DISTINCT projectId FROM observations ORDER BY projectId").all().map((row) => row.projectId).filter((projectId) => Boolean(projectId));
|
|
6086
6089
|
}
|
|
6090
|
+
async migrateProjectIds(aliasIds, canonicalId) {
|
|
6091
|
+
const sourceIds = [...new Set(aliasIds.filter((projectId) => projectId && projectId !== canonicalId))];
|
|
6092
|
+
if (sourceIds.length === 0) return 0;
|
|
6093
|
+
return retrySqliteBusy(async () => {
|
|
6094
|
+
const placeholders = sourceIds.map(() => "?").join(", ");
|
|
6095
|
+
const result = this.db.prepare(
|
|
6096
|
+
`UPDATE observations SET projectId = ? WHERE projectId IN (${placeholders})`
|
|
6097
|
+
).run(canonicalId, ...sourceIds);
|
|
6098
|
+
const migrated = Number(result.changes ?? 0);
|
|
6099
|
+
if (migrated > 0) this.bumpGeneration();
|
|
6100
|
+
return migrated;
|
|
6101
|
+
}, "Migrate observation project IDs");
|
|
6102
|
+
}
|
|
6087
6103
|
async searchLexical(options) {
|
|
6088
6104
|
return searchObservationLexically(this.db, options).map((hit) => ({
|
|
6089
6105
|
observation: rowToObs(hit.row),
|
|
@@ -7129,6 +7145,7 @@ var orama_store_exports = {};
|
|
|
7129
7145
|
__export(orama_store_exports, {
|
|
7130
7146
|
_classifyQueryTier: () => classifyQueryTier,
|
|
7131
7147
|
batchGenerateEmbeddings: () => batchGenerateEmbeddings,
|
|
7148
|
+
createSearchTokenizer: () => createSearchTokenizer,
|
|
7132
7149
|
generateEmbedding: () => generateEmbedding,
|
|
7133
7150
|
generateEmbeddingInput: () => generateEmbeddingInput,
|
|
7134
7151
|
getActiveSemanticIndexProfile: () => getActiveSemanticIndexProfile,
|
|
@@ -7151,7 +7168,7 @@ __export(orama_store_exports, {
|
|
|
7151
7168
|
searchObservations: () => searchObservations,
|
|
7152
7169
|
updateObservationMetadata: () => updateObservationMetadata
|
|
7153
7170
|
});
|
|
7154
|
-
import { create, insert as insert2, insertMultiple, search, remove as remove2, update, count, getByID } from "@orama/orama";
|
|
7171
|
+
import { components, create, insert as insert2, insertMultiple, search, remove as remove2, update, count, getByID } from "@orama/orama";
|
|
7155
7172
|
function rememberSearchMode(key, value) {
|
|
7156
7173
|
if (!lastSearchModeByProject.has(key) && lastSearchModeByProject.size >= MAX_SEARCH_MODE_KEYS) {
|
|
7157
7174
|
const oldest = lastSearchModeByProject.keys().next().value;
|
|
@@ -7170,6 +7187,26 @@ function getOptionalObservationStore() {
|
|
|
7170
7187
|
return null;
|
|
7171
7188
|
}
|
|
7172
7189
|
}
|
|
7190
|
+
function createSearchTokenizer() {
|
|
7191
|
+
const defaultTokenizer = components.tokenizer.createTokenizer({ language: "english" });
|
|
7192
|
+
return {
|
|
7193
|
+
language: defaultTokenizer.language,
|
|
7194
|
+
normalizationCache: defaultTokenizer.normalizationCache,
|
|
7195
|
+
tokenize(raw, language, prop, withCache = true) {
|
|
7196
|
+
const defaultTokens = defaultTokenizer.tokenize(raw, language, prop, withCache);
|
|
7197
|
+
const cjkTokens = [];
|
|
7198
|
+
const normalized = raw.normalize("NFKC").toLowerCase();
|
|
7199
|
+
for (const match2 of normalized.matchAll(CJK_RUN)) {
|
|
7200
|
+
const characters = Array.from(match2[0]);
|
|
7201
|
+
cjkTokens.push(...characters);
|
|
7202
|
+
for (let index = 0; index + 1 < characters.length; index++) {
|
|
7203
|
+
cjkTokens.push(`${characters[index]}${characters[index + 1]}`);
|
|
7204
|
+
}
|
|
7205
|
+
}
|
|
7206
|
+
return [.../* @__PURE__ */ new Set([...defaultTokens, ...cjkTokens])];
|
|
7207
|
+
}
|
|
7208
|
+
};
|
|
7209
|
+
}
|
|
7173
7210
|
async function shouldUsePersistentSearch(projectIds, projectId) {
|
|
7174
7211
|
const store = getOptionalObservationStore();
|
|
7175
7212
|
if (!store?.hasLexicalIndex?.()) return false;
|
|
@@ -7270,6 +7307,7 @@ async function searchPersistentSemantically(options, projectIds, limit2, queryVe
|
|
|
7270
7307
|
const lexical = await searchPersistentLexically(options, projectIds, limit2);
|
|
7271
7308
|
const store = getObservationStore();
|
|
7272
7309
|
const documents = /* @__PURE__ */ new Map();
|
|
7310
|
+
const vectorDocumentKeys = /* @__PURE__ */ new Map();
|
|
7273
7311
|
const addObservation = (observation) => {
|
|
7274
7312
|
const document2 = observationToSearchDocument(observation);
|
|
7275
7313
|
documents.set(makeEntryKey(document2.projectId, document2.observationId), document2);
|
|
@@ -7285,6 +7323,7 @@ async function searchPersistentSemantically(options, projectIds, limit2, queryVe
|
|
|
7285
7323
|
if (options.type && observation.type !== options.type) return null;
|
|
7286
7324
|
if (options.source && observation.source !== options.source) return null;
|
|
7287
7325
|
addObservation(observation);
|
|
7326
|
+
vectorDocumentKeys.set(hit.observationId, makeEntryKey(observation.projectId, observation.id));
|
|
7288
7327
|
return observation;
|
|
7289
7328
|
}));
|
|
7290
7329
|
const RRF_K = 60;
|
|
@@ -7294,7 +7333,7 @@ async function searchPersistentSemantically(options, projectIds, limit2, queryVe
|
|
|
7294
7333
|
scores.set(key, (scores.get(key) ?? 0) + 0.6 / (RRF_K + index + 1));
|
|
7295
7334
|
}
|
|
7296
7335
|
for (const [index, hit] of vectorHits.entries()) {
|
|
7297
|
-
const key = makeEntryKey(hit.projectId, hit.observationId);
|
|
7336
|
+
const key = vectorDocumentKeys.get(hit.observationId) ?? makeEntryKey(hit.projectId, hit.observationId);
|
|
7298
7337
|
if (!documents.has(key)) continue;
|
|
7299
7338
|
scores.set(key, (scores.get(key) ?? 0) + 0.4 / (RRF_K + index + 1));
|
|
7300
7339
|
}
|
|
@@ -7307,12 +7346,13 @@ async function searchPersistentSemantically(options, projectIds, limit2, queryVe
|
|
|
7307
7346
|
return {
|
|
7308
7347
|
count: vectorHits.length,
|
|
7309
7348
|
hits: vectorHits.map((hit, index) => {
|
|
7310
|
-
const key = makeEntryKey(hit.projectId, hit.observationId);
|
|
7349
|
+
const key = vectorDocumentKeys.get(hit.observationId) ?? makeEntryKey(hit.projectId, hit.observationId);
|
|
7311
7350
|
const document2 = documents.get(key);
|
|
7312
7351
|
return document2 ? { id: document2.id, score: 0.4 / (RRF_K + index + 1), document: document2 } : null;
|
|
7313
7352
|
}).filter((hit) => hit !== null).slice(0, limit2)
|
|
7314
7353
|
};
|
|
7315
7354
|
}
|
|
7355
|
+
if (hits.length === 0) return null;
|
|
7316
7356
|
return { count: hits.length, hits };
|
|
7317
7357
|
} catch {
|
|
7318
7358
|
return null;
|
|
@@ -7387,7 +7427,10 @@ async function initializeDb(options, generation) {
|
|
|
7387
7427
|
};
|
|
7388
7428
|
const dims = nextEmbeddingDimensions ?? 384;
|
|
7389
7429
|
const schema = nextEmbeddingEnabled ? { ...baseSchema, embedding: `vector[${dims}]` } : baseSchema;
|
|
7390
|
-
const nextDb = await create({
|
|
7430
|
+
const nextDb = await create({
|
|
7431
|
+
schema,
|
|
7432
|
+
components: { tokenizer: createSearchTokenizer() }
|
|
7433
|
+
});
|
|
7391
7434
|
if (generation !== dbGeneration) {
|
|
7392
7435
|
return getDb(options);
|
|
7393
7436
|
}
|
|
@@ -7821,7 +7864,7 @@ async function searchObservations(options) {
|
|
|
7821
7864
|
if (!projectIds) return true;
|
|
7822
7865
|
const doc = hit.document;
|
|
7823
7866
|
return projectIds.includes(doc.projectId);
|
|
7824
|
-
}).filter((hit) => canReadObservation(hit.document, options.reader)).filter((hit) => {
|
|
7867
|
+
}).filter((hit) => canReadObservation(hit.document, options.reader, projectIds ?? void 0)).filter((hit) => {
|
|
7825
7868
|
if (statusFilter === "all") return true;
|
|
7826
7869
|
const doc = hit.document;
|
|
7827
7870
|
return (doc.status || "active") === statusFilter;
|
|
@@ -8087,7 +8130,7 @@ async function searchObservations(options) {
|
|
|
8087
8130
|
let entries = intermediate.map(({ rawTime: _, _isCommandLog: _c, ...rest }) => rest);
|
|
8088
8131
|
for (const hit of results.hits) {
|
|
8089
8132
|
const doc = hit.document;
|
|
8090
|
-
if (canReadObservation(doc, options.reader)) rememberObservationDoc(doc);
|
|
8133
|
+
if (canReadObservation(doc, options.reader, projectIds ?? void 0)) rememberObservationDoc(doc);
|
|
8091
8134
|
}
|
|
8092
8135
|
if (hasQuery && originalQuery) {
|
|
8093
8136
|
const queryLower = originalQuery.toLowerCase();
|
|
@@ -8245,7 +8288,7 @@ function formatTime(isoDate) {
|
|
|
8245
8288
|
return isoDate;
|
|
8246
8289
|
}
|
|
8247
8290
|
}
|
|
8248
|
-
var db, dbInitPromise, dbGeneration, embeddingEnabled, embeddingDimensions, indexEmbeddingProvider, deferredCachedVectorHydration, NON_CJK_HYBRID_SIMILARITY, lastSearchModeByProject, SEARCH_MODE_DEFAULT_KEY, MAX_SEARCH_MODE_KEYS, COMMAND_LOG_TITLE, COMMAND_STYLE_TITLE, COMMAND_LIKE_QUERY2, COMMAND_INTENT_QUERY, NATURAL_LANGUAGE_MARKERS;
|
|
8291
|
+
var db, dbInitPromise, dbGeneration, embeddingEnabled, embeddingDimensions, indexEmbeddingProvider, deferredCachedVectorHydration, NON_CJK_HYBRID_SIMILARITY, CJK_RUN, lastSearchModeByProject, SEARCH_MODE_DEFAULT_KEY, MAX_SEARCH_MODE_KEYS, COMMAND_LOG_TITLE, COMMAND_STYLE_TITLE, COMMAND_LIKE_QUERY2, COMMAND_INTENT_QUERY, NATURAL_LANGUAGE_MARKERS;
|
|
8249
8292
|
var init_orama_store = __esm({
|
|
8250
8293
|
"src/store/orama-store.ts"() {
|
|
8251
8294
|
"use strict";
|
|
@@ -8269,6 +8312,7 @@ var init_orama_store = __esm({
|
|
|
8269
8312
|
indexEmbeddingProvider = null;
|
|
8270
8313
|
deferredCachedVectorHydration = null;
|
|
8271
8314
|
NON_CJK_HYBRID_SIMILARITY = 0.45;
|
|
8315
|
+
CJK_RUN = /[\u3400-\u4dbf\u4e00-\u9fff\u3040-\u30ff\uac00-\ud7af]+/gu;
|
|
8272
8316
|
lastSearchModeByProject = /* @__PURE__ */ new Map();
|
|
8273
8317
|
SEARCH_MODE_DEFAULT_KEY = "__global__";
|
|
8274
8318
|
MAX_SEARCH_MODE_KEYS = 4096;
|
|
@@ -11138,6 +11182,16 @@ function getProjectObservations(projectId) {
|
|
|
11138
11182
|
async function migrateProjectIds(aliasIds, canonicalId) {
|
|
11139
11183
|
const nonCanonical = new Set(aliasIds.filter((id) => id !== canonicalId));
|
|
11140
11184
|
if (nonCanonical.size === 0) return 0;
|
|
11185
|
+
const store = projectDir ? getObservationStore() : null;
|
|
11186
|
+
if (store?.migrateProjectIds) {
|
|
11187
|
+
const migrated2 = await store.migrateProjectIds(aliasIds, canonicalId);
|
|
11188
|
+
if (migrated2 > 0 && corpusLoaded) {
|
|
11189
|
+
for (const observation of observations) {
|
|
11190
|
+
if (nonCanonical.has(observation.projectId)) observation.projectId = canonicalId;
|
|
11191
|
+
}
|
|
11192
|
+
}
|
|
11193
|
+
return migrated2;
|
|
11194
|
+
}
|
|
11141
11195
|
let migrated = 0;
|
|
11142
11196
|
const changed = [];
|
|
11143
11197
|
for (const obs of observations) {
|
|
@@ -11148,8 +11202,8 @@ async function migrateProjectIds(aliasIds, canonicalId) {
|
|
|
11148
11202
|
}
|
|
11149
11203
|
}
|
|
11150
11204
|
if (migrated > 0 && projectDir) {
|
|
11151
|
-
const
|
|
11152
|
-
await
|
|
11205
|
+
const store2 = getObservationStore();
|
|
11206
|
+
await store2.atomic(async (tx) => {
|
|
11153
11207
|
await Promise.all(changed.map((observation) => tx.update(observation)));
|
|
11154
11208
|
});
|
|
11155
11209
|
}
|
|
@@ -74147,16 +74201,16 @@ var require_pluggable_auth_handler = __commonJS({
|
|
|
74147
74201
|
* spaces are between quotation marks.
|
|
74148
74202
|
*/
|
|
74149
74203
|
static parseCommand(command) {
|
|
74150
|
-
const
|
|
74151
|
-
if (!
|
|
74204
|
+
const components2 = command.match(/(?:[^\s"]+|"[^"]*")+/g);
|
|
74205
|
+
if (!components2) {
|
|
74152
74206
|
throw new Error(`Provided command: "${command}" could not be parsed.`);
|
|
74153
74207
|
}
|
|
74154
|
-
for (let i2 = 0; i2 <
|
|
74155
|
-
if (
|
|
74156
|
-
|
|
74208
|
+
for (let i2 = 0; i2 < components2.length; i2++) {
|
|
74209
|
+
if (components2[i2][0] === '"' && components2[i2].slice(-1) === '"') {
|
|
74210
|
+
components2[i2] = components2[i2].slice(1, -1);
|
|
74157
74211
|
}
|
|
74158
74212
|
}
|
|
74159
|
-
return
|
|
74213
|
+
return components2;
|
|
74160
74214
|
}
|
|
74161
74215
|
};
|
|
74162
74216
|
exports.PluggableAuthHandler = PluggableAuthHandler;
|
package/docs/CONFIGURATION.md
CHANGED
|
@@ -195,6 +195,32 @@ OpenRouter environment keys. Model IDs use the `vendor/model` form, for example
|
|
|
195
195
|
`base_url = "https://router.eu.requesty.ai/v1"`. Get a key at
|
|
196
196
|
https://app.requesty.ai/api-keys.
|
|
197
197
|
|
|
198
|
+
### API Route memory preset
|
|
199
|
+
|
|
200
|
+
[API Route](https://www.api-route.com) is available in `memorix init` and the
|
|
201
|
+
configuration TUI as an optional memory LLM preset:
|
|
202
|
+
|
|
203
|
+
```toml
|
|
204
|
+
[memory.llm]
|
|
205
|
+
provider = "apiroute"
|
|
206
|
+
model = "deepseek-v4.1-flash"
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
The preset uses `https://global.api-route.com/v1` and the existing
|
|
210
|
+
OpenAI-compatible chat completion transport. Set `API_ROUTE_API_KEY` or
|
|
211
|
+
`MEMORIX_LLM_API_KEY`, or store `api_key` in your private global config. Keep
|
|
212
|
+
credentials out of project TOML. Explicit `model` and `base_url` overrides
|
|
213
|
+
still apply; use IDs from the endpoint's `/v1/models` catalog without adding
|
|
214
|
+
an extra vendor prefix.
|
|
215
|
+
|
|
216
|
+
`API_ROUTE_API_KEY` is used only when this memory preset is selected, and the
|
|
217
|
+
preset does not borrow OpenAI, Anthropic, OpenRouter, Requesty, or Atlas Cloud
|
|
218
|
+
keys. Setting the key alone does not enable paid background memory processing.
|
|
219
|
+
Embeddings and memcode's model registry are unchanged. Image analysis requires
|
|
220
|
+
explicitly selecting a vision-capable model; the default is for text memory.
|
|
221
|
+
|
|
222
|
+
### OrcaRouter custom endpoint
|
|
223
|
+
|
|
198
224
|
OrcaRouter works through the generic OpenAI-compatible gateway path. Keep the
|
|
199
225
|
provider label as `openai`, set its base URL, and use an explicit model ID:
|
|
200
226
|
|
package/docs/DEVELOPMENT.md
CHANGED
|
@@ -13,8 +13,9 @@ Memorix is a TypeScript project built around:
|
|
|
13
13
|
|
|
14
14
|
## Current Development Baseline
|
|
15
15
|
|
|
16
|
-
The current release
|
|
17
|
-
|
|
16
|
+
The current release candidate is **1.9.12**. The published baseline remains
|
|
17
|
+
**1.9.11** until the release is published. Package metadata is kept
|
|
18
|
+
synchronized with the root package and MCP Registry manifest.
|
|
18
19
|
|
|
19
20
|
Contributors should assume the following areas are part of the current release line:
|
|
20
21
|
|
package/docs/INTEGRATIONS.md
CHANGED
|
@@ -54,6 +54,7 @@ Generated guidance also has scope:
|
|
|
54
54
|
| GitHub Copilot CLI | `memorix setup --agent copilot --global` | Copilot CLI plugin package | Local plugin under `~/.copilot/plugins/local/memorix` with MCP, skills, and hooks | Setup attempts `copilot plugin install <local-path>` when Copilot CLI is available. |
|
|
55
55
|
| Cursor | `memorix setup --agent cursor --global` | Cursor MCP and rules config | Cursor MCP config, `.cursor/rules/memorix.mdc`, skills, and hook guidance | Reload Cursor after setup so it can pick up project config changes. |
|
|
56
56
|
| Grok Build | `memorix setup --agent grok --global` | `~/.grok/hooks/memorix.json` + `~/.grok/AGENTS.md` | Lifecycle hooks on SessionStart, SessionEnd, UserPromptSubmit, PostToolUse, PostToolUseFailure, PreCompact, PostCompact, Stop, and StopFailure, plus Grok project/global guidance | Uses Grok's own JSON hook directory. MCP stays host-owned unless you pass `--mcp http`, which writes `[mcp_servers.memorix]` with `url = "http://localhost:3211/mcp"` in Grok `config.toml`. Global hooks are trusted; project hooks require Grok `/hooks-trust`. Set `GROK_HOME` to use a custom Grok home. The command is `memorix hook --agent grok`. |
|
|
57
|
+
| Qwen Code | `memorix hooks install --agent qwen` | Qwen Code `.qwen/settings.json` hooks | Qwen `SessionStart`, `SessionEnd`, `UserPromptSubmit`, `PostToolUse`, `PreCompact`, `PostCompact`, and `Stop` hooks, plus `QWEN.md` guidance | The installer preserves existing Qwen settings and user hooks, and uses `memorix hook --agent qwen`. Project hooks require a trusted Qwen workspace. iFlow is not supported because the official iFlow CLI service was retired in April 2026. |
|
|
57
58
|
| Gemini CLI | `memorix setup --agent gemini-cli --global` | Gemini CLI extension | Extension under `~/.gemini/extensions/memorix` with MCP, `GEMINI.md` context, hooks, commands, and skills | Antigravity CLI has an official Gemini CLI migration path, but Gemini CLI remains an active standalone Google CLI target. |
|
|
58
59
|
| OpenCode | `memorix setup --agent opencode --global` | OpenCode local plugin file | Global setup writes `~/.config/opencode/plugins/memorix.js`, `~/.config/opencode/opencode.json`, skills, and `AGENTS.md` guidance; repo-local setup writes the `.opencode/` equivalents. | The generated plugin keeps the v1 named export, adds the v1 `server` field to its dual default export, and exposes the v2 `id`/`setup` contract. OpenCode 1.x lifecycle/file/command/message events use the generic `event` hook; v2 subscriptions use the host session ID when forwarding hooks. |
|
|
59
60
|
| OpenClaw | `memorix setup --agent openclaw --global` | OpenClaw compatible bundle | `~/.openclaw/extensions/memorix` with `.mcp.json`, skills, and OpenClaw `HOOK.md`/`handler.ts` hook pack | Setup attempts `openclaw plugins install <path> --force` and `openclaw hooks enable memorix` when OpenClaw is available. |
|
|
@@ -149,6 +150,7 @@ These commands remain useful for controlled fallback setups:
|
|
|
149
150
|
```bash
|
|
150
151
|
memorix integrate --agent cursor
|
|
151
152
|
memorix integrate --agent gemini-cli
|
|
153
|
+
memorix hooks install --agent qwen
|
|
152
154
|
memorix setup --agent openclaw --global
|
|
153
155
|
memorix setup --agent hermes --global
|
|
154
156
|
memorix setup --agent omp --global
|
package/docs/README.md
CHANGED
|
@@ -81,6 +81,7 @@ The public docs are organized by user intent:
|
|
|
81
81
|
| Design decisions and rationale | [DESIGN_DECISIONS.md](DESIGN_DECISIONS.md) |
|
|
82
82
|
| Module-by-module notes | [MODULES.md](MODULES.md) |
|
|
83
83
|
| Current implementation status and ecosystem watch | [ACTIVE_WORK.md](../ACTIVE_WORK.md) |
|
|
84
|
+
| Long-term product and version roadmap | [1.9.12–2.0 Roadmap](ROADMAP-1.9.12-2.0.md) |
|
|
84
85
|
| 1.8.7 CodeGraph implementation plan and acceptance contract | [1.8.7 CodeGraph](1.8.7-CODEGRAPH.md) |
|
|
85
86
|
| CodeGraph Memory / Context Fabric design | [2026-06-29-codegraph-memory-context-fabric-design.md](superpowers/specs/2026-06-29-codegraph-memory-context-fabric-design.md) |
|
|
86
87
|
| Auto Context Layer design | [2026-06-29-auto-context-layer-design.md](superpowers/specs/2026-06-29-auto-context-layer-design.md) |
|
|
@@ -126,7 +127,8 @@ Historical/deep-reference documents may describe older designs. If they conflict
|
|
|
126
127
|
|
|
127
128
|
## Current Product Line
|
|
128
129
|
|
|
129
|
-
The current product line is **1.9.
|
|
130
|
+
The current product line is **1.9.12** (release candidate; **1.9.11** remains
|
|
131
|
+
the published baseline until release publication). Multi-device store sync is opt-in and
|
|
130
132
|
keeps local SQLite canonical; existing users do not upload anything until they
|
|
131
133
|
configure a relay provider explicitly.
|
|
132
134
|
The authoritative acceptance contract for the current implementation is
|