@remnic/core 1.0.3 → 1.1.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/dist/abort-error.d.ts +32 -0
- package/dist/abort-error.js +11 -0
- package/dist/access-audit.d.ts +56 -0
- package/dist/access-audit.js +9 -0
- package/dist/access-audit.js.map +1 -0
- package/dist/access-cli.js +72 -54
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.d.ts +16 -8
- package/dist/access-http.js +25 -17
- package/dist/access-mcp.d.ts +16 -8
- package/dist/access-mcp.js +28 -6
- package/dist/access-schema.d.ts +130 -39
- package/dist/access-schema.js +5 -1
- package/dist/access-service-Br8ZydTK.d.ts +827 -0
- package/dist/access-service.d.ts +20 -660
- package/dist/access-service.js +22 -14
- package/dist/bootstrap.d.ts +6 -3
- package/dist/briefing.d.ts +1 -0
- package/dist/briefing.js +6 -5
- package/dist/buffer-surprise-report.d.ts +70 -0
- package/dist/buffer-surprise-report.js +7 -0
- package/dist/buffer-surprise-report.js.map +1 -0
- package/dist/buffer-surprise.d.ts +98 -0
- package/dist/buffer-surprise.js +11 -0
- package/dist/buffer-surprise.js.map +1 -0
- package/dist/buffer.d.ts +100 -2
- package/dist/buffer.js +1 -1
- package/dist/calibration.js +5 -5
- package/dist/causal-behavior.js +4 -4
- package/dist/causal-chain.js +2 -2
- package/dist/causal-consolidation.js +17 -16
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +4 -4
- package/dist/causal-trajectory.js +1 -1
- package/dist/{chunk-QNJMBKFK.js → chunk-2LGMW3DJ.js} +3 -2
- package/dist/chunk-2LGMW3DJ.js.map +1 -0
- package/dist/{chunk-QDYXG4CS.js → chunk-3FPTCC3Z.js} +4 -3
- package/dist/chunk-3FPTCC3Z.js.map +1 -0
- package/dist/chunk-3GPTTA4J.js +57 -0
- package/dist/chunk-3GPTTA4J.js.map +1 -0
- package/dist/{chunk-QKAH5B6E.js → chunk-3GXCSUXR.js} +94 -6
- package/dist/chunk-3GXCSUXR.js.map +1 -0
- package/dist/{chunk-POBPGDWI.js → chunk-3OGMS3PE.js} +2 -2
- package/dist/chunk-54V4BZWP.js +139 -0
- package/dist/chunk-54V4BZWP.js.map +1 -0
- package/dist/chunk-5JRF2PZA.js +67 -0
- package/dist/chunk-5JRF2PZA.js.map +1 -0
- package/dist/chunk-64NJRYU2.js +332 -0
- package/dist/chunk-64NJRYU2.js.map +1 -0
- package/dist/chunk-6AUUAZEX.js +150 -0
- package/dist/chunk-6AUUAZEX.js.map +1 -0
- package/dist/{chunk-HITJFT7E.js → chunk-7I7FKFZH.js} +28 -21
- package/dist/chunk-7I7FKFZH.js.map +1 -0
- package/dist/chunk-AJU4PJGY.js +126 -0
- package/dist/chunk-AJU4PJGY.js.map +1 -0
- package/dist/chunk-ASAITVLA.js +64 -0
- package/dist/chunk-ASAITVLA.js.map +1 -0
- package/dist/{chunk-X4WESCKA.js → chunk-B5WXLVDY.js} +187 -6
- package/dist/chunk-B5WXLVDY.js.map +1 -0
- package/dist/{chunk-RCICHSHL.js → chunk-BGJGXLZ7.js} +111 -2
- package/dist/{chunk-RCICHSHL.js.map → chunk-BGJGXLZ7.js.map} +1 -1
- package/dist/{chunk-OJFGVJS6.js → chunk-BK2EFTE2.js} +319 -18
- package/dist/chunk-BK2EFTE2.js.map +1 -0
- package/dist/chunk-C4SQJZAF.js +486 -0
- package/dist/chunk-C4SQJZAF.js.map +1 -0
- package/dist/{chunk-GJQPH5G3.js → chunk-CUPFXL3J.js} +2 -2
- package/dist/chunk-DF3RVK3X.js +119 -0
- package/dist/chunk-DF3RVK3X.js.map +1 -0
- package/dist/{chunk-PMB3WGDL.js → chunk-DFTTJYSO.js} +167 -7
- package/dist/chunk-DFTTJYSO.js.map +1 -0
- package/dist/chunk-DGVM5SFL.js +69 -0
- package/dist/chunk-DGVM5SFL.js.map +1 -0
- package/dist/chunk-EIR5VLIH.js +90 -0
- package/dist/chunk-EIR5VLIH.js.map +1 -0
- package/dist/{chunk-PAORGQRI.js → chunk-EPQJM2GC.js} +37 -23
- package/dist/chunk-EPQJM2GC.js.map +1 -0
- package/dist/{chunk-POMSFKTB.js → chunk-F5VP6YCB.js} +368 -10
- package/dist/chunk-F5VP6YCB.js.map +1 -0
- package/dist/{chunk-6ZH4TU6I.js → chunk-FAAFWE4G.js} +2 -1
- package/dist/chunk-FAAFWE4G.js.map +1 -0
- package/dist/{chunk-74JR4N5J.js → chunk-FVA6TGI3.js} +2 -2
- package/dist/chunk-GDFS42HT.js +206 -0
- package/dist/chunk-GDFS42HT.js.map +1 -0
- package/dist/{chunk-BKQJBXXX.js → chunk-GGD5W7TB.js} +2 -2
- package/dist/chunk-GGD5W7TB.js.map +1 -0
- package/dist/{chunk-V7XCAHIB.js → chunk-GKFXUTJ2.js} +508 -26
- package/dist/chunk-GKFXUTJ2.js.map +1 -0
- package/dist/{chunk-NSB3WSYS.js → chunk-HK3FGIEW.js} +278 -3
- package/dist/chunk-HK3FGIEW.js.map +1 -0
- package/dist/{chunk-AAI7JARD.js → chunk-HMDCOMYU.js} +8 -11
- package/dist/chunk-HMDCOMYU.js.map +1 -0
- package/dist/chunk-IISBCCWR.js +52 -0
- package/dist/chunk-IISBCCWR.js.map +1 -0
- package/dist/{chunk-YFYL2SIJ.js → chunk-INXV5JBT.js} +290 -46
- package/dist/chunk-INXV5JBT.js.map +1 -0
- package/dist/chunk-JBMSGZEQ.js +441 -0
- package/dist/chunk-JBMSGZEQ.js.map +1 -0
- package/dist/{chunk-UPMD5XND.js → chunk-JL2PU6AI.js} +16 -5
- package/dist/chunk-JL2PU6AI.js.map +1 -0
- package/dist/{chunk-J4IYOZZ5.js → chunk-JXS5PDQ7.js} +3 -1
- package/dist/chunk-JXS5PDQ7.js.map +1 -0
- package/dist/{chunk-AYPYCLR7.js → chunk-KUB6JU6H.js} +4 -4
- package/dist/chunk-KVBLZUKV.js +173 -0
- package/dist/chunk-KVBLZUKV.js.map +1 -0
- package/dist/chunk-LBLXEFWK.js +51 -0
- package/dist/chunk-LBLXEFWK.js.map +1 -0
- package/dist/{chunk-U2IQTSBY.js → chunk-LTCGGW2D.js} +1 -1
- package/dist/chunk-LTCGGW2D.js.map +1 -0
- package/dist/{chunk-UEYA6UC7.js → chunk-NZLQTHS5.js} +25 -2
- package/dist/chunk-NZLQTHS5.js.map +1 -0
- package/dist/chunk-PVGDJXVK.js +21 -0
- package/dist/chunk-PVGDJXVK.js.map +1 -0
- package/dist/chunk-PVPWZSSI.js +37 -0
- package/dist/chunk-PVPWZSSI.js.map +1 -0
- package/dist/{chunk-4NRAJUDS.js → chunk-RBBWYEFJ.js} +1 -1
- package/dist/chunk-RFYAYKTD.js +146 -0
- package/dist/chunk-RFYAYKTD.js.map +1 -0
- package/dist/{chunk-JROGC36Y.js → chunk-RGLL5SPU.js} +2 -2
- package/dist/{chunk-2VFW5K5U.js → chunk-S3EEFKNY.js} +103 -65
- package/dist/chunk-S3EEFKNY.js.map +1 -0
- package/dist/chunk-SOBJ6NEY.js +18 -0
- package/dist/chunk-SOBJ6NEY.js.map +1 -0
- package/dist/{chunk-MYQWXITD.js → chunk-SPI27QT6.js} +2 -2
- package/dist/chunk-TVVEYCNW.js +65 -0
- package/dist/chunk-TVVEYCNW.js.map +1 -0
- package/dist/chunk-ULYOGL6R.js +322 -0
- package/dist/chunk-ULYOGL6R.js.map +1 -0
- package/dist/{chunk-S4LX5EBI.js → chunk-VBVG2M5G.js} +64 -10
- package/dist/chunk-VBVG2M5G.js.map +1 -0
- package/dist/{chunk-KWP7T3DP.js → chunk-VDX363PS.js} +2 -2
- package/dist/{chunk-XMGSSBFX.js → chunk-VYM3VWOF.js} +1560 -244
- package/dist/chunk-VYM3VWOF.js.map +1 -0
- package/dist/{chunk-MTLYEMJB.js → chunk-WCLICCGB.js} +18 -3
- package/dist/chunk-WCLICCGB.js.map +1 -0
- package/dist/{chunk-ECKDIK5F.js → chunk-WVVA7F5A.js} +2 -2
- package/dist/chunk-X6GF3FX2.js +26 -0
- package/dist/chunk-X6GF3FX2.js.map +1 -0
- package/dist/{chunk-3QFQGRHO.js → chunk-XMHBH5H6.js} +4 -4
- package/dist/{chunk-KEG4GNGI.js → chunk-XZ2TIKGC.js} +38 -8
- package/dist/chunk-XZ2TIKGC.js.map +1 -0
- package/dist/chunk-Y4FHOFJ2.js +140 -0
- package/dist/chunk-Y4FHOFJ2.js.map +1 -0
- package/dist/chunk-YNB73F22.js +137 -0
- package/dist/chunk-YNB73F22.js.map +1 -0
- package/dist/{chunk-7PA4OZEU.js → chunk-YNQKWQT4.js} +55 -30
- package/dist/chunk-YNQKWQT4.js.map +1 -0
- package/dist/chunk-ZAIM4TUE.js +488 -0
- package/dist/chunk-ZAIM4TUE.js.map +1 -0
- package/dist/{chunk-BTY5RRRF.js → chunk-ZEM3OK2K.js} +5 -5
- package/dist/chunk-ZZTOURJI.js +91 -0
- package/dist/chunk-ZZTOURJI.js.map +1 -0
- package/dist/{cli-DwIBnp2g.d.ts → cli-BkeRaYfk.d.ts} +2 -2
- package/dist/cli.d.ts +13 -5
- package/dist/cli.js +45 -33
- package/dist/config.js +1 -1
- package/dist/consolidation-operator.d.ts +41 -0
- package/dist/consolidation-operator.js +11 -0
- package/dist/consolidation-operator.js.map +1 -0
- package/dist/consolidation-provenance-check.d.ts +68 -0
- package/dist/consolidation-provenance-check.js +9 -0
- package/dist/consolidation-provenance-check.js.map +1 -0
- package/dist/consolidation-undo.d.ts +123 -0
- package/dist/consolidation-undo.js +426 -0
- package/dist/consolidation-undo.js.map +1 -0
- package/dist/contradiction-review-WIUBAR52.js +21 -0
- package/dist/contradiction-review-WIUBAR52.js.map +1 -0
- package/dist/contradiction-scan-E3GJTI4F.js +412 -0
- package/dist/contradiction-scan-E3GJTI4F.js.map +1 -0
- package/dist/cross-namespace-budget.d.ts +133 -0
- package/dist/cross-namespace-budget.js +9 -0
- package/dist/cross-namespace-budget.js.map +1 -0
- package/dist/direct-answer-wiring.d.ts +77 -0
- package/dist/direct-answer-wiring.js +10 -0
- package/dist/direct-answer-wiring.js.map +1 -0
- package/dist/direct-answer.d.ts +106 -0
- package/dist/direct-answer.js +10 -0
- package/dist/direct-answer.js.map +1 -0
- package/dist/{engine-X7X3AAG3.js → engine-F3GOXGE5.js} +7 -6
- package/dist/engine-F3GOXGE5.js.map +1 -0
- package/dist/entity-retrieval.d.ts +1 -0
- package/dist/entity-retrieval.js +6 -5
- package/dist/explicit-capture.d.ts +6 -3
- package/dist/explicit-capture.js +2 -2
- package/dist/extraction-judge-telemetry.d.ts +113 -0
- package/dist/extraction-judge-telemetry.js +14 -0
- package/dist/extraction-judge-telemetry.js.map +1 -0
- package/dist/extraction-judge-training.d.ts +85 -0
- package/dist/extraction-judge-training.js +16 -0
- package/dist/extraction-judge-training.js.map +1 -0
- package/dist/extraction-judge.d.ts +124 -2
- package/dist/extraction-judge.js +11 -1
- package/dist/extraction.js +7 -6
- package/dist/fallback-llm.d.ts +11 -2
- package/dist/fallback-llm.js +2 -2
- package/dist/graph-recall.d.ts +100 -0
- package/dist/graph-recall.js +8 -0
- package/dist/graph-recall.js.map +1 -0
- package/dist/graph-retrieval.d.ts +271 -0
- package/dist/graph-retrieval.js +21 -0
- package/dist/graph-retrieval.js.map +1 -0
- package/dist/harmonic-retrieval.js +2 -1
- package/dist/importance.js +1 -1
- package/dist/index.d.ts +589 -138
- package/dist/index.js +531 -403
- package/dist/index.js.map +1 -1
- package/dist/intent.js +1 -1
- package/dist/local-llm.d.ts +10 -3
- package/dist/local-llm.js +1 -1
- package/dist/memory-worth-bench.d.ts +51 -0
- package/dist/memory-worth-bench.js +131 -0
- package/dist/memory-worth-bench.js.map +1 -0
- package/dist/memory-worth-filter.d.ts +128 -0
- package/dist/memory-worth-filter.js +10 -0
- package/dist/memory-worth-filter.js.map +1 -0
- package/dist/memory-worth-outcomes.d.ts +118 -0
- package/dist/memory-worth-outcomes.js +9 -0
- package/dist/memory-worth-outcomes.js.map +1 -0
- package/dist/memory-worth.d.ts +102 -0
- package/dist/memory-worth.js +7 -0
- package/dist/memory-worth.js.map +1 -0
- package/dist/operator-toolkit.d.ts +40 -1
- package/dist/operator-toolkit.js +24 -14
- package/dist/{orchestrator-B9kwlCep.d.ts → orchestrator-CmJ-NTdJ.d.ts} +254 -10
- package/dist/orchestrator.d.ts +6 -3
- package/dist/orchestrator.js +59 -48
- package/dist/page-versioning.d.ts +12 -1
- package/dist/page-versioning.js +5 -3
- package/dist/{port-C1GZFv8h.d.ts → port-BADbLZU5.d.ts} +2 -2
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd.d.ts +5 -3
- package/dist/qmd.js +2 -1
- package/dist/reasoning-trace-recall.d.ts +90 -0
- package/dist/reasoning-trace-recall.js +13 -0
- package/dist/reasoning-trace-recall.js.map +1 -0
- package/dist/reasoning-trace-types.d.ts +54 -0
- package/dist/reasoning-trace-types.js +17 -0
- package/dist/reasoning-trace-types.js.map +1 -0
- package/dist/recall-audit-anomaly.d.ts +112 -0
- package/dist/recall-audit-anomaly.js +11 -0
- package/dist/recall-audit-anomaly.js.map +1 -0
- package/dist/recall-audit.js +5 -44
- package/dist/recall-audit.js.map +1 -1
- package/dist/recall-explain-renderer.d.ts +49 -0
- package/dist/recall-explain-renderer.js +18 -0
- package/dist/recall-explain-renderer.js.map +1 -0
- package/dist/recall-state.d.ts +39 -1
- package/dist/recall-state.js +1 -1
- package/dist/recall-xray-cli.d.ts +40 -0
- package/dist/recall-xray-cli.js +11 -0
- package/dist/recall-xray-cli.js.map +1 -0
- package/dist/recall-xray-renderer.d.ts +44 -0
- package/dist/recall-xray-renderer.js +18 -0
- package/dist/recall-xray-renderer.js.map +1 -0
- package/dist/recall-xray.d.ts +179 -0
- package/dist/recall-xray.js +13 -0
- package/dist/recall-xray.js.map +1 -0
- package/dist/resolution-QBTDHTG7.js +100 -0
- package/dist/resolution-QBTDHTG7.js.map +1 -0
- package/dist/resolve-provider-secret.d.ts +24 -1
- package/dist/resolve-provider-secret.js +3 -1
- package/dist/resume-bundles.js +6 -6
- package/dist/retrieval-agents.d.ts +1 -1
- package/dist/retrieval-tiers.d.ts +17 -0
- package/dist/retrieval-tiers.js +9 -0
- package/dist/retrieval-tiers.js.map +1 -0
- package/dist/schemas.d.ts +301 -45
- package/dist/schemas.js +1 -1
- package/dist/{semantic-consolidation-DrvSYRdB.d.ts → semantic-consolidation-CxJU6MJk.d.ts} +62 -1
- package/dist/semantic-consolidation.d.ts +2 -1
- package/dist/semantic-consolidation.js +20 -6
- package/dist/semantic-rule-promotion.js +6 -5
- package/dist/semantic-rule-verifier.js +6 -5
- package/dist/storage.d.ts +82 -1
- package/dist/storage.js +5 -4
- package/dist/summarizer.js +4 -4
- package/dist/temporal-supersession.d.ts +1 -0
- package/dist/tier-migration.d.ts +2 -1
- package/dist/types-DJhqDJUV.d.ts +50 -0
- package/dist/types.d.ts +309 -3
- package/dist/types.js +1 -1
- package/dist/verified-recall.js +6 -5
- package/package.json +1 -1
- package/dist/chunk-2VFW5K5U.js.map +0 -1
- package/dist/chunk-6ZH4TU6I.js.map +0 -1
- package/dist/chunk-7PA4OZEU.js.map +0 -1
- package/dist/chunk-AAI7JARD.js.map +0 -1
- package/dist/chunk-BKQJBXXX.js.map +0 -1
- package/dist/chunk-HITJFT7E.js.map +0 -1
- package/dist/chunk-J4IYOZZ5.js.map +0 -1
- package/dist/chunk-KEG4GNGI.js.map +0 -1
- package/dist/chunk-LAYN4LDC.js +0 -267
- package/dist/chunk-LAYN4LDC.js.map +0 -1
- package/dist/chunk-MTLYEMJB.js.map +0 -1
- package/dist/chunk-NSB3WSYS.js.map +0 -1
- package/dist/chunk-OJFGVJS6.js.map +0 -1
- package/dist/chunk-PAORGQRI.js.map +0 -1
- package/dist/chunk-PMB3WGDL.js.map +0 -1
- package/dist/chunk-POMSFKTB.js.map +0 -1
- package/dist/chunk-QDYXG4CS.js.map +0 -1
- package/dist/chunk-QKAH5B6E.js.map +0 -1
- package/dist/chunk-QNJMBKFK.js.map +0 -1
- package/dist/chunk-S4LX5EBI.js.map +0 -1
- package/dist/chunk-U2IQTSBY.js.map +0 -1
- package/dist/chunk-UEYA6UC7.js.map +0 -1
- package/dist/chunk-UPMD5XND.js.map +0 -1
- package/dist/chunk-UVJFDP7P.js +0 -202
- package/dist/chunk-UVJFDP7P.js.map +0 -1
- package/dist/chunk-V7XCAHIB.js.map +0 -1
- package/dist/chunk-X4WESCKA.js.map +0 -1
- package/dist/chunk-XMGSSBFX.js.map +0 -1
- package/dist/chunk-YFYL2SIJ.js.map +0 -1
- /package/dist/{engine-X7X3AAG3.js.map → abort-error.js.map} +0 -0
- /package/dist/{chunk-POBPGDWI.js.map → chunk-3OGMS3PE.js.map} +0 -0
- /package/dist/{chunk-GJQPH5G3.js.map → chunk-CUPFXL3J.js.map} +0 -0
- /package/dist/{chunk-74JR4N5J.js.map → chunk-FVA6TGI3.js.map} +0 -0
- /package/dist/{chunk-AYPYCLR7.js.map → chunk-KUB6JU6H.js.map} +0 -0
- /package/dist/{chunk-4NRAJUDS.js.map → chunk-RBBWYEFJ.js.map} +0 -0
- /package/dist/{chunk-JROGC36Y.js.map → chunk-RGLL5SPU.js.map} +0 -0
- /package/dist/{chunk-MYQWXITD.js.map → chunk-SPI27QT6.js.map} +0 -0
- /package/dist/{chunk-KWP7T3DP.js.map → chunk-VDX363PS.js.map} +0 -0
- /package/dist/{chunk-ECKDIK5F.js.map → chunk-WVVA7F5A.js.map} +0 -0
- /package/dist/{chunk-3QFQGRHO.js.map → chunk-XMHBH5H6.js.map} +0 -0
- /package/dist/{chunk-BTY5RRRF.js.map → chunk-ZEM3OK2K.js.map} +0 -0
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type ReasoningEffort = "none" | "low" | "medium" | "high";
|
|
2
2
|
type TriggerMode = "smart" | "every_n" | "time_based";
|
|
3
3
|
type SignalLevel = "none" | "low" | "medium" | "high";
|
|
4
|
-
type MemoryCategory = "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure";
|
|
4
|
+
type MemoryCategory = "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | "procedure" | "reasoning_trace";
|
|
5
5
|
type ConsolidationAction = "ADD" | "MERGE" | "UPDATE" | "INVALIDATE" | "SKIP";
|
|
6
6
|
type ConfidenceTier = "explicit" | "implied" | "inferred" | "speculative";
|
|
7
7
|
type PrincipalFromSessionKeyMode = "map" | "prefix" | "regex";
|
|
@@ -152,7 +152,7 @@ interface DreamingConfig {
|
|
|
152
152
|
/** Procedural memory (issue #519): mining + recall gates. All sub-features default off. */
|
|
153
153
|
interface ProceduralConfig {
|
|
154
154
|
enabled: boolean;
|
|
155
|
-
/** Minimum
|
|
155
|
+
/** Minimum cluster size before emitting a candidate; `0` disables mining (`minOccurrences_zero`). */
|
|
156
156
|
minOccurrences: number;
|
|
157
157
|
/** Minimum success rate from trajectory outcomes in [0, 1]. */
|
|
158
158
|
successFloor: number;
|
|
@@ -165,6 +165,63 @@ interface ProceduralConfig {
|
|
|
165
165
|
/** Max procedure memories to inject on task-initiation recall (1–10). */
|
|
166
166
|
recallMaxProcedures: number;
|
|
167
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* Coding-agent mode config (issue #569).
|
|
170
|
+
*
|
|
171
|
+
* When the connector provides a `CodingContext` (see below), Remnic overlays
|
|
172
|
+
* a project- and/or branch-scoped namespace on top of the principal's default
|
|
173
|
+
* namespace so that memories written while working on project A do not surface
|
|
174
|
+
* while working on project B.
|
|
175
|
+
*
|
|
176
|
+
* Both flags default off-for-branch / on-for-project. Per CLAUDE.md #30 every
|
|
177
|
+
* filter or transform needs an escape hatch: set `projectScope: false` to
|
|
178
|
+
* exactly restore pre-#569 behaviour.
|
|
179
|
+
*/
|
|
180
|
+
interface CodingModeConfig {
|
|
181
|
+
/**
|
|
182
|
+
* When true (default), a session with a resolved `CodingContext` uses a
|
|
183
|
+
* project-scoped namespace. When false, the principal's default namespace
|
|
184
|
+
* is used unchanged (pre-#569 behaviour).
|
|
185
|
+
*/
|
|
186
|
+
projectScope: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* When true, recall/write also overlay the current branch on top of the
|
|
189
|
+
* project namespace. Default false — branch-scope is opt-in because active
|
|
190
|
+
* development typically wants recall across branches. (Wired by PR 3 of
|
|
191
|
+
* issue #569; declared here so the schema ships in one slice.)
|
|
192
|
+
*/
|
|
193
|
+
branchScope: boolean;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Session-scoped coding context. Produced by `resolveGitContext()` in the
|
|
197
|
+
* connector layer and attached to a session so that recall + write paths can
|
|
198
|
+
* compute an overlay namespace.
|
|
199
|
+
*
|
|
200
|
+
* All fields mirror `GitContext` from `./coding/git-context.ts`; kept as a
|
|
201
|
+
* separate interface because `types.ts` must stay dependency-free (it is
|
|
202
|
+
* imported by every other module).
|
|
203
|
+
*/
|
|
204
|
+
interface CodingContext {
|
|
205
|
+
projectId: string;
|
|
206
|
+
branch: string | null;
|
|
207
|
+
rootPath: string;
|
|
208
|
+
defaultBranch: string | null;
|
|
209
|
+
}
|
|
210
|
+
/** Configuration for the nightly contradiction-scan cron (issue #520). */
|
|
211
|
+
interface ContradictionScanConfig {
|
|
212
|
+
/** Master switch for the contradiction scan cron. Default true. */
|
|
213
|
+
enabled: boolean;
|
|
214
|
+
/** Embedding cosine similarity floor for candidate pair generation. Default 0.82. */
|
|
215
|
+
similarityFloor: number;
|
|
216
|
+
/** Minimum topic-token Jaccard overlap for unstructured pairs. Default 0.4. */
|
|
217
|
+
topicOverlapFloor: number;
|
|
218
|
+
/** Cap on candidate pairs evaluated per cron run. Default 500. */
|
|
219
|
+
maxPairsPerRun: number;
|
|
220
|
+
/** Cooldown in days before re-evaluating a pair judged independent/both-valid. Default 14. */
|
|
221
|
+
cooldownDays: number;
|
|
222
|
+
/** When true, pairs judged "duplicates" are auto-flagged for dedup (still need user approval). Default false. */
|
|
223
|
+
autoMergeDuplicates: boolean;
|
|
224
|
+
}
|
|
168
225
|
interface HeartbeatConfig {
|
|
169
226
|
enabled: boolean;
|
|
170
227
|
journalPath: string;
|
|
@@ -208,6 +265,47 @@ interface PluginConfig {
|
|
|
208
265
|
triggerMode: TriggerMode;
|
|
209
266
|
bufferMaxTurns: number;
|
|
210
267
|
bufferMaxMinutes: number;
|
|
268
|
+
/**
|
|
269
|
+
* Surprise-gated buffer flush (issue #563, D-MEM).
|
|
270
|
+
*
|
|
271
|
+
* When enabled, every turn added to the smart buffer is scored against a
|
|
272
|
+
* configurable window of recent memories using an embedding-distance proxy
|
|
273
|
+
* for novelty (see `buffer-surprise.ts`). A turn whose surprise score
|
|
274
|
+
* exceeds `bufferSurpriseThreshold` triggers an immediate extract flush,
|
|
275
|
+
* even if the existing signal/turn-count/time triggers would otherwise keep
|
|
276
|
+
* buffering. Disabled by default — when `false`, buffer behavior is
|
|
277
|
+
* identical to pre-#563 code. Additive only: existing triggers are never
|
|
278
|
+
* suppressed by this flag.
|
|
279
|
+
*/
|
|
280
|
+
bufferSurpriseTriggerEnabled: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Threshold in `[0, 1]` above which a surprise score causes an immediate
|
|
283
|
+
* flush. `0.35` is a conservative default chosen to favor precision over
|
|
284
|
+
* recall during the opt-in phase. Ignored unless
|
|
285
|
+
* `bufferSurpriseTriggerEnabled` is `true`.
|
|
286
|
+
*/
|
|
287
|
+
bufferSurpriseThreshold: number;
|
|
288
|
+
/**
|
|
289
|
+
* Number of nearest neighbors to average over when computing the surprise
|
|
290
|
+
* score (see `computeSurprise`). Default `5`. Clamped to the recent-memory
|
|
291
|
+
* window size at call time.
|
|
292
|
+
*/
|
|
293
|
+
bufferSurpriseK: number;
|
|
294
|
+
/**
|
|
295
|
+
* Maximum number of recent memories to sample when computing the surprise
|
|
296
|
+
* score. Bounds embedding cost per turn. Default `20`. Set to `0` to
|
|
297
|
+
* disable the trigger even when the flag is on (no memories to compare
|
|
298
|
+
* against → treat as not-applicable rather than maximally surprising).
|
|
299
|
+
*/
|
|
300
|
+
bufferSurpriseRecentMemoryCount: number;
|
|
301
|
+
/**
|
|
302
|
+
* Hard timeout (ms) for the surprise probe. If the probe does not
|
|
303
|
+
* resolve within this window, the buffer treats the probe as failed,
|
|
304
|
+
* logs at debug, and falls through to the existing triggers. Ensures
|
|
305
|
+
* a slow or hung embedder cannot stall the turn-append path. Default
|
|
306
|
+
* `2000` (2s).
|
|
307
|
+
*/
|
|
308
|
+
bufferSurpriseProbeTimeoutMs: number;
|
|
211
309
|
consolidateEveryN: number;
|
|
212
310
|
highSignalPatterns: string[];
|
|
213
311
|
maxMemoryTokens: number;
|
|
@@ -283,6 +381,8 @@ interface PluginConfig {
|
|
|
283
381
|
contradictionSimilarityThreshold: number;
|
|
284
382
|
contradictionMinConfidence: number;
|
|
285
383
|
contradictionAutoResolve: boolean;
|
|
384
|
+
/** Nightly contradiction-scan cron config (issue #520). */
|
|
385
|
+
contradictionScan: ContradictionScanConfig;
|
|
286
386
|
/**
|
|
287
387
|
* When enabled, writes that carry `structuredAttributes` mark any older
|
|
288
388
|
* fact with the same `entityRef + attribute_name` supersession key and a
|
|
@@ -301,6 +401,22 @@ interface PluginConfig {
|
|
|
301
401
|
* Default false — enable explicitly after bench validation.
|
|
302
402
|
*/
|
|
303
403
|
recallDirectAnswerEnabled: boolean;
|
|
404
|
+
/**
|
|
405
|
+
* Graph-based retrieval tier via Personalized PageRank (issue #559 PR 4).
|
|
406
|
+
* When true, recall builds a retrieval graph from memory frontmatter
|
|
407
|
+
* and runs PPR, merging the result with QMD via MMR. Default false —
|
|
408
|
+
* ships off pending the retrieval-graph bench in PR 5.
|
|
409
|
+
*/
|
|
410
|
+
recallGraphEnabled: boolean;
|
|
411
|
+
/** PPR damping factor used when `recallGraphEnabled` is true. */
|
|
412
|
+
recallGraphDamping: number;
|
|
413
|
+
/** PPR power-iteration cap used when `recallGraphEnabled` is true. */
|
|
414
|
+
recallGraphIterations: number;
|
|
415
|
+
/**
|
|
416
|
+
* Max memories returned by the graph tier before MMR. Set to 0 to
|
|
417
|
+
* disable the graph tier's contribution without flipping the flag.
|
|
418
|
+
*/
|
|
419
|
+
recallGraphTopK: number;
|
|
304
420
|
/**
|
|
305
421
|
* Minimum token-overlap ratio (query tokens ∩ memory tokens / query tokens)
|
|
306
422
|
* required for direct-answer eligibility. Set to 0 to disable the gate.
|
|
@@ -321,6 +437,56 @@ interface PluginConfig {
|
|
|
321
437
|
* whose resolved taxonomy category is not in this list never qualify.
|
|
322
438
|
*/
|
|
323
439
|
recallDirectAnswerEligibleTaxonomyBuckets: string[];
|
|
440
|
+
/**
|
|
441
|
+
* Cross-namespace query-budget limiter (issue #565 PR 4/5). When true,
|
|
442
|
+
* a principal that issues a burst of recalls against namespaces other
|
|
443
|
+
* than their own is throttled once its per-window count crosses
|
|
444
|
+
* `recallCrossNamespaceBudgetHardLimit`. Default false — ships disabled.
|
|
445
|
+
*/
|
|
446
|
+
recallCrossNamespaceBudgetEnabled: boolean;
|
|
447
|
+
/** Rolling window in milliseconds over which cross-namespace reads are counted. */
|
|
448
|
+
recallCrossNamespaceBudgetWindowMs: number;
|
|
449
|
+
/**
|
|
450
|
+
* Soft threshold — the first point at which the limiter flags a burst.
|
|
451
|
+
* Calls are still allowed; anomaly detection (issue #565 PR 5) will
|
|
452
|
+
* surface the warning.
|
|
453
|
+
*/
|
|
454
|
+
recallCrossNamespaceBudgetSoftLimit: number;
|
|
455
|
+
/** Hard threshold — calls past this count are denied in the window. */
|
|
456
|
+
recallCrossNamespaceBudgetHardLimit: number;
|
|
457
|
+
/**
|
|
458
|
+
* When true, recall multiplies candidate scores by the Memory Worth
|
|
459
|
+
* factor computed from `mw_success` / `mw_fail` counters on each
|
|
460
|
+
* memory's frontmatter (see `computeMemoryWorth`). Memories with a
|
|
461
|
+
* history of failed sessions sink; neutral / uninstrumented memories
|
|
462
|
+
* are untouched (multiplier 1.0). Default false — flip to true in PR 5
|
|
463
|
+
* once the benchmark shows precision tie-or-win.
|
|
464
|
+
*/
|
|
465
|
+
recallMemoryWorthFilterEnabled: boolean;
|
|
466
|
+
/**
|
|
467
|
+
* Recall-audit anomaly detector (issue #565 PR 5/5). When true,
|
|
468
|
+
* access surfaces run the anomaly detector over a tail of the audit
|
|
469
|
+
* trail after each recall and surface any flags via logs / metrics.
|
|
470
|
+
* Ships disabled.
|
|
471
|
+
*/
|
|
472
|
+
recallAuditAnomalyDetectionEnabled: boolean;
|
|
473
|
+
/** Rolling window over which audit entries are analyzed. */
|
|
474
|
+
recallAuditAnomalyWindowMs: number;
|
|
475
|
+
/** Threshold for the `repeat-query` flag. */
|
|
476
|
+
recallAuditAnomalyRepeatQueryLimit: number;
|
|
477
|
+
/** Threshold for the `namespace-walk` flag (distinct namespaces). */
|
|
478
|
+
recallAuditAnomalyNamespaceWalkLimit: number;
|
|
479
|
+
/** Threshold for the `high-cardinality-return` flag. */
|
|
480
|
+
recallAuditAnomalyHighCardinalityLimit: number;
|
|
481
|
+
/** Threshold for the `rapid-fire` flag. */
|
|
482
|
+
recallAuditAnomalyRapidFireLimit: number;
|
|
483
|
+
/**
|
|
484
|
+
* Optional half-life for Memory Worth decay, in milliseconds. When
|
|
485
|
+
* positive, older outcome observations are exponentially decayed toward
|
|
486
|
+
* the uniform prior. Set to 0 (default) to disable decay and use raw
|
|
487
|
+
* counter values.
|
|
488
|
+
*/
|
|
489
|
+
recallMemoryWorthHalfLifeMs: number;
|
|
324
490
|
memoryLinkingEnabled: boolean;
|
|
325
491
|
threadingEnabled: boolean;
|
|
326
492
|
threadingGapMinutes: number;
|
|
@@ -377,6 +543,7 @@ interface PluginConfig {
|
|
|
377
543
|
activeRecallAllowChainedActiveMemory: boolean;
|
|
378
544
|
dreaming: DreamingConfig;
|
|
379
545
|
procedural: ProceduralConfig;
|
|
546
|
+
codingMode: CodingModeConfig;
|
|
380
547
|
heartbeat: HeartbeatConfig;
|
|
381
548
|
slotBehavior: SlotBehaviorConfig;
|
|
382
549
|
codexCompat: CodexCompatConfig;
|
|
@@ -388,6 +555,35 @@ interface PluginConfig {
|
|
|
388
555
|
extractionJudgeBatchSize: number;
|
|
389
556
|
/** Shadow mode: log judge verdicts but do not filter facts. Default false. */
|
|
390
557
|
extractionJudgeShadow: boolean;
|
|
558
|
+
/**
|
|
559
|
+
* Maximum number of times the same candidate text may be deferred before
|
|
560
|
+
* the judge forcibly converts the verdict to `"reject"`. Prevents
|
|
561
|
+
* pathological LLM responses from looping forever on ambiguous facts.
|
|
562
|
+
* Defaults to 2 (issue #562, PR 2).
|
|
563
|
+
*/
|
|
564
|
+
extractionJudgeMaxDeferrals: number;
|
|
565
|
+
/**
|
|
566
|
+
* Emit structured telemetry rows to
|
|
567
|
+
* `state/observation-ledger/extraction-judge-verdicts.jsonl` on every
|
|
568
|
+
* judge verdict. Off by default; enable to collect defer-rate / latency
|
|
569
|
+
* metrics for operator dashboards (issue #562, PR 3).
|
|
570
|
+
*/
|
|
571
|
+
extractionJudgeTelemetryEnabled: boolean;
|
|
572
|
+
/**
|
|
573
|
+
* Collect `(candidate_text, verdict_kind, reason)` tuples into
|
|
574
|
+
* `~/.remnic/judge-training/<date>.jsonl` for use by a future GRPO
|
|
575
|
+
* training pipeline (issue #562, PR 4). Off by default. Rows live in
|
|
576
|
+
* the user's home directory rather than the shared memory directory so
|
|
577
|
+
* they are not committed, sync'd, or bundled into memory exports.
|
|
578
|
+
*/
|
|
579
|
+
collectJudgeTrainingPairs: boolean;
|
|
580
|
+
/**
|
|
581
|
+
* Override directory for judge training-pair collection. Empty string
|
|
582
|
+
* means use the default (`~/.remnic/judge-training`). Primarily for
|
|
583
|
+
* tests and for operators who want the output to land in a specific
|
|
584
|
+
* location.
|
|
585
|
+
*/
|
|
586
|
+
judgeTrainingDir: string;
|
|
391
587
|
hourlySummariesEnabled: boolean;
|
|
392
588
|
daySummaryEnabled: boolean;
|
|
393
589
|
/** If true, Engram may attempt to auto-register an hourly summary cron job (default off). */
|
|
@@ -452,6 +648,15 @@ interface PluginConfig {
|
|
|
452
648
|
semanticConsolidationExcludeCategories: string[];
|
|
453
649
|
semanticConsolidationIntervalHours: number;
|
|
454
650
|
semanticConsolidationMaxPerRun: number;
|
|
651
|
+
/**
|
|
652
|
+
* When true (default), semantic-consolidation prompts the LLM with an
|
|
653
|
+
* operator-aware format asking for JSON `{operator, output}` and records
|
|
654
|
+
* the resulting SPLIT/MERGE/UPDATE operator on `derived_via`. When
|
|
655
|
+
* false, falls back to the legacy plain-text prompt — `derived_via` is
|
|
656
|
+
* still populated via the cluster-shape heuristic in
|
|
657
|
+
* `chooseConsolidationOperator`. Issue #561 PR 3.
|
|
658
|
+
*/
|
|
659
|
+
operatorAwareConsolidationEnabled: boolean;
|
|
455
660
|
creationMemoryEnabled: boolean;
|
|
456
661
|
memoryUtilityLearningEnabled: boolean;
|
|
457
662
|
promotionByOutcomeEnabled: boolean;
|
|
@@ -558,6 +763,21 @@ interface PluginConfig {
|
|
|
558
763
|
localLlmFastModel: string;
|
|
559
764
|
localLlmFastUrl: string;
|
|
560
765
|
localLlmFastTimeoutMs: number;
|
|
766
|
+
/**
|
|
767
|
+
* Suppress chain-of-thought / thinking mode on the main local LLM
|
|
768
|
+
* (issue #548). When true, Remnic injects
|
|
769
|
+
* `chat_template_kwargs: { enable_thinking: false }` on every
|
|
770
|
+
* request so thinking-capable models (Qwen 3.5, Gemma 4, DeepSeek,
|
|
771
|
+
* etc.) skip reasoning tokens that structured-output tasks like
|
|
772
|
+
* extraction and consolidation cannot benefit from. Default: true
|
|
773
|
+
* — the dominant localLlm use case is JSON-shaped extraction where
|
|
774
|
+
* thinking is pure latency tax and a common cause of 60s timeouts.
|
|
775
|
+
* Set to false to restore thinking for narrative tasks.
|
|
776
|
+
*
|
|
777
|
+
* The fast-tier client (`fastLlm`) always disables thinking; that
|
|
778
|
+
* contract is baked into "fast tier" and is unaffected by this flag.
|
|
779
|
+
*/
|
|
780
|
+
localLlmDisableThinking: boolean;
|
|
561
781
|
gatewayConfig?: GatewayConfig;
|
|
562
782
|
modelSource: "plugin" | "gateway";
|
|
563
783
|
gatewayAgentId: string;
|
|
@@ -658,6 +878,13 @@ interface PluginConfig {
|
|
|
658
878
|
recallMmrLambda: number;
|
|
659
879
|
/** MMR is applied over the top N candidates per section. Default 40. */
|
|
660
880
|
recallMmrTopN: number;
|
|
881
|
+
/**
|
|
882
|
+
* Boost stored `reasoning_trace` memories in recall results when the
|
|
883
|
+
* incoming query reads like a problem-solving ask (e.g. "how do I…",
|
|
884
|
+
* "step by step", "walk me through…"). Default false — opt in after
|
|
885
|
+
* benchmarking (issue #564 PR 3).
|
|
886
|
+
*/
|
|
887
|
+
recallReasoningTraceBoostEnabled: boolean;
|
|
661
888
|
qmdRecallCacheTtlMs: number;
|
|
662
889
|
qmdRecallCacheStaleTtlMs: number;
|
|
663
890
|
qmdRecallCacheMaxEntries: number;
|
|
@@ -1079,6 +1306,13 @@ interface BufferEntryState {
|
|
|
1079
1306
|
turns: BufferTurn[];
|
|
1080
1307
|
lastExtractionAt: string | null;
|
|
1081
1308
|
extractionCount: number;
|
|
1309
|
+
/**
|
|
1310
|
+
* Turns retained across `clearAfterExtraction` so a later extraction pass
|
|
1311
|
+
* sees the context that caused a defer verdict (issue #562, PR 2). Bounded
|
|
1312
|
+
* to the configured retention cap by `retainDeferredTurns`. Empty / absent
|
|
1313
|
+
* means no retention in effect.
|
|
1314
|
+
*/
|
|
1315
|
+
retainedTurns?: BufferTurn[];
|
|
1082
1316
|
}
|
|
1083
1317
|
interface BufferState {
|
|
1084
1318
|
turns: BufferTurn[];
|
|
@@ -1118,6 +1352,40 @@ interface BehaviorSignalEvent {
|
|
|
1118
1352
|
signalHash: string;
|
|
1119
1353
|
source: "extraction" | "correction";
|
|
1120
1354
|
}
|
|
1355
|
+
/**
|
|
1356
|
+
* One row of the buffer-surprise telemetry ledger (issue #563 PR 3).
|
|
1357
|
+
*
|
|
1358
|
+
* Emitted by `SmartBuffer` each time the surprise probe produces a score
|
|
1359
|
+
* for an incoming turn (i.e. the feature flag is on and the existing
|
|
1360
|
+
* trigger-logic path called through to the probe). Not written when the
|
|
1361
|
+
* probe is skipped — the absence of a row is meaningful and matches the
|
|
1362
|
+
* "probe was not consulted" state.
|
|
1363
|
+
*
|
|
1364
|
+
* The ledger is intentionally lean: we record the score, the threshold in
|
|
1365
|
+
* force, whether the turn caused a flush, and the turn count so operators
|
|
1366
|
+
* can re-derive precision/recall without replaying traffic. Turn content
|
|
1367
|
+
* is never persisted — this ledger is safe to commit to shared storage.
|
|
1368
|
+
*/
|
|
1369
|
+
interface BufferSurpriseEvent {
|
|
1370
|
+
/** Literal tag to simplify multiplexed log consumers. */
|
|
1371
|
+
event: "BUFFER_SURPRISE";
|
|
1372
|
+
/** ISO timestamp when the decision was made. Server-side, not turn ts. */
|
|
1373
|
+
timestamp: string;
|
|
1374
|
+
/** Buffer identifier (session / thread). Opaque string. */
|
|
1375
|
+
bufferKey: string;
|
|
1376
|
+
/** Session key if available; null when the turn has no session binding. */
|
|
1377
|
+
sessionKey: string | null;
|
|
1378
|
+
/** Role of the scored turn. */
|
|
1379
|
+
turnRole: "user" | "assistant";
|
|
1380
|
+
/** Surprise score in `[0, 1]`, already clamped. */
|
|
1381
|
+
surpriseScore: number;
|
|
1382
|
+
/** Threshold in force when the decision was made. */
|
|
1383
|
+
threshold: number;
|
|
1384
|
+
/** Whether this turn upgraded `keep_buffering` → `extract_now`. */
|
|
1385
|
+
triggeredFlush: boolean;
|
|
1386
|
+
/** Number of turns in the buffer (including the current turn). */
|
|
1387
|
+
turnCountInWindow: number;
|
|
1388
|
+
}
|
|
1121
1389
|
/** Memory status for lifecycle management */
|
|
1122
1390
|
type MemoryStatus = "active" | "pending_review" | "rejected" | "quarantined" | "superseded" | "archived";
|
|
1123
1391
|
type LifecycleState = "candidate" | "validated" | "active" | "stale" | "archived";
|
|
@@ -1175,6 +1443,10 @@ interface MemoryFrontmatter {
|
|
|
1175
1443
|
accessCount?: number;
|
|
1176
1444
|
/** Last time this memory was accessed (ISO 8601) */
|
|
1177
1445
|
lastAccessed?: string;
|
|
1446
|
+
/** Number of sessions where this memory was retrieved and the outcome was judged a success. */
|
|
1447
|
+
mw_success?: number;
|
|
1448
|
+
/** Number of sessions where this memory was retrieved and the outcome was judged a failure. */
|
|
1449
|
+
mw_fail?: number;
|
|
1178
1450
|
/** Importance score with level, reasons, and keywords */
|
|
1179
1451
|
importance?: ImportanceScore;
|
|
1180
1452
|
/** Parent memory ID if this is a chunk */
|
|
@@ -1206,6 +1478,26 @@ interface MemoryFrontmatter {
|
|
|
1206
1478
|
* [Source: ...] format and silently fails for custom citation templates.
|
|
1207
1479
|
*/
|
|
1208
1480
|
contentHash?: string;
|
|
1481
|
+
/**
|
|
1482
|
+
* Consolidation provenance — pointers to the page-versioning snapshots
|
|
1483
|
+
* that this memory was derived from (issue #561). Each entry is a
|
|
1484
|
+
* `"<memory-path>:<version-number>"` string (e.g.
|
|
1485
|
+
* `"facts/preferences.md:3"`) referencing a snapshot recorded by
|
|
1486
|
+
* `page-versioning.ts`.
|
|
1487
|
+
*
|
|
1488
|
+
* PR 1 introduces this field as read-through only — storage preserves
|
|
1489
|
+
* it verbatim but no code produces it yet. PR 2 populates it on
|
|
1490
|
+
* consolidation writes; PR 4 adds a `remnic doctor` integrity check
|
|
1491
|
+
* that validates each referent actually exists.
|
|
1492
|
+
*/
|
|
1493
|
+
derived_from?: string[];
|
|
1494
|
+
/**
|
|
1495
|
+
* Which consolidation operator produced this memory (issue #561). See
|
|
1496
|
+
* `ConsolidationOperator` in `semantic-consolidation.ts` for the
|
|
1497
|
+
* operator algebra. Absent on memories that were not produced by a
|
|
1498
|
+
* consolidation pass.
|
|
1499
|
+
*/
|
|
1500
|
+
derived_via?: "split" | "merge" | "update";
|
|
1209
1501
|
}
|
|
1210
1502
|
/** Memory link relationship types */
|
|
1211
1503
|
type MemoryLinkType = "follows" | "references" | "contradicts" | "supports" | "related";
|
|
@@ -1274,6 +1566,20 @@ interface ExtractedFact {
|
|
|
1274
1566
|
structuredAttributes?: Record<string, string>;
|
|
1275
1567
|
/** When category is `procedure`, ordered steps with intents (persisted under procedures/). */
|
|
1276
1568
|
procedureSteps?: ExtractedProcedureStep[];
|
|
1569
|
+
/**
|
|
1570
|
+
* When category is `reasoning_trace`, the stored solution chain the user
|
|
1571
|
+
* walked through. Persisted under reasoning-traces/.
|
|
1572
|
+
*/
|
|
1573
|
+
reasoningTrace?: ExtractedReasoningTrace;
|
|
1574
|
+
}
|
|
1575
|
+
interface ExtractedReasoningTraceStep {
|
|
1576
|
+
order: number;
|
|
1577
|
+
description: string;
|
|
1578
|
+
}
|
|
1579
|
+
interface ExtractedReasoningTrace {
|
|
1580
|
+
steps: ExtractedReasoningTraceStep[];
|
|
1581
|
+
finalAnswer: string;
|
|
1582
|
+
observedOutcome?: string;
|
|
1277
1583
|
}
|
|
1278
1584
|
interface MemoryIntent {
|
|
1279
1585
|
goal: string;
|
|
@@ -1734,4 +2040,4 @@ interface HourlySummary {
|
|
|
1734
2040
|
generatedAt: string;
|
|
1735
2041
|
}
|
|
1736
2042
|
|
|
1737
|
-
export { type AccessTrackingEntry, type ActiveRecallChatType, type ActiveRecallModelFallbackPolicy, type ActiveRecallPromptStyle, type ActiveRecallQueryMode, type ActiveRecallThinking, type AgentAccessHttpConfig, type AgentDefaultsConfig, type AgentPersona, type AgentPersonaModelConfig, type BehaviorLoopAdjustment, type BehaviorLoopPolicyState, type BehaviorSignalDirection, type BehaviorSignalEvent, type BehaviorSignalType, type BootstrapOptions, type BootstrapResult, type BriefingActiveThread, type BriefingCalendarSourceError, type BriefingConfig, type BriefingFocus, type BriefingFollowup, type BriefingOpenCommitment, type BriefingRecentEntity, type BriefingResult, type BriefingSections, type BriefingWindow, type BufferEntryState, type BufferState, type BufferTurn, type CalendarEvent, type CalendarSource, type CaptureMode, type Checkpoint, type CodexCompactionFlushMode, type CodexCompatConfig, type CodexConnectorConfig, type CompressionGuidelineActivationState, type CompressionGuidelineOptimizerActionSummary, type CompressionGuidelineOptimizerEventCounts, type CompressionGuidelineOptimizerRuleUpdate, type CompressionGuidelineOptimizerSourceWindow, type CompressionGuidelineOptimizerState, type ConfidenceTier, type ConsolidationAction, type ConsolidationItem, type ConsolidationObservation, type ConsolidationResult, type ContinuityImprovementLoop, type ContinuityIncidentCloseInput, type ContinuityIncidentOpenInput, type ContinuityIncidentRecord, type ContinuityIncidentState, type ContinuityLoopCadence, type ContinuityLoopReviewInput, type ContinuityLoopStatus, type ContinuityLoopUpsertInput, type ConversationThread, type CronConversationRecallMode, type CronRecallMode, type DaySummaryResult, type DreamingConfig, type DreamingNarrativePromptStyle, type EngramTraceEvent, type EntityActivityEntry, type EntityFile, type EntityMention, type EntityRelationship, type EntitySchemaDefinition, type EntitySchemaSectionDefinition, type EntityStructuredSection, type EntityTimelineEntry, type ExtractedFact, type ExtractedProcedureStep, type ExtractedQuestion, type ExtractedRelationship, type ExtractionPassSource, type ExtractionResult, type FileHygieneConfig, type GatewayConfig, type HeartbeatConfig, type HeartbeatDetectionMode, type HourlySummary, type IdentityInjectionMode, type ImportanceLevel, type ImportanceScore, type LifecycleState, type LlmTraceCallback, type LlmTraceEvent, type MemoryActionEligibilityContext, type MemoryActionEligibilitySource, type MemoryActionEvent, type MemoryActionOutcome, type MemoryActionPolicyDecision, type MemoryActionPolicyResult, type MemoryActionStatus, type MemoryActionType, type MemoryCategory, type MemoryFile, type MemoryFrontmatter, type MemoryIntent, type MemoryLifecycleEvent, type MemoryLifecycleEventType, type MemoryLifecycleStateSummary, type MemoryLink, type MemoryLinkType, type MemoryOsPresetName, type MemoryProjectionCurrentState, type MemoryStatus, type MemorySummary, type MetaState, type ModelApi, type ModelDefinitionConfig, type ModelProviderAuthMode, type ModelProviderConfig, type NamespacePolicy, type NativeKnowledgeConfig, type NativeKnowledgeFolderRuleConfig, type NativeKnowledgeObsidianVaultConfig, type NativeKnowledgeOpenClawWorkspaceConfig, type PluginConfig, type PolicyClass, type PrincipalFromSessionKeyMode, type PrincipalRule, type ProceduralConfig, type QmdSearchExplain, type QmdSearchResult, type QuestionEntry, type ReasoningEffort, type RecallPipelineConfig, type RecallPlanMode, type RecallSectionConfig, type RecallTierExplain, type RecallTraceEvent, type RelevanceFeedback, type RetrievalTier, SPECULATIVE_TTL_DAYS, type ScoredEntity, type SemanticChunkingConfigShape, type SessionObserverBandConfig, type SignalLevel, type SignalScanResult, type SlotBehaviorConfig, type SlotMismatchMode, type TopicScore, type TranscriptEntry, type TriggerMode, type VerificationState, confidenceTier };
|
|
2043
|
+
export { type AccessTrackingEntry, type ActiveRecallChatType, type ActiveRecallModelFallbackPolicy, type ActiveRecallPromptStyle, type ActiveRecallQueryMode, type ActiveRecallThinking, type AgentAccessHttpConfig, type AgentDefaultsConfig, type AgentPersona, type AgentPersonaModelConfig, type BehaviorLoopAdjustment, type BehaviorLoopPolicyState, type BehaviorSignalDirection, type BehaviorSignalEvent, type BehaviorSignalType, type BootstrapOptions, type BootstrapResult, type BriefingActiveThread, type BriefingCalendarSourceError, type BriefingConfig, type BriefingFocus, type BriefingFollowup, type BriefingOpenCommitment, type BriefingRecentEntity, type BriefingResult, type BriefingSections, type BriefingWindow, type BufferEntryState, type BufferState, type BufferSurpriseEvent, type BufferTurn, type CalendarEvent, type CalendarSource, type CaptureMode, type Checkpoint, type CodexCompactionFlushMode, type CodexCompatConfig, type CodexConnectorConfig, type CodingContext, type CodingModeConfig, type CompressionGuidelineActivationState, type CompressionGuidelineOptimizerActionSummary, type CompressionGuidelineOptimizerEventCounts, type CompressionGuidelineOptimizerRuleUpdate, type CompressionGuidelineOptimizerSourceWindow, type CompressionGuidelineOptimizerState, type ConfidenceTier, type ConsolidationAction, type ConsolidationItem, type ConsolidationObservation, type ConsolidationResult, type ContinuityImprovementLoop, type ContinuityIncidentCloseInput, type ContinuityIncidentOpenInput, type ContinuityIncidentRecord, type ContinuityIncidentState, type ContinuityLoopCadence, type ContinuityLoopReviewInput, type ContinuityLoopStatus, type ContinuityLoopUpsertInput, type ContradictionScanConfig, type ConversationThread, type CronConversationRecallMode, type CronRecallMode, type DaySummaryResult, type DreamingConfig, type DreamingNarrativePromptStyle, type EngramTraceEvent, type EntityActivityEntry, type EntityFile, type EntityMention, type EntityRelationship, type EntitySchemaDefinition, type EntitySchemaSectionDefinition, type EntityStructuredSection, type EntityTimelineEntry, type ExtractedFact, type ExtractedProcedureStep, type ExtractedQuestion, type ExtractedReasoningTrace, type ExtractedReasoningTraceStep, type ExtractedRelationship, type ExtractionPassSource, type ExtractionResult, type FileHygieneConfig, type GatewayConfig, type HeartbeatConfig, type HeartbeatDetectionMode, type HourlySummary, type IdentityInjectionMode, type ImportanceLevel, type ImportanceScore, type LifecycleState, type LlmTraceCallback, type LlmTraceEvent, type MemoryActionEligibilityContext, type MemoryActionEligibilitySource, type MemoryActionEvent, type MemoryActionOutcome, type MemoryActionPolicyDecision, type MemoryActionPolicyResult, type MemoryActionStatus, type MemoryActionType, type MemoryCategory, type MemoryFile, type MemoryFrontmatter, type MemoryIntent, type MemoryLifecycleEvent, type MemoryLifecycleEventType, type MemoryLifecycleStateSummary, type MemoryLink, type MemoryLinkType, type MemoryOsPresetName, type MemoryProjectionCurrentState, type MemoryStatus, type MemorySummary, type MetaState, type ModelApi, type ModelDefinitionConfig, type ModelProviderAuthMode, type ModelProviderConfig, type NamespacePolicy, type NativeKnowledgeConfig, type NativeKnowledgeFolderRuleConfig, type NativeKnowledgeObsidianVaultConfig, type NativeKnowledgeOpenClawWorkspaceConfig, type PluginConfig, type PolicyClass, type PrincipalFromSessionKeyMode, type PrincipalRule, type ProceduralConfig, type QmdSearchExplain, type QmdSearchResult, type QuestionEntry, type ReasoningEffort, type RecallPipelineConfig, type RecallPlanMode, type RecallSectionConfig, type RecallTierExplain, type RecallTraceEvent, type RelevanceFeedback, type RetrievalTier, SPECULATIVE_TTL_DAYS, type ScoredEntity, type SemanticChunkingConfigShape, type SessionObserverBandConfig, type SignalLevel, type SignalScanResult, type SlotBehaviorConfig, type SlotMismatchMode, type TopicScore, type TranscriptEntry, type TriggerMode, type VerificationState, confidenceTier };
|
package/dist/types.js
CHANGED
package/dist/verified-recall.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchVerifiedEpisodes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CUPFXL3J.js";
|
|
4
4
|
import "./chunk-URB2WSKZ.js";
|
|
5
5
|
import "./chunk-DT5TVLJE.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-F5VP6YCB.js";
|
|
7
|
+
import "./chunk-LTCGGW2D.js";
|
|
8
8
|
import "./chunk-4KAN3GZ3.js";
|
|
9
|
-
import "./chunk-6ZH4TU6I.js";
|
|
10
9
|
import "./chunk-6PFRXT4K.js";
|
|
11
10
|
import "./chunk-TP4FZJIZ.js";
|
|
12
11
|
import "./chunk-SCU65EZI.js";
|
|
13
12
|
import "./chunk-BOUYNNYD.js";
|
|
14
|
-
import "./chunk-QSVPYQPG.js";
|
|
15
13
|
import "./chunk-DM2T26WE.js";
|
|
14
|
+
import "./chunk-QSVPYQPG.js";
|
|
16
15
|
import "./chunk-M62O4P4T.js";
|
|
17
16
|
import "./chunk-4DJQYKMN.js";
|
|
17
|
+
import "./chunk-X6GF3FX2.js";
|
|
18
|
+
import "./chunk-FAAFWE4G.js";
|
|
18
19
|
import "./chunk-2ODBA7MQ.js";
|
|
19
20
|
export {
|
|
20
21
|
searchVerifiedEpisodes
|