@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/access-service.d.ts
CHANGED
|
@@ -1,675 +1,35 @@
|
|
|
1
|
-
import { DaySummaryResult, RecallPlanMode, MemoryFile, MemoryLifecycleEvent, EntityFile, MemoryStatus } from './types.js';
|
|
2
|
-
import { ExplicitCaptureInput } from './explicit-capture.js';
|
|
3
|
-
import { r as readMemoryGovernanceRunArtifact } from './memory-projection-store-DeSXPh1j.js';
|
|
4
|
-
import { LastRecallSnapshot } from './recall-state.js';
|
|
5
|
-
import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot } from './orchestrator-B9kwlCep.js';
|
|
6
|
-
import { TrustZoneStoreStatus, TrustZoneName, TrustZoneRecordKind, TrustZoneSourceClass, TrustZoneProvenanceScore, TrustZonePromotionResult, TrustZoneDemoSeedResult } from './trust-zones.js';
|
|
7
|
-
import 'better-sqlite3';
|
|
8
|
-
import './buffer.js';
|
|
9
1
|
import './storage.js';
|
|
2
|
+
import './recall-xray.js';
|
|
3
|
+
import './recall-explain-renderer.js';
|
|
4
|
+
import './types.js';
|
|
5
|
+
import './recall-audit-anomaly.js';
|
|
6
|
+
import './explicit-capture.js';
|
|
7
|
+
import './cross-namespace-budget.js';
|
|
8
|
+
import './memory-projection-store-DeSXPh1j.js';
|
|
9
|
+
export { g as ENGRAM_ACCESS_WRITE_SCHEMA_VERSION, h as EngramAccessBriefingRequest, i as EngramAccessBriefingResponse, j as EngramAccessDaySummaryRequest, k as EngramAccessEntityListResponse, l as EngramAccessEntityResponse, m as EngramAccessEntitySummary, n as EngramAccessHealthResponse, a as EngramAccessInputError, o as EngramAccessLcmSearchRequest, p as EngramAccessLcmSearchResponse, q as EngramAccessLcmStatusResponse, r as EngramAccessMaintenanceResponse, s as EngramAccessMemoryBrowseRequest, t as EngramAccessMemoryBrowseResponse, u as EngramAccessMemoryRecord, v as EngramAccessMemoryResponse, w as EngramAccessMemoryStoreRequest, x as EngramAccessMemorySummary, y as EngramAccessObserveRequest, z as EngramAccessObserveResponse, A as EngramAccessQualityResponse, B as EngramAccessRecallExplainRequest, C as EngramAccessRecallExplainResponse, D as EngramAccessRecallRequest, F as EngramAccessRecallResponse, G as EngramAccessReviewDispositionRequest, H as EngramAccessReviewDispositionResponse, I as EngramAccessReviewQueueResponse, E as EngramAccessService, J as EngramAccessSetCodingContextRequest, K as EngramAccessSuggestionSubmitRequest, L as EngramAccessTimelineResponse, M as EngramAccessTrustZoneBrowseRequest, N as EngramAccessTrustZoneBrowseResponse, O as EngramAccessTrustZoneDemoSeedRequest, Q as EngramAccessTrustZoneDemoSeedResponse, R as EngramAccessTrustZonePromoteRequest, S as EngramAccessTrustZonePromoteResponse, T as EngramAccessTrustZoneRecordSummary, U as EngramAccessTrustZoneStatusResponse, V as EngramAccessWriteEnvelope, W as EngramAccessWriteResponse } from './access-service-Br8ZydTK.js';
|
|
10
|
+
import './recall-state.js';
|
|
11
|
+
import './orchestrator-CmJ-NTdJ.js';
|
|
12
|
+
import './trust-zones.js';
|
|
13
|
+
import './local-llm.js';
|
|
14
|
+
import './fallback-llm.js';
|
|
15
|
+
import './memory-worth-outcomes.js';
|
|
10
16
|
import './page-versioning.js';
|
|
11
|
-
import './
|
|
17
|
+
import './consolidation-operator.js';
|
|
18
|
+
import 'better-sqlite3';
|
|
19
|
+
import './recall-audit.js';
|
|
20
|
+
import './buffer.js';
|
|
21
|
+
import './port-BADbLZU5.js';
|
|
12
22
|
import './transcript.js';
|
|
13
23
|
import './session-integrity.js';
|
|
14
24
|
import './summarizer.js';
|
|
15
25
|
import './model-registry.js';
|
|
16
|
-
import './local-llm.js';
|
|
17
26
|
import './relevance.js';
|
|
18
27
|
import './negative.js';
|
|
19
28
|
import './session-observer-state.js';
|
|
20
29
|
import './embedding-fallback.js';
|
|
21
|
-
import './semantic-consolidation-
|
|
30
|
+
import './semantic-consolidation-CxJU6MJk.js';
|
|
22
31
|
import './codex-materialize-CQlLTzke.js';
|
|
23
32
|
import './logger.js';
|
|
24
33
|
import 'zod';
|
|
25
34
|
import './policy-runtime.js';
|
|
26
35
|
import './profiling.js';
|
|
27
|
-
|
|
28
|
-
declare class EngramAccessInputError extends Error {
|
|
29
|
-
}
|
|
30
|
-
declare const ENGRAM_ACCESS_WRITE_SCHEMA_VERSION = 1;
|
|
31
|
-
interface EngramAccessHealthResponse {
|
|
32
|
-
ok: true;
|
|
33
|
-
memoryDir: string;
|
|
34
|
-
namespacesEnabled: boolean;
|
|
35
|
-
defaultNamespace: string;
|
|
36
|
-
searchBackend: string;
|
|
37
|
-
qmdEnabled: boolean;
|
|
38
|
-
nativeKnowledgeEnabled: boolean;
|
|
39
|
-
projectionAvailable: boolean;
|
|
40
|
-
}
|
|
41
|
-
interface EngramAccessRecallRequest {
|
|
42
|
-
query: string;
|
|
43
|
-
sessionKey?: string;
|
|
44
|
-
namespace?: string;
|
|
45
|
-
topK?: number;
|
|
46
|
-
mode?: RecallPlanMode | "auto";
|
|
47
|
-
includeDebug?: boolean;
|
|
48
|
-
}
|
|
49
|
-
interface EngramAccessRecallResponse {
|
|
50
|
-
query: string;
|
|
51
|
-
sessionKey?: string;
|
|
52
|
-
namespace: string;
|
|
53
|
-
context: string;
|
|
54
|
-
count: number;
|
|
55
|
-
memoryIds: string[];
|
|
56
|
-
results: EngramAccessMemorySummary[];
|
|
57
|
-
recordedAt?: string;
|
|
58
|
-
traceId?: string;
|
|
59
|
-
plannerMode?: RecallPlanMode;
|
|
60
|
-
fallbackUsed: boolean;
|
|
61
|
-
sourcesUsed: string[];
|
|
62
|
-
budgetsApplied?: LastRecallSnapshot["budgetsApplied"];
|
|
63
|
-
latencyMs?: number;
|
|
64
|
-
debug?: {
|
|
65
|
-
snapshot?: LastRecallSnapshot;
|
|
66
|
-
intent?: IntentDebugSnapshot | null;
|
|
67
|
-
graph?: GraphRecallSnapshot | null;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
interface EngramAccessRecallExplainRequest {
|
|
71
|
-
sessionKey?: string;
|
|
72
|
-
namespace?: string;
|
|
73
|
-
}
|
|
74
|
-
interface EngramAccessRecallExplainResponse {
|
|
75
|
-
found: boolean;
|
|
76
|
-
snapshot?: LastRecallSnapshot;
|
|
77
|
-
intent?: IntentDebugSnapshot | null;
|
|
78
|
-
graph?: GraphRecallSnapshot | null;
|
|
79
|
-
}
|
|
80
|
-
interface EngramAccessDaySummaryRequest {
|
|
81
|
-
memories?: string;
|
|
82
|
-
sessionKey?: string;
|
|
83
|
-
namespace?: string;
|
|
84
|
-
}
|
|
85
|
-
/** Inputs accepted by the `remnic_briefing` MCP tool. */
|
|
86
|
-
interface EngramAccessBriefingRequest {
|
|
87
|
-
since?: string;
|
|
88
|
-
focus?: string;
|
|
89
|
-
namespace?: string;
|
|
90
|
-
format?: "markdown" | "json";
|
|
91
|
-
maxFollowups?: number;
|
|
92
|
-
/** Caller principal for namespace access checks. Transport-bound — never from untrusted payloads. */
|
|
93
|
-
principal?: string;
|
|
94
|
-
}
|
|
95
|
-
/** Response for `remnic_briefing`. */
|
|
96
|
-
interface EngramAccessBriefingResponse {
|
|
97
|
-
format: "markdown" | "json";
|
|
98
|
-
window: {
|
|
99
|
-
from: string;
|
|
100
|
-
to: string;
|
|
101
|
-
};
|
|
102
|
-
namespace: string;
|
|
103
|
-
markdown: string;
|
|
104
|
-
json: Record<string, unknown>;
|
|
105
|
-
followupsUnavailableReason?: string;
|
|
106
|
-
}
|
|
107
|
-
interface EngramAccessMemoryRecord {
|
|
108
|
-
id: string;
|
|
109
|
-
path: string;
|
|
110
|
-
category: string;
|
|
111
|
-
status?: string;
|
|
112
|
-
created?: string;
|
|
113
|
-
updated?: string;
|
|
114
|
-
content: string;
|
|
115
|
-
frontmatter: MemoryFile["frontmatter"];
|
|
116
|
-
}
|
|
117
|
-
interface EngramAccessMemorySummary {
|
|
118
|
-
id: string;
|
|
119
|
-
path: string;
|
|
120
|
-
category: string;
|
|
121
|
-
status: string;
|
|
122
|
-
created?: string;
|
|
123
|
-
updated?: string;
|
|
124
|
-
tags: string[];
|
|
125
|
-
entityRef?: string;
|
|
126
|
-
preview: string;
|
|
127
|
-
}
|
|
128
|
-
interface EngramAccessMemoryBrowseRequest {
|
|
129
|
-
query?: string;
|
|
130
|
-
status?: string;
|
|
131
|
-
category?: string;
|
|
132
|
-
namespace?: string;
|
|
133
|
-
sort?: "updated_desc" | "updated_asc" | "created_desc" | "created_asc";
|
|
134
|
-
limit?: number;
|
|
135
|
-
offset?: number;
|
|
136
|
-
}
|
|
137
|
-
interface EngramAccessMemoryBrowseResponse {
|
|
138
|
-
namespace: string;
|
|
139
|
-
sort: "updated_desc" | "updated_asc" | "created_desc" | "created_asc";
|
|
140
|
-
total: number;
|
|
141
|
-
count: number;
|
|
142
|
-
limit: number;
|
|
143
|
-
offset: number;
|
|
144
|
-
memories: EngramAccessMemorySummary[];
|
|
145
|
-
}
|
|
146
|
-
interface EngramAccessMemoryResponse {
|
|
147
|
-
found: boolean;
|
|
148
|
-
namespace: string;
|
|
149
|
-
memory?: EngramAccessMemoryRecord;
|
|
150
|
-
}
|
|
151
|
-
interface EngramAccessTimelineResponse {
|
|
152
|
-
found: boolean;
|
|
153
|
-
namespace: string;
|
|
154
|
-
count: number;
|
|
155
|
-
timeline: MemoryLifecycleEvent[];
|
|
156
|
-
}
|
|
157
|
-
interface EngramAccessEntitySummary {
|
|
158
|
-
name: string;
|
|
159
|
-
type: string;
|
|
160
|
-
updated: string;
|
|
161
|
-
summary?: string;
|
|
162
|
-
aliases: string[];
|
|
163
|
-
}
|
|
164
|
-
interface EngramAccessEntityListResponse {
|
|
165
|
-
namespace: string;
|
|
166
|
-
total: number;
|
|
167
|
-
count: number;
|
|
168
|
-
limit: number;
|
|
169
|
-
offset: number;
|
|
170
|
-
entities: EngramAccessEntitySummary[];
|
|
171
|
-
}
|
|
172
|
-
interface EngramAccessEntityResponse {
|
|
173
|
-
found: boolean;
|
|
174
|
-
namespace: string;
|
|
175
|
-
entity?: EntityFile;
|
|
176
|
-
}
|
|
177
|
-
interface EngramAccessReviewQueueResponse {
|
|
178
|
-
found: boolean;
|
|
179
|
-
namespace?: string;
|
|
180
|
-
runId?: string;
|
|
181
|
-
summary?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["summary"];
|
|
182
|
-
metrics?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["metrics"];
|
|
183
|
-
qualityScore?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["qualityScore"];
|
|
184
|
-
reviewQueue?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["reviewQueue"];
|
|
185
|
-
appliedActions?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["appliedActions"];
|
|
186
|
-
transitionReport?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["transitionReport"];
|
|
187
|
-
report?: string;
|
|
188
|
-
}
|
|
189
|
-
interface EngramAccessMaintenanceResponse {
|
|
190
|
-
namespace: string;
|
|
191
|
-
health: EngramAccessHealthResponse;
|
|
192
|
-
latestGovernanceRun: EngramAccessReviewQueueResponse;
|
|
193
|
-
}
|
|
194
|
-
interface EngramAccessTrustZoneStatusResponse {
|
|
195
|
-
namespace: string;
|
|
196
|
-
status: TrustZoneStoreStatus;
|
|
197
|
-
}
|
|
198
|
-
interface EngramAccessTrustZoneRecordSummary {
|
|
199
|
-
recordId: string;
|
|
200
|
-
filePath: string;
|
|
201
|
-
zone: TrustZoneName;
|
|
202
|
-
recordedAt: string;
|
|
203
|
-
kind: TrustZoneRecordKind;
|
|
204
|
-
summary: string;
|
|
205
|
-
sourceClass: TrustZoneSourceClass;
|
|
206
|
-
sessionKey?: string;
|
|
207
|
-
sourceId?: string;
|
|
208
|
-
evidenceHashPresent: boolean;
|
|
209
|
-
anchored: boolean;
|
|
210
|
-
entityRefs: string[];
|
|
211
|
-
tags: string[];
|
|
212
|
-
metadata?: Record<string, string>;
|
|
213
|
-
trustScore?: TrustZoneProvenanceScore;
|
|
214
|
-
nextPromotionTarget?: TrustZoneName;
|
|
215
|
-
nextPromotionAllowed: boolean;
|
|
216
|
-
nextPromotionReasons: string[];
|
|
217
|
-
corroborationCount?: number;
|
|
218
|
-
corroborationSourceClasses?: TrustZoneSourceClass[];
|
|
219
|
-
}
|
|
220
|
-
interface EngramAccessTrustZoneBrowseRequest {
|
|
221
|
-
query?: string;
|
|
222
|
-
zone?: TrustZoneName;
|
|
223
|
-
kind?: TrustZoneRecordKind;
|
|
224
|
-
sourceClass?: TrustZoneSourceClass;
|
|
225
|
-
namespace?: string;
|
|
226
|
-
limit?: number;
|
|
227
|
-
offset?: number;
|
|
228
|
-
}
|
|
229
|
-
interface EngramAccessTrustZoneBrowseResponse {
|
|
230
|
-
namespace: string;
|
|
231
|
-
total: number;
|
|
232
|
-
count: number;
|
|
233
|
-
limit: number;
|
|
234
|
-
offset: number;
|
|
235
|
-
records: EngramAccessTrustZoneRecordSummary[];
|
|
236
|
-
}
|
|
237
|
-
interface EngramAccessTrustZonePromoteRequest {
|
|
238
|
-
recordId: string;
|
|
239
|
-
targetZone: TrustZoneName;
|
|
240
|
-
promotionReason: string;
|
|
241
|
-
recordedAt?: string;
|
|
242
|
-
summary?: string;
|
|
243
|
-
dryRun?: boolean;
|
|
244
|
-
namespace?: string;
|
|
245
|
-
authenticatedPrincipal?: string;
|
|
246
|
-
}
|
|
247
|
-
interface EngramAccessTrustZonePromoteResponse extends TrustZonePromotionResult {
|
|
248
|
-
namespace: string;
|
|
249
|
-
dryRun: boolean;
|
|
250
|
-
}
|
|
251
|
-
interface EngramAccessTrustZoneDemoSeedRequest {
|
|
252
|
-
scenario?: string;
|
|
253
|
-
recordedAt?: string;
|
|
254
|
-
dryRun?: boolean;
|
|
255
|
-
namespace?: string;
|
|
256
|
-
authenticatedPrincipal?: string;
|
|
257
|
-
}
|
|
258
|
-
interface EngramAccessTrustZoneDemoSeedResponse extends TrustZoneDemoSeedResult {
|
|
259
|
-
namespace: string;
|
|
260
|
-
}
|
|
261
|
-
interface EngramAccessQualityResponse {
|
|
262
|
-
namespace: string;
|
|
263
|
-
totalMemories: number;
|
|
264
|
-
statusCounts: Record<string, number>;
|
|
265
|
-
categoryCounts: Record<string, number>;
|
|
266
|
-
confidenceTierCounts: Record<string, number>;
|
|
267
|
-
ageBucketCounts: Record<string, number>;
|
|
268
|
-
archivePressure: {
|
|
269
|
-
pendingReview: number;
|
|
270
|
-
quarantined: number;
|
|
271
|
-
archived: number;
|
|
272
|
-
staleActive: number;
|
|
273
|
-
lowConfidenceActive: number;
|
|
274
|
-
};
|
|
275
|
-
latestGovernanceRun: {
|
|
276
|
-
found: boolean;
|
|
277
|
-
runId?: string;
|
|
278
|
-
qualityScore?: EngramAccessReviewQueueResponse["qualityScore"];
|
|
279
|
-
reviewQueueCount: number;
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
interface EngramAccessReviewDispositionRequest {
|
|
283
|
-
memoryId: string;
|
|
284
|
-
status: MemoryStatus | "archived";
|
|
285
|
-
reasonCode: string;
|
|
286
|
-
namespace?: string;
|
|
287
|
-
/**
|
|
288
|
-
* Trusted transport-bound principal. This must never come from untrusted client payloads.
|
|
289
|
-
* When present, write authorization is evaluated against this principal instead of sessionKey.
|
|
290
|
-
*/
|
|
291
|
-
authenticatedPrincipal?: string;
|
|
292
|
-
}
|
|
293
|
-
interface EngramAccessReviewDispositionResponse {
|
|
294
|
-
ok: boolean;
|
|
295
|
-
namespace: string;
|
|
296
|
-
memoryId: string;
|
|
297
|
-
status: MemoryStatus | "archived";
|
|
298
|
-
previousStatus: MemoryStatus;
|
|
299
|
-
currentPath?: string;
|
|
300
|
-
}
|
|
301
|
-
interface EngramAccessWriteEnvelope {
|
|
302
|
-
schemaVersion?: number;
|
|
303
|
-
idempotencyKey?: string;
|
|
304
|
-
dryRun?: boolean;
|
|
305
|
-
sessionKey?: string;
|
|
306
|
-
/**
|
|
307
|
-
* Trusted transport-bound principal. This must never come from untrusted client payloads.
|
|
308
|
-
* When present, write authorization is evaluated against this principal instead of sessionKey.
|
|
309
|
-
*/
|
|
310
|
-
authenticatedPrincipal?: string;
|
|
311
|
-
}
|
|
312
|
-
interface EngramAccessMemoryStoreRequest extends EngramAccessWriteEnvelope, ExplicitCaptureInput {
|
|
313
|
-
}
|
|
314
|
-
interface EngramAccessSuggestionSubmitRequest extends EngramAccessWriteEnvelope, ExplicitCaptureInput {
|
|
315
|
-
}
|
|
316
|
-
interface EngramAccessWriteResponse {
|
|
317
|
-
schemaVersion: 1;
|
|
318
|
-
operation: "memory_store" | "suggestion_submit";
|
|
319
|
-
namespace: string;
|
|
320
|
-
dryRun: boolean;
|
|
321
|
-
accepted: boolean;
|
|
322
|
-
queued: boolean;
|
|
323
|
-
status: "validated" | "stored" | "duplicate" | "queued_for_review";
|
|
324
|
-
memoryId?: string;
|
|
325
|
-
duplicateOf?: string;
|
|
326
|
-
idempotencyKey?: string;
|
|
327
|
-
idempotencyReplay?: boolean;
|
|
328
|
-
}
|
|
329
|
-
interface EngramAccessObserveRequest {
|
|
330
|
-
sessionKey: string;
|
|
331
|
-
messages: Array<{
|
|
332
|
-
role: "user" | "assistant";
|
|
333
|
-
content: string;
|
|
334
|
-
}>;
|
|
335
|
-
namespace?: string;
|
|
336
|
-
authenticatedPrincipal?: string;
|
|
337
|
-
skipExtraction?: boolean;
|
|
338
|
-
}
|
|
339
|
-
interface EngramAccessObserveResponse {
|
|
340
|
-
accepted: number;
|
|
341
|
-
sessionKey: string;
|
|
342
|
-
namespace: string;
|
|
343
|
-
lcmArchived: boolean;
|
|
344
|
-
extractionQueued: boolean;
|
|
345
|
-
}
|
|
346
|
-
interface EngramAccessLcmSearchRequest {
|
|
347
|
-
query: string;
|
|
348
|
-
sessionKey?: string;
|
|
349
|
-
namespace?: string;
|
|
350
|
-
limit?: number;
|
|
351
|
-
authenticatedPrincipal?: string;
|
|
352
|
-
}
|
|
353
|
-
interface EngramAccessLcmSearchResponse {
|
|
354
|
-
query: string;
|
|
355
|
-
namespace: string;
|
|
356
|
-
results: Array<{
|
|
357
|
-
sessionId: string;
|
|
358
|
-
content: string;
|
|
359
|
-
turnIndex?: number;
|
|
360
|
-
}>;
|
|
361
|
-
count: number;
|
|
362
|
-
lcmEnabled: boolean;
|
|
363
|
-
}
|
|
364
|
-
interface EngramAccessLcmStatusResponse {
|
|
365
|
-
enabled: boolean;
|
|
366
|
-
archiveAvailable: boolean;
|
|
367
|
-
stats?: {
|
|
368
|
-
totalTurns?: number;
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
type EngramAccessIdempotencyStatus = "miss" | "replay" | "conflict";
|
|
372
|
-
declare class EngramAccessService {
|
|
373
|
-
private readonly orchestrator;
|
|
374
|
-
private readonly idempotency;
|
|
375
|
-
private readonly idempotencyLocks;
|
|
376
|
-
constructor(orchestrator: Orchestrator);
|
|
377
|
-
get briefingEnabled(): boolean;
|
|
378
|
-
private resolveNamespace;
|
|
379
|
-
private normalizeRecallMode;
|
|
380
|
-
private resolveRecallNamespace;
|
|
381
|
-
private resolveWritePrincipal;
|
|
382
|
-
private resolveWritableNamespace;
|
|
383
|
-
private resolveReadableNamespace;
|
|
384
|
-
private buildRecallDebug;
|
|
385
|
-
private serializeRecallResults;
|
|
386
|
-
private handleIdempotentWrite;
|
|
387
|
-
private peekIdempotentWrite;
|
|
388
|
-
private withIdempotencyLock;
|
|
389
|
-
health(namespace?: string): Promise<EngramAccessHealthResponse>;
|
|
390
|
-
daySummary(request: EngramAccessDaySummaryRequest): Promise<DaySummaryResult | null>;
|
|
391
|
-
/**
|
|
392
|
-
* Build a daily context briefing. Gracefully degrades when the OpenAI key
|
|
393
|
-
* or Responses API is unavailable — never throws for LLM-related problems.
|
|
394
|
-
*/
|
|
395
|
-
briefing(request: EngramAccessBriefingRequest): Promise<EngramAccessBriefingResponse>;
|
|
396
|
-
recall(request: EngramAccessRecallRequest): Promise<EngramAccessRecallResponse>;
|
|
397
|
-
recallExplain(request?: EngramAccessRecallExplainRequest): Promise<EngramAccessRecallExplainResponse>;
|
|
398
|
-
memoryStore(request: EngramAccessMemoryStoreRequest): Promise<EngramAccessWriteResponse>;
|
|
399
|
-
peekMemoryStoreIdempotency(request: EngramAccessMemoryStoreRequest): Promise<EngramAccessIdempotencyStatus>;
|
|
400
|
-
suggestionSubmit(request: EngramAccessSuggestionSubmitRequest): Promise<EngramAccessWriteResponse>;
|
|
401
|
-
peekSuggestionSubmitIdempotency(request: EngramAccessSuggestionSubmitRequest): Promise<EngramAccessIdempotencyStatus>;
|
|
402
|
-
private validateWriteCandidate;
|
|
403
|
-
memoryGet(memoryId: string, namespace?: string, principal?: string): Promise<EngramAccessMemoryResponse>;
|
|
404
|
-
memoryBrowse(request?: EngramAccessMemoryBrowseRequest): Promise<EngramAccessMemoryBrowseResponse>;
|
|
405
|
-
memoryTimeline(memoryId: string, namespace?: string, limit?: number, principal?: string): Promise<EngramAccessTimelineResponse>;
|
|
406
|
-
entityList(options?: {
|
|
407
|
-
namespace?: string;
|
|
408
|
-
query?: string;
|
|
409
|
-
limit?: number;
|
|
410
|
-
offset?: number;
|
|
411
|
-
}): Promise<EngramAccessEntityListResponse>;
|
|
412
|
-
entityGet(name: string, namespace?: string): Promise<EngramAccessEntityResponse>;
|
|
413
|
-
reviewQueue(runId?: string, namespace?: string, principal?: string): Promise<EngramAccessReviewQueueResponse>;
|
|
414
|
-
maintenance(namespace?: string, principal?: string): Promise<EngramAccessMaintenanceResponse>;
|
|
415
|
-
quality(namespace?: string, principal?: string): Promise<EngramAccessQualityResponse>;
|
|
416
|
-
governanceRun(request: {
|
|
417
|
-
namespace?: string;
|
|
418
|
-
mode?: "shadow" | "apply";
|
|
419
|
-
recentDays?: number;
|
|
420
|
-
maxMemories?: number;
|
|
421
|
-
batchSize?: number;
|
|
422
|
-
authenticatedPrincipal?: string;
|
|
423
|
-
}, principal?: string): Promise<{
|
|
424
|
-
namespace: string;
|
|
425
|
-
runId: string;
|
|
426
|
-
traceId: string;
|
|
427
|
-
mode: "shadow" | "apply";
|
|
428
|
-
reviewQueueCount: number;
|
|
429
|
-
proposedActionCount: number;
|
|
430
|
-
appliedActionCount: number;
|
|
431
|
-
summaryPath: string;
|
|
432
|
-
reportPath: string;
|
|
433
|
-
}>;
|
|
434
|
-
procedureMiningRun(request: {
|
|
435
|
-
namespace?: string;
|
|
436
|
-
authenticatedPrincipal?: string;
|
|
437
|
-
}, principal?: string): Promise<{
|
|
438
|
-
namespace: string;
|
|
439
|
-
clustersProcessed: number;
|
|
440
|
-
proceduresWritten: number;
|
|
441
|
-
skippedReason?: string;
|
|
442
|
-
}>;
|
|
443
|
-
trustZoneStatus(namespace?: string, principal?: string): Promise<EngramAccessTrustZoneStatusResponse>;
|
|
444
|
-
trustZoneBrowse(request: EngramAccessTrustZoneBrowseRequest, principal?: string): Promise<EngramAccessTrustZoneBrowseResponse>;
|
|
445
|
-
trustZonePromote(request: EngramAccessTrustZonePromoteRequest): Promise<EngramAccessTrustZonePromoteResponse>;
|
|
446
|
-
trustZoneDemoSeed(request: EngramAccessTrustZoneDemoSeedRequest): Promise<EngramAccessTrustZoneDemoSeedResponse>;
|
|
447
|
-
reviewDisposition(request: EngramAccessReviewDispositionRequest): Promise<EngramAccessReviewDispositionResponse>;
|
|
448
|
-
private serializeMemory;
|
|
449
|
-
private serializeMemorySummary;
|
|
450
|
-
observe(request: EngramAccessObserveRequest): Promise<EngramAccessObserveResponse>;
|
|
451
|
-
lcmSearch(request: EngramAccessLcmSearchRequest): Promise<EngramAccessLcmSearchResponse>;
|
|
452
|
-
continuityAuditGenerate(request: {
|
|
453
|
-
period?: "weekly" | "monthly";
|
|
454
|
-
key?: string;
|
|
455
|
-
}): Promise<{
|
|
456
|
-
enabled: boolean;
|
|
457
|
-
reason?: string;
|
|
458
|
-
period?: string;
|
|
459
|
-
key?: string;
|
|
460
|
-
reportPath?: string;
|
|
461
|
-
}>;
|
|
462
|
-
continuityIncidentOpen(request: {
|
|
463
|
-
symptom: string;
|
|
464
|
-
namespace?: string;
|
|
465
|
-
principal?: string;
|
|
466
|
-
triggerWindow?: string;
|
|
467
|
-
suspectedCause?: string;
|
|
468
|
-
}): Promise<unknown>;
|
|
469
|
-
continuityIncidentClose(request: {
|
|
470
|
-
id: string;
|
|
471
|
-
namespace?: string;
|
|
472
|
-
principal?: string;
|
|
473
|
-
fixApplied: string;
|
|
474
|
-
verificationResult: string;
|
|
475
|
-
preventiveRule?: string;
|
|
476
|
-
}): Promise<unknown>;
|
|
477
|
-
continuityIncidentList(request: {
|
|
478
|
-
state?: "open" | "closed" | "all";
|
|
479
|
-
namespace?: string;
|
|
480
|
-
principal?: string;
|
|
481
|
-
limit?: number;
|
|
482
|
-
}): Promise<unknown>;
|
|
483
|
-
continuityLoopAddOrUpdate(request: {
|
|
484
|
-
id: string;
|
|
485
|
-
cadence: "daily" | "weekly" | "monthly" | "quarterly";
|
|
486
|
-
purpose: string;
|
|
487
|
-
status: "active" | "paused" | "retired";
|
|
488
|
-
killCondition: string;
|
|
489
|
-
namespace?: string;
|
|
490
|
-
principal?: string;
|
|
491
|
-
lastReviewed?: string;
|
|
492
|
-
notes?: string;
|
|
493
|
-
}): Promise<unknown>;
|
|
494
|
-
continuityLoopReview(request: {
|
|
495
|
-
id: string;
|
|
496
|
-
namespace?: string;
|
|
497
|
-
principal?: string;
|
|
498
|
-
status?: "active" | "paused" | "retired";
|
|
499
|
-
notes?: string;
|
|
500
|
-
reviewedAt?: string;
|
|
501
|
-
}): Promise<unknown>;
|
|
502
|
-
identityAnchorGet(request: {
|
|
503
|
-
namespace?: string;
|
|
504
|
-
principal?: string;
|
|
505
|
-
}): Promise<unknown>;
|
|
506
|
-
identityAnchorUpdate(request: {
|
|
507
|
-
namespace?: string;
|
|
508
|
-
principal?: string;
|
|
509
|
-
identityTraits?: string;
|
|
510
|
-
communicationPreferences?: string;
|
|
511
|
-
operatingPrinciples?: string;
|
|
512
|
-
continuityNotes?: string;
|
|
513
|
-
}): Promise<unknown>;
|
|
514
|
-
memoryIdentity(request: {
|
|
515
|
-
namespace?: string;
|
|
516
|
-
principal?: string;
|
|
517
|
-
}): Promise<unknown>;
|
|
518
|
-
workTask(request: {
|
|
519
|
-
action: "create" | "get" | "list" | "update" | "transition" | "delete";
|
|
520
|
-
id?: string;
|
|
521
|
-
title?: string;
|
|
522
|
-
description?: string;
|
|
523
|
-
status?: string;
|
|
524
|
-
priority?: string;
|
|
525
|
-
owner?: string;
|
|
526
|
-
assignee?: string;
|
|
527
|
-
projectId?: string;
|
|
528
|
-
tags?: string[];
|
|
529
|
-
dueAt?: string;
|
|
530
|
-
}): Promise<unknown>;
|
|
531
|
-
workProject(request: {
|
|
532
|
-
action: "create" | "get" | "list" | "update" | "delete" | "link_task";
|
|
533
|
-
id?: string;
|
|
534
|
-
name?: string;
|
|
535
|
-
description?: string;
|
|
536
|
-
status?: string;
|
|
537
|
-
owner?: string;
|
|
538
|
-
tags?: string[];
|
|
539
|
-
taskId?: string;
|
|
540
|
-
projectId?: string;
|
|
541
|
-
}): Promise<unknown>;
|
|
542
|
-
workBoard(request: {
|
|
543
|
-
action: "export_markdown" | "export_snapshot" | "import_snapshot";
|
|
544
|
-
projectId?: string;
|
|
545
|
-
snapshotJson?: string;
|
|
546
|
-
linkToMemory?: boolean;
|
|
547
|
-
}): Promise<unknown>;
|
|
548
|
-
sharedContextWriteOutput(request: {
|
|
549
|
-
agentId: string;
|
|
550
|
-
title: string;
|
|
551
|
-
content: string;
|
|
552
|
-
}): Promise<unknown>;
|
|
553
|
-
sharedFeedbackRecord(request: {
|
|
554
|
-
agent: string;
|
|
555
|
-
decision: "approved" | "approved_with_feedback" | "rejected";
|
|
556
|
-
reason: string;
|
|
557
|
-
date?: string;
|
|
558
|
-
learning?: string;
|
|
559
|
-
outcome?: string;
|
|
560
|
-
severity?: "low" | "medium" | "high";
|
|
561
|
-
confidence?: number;
|
|
562
|
-
workflow?: string;
|
|
563
|
-
tags?: string[];
|
|
564
|
-
evidenceWindowStart?: string;
|
|
565
|
-
evidenceWindowEnd?: string;
|
|
566
|
-
refs?: string[];
|
|
567
|
-
}): Promise<unknown>;
|
|
568
|
-
sharedPrioritiesAppend(request: {
|
|
569
|
-
agentId: string;
|
|
570
|
-
text: string;
|
|
571
|
-
}): Promise<unknown>;
|
|
572
|
-
sharedContextCrossSignalsRun(request: {
|
|
573
|
-
date?: string;
|
|
574
|
-
}): Promise<unknown>;
|
|
575
|
-
sharedContextCurateDaily(request: {
|
|
576
|
-
date?: string;
|
|
577
|
-
}): Promise<unknown>;
|
|
578
|
-
compoundingWeeklySynthesize(request: {
|
|
579
|
-
weekId?: string;
|
|
580
|
-
}): Promise<unknown>;
|
|
581
|
-
compoundingPromoteCandidate(request: {
|
|
582
|
-
weekId: string;
|
|
583
|
-
candidateId: string;
|
|
584
|
-
dryRun?: boolean;
|
|
585
|
-
}): Promise<unknown>;
|
|
586
|
-
compressionGuidelinesOptimize(request: {
|
|
587
|
-
dryRun?: boolean;
|
|
588
|
-
eventLimit?: number;
|
|
589
|
-
}): Promise<unknown>;
|
|
590
|
-
compressionGuidelinesActivate(request: {
|
|
591
|
-
expectedContentHash?: string;
|
|
592
|
-
expectedGuidelineVersion?: number;
|
|
593
|
-
}): Promise<unknown>;
|
|
594
|
-
/** Conservative identity anchor section merge (matches tools.ts mergeIdentityAnchor logic). */
|
|
595
|
-
private mergeIdentityAnchorSections;
|
|
596
|
-
memorySearch(request: {
|
|
597
|
-
query: string;
|
|
598
|
-
namespace?: string;
|
|
599
|
-
maxResults?: number;
|
|
600
|
-
collection?: string;
|
|
601
|
-
principal?: string;
|
|
602
|
-
}): Promise<{
|
|
603
|
-
query: string;
|
|
604
|
-
results: Array<{
|
|
605
|
-
path: string;
|
|
606
|
-
score: number;
|
|
607
|
-
snippet: string;
|
|
608
|
-
}>;
|
|
609
|
-
count: number;
|
|
610
|
-
}>;
|
|
611
|
-
memoryProfile(namespace?: string, principal?: string): Promise<Record<string, unknown>>;
|
|
612
|
-
memoryEntitiesList(namespace?: string, principal?: string): Promise<{
|
|
613
|
-
entities: string[];
|
|
614
|
-
count: number;
|
|
615
|
-
}>;
|
|
616
|
-
memoryQuestions(namespace?: string, principal?: string): Promise<{
|
|
617
|
-
questions: Array<{
|
|
618
|
-
id: string;
|
|
619
|
-
question: string;
|
|
620
|
-
resolved: boolean;
|
|
621
|
-
}>;
|
|
622
|
-
count: number;
|
|
623
|
-
}>;
|
|
624
|
-
lastRecallSnapshot(sessionKey?: string): Promise<unknown>;
|
|
625
|
-
intentDebug(namespace?: string): Promise<unknown>;
|
|
626
|
-
qmdDebug(namespace?: string): Promise<unknown>;
|
|
627
|
-
graphExplainLastRecall(namespace?: string): Promise<unknown>;
|
|
628
|
-
memoryFeedback(request: {
|
|
629
|
-
memoryId: string;
|
|
630
|
-
vote: "up" | "down";
|
|
631
|
-
note?: string;
|
|
632
|
-
}): Promise<{
|
|
633
|
-
recorded: boolean;
|
|
634
|
-
enabled?: boolean;
|
|
635
|
-
reason?: string;
|
|
636
|
-
}>;
|
|
637
|
-
memoryPromote(request: {
|
|
638
|
-
memoryId: string;
|
|
639
|
-
namespace?: string;
|
|
640
|
-
principal?: string;
|
|
641
|
-
sessionKey?: string;
|
|
642
|
-
}): Promise<unknown>;
|
|
643
|
-
contextCheckpoint(request: {
|
|
644
|
-
sessionKey: string;
|
|
645
|
-
context: string;
|
|
646
|
-
namespace?: string;
|
|
647
|
-
principal?: string;
|
|
648
|
-
}): Promise<{
|
|
649
|
-
saved: boolean;
|
|
650
|
-
}>;
|
|
651
|
-
lcmStatus(): Promise<EngramAccessLcmStatusResponse>;
|
|
652
|
-
/**
|
|
653
|
-
* Record citation usage from an observed oai-mem-citation block.
|
|
654
|
-
* For each citation entry, extract the memory ID from the path and
|
|
655
|
-
* increment its access tracking via the orchestrator. Returns the
|
|
656
|
-
* count of submitted IDs and the count of IDs that matched real memories.
|
|
657
|
-
*/
|
|
658
|
-
recordCitationUsage(request: {
|
|
659
|
-
sessionId?: string;
|
|
660
|
-
namespace?: string;
|
|
661
|
-
authenticatedPrincipal?: string;
|
|
662
|
-
entries: Array<{
|
|
663
|
-
path: string;
|
|
664
|
-
lineStart: number;
|
|
665
|
-
lineEnd: number;
|
|
666
|
-
note: string;
|
|
667
|
-
}>;
|
|
668
|
-
rolloutIds: string[];
|
|
669
|
-
}): Promise<{
|
|
670
|
-
submitted: number;
|
|
671
|
-
matched: number;
|
|
672
|
-
}>;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
export { ENGRAM_ACCESS_WRITE_SCHEMA_VERSION, type EngramAccessBriefingRequest, type EngramAccessBriefingResponse, type EngramAccessDaySummaryRequest, type EngramAccessEntityListResponse, type EngramAccessEntityResponse, type EngramAccessEntitySummary, type EngramAccessHealthResponse, EngramAccessInputError, type EngramAccessLcmSearchRequest, type EngramAccessLcmSearchResponse, type EngramAccessLcmStatusResponse, type EngramAccessMaintenanceResponse, type EngramAccessMemoryBrowseRequest, type EngramAccessMemoryBrowseResponse, type EngramAccessMemoryRecord, type EngramAccessMemoryResponse, type EngramAccessMemoryStoreRequest, type EngramAccessMemorySummary, type EngramAccessObserveRequest, type EngramAccessObserveResponse, type EngramAccessQualityResponse, type EngramAccessRecallExplainRequest, type EngramAccessRecallExplainResponse, type EngramAccessRecallRequest, type EngramAccessRecallResponse, type EngramAccessReviewDispositionRequest, type EngramAccessReviewDispositionResponse, type EngramAccessReviewQueueResponse, EngramAccessService, type EngramAccessSuggestionSubmitRequest, type EngramAccessTimelineResponse, type EngramAccessTrustZoneBrowseRequest, type EngramAccessTrustZoneBrowseResponse, type EngramAccessTrustZoneDemoSeedRequest, type EngramAccessTrustZoneDemoSeedResponse, type EngramAccessTrustZonePromoteRequest, type EngramAccessTrustZonePromoteResponse, type EngramAccessTrustZoneRecordSummary, type EngramAccessTrustZoneStatusResponse, type EngramAccessWriteEnvelope, type EngramAccessWriteResponse };
|