@remnic/core 1.1.2 → 1.1.4
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.js +1 -0
- package/dist/abstraction-nodes.js +1 -0
- package/dist/access-audit.js +1 -0
- package/dist/access-cli.js +72 -47
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.d.ts +50 -5
- package/dist/access-http.js +39 -16
- package/dist/access-idempotency.js +1 -0
- package/dist/access-mcp.d.ts +10 -5
- package/dist/access-mcp.js +38 -14
- package/dist/access-schema.d.ts +133 -13
- package/dist/access-schema.js +20 -1
- package/dist/access-service-CtXFnprR.d.ts +2033 -0
- package/dist/access-service.d.ts +11 -6
- package/dist/access-service.js +40 -15
- package/dist/active-memory-bridge.js +1 -0
- package/dist/active-recall.js +1 -0
- package/dist/active-recall.js.map +1 -1
- package/dist/behavior-learner.js +1 -0
- package/dist/behavior-learner.js.map +1 -1
- package/dist/behavior-signals.js +1 -0
- package/dist/bootstrap.d.ts +6 -4
- package/dist/bootstrap.js +1 -0
- package/dist/boxes.js +1 -0
- package/dist/briefing.d.ts +9 -5
- package/dist/briefing.js +10 -7
- package/dist/buffer-surprise-report.js +1 -0
- package/dist/buffer-surprise.js +1 -0
- package/dist/buffer.d.ts +1 -1
- package/dist/buffer.js +1 -0
- package/dist/calibration.d.ts +8 -1
- package/dist/calibration.js +10 -2
- package/dist/calibration.js.map +1 -1
- package/dist/capsule-cli.d.ts +137 -0
- package/dist/capsule-cli.js +34 -0
- package/dist/capsule-crypto-5CYAGVC5.js +18 -0
- package/dist/capsule-export-NZQPOTQ4.js +17 -0
- package/dist/capsule-export-NZQPOTQ4.js.map +1 -0
- package/dist/capsule-import-SDCUXLEV.js +16 -0
- package/dist/capsule-import-SDCUXLEV.js.map +1 -0
- package/dist/capsule-merge-DI7PNQ2H.js +189 -0
- package/dist/capsule-merge-DI7PNQ2H.js.map +1 -0
- package/dist/causal-behavior.js +1 -0
- package/dist/causal-behavior.js.map +1 -1
- package/dist/causal-chain.js +1 -0
- package/dist/causal-consolidation.js +12 -9
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +2 -1
- package/dist/causal-retrieval.js.map +1 -1
- package/dist/causal-trajectory-graph.js +4 -1
- package/dist/causal-trajectory-graph.js.map +1 -1
- package/dist/causal-trajectory.js +2 -1
- package/dist/chunk-2LSZVONP.js +67 -0
- package/dist/chunk-2LSZVONP.js.map +1 -0
- package/dist/chunk-32KD5IHZ.js +245 -0
- package/dist/chunk-32KD5IHZ.js.map +1 -0
- package/dist/chunk-3KIS4VGT.js +228 -0
- package/dist/chunk-3KIS4VGT.js.map +1 -0
- package/dist/chunk-3LCWFNVS.js +350 -0
- package/dist/chunk-3LCWFNVS.js.map +1 -0
- package/dist/chunk-43EKP2UK.js +26 -0
- package/dist/chunk-43EKP2UK.js.map +1 -0
- package/dist/chunk-457A4P3L.js +119 -0
- package/dist/chunk-457A4P3L.js.map +1 -0
- package/dist/{chunk-TMYO7B5P.js → chunk-47WOM4YW.js} +2 -2
- package/dist/{chunk-FVA6TGI3.js → chunk-52PDY6GD.js} +42 -2
- package/dist/chunk-52PDY6GD.js.map +1 -0
- package/dist/{chunk-ULYOGL6R.js → chunk-5HRY2WRF.js} +7 -3
- package/dist/chunk-5HRY2WRF.js.map +1 -0
- package/dist/{chunk-BOUYNNYD.js → chunk-67YLUWLG.js} +32 -13
- package/dist/{chunk-BOUYNNYD.js.map → chunk-67YLUWLG.js.map} +1 -1
- package/dist/chunk-6TBWYBJ3.js +236 -0
- package/dist/chunk-6TBWYBJ3.js.map +1 -0
- package/dist/chunk-74EMIVE4.js +329 -0
- package/dist/chunk-74EMIVE4.js.map +1 -0
- package/dist/chunk-74WWN7ZW.js +82 -0
- package/dist/chunk-74WWN7ZW.js.map +1 -0
- package/dist/chunk-A6XUJE5D.js +126 -0
- package/dist/chunk-A6XUJE5D.js.map +1 -0
- package/dist/{chunk-STGWEHYR.js → chunk-AEMBDV7M.js} +1187 -62
- package/dist/chunk-AEMBDV7M.js.map +1 -0
- package/dist/{chunk-PVICZTKG.js → chunk-AGZHRWPT.js} +5 -5
- package/dist/{chunk-PVICZTKG.js.map → chunk-AGZHRWPT.js.map} +1 -1
- package/dist/chunk-AJA46VX5.js +393 -0
- package/dist/chunk-AJA46VX5.js.map +1 -0
- package/dist/chunk-ASIQZXYO.js +277 -0
- package/dist/chunk-ASIQZXYO.js.map +1 -0
- package/dist/{chunk-DG6YMRDC.js → chunk-B2TL6GA2.js} +2 -2
- package/dist/chunk-BJMBJZ2Y.js +290 -0
- package/dist/chunk-BJMBJZ2Y.js.map +1 -0
- package/dist/chunk-BT7NVCML.js +79 -0
- package/dist/chunk-BT7NVCML.js.map +1 -0
- package/dist/chunk-CK5NTM2S.js +454 -0
- package/dist/chunk-CK5NTM2S.js.map +1 -0
- package/dist/{chunk-AYXIPSZO.js → chunk-CRU27Q4J.js} +2 -2
- package/dist/{chunk-UWB5LMWY.js → chunk-CUI2STX6.js} +526 -24
- package/dist/chunk-CUI2STX6.js.map +1 -0
- package/dist/{chunk-CUPFXL3J.js → chunk-EGEPUGN4.js} +4 -4
- package/dist/chunk-EGEPUGN4.js.map +1 -0
- package/dist/{chunk-3OGMS3PE.js → chunk-F5VQOQ2E.js} +3 -2
- package/dist/chunk-F5VQOQ2E.js.map +1 -0
- package/dist/chunk-FP2373TW.js +149 -0
- package/dist/chunk-FP2373TW.js.map +1 -0
- package/dist/{chunk-RBBWYEFJ.js → chunk-G2WADRQ3.js} +1 -1
- package/dist/chunk-G7D6GZ5J.js +48 -0
- package/dist/chunk-G7D6GZ5J.js.map +1 -0
- package/dist/chunk-H7XKCNR6.js +60 -0
- package/dist/chunk-H7XKCNR6.js.map +1 -0
- package/dist/{chunk-LOIMBRDE.js → chunk-HIRKCQGF.js} +1994 -412
- package/dist/chunk-HIRKCQGF.js.map +1 -0
- package/dist/chunk-IXEJRKCZ.js +18 -0
- package/dist/chunk-IXEJRKCZ.js.map +1 -0
- package/dist/chunk-IYY4MCPG.js +275 -0
- package/dist/chunk-IYY4MCPG.js.map +1 -0
- package/dist/{chunk-BECYBZLX.js → chunk-JWSENLQI.js} +502 -22
- package/dist/chunk-JWSENLQI.js.map +1 -0
- package/dist/chunk-KNKUID7G.js +183 -0
- package/dist/chunk-KNKUID7G.js.map +1 -0
- package/dist/chunk-L2IO2QPY.js +2036 -0
- package/dist/chunk-L2IO2QPY.js.map +1 -0
- package/dist/{chunk-ZAIM4TUE.js → chunk-LW2NMHDW.js} +46 -1
- package/dist/chunk-LW2NMHDW.js.map +1 -0
- package/dist/chunk-MDYG7VI7.js +48 -0
- package/dist/chunk-MDYG7VI7.js.map +1 -0
- package/dist/{chunk-VDX363PS.js → chunk-MUELDH4F.js} +10 -3
- package/dist/chunk-MUELDH4F.js.map +1 -0
- package/dist/chunk-MXC3AP5I.js +74 -0
- package/dist/chunk-MXC3AP5I.js.map +1 -0
- package/dist/chunk-NN3TS5BM.js +147 -0
- package/dist/chunk-NN3TS5BM.js.map +1 -0
- package/dist/{chunk-3YGHKTBF.js → chunk-NZS2BLTP.js} +963 -326
- package/dist/chunk-NZS2BLTP.js.map +1 -0
- package/dist/chunk-OA3L7BFR.js +183 -0
- package/dist/chunk-OA3L7BFR.js.map +1 -0
- package/dist/chunk-OZHRDTDX.js +240 -0
- package/dist/chunk-OZHRDTDX.js.map +1 -0
- package/dist/chunk-PCUKNJAZ.js +165 -0
- package/dist/chunk-PCUKNJAZ.js.map +1 -0
- package/dist/{chunk-6PFRXT4K.js → chunk-PFV5C235.js} +11 -6
- package/dist/chunk-PFV5C235.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/{chunk-Y7R2XJ5Q.js → chunk-Q7FJ5ZHM.js} +6 -2
- package/dist/chunk-Q7FJ5ZHM.js.map +1 -0
- package/dist/{chunk-WCLICCGB.js → chunk-RILIVK4O.js} +91 -4
- package/dist/chunk-RILIVK4O.js.map +1 -0
- package/dist/{chunk-C2EFFULQ.js → chunk-RK2Y4XOM.js} +163 -20
- package/dist/chunk-RK2Y4XOM.js.map +1 -0
- package/dist/{chunk-TP4FZJIZ.js → chunk-RULE4VG5.js} +5 -1
- package/dist/chunk-RULE4VG5.js.map +1 -0
- package/dist/{chunk-PVPWZSSI.js → chunk-SMA4IMHV.js} +19 -3
- package/dist/chunk-SMA4IMHV.js.map +1 -0
- package/dist/{chunk-6YJHX2DL.js → chunk-TIFRGAKO.js} +242 -22
- package/dist/chunk-TIFRGAKO.js.map +1 -0
- package/dist/chunk-TUFG6VXY.js +875 -0
- package/dist/chunk-TUFG6VXY.js.map +1 -0
- package/dist/chunk-TYEOAFH3.js +251 -0
- package/dist/chunk-TYEOAFH3.js.map +1 -0
- package/dist/chunk-UKJAGEXH.js +260 -0
- package/dist/chunk-UKJAGEXH.js.map +1 -0
- package/dist/{chunk-KVBLZUKV.js → chunk-USFPPRAF.js} +93 -3
- package/dist/chunk-USFPPRAF.js.map +1 -0
- package/dist/{chunk-NBVAS5MT.js → chunk-V7TEH5I2.js} +6 -6
- package/dist/{chunk-GA5P7RST.js → chunk-VTJVUHRK.js} +22 -36
- package/dist/chunk-VTJVUHRK.js.map +1 -0
- package/dist/{chunk-SPI27QT6.js → chunk-W7WWT4FJ.js} +9 -4
- package/dist/chunk-W7WWT4FJ.js.map +1 -0
- package/dist/chunk-WIICJPET.js +45 -0
- package/dist/chunk-WIICJPET.js.map +1 -0
- package/dist/{chunk-VBVG2M5G.js → chunk-WPGJYVUH.js} +6 -2
- package/dist/chunk-WPGJYVUH.js.map +1 -0
- package/dist/{chunk-4HQS2HPX.js → chunk-WSZIHQBK.js} +29 -9
- package/dist/{chunk-4HQS2HPX.js.map → chunk-WSZIHQBK.js.map} +1 -1
- package/dist/{chunk-NZLQTHS5.js → chunk-WW3QQF4H.js} +4 -1
- package/dist/chunk-WW3QQF4H.js.map +1 -0
- package/dist/{chunk-DIXB44VE.js → chunk-X6VBWOVZ.js} +28 -13
- package/dist/chunk-X6VBWOVZ.js.map +1 -0
- package/dist/{chunk-XXVWLXSG.js → chunk-XQ4EJLUD.js} +64 -92
- package/dist/chunk-XQ4EJLUD.js.map +1 -0
- package/dist/{chunk-OC5OXUQ4.js → chunk-XRCYKJ3V.js} +780 -17
- package/dist/chunk-XRCYKJ3V.js.map +1 -0
- package/dist/{chunk-F5VP6YCB.js → chunk-Y4A6M3B6.js} +573 -156
- package/dist/chunk-Y4A6M3B6.js.map +1 -0
- package/dist/chunk-YNJHCGDT.js +309 -0
- package/dist/chunk-YNJHCGDT.js.map +1 -0
- package/dist/{chunk-L7IXWRYE.js → chunk-ZIBOQULP.js} +22 -13
- package/dist/chunk-ZIBOQULP.js.map +1 -0
- package/dist/{chunk-W6SL7OFG.js → chunk-ZTSE2ZJ6.js} +12 -2
- package/dist/{chunk-W6SL7OFG.js.map → chunk-ZTSE2ZJ6.js.map} +1 -1
- package/dist/chunking.js +1 -0
- package/dist/cipher-GVE2GQ5H.js +28 -0
- package/dist/cipher-GVE2GQ5H.js.map +1 -0
- package/dist/citations.js +1 -0
- package/dist/{cli-BkeRaYfk.d.ts → cli-lMql2FCr.d.ts} +26 -7
- package/dist/cli.d.ts +11 -6
- package/dist/cli.js +69 -34
- package/dist/codex-thread-key.js +1 -0
- package/dist/commitment-ledger.js +1 -0
- package/dist/compression-optimizer.js +1 -0
- package/dist/config.d.ts +2 -1
- package/dist/config.js +4 -1
- package/dist/connectors-cli-DFGtY2DB.d.ts +257 -0
- package/dist/connectors-cli.d.ts +2 -0
- package/dist/connectors-cli.js +22 -0
- package/dist/connectors-cli.js.map +1 -0
- package/dist/consolidation-operator.d.ts +65 -5
- package/dist/consolidation-operator.js +6 -1
- package/dist/consolidation-provenance-check.d.ts +1 -1
- package/dist/consolidation-provenance-check.js +3 -2
- package/dist/consolidation-undo.d.ts +1 -1
- package/dist/consolidation-undo.js +1 -0
- package/dist/consolidation-undo.js.map +1 -1
- package/dist/{contradiction-review-WIUBAR52.js → contradiction-review-5LTTVDQV.js} +2 -1
- package/dist/contradiction-review-5LTTVDQV.js.map +1 -0
- package/dist/{contradiction-scan-E3GJTI4F.js → contradiction-scan-3Z6YW7YA.js} +2 -1
- package/dist/{contradiction-scan-E3GJTI4F.js.map → contradiction-scan-3Z6YW7YA.js.map} +1 -1
- package/dist/cross-namespace-budget.js +1 -0
- package/dist/cue-anchors.js +1 -0
- package/dist/dashboard-runtime.js +1 -0
- package/dist/day-summary.js +1 -0
- package/dist/delinearize.js +1 -0
- package/dist/direct-answer-wiring.js +1 -0
- package/dist/direct-answer.js +1 -0
- package/dist/dreams-ledger-LR2NBAZE.js +286 -0
- package/dist/dreams-ledger-LR2NBAZE.js.map +1 -0
- package/dist/embedding-fallback.js +1 -0
- package/dist/engine-O6YWKQM3.js +28 -0
- package/dist/engine-O6YWKQM3.js.map +1 -0
- package/dist/entity-retrieval.d.ts +1 -1
- package/dist/entity-retrieval.js +10 -7
- package/dist/entity-schema.js +1 -0
- package/dist/evals.js +1 -0
- package/dist/evidence-pack.d.ts +16 -0
- package/dist/evidence-pack.js +8 -0
- package/dist/evidence-pack.js.map +1 -0
- package/dist/explicit-capture.d.ts +6 -4
- package/dist/explicit-capture.js +1 -0
- package/dist/extraction-judge-telemetry.js +1 -0
- package/dist/extraction-judge-training.js +1 -0
- package/dist/extraction-judge.js +1 -0
- package/dist/extraction.js +8 -7
- package/dist/fallback-llm.js +3 -2
- package/dist/first-start-migration-4MHQEOSD.js +263 -0
- package/dist/first-start-migration-4MHQEOSD.js.map +1 -0
- package/dist/forget-PLR6J5DN.js +69 -0
- package/dist/forget-PLR6J5DN.js.map +1 -0
- package/dist/framework-CyHYDcri.d.ts +153 -0
- package/dist/fs-utils-IRVUFB6G.js +30 -0
- package/dist/fs-utils-IRVUFB6G.js.map +1 -0
- package/dist/graph-dashboard-diff.js +1 -0
- package/dist/graph-dashboard-key.js +1 -0
- package/dist/graph-dashboard-parser.js +1 -0
- package/dist/graph-edge-decay-PWB63GRE.js +207 -0
- package/dist/graph-edge-decay-PWB63GRE.js.map +1 -0
- package/dist/graph-edge-reinforcement.d.ts +81 -0
- package/dist/graph-edge-reinforcement.js +24 -0
- package/dist/graph-edge-reinforcement.js.map +1 -0
- package/dist/graph-events.d.ts +87 -0
- package/dist/graph-events.js +14 -0
- package/dist/graph-events.js.map +1 -0
- package/dist/graph-recall.js +1 -0
- package/dist/graph-retrieval.js +1 -0
- package/dist/graph-snapshot.d.ts +112 -0
- package/dist/graph-snapshot.js +19 -0
- package/dist/graph-snapshot.js.map +1 -0
- package/dist/graph.d.ts +105 -7
- package/dist/graph.js +20 -3
- package/dist/harmonic-retrieval.js +1 -0
- package/dist/himem.js +1 -0
- package/dist/hygiene.js +1 -0
- package/dist/identity-continuity.js +1 -0
- package/dist/importance.js +1 -0
- package/dist/index.d.ts +574 -13
- package/dist/index.js +337 -69
- package/dist/index.js.map +1 -1
- package/dist/intent.js +1 -0
- package/dist/json-extract.js +1 -0
- package/dist/json-store.js +1 -0
- package/dist/kdf-7S6RWKLZ.js +26 -0
- package/dist/kdf-7S6RWKLZ.js.map +1 -0
- package/dist/legacy-hook-compat.js +1 -0
- package/dist/legacy-hook-compat.js.map +1 -1
- package/dist/lifecycle.js +1 -0
- package/dist/live-connectors-runner.d.ts +48 -0
- package/dist/live-connectors-runner.js +17 -0
- package/dist/live-connectors-runner.js.map +1 -0
- package/dist/local-llm.js +1 -0
- package/dist/logger.js +1 -0
- package/dist/memory-action-policy.js +1 -0
- package/dist/memory-cache.d.ts +2 -1
- package/dist/memory-cache.js +4 -1
- package/dist/memory-governance-JZHZDOLN.js +37 -0
- package/dist/memory-governance-JZHZDOLN.js.map +1 -0
- package/dist/memory-lifecycle-ledger-utils.d.ts +2 -1
- package/dist/memory-lifecycle-ledger-utils.js +4 -1
- package/dist/memory-projection-format.js +1 -0
- package/dist/{memory-projection-store-DeSXPh1j.d.ts → memory-projection-store-CY8TU40w.d.ts} +2 -1
- package/dist/memory-projection-store.d.ts +1 -1
- package/dist/memory-projection-store.js +2 -1
- package/dist/memory-worth-bench.js +1 -0
- package/dist/memory-worth-bench.js.map +1 -1
- package/dist/memory-worth-filter.js +1 -0
- package/dist/memory-worth-outcomes.d.ts +1 -1
- package/dist/memory-worth-outcomes.js +1 -0
- package/dist/memory-worth.js +1 -0
- package/dist/metadata-FC3XPDRQ.js +21 -0
- package/dist/metadata-FC3XPDRQ.js.map +1 -0
- package/dist/migrate-from-identity-anchor-TTEDEJGX.js +8 -0
- package/dist/migrate-from-identity-anchor-TTEDEJGX.js.map +1 -0
- package/dist/model-registry.js +1 -0
- package/dist/models-json.js +1 -0
- package/dist/native-knowledge.js +1 -0
- package/dist/negative.js +1 -0
- package/dist/objective-state-writers.js +1 -0
- package/dist/objective-state-writers.js.map +1 -1
- package/dist/objective-state.js +1 -0
- package/dist/openai-chat-compat.js +1 -0
- package/dist/operator-toolkit.d.ts +46 -2
- package/dist/operator-toolkit.js +29 -17
- package/dist/opik-exporter.js +1 -0
- package/dist/opik-exporter.js.map +1 -1
- package/dist/{orchestrator-CmJ-NTdJ.d.ts → orchestrator-ChkesB8U.d.ts} +177 -13
- package/dist/orchestrator.d.ts +6 -4
- package/dist/orchestrator.js +57 -41
- package/dist/page-versioning.js +1 -0
- package/dist/path-RMTY5Y5A.js +9 -0
- package/dist/path-RMTY5Y5A.js.map +1 -0
- package/dist/patterns-cli.d.ts +160 -0
- package/dist/patterns-cli.js +29 -0
- package/dist/patterns-cli.js.map +1 -0
- package/dist/peers-6OSQ3NK6.js +44 -0
- package/dist/peers-6OSQ3NK6.js.map +1 -0
- package/dist/plugin-id.js +1 -0
- package/dist/policy-runtime.js +1 -0
- package/dist/{port-BADbLZU5.d.ts → port-hqGnoStS.d.ts} +6 -0
- package/dist/profiling.js +1 -0
- package/dist/purge-6ATBGT77.js +205 -0
- package/dist/purge-6ATBGT77.js.map +1 -0
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd-recall-cache.js +1 -0
- package/dist/qmd.d.ts +2 -1
- package/dist/qmd.js +4 -3
- package/dist/reasoning-trace-recall.js +1 -0
- package/dist/reasoning-trace-types.js +1 -0
- package/dist/recall-audit-anomaly.js +1 -0
- package/dist/recall-audit.js +1 -0
- package/dist/recall-disclosure-escalation.d.ts +84 -0
- package/dist/recall-disclosure-escalation.js +14 -0
- package/dist/recall-disclosure-escalation.js.map +1 -0
- package/dist/recall-explain-renderer.js +4 -1
- package/dist/recall-mmr.js +1 -0
- package/dist/recall-qos.js +1 -0
- package/dist/recall-query-policy.js +1 -0
- package/dist/recall-state.d.ts +7 -0
- package/dist/recall-state.js +2 -1
- package/dist/recall-tag-filter.d.ts +56 -0
- package/dist/recall-tag-filter.js +14 -0
- package/dist/recall-tag-filter.js.map +1 -0
- package/dist/recall-tokenization.js +1 -0
- package/dist/recall-xray-cli.d.ts +9 -2
- package/dist/recall-xray-cli.js +9 -4
- package/dist/recall-xray-renderer.js +4 -1
- package/dist/recall-xray.d.ts +116 -2
- package/dist/recall-xray.js +9 -3
- package/dist/reconstruct.js +1 -0
- package/dist/release-changelog.js +2 -0
- package/dist/release-changelog.js.map +1 -1
- package/dist/relevance.js +1 -0
- package/dist/rerank.js +1 -0
- package/dist/{resolution-QBTDHTG7.js → resolution-YGIBORXI.js} +2 -1
- package/dist/{resolution-QBTDHTG7.js.map → resolution-YGIBORXI.js.map} +1 -1
- package/dist/resolve-auth-token.d.ts +51 -0
- package/dist/resolve-auth-token.js +12 -0
- package/dist/resolve-auth-token.js.map +1 -0
- package/dist/resolve-provider-secret.d.ts +9 -1
- package/dist/resolve-provider-secret.js +4 -1
- package/dist/resume-bundles.js +4 -3
- package/dist/retrieval-agents.d.ts +1 -1
- package/dist/retrieval-agents.js +1 -0
- package/dist/retrieval-tiers.js +1 -0
- package/dist/retrieval.js +1 -0
- package/dist/sanitize.js +1 -0
- package/dist/schemas.d.ts +15 -2
- package/dist/schemas.js +2 -1
- package/dist/sdk-compat.js +1 -0
- package/dist/sdk-compat.js.map +1 -1
- package/dist/secure-store-4R2GSO7S.js +156 -0
- package/dist/secure-store-4R2GSO7S.js.map +1 -0
- package/dist/semantic-chunking.js +1 -0
- package/dist/{semantic-consolidation-CxJU6MJk.d.ts → semantic-consolidation-ByBXb-sf.d.ts} +3 -3
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +12 -7
- package/dist/semantic-rule-promotion.d.ts +1 -1
- package/dist/semantic-rule-promotion.js +10 -7
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +10 -7
- package/dist/session-integrity.js +1 -0
- package/dist/session-observer-bands.js +1 -0
- package/dist/session-observer-state.js +1 -0
- package/dist/session-toggles.js +2 -0
- package/dist/session-toggles.js.map +1 -1
- package/dist/signal.js +1 -0
- package/dist/skills-registry.js +2 -0
- package/dist/skills-registry.js.map +1 -1
- package/dist/source-attribution.js +1 -0
- package/dist/state-NCHQ4TRG.js +8 -0
- package/dist/state-NCHQ4TRG.js.map +1 -0
- package/dist/state-store-3EH7HYIN.js +16 -0
- package/dist/state-store-3EH7HYIN.js.map +1 -0
- package/dist/storage.d.ts +76 -2
- package/dist/storage.js +9 -6
- package/dist/store-contract.js +1 -0
- package/dist/summarizer.js +5 -4
- package/dist/summary-snapshot.js +1 -0
- package/dist/temporal-index.js +1 -0
- package/dist/temporal-supersession.d.ts +1 -1
- package/dist/temporal-supersession.js +2 -1
- package/dist/temporal-validity.d.ts +52 -0
- package/dist/temporal-validity.js +14 -0
- package/dist/temporal-validity.js.map +1 -0
- package/dist/threading.js +1 -0
- package/dist/tier-migration.d.ts +2 -2
- package/dist/tier-migration.js +1 -0
- package/dist/tier-routing.js +1 -0
- package/dist/tier-stats-62ZVDFKS.js +152 -0
- package/dist/tier-stats-62ZVDFKS.js.map +1 -0
- package/dist/tmt.js +1 -0
- package/dist/tokens.js +1 -0
- package/dist/topics.js +1 -0
- package/dist/trace-C5ETWBEF.js +290 -0
- package/dist/trace-C5ETWBEF.js.map +1 -0
- package/dist/transcript.js +1 -0
- package/dist/trust-zones.js +1 -0
- package/dist/tui-RI7P6PBS.js +13 -0
- package/dist/tui-RI7P6PBS.js.map +1 -0
- package/dist/types-V3FJ26TF.js +30 -0
- package/dist/types-V3FJ26TF.js.map +1 -0
- package/dist/types.d.ts +634 -9
- package/dist/types.js +10 -3
- package/dist/utility-learner.js +1 -0
- package/dist/utility-runtime.js +1 -0
- package/dist/utility-telemetry.js +1 -0
- package/dist/verified-recall.js +10 -7
- package/dist/version-utils.js +1 -0
- package/dist/whitespace.js +1 -0
- package/dist/work-product-ledger.js +1 -0
- package/package.json +7 -3
- package/scripts/ensure-better-sqlite3.mjs +124 -0
- package/dist/access-service-Br8ZydTK.d.ts +0 -827
- package/dist/chunk-3OGMS3PE.js.map +0 -1
- package/dist/chunk-3YGHKTBF.js.map +0 -1
- package/dist/chunk-6PFRXT4K.js.map +0 -1
- package/dist/chunk-6YJHX2DL.js.map +0 -1
- package/dist/chunk-BECYBZLX.js.map +0 -1
- package/dist/chunk-C2EFFULQ.js.map +0 -1
- package/dist/chunk-CUPFXL3J.js.map +0 -1
- package/dist/chunk-DIXB44VE.js.map +0 -1
- package/dist/chunk-F5VP6YCB.js.map +0 -1
- package/dist/chunk-FVA6TGI3.js.map +0 -1
- package/dist/chunk-GA5P7RST.js.map +0 -1
- package/dist/chunk-KVBLZUKV.js.map +0 -1
- package/dist/chunk-L7IXWRYE.js.map +0 -1
- package/dist/chunk-LOIMBRDE.js.map +0 -1
- package/dist/chunk-LTCGGW2D.js +0 -14
- package/dist/chunk-LTCGGW2D.js.map +0 -1
- package/dist/chunk-NZLQTHS5.js.map +0 -1
- package/dist/chunk-OC5OXUQ4.js.map +0 -1
- package/dist/chunk-PVPWZSSI.js.map +0 -1
- package/dist/chunk-SPI27QT6.js.map +0 -1
- package/dist/chunk-STGWEHYR.js.map +0 -1
- package/dist/chunk-TP4FZJIZ.js.map +0 -1
- package/dist/chunk-ULYOGL6R.js.map +0 -1
- package/dist/chunk-UWB5LMWY.js.map +0 -1
- package/dist/chunk-VBVG2M5G.js.map +0 -1
- package/dist/chunk-VDX363PS.js.map +0 -1
- package/dist/chunk-WCLICCGB.js.map +0 -1
- package/dist/chunk-X6GF3FX2.js +0 -26
- package/dist/chunk-X6GF3FX2.js.map +0 -1
- package/dist/chunk-XXVWLXSG.js.map +0 -1
- package/dist/chunk-Y7R2XJ5Q.js.map +0 -1
- package/dist/chunk-ZAIM4TUE.js.map +0 -1
- package/dist/engine-72LSIWQP.js +0 -23
- /package/dist/{contradiction-review-WIUBAR52.js.map → capsule-cli.js.map} +0 -0
- /package/dist/{engine-72LSIWQP.js.map → capsule-crypto-5CYAGVC5.js.map} +0 -0
- /package/dist/{chunk-TMYO7B5P.js.map → chunk-47WOM4YW.js.map} +0 -0
- /package/dist/{chunk-DG6YMRDC.js.map → chunk-B2TL6GA2.js.map} +0 -0
- /package/dist/{chunk-AYXIPSZO.js.map → chunk-CRU27Q4J.js.map} +0 -0
- /package/dist/{chunk-RBBWYEFJ.js.map → chunk-G2WADRQ3.js.map} +0 -0
- /package/dist/{chunk-NBVAS5MT.js.map → chunk-V7TEH5I2.js.map} +0 -0
|
@@ -1,827 +0,0 @@
|
|
|
1
|
-
import { StorageManager } from './storage.js';
|
|
2
|
-
import { RecallXraySnapshot } from './recall-xray.js';
|
|
3
|
-
import { RecallExplainJsonPayload } from './recall-explain-renderer.js';
|
|
4
|
-
import { PluginConfig, DaySummaryResult, RecallPlanMode, MemoryFile, MemoryLifecycleEvent, EntityFile, MemoryStatus } from './types.js';
|
|
5
|
-
import { AnomalyDetectorResult } from './recall-audit-anomaly.js';
|
|
6
|
-
import { ExplicitCaptureInput } from './explicit-capture.js';
|
|
7
|
-
import { BudgetDecision } from './cross-namespace-budget.js';
|
|
8
|
-
import { r as readMemoryGovernanceRunArtifact } from './memory-projection-store-DeSXPh1j.js';
|
|
9
|
-
import { LastRecallSnapshot } from './recall-state.js';
|
|
10
|
-
import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot, S as SemanticDedupLookup } from './orchestrator-CmJ-NTdJ.js';
|
|
11
|
-
import { TrustZoneStoreStatus, TrustZoneName, TrustZoneRecordKind, TrustZoneSourceClass, TrustZoneProvenanceScore, TrustZonePromotionResult, TrustZoneDemoSeedResult } from './trust-zones.js';
|
|
12
|
-
import { LocalLlmClient } from './local-llm.js';
|
|
13
|
-
import { FallbackLlmClient } from './fallback-llm.js';
|
|
14
|
-
import { MemoryOutcomeKind, RecordMemoryOutcomeResult } from './memory-worth-outcomes.js';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Procedural memory stats surface (issue #567 PR 5/5).
|
|
18
|
-
*
|
|
19
|
-
* Pure helper that tallies procedure memories by status and summarizes the
|
|
20
|
-
* current `procedural.*` config so operators (and the dashboard) can see,
|
|
21
|
-
* in one call, how procedural memory is behaving in a namespace.
|
|
22
|
-
*
|
|
23
|
-
* Consumed by:
|
|
24
|
-
* - CLI `remnic procedural stats`
|
|
25
|
-
* - HTTP `GET /engram/v1/procedural/stats`
|
|
26
|
-
* - MCP `remnic.procedural_stats` (+ `engram.procedural_stats` alias)
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
interface ProcedureStatusCounts {
|
|
30
|
-
total: number;
|
|
31
|
-
active: number;
|
|
32
|
-
pending_review: number;
|
|
33
|
-
rejected: number;
|
|
34
|
-
quarantined: number;
|
|
35
|
-
superseded: number;
|
|
36
|
-
archived: number;
|
|
37
|
-
/** Any status the enum doesn't yet cover. */
|
|
38
|
-
other: number;
|
|
39
|
-
}
|
|
40
|
-
interface ProcedureStatsConfigSnapshot {
|
|
41
|
-
enabled: boolean;
|
|
42
|
-
minOccurrences: number;
|
|
43
|
-
successFloor: number;
|
|
44
|
-
autoPromoteOccurrences: number;
|
|
45
|
-
autoPromoteEnabled: boolean;
|
|
46
|
-
lookbackDays: number;
|
|
47
|
-
recallMaxProcedures: number;
|
|
48
|
-
}
|
|
49
|
-
interface ProcedureStatsRecent {
|
|
50
|
-
/** ISO 8601 timestamp of the most recent procedure write, or null. */
|
|
51
|
-
lastWriteAt: string | null;
|
|
52
|
-
/** Count of procedure files with `created` (or `updated`) in the last 7 days. */
|
|
53
|
-
writesLast7Days: number;
|
|
54
|
-
/** Count of procedures whose `source` is the procedure miner. */
|
|
55
|
-
minerSourced: number;
|
|
56
|
-
}
|
|
57
|
-
interface ProcedureStatsReport {
|
|
58
|
-
schemaVersion: 1;
|
|
59
|
-
generatedAt: string;
|
|
60
|
-
counts: ProcedureStatusCounts;
|
|
61
|
-
recent: ProcedureStatsRecent;
|
|
62
|
-
config: ProcedureStatsConfigSnapshot;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Read all memories from storage and tally procedures by status + recency.
|
|
66
|
-
* `nowMs` is injectable so tests can pin the "last 7 days" window.
|
|
67
|
-
*/
|
|
68
|
-
declare function computeProcedureStats(options: {
|
|
69
|
-
storage: StorageManager;
|
|
70
|
-
config: PluginConfig;
|
|
71
|
-
nowMs?: number;
|
|
72
|
-
}): Promise<ProcedureStatsReport>;
|
|
73
|
-
/**
|
|
74
|
-
* Render `ProcedureStatsReport` as a human-friendly plain-text block for CLI
|
|
75
|
-
* operators. Keep it deterministic — no colors, no ANSI. Used by `--format text`.
|
|
76
|
-
*/
|
|
77
|
-
declare function formatProcedureStatsText(report: ProcedureStatsReport): string;
|
|
78
|
-
|
|
79
|
-
declare class EngramAccessInputError extends Error {
|
|
80
|
-
}
|
|
81
|
-
declare const ENGRAM_ACCESS_WRITE_SCHEMA_VERSION = 1;
|
|
82
|
-
interface EngramAccessHealthResponse {
|
|
83
|
-
ok: true;
|
|
84
|
-
memoryDir: string;
|
|
85
|
-
namespacesEnabled: boolean;
|
|
86
|
-
defaultNamespace: string;
|
|
87
|
-
searchBackend: string;
|
|
88
|
-
qmdEnabled: boolean;
|
|
89
|
-
nativeKnowledgeEnabled: boolean;
|
|
90
|
-
projectionAvailable: boolean;
|
|
91
|
-
}
|
|
92
|
-
interface EngramAccessRecallRequest {
|
|
93
|
-
query: string;
|
|
94
|
-
sessionKey?: string;
|
|
95
|
-
namespace?: string;
|
|
96
|
-
topK?: number;
|
|
97
|
-
mode?: RecallPlanMode | "auto";
|
|
98
|
-
includeDebug?: boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Coding-agent context (issue #569). When a connector resolves a git
|
|
101
|
-
* context for the session's cwd, it passes it here and the access service
|
|
102
|
-
* attaches it to the orchestrator before recall so project- / branch-
|
|
103
|
-
* scoped namespace overlays apply.
|
|
104
|
-
*
|
|
105
|
-
* Keyed by `sessionKey`; ignored when `sessionKey` is absent.
|
|
106
|
-
*/
|
|
107
|
-
codingContext?: {
|
|
108
|
-
projectId: string;
|
|
109
|
-
branch: string | null;
|
|
110
|
-
rootPath: string;
|
|
111
|
-
defaultBranch: string | null;
|
|
112
|
-
} | null;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Standalone request to attach / clear the coding context for a session
|
|
116
|
-
* without performing a recall. Used by the Claude Code / Codex connectors
|
|
117
|
-
* at session start, and by the `remnic.set_coding_context` MCP tool (PR 7).
|
|
118
|
-
*/
|
|
119
|
-
interface EngramAccessSetCodingContextRequest {
|
|
120
|
-
sessionKey: string;
|
|
121
|
-
codingContext: {
|
|
122
|
-
projectId: string;
|
|
123
|
-
branch: string | null;
|
|
124
|
-
rootPath: string;
|
|
125
|
-
defaultBranch: string | null;
|
|
126
|
-
} | null;
|
|
127
|
-
}
|
|
128
|
-
interface EngramAccessRecallResponse {
|
|
129
|
-
query: string;
|
|
130
|
-
sessionKey?: string;
|
|
131
|
-
namespace: string;
|
|
132
|
-
context: string;
|
|
133
|
-
count: number;
|
|
134
|
-
memoryIds: string[];
|
|
135
|
-
results: EngramAccessMemorySummary[];
|
|
136
|
-
recordedAt?: string;
|
|
137
|
-
traceId?: string;
|
|
138
|
-
plannerMode?: RecallPlanMode;
|
|
139
|
-
fallbackUsed: boolean;
|
|
140
|
-
sourcesUsed: string[];
|
|
141
|
-
budgetsApplied?: LastRecallSnapshot["budgetsApplied"];
|
|
142
|
-
auditAnomalies?: AnomalyDetectorResult;
|
|
143
|
-
budgetWarning?: BudgetDecision;
|
|
144
|
-
latencyMs?: number;
|
|
145
|
-
debug?: {
|
|
146
|
-
snapshot?: LastRecallSnapshot;
|
|
147
|
-
intent?: IntentDebugSnapshot | null;
|
|
148
|
-
graph?: GraphRecallSnapshot | null;
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
interface EngramAccessRecallExplainRequest {
|
|
152
|
-
sessionKey?: string;
|
|
153
|
-
namespace?: string;
|
|
154
|
-
}
|
|
155
|
-
interface EngramAccessRecallExplainResponse {
|
|
156
|
-
found: boolean;
|
|
157
|
-
snapshot?: LastRecallSnapshot;
|
|
158
|
-
intent?: IntentDebugSnapshot | null;
|
|
159
|
-
graph?: GraphRecallSnapshot | null;
|
|
160
|
-
}
|
|
161
|
-
interface EngramAccessDaySummaryRequest {
|
|
162
|
-
memories?: string;
|
|
163
|
-
sessionKey?: string;
|
|
164
|
-
namespace?: string;
|
|
165
|
-
}
|
|
166
|
-
/** Inputs accepted by the `remnic_briefing` MCP tool. */
|
|
167
|
-
interface EngramAccessBriefingRequest {
|
|
168
|
-
since?: string;
|
|
169
|
-
focus?: string;
|
|
170
|
-
namespace?: string;
|
|
171
|
-
format?: "markdown" | "json";
|
|
172
|
-
maxFollowups?: number;
|
|
173
|
-
/** Caller principal for namespace access checks. Transport-bound — never from untrusted payloads. */
|
|
174
|
-
principal?: string;
|
|
175
|
-
}
|
|
176
|
-
/** Response for `remnic_briefing`. */
|
|
177
|
-
interface EngramAccessBriefingResponse {
|
|
178
|
-
format: "markdown" | "json";
|
|
179
|
-
window: {
|
|
180
|
-
from: string;
|
|
181
|
-
to: string;
|
|
182
|
-
};
|
|
183
|
-
namespace: string;
|
|
184
|
-
markdown: string;
|
|
185
|
-
json: Record<string, unknown>;
|
|
186
|
-
followupsUnavailableReason?: string;
|
|
187
|
-
}
|
|
188
|
-
interface EngramAccessMemoryRecord {
|
|
189
|
-
id: string;
|
|
190
|
-
path: string;
|
|
191
|
-
category: string;
|
|
192
|
-
status?: string;
|
|
193
|
-
created?: string;
|
|
194
|
-
updated?: string;
|
|
195
|
-
content: string;
|
|
196
|
-
frontmatter: MemoryFile["frontmatter"];
|
|
197
|
-
}
|
|
198
|
-
interface EngramAccessMemorySummary {
|
|
199
|
-
id: string;
|
|
200
|
-
path: string;
|
|
201
|
-
category: string;
|
|
202
|
-
status: string;
|
|
203
|
-
created?: string;
|
|
204
|
-
updated?: string;
|
|
205
|
-
tags: string[];
|
|
206
|
-
entityRef?: string;
|
|
207
|
-
preview: string;
|
|
208
|
-
}
|
|
209
|
-
interface EngramAccessMemoryBrowseRequest {
|
|
210
|
-
query?: string;
|
|
211
|
-
status?: string;
|
|
212
|
-
category?: string;
|
|
213
|
-
namespace?: string;
|
|
214
|
-
sort?: "updated_desc" | "updated_asc" | "created_desc" | "created_asc";
|
|
215
|
-
limit?: number;
|
|
216
|
-
offset?: number;
|
|
217
|
-
}
|
|
218
|
-
interface EngramAccessMemoryBrowseResponse {
|
|
219
|
-
namespace: string;
|
|
220
|
-
sort: "updated_desc" | "updated_asc" | "created_desc" | "created_asc";
|
|
221
|
-
total: number;
|
|
222
|
-
count: number;
|
|
223
|
-
limit: number;
|
|
224
|
-
offset: number;
|
|
225
|
-
memories: EngramAccessMemorySummary[];
|
|
226
|
-
}
|
|
227
|
-
interface EngramAccessMemoryResponse {
|
|
228
|
-
found: boolean;
|
|
229
|
-
namespace: string;
|
|
230
|
-
memory?: EngramAccessMemoryRecord;
|
|
231
|
-
}
|
|
232
|
-
interface EngramAccessTimelineResponse {
|
|
233
|
-
found: boolean;
|
|
234
|
-
namespace: string;
|
|
235
|
-
count: number;
|
|
236
|
-
timeline: MemoryLifecycleEvent[];
|
|
237
|
-
}
|
|
238
|
-
interface EngramAccessEntitySummary {
|
|
239
|
-
name: string;
|
|
240
|
-
type: string;
|
|
241
|
-
updated: string;
|
|
242
|
-
summary?: string;
|
|
243
|
-
aliases: string[];
|
|
244
|
-
}
|
|
245
|
-
interface EngramAccessEntityListResponse {
|
|
246
|
-
namespace: string;
|
|
247
|
-
total: number;
|
|
248
|
-
count: number;
|
|
249
|
-
limit: number;
|
|
250
|
-
offset: number;
|
|
251
|
-
entities: EngramAccessEntitySummary[];
|
|
252
|
-
}
|
|
253
|
-
interface EngramAccessEntityResponse {
|
|
254
|
-
found: boolean;
|
|
255
|
-
namespace: string;
|
|
256
|
-
entity?: EntityFile;
|
|
257
|
-
}
|
|
258
|
-
interface EngramAccessReviewQueueResponse {
|
|
259
|
-
found: boolean;
|
|
260
|
-
namespace?: string;
|
|
261
|
-
runId?: string;
|
|
262
|
-
summary?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["summary"];
|
|
263
|
-
metrics?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["metrics"];
|
|
264
|
-
qualityScore?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["qualityScore"];
|
|
265
|
-
reviewQueue?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["reviewQueue"];
|
|
266
|
-
appliedActions?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["appliedActions"];
|
|
267
|
-
transitionReport?: Awaited<ReturnType<typeof readMemoryGovernanceRunArtifact>>["transitionReport"];
|
|
268
|
-
report?: string;
|
|
269
|
-
}
|
|
270
|
-
interface EngramAccessMaintenanceResponse {
|
|
271
|
-
namespace: string;
|
|
272
|
-
health: EngramAccessHealthResponse;
|
|
273
|
-
latestGovernanceRun: EngramAccessReviewQueueResponse;
|
|
274
|
-
}
|
|
275
|
-
interface EngramAccessTrustZoneStatusResponse {
|
|
276
|
-
namespace: string;
|
|
277
|
-
status: TrustZoneStoreStatus;
|
|
278
|
-
}
|
|
279
|
-
interface EngramAccessTrustZoneRecordSummary {
|
|
280
|
-
recordId: string;
|
|
281
|
-
filePath: string;
|
|
282
|
-
zone: TrustZoneName;
|
|
283
|
-
recordedAt: string;
|
|
284
|
-
kind: TrustZoneRecordKind;
|
|
285
|
-
summary: string;
|
|
286
|
-
sourceClass: TrustZoneSourceClass;
|
|
287
|
-
sessionKey?: string;
|
|
288
|
-
sourceId?: string;
|
|
289
|
-
evidenceHashPresent: boolean;
|
|
290
|
-
anchored: boolean;
|
|
291
|
-
entityRefs: string[];
|
|
292
|
-
tags: string[];
|
|
293
|
-
metadata?: Record<string, string>;
|
|
294
|
-
trustScore?: TrustZoneProvenanceScore;
|
|
295
|
-
nextPromotionTarget?: TrustZoneName;
|
|
296
|
-
nextPromotionAllowed: boolean;
|
|
297
|
-
nextPromotionReasons: string[];
|
|
298
|
-
corroborationCount?: number;
|
|
299
|
-
corroborationSourceClasses?: TrustZoneSourceClass[];
|
|
300
|
-
}
|
|
301
|
-
interface EngramAccessTrustZoneBrowseRequest {
|
|
302
|
-
query?: string;
|
|
303
|
-
zone?: TrustZoneName;
|
|
304
|
-
kind?: TrustZoneRecordKind;
|
|
305
|
-
sourceClass?: TrustZoneSourceClass;
|
|
306
|
-
namespace?: string;
|
|
307
|
-
limit?: number;
|
|
308
|
-
offset?: number;
|
|
309
|
-
}
|
|
310
|
-
interface EngramAccessTrustZoneBrowseResponse {
|
|
311
|
-
namespace: string;
|
|
312
|
-
total: number;
|
|
313
|
-
count: number;
|
|
314
|
-
limit: number;
|
|
315
|
-
offset: number;
|
|
316
|
-
records: EngramAccessTrustZoneRecordSummary[];
|
|
317
|
-
}
|
|
318
|
-
interface EngramAccessTrustZonePromoteRequest {
|
|
319
|
-
recordId: string;
|
|
320
|
-
targetZone: TrustZoneName;
|
|
321
|
-
promotionReason: string;
|
|
322
|
-
recordedAt?: string;
|
|
323
|
-
summary?: string;
|
|
324
|
-
dryRun?: boolean;
|
|
325
|
-
namespace?: string;
|
|
326
|
-
authenticatedPrincipal?: string;
|
|
327
|
-
}
|
|
328
|
-
interface EngramAccessTrustZonePromoteResponse extends TrustZonePromotionResult {
|
|
329
|
-
namespace: string;
|
|
330
|
-
dryRun: boolean;
|
|
331
|
-
}
|
|
332
|
-
interface EngramAccessTrustZoneDemoSeedRequest {
|
|
333
|
-
scenario?: string;
|
|
334
|
-
recordedAt?: string;
|
|
335
|
-
dryRun?: boolean;
|
|
336
|
-
namespace?: string;
|
|
337
|
-
authenticatedPrincipal?: string;
|
|
338
|
-
}
|
|
339
|
-
interface EngramAccessTrustZoneDemoSeedResponse extends TrustZoneDemoSeedResult {
|
|
340
|
-
namespace: string;
|
|
341
|
-
}
|
|
342
|
-
interface EngramAccessQualityResponse {
|
|
343
|
-
namespace: string;
|
|
344
|
-
totalMemories: number;
|
|
345
|
-
statusCounts: Record<string, number>;
|
|
346
|
-
categoryCounts: Record<string, number>;
|
|
347
|
-
confidenceTierCounts: Record<string, number>;
|
|
348
|
-
ageBucketCounts: Record<string, number>;
|
|
349
|
-
archivePressure: {
|
|
350
|
-
pendingReview: number;
|
|
351
|
-
quarantined: number;
|
|
352
|
-
archived: number;
|
|
353
|
-
staleActive: number;
|
|
354
|
-
lowConfidenceActive: number;
|
|
355
|
-
};
|
|
356
|
-
latestGovernanceRun: {
|
|
357
|
-
found: boolean;
|
|
358
|
-
runId?: string;
|
|
359
|
-
qualityScore?: EngramAccessReviewQueueResponse["qualityScore"];
|
|
360
|
-
reviewQueueCount: number;
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
interface EngramAccessReviewDispositionRequest {
|
|
364
|
-
memoryId: string;
|
|
365
|
-
status: MemoryStatus | "archived";
|
|
366
|
-
reasonCode: string;
|
|
367
|
-
namespace?: string;
|
|
368
|
-
/**
|
|
369
|
-
* Trusted transport-bound principal. This must never come from untrusted client payloads.
|
|
370
|
-
* When present, write authorization is evaluated against this principal instead of sessionKey.
|
|
371
|
-
*/
|
|
372
|
-
authenticatedPrincipal?: string;
|
|
373
|
-
}
|
|
374
|
-
interface EngramAccessReviewDispositionResponse {
|
|
375
|
-
ok: boolean;
|
|
376
|
-
namespace: string;
|
|
377
|
-
memoryId: string;
|
|
378
|
-
status: MemoryStatus | "archived";
|
|
379
|
-
previousStatus: MemoryStatus;
|
|
380
|
-
currentPath?: string;
|
|
381
|
-
}
|
|
382
|
-
interface EngramAccessWriteEnvelope {
|
|
383
|
-
schemaVersion?: number;
|
|
384
|
-
idempotencyKey?: string;
|
|
385
|
-
dryRun?: boolean;
|
|
386
|
-
sessionKey?: string;
|
|
387
|
-
/**
|
|
388
|
-
* Trusted transport-bound principal. This must never come from untrusted client payloads.
|
|
389
|
-
* When present, write authorization is evaluated against this principal instead of sessionKey.
|
|
390
|
-
*/
|
|
391
|
-
authenticatedPrincipal?: string;
|
|
392
|
-
}
|
|
393
|
-
interface EngramAccessMemoryStoreRequest extends EngramAccessWriteEnvelope, ExplicitCaptureInput {
|
|
394
|
-
}
|
|
395
|
-
interface EngramAccessSuggestionSubmitRequest extends EngramAccessWriteEnvelope, ExplicitCaptureInput {
|
|
396
|
-
}
|
|
397
|
-
interface EngramAccessWriteResponse {
|
|
398
|
-
schemaVersion: 1;
|
|
399
|
-
operation: "memory_store" | "suggestion_submit";
|
|
400
|
-
namespace: string;
|
|
401
|
-
dryRun: boolean;
|
|
402
|
-
accepted: boolean;
|
|
403
|
-
queued: boolean;
|
|
404
|
-
status: "validated" | "stored" | "duplicate" | "queued_for_review";
|
|
405
|
-
memoryId?: string;
|
|
406
|
-
duplicateOf?: string;
|
|
407
|
-
idempotencyKey?: string;
|
|
408
|
-
idempotencyReplay?: boolean;
|
|
409
|
-
}
|
|
410
|
-
interface EngramAccessObserveRequest {
|
|
411
|
-
sessionKey: string;
|
|
412
|
-
messages: Array<{
|
|
413
|
-
role: "user" | "assistant";
|
|
414
|
-
content: string;
|
|
415
|
-
}>;
|
|
416
|
-
namespace?: string;
|
|
417
|
-
authenticatedPrincipal?: string;
|
|
418
|
-
skipExtraction?: boolean;
|
|
419
|
-
}
|
|
420
|
-
interface EngramAccessObserveResponse {
|
|
421
|
-
accepted: number;
|
|
422
|
-
sessionKey: string;
|
|
423
|
-
namespace: string;
|
|
424
|
-
lcmArchived: boolean;
|
|
425
|
-
extractionQueued: boolean;
|
|
426
|
-
}
|
|
427
|
-
interface EngramAccessLcmSearchRequest {
|
|
428
|
-
query: string;
|
|
429
|
-
sessionKey?: string;
|
|
430
|
-
namespace?: string;
|
|
431
|
-
limit?: number;
|
|
432
|
-
authenticatedPrincipal?: string;
|
|
433
|
-
}
|
|
434
|
-
interface EngramAccessLcmSearchResponse {
|
|
435
|
-
query: string;
|
|
436
|
-
namespace: string;
|
|
437
|
-
results: Array<{
|
|
438
|
-
sessionId: string;
|
|
439
|
-
content: string;
|
|
440
|
-
turnIndex?: number;
|
|
441
|
-
}>;
|
|
442
|
-
count: number;
|
|
443
|
-
lcmEnabled: boolean;
|
|
444
|
-
}
|
|
445
|
-
interface EngramAccessLcmStatusResponse {
|
|
446
|
-
enabled: boolean;
|
|
447
|
-
archiveAvailable: boolean;
|
|
448
|
-
stats?: {
|
|
449
|
-
totalTurns?: number;
|
|
450
|
-
};
|
|
451
|
-
}
|
|
452
|
-
type EngramAccessIdempotencyStatus = "miss" | "replay" | "conflict";
|
|
453
|
-
declare class EngramAccessService {
|
|
454
|
-
private readonly orchestrator;
|
|
455
|
-
private readonly idempotency;
|
|
456
|
-
private readonly idempotencyLocks;
|
|
457
|
-
private readonly budget;
|
|
458
|
-
private readonly auditAdapter;
|
|
459
|
-
constructor(orchestrator: Orchestrator);
|
|
460
|
-
get briefingEnabled(): boolean;
|
|
461
|
-
private resolveNamespace;
|
|
462
|
-
private normalizeRecallMode;
|
|
463
|
-
private resolveRecallNamespace;
|
|
464
|
-
private resolveWritePrincipal;
|
|
465
|
-
private resolveWritableNamespace;
|
|
466
|
-
private resolveReadableNamespace;
|
|
467
|
-
private buildRecallDebug;
|
|
468
|
-
private serializeRecallResults;
|
|
469
|
-
private handleIdempotentWrite;
|
|
470
|
-
private peekIdempotentWrite;
|
|
471
|
-
private withIdempotencyLock;
|
|
472
|
-
health(namespace?: string): Promise<EngramAccessHealthResponse>;
|
|
473
|
-
daySummary(request: EngramAccessDaySummaryRequest): Promise<DaySummaryResult | null>;
|
|
474
|
-
/**
|
|
475
|
-
* Build a daily context briefing. Gracefully degrades when the OpenAI key
|
|
476
|
-
* or Responses API is unavailable — never throws for LLM-related problems.
|
|
477
|
-
*/
|
|
478
|
-
briefing(request: EngramAccessBriefingRequest): Promise<EngramAccessBriefingResponse>;
|
|
479
|
-
/**
|
|
480
|
-
* Attach a coding context to a session (issue #569). Used by the Claude
|
|
481
|
-
* Code / Codex / generic-MCP connectors at session start so that recall +
|
|
482
|
-
* write paths can route to a project- / branch-scoped namespace.
|
|
483
|
-
*
|
|
484
|
-
* Validates the input shape and rejects malformed payloads rather than
|
|
485
|
-
* silently accepting them (CLAUDE.md #51). Pass `codingContext: null` to
|
|
486
|
-
* clear.
|
|
487
|
-
*/
|
|
488
|
-
setCodingContext(request: EngramAccessSetCodingContextRequest): void;
|
|
489
|
-
recall(request: EngramAccessRecallRequest): Promise<EngramAccessRecallResponse>;
|
|
490
|
-
recallExplain(request?: EngramAccessRecallExplainRequest): Promise<EngramAccessRecallExplainResponse>;
|
|
491
|
-
recallTierExplain(sessionKey?: string, namespace?: string, authenticatedPrincipal?: string): Promise<RecallExplainJsonPayload>;
|
|
492
|
-
/**
|
|
493
|
-
* Recall X-ray (issue #570). Runs a recall with `xrayCapture: true`
|
|
494
|
-
* and returns the resulting snapshot as structured JSON so every
|
|
495
|
-
* surface (CLI / HTTP / MCP) gets the same payload. Namespace scope
|
|
496
|
-
* is enforced before the recall fires (CLAUDE.md rule 42 — read and
|
|
497
|
-
* write paths must resolve through the same namespace layer) so an
|
|
498
|
-
* unauthorized principal cannot capture an x-ray for a namespace it
|
|
499
|
-
* cannot read.
|
|
500
|
-
*/
|
|
501
|
-
recallXray(request: {
|
|
502
|
-
query: string;
|
|
503
|
-
sessionKey?: string;
|
|
504
|
-
namespace?: string;
|
|
505
|
-
budget?: number;
|
|
506
|
-
authenticatedPrincipal?: string;
|
|
507
|
-
}): Promise<{
|
|
508
|
-
snapshotFound: boolean;
|
|
509
|
-
snapshot?: RecallXraySnapshot;
|
|
510
|
-
}>;
|
|
511
|
-
private xrayQueue;
|
|
512
|
-
memoryStore(request: EngramAccessMemoryStoreRequest): Promise<EngramAccessWriteResponse>;
|
|
513
|
-
peekMemoryStoreIdempotency(request: EngramAccessMemoryStoreRequest): Promise<EngramAccessIdempotencyStatus>;
|
|
514
|
-
suggestionSubmit(request: EngramAccessSuggestionSubmitRequest): Promise<EngramAccessWriteResponse>;
|
|
515
|
-
peekSuggestionSubmitIdempotency(request: EngramAccessSuggestionSubmitRequest): Promise<EngramAccessIdempotencyStatus>;
|
|
516
|
-
private validateWriteCandidate;
|
|
517
|
-
memoryGet(memoryId: string, namespace?: string, principal?: string): Promise<EngramAccessMemoryResponse>;
|
|
518
|
-
memoryBrowse(request?: EngramAccessMemoryBrowseRequest): Promise<EngramAccessMemoryBrowseResponse>;
|
|
519
|
-
memoryTimeline(memoryId: string, namespace?: string, limit?: number, principal?: string): Promise<EngramAccessTimelineResponse>;
|
|
520
|
-
entityList(options?: {
|
|
521
|
-
namespace?: string;
|
|
522
|
-
query?: string;
|
|
523
|
-
limit?: number;
|
|
524
|
-
offset?: number;
|
|
525
|
-
}): Promise<EngramAccessEntityListResponse>;
|
|
526
|
-
entityGet(name: string, namespace?: string): Promise<EngramAccessEntityResponse>;
|
|
527
|
-
reviewQueue(runId?: string, namespace?: string, principal?: string): Promise<EngramAccessReviewQueueResponse>;
|
|
528
|
-
maintenance(namespace?: string, principal?: string): Promise<EngramAccessMaintenanceResponse>;
|
|
529
|
-
quality(namespace?: string, principal?: string): Promise<EngramAccessQualityResponse>;
|
|
530
|
-
governanceRun(request: {
|
|
531
|
-
namespace?: string;
|
|
532
|
-
mode?: "shadow" | "apply";
|
|
533
|
-
recentDays?: number;
|
|
534
|
-
maxMemories?: number;
|
|
535
|
-
batchSize?: number;
|
|
536
|
-
authenticatedPrincipal?: string;
|
|
537
|
-
}, principal?: string): Promise<{
|
|
538
|
-
namespace: string;
|
|
539
|
-
runId: string;
|
|
540
|
-
traceId: string;
|
|
541
|
-
mode: "shadow" | "apply";
|
|
542
|
-
reviewQueueCount: number;
|
|
543
|
-
proposedActionCount: number;
|
|
544
|
-
appliedActionCount: number;
|
|
545
|
-
summaryPath: string;
|
|
546
|
-
reportPath: string;
|
|
547
|
-
}>;
|
|
548
|
-
procedureMiningRun(request: {
|
|
549
|
-
namespace?: string;
|
|
550
|
-
authenticatedPrincipal?: string;
|
|
551
|
-
}, principal?: string): Promise<{
|
|
552
|
-
namespace: string;
|
|
553
|
-
clustersProcessed: number;
|
|
554
|
-
proceduresWritten: number;
|
|
555
|
-
skippedReason?: string;
|
|
556
|
-
}>;
|
|
557
|
-
/**
|
|
558
|
-
* Procedural memory stats (issue #567 PR 5/5). Read-only — resolves the
|
|
559
|
-
* namespace via the same path used by `recallExplain` / `trustZoneStatus`
|
|
560
|
-
* so cross-tenant reads are impossible (CLAUDE.md rule 42).
|
|
561
|
-
*/
|
|
562
|
-
procedureStats(request?: {
|
|
563
|
-
namespace?: string;
|
|
564
|
-
}, principal?: string): Promise<ProcedureStatsReport & {
|
|
565
|
-
namespace: string;
|
|
566
|
-
}>;
|
|
567
|
-
trustZoneStatus(namespace?: string, principal?: string): Promise<EngramAccessTrustZoneStatusResponse>;
|
|
568
|
-
trustZoneBrowse(request: EngramAccessTrustZoneBrowseRequest, principal?: string): Promise<EngramAccessTrustZoneBrowseResponse>;
|
|
569
|
-
trustZonePromote(request: EngramAccessTrustZonePromoteRequest): Promise<EngramAccessTrustZonePromoteResponse>;
|
|
570
|
-
trustZoneDemoSeed(request: EngramAccessTrustZoneDemoSeedRequest): Promise<EngramAccessTrustZoneDemoSeedResponse>;
|
|
571
|
-
reviewDisposition(request: EngramAccessReviewDispositionRequest): Promise<EngramAccessReviewDispositionResponse>;
|
|
572
|
-
private serializeMemory;
|
|
573
|
-
private serializeMemorySummary;
|
|
574
|
-
observe(request: EngramAccessObserveRequest): Promise<EngramAccessObserveResponse>;
|
|
575
|
-
lcmSearch(request: EngramAccessLcmSearchRequest): Promise<EngramAccessLcmSearchResponse>;
|
|
576
|
-
continuityAuditGenerate(request: {
|
|
577
|
-
period?: "weekly" | "monthly";
|
|
578
|
-
key?: string;
|
|
579
|
-
}): Promise<{
|
|
580
|
-
enabled: boolean;
|
|
581
|
-
reason?: string;
|
|
582
|
-
period?: string;
|
|
583
|
-
key?: string;
|
|
584
|
-
reportPath?: string;
|
|
585
|
-
}>;
|
|
586
|
-
continuityIncidentOpen(request: {
|
|
587
|
-
symptom: string;
|
|
588
|
-
namespace?: string;
|
|
589
|
-
principal?: string;
|
|
590
|
-
triggerWindow?: string;
|
|
591
|
-
suspectedCause?: string;
|
|
592
|
-
}): Promise<unknown>;
|
|
593
|
-
continuityIncidentClose(request: {
|
|
594
|
-
id: string;
|
|
595
|
-
namespace?: string;
|
|
596
|
-
principal?: string;
|
|
597
|
-
fixApplied: string;
|
|
598
|
-
verificationResult: string;
|
|
599
|
-
preventiveRule?: string;
|
|
600
|
-
}): Promise<unknown>;
|
|
601
|
-
continuityIncidentList(request: {
|
|
602
|
-
state?: "open" | "closed" | "all";
|
|
603
|
-
namespace?: string;
|
|
604
|
-
principal?: string;
|
|
605
|
-
limit?: number;
|
|
606
|
-
}): Promise<unknown>;
|
|
607
|
-
continuityLoopAddOrUpdate(request: {
|
|
608
|
-
id: string;
|
|
609
|
-
cadence: "daily" | "weekly" | "monthly" | "quarterly";
|
|
610
|
-
purpose: string;
|
|
611
|
-
status: "active" | "paused" | "retired";
|
|
612
|
-
killCondition: string;
|
|
613
|
-
namespace?: string;
|
|
614
|
-
principal?: string;
|
|
615
|
-
lastReviewed?: string;
|
|
616
|
-
notes?: string;
|
|
617
|
-
}): Promise<unknown>;
|
|
618
|
-
continuityLoopReview(request: {
|
|
619
|
-
id: string;
|
|
620
|
-
namespace?: string;
|
|
621
|
-
principal?: string;
|
|
622
|
-
status?: "active" | "paused" | "retired";
|
|
623
|
-
notes?: string;
|
|
624
|
-
reviewedAt?: string;
|
|
625
|
-
}): Promise<unknown>;
|
|
626
|
-
identityAnchorGet(request: {
|
|
627
|
-
namespace?: string;
|
|
628
|
-
principal?: string;
|
|
629
|
-
}): Promise<unknown>;
|
|
630
|
-
identityAnchorUpdate(request: {
|
|
631
|
-
namespace?: string;
|
|
632
|
-
principal?: string;
|
|
633
|
-
identityTraits?: string;
|
|
634
|
-
communicationPreferences?: string;
|
|
635
|
-
operatingPrinciples?: string;
|
|
636
|
-
continuityNotes?: string;
|
|
637
|
-
}): Promise<unknown>;
|
|
638
|
-
memoryIdentity(request: {
|
|
639
|
-
namespace?: string;
|
|
640
|
-
principal?: string;
|
|
641
|
-
}): Promise<unknown>;
|
|
642
|
-
workTask(request: {
|
|
643
|
-
action: "create" | "get" | "list" | "update" | "transition" | "delete";
|
|
644
|
-
id?: string;
|
|
645
|
-
title?: string;
|
|
646
|
-
description?: string;
|
|
647
|
-
status?: string;
|
|
648
|
-
priority?: string;
|
|
649
|
-
owner?: string;
|
|
650
|
-
assignee?: string;
|
|
651
|
-
projectId?: string;
|
|
652
|
-
tags?: string[];
|
|
653
|
-
dueAt?: string;
|
|
654
|
-
}): Promise<unknown>;
|
|
655
|
-
workProject(request: {
|
|
656
|
-
action: "create" | "get" | "list" | "update" | "delete" | "link_task";
|
|
657
|
-
id?: string;
|
|
658
|
-
name?: string;
|
|
659
|
-
description?: string;
|
|
660
|
-
status?: string;
|
|
661
|
-
owner?: string;
|
|
662
|
-
tags?: string[];
|
|
663
|
-
taskId?: string;
|
|
664
|
-
projectId?: string;
|
|
665
|
-
}): Promise<unknown>;
|
|
666
|
-
workBoard(request: {
|
|
667
|
-
action: "export_markdown" | "export_snapshot" | "import_snapshot";
|
|
668
|
-
projectId?: string;
|
|
669
|
-
snapshotJson?: string;
|
|
670
|
-
linkToMemory?: boolean;
|
|
671
|
-
}): Promise<unknown>;
|
|
672
|
-
sharedContextWriteOutput(request: {
|
|
673
|
-
agentId: string;
|
|
674
|
-
title: string;
|
|
675
|
-
content: string;
|
|
676
|
-
}): Promise<unknown>;
|
|
677
|
-
sharedFeedbackRecord(request: {
|
|
678
|
-
agent: string;
|
|
679
|
-
decision: "approved" | "approved_with_feedback" | "rejected";
|
|
680
|
-
reason: string;
|
|
681
|
-
date?: string;
|
|
682
|
-
learning?: string;
|
|
683
|
-
outcome?: string;
|
|
684
|
-
severity?: "low" | "medium" | "high";
|
|
685
|
-
confidence?: number;
|
|
686
|
-
workflow?: string;
|
|
687
|
-
tags?: string[];
|
|
688
|
-
evidenceWindowStart?: string;
|
|
689
|
-
evidenceWindowEnd?: string;
|
|
690
|
-
refs?: string[];
|
|
691
|
-
}): Promise<unknown>;
|
|
692
|
-
sharedPrioritiesAppend(request: {
|
|
693
|
-
agentId: string;
|
|
694
|
-
text: string;
|
|
695
|
-
}): Promise<unknown>;
|
|
696
|
-
sharedContextCrossSignalsRun(request: {
|
|
697
|
-
date?: string;
|
|
698
|
-
}): Promise<unknown>;
|
|
699
|
-
sharedContextCurateDaily(request: {
|
|
700
|
-
date?: string;
|
|
701
|
-
}): Promise<unknown>;
|
|
702
|
-
compoundingWeeklySynthesize(request: {
|
|
703
|
-
weekId?: string;
|
|
704
|
-
}): Promise<unknown>;
|
|
705
|
-
compoundingPromoteCandidate(request: {
|
|
706
|
-
weekId: string;
|
|
707
|
-
candidateId: string;
|
|
708
|
-
dryRun?: boolean;
|
|
709
|
-
}): Promise<unknown>;
|
|
710
|
-
compressionGuidelinesOptimize(request: {
|
|
711
|
-
dryRun?: boolean;
|
|
712
|
-
eventLimit?: number;
|
|
713
|
-
}): Promise<unknown>;
|
|
714
|
-
compressionGuidelinesActivate(request: {
|
|
715
|
-
expectedContentHash?: string;
|
|
716
|
-
expectedGuidelineVersion?: number;
|
|
717
|
-
}): Promise<unknown>;
|
|
718
|
-
/** Conservative identity anchor section merge (matches tools.ts mergeIdentityAnchor logic). */
|
|
719
|
-
private mergeIdentityAnchorSections;
|
|
720
|
-
memorySearch(request: {
|
|
721
|
-
query: string;
|
|
722
|
-
namespace?: string;
|
|
723
|
-
maxResults?: number;
|
|
724
|
-
collection?: string;
|
|
725
|
-
principal?: string;
|
|
726
|
-
}): Promise<{
|
|
727
|
-
query: string;
|
|
728
|
-
results: Array<{
|
|
729
|
-
path: string;
|
|
730
|
-
score: number;
|
|
731
|
-
snippet: string;
|
|
732
|
-
}>;
|
|
733
|
-
count: number;
|
|
734
|
-
}>;
|
|
735
|
-
memoryProfile(namespace?: string, principal?: string): Promise<Record<string, unknown>>;
|
|
736
|
-
memoryEntitiesList(namespace?: string, principal?: string): Promise<{
|
|
737
|
-
entities: string[];
|
|
738
|
-
count: number;
|
|
739
|
-
}>;
|
|
740
|
-
memoryQuestions(namespace?: string, principal?: string): Promise<{
|
|
741
|
-
questions: Array<{
|
|
742
|
-
id: string;
|
|
743
|
-
question: string;
|
|
744
|
-
resolved: boolean;
|
|
745
|
-
}>;
|
|
746
|
-
count: number;
|
|
747
|
-
}>;
|
|
748
|
-
lastRecallSnapshot(sessionKey?: string): Promise<unknown>;
|
|
749
|
-
intentDebug(namespace?: string): Promise<unknown>;
|
|
750
|
-
qmdDebug(namespace?: string): Promise<unknown>;
|
|
751
|
-
graphExplainLastRecall(namespace?: string): Promise<unknown>;
|
|
752
|
-
memoryFeedback(request: {
|
|
753
|
-
memoryId: string;
|
|
754
|
-
vote: "up" | "down";
|
|
755
|
-
note?: string;
|
|
756
|
-
}): Promise<{
|
|
757
|
-
recorded: boolean;
|
|
758
|
-
enabled?: boolean;
|
|
759
|
-
reason?: string;
|
|
760
|
-
}>;
|
|
761
|
-
/**
|
|
762
|
-
* Record a Memory Worth outcome observation (issue #560 PR 3).
|
|
763
|
-
*
|
|
764
|
-
* This is distinct from `memoryFeedback` — feedback is a human thumbs
|
|
765
|
-
* up/down on whether a recalled memory was relevant; outcome is an
|
|
766
|
-
* automated signal about whether the session that consumed the memory
|
|
767
|
-
* ultimately succeeded or failed. Outcomes feed the Laplace-smoothed
|
|
768
|
-
* worth score (`computeMemoryWorth`, PR 2) that PR 4 will use to
|
|
769
|
-
* downweight memories correlated with bad sessions.
|
|
770
|
-
*
|
|
771
|
-
* The underlying writer only touches fact-category memories. Corrections,
|
|
772
|
-
* procedures, and other kinds return `{ ok: false, reason:
|
|
773
|
-
* "ineligible_category" }` so a ledger drainer doesn't need to pre-filter.
|
|
774
|
-
*/
|
|
775
|
-
memoryOutcome(request: {
|
|
776
|
-
memoryId: string;
|
|
777
|
-
outcome: MemoryOutcomeKind;
|
|
778
|
-
namespace?: string;
|
|
779
|
-
principal?: string;
|
|
780
|
-
sessionKey?: string;
|
|
781
|
-
timestamp?: string;
|
|
782
|
-
}): Promise<RecordMemoryOutcomeResult>;
|
|
783
|
-
memoryPromote(request: {
|
|
784
|
-
memoryId: string;
|
|
785
|
-
namespace?: string;
|
|
786
|
-
principal?: string;
|
|
787
|
-
sessionKey?: string;
|
|
788
|
-
}): Promise<unknown>;
|
|
789
|
-
contextCheckpoint(request: {
|
|
790
|
-
sessionKey: string;
|
|
791
|
-
context: string;
|
|
792
|
-
namespace?: string;
|
|
793
|
-
principal?: string;
|
|
794
|
-
}): Promise<{
|
|
795
|
-
saved: boolean;
|
|
796
|
-
}>;
|
|
797
|
-
lcmStatus(): Promise<EngramAccessLcmStatusResponse>;
|
|
798
|
-
/**
|
|
799
|
-
* Record citation usage from an observed oai-mem-citation block.
|
|
800
|
-
* For each citation entry, extract the memory ID from the path and
|
|
801
|
-
* increment its access tracking via the orchestrator. Returns the
|
|
802
|
-
* count of submitted IDs and the count of IDs that matched real memories.
|
|
803
|
-
*/
|
|
804
|
-
recordCitationUsage(request: {
|
|
805
|
-
sessionId?: string;
|
|
806
|
-
namespace?: string;
|
|
807
|
-
authenticatedPrincipal?: string;
|
|
808
|
-
entries: Array<{
|
|
809
|
-
path: string;
|
|
810
|
-
lineStart: number;
|
|
811
|
-
lineEnd: number;
|
|
812
|
-
note: string;
|
|
813
|
-
}>;
|
|
814
|
-
rolloutIds: string[];
|
|
815
|
-
}): Promise<{
|
|
816
|
-
submitted: number;
|
|
817
|
-
matched: number;
|
|
818
|
-
}>;
|
|
819
|
-
get memoryDir(): string;
|
|
820
|
-
get storageRef(): StorageManager;
|
|
821
|
-
get configRef(): PluginConfig;
|
|
822
|
-
get localLlmRef(): LocalLlmClient | null;
|
|
823
|
-
get fallbackLlmRef(): FallbackLlmClient | null;
|
|
824
|
-
get embeddingLookupFactoryRef(): (storage: StorageManager) => SemanticDedupLookup | undefined;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
export { type EngramAccessQualityResponse as A, type EngramAccessRecallExplainRequest as B, type EngramAccessRecallExplainResponse as C, type EngramAccessRecallRequest as D, EngramAccessService as E, type EngramAccessRecallResponse as F, type EngramAccessReviewDispositionRequest as G, type EngramAccessReviewDispositionResponse as H, type EngramAccessReviewQueueResponse as I, type EngramAccessSetCodingContextRequest as J, type EngramAccessSuggestionSubmitRequest as K, type EngramAccessTimelineResponse as L, type EngramAccessTrustZoneBrowseRequest as M, type EngramAccessTrustZoneBrowseResponse as N, type EngramAccessTrustZoneDemoSeedRequest as O, type ProcedureStatsConfigSnapshot as P, type EngramAccessTrustZoneDemoSeedResponse as Q, type EngramAccessTrustZonePromoteRequest as R, type EngramAccessTrustZonePromoteResponse as S, type EngramAccessTrustZoneRecordSummary as T, type EngramAccessTrustZoneStatusResponse as U, type EngramAccessWriteEnvelope as V, type EngramAccessWriteResponse as W, EngramAccessInputError as a, type ProcedureStatsRecent as b, type ProcedureStatsReport as c, type ProcedureStatusCounts as d, computeProcedureStats as e, formatProcedureStatsText as f, ENGRAM_ACCESS_WRITE_SCHEMA_VERSION as g, type EngramAccessBriefingRequest as h, type EngramAccessBriefingResponse as i, type EngramAccessDaySummaryRequest as j, type EngramAccessEntityListResponse as k, type EngramAccessEntityResponse as l, type EngramAccessEntitySummary as m, type EngramAccessHealthResponse as n, type EngramAccessLcmSearchRequest as o, type EngramAccessLcmSearchResponse as p, type EngramAccessLcmStatusResponse as q, type EngramAccessMaintenanceResponse as r, type EngramAccessMemoryBrowseRequest as s, type EngramAccessMemoryBrowseResponse as t, type EngramAccessMemoryRecord as u, type EngramAccessMemoryResponse as v, type EngramAccessMemoryStoreRequest as w, type EngramAccessMemorySummary as x, type EngramAccessObserveRequest as y, type EngramAccessObserveResponse as z };
|