@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,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runConsolidationProvenanceCheck
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5HRY2WRF.js";
|
|
4
4
|
import {
|
|
5
5
|
reportBufferSurpriseDistribution
|
|
6
6
|
} from "./chunk-ASAITVLA.js";
|
|
7
7
|
import {
|
|
8
8
|
NamespaceStorageRouter,
|
|
9
9
|
namespaceCollectionName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V7TEH5I2.js";
|
|
11
11
|
import {
|
|
12
12
|
analyzeSessionIntegrity,
|
|
13
13
|
applySessionRepair,
|
|
@@ -16,11 +16,6 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
resolveRemnicPluginEntry
|
|
18
18
|
} from "./chunk-U66YHYC7.js";
|
|
19
|
-
import {
|
|
20
|
-
resolveCuratedIncludeFilesStatePath,
|
|
21
|
-
resolveNativeKnowledgeStatePath,
|
|
22
|
-
resolveOpenClawWorkspaceStatePath
|
|
23
|
-
} from "./chunk-7SEAZFFB.js";
|
|
24
19
|
import {
|
|
25
20
|
createEvalBaselineSnapshot,
|
|
26
21
|
getEvalHarnessStatus,
|
|
@@ -29,21 +24,29 @@ import {
|
|
|
29
24
|
validateEvalBenchmarkPack
|
|
30
25
|
} from "./chunk-K6WK37A6.js";
|
|
31
26
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./chunk-
|
|
27
|
+
readJudgeVerdictStats
|
|
28
|
+
} from "./chunk-AJU4PJGY.js";
|
|
34
29
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
resolveCuratedIncludeFilesStatePath,
|
|
31
|
+
resolveNativeKnowledgeStatePath,
|
|
32
|
+
resolveOpenClawWorkspaceStatePath
|
|
33
|
+
} from "./chunk-7SEAZFFB.js";
|
|
34
|
+
import {
|
|
35
|
+
parseConfig
|
|
36
|
+
} from "./chunk-JWSENLQI.js";
|
|
37
37
|
import {
|
|
38
38
|
listMemoryGovernanceRuns,
|
|
39
39
|
readMemoryGovernanceRunArtifact
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-F5VQOQ2E.js";
|
|
41
41
|
import {
|
|
42
42
|
isSafeRouteNamespace
|
|
43
43
|
} from "./chunk-2LGMW3DJ.js";
|
|
44
|
+
import {
|
|
45
|
+
analyzeGraphHealth
|
|
46
|
+
} from "./chunk-RK2Y4XOM.js";
|
|
44
47
|
import {
|
|
45
48
|
StorageManager
|
|
46
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-Y4A6M3B6.js";
|
|
47
50
|
import {
|
|
48
51
|
lintWorkspaceFiles
|
|
49
52
|
} from "./chunk-DM2T26WE.js";
|
|
@@ -183,6 +186,12 @@ async function runNamespaceMigration(options) {
|
|
|
183
186
|
}
|
|
184
187
|
|
|
185
188
|
// src/operator-toolkit.ts
|
|
189
|
+
function isMissingPathError(error) {
|
|
190
|
+
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
191
|
+
}
|
|
192
|
+
function formatUnknownError(error) {
|
|
193
|
+
return error instanceof Error ? error.message : String(error);
|
|
194
|
+
}
|
|
186
195
|
function resolveConfigPath(explicitPath) {
|
|
187
196
|
if (explicitPath && explicitPath.trim().length > 0) return explicitPath.trim();
|
|
188
197
|
const configured = readEnvVar("OPENCLAW_ENGRAM_CONFIG_PATH") || readEnvVar("OPENCLAW_CONFIG_PATH");
|
|
@@ -407,7 +416,7 @@ function removeManagedCaptureInstructions(existing) {
|
|
|
407
416
|
async function runOperatorSetup(options) {
|
|
408
417
|
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
409
418
|
const configStatus = await loadCliPluginConfig(options.configPath);
|
|
410
|
-
const storage =
|
|
419
|
+
const storage = options.orchestrator.storage;
|
|
411
420
|
await storage.ensureDirectories();
|
|
412
421
|
await mkdir2(options.orchestrator.config.workspaceDir, { recursive: true });
|
|
413
422
|
const qmdAvailable = await options.orchestrator.qmd.probe();
|
|
@@ -684,6 +693,7 @@ async function runOperatorDoctor(options) {
|
|
|
684
693
|
const configStatus = await loadCliPluginConfig(options.configPath);
|
|
685
694
|
const checks = [];
|
|
686
695
|
const config = options.orchestrator.config;
|
|
696
|
+
const storage = options.orchestrator.storage;
|
|
687
697
|
const configReview = await buildOperatorConfigReviewReport({
|
|
688
698
|
now,
|
|
689
699
|
configStatus,
|
|
@@ -734,7 +744,7 @@ async function runOperatorDoctor(options) {
|
|
|
734
744
|
remediation: conversationIndex.enabled && conversationIndex.status !== "ok" ? "Run `openclaw engram rebuild-index` to refresh the conversation index artifacts." : void 0,
|
|
735
745
|
details: conversationIndex
|
|
736
746
|
});
|
|
737
|
-
const meta = await
|
|
747
|
+
const meta = await storage.loadMeta();
|
|
738
748
|
checks.push({
|
|
739
749
|
key: "maintenance",
|
|
740
750
|
status: meta.lastExtractionAt || meta.lastConsolidationAt ? "ok" : "warn",
|
|
@@ -752,11 +762,13 @@ async function runOperatorDoctor(options) {
|
|
|
752
762
|
details: nativeKnowledgeStatus
|
|
753
763
|
});
|
|
754
764
|
const agentAccessEnabled = config.agentAccessHttp?.enabled === true;
|
|
765
|
+
const rawAuthToken = config.agentAccessHttp?.authToken;
|
|
766
|
+
const authTokenConfigured = typeof rawAuthToken === "string" && rawAuthToken.length > 0 || rawAuthToken !== null && typeof rawAuthToken === "object" && typeof rawAuthToken.source === "string";
|
|
755
767
|
checks.push({
|
|
756
768
|
key: "access_http_auth",
|
|
757
|
-
status: !agentAccessEnabled ? "warn" :
|
|
758
|
-
summary: !agentAccessEnabled ? "Agent access HTTP bridge is disabled." :
|
|
759
|
-
remediation: !agentAccessEnabled ? "Ignore unless you plan to enable the HTTP bridge." :
|
|
769
|
+
status: !agentAccessEnabled ? "warn" : authTokenConfigured ? "ok" : "error",
|
|
770
|
+
summary: !agentAccessEnabled ? "Agent access HTTP bridge is disabled." : authTokenConfigured ? "Agent access HTTP bridge has an auth token configured." : "Agent access HTTP bridge is enabled without an auth token.",
|
|
771
|
+
remediation: !agentAccessEnabled ? "Ignore unless you plan to enable the HTTP bridge." : authTokenConfigured ? void 0 : "Set `agentAccessHttp.authToken` before exposing the bridge."
|
|
760
772
|
});
|
|
761
773
|
const warnings = config.fileHygiene?.lintEnabled ? await lintWorkspaceFiles({
|
|
762
774
|
workspaceDir: config.workspaceDir,
|
|
@@ -765,12 +777,16 @@ async function runOperatorDoctor(options) {
|
|
|
765
777
|
warnRatio: config.fileHygiene.lintWarnRatio
|
|
766
778
|
}) : [];
|
|
767
779
|
checks.push(summarizeHygieneWarnings(warnings, config.fileHygiene));
|
|
768
|
-
checks.push(await summarizeMemoryWorthLegacyCounters(
|
|
780
|
+
checks.push(await summarizeMemoryWorthLegacyCounters(storage));
|
|
769
781
|
checks.push(
|
|
770
|
-
await summarizeBufferSurpriseDistribution(
|
|
782
|
+
await summarizeBufferSurpriseDistribution(storage, config)
|
|
771
783
|
);
|
|
772
|
-
checks.push(await summarizeConsolidationProvenance(
|
|
784
|
+
checks.push(await summarizeConsolidationProvenance(storage, config));
|
|
785
|
+
checks.push(await summarizeGraphEdgeDecayStatus(config));
|
|
786
|
+
checks.push(await summarizeTierDistribution(options.orchestrator.storage));
|
|
787
|
+
checks.push(await summarizeDreamsPhases(config, storage));
|
|
773
788
|
checks.push(summarizeSecurityMitigations(config));
|
|
789
|
+
checks.push(await summarizeObservationThroughput(config.memoryDir));
|
|
774
790
|
const summary = checks.reduce(
|
|
775
791
|
(acc, check) => {
|
|
776
792
|
acc[check.status] += 1;
|
|
@@ -869,6 +885,167 @@ async function summarizeBufferSurpriseDistribution(storage, config) {
|
|
|
869
885
|
};
|
|
870
886
|
}
|
|
871
887
|
}
|
|
888
|
+
async function summarizeGraphEdgeDecayStatus(config) {
|
|
889
|
+
const { readGraphEdgeDecayStatus } = await import("./graph-edge-decay-PWB63GRE.js");
|
|
890
|
+
const enabled = config.graphEdgeDecayEnabled === true;
|
|
891
|
+
if (!enabled) {
|
|
892
|
+
return {
|
|
893
|
+
key: "graph_edge_decay",
|
|
894
|
+
status: "ok",
|
|
895
|
+
summary: "Graph-edge decay maintenance is disabled (graphEdgeDecayEnabled = false).",
|
|
896
|
+
remediation: "Set graphEdgeDecayEnabled = true to opt into the periodic decay job (issue #681).",
|
|
897
|
+
details: { enabled: false }
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
const status = await readGraphEdgeDecayStatus(config.memoryDir);
|
|
901
|
+
if (!status) {
|
|
902
|
+
return {
|
|
903
|
+
key: "graph_edge_decay",
|
|
904
|
+
status: "warn",
|
|
905
|
+
summary: "Graph-edge decay is enabled but has not run yet (no status file present).",
|
|
906
|
+
remediation: "Trigger the cron, run `engram.graph_edge_decay_run` via MCP, or wait for the scheduled cadence to fire.",
|
|
907
|
+
details: { enabled: true, lastRun: null, cadenceMs: config.graphEdgeDecayCadenceMs }
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
return {
|
|
911
|
+
key: "graph_edge_decay",
|
|
912
|
+
status: "ok",
|
|
913
|
+
summary: `Graph-edge decay last ran at ${status.ranAt} (${status.edgesDecayed}/${status.edgesTotal} edges decayed, ${status.edgesBelowVisibilityThreshold} below visibility threshold).`,
|
|
914
|
+
details: {
|
|
915
|
+
enabled: true,
|
|
916
|
+
lastRun: status.ranAt,
|
|
917
|
+
durationMs: status.durationMs,
|
|
918
|
+
edgesTotal: status.edgesTotal,
|
|
919
|
+
edgesDecayed: status.edgesDecayed,
|
|
920
|
+
edgesBelowVisibilityThreshold: status.edgesBelowVisibilityThreshold,
|
|
921
|
+
topDecayedEntities: status.topDecayedEntities,
|
|
922
|
+
cadenceMs: config.graphEdgeDecayCadenceMs
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
async function summarizeTierDistribution(storage) {
|
|
927
|
+
try {
|
|
928
|
+
const { summarizeTiers } = await import("./tier-stats-62ZVDFKS.js");
|
|
929
|
+
const summary = await summarizeTiers(storage);
|
|
930
|
+
const storageDir = storage.dir ?? "";
|
|
931
|
+
const journalPath = storageDir.length > 0 ? path2.join(storageDir, "state", "tier-migration-journal.jsonl") : null;
|
|
932
|
+
let recentMigrations = 0;
|
|
933
|
+
const demotionReasons = {};
|
|
934
|
+
const sevenDaysAgoMs = Date.now() - 7 * 864e5;
|
|
935
|
+
if (journalPath) {
|
|
936
|
+
try {
|
|
937
|
+
const { readFile: readFile2 } = await import("fs/promises");
|
|
938
|
+
const raw = await readFile2(journalPath, "utf-8");
|
|
939
|
+
for (const line of raw.split("\n")) {
|
|
940
|
+
const trimmed = line.trim();
|
|
941
|
+
if (trimmed.length === 0) continue;
|
|
942
|
+
try {
|
|
943
|
+
const entry = JSON.parse(trimmed);
|
|
944
|
+
const tsMs = entry.ts ? Date.parse(entry.ts) : NaN;
|
|
945
|
+
if (Number.isFinite(tsMs) && tsMs >= sevenDaysAgoMs && entry.changed === true) {
|
|
946
|
+
recentMigrations += 1;
|
|
947
|
+
if (entry.fromTier === "hot" && entry.toTier === "cold" && typeof entry.reason === "string") {
|
|
948
|
+
const reason = entry.reason;
|
|
949
|
+
demotionReasons[reason] = (demotionReasons[reason] ?? 0) + 1;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
} catch {
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
} catch {
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
const topDemotionReasons = Object.entries(demotionReasons).sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0])).slice(0, 5).map(([reason, count]) => ({ reason, count }));
|
|
959
|
+
const statusParts = Object.entries(summary.byStatus).sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0])).slice(0, 6).map(([s, n]) => `${s}: ${n}`).join(", ");
|
|
960
|
+
return {
|
|
961
|
+
key: "tier_distribution",
|
|
962
|
+
status: "ok",
|
|
963
|
+
summary: `Tier distribution: hot=${summary.byTier.hot}, cold=${summary.byTier.cold}` + (summary.forgottenCount > 0 ? `, forgotten=${summary.forgottenCount}` : "") + `. Total: ${summary.total}.` + (recentMigrations > 0 ? ` Recent migrations (7d): ${recentMigrations}.` : ""),
|
|
964
|
+
details: {
|
|
965
|
+
total: summary.total,
|
|
966
|
+
byTier: summary.byTier,
|
|
967
|
+
byStatus: summary.byStatus,
|
|
968
|
+
forgottenCount: summary.forgottenCount,
|
|
969
|
+
statusSummary: statusParts,
|
|
970
|
+
recentMigrations,
|
|
971
|
+
topDemotionReasons
|
|
972
|
+
}
|
|
973
|
+
};
|
|
974
|
+
} catch (err) {
|
|
975
|
+
return {
|
|
976
|
+
key: "tier_distribution",
|
|
977
|
+
status: "ok",
|
|
978
|
+
summary: "Tier distribution unavailable \u2014 could not enumerate memories.",
|
|
979
|
+
details: { error: String(err) }
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
async function summarizeDreamsPhases(config, storage = new StorageManager(config.memoryDir)) {
|
|
984
|
+
const phases = config.dreamsPhases;
|
|
985
|
+
const meta = await storage.loadMeta();
|
|
986
|
+
let deepSleepLastRun = null;
|
|
987
|
+
let deepSleepLastRunWarning = null;
|
|
988
|
+
try {
|
|
989
|
+
const runsDir = path2.join(config.memoryDir, "state", "memory-governance", "runs");
|
|
990
|
+
const runIds = (await readdir2(runsDir)).sort().reverse();
|
|
991
|
+
if (runIds.length > 0) {
|
|
992
|
+
const latestRunId = runIds[0];
|
|
993
|
+
const manifestPath = path2.join(
|
|
994
|
+
runsDir,
|
|
995
|
+
latestRunId,
|
|
996
|
+
"manifest.json"
|
|
997
|
+
);
|
|
998
|
+
const raw = await readFile(manifestPath, "utf-8");
|
|
999
|
+
const parsed = JSON.parse(raw);
|
|
1000
|
+
if (typeof parsed.createdAt === "string" && parsed.createdAt.length > 0) {
|
|
1001
|
+
deepSleepLastRun = parsed.createdAt;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
} catch (error) {
|
|
1005
|
+
if (!isMissingPathError(error)) {
|
|
1006
|
+
deepSleepLastRunWarning = `Could not read latest governance run manifest: ${formatUnknownError(error)}`;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
const phaseLines = [
|
|
1010
|
+
`lightSleep: enabled=${phases.lightSleep.enabled}, cadenceMs=${phases.lightSleep.cadenceMs}, promoteHeat=${phases.lightSleep.promoteHeatThreshold}, staleDecay=${phases.lightSleep.staleDecayThreshold}, archiveDecay=${phases.lightSleep.archiveDecayThreshold}, filterStale=${phases.lightSleep.filterStaleEnabled}, lastRun=${meta.lastExtractionAt ?? "never"}`,
|
|
1011
|
+
`rem: enabled=${phases.rem.enabled}, cadenceMs=${phases.rem.cadenceMs}, similarity=${phases.rem.similarityThreshold}, minCluster=${phases.rem.minClusterSize}, maxPerRun=${phases.rem.maxPerRun}, minIntervalMs=${phases.rem.minIntervalMs}, lastRun=${meta.lastConsolidationAt ?? "never"}`,
|
|
1012
|
+
`deepSleep: enabled=${phases.deepSleep.enabled}, cadenceMs=${phases.deepSleep.cadenceMs}, versioning=${phases.deepSleep.versioningEnabled}, versioningMaxPerPage=${phases.deepSleep.versioningMaxPerPage}, lastRun=${deepSleepLastRun ?? "never"}`
|
|
1013
|
+
];
|
|
1014
|
+
return {
|
|
1015
|
+
key: "dreams_phases",
|
|
1016
|
+
status: deepSleepLastRunWarning ? "warn" : "ok",
|
|
1017
|
+
summary: `Dreams pipeline phases: ${phaseLines.join("; ")}${deepSleepLastRunWarning ? `; ${deepSleepLastRunWarning}` : ""}`,
|
|
1018
|
+
remediation: deepSleepLastRunWarning ? "Inspect state/memory-governance/runs and repair or remove unreadable governance run artifacts." : void 0,
|
|
1019
|
+
details: {
|
|
1020
|
+
lightSleep: {
|
|
1021
|
+
enabled: phases.lightSleep.enabled,
|
|
1022
|
+
cadenceMs: phases.lightSleep.cadenceMs,
|
|
1023
|
+
promoteHeatThreshold: phases.lightSleep.promoteHeatThreshold,
|
|
1024
|
+
staleDecayThreshold: phases.lightSleep.staleDecayThreshold,
|
|
1025
|
+
archiveDecayThreshold: phases.lightSleep.archiveDecayThreshold,
|
|
1026
|
+
filterStaleEnabled: phases.lightSleep.filterStaleEnabled,
|
|
1027
|
+
lastRun: meta.lastExtractionAt ?? null
|
|
1028
|
+
},
|
|
1029
|
+
rem: {
|
|
1030
|
+
enabled: phases.rem.enabled,
|
|
1031
|
+
cadenceMs: phases.rem.cadenceMs,
|
|
1032
|
+
similarityThreshold: phases.rem.similarityThreshold,
|
|
1033
|
+
minClusterSize: phases.rem.minClusterSize,
|
|
1034
|
+
maxPerRun: phases.rem.maxPerRun,
|
|
1035
|
+
minIntervalMs: phases.rem.minIntervalMs,
|
|
1036
|
+
lastRun: meta.lastConsolidationAt ?? null
|
|
1037
|
+
},
|
|
1038
|
+
deepSleep: {
|
|
1039
|
+
enabled: phases.deepSleep.enabled,
|
|
1040
|
+
cadenceMs: phases.deepSleep.cadenceMs,
|
|
1041
|
+
versioningEnabled: phases.deepSleep.versioningEnabled,
|
|
1042
|
+
versioningMaxPerPage: phases.deepSleep.versioningMaxPerPage,
|
|
1043
|
+
lastRun: deepSleepLastRun,
|
|
1044
|
+
warning: deepSleepLastRunWarning
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
872
1049
|
function summarizeSecurityMitigations(config) {
|
|
873
1050
|
const budgetEnabled = config.recallCrossNamespaceBudgetEnabled === true;
|
|
874
1051
|
const anomalyEnabled = config.recallAuditAnomalyDetectionEnabled === true;
|
|
@@ -911,6 +1088,46 @@ function summarizeSecurityMitigations(config) {
|
|
|
911
1088
|
details: { ...details, configOnly: true }
|
|
912
1089
|
};
|
|
913
1090
|
}
|
|
1091
|
+
async function summarizeObservationThroughput(memoryDir) {
|
|
1092
|
+
try {
|
|
1093
|
+
const stats = await readJudgeVerdictStats(memoryDir);
|
|
1094
|
+
if (stats.total === 0) {
|
|
1095
|
+
return {
|
|
1096
|
+
key: "observations",
|
|
1097
|
+
status: "ok",
|
|
1098
|
+
summary: "No observations recorded yet (extraction-judge telemetry ledger is empty or missing).",
|
|
1099
|
+
details: { total: 0, accept: 0, reject: 0, defer: 0, lastObservedAt: null }
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
const acceptPct = (stats.accept / stats.total * 100).toFixed(1);
|
|
1103
|
+
const rejectPct = (stats.reject / stats.total * 100).toFixed(1);
|
|
1104
|
+
const deferPct = (stats.defer / stats.total * 100).toFixed(1);
|
|
1105
|
+
return {
|
|
1106
|
+
key: "observations",
|
|
1107
|
+
status: "ok",
|
|
1108
|
+
summary: `${stats.total} observations recorded: accept=${acceptPct}%, reject=${rejectPct}%, defer=${deferPct}%. Last observed: ${stats.lastTs ?? "unknown"}.`,
|
|
1109
|
+
details: {
|
|
1110
|
+
total: stats.total,
|
|
1111
|
+
accept: stats.accept,
|
|
1112
|
+
reject: stats.reject,
|
|
1113
|
+
defer: stats.defer,
|
|
1114
|
+
deferCapTriggered: stats.deferCapTriggered,
|
|
1115
|
+
deferRate: stats.deferRate,
|
|
1116
|
+
meanElapsedMs: stats.meanElapsedMs,
|
|
1117
|
+
firstObservedAt: stats.firstTs ?? null,
|
|
1118
|
+
lastObservedAt: stats.lastTs ?? null
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
} catch (err) {
|
|
1122
|
+
return {
|
|
1123
|
+
key: "observations",
|
|
1124
|
+
status: "warn",
|
|
1125
|
+
summary: "Could not read observation telemetry ledger.",
|
|
1126
|
+
remediation: "Retry `remnic doctor` after ensuring the memory state directory is readable.",
|
|
1127
|
+
details: { error: String(err) }
|
|
1128
|
+
};
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
914
1131
|
async function summarizeConsolidationProvenance(storage, config) {
|
|
915
1132
|
let report;
|
|
916
1133
|
try {
|
|
@@ -1223,9 +1440,12 @@ export {
|
|
|
1223
1440
|
runOperatorDoctor,
|
|
1224
1441
|
summarizeMemoryWorthLegacyCounters,
|
|
1225
1442
|
summarizeBufferSurpriseDistribution,
|
|
1443
|
+
summarizeTierDistribution,
|
|
1444
|
+
summarizeDreamsPhases,
|
|
1445
|
+
summarizeObservationThroughput,
|
|
1226
1446
|
summarizeConsolidationProvenance,
|
|
1227
1447
|
runOperatorInventory,
|
|
1228
1448
|
runBenchmarkRecall,
|
|
1229
1449
|
runOperatorRepair
|
|
1230
1450
|
};
|
|
1231
|
-
//# sourceMappingURL=chunk-
|
|
1451
|
+
//# sourceMappingURL=chunk-TIFRGAKO.js.map
|