@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,9 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
expandTildePath
|
|
3
|
+
} from "./chunk-IXEJRKCZ.js";
|
|
1
4
|
import {
|
|
2
5
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y4A6M3B6.js";
|
|
4
7
|
import {
|
|
5
|
-
parseContinuityImprovementLoops
|
|
6
|
-
parseContinuityIncident
|
|
8
|
+
parseContinuityImprovementLoops
|
|
7
9
|
} from "./chunk-QSVPYQPG.js";
|
|
8
10
|
import {
|
|
9
11
|
sanitizeMemoryContent
|
|
@@ -16,12 +18,10 @@ import {
|
|
|
16
18
|
import { createHash } from "crypto";
|
|
17
19
|
import { mkdir as mkdir2, readFile as readFile2, readdir as readdir2, unlink, writeFile as writeFile2 } from "fs/promises";
|
|
18
20
|
import path2 from "path";
|
|
19
|
-
import os2 from "os";
|
|
20
21
|
|
|
21
22
|
// src/shared-context/manager.ts
|
|
22
23
|
import { mkdir, readFile, readdir, appendFile, writeFile, stat } from "fs/promises";
|
|
23
24
|
import path from "path";
|
|
24
|
-
import os from "os";
|
|
25
25
|
import { z } from "zod";
|
|
26
26
|
var SharedFeedbackEntrySchema = z.object({
|
|
27
27
|
agent: z.string().min(1),
|
|
@@ -258,10 +258,13 @@ function formatFeedbackLine(entry) {
|
|
|
258
258
|
function formatOverlapLine(entry) {
|
|
259
259
|
return `- \`${entry.token}\` (${entry.agentCount} agents: ${entry.agents.join(", ")}) [sources: ${entry.sourcePaths.join(", ")}]`;
|
|
260
260
|
}
|
|
261
|
+
function resolveSharedContextDir(config) {
|
|
262
|
+
return typeof config.sharedContextDir === "string" && config.sharedContextDir.length > 0 ? expandTildePath(config.sharedContextDir) : path.join(expandTildePath(config.workspaceDir), "shared-context");
|
|
263
|
+
}
|
|
261
264
|
var SharedContextManager = class {
|
|
262
265
|
constructor(config) {
|
|
263
266
|
this.config = config;
|
|
264
|
-
const base =
|
|
267
|
+
const base = resolveSharedContextDir(config);
|
|
265
268
|
this.dir = base;
|
|
266
269
|
this.prioritiesPath = path.join(base, "priorities.md");
|
|
267
270
|
this.prioritiesInboxPath = path.join(base, "priorities.inbox.md");
|
|
@@ -766,12 +769,6 @@ function monthIdFromIsoWeek(weekId) {
|
|
|
766
769
|
monday.setUTCDate(isoWeekOneMonday.getUTCDate() + (week - 1) * 7);
|
|
767
770
|
return isoMonthId(monday);
|
|
768
771
|
}
|
|
769
|
-
function sharedContextDir(config) {
|
|
770
|
-
if (typeof config.sharedContextDir === "string" && config.sharedContextDir.length > 0) {
|
|
771
|
-
return config.sharedContextDir;
|
|
772
|
-
}
|
|
773
|
-
return path2.join(os2.homedir(), ".openclaw", "workspace", "shared-context");
|
|
774
|
-
}
|
|
775
772
|
function cadenceStaleWindowMs(cadence) {
|
|
776
773
|
switch (cadence) {
|
|
777
774
|
case "daily":
|
|
@@ -787,8 +784,9 @@ function cadenceStaleWindowMs(cadence) {
|
|
|
787
784
|
}
|
|
788
785
|
}
|
|
789
786
|
var CompoundingEngine = class {
|
|
790
|
-
constructor(config) {
|
|
787
|
+
constructor(config, storage = new StorageManager(config.memoryDir)) {
|
|
791
788
|
this.config = config;
|
|
789
|
+
this.storage = storage;
|
|
792
790
|
this.weeklyDir = path2.join(config.memoryDir, "compounding", "weekly");
|
|
793
791
|
this.rubricsDir = path2.join(config.memoryDir, "compounding", "rubrics");
|
|
794
792
|
this.rubricsIndexPath = path2.join(this.rubricsDir, "index.json");
|
|
@@ -796,15 +794,13 @@ var CompoundingEngine = class {
|
|
|
796
794
|
this.rubricsWorkflowsDir = path2.join(this.rubricsDir, "workflows");
|
|
797
795
|
this.rubricsPath = path2.join(config.memoryDir, "compounding", "rubrics.md");
|
|
798
796
|
this.mistakesPath = path2.join(config.memoryDir, "compounding", "mistakes.json");
|
|
799
|
-
this.feedbackInboxPath = path2.join(
|
|
800
|
-
this.identityAnchorPath = path2.join(config.memoryDir, "identity", "identity-anchor.md");
|
|
801
|
-
this.identityIncidentsDir = path2.join(config.memoryDir, "identity", "incidents");
|
|
797
|
+
this.feedbackInboxPath = path2.join(resolveSharedContextDir(config), "feedback", "inbox.jsonl");
|
|
802
798
|
this.identityAuditWeeklyDir = path2.join(config.memoryDir, "identity", "audits", "weekly");
|
|
803
799
|
this.identityAuditMonthlyDir = path2.join(config.memoryDir, "identity", "audits", "monthly");
|
|
804
|
-
this.identityImprovementLoopsPath = path2.join(config.memoryDir, "identity", "improvement-loops.md");
|
|
805
800
|
this.memoryActionEventsPath = path2.join(config.memoryDir, "state", "memory-actions.jsonl");
|
|
806
801
|
}
|
|
807
802
|
config;
|
|
803
|
+
storage;
|
|
808
804
|
weeklyDir;
|
|
809
805
|
rubricsDir;
|
|
810
806
|
rubricsIndexPath;
|
|
@@ -813,11 +809,8 @@ var CompoundingEngine = class {
|
|
|
813
809
|
rubricsPath;
|
|
814
810
|
mistakesPath;
|
|
815
811
|
feedbackInboxPath;
|
|
816
|
-
identityAnchorPath;
|
|
817
|
-
identityIncidentsDir;
|
|
818
812
|
identityAuditWeeklyDir;
|
|
819
813
|
identityAuditMonthlyDir;
|
|
820
|
-
identityImprovementLoopsPath;
|
|
821
814
|
memoryActionEventsPath;
|
|
822
815
|
async ensureDirs() {
|
|
823
816
|
await mkdir2(this.weeklyDir, { recursive: true });
|
|
@@ -977,7 +970,7 @@ var CompoundingEngine = class {
|
|
|
977
970
|
const persistedContent = sanitizeMemoryContent(content).text;
|
|
978
971
|
const storage = opts.storage ?? new StorageManager(this.config.memoryDir);
|
|
979
972
|
const existing = (await storage.readAllMemories()).find(
|
|
980
|
-
(memory) => memory.frontmatter.category === candidate.category && memory.frontmatter.status !== "archived" && canonicalPromotionContentKey(memory.content) === canonicalPromotionContentKey(persistedContent)
|
|
973
|
+
(memory) => memory.frontmatter.category === candidate.category && memory.frontmatter.status !== "archived" && memory.frontmatter.status !== "forgotten" && canonicalPromotionContentKey(memory.content) === canonicalPromotionContentKey(persistedContent)
|
|
981
974
|
);
|
|
982
975
|
if (existing) {
|
|
983
976
|
report.skipped.push({
|
|
@@ -1032,13 +1025,14 @@ var CompoundingEngine = class {
|
|
|
1032
1025
|
const period = opts?.period === "monthly" ? "monthly" : "weekly";
|
|
1033
1026
|
const key = opts?.key?.trim() || (period === "weekly" ? isoWeekId(/* @__PURE__ */ new Date()) : isoMonthId(/* @__PURE__ */ new Date()));
|
|
1034
1027
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
1035
|
-
const [
|
|
1036
|
-
this.
|
|
1037
|
-
this.
|
|
1038
|
-
this.
|
|
1039
|
-
this.
|
|
1028
|
+
const [identityAnchor, improvementLoopsRaw, openIncidents, closedIncidents, mistakes] = await Promise.all([
|
|
1029
|
+
this.readOptionalIdentityAnchorForAudit(),
|
|
1030
|
+
this.readOptionalImprovementLoopsForAudit(),
|
|
1031
|
+
this.readContinuityIncidentsForAudit(200, "open"),
|
|
1032
|
+
this.readContinuityIncidentsForAudit(200, "closed"),
|
|
1040
1033
|
this.readMistakes()
|
|
1041
1034
|
]);
|
|
1035
|
+
const anchorPresent = (identityAnchor ?? "").trim().length > 0;
|
|
1042
1036
|
const improvementLoops = improvementLoopsRaw ? parseContinuityImprovementLoops(improvementLoopsRaw) : [];
|
|
1043
1037
|
const activeLoops = improvementLoops.filter((loop) => loop.status === "active");
|
|
1044
1038
|
const staleActiveLoops = activeLoops.filter((loop) => {
|
|
@@ -1099,10 +1093,7 @@ var CompoundingEngine = class {
|
|
|
1099
1093
|
...openIncidents.length > 0 ? openIncidents.slice(0, 20).map((i) => `- ${i.id}`) : ["- (none)"],
|
|
1100
1094
|
""
|
|
1101
1095
|
];
|
|
1102
|
-
const
|
|
1103
|
-
await mkdir2(dir, { recursive: true });
|
|
1104
|
-
const reportPath = path2.join(dir, `${key}.md`);
|
|
1105
|
-
await writeFile2(reportPath, lines.join("\n"), "utf-8");
|
|
1096
|
+
const reportPath = await this.storage.writeIdentityAudit(period, key, lines.join("\n"));
|
|
1106
1097
|
return { period, key, reportPath };
|
|
1107
1098
|
}
|
|
1108
1099
|
async readMistakes() {
|
|
@@ -1256,29 +1247,19 @@ var CompoundingEngine = class {
|
|
|
1256
1247
|
}
|
|
1257
1248
|
async readActionEventsForWeek(weekId) {
|
|
1258
1249
|
const out = [];
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
const
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
action: parsed.action,
|
|
1273
|
-
outcome: parsed.outcome === "applied" || parsed.outcome === "skipped" || parsed.outcome === "failed" ? parsed.outcome : "unknown",
|
|
1274
|
-
policyDecision: parsed.policyDecision === "deny" || parsed.policyDecision === "defer" ? parsed.policyDecision : null,
|
|
1275
|
-
namespace: typeof parsed.namespace === "string" && parsed.namespace.length > 0 ? parsed.namespace : "default",
|
|
1276
|
-
reason: typeof parsed.reason === "string" ? parsed.reason : null
|
|
1277
|
-
});
|
|
1278
|
-
} catch {
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
} catch {
|
|
1250
|
+
const rows = await this.storage.readMemoryActionEventRows(Number.MAX_SAFE_INTEGER);
|
|
1251
|
+
for (const row of rows) {
|
|
1252
|
+
const event = row.event;
|
|
1253
|
+
const ts = new Date(event.timestamp);
|
|
1254
|
+
if (!Number.isFinite(ts.getTime()) || isoWeekId(ts) !== weekId) continue;
|
|
1255
|
+
out.push({
|
|
1256
|
+
line: row.line,
|
|
1257
|
+
action: event.action,
|
|
1258
|
+
outcome: event.outcome,
|
|
1259
|
+
policyDecision: event.policyDecision === "deny" || event.policyDecision === "defer" ? event.policyDecision : null,
|
|
1260
|
+
namespace: typeof event.namespace === "string" && event.namespace.length > 0 ? event.namespace : "default",
|
|
1261
|
+
reason: typeof event.reason === "string" ? event.reason : null
|
|
1262
|
+
});
|
|
1282
1263
|
}
|
|
1283
1264
|
return out;
|
|
1284
1265
|
}
|
|
@@ -1287,19 +1268,18 @@ var CompoundingEngine = class {
|
|
|
1287
1268
|
for (const event of events) {
|
|
1288
1269
|
const key = event.action;
|
|
1289
1270
|
const acc = byAction.get(key) ?? {
|
|
1290
|
-
counts: { applied: 0, skipped: 0, failed: 0
|
|
1271
|
+
counts: { applied: 0, skipped: 0, failed: 0 },
|
|
1291
1272
|
provenance: /* @__PURE__ */ new Set()
|
|
1292
1273
|
};
|
|
1293
1274
|
if (event.outcome === "applied") acc.counts.applied += 1;
|
|
1294
1275
|
else if (event.outcome === "skipped") acc.counts.skipped += 1;
|
|
1295
|
-
else
|
|
1296
|
-
else acc.counts.unknown += 1;
|
|
1276
|
+
else acc.counts.failed += 1;
|
|
1297
1277
|
acc.provenance.add(`${path2.basename(this.memoryActionEventsPath)}:L${event.line}`);
|
|
1298
1278
|
byAction.set(key, acc);
|
|
1299
1279
|
}
|
|
1300
1280
|
const out = [];
|
|
1301
1281
|
for (const [action, data] of byAction.entries()) {
|
|
1302
|
-
const total = data.counts.applied + data.counts.skipped + data.counts.failed
|
|
1282
|
+
const total = data.counts.applied + data.counts.skipped + data.counts.failed;
|
|
1303
1283
|
if (total <= 0) continue;
|
|
1304
1284
|
const weightedScore = Number(((data.counts.applied * 1 - data.counts.skipped * 0.5 - data.counts.failed * 1.5) / total).toFixed(3));
|
|
1305
1285
|
out.push({
|
|
@@ -1336,7 +1316,7 @@ var CompoundingEngine = class {
|
|
|
1336
1316
|
if (item.total < 3) continue;
|
|
1337
1317
|
if (item.weightedScore < 0.3) continue;
|
|
1338
1318
|
const content = normalizePromotedGuidanceContent(
|
|
1339
|
-
`Prefer ${item.action} when the same workflow recurs; this week's outcomes were applied=${item.counts.applied}, skipped=${item.counts.skipped}, failed=${item.counts.failed}
|
|
1319
|
+
`Prefer ${item.action} when the same workflow recurs; this week's outcomes were applied=${item.counts.applied}, skipped=${item.counts.skipped}, failed=${item.counts.failed}.`
|
|
1340
1320
|
);
|
|
1341
1321
|
upsert({
|
|
1342
1322
|
id: stablePromotionCandidateId("action-outcome", item.action, content),
|
|
@@ -1563,7 +1543,7 @@ var CompoundingEngine = class {
|
|
|
1563
1543
|
} else {
|
|
1564
1544
|
for (const item of outcomeSummary.slice(0, 20)) {
|
|
1565
1545
|
lines.push(
|
|
1566
|
-
`- ${item.action}: applied=${item.counts.applied}, skipped=${item.counts.skipped}, failed=${item.counts.failed},
|
|
1546
|
+
`- ${item.action}: applied=${item.counts.applied}, skipped=${item.counts.skipped}, failed=${item.counts.failed}, weight=${item.weightedScore} _(source: ${item.provenance.join(", ")})_`
|
|
1567
1547
|
);
|
|
1568
1548
|
}
|
|
1569
1549
|
}
|
|
@@ -1574,7 +1554,7 @@ var CompoundingEngine = class {
|
|
|
1574
1554
|
lines.push("- (no advisory promotion candidates this week)");
|
|
1575
1555
|
} else {
|
|
1576
1556
|
for (const candidate of promotionCandidates) {
|
|
1577
|
-
const outcomeSummaryText = candidate.outcome ? ` outcomes[a=${candidate.outcome.applied}, s=${candidate.outcome.skipped}, f=${candidate.outcome.failed}
|
|
1557
|
+
const outcomeSummaryText = candidate.outcome ? ` outcomes[a=${candidate.outcome.applied}, s=${candidate.outcome.skipped}, f=${candidate.outcome.failed}]` : "";
|
|
1578
1558
|
lines.push(
|
|
1579
1559
|
`- [${candidate.sourceType}] ${candidate.subject} -> ${candidate.content} (category=${candidate.category}, score=${candidate.score}, id=${candidate.id}): ${candidate.rationale}${outcomeSummaryText} _(source: ${candidate.provenance.join(", ")})_`
|
|
1580
1560
|
);
|
|
@@ -1650,7 +1630,7 @@ var CompoundingEngine = class {
|
|
|
1650
1630
|
};
|
|
1651
1631
|
this.addRubricObservation(
|
|
1652
1632
|
workflowEntry,
|
|
1653
|
-
`Outcome weight=${item.weightedScore} (applied=${item.counts.applied}, skipped=${item.counts.skipped}, failed=${item.counts.failed}
|
|
1633
|
+
`Outcome weight=${item.weightedScore} (applied=${item.counts.applied}, skipped=${item.counts.skipped}, failed=${item.counts.failed})`,
|
|
1654
1634
|
...item.provenance
|
|
1655
1635
|
);
|
|
1656
1636
|
byWorkflow.set(item.action, workflowEntry);
|
|
@@ -1707,7 +1687,7 @@ var CompoundingEngine = class {
|
|
|
1707
1687
|
} else {
|
|
1708
1688
|
for (const item of outcomeSummary.slice(0, 20)) {
|
|
1709
1689
|
lines.push(
|
|
1710
|
-
`- ${item.action}: weight=${item.weightedScore} (applied=${item.counts.applied}, skipped=${item.counts.skipped}, failed=${item.counts.failed}
|
|
1690
|
+
`- ${item.action}: weight=${item.weightedScore} (applied=${item.counts.applied}, skipped=${item.counts.skipped}, failed=${item.counts.failed})`
|
|
1711
1691
|
);
|
|
1712
1692
|
}
|
|
1713
1693
|
}
|
|
@@ -1800,52 +1780,44 @@ var CompoundingEngine = class {
|
|
|
1800
1780
|
entry.observations = normalized.observationEntries?.map((item) => item.note) ?? [];
|
|
1801
1781
|
entry.provenance = [...new Set((normalized.observationEntries ?? []).flatMap((item) => item.provenance))];
|
|
1802
1782
|
}
|
|
1803
|
-
async
|
|
1783
|
+
async readOptionalIdentityAnchorForAudit() {
|
|
1804
1784
|
try {
|
|
1805
|
-
|
|
1806
|
-
return raw.trim().length > 0;
|
|
1785
|
+
return await this.storage.readIdentityAnchor();
|
|
1807
1786
|
} catch {
|
|
1808
|
-
return
|
|
1787
|
+
return null;
|
|
1809
1788
|
}
|
|
1810
1789
|
}
|
|
1811
|
-
async
|
|
1790
|
+
async readOptionalImprovementLoopsForAudit() {
|
|
1812
1791
|
try {
|
|
1813
|
-
|
|
1814
|
-
return raw.trim().length > 0 ? raw : null;
|
|
1792
|
+
return await this.storage.readIdentityImprovementLoops();
|
|
1815
1793
|
} catch {
|
|
1816
1794
|
return null;
|
|
1817
1795
|
}
|
|
1818
1796
|
}
|
|
1819
|
-
async
|
|
1820
|
-
const normalizedLimit = Number.isFinite(limit) ? limit : 0;
|
|
1821
|
-
const cappedLimit = Math.max(0, Math.floor(normalizedLimit));
|
|
1822
|
-
if (cappedLimit === 0) return [];
|
|
1823
|
-
const incidents = [];
|
|
1797
|
+
async readContinuityIncidentsForAudit(limit, state) {
|
|
1824
1798
|
try {
|
|
1825
|
-
|
|
1826
|
-
const files = names.filter((n) => n.endsWith(".md")).sort().reverse();
|
|
1827
|
-
for (const file of files) {
|
|
1828
|
-
if (incidents.length >= cappedLimit) break;
|
|
1829
|
-
const filePath = path2.join(this.identityIncidentsDir, file);
|
|
1830
|
-
try {
|
|
1831
|
-
const raw = await readFile2(filePath, "utf-8");
|
|
1832
|
-
const parsed = parseContinuityIncident(raw);
|
|
1833
|
-
if (!parsed) continue;
|
|
1834
|
-
if (state && parsed.state !== state) continue;
|
|
1835
|
-
incidents.push(parsed);
|
|
1836
|
-
} catch {
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1799
|
+
return await this.storage.readContinuityIncidents(limit, state);
|
|
1839
1800
|
} catch {
|
|
1801
|
+
return [];
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
async readOptionalIdentityAuditForReference(period, key) {
|
|
1805
|
+
try {
|
|
1806
|
+
return await this.storage.readIdentityAudit(period, key);
|
|
1807
|
+
} catch {
|
|
1808
|
+
return null;
|
|
1840
1809
|
}
|
|
1841
|
-
return incidents;
|
|
1842
1810
|
}
|
|
1843
1811
|
async readContinuityAuditReferences(weekId) {
|
|
1844
1812
|
const monthId = monthIdFromIsoWeek(weekId);
|
|
1845
1813
|
const weeklyPath = path2.join(this.identityAuditWeeklyDir, `${weekId}.md`);
|
|
1846
1814
|
const monthlyPath = path2.join(this.identityAuditMonthlyDir, `${monthId}.md`);
|
|
1847
|
-
const
|
|
1848
|
-
|
|
1815
|
+
const [weeklyAudit, monthlyAudit] = await Promise.all([
|
|
1816
|
+
this.readOptionalIdentityAuditForReference("weekly", weekId),
|
|
1817
|
+
this.readOptionalIdentityAuditForReference("monthly", monthId)
|
|
1818
|
+
]);
|
|
1819
|
+
const weeklyExists = (weeklyAudit ?? "").trim().length > 0;
|
|
1820
|
+
const monthlyExists = (monthlyAudit ?? "").trim().length > 0;
|
|
1849
1821
|
return {
|
|
1850
1822
|
weekId,
|
|
1851
1823
|
monthId,
|
|
@@ -1860,4 +1832,4 @@ export {
|
|
|
1860
1832
|
defaultTierMigrationCycleBudget,
|
|
1861
1833
|
CompoundingEngine
|
|
1862
1834
|
};
|
|
1863
|
-
//# sourceMappingURL=chunk-
|
|
1835
|
+
//# sourceMappingURL=chunk-XQ4EJLUD.js.map
|