@remnic/core 9.3.737 → 9.3.739
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/access-boundary.d.ts +6 -6
- package/dist/access-boundary.js +10 -10
- package/dist/access-cli.js +26 -26
- package/dist/access-http.d.ts +6 -6
- package/dist/access-http.js +15 -15
- package/dist/access-mcp.d.ts +6 -6
- package/dist/access-mcp.js +14 -14
- package/dist/access-operations-batch.js +12 -12
- package/dist/access-operations.d.ts +6 -6
- package/dist/access-operations.js +13 -13
- package/dist/{access-service-DwQ6BIQw.d.ts → access-service-Cbk-Kv_A.d.ts} +1 -1
- package/dist/access-service.d.ts +6 -6
- package/dist/access-service.js +9 -9
- package/dist/access-surface-catalog.d.ts +6 -6
- package/dist/active-memory-bridge.js +3 -3
- package/dist/bootstrap.d.ts +5 -5
- package/dist/buffer.js +2 -1
- package/dist/capabilities.d.ts +98 -1
- package/dist/capabilities.js +7 -1
- package/dist/{chunk-G54IDCD3.js → chunk-23PLOBWT.js} +30 -27
- package/dist/chunk-23PLOBWT.js.map +1 -0
- package/dist/{chunk-K3Y2SJTN.js → chunk-56LP72AD.js} +6 -6
- package/dist/{chunk-ZBZ4XULO.js → chunk-66RZ4EIT.js} +3 -3
- package/dist/{chunk-IPI45Q4S.js → chunk-75PDC7VT.js} +9 -8
- package/dist/chunk-75PDC7VT.js.map +1 -0
- package/dist/{chunk-GB2FZOWB.js → chunk-7B7IPPN5.js} +5 -5
- package/dist/{chunk-QNTLWH3T.js → chunk-A7INTIC5.js} +3 -3
- package/dist/{chunk-FLPKEMSO.js → chunk-AKKFHN3I.js} +2 -2
- package/dist/{chunk-AAIHDIMD.js → chunk-BHJAMSVC.js} +7 -7
- package/dist/{chunk-BXPG5AVX.js → chunk-BHQQVUEQ.js} +6 -6
- package/dist/{chunk-HFXZIF3V.js → chunk-BVG2IZOB.js} +3 -3
- package/dist/{chunk-NDKW67ER.js → chunk-C53JDEH3.js} +4 -4
- package/dist/{chunk-AESC5OQJ.js → chunk-CKHPUOAP.js} +2 -2
- package/dist/{chunk-OYHYBHHI.js → chunk-DS3FZ7GS.js} +4 -4
- package/dist/{chunk-UO6MPN77.js → chunk-EU543UDC.js} +10 -9
- package/dist/chunk-EU543UDC.js.map +1 -0
- package/dist/{chunk-PB5YON2G.js → chunk-IEWUPZ75.js} +659 -584
- package/dist/chunk-IEWUPZ75.js.map +1 -0
- package/dist/{chunk-E4LYJ7PY.js → chunk-IFCM6OLK.js} +6 -6
- package/dist/{chunk-5BOQNB2K.js → chunk-JQSP7YBJ.js} +3 -3
- package/dist/{chunk-2T2N7ISV.js → chunk-L3TYGUTH.js} +3 -3
- package/dist/{chunk-AB2E5DCN.js → chunk-MAU7DFCJ.js} +2 -2
- package/dist/{chunk-P6VLG7KE.js → chunk-N2O23WYA.js} +2 -2
- package/dist/{chunk-HYNHLBKA.js → chunk-OQQRWPFZ.js} +5 -2
- package/dist/chunk-OQQRWPFZ.js.map +1 -0
- package/dist/{chunk-IXGXALRV.js → chunk-QTJOORGN.js} +2 -2
- package/dist/{chunk-JWDE7OVJ.js → chunk-RJBW4EOU.js} +46 -2
- package/dist/{chunk-JWDE7OVJ.js.map → chunk-RJBW4EOU.js.map} +1 -1
- package/dist/{chunk-AE7NTZ75.js → chunk-TNLXCSXV.js} +3 -3
- package/dist/{chunk-NNJKEAP2.js → chunk-VRBBZH4U.js} +4 -4
- package/dist/{chunk-VOEVVIP3.js → chunk-W2FBVBQ4.js} +4 -4
- package/dist/{chunk-WNGXQMRI.js → chunk-WFNH4UDF.js} +5 -2
- package/dist/chunk-WFNH4UDF.js.map +1 -0
- package/dist/{chunk-CHJIWG2H.js → chunk-WVAEIKUY.js} +2 -2
- package/dist/{chunk-FF36YNKY.js → chunk-XIQAOGAA.js} +11 -10
- package/dist/chunk-XIQAOGAA.js.map +1 -0
- package/dist/{chunk-HLPYL6LC.js → chunk-Y5OOHER4.js} +14 -12
- package/dist/chunk-Y5OOHER4.js.map +1 -0
- package/dist/{chunk-GYICIICQ.js → chunk-YF2MMBKA.js} +9 -7
- package/dist/chunk-YF2MMBKA.js.map +1 -0
- package/dist/{chunk-IX4L7E5G.js → chunk-YXOXAQ5Y.js} +2 -2
- package/dist/{cli-BlEIWDQw.d.ts → cli-BQW2xKdb.d.ts} +2 -2
- package/dist/cli.d.ts +7 -7
- package/dist/cli.js +21 -21
- package/dist/compounding/engine.js +2 -2
- package/dist/contradiction/index.js +2 -2
- package/dist/{contradiction-scan-2B4AE4TI.js → contradiction-scan-CWO3LIWV.js} +3 -3
- package/dist/embedding-fallback.js +2 -2
- package/dist/entity-retrieval.js +2 -2
- package/dist/explicit-capture.d.ts +5 -5
- package/dist/explicit-capture.js +2 -2
- package/dist/extraction.js +3 -3
- package/dist/{first-start-migration-2RQYDIZ7.js → first-start-migration-5DXD3TF2.js} +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +32 -32
- package/dist/local-llm.js +2 -2
- package/dist/mcp-memory-inspector-app.d.ts +6 -6
- package/dist/namespaces/migrate.js +6 -6
- package/dist/namespaces/principal.js +2 -2
- package/dist/namespaces/search.js +4 -4
- package/dist/namespaces/storage.js +2 -2
- package/dist/operator-toolkit.js +11 -11
- package/dist/orchestration/compression-guideline-coordinator.js +2 -2
- package/dist/orchestration/maintenance.js +6 -6
- package/dist/{orchestrator-CJZ21ZiB.d.ts → orchestrator-BOAFN_Yr.d.ts} +186 -56
- package/dist/orchestrator.d.ts +4 -4
- package/dist/orchestrator.js +21 -21
- package/dist/search/embed-helper.js +2 -2
- package/dist/search/factory.js +3 -3
- package/dist/search/index.js +3 -3
- package/dist/summarizer.js +3 -3
- package/dist/{tier-stats-KPDIISG7.js → tier-stats-QID73BBB.js} +2 -2
- package/package.json +2 -2
- package/src/access-service.ts +7 -8
- package/src/buffer.ts +2 -1
- package/src/capabilities.test.ts +137 -0
- package/src/capabilities.ts +209 -0
- package/src/cli/creation-ledger-commands.ts +3 -3
- package/src/cli/research-status-commands.ts +4 -4
- package/src/cli.ts +9 -10
- package/src/compounding/engine.ts +7 -7
- package/src/correction/correction-access-wiring.ts +3 -2
- package/src/extraction.ts +8 -10
- package/src/operator-toolkit.ts +6 -7
- package/src/orchestration/conversation-index-coordinator.ts +344 -0
- package/src/orchestration/entity-synthesis-coordinator.ts +2 -1
- package/src/orchestration/maintenance.ts +5 -7
- package/src/orchestration/recall-rerank-coordinator.ts +425 -0
- package/src/orchestration/semantic-consolidation-coordinator.ts +2 -2
- package/src/orchestrator.ts +88 -602
- package/dist/chunk-FF36YNKY.js.map +0 -1
- package/dist/chunk-G54IDCD3.js.map +0 -1
- package/dist/chunk-GYICIICQ.js.map +0 -1
- package/dist/chunk-HLPYL6LC.js.map +0 -1
- package/dist/chunk-HYNHLBKA.js.map +0 -1
- package/dist/chunk-IPI45Q4S.js.map +0 -1
- package/dist/chunk-PB5YON2G.js.map +0 -1
- package/dist/chunk-UO6MPN77.js.map +0 -1
- package/dist/chunk-WNGXQMRI.js.map +0 -1
- /package/dist/{chunk-K3Y2SJTN.js.map → chunk-56LP72AD.js.map} +0 -0
- /package/dist/{chunk-ZBZ4XULO.js.map → chunk-66RZ4EIT.js.map} +0 -0
- /package/dist/{chunk-GB2FZOWB.js.map → chunk-7B7IPPN5.js.map} +0 -0
- /package/dist/{chunk-QNTLWH3T.js.map → chunk-A7INTIC5.js.map} +0 -0
- /package/dist/{chunk-FLPKEMSO.js.map → chunk-AKKFHN3I.js.map} +0 -0
- /package/dist/{chunk-AAIHDIMD.js.map → chunk-BHJAMSVC.js.map} +0 -0
- /package/dist/{chunk-BXPG5AVX.js.map → chunk-BHQQVUEQ.js.map} +0 -0
- /package/dist/{chunk-HFXZIF3V.js.map → chunk-BVG2IZOB.js.map} +0 -0
- /package/dist/{chunk-NDKW67ER.js.map → chunk-C53JDEH3.js.map} +0 -0
- /package/dist/{chunk-AESC5OQJ.js.map → chunk-CKHPUOAP.js.map} +0 -0
- /package/dist/{chunk-OYHYBHHI.js.map → chunk-DS3FZ7GS.js.map} +0 -0
- /package/dist/{chunk-E4LYJ7PY.js.map → chunk-IFCM6OLK.js.map} +0 -0
- /package/dist/{chunk-5BOQNB2K.js.map → chunk-JQSP7YBJ.js.map} +0 -0
- /package/dist/{chunk-2T2N7ISV.js.map → chunk-L3TYGUTH.js.map} +0 -0
- /package/dist/{chunk-AB2E5DCN.js.map → chunk-MAU7DFCJ.js.map} +0 -0
- /package/dist/{chunk-P6VLG7KE.js.map → chunk-N2O23WYA.js.map} +0 -0
- /package/dist/{chunk-IXGXALRV.js.map → chunk-QTJOORGN.js.map} +0 -0
- /package/dist/{chunk-AE7NTZ75.js.map → chunk-TNLXCSXV.js.map} +0 -0
- /package/dist/{chunk-NNJKEAP2.js.map → chunk-VRBBZH4U.js.map} +0 -0
- /package/dist/{chunk-VOEVVIP3.js.map → chunk-W2FBVBQ4.js.map} +0 -0
- /package/dist/{chunk-CHJIWG2H.js.map → chunk-WVAEIKUY.js.map} +0 -0
- /package/dist/{chunk-IX4L7E5G.js.map → chunk-YXOXAQ5Y.js.map} +0 -0
- /package/dist/{contradiction-scan-2B4AE4TI.js.map → contradiction-scan-CWO3LIWV.js.map} +0 -0
- /package/dist/{first-start-migration-2RQYDIZ7.js.map → first-start-migration-5DXD3TF2.js.map} +0 -0
- /package/dist/{tier-stats-KPDIISG7.js.map → tier-stats-QID73BBB.js.map} +0 -0
|
@@ -24,6 +24,10 @@ import { VerifiedEpisodeResult } from './verified-recall.js';
|
|
|
24
24
|
import { VerifiedSemanticRuleResult } from './semantic-rule-verifier.js';
|
|
25
25
|
import { WorkProductLedgerSearchResult } from './work-product-ledger.js';
|
|
26
26
|
import { TrustStageResultItem } from './trust-score-stage.js';
|
|
27
|
+
import { ConversationChunk } from './conversation-index/chunker.js';
|
|
28
|
+
import { ConversationIndexBackend, ConversationIndexBackendInspection } from './conversation-index/backend.js';
|
|
29
|
+
import { C as ConversationSearchResult } from './faiss-adapter-BHecI1fF.js';
|
|
30
|
+
import { CapabilitySet } from './capabilities.js';
|
|
27
31
|
import { LiveConnectorsRunSummary } from './live-connectors-runner.js';
|
|
28
32
|
import { ModelRegistry } from './model-registry.js';
|
|
29
33
|
import { RelevanceStore } from './relevance.js';
|
|
@@ -31,12 +35,10 @@ import { NegativeExampleStore } from './negative.js';
|
|
|
31
35
|
import { RecallXraySnapshot } from './recall-xray.js';
|
|
32
36
|
import { SessionObserverState } from './session-observer-state.js';
|
|
33
37
|
import { a as SemanticDedupHit } from './semantic-DJR8_DMQ.js';
|
|
34
|
-
import { CapabilitySet } from './capabilities.js';
|
|
35
38
|
import { ReplayTurn } from './replay/types.js';
|
|
36
39
|
import { I as ImportTurn } from './types-gb_SNtjR.js';
|
|
37
40
|
import { JudgeCandidate, JudgeBatchResult } from './extraction-judge.js';
|
|
38
41
|
import { LcmEngine } from './lcm/engine.js';
|
|
39
|
-
import { ConversationIndexBackendInspection } from './conversation-index/backend.js';
|
|
40
42
|
import { b as NamespaceKind, N as NamespaceCatalog } from './catalog-_Bap6vfD.js';
|
|
41
43
|
import { NamespaceSearchHealth } from './namespaces/search.js';
|
|
42
44
|
import { SharedContextManager } from './shared-context/manager.js';
|
|
@@ -902,6 +904,182 @@ declare class RecallResultFormatter {
|
|
|
902
904
|
} | null>;
|
|
903
905
|
}
|
|
904
906
|
|
|
907
|
+
/**
|
|
908
|
+
* Conversation index coordinator — extracted from the orchestrator (issue #1526).
|
|
909
|
+
*
|
|
910
|
+
* Owns the conversation-index subsystem: semantic recall over past
|
|
911
|
+
* conversations, plus the build / update / rebuild / inspect / health
|
|
912
|
+
* lifecycle of the on-disk chunk store and its pluggable search backend
|
|
913
|
+
* (qmd or faiss). Behavior-preserving move from orchestrator.ts — no logic
|
|
914
|
+
* changes; the orchestrator constructs one instance and keeps thin
|
|
915
|
+
* delegating methods so existing call sites and tests that exercise the
|
|
916
|
+
* private API continue to work.
|
|
917
|
+
*
|
|
918
|
+
* The backend and transcript are read through getters (not captured at
|
|
919
|
+
* construction) so that post-construction reassignment of the orchestrator's
|
|
920
|
+
* live fields — exercised by the conversation-index integration tests and by
|
|
921
|
+
* backend swap-in at deferred-init time — is honored. This mirrors the
|
|
922
|
+
* TierMigrationCoordinator accessor pattern.
|
|
923
|
+
*/
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Coordinator for the conversation-index subsystem.
|
|
927
|
+
*
|
|
928
|
+
* Holds the per-session last-update timestamps (previously an orchestrator
|
|
929
|
+
* field) and delegates chunk building / persistence / embedding to the
|
|
930
|
+
* configured backend.
|
|
931
|
+
*/
|
|
932
|
+
declare class ConversationIndexCoordinator {
|
|
933
|
+
private readonly config;
|
|
934
|
+
private readonly getTranscript;
|
|
935
|
+
private readonly getBackend;
|
|
936
|
+
private readonly indexDir;
|
|
937
|
+
private readonly lastUpdateAtMs;
|
|
938
|
+
constructor(options: {
|
|
939
|
+
config: PluginConfig;
|
|
940
|
+
getTranscript: () => TranscriptManager;
|
|
941
|
+
getBackend: () => ConversationIndexBackend | undefined;
|
|
942
|
+
indexDir: string;
|
|
943
|
+
});
|
|
944
|
+
/** Semantic recall over past-conversation chunks (fail-open: empty on miss). */
|
|
945
|
+
search(retrievalQuery: string, topK: number): Promise<ConversationSearchResult[]>;
|
|
946
|
+
/** Render conversation-recall search hits as a budgeted markdown section. */
|
|
947
|
+
formatRecallSection(results: ConversationSearchResult[], maxChars: number): string | null;
|
|
948
|
+
/** Recursively count `.md` chunk documents under a directory. */
|
|
949
|
+
countChunkDocs(dir: string): Promise<number>;
|
|
950
|
+
/** Read recent transcript entries and chunk them for indexing. */
|
|
951
|
+
buildChunks(sessionKey?: string, hours?: number): Promise<ConversationChunk[]>;
|
|
952
|
+
getHealth(): Promise<{
|
|
953
|
+
enabled: boolean;
|
|
954
|
+
backend: "qmd" | "faiss";
|
|
955
|
+
status: "ok" | "degraded" | "disabled";
|
|
956
|
+
chunkDocCount: number;
|
|
957
|
+
lastUpdateAt: string | null;
|
|
958
|
+
qmdAvailable?: boolean;
|
|
959
|
+
faiss?: {
|
|
960
|
+
ok: boolean;
|
|
961
|
+
status: "ok" | "degraded" | "error";
|
|
962
|
+
indexPath: string;
|
|
963
|
+
message?: string;
|
|
964
|
+
manifest?: {
|
|
965
|
+
version: number;
|
|
966
|
+
modelId: string;
|
|
967
|
+
normalizedModelId: string;
|
|
968
|
+
dimension: number;
|
|
969
|
+
chunkCount: number;
|
|
970
|
+
updatedAt: string;
|
|
971
|
+
lastSuccessfulRebuildAt: string;
|
|
972
|
+
};
|
|
973
|
+
};
|
|
974
|
+
}>;
|
|
975
|
+
inspect(): Promise<ConversationIndexBackendInspection & {
|
|
976
|
+
enabled: boolean;
|
|
977
|
+
chunkDocCount: number;
|
|
978
|
+
lastUpdateAt: string | null;
|
|
979
|
+
}>;
|
|
980
|
+
update(sessionKey: string, hours?: number, opts?: {
|
|
981
|
+
embed?: boolean;
|
|
982
|
+
enforceMinInterval?: boolean;
|
|
983
|
+
}): Promise<{
|
|
984
|
+
chunks: number;
|
|
985
|
+
skipped: boolean;
|
|
986
|
+
reason?: string;
|
|
987
|
+
retryAfterMs?: number;
|
|
988
|
+
embedded?: boolean;
|
|
989
|
+
}>;
|
|
990
|
+
rebuild(sessionKey?: string, hours?: number, opts?: {
|
|
991
|
+
embed?: boolean;
|
|
992
|
+
}): Promise<{
|
|
993
|
+
chunks: number;
|
|
994
|
+
skipped: boolean;
|
|
995
|
+
reason?: string;
|
|
996
|
+
embedded?: boolean;
|
|
997
|
+
rebuilt?: boolean;
|
|
998
|
+
}>;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Recall rerank coordinator — extracted from the orchestrator (issue #1526).
|
|
1003
|
+
*
|
|
1004
|
+
* Owns the post-retrieval result-ranking subsystem: Memory-Worth reranking,
|
|
1005
|
+
* TrustScore scoring + quarantine, reasoning-trace boost, and MMR
|
|
1006
|
+
* diversification/limiting. Behavior-preserving move from orchestrator.ts —
|
|
1007
|
+
* no logic changes; the orchestrator constructs one instance and keeps thin
|
|
1008
|
+
* delegating methods so existing call sites (recallInternal,
|
|
1009
|
+
* applyColdFallbackPipeline) continue to work.
|
|
1010
|
+
*
|
|
1011
|
+
* Config, storage, and the QMD-result memory reader are accessed through
|
|
1012
|
+
* getter callbacks (not captured at construction) so that post-construction
|
|
1013
|
+
* reassignment of the orchestrator's live fields is honored. This mirrors
|
|
1014
|
+
* the ConversationIndexCoordinator / TierMigrationCoordinator accessor
|
|
1015
|
+
* pattern.
|
|
1016
|
+
*/
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Coordinator for the recall-result reranking subsystem.
|
|
1020
|
+
*
|
|
1021
|
+
* Holds the per-namespace caches for memory-worth counters and trust signals
|
|
1022
|
+
* (previously orchestrator fields) so the reranking stages don't trigger a
|
|
1023
|
+
* full `readAllMemories` scan per query.
|
|
1024
|
+
*/
|
|
1025
|
+
declare class RecallRerankCoordinator {
|
|
1026
|
+
private readonly getConfig;
|
|
1027
|
+
private readonly getStorage;
|
|
1028
|
+
private readonly readQmdResultMemory;
|
|
1029
|
+
private readonly memoryWorthCounterCache;
|
|
1030
|
+
private static readonly MEMORY_WORTH_CACHE_TTL_MS;
|
|
1031
|
+
private readonly trustSignalCache;
|
|
1032
|
+
private static readonly TRUST_SIGNAL_CACHE_TTL_MS;
|
|
1033
|
+
constructor(options: {
|
|
1034
|
+
getConfig: () => PluginConfig;
|
|
1035
|
+
getStorage: (namespace: string) => Promise<StorageManager>;
|
|
1036
|
+
readQmdResultMemory: (resultPath: string, fallbackStorage: StorageManager, recallNamespaces: readonly string[]) => Promise<MemoryFile | null>;
|
|
1037
|
+
});
|
|
1038
|
+
applyMemoryWorthRerank(results: QmdSearchResult[], namespaces: string[]): Promise<QmdSearchResult[]>;
|
|
1039
|
+
/**
|
|
1040
|
+
* Issue #1577 — unified TrustScore recall stage. Thin wiring over the pure
|
|
1041
|
+
* {@link applyTrustScoreStage} scorer + the {@link buildTrustSignalsForRerank}
|
|
1042
|
+
* signal builder. The stage subsumes the Memory Worth multiplier — the
|
|
1043
|
+
* orchestrator runs exactly one of the two (mutual exclusion, rule 39; the
|
|
1044
|
+
* double-multiplier test in trust-score-stage.test.ts pins it structurally).
|
|
1045
|
+
*
|
|
1046
|
+
* Returns the admitted results AND the per-path trust map (including
|
|
1047
|
+
* quarantined items) so the caller can: (a) render epistemic hedges, (b)
|
|
1048
|
+
* surface quarantined items in X-ray with a reason (rule 34), and (c) filter
|
|
1049
|
+
* quarantined paths from fallback recall branches. The trust map is a
|
|
1050
|
+
* per-recall local — never instance state — so concurrent recalls cannot
|
|
1051
|
+
* race on it (review: shared-trust-map concurrency).
|
|
1052
|
+
*/
|
|
1053
|
+
applyTrustScoreRerank(results: QmdSearchResult[], namespaces: string[]): Promise<{
|
|
1054
|
+
results: QmdSearchResult[];
|
|
1055
|
+
trustByPath: Map<string, TrustStageResultItem> | null;
|
|
1056
|
+
}>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Issue #1577 — apply the TrustScore stage (or, when trust is off, the Memory
|
|
1059
|
+
* Worth multiplier fallback) to ONE recall branch's results, returning the
|
|
1060
|
+
* scored results + the per-path trust map. Thin wiring over
|
|
1061
|
+
* {@link applyTrustScoreRerank} so every recall path — hot QMD, embedding
|
|
1062
|
+
* fallback, recent scan — applies the SAME multiplier gate (rule 41: a
|
|
1063
|
+
* feature gate must apply across ALL parallel recall paths). TrustScore
|
|
1064
|
+
* subsumes Memory Worth; exactly one runs (rule 39). Fail-open on lookup
|
|
1065
|
+
* errors so a storage hiccup never breaks a fallback path.
|
|
1066
|
+
*/
|
|
1067
|
+
applyTrustScoreToBranch(results: QmdSearchResult[], namespaces: string[], caps: CapabilitySet, label: string): Promise<{
|
|
1068
|
+
results: QmdSearchResult[];
|
|
1069
|
+
trustByPath: Map<string, TrustStageResultItem> | null;
|
|
1070
|
+
}>;
|
|
1071
|
+
diversifyAndLimitRecallResults(sectionId: string, results: QmdSearchResult[], limit: number, retrievalQuery?: string, caps?: CapabilitySet): QmdSearchResult[];
|
|
1072
|
+
/**
|
|
1073
|
+
* Apply Maximal Marginal Relevance to a section's ordered candidate list.
|
|
1074
|
+
*
|
|
1075
|
+
* Operates per-section so one redundant cluster cannot dominate a section,
|
|
1076
|
+
* and so one section's MMR pass cannot starve other sections. Returns the
|
|
1077
|
+
* input unchanged when disabled, when there are fewer than 2 candidates, or
|
|
1078
|
+
* when no budget information is available.
|
|
1079
|
+
*/
|
|
1080
|
+
applyMmrToQmdResults(sectionId: string, results: QmdSearchResult[], caps?: CapabilitySet): QmdSearchResult[];
|
|
1081
|
+
}
|
|
1082
|
+
|
|
905
1083
|
/**
|
|
906
1084
|
* Pattern-reinforcement maintenance job (issue #687 PR 2/4).
|
|
907
1085
|
*
|
|
@@ -1442,25 +1620,6 @@ declare class Orchestrator {
|
|
|
1442
1620
|
/** Lossless Context Management engine — proactive session archive + DAG summarization. */
|
|
1443
1621
|
readonly lcmEngine: LcmEngine | null;
|
|
1444
1622
|
private readonly rerankCache;
|
|
1445
|
-
/**
|
|
1446
|
-
* Short-TTL cache for Memory Worth counter lookups so interactive recall
|
|
1447
|
-
* doesn't trigger a full `readAllMemories` scan per query. Keyed by
|
|
1448
|
-
* namespace; the filter unions across namespaces at query time. The TTL
|
|
1449
|
-
* is intentionally short (seconds, not minutes) because counters are
|
|
1450
|
-
* mutated by `recordMemoryOutcome` asynchronously and we'd rather serve
|
|
1451
|
-
* a 30-second-stale worth score than a stable-but-wrong one.
|
|
1452
|
-
*/
|
|
1453
|
-
private readonly memoryWorthCounterCache;
|
|
1454
|
-
private static readonly MEMORY_WORTH_CACHE_TTL_MS;
|
|
1455
|
-
/**
|
|
1456
|
-
* Issue #1577 — per-namespace TrustScore signal map cache. Same TTL/shape
|
|
1457
|
-
* discipline as {@link memoryWorthCounterCache}: seconds-scale, evicted on
|
|
1458
|
-
* every call, keyed by namespace. Holds the frontmatter-derived signals
|
|
1459
|
-
* (worth, provenance, faithfulness, corroboration, recency) so the trust
|
|
1460
|
-
* stage doesn't trigger a fresh `readAllMemories` scan per query.
|
|
1461
|
-
*/
|
|
1462
|
-
private readonly trustSignalCache;
|
|
1463
|
-
private static readonly TRUST_SIGNAL_CACHE_TTL_MS;
|
|
1464
1623
|
/**
|
|
1465
1624
|
* Per-session workspace selections keyed by sessionKey.
|
|
1466
1625
|
* Set by the before_agent_start hook so recall() uses the correct
|
|
@@ -1507,13 +1666,18 @@ declare class Orchestrator {
|
|
|
1507
1666
|
* to RecallResultFormatter.
|
|
1508
1667
|
*/
|
|
1509
1668
|
readonly recallResultFormatter: RecallResultFormatter;
|
|
1669
|
+
/**
|
|
1670
|
+
* Issue #1526: conversation-index subsystem moved to
|
|
1671
|
+
* ConversationIndexCoordinator.
|
|
1672
|
+
*/
|
|
1673
|
+
readonly conversationIndexCoordinator: ConversationIndexCoordinator;
|
|
1674
|
+
readonly recallRerankCoordinator: RecallRerankCoordinator;
|
|
1510
1675
|
private heartbeatObserverChains;
|
|
1511
1676
|
private recentExtractionFingerprints;
|
|
1512
1677
|
private readonly consolidationObservers;
|
|
1513
1678
|
private wearablesServiceInstance;
|
|
1514
1679
|
private wearablesAutoSyncHandle;
|
|
1515
1680
|
private lastQmdReprobeAtMs;
|
|
1516
|
-
private readonly conversationIndexLastUpdateAtMs;
|
|
1517
1681
|
private lastFileHygieneRunAtMs;
|
|
1518
1682
|
private lastPatternReinforcementAtByNs;
|
|
1519
1683
|
private lastRecallFailureLogAtMs;
|
|
@@ -1969,8 +2133,6 @@ declare class Orchestrator {
|
|
|
1969
2133
|
}): Promise<string>;
|
|
1970
2134
|
private searchConversationRecallResults;
|
|
1971
2135
|
private formatConversationRecallSection;
|
|
1972
|
-
private countConversationChunkDocs;
|
|
1973
|
-
private buildConversationIndexChunks;
|
|
1974
2136
|
getConversationIndexHealth(): Promise<{
|
|
1975
2137
|
enabled: boolean;
|
|
1976
2138
|
backend: "qmd" | "faiss";
|
|
@@ -2319,41 +2481,9 @@ declare class Orchestrator {
|
|
|
2319
2481
|
private resolveColdQmdResultForRecall;
|
|
2320
2482
|
private storageForAbsoluteQmdResultPath;
|
|
2321
2483
|
private applyMemoryWorthRerank;
|
|
2322
|
-
/**
|
|
2323
|
-
* Issue #1577 — unified TrustScore recall stage. Thin wiring over the pure
|
|
2324
|
-
* {@link applyTrustScoreStage} scorer + the {@link buildTrustSignalsForRerank}
|
|
2325
|
-
* signal builder. The stage subsumes the Memory Worth multiplier — the
|
|
2326
|
-
* orchestrator runs exactly one of the two (mutual exclusion, rule 39; the
|
|
2327
|
-
* double-multiplier test in trust-score-stage.test.ts pins it structurally).
|
|
2328
|
-
*
|
|
2329
|
-
* Returns the admitted results AND the per-path trust map (including
|
|
2330
|
-
* quarantined items) so the caller can: (a) render epistemic hedges, (b)
|
|
2331
|
-
* surface quarantined items in X-ray with a reason (rule 34), and (c) filter
|
|
2332
|
-
* quarantined paths from fallback recall branches. The trust map is a
|
|
2333
|
-
* per-recall local — never instance state — so concurrent recalls cannot
|
|
2334
|
-
* race on it (review: shared-trust-map concurrency).
|
|
2335
|
-
*/
|
|
2336
2484
|
private applyTrustScoreRerank;
|
|
2337
|
-
/**
|
|
2338
|
-
* Issue #1577 — apply the TrustScore stage (or, when trust is off, the Memory
|
|
2339
|
-
* Worth multiplier fallback) to ONE recall branch's results, returning the
|
|
2340
|
-
* scored results + the per-path trust map. Thin wiring over
|
|
2341
|
-
* {@link applyTrustScoreRerank} so every recall path — hot QMD, embedding
|
|
2342
|
-
* fallback, recent scan — applies the SAME multiplier gate (rule 41: a
|
|
2343
|
-
* feature gate must apply across ALL parallel recall paths). TrustScore
|
|
2344
|
-
* subsumes Memory Worth; exactly one runs (rule 39). Fail-open on lookup
|
|
2345
|
-
* errors so a storage hiccup never breaks a fallback path.
|
|
2346
|
-
*/
|
|
2347
2485
|
private applyTrustScoreToBranch;
|
|
2348
2486
|
private diversifyAndLimitRecallResults;
|
|
2349
|
-
/**
|
|
2350
|
-
* Apply Maximal Marginal Relevance to a section's ordered candidate list.
|
|
2351
|
-
*
|
|
2352
|
-
* Operates per-section so one redundant cluster cannot dominate a section,
|
|
2353
|
-
* and so one section's MMR pass cannot starve other sections. Returns the
|
|
2354
|
-
* input unchanged when disabled, when there are fewer than 2 candidates, or
|
|
2355
|
-
* when no budget information is available.
|
|
2356
|
-
*/
|
|
2357
2487
|
private applyMmrToQmdResults;
|
|
2358
2488
|
private buildLastRecallBudgetSummary;
|
|
2359
2489
|
private collectLastRecallSources;
|
package/dist/orchestrator.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import './summarizer.js';
|
|
|
8
8
|
import './local-llm.js';
|
|
9
9
|
import './fallback-llm.js';
|
|
10
10
|
import './orchestration/maintenance.js';
|
|
11
|
-
export { L as BulkImportBatchIngestResult, M as BulkImportBatchPartialFailureError, N as GraphRecallRankedResult, Q as GraphRecallShadowComparison, G as GraphRecallSnapshot, I as IntentDebugSnapshot, O as Orchestrator, T as QmdRecallSnapshot, U as RecallInvocationOptions, V as RecallModeDecision, X as appendMemoryToGraphContext, Y as blendGraphExpandedRecallScore, Z as buildCompressionGuidelinesMarkdown, _ as buildMemoryPathById, $ as computeArtifactCandidateFetchLimit, a0 as computeArtifactRecallLimit, a1 as computeQmdHybridFetchLimit, q as defaultWorkspaceDir, a2 as deriveTopicsFromExtraction, a3 as filterRecallCandidates, a4 as graphPathRelativeToStorage, a5 as hasIdentityRecoveryIntent, a6 as isArtifactMemoryPath, a7 as lifecycleRecallScoreAdjustment, a8 as mergeArtifactRecallCandidates, a9 as mergeGraphExpandedResults, aa as resolveEffectiveIdentityInjectionMode, ab as resolveEffectiveRecallMode, ac as resolvePersistedMemoryRelativePath, ad as resolveRecallModeDecision, ae as resolveRecallModeDecisionAsync, af as resolveRecentThreadMemoryPaths, A as sanitizeSessionKeyForFilename, ag as shouldFilterLifecycleRecallCandidate, ah as summarizeGraphShadowComparison } from './orchestrator-
|
|
11
|
+
export { L as BulkImportBatchIngestResult, M as BulkImportBatchPartialFailureError, N as GraphRecallRankedResult, Q as GraphRecallShadowComparison, G as GraphRecallSnapshot, I as IntentDebugSnapshot, O as Orchestrator, T as QmdRecallSnapshot, U as RecallInvocationOptions, V as RecallModeDecision, X as appendMemoryToGraphContext, Y as blendGraphExpandedRecallScore, Z as buildCompressionGuidelinesMarkdown, _ as buildMemoryPathById, $ as computeArtifactCandidateFetchLimit, a0 as computeArtifactRecallLimit, a1 as computeQmdHybridFetchLimit, q as defaultWorkspaceDir, a2 as deriveTopicsFromExtraction, a3 as filterRecallCandidates, a4 as graphPathRelativeToStorage, a5 as hasIdentityRecoveryIntent, a6 as isArtifactMemoryPath, a7 as lifecycleRecallScoreAdjustment, a8 as mergeArtifactRecallCandidates, a9 as mergeGraphExpandedResults, aa as resolveEffectiveIdentityInjectionMode, ab as resolveEffectiveRecallMode, ac as resolvePersistedMemoryRelativePath, ad as resolveRecallModeDecision, ae as resolveRecallModeDecisionAsync, af as resolveRecentThreadMemoryPaths, A as sanitizeSessionKeyForFilename, ag as shouldFilterLifecycleRecallCandidate, ah as summarizeGraphShadowComparison } from './orchestrator-BOAFN_Yr.js';
|
|
12
12
|
export { formatCompressionGuidelinesForRecall } from './orchestration/compression-guideline-coordinator.js';
|
|
13
13
|
import './live-connectors-runner.js';
|
|
14
14
|
import './model-registry.js';
|
|
@@ -60,6 +60,9 @@ import './semantic-rule-verifier.js';
|
|
|
60
60
|
import './work-product-ledger.js';
|
|
61
61
|
import './trust-score-stage.js';
|
|
62
62
|
import './trust-score.js';
|
|
63
|
+
import './conversation-index/chunker.js';
|
|
64
|
+
import './faiss-adapter-BHecI1fF.js';
|
|
65
|
+
import './runtime/child-process.js';
|
|
63
66
|
import './extraction-judge.js';
|
|
64
67
|
import './framework-CNDn2164.js';
|
|
65
68
|
import './memory-provenance.js';
|
|
@@ -70,6 +73,3 @@ import './lcm/dag.js';
|
|
|
70
73
|
import './lcm/queue.js';
|
|
71
74
|
import './connectors/codex-materialize.js';
|
|
72
75
|
import './logger.js';
|
|
73
|
-
import './conversation-index/chunker.js';
|
|
74
|
-
import './faiss-adapter-BHecI1fF.js';
|
|
75
|
-
import './runtime/child-process.js';
|
package/dist/orchestrator.js
CHANGED
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
sanitizeSessionKeyForFilename,
|
|
27
27
|
shouldFilterLifecycleRecallCandidate,
|
|
28
28
|
summarizeGraphShadowComparison
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IEWUPZ75.js";
|
|
30
30
|
import "./chunk-OZECYVGI.js";
|
|
31
31
|
import {
|
|
32
32
|
formatCompressionGuidelinesForRecall
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-QTJOORGN.js";
|
|
34
|
+
import "./chunk-YF2MMBKA.js";
|
|
35
35
|
import "./chunk-I74SUMNI.js";
|
|
36
36
|
import "./chunk-ILNPU5W5.js";
|
|
37
37
|
import "./chunk-7HYPN2GC.js";
|
|
@@ -47,7 +47,7 @@ import "./chunk-XPOOY35N.js";
|
|
|
47
47
|
import "./chunk-HW5EF6LV.js";
|
|
48
48
|
import "./chunk-TECVW3JP.js";
|
|
49
49
|
import "./chunk-O7GOFAM3.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-75PDC7VT.js";
|
|
51
51
|
import "./chunk-UFS7OXGL.js";
|
|
52
52
|
import "./chunk-BCDKBDSY.js";
|
|
53
53
|
import "./chunk-YN2UN7N3.js";
|
|
@@ -57,7 +57,7 @@ import "./chunk-VOUOLGIP.js";
|
|
|
57
57
|
import "./chunk-S75M5ZRK.js";
|
|
58
58
|
import "./chunk-ECZU5BJH.js";
|
|
59
59
|
import "./chunk-UHGBNIOS.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-BVG2IZOB.js";
|
|
61
61
|
import "./chunk-3FAMU5TX.js";
|
|
62
62
|
import "./chunk-4SBW47WK.js";
|
|
63
63
|
import "./chunk-DKTSR7EK.js";
|
|
@@ -82,12 +82,12 @@ import "./chunk-PD6O7AXF.js";
|
|
|
82
82
|
import "./chunk-XHYGJVXL.js";
|
|
83
83
|
import "./chunk-3NN73CM7.js";
|
|
84
84
|
import "./chunk-LTHVM4XN.js";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-XIQAOGAA.js";
|
|
86
86
|
import "./chunk-4RA3C3EV.js";
|
|
87
87
|
import "./chunk-5GSUBCZM.js";
|
|
88
88
|
import "./chunk-54V4BZWP.js";
|
|
89
89
|
import "./chunk-PWFWCGOO.js";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-YXOXAQ5Y.js";
|
|
91
91
|
import "./chunk-LZTFCAKE.js";
|
|
92
92
|
import "./chunk-FIOYURII.js";
|
|
93
93
|
import "./chunk-IAIPNEHD.js";
|
|
@@ -99,8 +99,8 @@ import "./chunk-EO5QWINU.js";
|
|
|
99
99
|
import "./chunk-VEWZZM3H.js";
|
|
100
100
|
import "./chunk-Q6IP2ARR.js";
|
|
101
101
|
import "./chunk-6HEM6HTQ.js";
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
102
|
+
import "./chunk-WVAEIKUY.js";
|
|
103
|
+
import "./chunk-CKHPUOAP.js";
|
|
104
104
|
import "./chunk-WIWPSQYU.js";
|
|
105
105
|
import "./chunk-2PRQG7PV.js";
|
|
106
106
|
import "./chunk-WDJCZQB4.js";
|
|
@@ -112,9 +112,9 @@ import "./chunk-ZRWB5D4H.js";
|
|
|
112
112
|
import "./chunk-GY3SKOS4.js";
|
|
113
113
|
import "./chunk-SFQ6QNL7.js";
|
|
114
114
|
import "./chunk-33JBK2XP.js";
|
|
115
|
-
import "./chunk-
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import "./chunk-
|
|
115
|
+
import "./chunk-TNLXCSXV.js";
|
|
116
|
+
import "./chunk-BHQQVUEQ.js";
|
|
117
|
+
import "./chunk-VRBBZH4U.js";
|
|
118
118
|
import "./chunk-KFY3SGN7.js";
|
|
119
119
|
import "./chunk-TQNRI55H.js";
|
|
120
120
|
import "./chunk-6GUG4YNM.js";
|
|
@@ -138,13 +138,13 @@ import "./chunk-VGUOEDTU.js";
|
|
|
138
138
|
import "./chunk-7FL4CNPV.js";
|
|
139
139
|
import "./chunk-P4BC54KI.js";
|
|
140
140
|
import "./chunk-UQ7RN5HK.js";
|
|
141
|
-
import "./chunk-
|
|
141
|
+
import "./chunk-OQQRWPFZ.js";
|
|
142
142
|
import "./chunk-H3FZVNRN.js";
|
|
143
143
|
import "./chunk-NDAH7BJ5.js";
|
|
144
144
|
import "./chunk-Z5LAYHGJ.js";
|
|
145
145
|
import "./chunk-OADWQ5CR.js";
|
|
146
146
|
import "./chunk-7WV3F5DQ.js";
|
|
147
|
-
import "./chunk-
|
|
147
|
+
import "./chunk-WFNH4UDF.js";
|
|
148
148
|
import "./chunk-RS25QOKZ.js";
|
|
149
149
|
import "./chunk-JGSKJHF7.js";
|
|
150
150
|
import "./chunk-S4DDLTPX.js";
|
|
@@ -152,16 +152,16 @@ import "./chunk-FF4KLI5W.js";
|
|
|
152
152
|
import "./chunk-DRUDC2UX.js";
|
|
153
153
|
import "./chunk-AQEJKOKI.js";
|
|
154
154
|
import "./chunk-6HMYUWXR.js";
|
|
155
|
-
import "./chunk-
|
|
156
|
-
import "./chunk-
|
|
157
|
-
import "./chunk-
|
|
155
|
+
import "./chunk-7B7IPPN5.js";
|
|
156
|
+
import "./chunk-66RZ4EIT.js";
|
|
157
|
+
import "./chunk-JQSP7YBJ.js";
|
|
158
158
|
import "./chunk-5CEJH5ZN.js";
|
|
159
159
|
import "./chunk-WRFKZEO6.js";
|
|
160
160
|
import "./chunk-CYEPCZN5.js";
|
|
161
161
|
import "./chunk-LQ6JI4VH.js";
|
|
162
162
|
import "./chunk-SANZHXY2.js";
|
|
163
163
|
import "./chunk-AER6MT24.js";
|
|
164
|
-
import "./chunk-
|
|
164
|
+
import "./chunk-MAU7DFCJ.js";
|
|
165
165
|
import "./chunk-CINZGPSJ.js";
|
|
166
166
|
import "./chunk-ZFXCQPNO.js";
|
|
167
167
|
import "./chunk-DCWIQFNA.js";
|
|
@@ -174,7 +174,7 @@ import "./chunk-EI6V5UXY.js";
|
|
|
174
174
|
import "./chunk-PNLCEFE4.js";
|
|
175
175
|
import "./chunk-O75CRYGF.js";
|
|
176
176
|
import "./chunk-QDW3E4RD.js";
|
|
177
|
-
import "./chunk-
|
|
177
|
+
import "./chunk-C53JDEH3.js";
|
|
178
178
|
import "./chunk-3ONXXHQO.js";
|
|
179
179
|
import "./chunk-SQNED75R.js";
|
|
180
180
|
import "./chunk-EHQ5HO5T.js";
|
|
@@ -222,9 +222,9 @@ import "./chunk-P7FMDTKL.js";
|
|
|
222
222
|
import "./chunk-VS2IYZRU.js";
|
|
223
223
|
import "./chunk-I4WBNM3M.js";
|
|
224
224
|
import "./chunk-SOAU2OE2.js";
|
|
225
|
-
import "./chunk-
|
|
226
|
-
import "./chunk-JWDE7OVJ.js";
|
|
225
|
+
import "./chunk-DS3FZ7GS.js";
|
|
227
226
|
import "./chunk-U3PN77QT.js";
|
|
227
|
+
import "./chunk-RJBW4EOU.js";
|
|
228
228
|
import "./chunk-OEHCMALU.js";
|
|
229
229
|
import "./chunk-PHK3HARR.js";
|
|
230
230
|
import "./chunk-5GKPFL3S.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EmbedHelper
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-MAU7DFCJ.js";
|
|
4
4
|
import "../chunk-CINZGPSJ.js";
|
|
5
5
|
import "../chunk-3ONXXHQO.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-RJBW4EOU.js";
|
|
7
7
|
import "../chunk-NU3CSQ4H.js";
|
|
8
8
|
import "../chunk-PVGDJXVK.js";
|
|
9
9
|
import "../chunk-PZ5AY32C.js";
|
package/dist/search/factory.js
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
createConversationIndexRuntime,
|
|
3
3
|
createConversationSearchBackend,
|
|
4
4
|
createSearchBackend
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-JQSP7YBJ.js";
|
|
6
6
|
import "../chunk-5CEJH5ZN.js";
|
|
7
7
|
import "../chunk-WRFKZEO6.js";
|
|
8
8
|
import "../chunk-CYEPCZN5.js";
|
|
9
9
|
import "../chunk-LQ6JI4VH.js";
|
|
10
10
|
import "../chunk-SANZHXY2.js";
|
|
11
11
|
import "../chunk-AER6MT24.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-MAU7DFCJ.js";
|
|
13
13
|
import "../chunk-CINZGPSJ.js";
|
|
14
14
|
import "../chunk-DCWIQFNA.js";
|
|
15
15
|
import "../chunk-XBZQRZ6G.js";
|
|
@@ -23,7 +23,7 @@ import "../chunk-5GPPACXK.js";
|
|
|
23
23
|
import "../chunk-AWJ2FHCF.js";
|
|
24
24
|
import "../chunk-42JKGUFJ.js";
|
|
25
25
|
import "../chunk-VS2IYZRU.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-RJBW4EOU.js";
|
|
27
27
|
import "../chunk-JUC24CTX.js";
|
|
28
28
|
import "../chunk-NU3CSQ4H.js";
|
|
29
29
|
import "../chunk-PVGDJXVK.js";
|
package/dist/search/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createConversationIndexRuntime,
|
|
3
3
|
createConversationSearchBackend,
|
|
4
4
|
createSearchBackend
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-JQSP7YBJ.js";
|
|
6
6
|
import {
|
|
7
7
|
LanceDbBackend
|
|
8
8
|
} from "../chunk-5CEJH5ZN.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "../chunk-AER6MT24.js";
|
|
24
24
|
import {
|
|
25
25
|
EmbedHelper
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-MAU7DFCJ.js";
|
|
27
27
|
import "../chunk-CINZGPSJ.js";
|
|
28
28
|
import "../chunk-DCWIQFNA.js";
|
|
29
29
|
import "../chunk-XBZQRZ6G.js";
|
|
@@ -37,7 +37,7 @@ import "../chunk-5GPPACXK.js";
|
|
|
37
37
|
import "../chunk-AWJ2FHCF.js";
|
|
38
38
|
import "../chunk-42JKGUFJ.js";
|
|
39
39
|
import "../chunk-VS2IYZRU.js";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-RJBW4EOU.js";
|
|
41
41
|
import "../chunk-JUC24CTX.js";
|
|
42
42
|
import "../chunk-NU3CSQ4H.js";
|
|
43
43
|
import "../chunk-PVGDJXVK.js";
|
package/dist/summarizer.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HourlySummarizer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BVG2IZOB.js";
|
|
4
4
|
import "./chunk-3FAMU5TX.js";
|
|
5
5
|
import "./chunk-PWFWCGOO.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-YXOXAQ5Y.js";
|
|
7
7
|
import "./chunk-S4DDLTPX.js";
|
|
8
8
|
import "./chunk-FF4KLI5W.js";
|
|
9
9
|
import "./chunk-O75CRYGF.js";
|
|
@@ -14,7 +14,7 @@ import "./chunk-L2EXJQJP.js";
|
|
|
14
14
|
import "./chunk-VL7DP3OW.js";
|
|
15
15
|
import "./chunk-RGMVMVMF.js";
|
|
16
16
|
import "./chunk-N7RWREIQ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-RJBW4EOU.js";
|
|
18
18
|
import "./chunk-EYIEWJNI.js";
|
|
19
19
|
import "./chunk-JUC24CTX.js";
|
|
20
20
|
import "./chunk-NU3CSQ4H.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
resolveQmdCapabilities,
|
|
16
16
|
resolveUtilityLearningCapabilities
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RJBW4EOU.js";
|
|
18
18
|
import "./chunk-A2IYSXDQ.js";
|
|
19
19
|
import "./chunk-LPSF4OQH.js";
|
|
20
20
|
import "./chunk-PZ5AY32C.js";
|
|
@@ -153,4 +153,4 @@ export {
|
|
|
153
153
|
formatTierSummaryText,
|
|
154
154
|
summarizeTiers
|
|
155
155
|
};
|
|
156
|
-
//# sourceMappingURL=tier-stats-
|
|
156
|
+
//# sourceMappingURL=tier-stats-QID73BBB.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.739",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -3000,7 +3000,7 @@
|
|
|
3000
3000
|
"core"
|
|
3001
3001
|
],
|
|
3002
3002
|
"peerDependencies": {
|
|
3003
|
-
"@remnic/coding-graph": "^9.3.
|
|
3003
|
+
"@remnic/coding-graph": "^9.3.739"
|
|
3004
3004
|
},
|
|
3005
3005
|
"peerDependenciesMeta": {
|
|
3006
3006
|
"@remnic/coding-graph": {
|
package/src/access-service.ts
CHANGED
|
@@ -5,12 +5,11 @@ import { readdirSync, unlinkSync } from "node:fs";
|
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { ZodError } from "zod";
|
|
7
7
|
import { AccessIdempotencyStore, hashAccessIdempotencyPayload } from "./access-idempotency.js";
|
|
8
|
-
import {
|
|
9
|
-
resolveNamespaceCapabilities,
|
|
8
|
+
import { resolveNamespaceCapabilities,
|
|
10
9
|
resolveMemoryLifecycleCapabilities,
|
|
11
10
|
resolveQmdCapabilities,
|
|
12
11
|
resolveIdentityContinuityCapabilities,
|
|
13
|
-
resolveSecurityCapabilities, resolveObjectiveStateCapabilities, resolveCompressionCapabilities} from "./capabilities.js";
|
|
12
|
+
resolveSecurityCapabilities, resolveObjectiveStateCapabilities, resolveCompressionCapabilities, resolveConsolidationCapabilities, resolveRecallAuxiliaryCapabilities } from "./capabilities.js";
|
|
14
13
|
import { AccessAuditAdapter, type AccessAuditConfig, type AccessAuditResult } from "./access-audit.js";
|
|
15
14
|
import type { AnomalyDetectorResult } from "./recall-audit-anomaly.js";
|
|
16
15
|
import { resolveGitContext } from "./coding/git-context.js";
|
|
@@ -2984,7 +2983,7 @@ export class EngramAccessService {
|
|
|
2984
2983
|
async daySummary(
|
|
2985
2984
|
request: EngramAccessDaySummaryRequest,
|
|
2986
2985
|
): Promise<import("./types.js").DaySummaryResult | null> {
|
|
2987
|
-
if (!this.orchestrator.config.
|
|
2986
|
+
if (!resolveRecallAuxiliaryCapabilities(this.orchestrator.config).daySummary) {
|
|
2988
2987
|
throw new EngramAccessInputError("day summary is disabled");
|
|
2989
2988
|
}
|
|
2990
2989
|
|
|
@@ -6832,7 +6831,7 @@ export class EngramAccessService {
|
|
|
6832
6831
|
if (!resolveIdentityContinuityCapabilities(this.orchestrator.config).identityContinuity) {
|
|
6833
6832
|
return { enabled: false, reason: "Identity continuity is disabled. Enable `identityContinuityEnabled: true`." };
|
|
6834
6833
|
}
|
|
6835
|
-
if (!this.orchestrator.config.
|
|
6834
|
+
if (!resolveConsolidationCapabilities(this.orchestrator.config).continuityAudit) {
|
|
6836
6835
|
return { enabled: false, reason: "Continuity audits are disabled. Enable `continuityAuditEnabled: true`." };
|
|
6837
6836
|
}
|
|
6838
6837
|
if (!this.orchestrator.compounding) {
|
|
@@ -6854,7 +6853,7 @@ export class EngramAccessService {
|
|
|
6854
6853
|
if (!resolveIdentityContinuityCapabilities(this.orchestrator.config).identityContinuity) {
|
|
6855
6854
|
return { enabled: false, reason: "Identity continuity is disabled. Enable `identityContinuityEnabled: true`." };
|
|
6856
6855
|
}
|
|
6857
|
-
if (!this.orchestrator.config.
|
|
6856
|
+
if (!resolveRecallAuxiliaryCapabilities(this.orchestrator.config).continuityIncidentLogging) {
|
|
6858
6857
|
return { enabled: false, reason: "Continuity incident logging is disabled. Enable `continuityIncidentLoggingEnabled: true`." };
|
|
6859
6858
|
}
|
|
6860
6859
|
const symptom = request.symptom?.trim();
|
|
@@ -6880,7 +6879,7 @@ export class EngramAccessService {
|
|
|
6880
6879
|
if (!resolveIdentityContinuityCapabilities(this.orchestrator.config).identityContinuity) {
|
|
6881
6880
|
return { enabled: false, reason: "Identity continuity is disabled." };
|
|
6882
6881
|
}
|
|
6883
|
-
if (!this.orchestrator.config.
|
|
6882
|
+
if (!resolveRecallAuxiliaryCapabilities(this.orchestrator.config).continuityIncidentLogging) {
|
|
6884
6883
|
return { enabled: false, reason: "Continuity incident logging is disabled." };
|
|
6885
6884
|
}
|
|
6886
6885
|
const id = request.id?.trim();
|
|
@@ -8234,7 +8233,7 @@ export class EngramAccessService {
|
|
|
8234
8233
|
const root = explicitRoot ?? storage.dir;
|
|
8235
8234
|
const memoryDir = explicitMemoryDir ?? this.orchestrator.config.memoryDir;
|
|
8236
8235
|
const versioning = importOptions.versioning ?? {
|
|
8237
|
-
enabled: this.orchestrator.config.
|
|
8236
|
+
enabled: resolveRecallAuxiliaryCapabilities(this.orchestrator.config).versioning,
|
|
8238
8237
|
maxVersionsPerPage: this.orchestrator.config.versioningMaxPerPage,
|
|
8239
8238
|
sidecarDir: this.orchestrator.config.versioningSidecarDir,
|
|
8240
8239
|
};
|
package/src/buffer.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
PluginConfig,
|
|
10
10
|
SignalLevel,
|
|
11
11
|
} from "./types.js";
|
|
12
|
+
import { resolvePresentationCapabilities } from "./capabilities.js";
|
|
12
13
|
|
|
13
14
|
export type TriggerDecision = "extract_now" | "extract_batch" | "keep_buffering";
|
|
14
15
|
|
|
@@ -286,7 +287,7 @@ export class SmartBuffer {
|
|
|
286
287
|
// *reduce* extraction frequency.
|
|
287
288
|
if (
|
|
288
289
|
decision === "keep_buffering" &&
|
|
289
|
-
this.config.
|
|
290
|
+
resolvePresentationCapabilities(this.config).bufferSurpriseTrigger &&
|
|
290
291
|
this.surpriseProbe !== null &&
|
|
291
292
|
// Matching the existing "smart" branch: surprise is a lower-tier
|
|
292
293
|
// novelty signal that should not second-guess a high-signal hit
|