@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
destroyGraphEventBus,
|
|
3
|
+
emitGraphEvent,
|
|
4
|
+
getGraphEventBus,
|
|
5
|
+
subscribeGraphEvents
|
|
6
|
+
} from "./chunk-WIICJPET.js";
|
|
7
|
+
import "./chunk-PZ5AY32C.js";
|
|
8
|
+
export {
|
|
9
|
+
destroyGraphEventBus,
|
|
10
|
+
emitGraphEvent,
|
|
11
|
+
getGraphEventBus,
|
|
12
|
+
subscribeGraphEvents
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=graph-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/graph-recall.js
CHANGED
package/dist/graph-retrieval.js
CHANGED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { GraphType } from './graph.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Graph snapshot — read-only view of the multi-graph memory adjacency
|
|
5
|
+
* (issue #691 PR 2/5).
|
|
6
|
+
*
|
|
7
|
+
* Composes the JSONL edge store from `graph.ts` with optional node-metadata
|
|
8
|
+
* loading so HTTP / MCP / future CLI surfaces can return a consistent
|
|
9
|
+
* `{ nodes, edges, generatedAt }` shape suitable for the admin pane scaffold
|
|
10
|
+
* shipped in PR 1/5.
|
|
11
|
+
*
|
|
12
|
+
* All inputs are validated and clamped at this layer so the access surface
|
|
13
|
+
* (which is responsible for HTTP/MCP-flavored errors) can keep the wiring
|
|
14
|
+
* thin. The module is pure async I/O — no global state, no caches.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/** Default `limit` when the caller omits it. */
|
|
18
|
+
declare const GRAPH_SNAPSHOT_DEFAULT_LIMIT = 500;
|
|
19
|
+
/** Hard upper bound on `limit` to keep responses sized for the admin pane. */
|
|
20
|
+
declare const GRAPH_SNAPSHOT_MAX_LIMIT = 5000;
|
|
21
|
+
/** Categories accepted by the `categories` filter; matches `MemoryFile.frontmatter.category`. */
|
|
22
|
+
type GraphSnapshotCategory = string;
|
|
23
|
+
interface GraphSnapshotNode {
|
|
24
|
+
/** Stable identifier — relative memory path (matches `GraphEdge.from` / `to`). */
|
|
25
|
+
id: string;
|
|
26
|
+
/** Short human label. Falls back to the basename when no metadata is available. */
|
|
27
|
+
label: string;
|
|
28
|
+
/** Memory category (e.g. `fact`, `decision`, `entity`). `"unknown"` when metadata is missing. */
|
|
29
|
+
kind: string;
|
|
30
|
+
/** Aggregate edge confidence touching this node, used for sizing in the admin pane. */
|
|
31
|
+
score: number;
|
|
32
|
+
/** Most recent edge timestamp (ISO) touching this node — best-effort recency signal. */
|
|
33
|
+
lastUpdated: string | null;
|
|
34
|
+
}
|
|
35
|
+
interface GraphSnapshotEdge {
|
|
36
|
+
source: string;
|
|
37
|
+
target: string;
|
|
38
|
+
kind: GraphType;
|
|
39
|
+
/** Edge confidence in [0, 1]; legacy edges without confidence return 1.0. */
|
|
40
|
+
confidence: number;
|
|
41
|
+
}
|
|
42
|
+
interface GraphSnapshotResponse {
|
|
43
|
+
nodes: GraphSnapshotNode[];
|
|
44
|
+
edges: GraphSnapshotEdge[];
|
|
45
|
+
generatedAt: string;
|
|
46
|
+
}
|
|
47
|
+
interface GraphSnapshotRequest {
|
|
48
|
+
/** Max number of edges to include (after filtering). Default 500, max 5000. */
|
|
49
|
+
limit?: number;
|
|
50
|
+
/** Inclusive lower bound on edge `ts` (ISO string). Edges older than this are dropped. */
|
|
51
|
+
since?: string;
|
|
52
|
+
/** When set, restrict the snapshot to the focus node and its direct neighbors. */
|
|
53
|
+
focusNodeId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Optional category allow-list. Edges are kept only when both endpoints
|
|
56
|
+
* resolve to nodes whose category falls in this set; nodes are kept only
|
|
57
|
+
* when their category matches. When omitted, no category filter is applied.
|
|
58
|
+
*/
|
|
59
|
+
categories?: GraphSnapshotCategory[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Loader contract: given a relative memory path, return `{ category, label,
|
|
63
|
+
* updated }` or `null` when the memory cannot be resolved. Implementations
|
|
64
|
+
* typically wrap `StorageManager.readMemoryByPath`; the snapshot module stays
|
|
65
|
+
* agnostic so tests can pass a synchronous in-memory map.
|
|
66
|
+
*/
|
|
67
|
+
type GraphSnapshotNodeLoader = (relPath: string) => Promise<GraphSnapshotNodeMetadata | null>;
|
|
68
|
+
interface GraphSnapshotNodeMetadata {
|
|
69
|
+
/** Memory category, e.g. `fact` / `decision` / `entity`. */
|
|
70
|
+
category: string;
|
|
71
|
+
/** Display label — usually the memory id or the entity name. */
|
|
72
|
+
label: string;
|
|
73
|
+
/** ISO `updated` timestamp from frontmatter, when available. */
|
|
74
|
+
updated?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Coerce a caller-supplied limit into the `[1, GRAPH_SNAPSHOT_MAX_LIMIT]` range.
|
|
78
|
+
*
|
|
79
|
+
* - `undefined` / `null` → `GRAPH_SNAPSHOT_DEFAULT_LIMIT`.
|
|
80
|
+
* - non-finite or non-integer → throws `Error` (callers translate to 400).
|
|
81
|
+
* - `<= 0` → throws.
|
|
82
|
+
* - `> GRAPH_SNAPSHOT_MAX_LIMIT` → clamped to the max (no error — admin
|
|
83
|
+
* panel callers send liberal limits).
|
|
84
|
+
*/
|
|
85
|
+
declare function normalizeGraphSnapshotLimit(raw: unknown): number;
|
|
86
|
+
/**
|
|
87
|
+
* Validate and parse an ISO timestamp into a millisecond epoch. Throws
|
|
88
|
+
* when the input cannot be parsed; callers translate to a 400. `undefined`
|
|
89
|
+
* input yields `undefined`.
|
|
90
|
+
*/
|
|
91
|
+
declare function parseGraphSnapshotSince(raw: string | undefined): number | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Build a `GraphSnapshotResponse` from the raw edge JSONL on disk plus an
|
|
94
|
+
* optional node-metadata loader.
|
|
95
|
+
*
|
|
96
|
+
* The function is split into pure subroutines so HTTP / MCP / tests can
|
|
97
|
+
* exercise the same logic without spinning up a full `StorageManager`.
|
|
98
|
+
*/
|
|
99
|
+
declare function buildGraphSnapshot(opts: {
|
|
100
|
+
memoryDir: string;
|
|
101
|
+
graphConfig: {
|
|
102
|
+
entityGraphEnabled: boolean;
|
|
103
|
+
timeGraphEnabled: boolean;
|
|
104
|
+
causalGraphEnabled: boolean;
|
|
105
|
+
};
|
|
106
|
+
request: GraphSnapshotRequest;
|
|
107
|
+
loadNode: GraphSnapshotNodeLoader;
|
|
108
|
+
/** Override clock for deterministic tests. */
|
|
109
|
+
now?: () => Date;
|
|
110
|
+
}): Promise<GraphSnapshotResponse>;
|
|
111
|
+
|
|
112
|
+
export { GRAPH_SNAPSHOT_DEFAULT_LIMIT, GRAPH_SNAPSHOT_MAX_LIMIT, type GraphSnapshotCategory, type GraphSnapshotEdge, type GraphSnapshotNode, type GraphSnapshotNodeLoader, type GraphSnapshotNodeMetadata, type GraphSnapshotRequest, type GraphSnapshotResponse, buildGraphSnapshot, normalizeGraphSnapshotLimit, parseGraphSnapshotSince };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GRAPH_SNAPSHOT_DEFAULT_LIMIT,
|
|
3
|
+
GRAPH_SNAPSHOT_MAX_LIMIT,
|
|
4
|
+
buildGraphSnapshot,
|
|
5
|
+
normalizeGraphSnapshotLimit,
|
|
6
|
+
parseGraphSnapshotSince
|
|
7
|
+
} from "./chunk-PCUKNJAZ.js";
|
|
8
|
+
import "./chunk-RK2Y4XOM.js";
|
|
9
|
+
import "./chunk-2LSZVONP.js";
|
|
10
|
+
import "./chunk-WIICJPET.js";
|
|
11
|
+
import "./chunk-PZ5AY32C.js";
|
|
12
|
+
export {
|
|
13
|
+
GRAPH_SNAPSHOT_DEFAULT_LIMIT,
|
|
14
|
+
GRAPH_SNAPSHOT_MAX_LIMIT,
|
|
15
|
+
buildGraphSnapshot,
|
|
16
|
+
normalizeGraphSnapshotLimit,
|
|
17
|
+
parseGraphSnapshotSince
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=graph-snapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/graph.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ interface GraphEdge {
|
|
|
17
17
|
weight: number;
|
|
18
18
|
label: string;
|
|
19
19
|
ts: string;
|
|
20
|
+
confidence?: number;
|
|
21
|
+
lastReinforcedAt?: string;
|
|
20
22
|
}
|
|
21
23
|
interface GraphConfig {
|
|
22
24
|
multiGraphMemoryEnabled: boolean;
|
|
@@ -29,17 +31,57 @@ interface GraphConfig {
|
|
|
29
31
|
graphLateralInhibitionEnabled: boolean;
|
|
30
32
|
graphLateralInhibitionBeta: number;
|
|
31
33
|
graphLateralInhibitionTopM: number;
|
|
34
|
+
/**
|
|
35
|
+
* Issue #681 PR 3/3 — minimum edge confidence required for traversal.
|
|
36
|
+
* Edges with confidence below this floor are pruned. Legacy edges
|
|
37
|
+
* (no `confidence` field) are treated as 1.0 and always pass.
|
|
38
|
+
* Range `[0, 1]`. Default 0.2.
|
|
39
|
+
*/
|
|
40
|
+
graphTraversalConfidenceFloor: number;
|
|
41
|
+
/**
|
|
42
|
+
* Issue #681 PR 3/3 — number of PageRank-style refinement iterations
|
|
43
|
+
* applied on top of BFS activation. Set to 0 to disable refinement
|
|
44
|
+
* and return raw BFS scores. Default 8.
|
|
45
|
+
*/
|
|
46
|
+
graphTraversalPageRankIterations: number;
|
|
32
47
|
}
|
|
48
|
+
/** Default minimum edge confidence required for traversal (issue #681 PR 3/3). */
|
|
49
|
+
declare const DEFAULT_GRAPH_TRAVERSAL_CONFIDENCE_FLOOR = 0.2;
|
|
50
|
+
/** Default PageRank-style refinement iteration count (issue #681 PR 3/3). */
|
|
51
|
+
declare const DEFAULT_GRAPH_TRAVERSAL_PAGERANK_ITERATIONS = 8;
|
|
33
52
|
declare const CAUSAL_PHRASES: string[];
|
|
34
53
|
declare function graphsDir(memoryDir: string): string;
|
|
35
54
|
declare function graphFilePath(memoryDir: string, type: GraphType): string;
|
|
36
55
|
declare function ensureGraphsDir(memoryDir: string): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Run `fn` while holding the write lock for the given graph JSONL file.
|
|
58
|
+
*
|
|
59
|
+
* The lock is keyed by absolute file path so concurrent writes to
|
|
60
|
+
* different graph types proceed independently. The chain recovers from
|
|
61
|
+
* rejection (gotcha #40) so a single I/O failure does not poison all
|
|
62
|
+
* future writers, but the original error is still surfaced to the
|
|
63
|
+
* caller of `withGraphWriteLock`.
|
|
64
|
+
*/
|
|
65
|
+
declare function withGraphWriteLock<T>(filePath: string, fn: () => Promise<T>): Promise<T>;
|
|
37
66
|
declare function appendEdge(memoryDir: string, edge: GraphEdge): Promise<void>;
|
|
38
67
|
/**
|
|
39
68
|
* Read all edges of a given type from the JSONL file.
|
|
40
|
-
* Returns [] if the file doesn't exist or
|
|
69
|
+
* Returns [] if the file doesn't exist or any read error occurs (fail-open).
|
|
70
|
+
*
|
|
71
|
+
* Production traversal callers (recall/PageRank) depend on this fail-open
|
|
72
|
+
* posture so a temporarily missing or unreadable graph file never blocks
|
|
73
|
+
* a recall. Maintenance jobs that need to distinguish ENOENT from real
|
|
74
|
+
* I/O failures must use {@link readEdgesStrict} instead.
|
|
41
75
|
*/
|
|
42
76
|
declare function readEdges(memoryDir: string, type: GraphType): Promise<GraphEdge[]>;
|
|
77
|
+
/**
|
|
78
|
+
* Same as {@link readEdges} but only swallows `ENOENT`; all other read
|
|
79
|
+
* errors (`EACCES`, `EIO`, …) are propagated. Used by the graph-edge
|
|
80
|
+
* decay maintenance job so I/O outages surface as a failed run instead
|
|
81
|
+
* of being silently reported as "no edges to decay" (issue #729 /
|
|
82
|
+
* Codex P1, line 120).
|
|
83
|
+
*/
|
|
84
|
+
declare function readEdgesStrict(memoryDir: string, type: GraphType): Promise<GraphEdge[]>;
|
|
43
85
|
/**
|
|
44
86
|
* Read edges from all enabled graph types.
|
|
45
87
|
*/
|
|
@@ -119,22 +161,78 @@ declare class GraphIndex {
|
|
|
119
161
|
* Spreading activation BFS (SYNAPSE-inspired).
|
|
120
162
|
*
|
|
121
163
|
* Starting from `seeds`, traverse the combined graph for up to `maxSteps` hops.
|
|
122
|
-
* Each candidate gets an activation score = edge.weight × decay^hop.
|
|
123
|
-
* Returns top-N candidate paths sorted by descending activation score.
|
|
164
|
+
* Each candidate gets an activation score = edge.weight × edgeConfidence × decay^hop.
|
|
124
165
|
*
|
|
125
|
-
*
|
|
166
|
+
* Issue #681 PR 3/3 — confidence-aware traversal:
|
|
167
|
+
* - Each edge's `weight` is multiplied by its `confidence` (legacy edges
|
|
168
|
+
* missing `confidence` are treated as 1.0, preserving prior behavior).
|
|
169
|
+
* - Edges with `confidence < graphTraversalConfidenceFloor` are pruned and
|
|
170
|
+
* contribute neither activation nor downstream neighbors.
|
|
171
|
+
* - When `graphTraversalPageRankIterations > 0`, an additional PageRank-
|
|
172
|
+
* style refinement pass redistributes activation along confidence-weighted
|
|
173
|
+
* edges, sharpening the ranking among multi-hop candidates.
|
|
174
|
+
* - Per-result provenance includes the highest-confidence edge that landed
|
|
175
|
+
* on each candidate, so the X-ray surface can attribute pruning and
|
|
176
|
+
* ranking decisions back to specific edges.
|
|
177
|
+
*
|
|
178
|
+
* @param seeds - initial memory paths to expand from (e.g. QMD top results)
|
|
126
179
|
* @param maxSteps - max BFS hops (from config: maxGraphTraversalSteps)
|
|
127
|
-
* @returns Array of {path, score} sorted descending, not including seed paths
|
|
180
|
+
* @returns Array of {path, score, edgeConfidence, ...} sorted descending, not including seed paths
|
|
128
181
|
*/
|
|
129
|
-
spreadingActivation(seeds: string[], maxSteps?: number
|
|
182
|
+
spreadingActivation(seeds: string[], maxSteps?: number, opts?: {
|
|
183
|
+
/**
|
|
184
|
+
* Issue #681 — when `true`, bypasses the configured
|
|
185
|
+
* `graphTraversalConfidenceFloor` and includes low-confidence
|
|
186
|
+
* edges in traversal. Equivalent to forcing the floor to `0`.
|
|
187
|
+
* Default `false` (floor from config is applied).
|
|
188
|
+
*/
|
|
189
|
+
includeLowConfidence?: boolean;
|
|
190
|
+
}): Promise<Array<{
|
|
130
191
|
path: string;
|
|
131
192
|
score: number;
|
|
132
193
|
seed: string;
|
|
133
194
|
hopDepth: number;
|
|
134
195
|
decayedWeight: number;
|
|
135
196
|
graphType: "entity" | "time" | "causal";
|
|
197
|
+
/**
|
|
198
|
+
* Confidence of the edge that produced this candidate's recorded
|
|
199
|
+
* provenance (the strongest edge along the chosen entry path).
|
|
200
|
+
* In `[0, 1]`. Legacy edges without `confidence` surface as 1.0.
|
|
201
|
+
*/
|
|
202
|
+
edgeConfidence: number;
|
|
136
203
|
}>>;
|
|
137
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* Clamp `graphTraversalConfidenceFloor` into the legal range `[0, 1]`.
|
|
207
|
+
* Non-finite or non-numeric values fall back to the documented default
|
|
208
|
+
* so misconfiguration cannot silently disable the floor or reject every edge.
|
|
209
|
+
*
|
|
210
|
+
* Exported for tests; call sites in `spreadingActivation` use it to make
|
|
211
|
+
* the contract explicit at every boundary.
|
|
212
|
+
*/
|
|
213
|
+
declare function clampConfidenceFloor(raw: unknown): number;
|
|
214
|
+
/**
|
|
215
|
+
* Clamp `graphTraversalPageRankIterations` into a non-negative integer.
|
|
216
|
+
* Negative or non-finite values fall back to 0 (disable refinement) so
|
|
217
|
+
* misconfiguration cannot stall recall in an unbounded loop.
|
|
218
|
+
*/
|
|
219
|
+
declare function clampPageRankIterations(raw: unknown): number;
|
|
220
|
+
/**
|
|
221
|
+
* PageRank-style refinement on top of the BFS activation map.
|
|
222
|
+
*
|
|
223
|
+
* Each iteration redistributes a fraction of every node's score along
|
|
224
|
+
* its outgoing edges, scaled by edge confidence. Confidence below
|
|
225
|
+
* `floor` is filtered out before redistribution, mirroring the BFS
|
|
226
|
+
* pruning rule. Mutates `scores` in place.
|
|
227
|
+
*
|
|
228
|
+
* Exported for tests; in production, call sites pass the same adjacency
|
|
229
|
+
* map already used by BFS so behavior stays consistent.
|
|
230
|
+
*/
|
|
231
|
+
declare function applyPageRankRefinement(scores: Map<string, number>, adj: Map<string, GraphEdge[]>, opts: {
|
|
232
|
+
iterations: number;
|
|
233
|
+
floor: number;
|
|
234
|
+
damping: number;
|
|
235
|
+
}): void;
|
|
138
236
|
/**
|
|
139
237
|
* Lateral inhibition (Synapse-inspired).
|
|
140
238
|
*
|
|
@@ -154,4 +252,4 @@ declare function applyLateralInhibition(scores: Map<string, number>, opts: {
|
|
|
154
252
|
topM: number;
|
|
155
253
|
}): Map<string, number>;
|
|
156
254
|
|
|
157
|
-
export { CAUSAL_PHRASES, type GraphConfig, type GraphEdge, type GraphHealthFileStats, type GraphHealthReport, GraphIndex, type GraphType, analyzeGraphHealth, appendEdge, applyLateralInhibition, detectCausalPhrase, ensureGraphsDir, graphFilePath, graphsDir, readAllEdges, readEdges };
|
|
255
|
+
export { CAUSAL_PHRASES, DEFAULT_GRAPH_TRAVERSAL_CONFIDENCE_FLOOR, DEFAULT_GRAPH_TRAVERSAL_PAGERANK_ITERATIONS, type GraphConfig, type GraphEdge, type GraphHealthFileStats, type GraphHealthReport, GraphIndex, type GraphType, analyzeGraphHealth, appendEdge, applyLateralInhibition, applyPageRankRefinement, clampConfidenceFloor, clampPageRankIterations, detectCausalPhrase, ensureGraphsDir, graphFilePath, graphsDir, readAllEdges, readEdges, readEdgesStrict, withGraphWriteLock };
|
package/dist/graph.js
CHANGED
|
@@ -1,27 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CAUSAL_PHRASES,
|
|
3
|
+
DEFAULT_GRAPH_TRAVERSAL_CONFIDENCE_FLOOR,
|
|
4
|
+
DEFAULT_GRAPH_TRAVERSAL_PAGERANK_ITERATIONS,
|
|
3
5
|
GraphIndex,
|
|
4
6
|
analyzeGraphHealth,
|
|
5
7
|
appendEdge,
|
|
6
8
|
applyLateralInhibition,
|
|
9
|
+
applyPageRankRefinement,
|
|
10
|
+
clampConfidenceFloor,
|
|
11
|
+
clampPageRankIterations,
|
|
7
12
|
detectCausalPhrase,
|
|
8
13
|
ensureGraphsDir,
|
|
9
14
|
graphFilePath,
|
|
10
15
|
graphsDir,
|
|
11
16
|
readAllEdges,
|
|
12
|
-
readEdges
|
|
13
|
-
|
|
17
|
+
readEdges,
|
|
18
|
+
readEdgesStrict,
|
|
19
|
+
withGraphWriteLock
|
|
20
|
+
} from "./chunk-RK2Y4XOM.js";
|
|
21
|
+
import "./chunk-2LSZVONP.js";
|
|
22
|
+
import "./chunk-WIICJPET.js";
|
|
23
|
+
import "./chunk-PZ5AY32C.js";
|
|
14
24
|
export {
|
|
15
25
|
CAUSAL_PHRASES,
|
|
26
|
+
DEFAULT_GRAPH_TRAVERSAL_CONFIDENCE_FLOOR,
|
|
27
|
+
DEFAULT_GRAPH_TRAVERSAL_PAGERANK_ITERATIONS,
|
|
16
28
|
GraphIndex,
|
|
17
29
|
analyzeGraphHealth,
|
|
18
30
|
appendEdge,
|
|
19
31
|
applyLateralInhibition,
|
|
32
|
+
applyPageRankRefinement,
|
|
33
|
+
clampConfidenceFloor,
|
|
34
|
+
clampPageRankIterations,
|
|
20
35
|
detectCausalPhrase,
|
|
21
36
|
ensureGraphsDir,
|
|
22
37
|
graphFilePath,
|
|
23
38
|
graphsDir,
|
|
24
39
|
readAllEdges,
|
|
25
|
-
readEdges
|
|
40
|
+
readEdges,
|
|
41
|
+
readEdgesStrict,
|
|
42
|
+
withGraphWriteLock
|
|
26
43
|
};
|
|
27
44
|
//# sourceMappingURL=graph.js.map
|
package/dist/himem.js
CHANGED
package/dist/hygiene.js
CHANGED