memorix 1.10.0 → 1.10.1
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 +11 -0
- package/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/cli/index.js +176 -46
- package/dist/index.js +160 -45
- package/dist/maintenance-runner.js +56 -2
- package/dist/media-audio-runner.js +56 -2
- package/dist/media-video-runner.js +56 -2
- package/dist/memcode-runtime/CHANGELOG.md +11 -0
- package/dist/sdk.js +159 -44
- package/dist/vector-backfill-runner.js +56 -2
- package/docs/1.2.0-EVALUATION-HARNESS.md +18 -0
- package/docs/CONFIGURATION.md +25 -0
- package/docs/DEVELOPMENT.md +4 -3
- package/docs/README.md +2 -2
- package/docs/ROADMAP-1.9.12-2.0.md +13 -6
- package/package.json +1 -1
- 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/init.ts +6 -2
- package/src/cli/tui/ConfigureView.tsx +2 -0
- package/src/codegraph/auto-context.ts +17 -0
- package/src/codegraph/context-pack.ts +15 -0
- package/src/compact/engine.ts +11 -0
- package/src/config/dotenv-loader.ts +1 -0
- package/src/config/resolved-config.ts +5 -2
- package/src/config/yaml-loader.ts +2 -2
- package/src/dashboard/server.ts +3 -0
- package/src/knowledge/context-assembly.ts +13 -0
- package/src/knowledge/context-receipt.ts +32 -0
- package/src/knowledge/workset.ts +8 -0
- package/src/llm/provider.ts +2 -1
- package/src/multimodal/image-loader.ts +2 -2
- package/src/search/derived-view-receipt.ts +22 -0
- package/src/store/orama-store.ts +62 -0
package/dist/index.js
CHANGED
|
@@ -3841,7 +3841,8 @@ function getResolvedConfig(options = {}) {
|
|
|
3841
3841
|
const isAtlasCloud = memoryLlmProvider === "atlascloud";
|
|
3842
3842
|
const isRequesty = memoryLlmProvider === "requesty";
|
|
3843
3843
|
const isApiRoute = memoryLlmProvider === "apiroute";
|
|
3844
|
-
const
|
|
3844
|
+
const isCheaperInference = memoryLlmProvider === "cheaperinference";
|
|
3845
|
+
const usesPresetKeyOnly = isAtlasCloud || isRequesty || isApiRoute || isCheaperInference;
|
|
3845
3846
|
const memoryLlmApiKey = first(
|
|
3846
3847
|
process.env.MEMORIX_LLM_API_KEY,
|
|
3847
3848
|
process.env.MEMORIX_API_KEY,
|
|
@@ -3849,7 +3850,7 @@ function getResolvedConfig(options = {}) {
|
|
|
3849
3850
|
yaml.llm?.apiKey,
|
|
3850
3851
|
legacy.llm?.apiKey,
|
|
3851
3852
|
// Never borrow another provider's credentials for these gateway presets.
|
|
3852
|
-
isAtlasCloud ? process.env.ATLASCLOUD_API_KEY : isRequesty ? process.env.REQUESTY_API_KEY : isApiRoute ? process.env.API_ROUTE_API_KEY : process.env.OPENAI_API_KEY,
|
|
3853
|
+
isAtlasCloud ? process.env.ATLASCLOUD_API_KEY : isRequesty ? process.env.REQUESTY_API_KEY : isApiRoute ? process.env.API_ROUTE_API_KEY : isCheaperInference ? process.env.CHEAPER_INFERENCE_API_KEY : process.env.OPENAI_API_KEY,
|
|
3853
3854
|
usesPresetKeyOnly ? void 0 : process.env.ANTHROPIC_API_KEY,
|
|
3854
3855
|
usesPresetKeyOnly ? void 0 : openRouterMemoryLlmApiKey
|
|
3855
3856
|
);
|
|
@@ -4033,6 +4034,7 @@ function getEnvSourceNames() {
|
|
|
4033
4034
|
"OPENROUTER_API_KEY",
|
|
4034
4035
|
"REQUESTY_API_KEY",
|
|
4035
4036
|
"API_ROUTE_API_KEY",
|
|
4037
|
+
"CHEAPER_INFERENCE_API_KEY",
|
|
4036
4038
|
"ATLASCLOUD_API_KEY"
|
|
4037
4039
|
].filter((name) => process.env[name]);
|
|
4038
4040
|
}
|
|
@@ -7027,6 +7029,7 @@ var init_provider2 = __esm({
|
|
|
7027
7029
|
openrouter: { baseUrl: "https://openrouter.ai/api/v1", model: "openai/gpt-4.1-nano" },
|
|
7028
7030
|
requesty: { baseUrl: "https://router.requesty.ai/v1", model: "openai/gpt-4.1-nano" },
|
|
7029
7031
|
apiroute: { baseUrl: "https://global.api-route.com/v1", model: "deepseek-v4.1-flash" },
|
|
7032
|
+
cheaperinference: { baseUrl: "https://api.cheaperinference.com/v1", model: "gpt-5.4-mini" },
|
|
7030
7033
|
atlascloud: { baseUrl: "https://api.atlascloud.ai/v1", model: "deepseek-ai/deepseek-v3.2" },
|
|
7031
7034
|
custom: { baseUrl: "http://localhost:11434/v1", model: "llama3" }
|
|
7032
7035
|
};
|
|
@@ -8589,6 +8592,7 @@ __export(orama_store_exports, {
|
|
|
8589
8592
|
getLastSearchMode: () => getLastSearchMode,
|
|
8590
8593
|
getObservationCount: () => getObservationCount,
|
|
8591
8594
|
getObservationsByIds: () => getObservationsByIds,
|
|
8595
|
+
getSearchDerivedViews: () => getSearchDerivedViews,
|
|
8592
8596
|
getTimeline: () => getTimeline,
|
|
8593
8597
|
getVectorDimensions: () => getVectorDimensions,
|
|
8594
8598
|
hasObservationVector: () => hasObservationVector,
|
|
@@ -8619,6 +8623,56 @@ function getLastSearchDiagnostics(projectId) {
|
|
|
8619
8623
|
const diagnostics = lastSearchDiagnosticsByProject.get(projectId ?? SEARCH_MODE_DEFAULT_KEY);
|
|
8620
8624
|
return diagnostics ? { ...diagnostics } : void 0;
|
|
8621
8625
|
}
|
|
8626
|
+
function getSearchDerivedViews() {
|
|
8627
|
+
const views = {};
|
|
8628
|
+
const store = getOptionalObservationStore();
|
|
8629
|
+
if (store) {
|
|
8630
|
+
try {
|
|
8631
|
+
const generation = store.getGeneration();
|
|
8632
|
+
if (store.hasLexicalIndex?.()) {
|
|
8633
|
+
views.fts = { generation, freshness: "current", rebuildStatus: "idle" };
|
|
8634
|
+
} else {
|
|
8635
|
+
views.fts = {
|
|
8636
|
+
generation,
|
|
8637
|
+
freshness: "unknown",
|
|
8638
|
+
rebuildStatus: "unavailable",
|
|
8639
|
+
failureReason: store.getBackendReason?.() ?? "persistent lexical index unavailable"
|
|
8640
|
+
};
|
|
8641
|
+
}
|
|
8642
|
+
} catch (error) {
|
|
8643
|
+
views.fts = {
|
|
8644
|
+
freshness: "unknown",
|
|
8645
|
+
rebuildStatus: "failed",
|
|
8646
|
+
failureReason: error instanceof Error ? error.message.slice(0, 240) : String(error).slice(0, 240)
|
|
8647
|
+
};
|
|
8648
|
+
}
|
|
8649
|
+
} else {
|
|
8650
|
+
views.fts = {
|
|
8651
|
+
freshness: "unknown",
|
|
8652
|
+
rebuildStatus: "unavailable",
|
|
8653
|
+
failureReason: "observation store is not initialized"
|
|
8654
|
+
};
|
|
8655
|
+
}
|
|
8656
|
+
views.orama = db ? { generation: dbGeneration, freshness: "current", rebuildStatus: "idle" } : {
|
|
8657
|
+
generation: dbGeneration,
|
|
8658
|
+
freshness: "unknown",
|
|
8659
|
+
rebuildStatus: "unavailable",
|
|
8660
|
+
failureReason: "Orama index is not initialized"
|
|
8661
|
+
};
|
|
8662
|
+
const configuredEmbeddingMode = process.env.MEMORIX_EMBEDDING?.trim().toLowerCase();
|
|
8663
|
+
if (configuredEmbeddingMode === "off") {
|
|
8664
|
+
views.embedding = { freshness: "current", rebuildStatus: "disabled" };
|
|
8665
|
+
} else if (embeddingEnabled) {
|
|
8666
|
+
views.embedding = { freshness: "current", rebuildStatus: "idle" };
|
|
8667
|
+
} else {
|
|
8668
|
+
views.embedding = {
|
|
8669
|
+
freshness: "unknown",
|
|
8670
|
+
rebuildStatus: "unavailable",
|
|
8671
|
+
failureReason: "embedding provider is not initialized"
|
|
8672
|
+
};
|
|
8673
|
+
}
|
|
8674
|
+
return views;
|
|
8675
|
+
}
|
|
8622
8676
|
function rememberSearchDiagnostics(key, value) {
|
|
8623
8677
|
if (!lastSearchDiagnosticsByProject.has(key) && lastSearchDiagnosticsByProject.size >= MAX_SEARCH_MODE_KEYS) {
|
|
8624
8678
|
const oldest = lastSearchDiagnosticsByProject.keys().next().value;
|
|
@@ -155717,6 +155771,14 @@ This project does have stored Memorix memories, but none matched the current que
|
|
|
155717
155771
|
}
|
|
155718
155772
|
const totalTokens = countTextTokens(formatted);
|
|
155719
155773
|
const diagnostics = getLastSearchDiagnostics(options.projectId);
|
|
155774
|
+
const derivedViews = getSearchDerivedViews();
|
|
155775
|
+
if (diagnostics?.fallbackUsed && diagnostics.fallbackReason) {
|
|
155776
|
+
derivedViews.embedding = {
|
|
155777
|
+
freshness: "stale",
|
|
155778
|
+
rebuildStatus: "failed",
|
|
155779
|
+
failureReason: diagnostics.fallbackReason
|
|
155780
|
+
};
|
|
155781
|
+
}
|
|
155720
155782
|
return {
|
|
155721
155783
|
entries,
|
|
155722
155784
|
formatted,
|
|
@@ -155731,6 +155793,7 @@ This project does have stored Memorix memories, but none matched the current que
|
|
|
155731
155793
|
omittedByTokenBudget: diagnostics?.omittedByTokenBudget ?? 0,
|
|
155732
155794
|
fallbackUsed: diagnostics?.fallbackUsed ?? false,
|
|
155733
155795
|
...diagnostics?.fallbackReason ? { fallbackReason: diagnostics.fallbackReason } : {},
|
|
155796
|
+
derivedViews,
|
|
155734
155797
|
tokenCount: totalTokens,
|
|
155735
155798
|
elapsedMs: Math.max(0, Date.now() - startedAt)
|
|
155736
155799
|
}
|
|
@@ -160381,7 +160444,7 @@ var init_request_context = __esm({
|
|
|
160381
160444
|
function getMcpServerInfo() {
|
|
160382
160445
|
return {
|
|
160383
160446
|
name: "memorix",
|
|
160384
|
-
version: true ? "1.10.
|
|
160447
|
+
version: true ? "1.10.1" : "1.0.1"
|
|
160385
160448
|
};
|
|
160386
160449
|
}
|
|
160387
160450
|
function createMcpDiscoverResult(capabilities, serverInfo) {
|
|
@@ -161823,6 +161886,10 @@ async function buildTaskWorkset(input) {
|
|
|
161823
161886
|
budget: { maxTokens }
|
|
161824
161887
|
});
|
|
161825
161888
|
const omittedReceipt = receiptOmissions(rendered.omittedItems, base.hiddenCautionMemoryCount);
|
|
161889
|
+
const derivedViews = {
|
|
161890
|
+
...getSearchDerivedViews(),
|
|
161891
|
+
...input.retrieval?.derivedViews ?? {}
|
|
161892
|
+
};
|
|
161826
161893
|
const retrieval = {
|
|
161827
161894
|
mode: input.retrieval?.mode ?? (input.semanticCode ? "hybrid" : "unknown"),
|
|
161828
161895
|
...input.retrieval?.codeProvider || input.providerQuality?.selected ? { codeProvider: input.retrieval?.codeProvider ?? input.providerQuality?.selected } : {},
|
|
@@ -161830,7 +161897,8 @@ async function buildTaskWorkset(input) {
|
|
|
161830
161897
|
...input.retrieval?.fallbackReason ? { fallbackReason: input.retrieval.fallbackReason } : {},
|
|
161831
161898
|
candidateCount: governed.plan.decisions.length,
|
|
161832
161899
|
selectedCount: rendered.selected.length,
|
|
161833
|
-
omittedCount: omittedReceipt.reduce((total, omission) => total + omission.count, 0)
|
|
161900
|
+
omittedCount: omittedReceipt.reduce((total, omission) => total + omission.count, 0),
|
|
161901
|
+
derivedViews
|
|
161834
161902
|
};
|
|
161835
161903
|
const receipt = {
|
|
161836
161904
|
version: "1.3",
|
|
@@ -161889,6 +161957,7 @@ var init_workset = __esm({
|
|
|
161889
161957
|
init_workflows2();
|
|
161890
161958
|
init_long_term();
|
|
161891
161959
|
init_governor();
|
|
161960
|
+
init_orama_store();
|
|
161892
161961
|
CONTINUATION_DETAIL_TOKEN_BUDGET = 20;
|
|
161893
161962
|
}
|
|
161894
161963
|
});
|
|
@@ -163188,6 +163257,60 @@ var init_project_context = __esm({
|
|
|
163188
163257
|
}
|
|
163189
163258
|
});
|
|
163190
163259
|
|
|
163260
|
+
// src/knowledge/context-receipt.ts
|
|
163261
|
+
var context_receipt_exports = {};
|
|
163262
|
+
__export(context_receipt_exports, {
|
|
163263
|
+
buildBoundedContextReceipt: () => buildBoundedContextReceipt,
|
|
163264
|
+
buildCodeGraphDerivedView: () => buildCodeGraphDerivedView
|
|
163265
|
+
});
|
|
163266
|
+
function buildCodeGraphDerivedView(input) {
|
|
163267
|
+
const provider2 = input.providerQuality;
|
|
163268
|
+
const snapshot = input.snapshot;
|
|
163269
|
+
const externalFailure = provider2?.external.state !== void 0 && !["ready", "disabled", "not-detected"].includes(provider2.external.state);
|
|
163270
|
+
if (snapshot?.id) {
|
|
163271
|
+
return {
|
|
163272
|
+
...snapshot.sourceEpoch !== void 0 ? { generation: snapshot.sourceEpoch } : {},
|
|
163273
|
+
freshness: snapshot.incomplete ? "stale" : "current",
|
|
163274
|
+
rebuildStatus: snapshot.incomplete ? "failed" : "idle",
|
|
163275
|
+
...snapshot.incomplete ? { failureReason: "latest CodeGraph snapshot is incomplete" } : externalFailure && provider2?.external.reason ? { failureReason: provider2.external.reason.slice(0, 240) } : {}
|
|
163276
|
+
};
|
|
163277
|
+
}
|
|
163278
|
+
return {
|
|
163279
|
+
freshness: "unknown",
|
|
163280
|
+
rebuildStatus: externalFailure ? "failed" : "unavailable",
|
|
163281
|
+
...provider2?.external.reason ? { failureReason: provider2.external.reason.slice(0, 240) } : { failureReason: "CodeGraph snapshot is not initialized" }
|
|
163282
|
+
};
|
|
163283
|
+
}
|
|
163284
|
+
function buildBoundedContextReceipt(input) {
|
|
163285
|
+
const provider2 = input.providerQuality ?? input.workset.provenance.codeProvider;
|
|
163286
|
+
return {
|
|
163287
|
+
schemaVersion: "1",
|
|
163288
|
+
task: input.workset.task,
|
|
163289
|
+
brief: input.workset.prompt,
|
|
163290
|
+
receipt: input.workset.receipt,
|
|
163291
|
+
code: {
|
|
163292
|
+
selected: provider2?.selected ?? "lite",
|
|
163293
|
+
quality: provider2?.selectedQuality ?? "heuristic",
|
|
163294
|
+
externalState: provider2?.external.state ?? "not-detected",
|
|
163295
|
+
...input.workset.provenance.snapshotId ? { snapshotId: input.workset.provenance.snapshotId } : {}
|
|
163296
|
+
},
|
|
163297
|
+
...input.workset.agentLoadout ? { loadout: input.workset.agentLoadout } : {},
|
|
163298
|
+
...input.workset.continuity ? {
|
|
163299
|
+
continuity: {
|
|
163300
|
+
taskId: input.workset.continuity.taskId,
|
|
163301
|
+
status: input.workset.continuity.status,
|
|
163302
|
+
outcome: input.workset.continuity.outcome
|
|
163303
|
+
}
|
|
163304
|
+
} : {}
|
|
163305
|
+
};
|
|
163306
|
+
}
|
|
163307
|
+
var init_context_receipt = __esm({
|
|
163308
|
+
"src/knowledge/context-receipt.ts"() {
|
|
163309
|
+
"use strict";
|
|
163310
|
+
init_esm_shims();
|
|
163311
|
+
}
|
|
163312
|
+
});
|
|
163313
|
+
|
|
163191
163314
|
// src/store/compaction-checkpoint-store.ts
|
|
163192
163315
|
var compaction_checkpoint_store_exports = {};
|
|
163193
163316
|
__export(compaction_checkpoint_store_exports, {
|
|
@@ -164077,7 +164200,19 @@ async function buildAutoProjectContext(input) {
|
|
|
164077
164200
|
retrieval: {
|
|
164078
164201
|
mode: semanticOutline ? "hybrid" : "lexical",
|
|
164079
164202
|
codeProvider: providerQuality2.selected,
|
|
164080
|
-
...externalCaution ? { fallbackReason: externalCaution } : {}
|
|
164203
|
+
...externalCaution ? { fallbackReason: externalCaution } : {},
|
|
164204
|
+
derivedViews: {
|
|
164205
|
+
graph: buildCodeGraphDerivedView({
|
|
164206
|
+
providerQuality: providerQuality2,
|
|
164207
|
+
...latestSnapshot ? {
|
|
164208
|
+
snapshot: {
|
|
164209
|
+
id: latestSnapshot.id,
|
|
164210
|
+
sourceEpoch: latestSnapshot.sourceEpoch,
|
|
164211
|
+
incomplete: latestSnapshot.completeness.skippedOversizedFiles > 0 || (latestSnapshot.completeness.unreadableFiles ?? 0) > 0 || latestSnapshot.completeness.removalScanDeferred
|
|
164212
|
+
}
|
|
164213
|
+
} : {}
|
|
164214
|
+
})
|
|
164215
|
+
}
|
|
164081
164216
|
},
|
|
164082
164217
|
currentFacts: worksetFactLines(currentFacts),
|
|
164083
164218
|
...continuation ? { continuation } : {},
|
|
@@ -164407,47 +164542,13 @@ var init_auto_context = __esm({
|
|
|
164407
164542
|
init_long_term();
|
|
164408
164543
|
init_visibility();
|
|
164409
164544
|
init_session_store();
|
|
164545
|
+
init_context_receipt();
|
|
164410
164546
|
init_task_lens();
|
|
164411
164547
|
DEFAULT_MAX_AGE_MS = 10 * 60 * 1e3;
|
|
164412
164548
|
COMPACT_CHECKPOINT_MAX_AGE_MS = 24 * 60 * 60 * 1e3;
|
|
164413
164549
|
}
|
|
164414
164550
|
});
|
|
164415
164551
|
|
|
164416
|
-
// src/knowledge/context-receipt.ts
|
|
164417
|
-
var context_receipt_exports = {};
|
|
164418
|
-
__export(context_receipt_exports, {
|
|
164419
|
-
buildBoundedContextReceipt: () => buildBoundedContextReceipt
|
|
164420
|
-
});
|
|
164421
|
-
function buildBoundedContextReceipt(input) {
|
|
164422
|
-
const provider2 = input.providerQuality ?? input.workset.provenance.codeProvider;
|
|
164423
|
-
return {
|
|
164424
|
-
schemaVersion: "1",
|
|
164425
|
-
task: input.workset.task,
|
|
164426
|
-
brief: input.workset.prompt,
|
|
164427
|
-
receipt: input.workset.receipt,
|
|
164428
|
-
code: {
|
|
164429
|
-
selected: provider2?.selected ?? "lite",
|
|
164430
|
-
quality: provider2?.selectedQuality ?? "heuristic",
|
|
164431
|
-
externalState: provider2?.external.state ?? "not-detected",
|
|
164432
|
-
...input.workset.provenance.snapshotId ? { snapshotId: input.workset.provenance.snapshotId } : {}
|
|
164433
|
-
},
|
|
164434
|
-
...input.workset.agentLoadout ? { loadout: input.workset.agentLoadout } : {},
|
|
164435
|
-
...input.workset.continuity ? {
|
|
164436
|
-
continuity: {
|
|
164437
|
-
taskId: input.workset.continuity.taskId,
|
|
164438
|
-
status: input.workset.continuity.status,
|
|
164439
|
-
outcome: input.workset.continuity.outcome
|
|
164440
|
-
}
|
|
164441
|
-
} : {}
|
|
164442
|
-
};
|
|
164443
|
-
}
|
|
164444
|
-
var init_context_receipt = __esm({
|
|
164445
|
-
"src/knowledge/context-receipt.ts"() {
|
|
164446
|
-
"use strict";
|
|
164447
|
-
init_esm_shims();
|
|
164448
|
-
}
|
|
164449
|
-
});
|
|
164450
|
-
|
|
164451
164552
|
// src/codegraph/context-pack.ts
|
|
164452
164553
|
var context_pack_exports = {};
|
|
164453
164554
|
__export(context_pack_exports, {
|
|
@@ -164626,7 +164727,19 @@ async function attachTaskWorkset(input) {
|
|
|
164626
164727
|
...input.providerQuality ? { providerQuality: input.providerQuality } : {},
|
|
164627
164728
|
retrieval: {
|
|
164628
164729
|
mode: semanticCode ? "hybrid" : "unknown",
|
|
164629
|
-
...input.providerQuality?.selected ? { codeProvider: input.providerQuality.selected } : {}
|
|
164730
|
+
...input.providerQuality?.selected ? { codeProvider: input.providerQuality.selected } : {},
|
|
164731
|
+
derivedViews: {
|
|
164732
|
+
graph: buildCodeGraphDerivedView({
|
|
164733
|
+
providerQuality: input.providerQuality,
|
|
164734
|
+
...input.snapshot ? {
|
|
164735
|
+
snapshot: {
|
|
164736
|
+
id: input.snapshot.id,
|
|
164737
|
+
sourceEpoch: input.snapshot.sourceEpoch,
|
|
164738
|
+
incomplete: input.snapshot.incomplete
|
|
164739
|
+
}
|
|
164740
|
+
} : {}
|
|
164741
|
+
})
|
|
164742
|
+
}
|
|
164630
164743
|
},
|
|
164631
164744
|
reliableMemory: input.pack.memories.filter((memory) => memory.status === "current").map((memory) => ({
|
|
164632
164745
|
id: memory.id,
|
|
@@ -164698,6 +164811,7 @@ var init_context_pack = __esm({
|
|
|
164698
164811
|
"use strict";
|
|
164699
164812
|
init_esm_shims();
|
|
164700
164813
|
init_freshness2();
|
|
164814
|
+
init_context_receipt();
|
|
164701
164815
|
init_workset();
|
|
164702
164816
|
init_exclude3();
|
|
164703
164817
|
init_semantic_context();
|
|
@@ -167874,7 +167988,8 @@ async function handleApi(req, res, dataDir, projectId, projectName, baseDir, pro
|
|
|
167874
167988
|
"ANTHROPIC_API_KEY",
|
|
167875
167989
|
...resolved.memory.llm.provider === "openrouter" || resolved.memory.llm.baseUrl?.includes("openrouter.ai") ? ["OPENROUTER_API_KEY"] : [],
|
|
167876
167990
|
...resolved.memory.llm.provider === "requesty" ? ["REQUESTY_API_KEY"] : [],
|
|
167877
|
-
...resolved.memory.llm.provider === "apiroute" ? ["API_ROUTE_API_KEY"] : []
|
|
167991
|
+
...resolved.memory.llm.provider === "apiroute" ? ["API_ROUTE_API_KEY"] : [],
|
|
167992
|
+
...resolved.memory.llm.provider === "cheaperinference" ? ["CHEAPER_INFERENCE_API_KEY"] : []
|
|
167878
167993
|
];
|
|
167879
167994
|
if (llmKey) {
|
|
167880
167995
|
const src = resolveDashboardKeySource({ value: llmKey, envKeys: memoryKeyEnv, configSource });
|
|
@@ -169460,7 +169575,7 @@ async function analyzeImage(input) {
|
|
|
169460
169575
|
const config = getLLMConfig();
|
|
169461
169576
|
if (!OPENAI_COMPATIBLE_PROVIDERS.has(config.provider)) {
|
|
169462
169577
|
throw new Error(
|
|
169463
|
-
`Image analysis requires an OpenAI-compatible provider (openai, openrouter, requesty, apiroute, or custom). Current provider "${config.provider}" uses a different API shape. Set MEMORIX_LLM_PROVIDER=openai or configure an OpenAI-compatible base URL.`
|
|
169578
|
+
`Image analysis requires an OpenAI-compatible provider (openai, openrouter, requesty, apiroute, cheaperinference, or custom). Current provider "${config.provider}" uses a different API shape. Set MEMORIX_LLM_PROVIDER=openai or configure an OpenAI-compatible base URL.`
|
|
169464
169579
|
);
|
|
169465
169580
|
}
|
|
169466
169581
|
const bytes = decodeBase64ImagePayload(input.base64, MAX_VISION_IMAGE_BYTES);
|
|
@@ -169499,7 +169614,7 @@ var init_image_loader = __esm({
|
|
|
169499
169614
|
init_provider2();
|
|
169500
169615
|
init_secret_filter();
|
|
169501
169616
|
init_image_payload();
|
|
169502
|
-
OPENAI_COMPATIBLE_PROVIDERS = /* @__PURE__ */ new Set(["openai", "openrouter", "requesty", "apiroute", "custom"]);
|
|
169617
|
+
OPENAI_COMPATIBLE_PROVIDERS = /* @__PURE__ */ new Set(["openai", "openrouter", "requesty", "apiroute", "cheaperinference", "custom"]);
|
|
169503
169618
|
MAX_VISION_PROMPT_CHARS = 12e3;
|
|
169504
169619
|
MAX_VISION_DESCRIPTION_CHARS = 12e3;
|
|
169505
169620
|
MAX_VISION_LABELS = 50;
|
|
@@ -177066,7 +177181,7 @@ var init_serve_shared = __esm({
|
|
|
177066
177181
|
|
|
177067
177182
|
// src/cli/version.ts
|
|
177068
177183
|
function getCliVersion() {
|
|
177069
|
-
return true ? "1.10.
|
|
177184
|
+
return true ? "1.10.1" : pkg.version;
|
|
177070
177185
|
}
|
|
177071
177186
|
var init_version3 = __esm({
|
|
177072
177187
|
"src/cli/version.ts"() {
|
|
@@ -2112,7 +2112,8 @@ function getResolvedConfig(options = {}) {
|
|
|
2112
2112
|
const isAtlasCloud = memoryLlmProvider === "atlascloud";
|
|
2113
2113
|
const isRequesty = memoryLlmProvider === "requesty";
|
|
2114
2114
|
const isApiRoute = memoryLlmProvider === "apiroute";
|
|
2115
|
-
const
|
|
2115
|
+
const isCheaperInference = memoryLlmProvider === "cheaperinference";
|
|
2116
|
+
const usesPresetKeyOnly = isAtlasCloud || isRequesty || isApiRoute || isCheaperInference;
|
|
2116
2117
|
const memoryLlmApiKey = first(
|
|
2117
2118
|
process.env.MEMORIX_LLM_API_KEY,
|
|
2118
2119
|
process.env.MEMORIX_API_KEY,
|
|
@@ -2120,7 +2121,7 @@ function getResolvedConfig(options = {}) {
|
|
|
2120
2121
|
yaml.llm?.apiKey,
|
|
2121
2122
|
legacy.llm?.apiKey,
|
|
2122
2123
|
// Never borrow another provider's credentials for these gateway presets.
|
|
2123
|
-
isAtlasCloud ? process.env.ATLASCLOUD_API_KEY : isRequesty ? process.env.REQUESTY_API_KEY : isApiRoute ? process.env.API_ROUTE_API_KEY : process.env.OPENAI_API_KEY,
|
|
2124
|
+
isAtlasCloud ? process.env.ATLASCLOUD_API_KEY : isRequesty ? process.env.REQUESTY_API_KEY : isApiRoute ? process.env.API_ROUTE_API_KEY : isCheaperInference ? process.env.CHEAPER_INFERENCE_API_KEY : process.env.OPENAI_API_KEY,
|
|
2124
2125
|
usesPresetKeyOnly ? void 0 : process.env.ANTHROPIC_API_KEY,
|
|
2125
2126
|
usesPresetKeyOnly ? void 0 : openRouterMemoryLlmApiKey
|
|
2126
2127
|
);
|
|
@@ -2304,6 +2305,7 @@ function getEnvSourceNames() {
|
|
|
2304
2305
|
"OPENROUTER_API_KEY",
|
|
2305
2306
|
"REQUESTY_API_KEY",
|
|
2306
2307
|
"API_ROUTE_API_KEY",
|
|
2308
|
+
"CHEAPER_INFERENCE_API_KEY",
|
|
2307
2309
|
"ATLASCLOUD_API_KEY"
|
|
2308
2310
|
].filter((name) => process.env[name]);
|
|
2309
2311
|
}
|
|
@@ -3149,6 +3151,7 @@ var init_provider = __esm({
|
|
|
3149
3151
|
openrouter: { baseUrl: "https://openrouter.ai/api/v1", model: "openai/gpt-4.1-nano" },
|
|
3150
3152
|
requesty: { baseUrl: "https://router.requesty.ai/v1", model: "openai/gpt-4.1-nano" },
|
|
3151
3153
|
apiroute: { baseUrl: "https://global.api-route.com/v1", model: "deepseek-v4.1-flash" },
|
|
3154
|
+
cheaperinference: { baseUrl: "https://api.cheaperinference.com/v1", model: "gpt-5.4-mini" },
|
|
3152
3155
|
atlascloud: { baseUrl: "https://api.atlascloud.ai/v1", model: "deepseek-ai/deepseek-v3.2" },
|
|
3153
3156
|
custom: { baseUrl: "http://localhost:11434/v1", model: "llama3" }
|
|
3154
3157
|
};
|
|
@@ -7155,6 +7158,7 @@ __export(orama_store_exports, {
|
|
|
7155
7158
|
getLastSearchMode: () => getLastSearchMode,
|
|
7156
7159
|
getObservationCount: () => getObservationCount,
|
|
7157
7160
|
getObservationsByIds: () => getObservationsByIds,
|
|
7161
|
+
getSearchDerivedViews: () => getSearchDerivedViews,
|
|
7158
7162
|
getTimeline: () => getTimeline,
|
|
7159
7163
|
getVectorDimensions: () => getVectorDimensions,
|
|
7160
7164
|
hasObservationVector: () => hasObservationVector,
|
|
@@ -7185,6 +7189,56 @@ function getLastSearchDiagnostics(projectId) {
|
|
|
7185
7189
|
const diagnostics = lastSearchDiagnosticsByProject.get(projectId ?? SEARCH_MODE_DEFAULT_KEY);
|
|
7186
7190
|
return diagnostics ? { ...diagnostics } : void 0;
|
|
7187
7191
|
}
|
|
7192
|
+
function getSearchDerivedViews() {
|
|
7193
|
+
const views = {};
|
|
7194
|
+
const store = getOptionalObservationStore();
|
|
7195
|
+
if (store) {
|
|
7196
|
+
try {
|
|
7197
|
+
const generation = store.getGeneration();
|
|
7198
|
+
if (store.hasLexicalIndex?.()) {
|
|
7199
|
+
views.fts = { generation, freshness: "current", rebuildStatus: "idle" };
|
|
7200
|
+
} else {
|
|
7201
|
+
views.fts = {
|
|
7202
|
+
generation,
|
|
7203
|
+
freshness: "unknown",
|
|
7204
|
+
rebuildStatus: "unavailable",
|
|
7205
|
+
failureReason: store.getBackendReason?.() ?? "persistent lexical index unavailable"
|
|
7206
|
+
};
|
|
7207
|
+
}
|
|
7208
|
+
} catch (error) {
|
|
7209
|
+
views.fts = {
|
|
7210
|
+
freshness: "unknown",
|
|
7211
|
+
rebuildStatus: "failed",
|
|
7212
|
+
failureReason: error instanceof Error ? error.message.slice(0, 240) : String(error).slice(0, 240)
|
|
7213
|
+
};
|
|
7214
|
+
}
|
|
7215
|
+
} else {
|
|
7216
|
+
views.fts = {
|
|
7217
|
+
freshness: "unknown",
|
|
7218
|
+
rebuildStatus: "unavailable",
|
|
7219
|
+
failureReason: "observation store is not initialized"
|
|
7220
|
+
};
|
|
7221
|
+
}
|
|
7222
|
+
views.orama = db ? { generation: dbGeneration, freshness: "current", rebuildStatus: "idle" } : {
|
|
7223
|
+
generation: dbGeneration,
|
|
7224
|
+
freshness: "unknown",
|
|
7225
|
+
rebuildStatus: "unavailable",
|
|
7226
|
+
failureReason: "Orama index is not initialized"
|
|
7227
|
+
};
|
|
7228
|
+
const configuredEmbeddingMode = process.env.MEMORIX_EMBEDDING?.trim().toLowerCase();
|
|
7229
|
+
if (configuredEmbeddingMode === "off") {
|
|
7230
|
+
views.embedding = { freshness: "current", rebuildStatus: "disabled" };
|
|
7231
|
+
} else if (embeddingEnabled) {
|
|
7232
|
+
views.embedding = { freshness: "current", rebuildStatus: "idle" };
|
|
7233
|
+
} else {
|
|
7234
|
+
views.embedding = {
|
|
7235
|
+
freshness: "unknown",
|
|
7236
|
+
rebuildStatus: "unavailable",
|
|
7237
|
+
failureReason: "embedding provider is not initialized"
|
|
7238
|
+
};
|
|
7239
|
+
}
|
|
7240
|
+
return views;
|
|
7241
|
+
}
|
|
7188
7242
|
function rememberSearchDiagnostics(key, value) {
|
|
7189
7243
|
if (!lastSearchDiagnosticsByProject.has(key) && lastSearchDiagnosticsByProject.size >= MAX_SEARCH_MODE_KEYS) {
|
|
7190
7244
|
const oldest = lastSearchDiagnosticsByProject.keys().next().value;
|
|
@@ -3395,7 +3395,8 @@ function getResolvedConfig(options = {}) {
|
|
|
3395
3395
|
const isAtlasCloud = memoryLlmProvider === "atlascloud";
|
|
3396
3396
|
const isRequesty = memoryLlmProvider === "requesty";
|
|
3397
3397
|
const isApiRoute = memoryLlmProvider === "apiroute";
|
|
3398
|
-
const
|
|
3398
|
+
const isCheaperInference = memoryLlmProvider === "cheaperinference";
|
|
3399
|
+
const usesPresetKeyOnly = isAtlasCloud || isRequesty || isApiRoute || isCheaperInference;
|
|
3399
3400
|
const memoryLlmApiKey = first(
|
|
3400
3401
|
process.env.MEMORIX_LLM_API_KEY,
|
|
3401
3402
|
process.env.MEMORIX_API_KEY,
|
|
@@ -3403,7 +3404,7 @@ function getResolvedConfig(options = {}) {
|
|
|
3403
3404
|
yaml.llm?.apiKey,
|
|
3404
3405
|
legacy.llm?.apiKey,
|
|
3405
3406
|
// Never borrow another provider's credentials for these gateway presets.
|
|
3406
|
-
isAtlasCloud ? process.env.ATLASCLOUD_API_KEY : isRequesty ? process.env.REQUESTY_API_KEY : isApiRoute ? process.env.API_ROUTE_API_KEY : process.env.OPENAI_API_KEY,
|
|
3407
|
+
isAtlasCloud ? process.env.ATLASCLOUD_API_KEY : isRequesty ? process.env.REQUESTY_API_KEY : isApiRoute ? process.env.API_ROUTE_API_KEY : isCheaperInference ? process.env.CHEAPER_INFERENCE_API_KEY : process.env.OPENAI_API_KEY,
|
|
3407
3408
|
usesPresetKeyOnly ? void 0 : process.env.ANTHROPIC_API_KEY,
|
|
3408
3409
|
usesPresetKeyOnly ? void 0 : openRouterMemoryLlmApiKey
|
|
3409
3410
|
);
|
|
@@ -3587,6 +3588,7 @@ function getEnvSourceNames() {
|
|
|
3587
3588
|
"OPENROUTER_API_KEY",
|
|
3588
3589
|
"REQUESTY_API_KEY",
|
|
3589
3590
|
"API_ROUTE_API_KEY",
|
|
3591
|
+
"CHEAPER_INFERENCE_API_KEY",
|
|
3590
3592
|
"ATLASCLOUD_API_KEY"
|
|
3591
3593
|
].filter((name) => process.env[name]);
|
|
3592
3594
|
}
|
|
@@ -6581,6 +6583,7 @@ var init_provider2 = __esm({
|
|
|
6581
6583
|
openrouter: { baseUrl: "https://openrouter.ai/api/v1", model: "openai/gpt-4.1-nano" },
|
|
6582
6584
|
requesty: { baseUrl: "https://router.requesty.ai/v1", model: "openai/gpt-4.1-nano" },
|
|
6583
6585
|
apiroute: { baseUrl: "https://global.api-route.com/v1", model: "deepseek-v4.1-flash" },
|
|
6586
|
+
cheaperinference: { baseUrl: "https://api.cheaperinference.com/v1", model: "gpt-5.4-mini" },
|
|
6584
6587
|
atlascloud: { baseUrl: "https://api.atlascloud.ai/v1", model: "deepseek-ai/deepseek-v3.2" },
|
|
6585
6588
|
custom: { baseUrl: "http://localhost:11434/v1", model: "llama3" }
|
|
6586
6589
|
};
|
|
@@ -8143,6 +8146,7 @@ __export(orama_store_exports, {
|
|
|
8143
8146
|
getLastSearchMode: () => getLastSearchMode,
|
|
8144
8147
|
getObservationCount: () => getObservationCount,
|
|
8145
8148
|
getObservationsByIds: () => getObservationsByIds,
|
|
8149
|
+
getSearchDerivedViews: () => getSearchDerivedViews,
|
|
8146
8150
|
getTimeline: () => getTimeline,
|
|
8147
8151
|
getVectorDimensions: () => getVectorDimensions,
|
|
8148
8152
|
hasObservationVector: () => hasObservationVector,
|
|
@@ -8173,6 +8177,56 @@ function getLastSearchDiagnostics(projectId) {
|
|
|
8173
8177
|
const diagnostics = lastSearchDiagnosticsByProject.get(projectId ?? SEARCH_MODE_DEFAULT_KEY);
|
|
8174
8178
|
return diagnostics ? { ...diagnostics } : void 0;
|
|
8175
8179
|
}
|
|
8180
|
+
function getSearchDerivedViews() {
|
|
8181
|
+
const views = {};
|
|
8182
|
+
const store = getOptionalObservationStore();
|
|
8183
|
+
if (store) {
|
|
8184
|
+
try {
|
|
8185
|
+
const generation = store.getGeneration();
|
|
8186
|
+
if (store.hasLexicalIndex?.()) {
|
|
8187
|
+
views.fts = { generation, freshness: "current", rebuildStatus: "idle" };
|
|
8188
|
+
} else {
|
|
8189
|
+
views.fts = {
|
|
8190
|
+
generation,
|
|
8191
|
+
freshness: "unknown",
|
|
8192
|
+
rebuildStatus: "unavailable",
|
|
8193
|
+
failureReason: store.getBackendReason?.() ?? "persistent lexical index unavailable"
|
|
8194
|
+
};
|
|
8195
|
+
}
|
|
8196
|
+
} catch (error) {
|
|
8197
|
+
views.fts = {
|
|
8198
|
+
freshness: "unknown",
|
|
8199
|
+
rebuildStatus: "failed",
|
|
8200
|
+
failureReason: error instanceof Error ? error.message.slice(0, 240) : String(error).slice(0, 240)
|
|
8201
|
+
};
|
|
8202
|
+
}
|
|
8203
|
+
} else {
|
|
8204
|
+
views.fts = {
|
|
8205
|
+
freshness: "unknown",
|
|
8206
|
+
rebuildStatus: "unavailable",
|
|
8207
|
+
failureReason: "observation store is not initialized"
|
|
8208
|
+
};
|
|
8209
|
+
}
|
|
8210
|
+
views.orama = db ? { generation: dbGeneration, freshness: "current", rebuildStatus: "idle" } : {
|
|
8211
|
+
generation: dbGeneration,
|
|
8212
|
+
freshness: "unknown",
|
|
8213
|
+
rebuildStatus: "unavailable",
|
|
8214
|
+
failureReason: "Orama index is not initialized"
|
|
8215
|
+
};
|
|
8216
|
+
const configuredEmbeddingMode = process.env.MEMORIX_EMBEDDING?.trim().toLowerCase();
|
|
8217
|
+
if (configuredEmbeddingMode === "off") {
|
|
8218
|
+
views.embedding = { freshness: "current", rebuildStatus: "disabled" };
|
|
8219
|
+
} else if (embeddingEnabled) {
|
|
8220
|
+
views.embedding = { freshness: "current", rebuildStatus: "idle" };
|
|
8221
|
+
} else {
|
|
8222
|
+
views.embedding = {
|
|
8223
|
+
freshness: "unknown",
|
|
8224
|
+
rebuildStatus: "unavailable",
|
|
8225
|
+
failureReason: "embedding provider is not initialized"
|
|
8226
|
+
};
|
|
8227
|
+
}
|
|
8228
|
+
return views;
|
|
8229
|
+
}
|
|
8176
8230
|
function rememberSearchDiagnostics(key, value) {
|
|
8177
8231
|
if (!lastSearchDiagnosticsByProject.has(key) && lastSearchDiagnosticsByProject.size >= MAX_SEARCH_MODE_KEYS) {
|
|
8178
8232
|
const oldest = lastSearchDiagnosticsByProject.keys().next().value;
|
|
@@ -2407,7 +2407,8 @@ function getResolvedConfig(options = {}) {
|
|
|
2407
2407
|
const isAtlasCloud = memoryLlmProvider === "atlascloud";
|
|
2408
2408
|
const isRequesty = memoryLlmProvider === "requesty";
|
|
2409
2409
|
const isApiRoute = memoryLlmProvider === "apiroute";
|
|
2410
|
-
const
|
|
2410
|
+
const isCheaperInference = memoryLlmProvider === "cheaperinference";
|
|
2411
|
+
const usesPresetKeyOnly = isAtlasCloud || isRequesty || isApiRoute || isCheaperInference;
|
|
2411
2412
|
const memoryLlmApiKey = first(
|
|
2412
2413
|
process.env.MEMORIX_LLM_API_KEY,
|
|
2413
2414
|
process.env.MEMORIX_API_KEY,
|
|
@@ -2415,7 +2416,7 @@ function getResolvedConfig(options = {}) {
|
|
|
2415
2416
|
yaml.llm?.apiKey,
|
|
2416
2417
|
legacy.llm?.apiKey,
|
|
2417
2418
|
// 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,
|
|
2419
|
+
isAtlasCloud ? process.env.ATLASCLOUD_API_KEY : isRequesty ? process.env.REQUESTY_API_KEY : isApiRoute ? process.env.API_ROUTE_API_KEY : isCheaperInference ? process.env.CHEAPER_INFERENCE_API_KEY : process.env.OPENAI_API_KEY,
|
|
2419
2420
|
usesPresetKeyOnly ? void 0 : process.env.ANTHROPIC_API_KEY,
|
|
2420
2421
|
usesPresetKeyOnly ? void 0 : openRouterMemoryLlmApiKey
|
|
2421
2422
|
);
|
|
@@ -2599,6 +2600,7 @@ function getEnvSourceNames() {
|
|
|
2599
2600
|
"OPENROUTER_API_KEY",
|
|
2600
2601
|
"REQUESTY_API_KEY",
|
|
2601
2602
|
"API_ROUTE_API_KEY",
|
|
2603
|
+
"CHEAPER_INFERENCE_API_KEY",
|
|
2602
2604
|
"ATLASCLOUD_API_KEY"
|
|
2603
2605
|
].filter((name) => process.env[name]);
|
|
2604
2606
|
}
|
|
@@ -5593,6 +5595,7 @@ var init_provider2 = __esm({
|
|
|
5593
5595
|
openrouter: { baseUrl: "https://openrouter.ai/api/v1", model: "openai/gpt-4.1-nano" },
|
|
5594
5596
|
requesty: { baseUrl: "https://router.requesty.ai/v1", model: "openai/gpt-4.1-nano" },
|
|
5595
5597
|
apiroute: { baseUrl: "https://global.api-route.com/v1", model: "deepseek-v4.1-flash" },
|
|
5598
|
+
cheaperinference: { baseUrl: "https://api.cheaperinference.com/v1", model: "gpt-5.4-mini" },
|
|
5596
5599
|
atlascloud: { baseUrl: "https://api.atlascloud.ai/v1", model: "deepseek-ai/deepseek-v3.2" },
|
|
5597
5600
|
custom: { baseUrl: "http://localhost:11434/v1", model: "llama3" }
|
|
5598
5601
|
};
|
|
@@ -7155,6 +7158,7 @@ __export(orama_store_exports, {
|
|
|
7155
7158
|
getLastSearchMode: () => getLastSearchMode,
|
|
7156
7159
|
getObservationCount: () => getObservationCount,
|
|
7157
7160
|
getObservationsByIds: () => getObservationsByIds,
|
|
7161
|
+
getSearchDerivedViews: () => getSearchDerivedViews,
|
|
7158
7162
|
getTimeline: () => getTimeline,
|
|
7159
7163
|
getVectorDimensions: () => getVectorDimensions,
|
|
7160
7164
|
hasObservationVector: () => hasObservationVector,
|
|
@@ -7185,6 +7189,56 @@ function getLastSearchDiagnostics(projectId) {
|
|
|
7185
7189
|
const diagnostics = lastSearchDiagnosticsByProject.get(projectId ?? SEARCH_MODE_DEFAULT_KEY);
|
|
7186
7190
|
return diagnostics ? { ...diagnostics } : void 0;
|
|
7187
7191
|
}
|
|
7192
|
+
function getSearchDerivedViews() {
|
|
7193
|
+
const views = {};
|
|
7194
|
+
const store = getOptionalObservationStore();
|
|
7195
|
+
if (store) {
|
|
7196
|
+
try {
|
|
7197
|
+
const generation = store.getGeneration();
|
|
7198
|
+
if (store.hasLexicalIndex?.()) {
|
|
7199
|
+
views.fts = { generation, freshness: "current", rebuildStatus: "idle" };
|
|
7200
|
+
} else {
|
|
7201
|
+
views.fts = {
|
|
7202
|
+
generation,
|
|
7203
|
+
freshness: "unknown",
|
|
7204
|
+
rebuildStatus: "unavailable",
|
|
7205
|
+
failureReason: store.getBackendReason?.() ?? "persistent lexical index unavailable"
|
|
7206
|
+
};
|
|
7207
|
+
}
|
|
7208
|
+
} catch (error) {
|
|
7209
|
+
views.fts = {
|
|
7210
|
+
freshness: "unknown",
|
|
7211
|
+
rebuildStatus: "failed",
|
|
7212
|
+
failureReason: error instanceof Error ? error.message.slice(0, 240) : String(error).slice(0, 240)
|
|
7213
|
+
};
|
|
7214
|
+
}
|
|
7215
|
+
} else {
|
|
7216
|
+
views.fts = {
|
|
7217
|
+
freshness: "unknown",
|
|
7218
|
+
rebuildStatus: "unavailable",
|
|
7219
|
+
failureReason: "observation store is not initialized"
|
|
7220
|
+
};
|
|
7221
|
+
}
|
|
7222
|
+
views.orama = db ? { generation: dbGeneration, freshness: "current", rebuildStatus: "idle" } : {
|
|
7223
|
+
generation: dbGeneration,
|
|
7224
|
+
freshness: "unknown",
|
|
7225
|
+
rebuildStatus: "unavailable",
|
|
7226
|
+
failureReason: "Orama index is not initialized"
|
|
7227
|
+
};
|
|
7228
|
+
const configuredEmbeddingMode = process.env.MEMORIX_EMBEDDING?.trim().toLowerCase();
|
|
7229
|
+
if (configuredEmbeddingMode === "off") {
|
|
7230
|
+
views.embedding = { freshness: "current", rebuildStatus: "disabled" };
|
|
7231
|
+
} else if (embeddingEnabled) {
|
|
7232
|
+
views.embedding = { freshness: "current", rebuildStatus: "idle" };
|
|
7233
|
+
} else {
|
|
7234
|
+
views.embedding = {
|
|
7235
|
+
freshness: "unknown",
|
|
7236
|
+
rebuildStatus: "unavailable",
|
|
7237
|
+
failureReason: "embedding provider is not initialized"
|
|
7238
|
+
};
|
|
7239
|
+
}
|
|
7240
|
+
return views;
|
|
7241
|
+
}
|
|
7188
7242
|
function rememberSearchDiagnostics(key, value) {
|
|
7189
7243
|
if (!lastSearchDiagnosticsByProject.has(key) && lastSearchDiagnosticsByProject.size >= MAX_SEARCH_MODE_KEYS) {
|
|
7190
7244
|
const oldest = lastSearchDiagnosticsByProject.keys().next().value;
|
|
@@ -6,6 +6,17 @@ All notable changes to this project will be documented in this file.
|
|
|
6
6
|
|
|
7
7
|
No unreleased changes.
|
|
8
8
|
|
|
9
|
+
## [1.10.1] - 2026-10-23
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **Cheaper Inference memory preset** -- optional background memory LLM
|
|
13
|
+
processing through an OpenAI-compatible endpoint, with an isolated
|
|
14
|
+
`CHEAPER_INFERENCE_API_KEY`, CLI/TUI setup and bilingual configuration
|
|
15
|
+
guidance.
|
|
16
|
+
- **Derived-view receipts** -- context and search receipts now expose
|
|
17
|
+
privacy-safe FTS, Orama, embedding, and CodeGraph freshness, generation,
|
|
18
|
+
rebuild status, and bounded failure reasons.
|
|
19
|
+
|
|
9
20
|
## [1.10.0] - 2026-10-23
|
|
10
21
|
|
|
11
22
|
### Added
|