@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.
Files changed (489) hide show
  1. package/dist/abort-error.js +1 -0
  2. package/dist/abstraction-nodes.js +1 -0
  3. package/dist/access-audit.js +1 -0
  4. package/dist/access-cli.js +72 -47
  5. package/dist/access-cli.js.map +1 -1
  6. package/dist/access-http.d.ts +50 -5
  7. package/dist/access-http.js +39 -16
  8. package/dist/access-idempotency.js +1 -0
  9. package/dist/access-mcp.d.ts +10 -5
  10. package/dist/access-mcp.js +38 -14
  11. package/dist/access-schema.d.ts +133 -13
  12. package/dist/access-schema.js +20 -1
  13. package/dist/access-service-CtXFnprR.d.ts +2033 -0
  14. package/dist/access-service.d.ts +11 -6
  15. package/dist/access-service.js +40 -15
  16. package/dist/active-memory-bridge.js +1 -0
  17. package/dist/active-recall.js +1 -0
  18. package/dist/active-recall.js.map +1 -1
  19. package/dist/behavior-learner.js +1 -0
  20. package/dist/behavior-learner.js.map +1 -1
  21. package/dist/behavior-signals.js +1 -0
  22. package/dist/bootstrap.d.ts +6 -4
  23. package/dist/bootstrap.js +1 -0
  24. package/dist/boxes.js +1 -0
  25. package/dist/briefing.d.ts +9 -5
  26. package/dist/briefing.js +10 -7
  27. package/dist/buffer-surprise-report.js +1 -0
  28. package/dist/buffer-surprise.js +1 -0
  29. package/dist/buffer.d.ts +1 -1
  30. package/dist/buffer.js +1 -0
  31. package/dist/calibration.d.ts +8 -1
  32. package/dist/calibration.js +10 -2
  33. package/dist/calibration.js.map +1 -1
  34. package/dist/capsule-cli.d.ts +137 -0
  35. package/dist/capsule-cli.js +34 -0
  36. package/dist/capsule-crypto-5CYAGVC5.js +18 -0
  37. package/dist/capsule-export-NZQPOTQ4.js +17 -0
  38. package/dist/capsule-export-NZQPOTQ4.js.map +1 -0
  39. package/dist/capsule-import-SDCUXLEV.js +16 -0
  40. package/dist/capsule-import-SDCUXLEV.js.map +1 -0
  41. package/dist/capsule-merge-DI7PNQ2H.js +189 -0
  42. package/dist/capsule-merge-DI7PNQ2H.js.map +1 -0
  43. package/dist/causal-behavior.js +1 -0
  44. package/dist/causal-behavior.js.map +1 -1
  45. package/dist/causal-chain.js +1 -0
  46. package/dist/causal-consolidation.js +12 -9
  47. package/dist/causal-consolidation.js.map +1 -1
  48. package/dist/causal-retrieval.js +2 -1
  49. package/dist/causal-retrieval.js.map +1 -1
  50. package/dist/causal-trajectory-graph.js +4 -1
  51. package/dist/causal-trajectory-graph.js.map +1 -1
  52. package/dist/causal-trajectory.js +2 -1
  53. package/dist/chunk-2LSZVONP.js +67 -0
  54. package/dist/chunk-2LSZVONP.js.map +1 -0
  55. package/dist/chunk-32KD5IHZ.js +245 -0
  56. package/dist/chunk-32KD5IHZ.js.map +1 -0
  57. package/dist/chunk-3KIS4VGT.js +228 -0
  58. package/dist/chunk-3KIS4VGT.js.map +1 -0
  59. package/dist/chunk-3LCWFNVS.js +350 -0
  60. package/dist/chunk-3LCWFNVS.js.map +1 -0
  61. package/dist/chunk-43EKP2UK.js +26 -0
  62. package/dist/chunk-43EKP2UK.js.map +1 -0
  63. package/dist/chunk-457A4P3L.js +119 -0
  64. package/dist/chunk-457A4P3L.js.map +1 -0
  65. package/dist/{chunk-TMYO7B5P.js → chunk-47WOM4YW.js} +2 -2
  66. package/dist/{chunk-FVA6TGI3.js → chunk-52PDY6GD.js} +42 -2
  67. package/dist/chunk-52PDY6GD.js.map +1 -0
  68. package/dist/{chunk-ULYOGL6R.js → chunk-5HRY2WRF.js} +7 -3
  69. package/dist/chunk-5HRY2WRF.js.map +1 -0
  70. package/dist/{chunk-BOUYNNYD.js → chunk-67YLUWLG.js} +32 -13
  71. package/dist/{chunk-BOUYNNYD.js.map → chunk-67YLUWLG.js.map} +1 -1
  72. package/dist/chunk-6TBWYBJ3.js +236 -0
  73. package/dist/chunk-6TBWYBJ3.js.map +1 -0
  74. package/dist/chunk-74EMIVE4.js +329 -0
  75. package/dist/chunk-74EMIVE4.js.map +1 -0
  76. package/dist/chunk-74WWN7ZW.js +82 -0
  77. package/dist/chunk-74WWN7ZW.js.map +1 -0
  78. package/dist/chunk-A6XUJE5D.js +126 -0
  79. package/dist/chunk-A6XUJE5D.js.map +1 -0
  80. package/dist/{chunk-STGWEHYR.js → chunk-AEMBDV7M.js} +1187 -62
  81. package/dist/chunk-AEMBDV7M.js.map +1 -0
  82. package/dist/{chunk-PVICZTKG.js → chunk-AGZHRWPT.js} +5 -5
  83. package/dist/{chunk-PVICZTKG.js.map → chunk-AGZHRWPT.js.map} +1 -1
  84. package/dist/chunk-AJA46VX5.js +393 -0
  85. package/dist/chunk-AJA46VX5.js.map +1 -0
  86. package/dist/chunk-ASIQZXYO.js +277 -0
  87. package/dist/chunk-ASIQZXYO.js.map +1 -0
  88. package/dist/{chunk-DG6YMRDC.js → chunk-B2TL6GA2.js} +2 -2
  89. package/dist/chunk-BJMBJZ2Y.js +290 -0
  90. package/dist/chunk-BJMBJZ2Y.js.map +1 -0
  91. package/dist/chunk-BT7NVCML.js +79 -0
  92. package/dist/chunk-BT7NVCML.js.map +1 -0
  93. package/dist/chunk-CK5NTM2S.js +454 -0
  94. package/dist/chunk-CK5NTM2S.js.map +1 -0
  95. package/dist/{chunk-AYXIPSZO.js → chunk-CRU27Q4J.js} +2 -2
  96. package/dist/{chunk-UWB5LMWY.js → chunk-CUI2STX6.js} +526 -24
  97. package/dist/chunk-CUI2STX6.js.map +1 -0
  98. package/dist/{chunk-CUPFXL3J.js → chunk-EGEPUGN4.js} +4 -4
  99. package/dist/chunk-EGEPUGN4.js.map +1 -0
  100. package/dist/{chunk-3OGMS3PE.js → chunk-F5VQOQ2E.js} +3 -2
  101. package/dist/chunk-F5VQOQ2E.js.map +1 -0
  102. package/dist/chunk-FP2373TW.js +149 -0
  103. package/dist/chunk-FP2373TW.js.map +1 -0
  104. package/dist/{chunk-RBBWYEFJ.js → chunk-G2WADRQ3.js} +1 -1
  105. package/dist/chunk-G7D6GZ5J.js +48 -0
  106. package/dist/chunk-G7D6GZ5J.js.map +1 -0
  107. package/dist/chunk-H7XKCNR6.js +60 -0
  108. package/dist/chunk-H7XKCNR6.js.map +1 -0
  109. package/dist/{chunk-LOIMBRDE.js → chunk-HIRKCQGF.js} +1994 -412
  110. package/dist/chunk-HIRKCQGF.js.map +1 -0
  111. package/dist/chunk-IXEJRKCZ.js +18 -0
  112. package/dist/chunk-IXEJRKCZ.js.map +1 -0
  113. package/dist/chunk-IYY4MCPG.js +275 -0
  114. package/dist/chunk-IYY4MCPG.js.map +1 -0
  115. package/dist/{chunk-BECYBZLX.js → chunk-JWSENLQI.js} +502 -22
  116. package/dist/chunk-JWSENLQI.js.map +1 -0
  117. package/dist/chunk-KNKUID7G.js +183 -0
  118. package/dist/chunk-KNKUID7G.js.map +1 -0
  119. package/dist/chunk-L2IO2QPY.js +2036 -0
  120. package/dist/chunk-L2IO2QPY.js.map +1 -0
  121. package/dist/{chunk-ZAIM4TUE.js → chunk-LW2NMHDW.js} +46 -1
  122. package/dist/chunk-LW2NMHDW.js.map +1 -0
  123. package/dist/chunk-MDYG7VI7.js +48 -0
  124. package/dist/chunk-MDYG7VI7.js.map +1 -0
  125. package/dist/{chunk-VDX363PS.js → chunk-MUELDH4F.js} +10 -3
  126. package/dist/chunk-MUELDH4F.js.map +1 -0
  127. package/dist/chunk-MXC3AP5I.js +74 -0
  128. package/dist/chunk-MXC3AP5I.js.map +1 -0
  129. package/dist/chunk-NN3TS5BM.js +147 -0
  130. package/dist/chunk-NN3TS5BM.js.map +1 -0
  131. package/dist/{chunk-3YGHKTBF.js → chunk-NZS2BLTP.js} +963 -326
  132. package/dist/chunk-NZS2BLTP.js.map +1 -0
  133. package/dist/chunk-OA3L7BFR.js +183 -0
  134. package/dist/chunk-OA3L7BFR.js.map +1 -0
  135. package/dist/chunk-OZHRDTDX.js +240 -0
  136. package/dist/chunk-OZHRDTDX.js.map +1 -0
  137. package/dist/chunk-PCUKNJAZ.js +165 -0
  138. package/dist/chunk-PCUKNJAZ.js.map +1 -0
  139. package/dist/{chunk-6PFRXT4K.js → chunk-PFV5C235.js} +11 -6
  140. package/dist/chunk-PFV5C235.js.map +1 -0
  141. package/dist/chunk-PZ5AY32C.js +10 -0
  142. package/dist/chunk-PZ5AY32C.js.map +1 -0
  143. package/dist/{chunk-Y7R2XJ5Q.js → chunk-Q7FJ5ZHM.js} +6 -2
  144. package/dist/chunk-Q7FJ5ZHM.js.map +1 -0
  145. package/dist/{chunk-WCLICCGB.js → chunk-RILIVK4O.js} +91 -4
  146. package/dist/chunk-RILIVK4O.js.map +1 -0
  147. package/dist/{chunk-C2EFFULQ.js → chunk-RK2Y4XOM.js} +163 -20
  148. package/dist/chunk-RK2Y4XOM.js.map +1 -0
  149. package/dist/{chunk-TP4FZJIZ.js → chunk-RULE4VG5.js} +5 -1
  150. package/dist/chunk-RULE4VG5.js.map +1 -0
  151. package/dist/{chunk-PVPWZSSI.js → chunk-SMA4IMHV.js} +19 -3
  152. package/dist/chunk-SMA4IMHV.js.map +1 -0
  153. package/dist/{chunk-6YJHX2DL.js → chunk-TIFRGAKO.js} +242 -22
  154. package/dist/chunk-TIFRGAKO.js.map +1 -0
  155. package/dist/chunk-TUFG6VXY.js +875 -0
  156. package/dist/chunk-TUFG6VXY.js.map +1 -0
  157. package/dist/chunk-TYEOAFH3.js +251 -0
  158. package/dist/chunk-TYEOAFH3.js.map +1 -0
  159. package/dist/chunk-UKJAGEXH.js +260 -0
  160. package/dist/chunk-UKJAGEXH.js.map +1 -0
  161. package/dist/{chunk-KVBLZUKV.js → chunk-USFPPRAF.js} +93 -3
  162. package/dist/chunk-USFPPRAF.js.map +1 -0
  163. package/dist/{chunk-NBVAS5MT.js → chunk-V7TEH5I2.js} +6 -6
  164. package/dist/{chunk-GA5P7RST.js → chunk-VTJVUHRK.js} +22 -36
  165. package/dist/chunk-VTJVUHRK.js.map +1 -0
  166. package/dist/{chunk-SPI27QT6.js → chunk-W7WWT4FJ.js} +9 -4
  167. package/dist/chunk-W7WWT4FJ.js.map +1 -0
  168. package/dist/chunk-WIICJPET.js +45 -0
  169. package/dist/chunk-WIICJPET.js.map +1 -0
  170. package/dist/{chunk-VBVG2M5G.js → chunk-WPGJYVUH.js} +6 -2
  171. package/dist/chunk-WPGJYVUH.js.map +1 -0
  172. package/dist/{chunk-4HQS2HPX.js → chunk-WSZIHQBK.js} +29 -9
  173. package/dist/{chunk-4HQS2HPX.js.map → chunk-WSZIHQBK.js.map} +1 -1
  174. package/dist/{chunk-NZLQTHS5.js → chunk-WW3QQF4H.js} +4 -1
  175. package/dist/chunk-WW3QQF4H.js.map +1 -0
  176. package/dist/{chunk-DIXB44VE.js → chunk-X6VBWOVZ.js} +28 -13
  177. package/dist/chunk-X6VBWOVZ.js.map +1 -0
  178. package/dist/{chunk-XXVWLXSG.js → chunk-XQ4EJLUD.js} +64 -92
  179. package/dist/chunk-XQ4EJLUD.js.map +1 -0
  180. package/dist/{chunk-OC5OXUQ4.js → chunk-XRCYKJ3V.js} +780 -17
  181. package/dist/chunk-XRCYKJ3V.js.map +1 -0
  182. package/dist/{chunk-F5VP6YCB.js → chunk-Y4A6M3B6.js} +573 -156
  183. package/dist/chunk-Y4A6M3B6.js.map +1 -0
  184. package/dist/chunk-YNJHCGDT.js +309 -0
  185. package/dist/chunk-YNJHCGDT.js.map +1 -0
  186. package/dist/{chunk-L7IXWRYE.js → chunk-ZIBOQULP.js} +22 -13
  187. package/dist/chunk-ZIBOQULP.js.map +1 -0
  188. package/dist/{chunk-W6SL7OFG.js → chunk-ZTSE2ZJ6.js} +12 -2
  189. package/dist/{chunk-W6SL7OFG.js.map → chunk-ZTSE2ZJ6.js.map} +1 -1
  190. package/dist/chunking.js +1 -0
  191. package/dist/cipher-GVE2GQ5H.js +28 -0
  192. package/dist/cipher-GVE2GQ5H.js.map +1 -0
  193. package/dist/citations.js +1 -0
  194. package/dist/{cli-BkeRaYfk.d.ts → cli-lMql2FCr.d.ts} +26 -7
  195. package/dist/cli.d.ts +11 -6
  196. package/dist/cli.js +69 -34
  197. package/dist/codex-thread-key.js +1 -0
  198. package/dist/commitment-ledger.js +1 -0
  199. package/dist/compression-optimizer.js +1 -0
  200. package/dist/config.d.ts +2 -1
  201. package/dist/config.js +4 -1
  202. package/dist/connectors-cli-DFGtY2DB.d.ts +257 -0
  203. package/dist/connectors-cli.d.ts +2 -0
  204. package/dist/connectors-cli.js +22 -0
  205. package/dist/connectors-cli.js.map +1 -0
  206. package/dist/consolidation-operator.d.ts +65 -5
  207. package/dist/consolidation-operator.js +6 -1
  208. package/dist/consolidation-provenance-check.d.ts +1 -1
  209. package/dist/consolidation-provenance-check.js +3 -2
  210. package/dist/consolidation-undo.d.ts +1 -1
  211. package/dist/consolidation-undo.js +1 -0
  212. package/dist/consolidation-undo.js.map +1 -1
  213. package/dist/{contradiction-review-WIUBAR52.js → contradiction-review-5LTTVDQV.js} +2 -1
  214. package/dist/contradiction-review-5LTTVDQV.js.map +1 -0
  215. package/dist/{contradiction-scan-E3GJTI4F.js → contradiction-scan-3Z6YW7YA.js} +2 -1
  216. package/dist/{contradiction-scan-E3GJTI4F.js.map → contradiction-scan-3Z6YW7YA.js.map} +1 -1
  217. package/dist/cross-namespace-budget.js +1 -0
  218. package/dist/cue-anchors.js +1 -0
  219. package/dist/dashboard-runtime.js +1 -0
  220. package/dist/day-summary.js +1 -0
  221. package/dist/delinearize.js +1 -0
  222. package/dist/direct-answer-wiring.js +1 -0
  223. package/dist/direct-answer.js +1 -0
  224. package/dist/dreams-ledger-LR2NBAZE.js +286 -0
  225. package/dist/dreams-ledger-LR2NBAZE.js.map +1 -0
  226. package/dist/embedding-fallback.js +1 -0
  227. package/dist/engine-O6YWKQM3.js +28 -0
  228. package/dist/engine-O6YWKQM3.js.map +1 -0
  229. package/dist/entity-retrieval.d.ts +1 -1
  230. package/dist/entity-retrieval.js +10 -7
  231. package/dist/entity-schema.js +1 -0
  232. package/dist/evals.js +1 -0
  233. package/dist/evidence-pack.d.ts +16 -0
  234. package/dist/evidence-pack.js +8 -0
  235. package/dist/evidence-pack.js.map +1 -0
  236. package/dist/explicit-capture.d.ts +6 -4
  237. package/dist/explicit-capture.js +1 -0
  238. package/dist/extraction-judge-telemetry.js +1 -0
  239. package/dist/extraction-judge-training.js +1 -0
  240. package/dist/extraction-judge.js +1 -0
  241. package/dist/extraction.js +8 -7
  242. package/dist/fallback-llm.js +3 -2
  243. package/dist/first-start-migration-4MHQEOSD.js +263 -0
  244. package/dist/first-start-migration-4MHQEOSD.js.map +1 -0
  245. package/dist/forget-PLR6J5DN.js +69 -0
  246. package/dist/forget-PLR6J5DN.js.map +1 -0
  247. package/dist/framework-CyHYDcri.d.ts +153 -0
  248. package/dist/fs-utils-IRVUFB6G.js +30 -0
  249. package/dist/fs-utils-IRVUFB6G.js.map +1 -0
  250. package/dist/graph-dashboard-diff.js +1 -0
  251. package/dist/graph-dashboard-key.js +1 -0
  252. package/dist/graph-dashboard-parser.js +1 -0
  253. package/dist/graph-edge-decay-PWB63GRE.js +207 -0
  254. package/dist/graph-edge-decay-PWB63GRE.js.map +1 -0
  255. package/dist/graph-edge-reinforcement.d.ts +81 -0
  256. package/dist/graph-edge-reinforcement.js +24 -0
  257. package/dist/graph-edge-reinforcement.js.map +1 -0
  258. package/dist/graph-events.d.ts +87 -0
  259. package/dist/graph-events.js +14 -0
  260. package/dist/graph-events.js.map +1 -0
  261. package/dist/graph-recall.js +1 -0
  262. package/dist/graph-retrieval.js +1 -0
  263. package/dist/graph-snapshot.d.ts +112 -0
  264. package/dist/graph-snapshot.js +19 -0
  265. package/dist/graph-snapshot.js.map +1 -0
  266. package/dist/graph.d.ts +105 -7
  267. package/dist/graph.js +20 -3
  268. package/dist/harmonic-retrieval.js +1 -0
  269. package/dist/himem.js +1 -0
  270. package/dist/hygiene.js +1 -0
  271. package/dist/identity-continuity.js +1 -0
  272. package/dist/importance.js +1 -0
  273. package/dist/index.d.ts +574 -13
  274. package/dist/index.js +337 -69
  275. package/dist/index.js.map +1 -1
  276. package/dist/intent.js +1 -0
  277. package/dist/json-extract.js +1 -0
  278. package/dist/json-store.js +1 -0
  279. package/dist/kdf-7S6RWKLZ.js +26 -0
  280. package/dist/kdf-7S6RWKLZ.js.map +1 -0
  281. package/dist/legacy-hook-compat.js +1 -0
  282. package/dist/legacy-hook-compat.js.map +1 -1
  283. package/dist/lifecycle.js +1 -0
  284. package/dist/live-connectors-runner.d.ts +48 -0
  285. package/dist/live-connectors-runner.js +17 -0
  286. package/dist/live-connectors-runner.js.map +1 -0
  287. package/dist/local-llm.js +1 -0
  288. package/dist/logger.js +1 -0
  289. package/dist/memory-action-policy.js +1 -0
  290. package/dist/memory-cache.d.ts +2 -1
  291. package/dist/memory-cache.js +4 -1
  292. package/dist/memory-governance-JZHZDOLN.js +37 -0
  293. package/dist/memory-governance-JZHZDOLN.js.map +1 -0
  294. package/dist/memory-lifecycle-ledger-utils.d.ts +2 -1
  295. package/dist/memory-lifecycle-ledger-utils.js +4 -1
  296. package/dist/memory-projection-format.js +1 -0
  297. package/dist/{memory-projection-store-DeSXPh1j.d.ts → memory-projection-store-CY8TU40w.d.ts} +2 -1
  298. package/dist/memory-projection-store.d.ts +1 -1
  299. package/dist/memory-projection-store.js +2 -1
  300. package/dist/memory-worth-bench.js +1 -0
  301. package/dist/memory-worth-bench.js.map +1 -1
  302. package/dist/memory-worth-filter.js +1 -0
  303. package/dist/memory-worth-outcomes.d.ts +1 -1
  304. package/dist/memory-worth-outcomes.js +1 -0
  305. package/dist/memory-worth.js +1 -0
  306. package/dist/metadata-FC3XPDRQ.js +21 -0
  307. package/dist/metadata-FC3XPDRQ.js.map +1 -0
  308. package/dist/migrate-from-identity-anchor-TTEDEJGX.js +8 -0
  309. package/dist/migrate-from-identity-anchor-TTEDEJGX.js.map +1 -0
  310. package/dist/model-registry.js +1 -0
  311. package/dist/models-json.js +1 -0
  312. package/dist/native-knowledge.js +1 -0
  313. package/dist/negative.js +1 -0
  314. package/dist/objective-state-writers.js +1 -0
  315. package/dist/objective-state-writers.js.map +1 -1
  316. package/dist/objective-state.js +1 -0
  317. package/dist/openai-chat-compat.js +1 -0
  318. package/dist/operator-toolkit.d.ts +46 -2
  319. package/dist/operator-toolkit.js +29 -17
  320. package/dist/opik-exporter.js +1 -0
  321. package/dist/opik-exporter.js.map +1 -1
  322. package/dist/{orchestrator-CmJ-NTdJ.d.ts → orchestrator-ChkesB8U.d.ts} +177 -13
  323. package/dist/orchestrator.d.ts +6 -4
  324. package/dist/orchestrator.js +57 -41
  325. package/dist/page-versioning.js +1 -0
  326. package/dist/path-RMTY5Y5A.js +9 -0
  327. package/dist/path-RMTY5Y5A.js.map +1 -0
  328. package/dist/patterns-cli.d.ts +160 -0
  329. package/dist/patterns-cli.js +29 -0
  330. package/dist/patterns-cli.js.map +1 -0
  331. package/dist/peers-6OSQ3NK6.js +44 -0
  332. package/dist/peers-6OSQ3NK6.js.map +1 -0
  333. package/dist/plugin-id.js +1 -0
  334. package/dist/policy-runtime.js +1 -0
  335. package/dist/{port-BADbLZU5.d.ts → port-hqGnoStS.d.ts} +6 -0
  336. package/dist/profiling.js +1 -0
  337. package/dist/purge-6ATBGT77.js +205 -0
  338. package/dist/purge-6ATBGT77.js.map +1 -0
  339. package/dist/qmd-recall-cache.d.ts +1 -1
  340. package/dist/qmd-recall-cache.js +1 -0
  341. package/dist/qmd.d.ts +2 -1
  342. package/dist/qmd.js +4 -3
  343. package/dist/reasoning-trace-recall.js +1 -0
  344. package/dist/reasoning-trace-types.js +1 -0
  345. package/dist/recall-audit-anomaly.js +1 -0
  346. package/dist/recall-audit.js +1 -0
  347. package/dist/recall-disclosure-escalation.d.ts +84 -0
  348. package/dist/recall-disclosure-escalation.js +14 -0
  349. package/dist/recall-disclosure-escalation.js.map +1 -0
  350. package/dist/recall-explain-renderer.js +4 -1
  351. package/dist/recall-mmr.js +1 -0
  352. package/dist/recall-qos.js +1 -0
  353. package/dist/recall-query-policy.js +1 -0
  354. package/dist/recall-state.d.ts +7 -0
  355. package/dist/recall-state.js +2 -1
  356. package/dist/recall-tag-filter.d.ts +56 -0
  357. package/dist/recall-tag-filter.js +14 -0
  358. package/dist/recall-tag-filter.js.map +1 -0
  359. package/dist/recall-tokenization.js +1 -0
  360. package/dist/recall-xray-cli.d.ts +9 -2
  361. package/dist/recall-xray-cli.js +9 -4
  362. package/dist/recall-xray-renderer.js +4 -1
  363. package/dist/recall-xray.d.ts +116 -2
  364. package/dist/recall-xray.js +9 -3
  365. package/dist/reconstruct.js +1 -0
  366. package/dist/release-changelog.js +2 -0
  367. package/dist/release-changelog.js.map +1 -1
  368. package/dist/relevance.js +1 -0
  369. package/dist/rerank.js +1 -0
  370. package/dist/{resolution-QBTDHTG7.js → resolution-YGIBORXI.js} +2 -1
  371. package/dist/{resolution-QBTDHTG7.js.map → resolution-YGIBORXI.js.map} +1 -1
  372. package/dist/resolve-auth-token.d.ts +51 -0
  373. package/dist/resolve-auth-token.js +12 -0
  374. package/dist/resolve-auth-token.js.map +1 -0
  375. package/dist/resolve-provider-secret.d.ts +9 -1
  376. package/dist/resolve-provider-secret.js +4 -1
  377. package/dist/resume-bundles.js +4 -3
  378. package/dist/retrieval-agents.d.ts +1 -1
  379. package/dist/retrieval-agents.js +1 -0
  380. package/dist/retrieval-tiers.js +1 -0
  381. package/dist/retrieval.js +1 -0
  382. package/dist/sanitize.js +1 -0
  383. package/dist/schemas.d.ts +15 -2
  384. package/dist/schemas.js +2 -1
  385. package/dist/sdk-compat.js +1 -0
  386. package/dist/sdk-compat.js.map +1 -1
  387. package/dist/secure-store-4R2GSO7S.js +156 -0
  388. package/dist/secure-store-4R2GSO7S.js.map +1 -0
  389. package/dist/semantic-chunking.js +1 -0
  390. package/dist/{semantic-consolidation-CxJU6MJk.d.ts → semantic-consolidation-ByBXb-sf.d.ts} +3 -3
  391. package/dist/semantic-consolidation.d.ts +2 -2
  392. package/dist/semantic-consolidation.js +12 -7
  393. package/dist/semantic-rule-promotion.d.ts +1 -1
  394. package/dist/semantic-rule-promotion.js +10 -7
  395. package/dist/semantic-rule-verifier.d.ts +1 -1
  396. package/dist/semantic-rule-verifier.js +10 -7
  397. package/dist/session-integrity.js +1 -0
  398. package/dist/session-observer-bands.js +1 -0
  399. package/dist/session-observer-state.js +1 -0
  400. package/dist/session-toggles.js +2 -0
  401. package/dist/session-toggles.js.map +1 -1
  402. package/dist/signal.js +1 -0
  403. package/dist/skills-registry.js +2 -0
  404. package/dist/skills-registry.js.map +1 -1
  405. package/dist/source-attribution.js +1 -0
  406. package/dist/state-NCHQ4TRG.js +8 -0
  407. package/dist/state-NCHQ4TRG.js.map +1 -0
  408. package/dist/state-store-3EH7HYIN.js +16 -0
  409. package/dist/state-store-3EH7HYIN.js.map +1 -0
  410. package/dist/storage.d.ts +76 -2
  411. package/dist/storage.js +9 -6
  412. package/dist/store-contract.js +1 -0
  413. package/dist/summarizer.js +5 -4
  414. package/dist/summary-snapshot.js +1 -0
  415. package/dist/temporal-index.js +1 -0
  416. package/dist/temporal-supersession.d.ts +1 -1
  417. package/dist/temporal-supersession.js +2 -1
  418. package/dist/temporal-validity.d.ts +52 -0
  419. package/dist/temporal-validity.js +14 -0
  420. package/dist/temporal-validity.js.map +1 -0
  421. package/dist/threading.js +1 -0
  422. package/dist/tier-migration.d.ts +2 -2
  423. package/dist/tier-migration.js +1 -0
  424. package/dist/tier-routing.js +1 -0
  425. package/dist/tier-stats-62ZVDFKS.js +152 -0
  426. package/dist/tier-stats-62ZVDFKS.js.map +1 -0
  427. package/dist/tmt.js +1 -0
  428. package/dist/tokens.js +1 -0
  429. package/dist/topics.js +1 -0
  430. package/dist/trace-C5ETWBEF.js +290 -0
  431. package/dist/trace-C5ETWBEF.js.map +1 -0
  432. package/dist/transcript.js +1 -0
  433. package/dist/trust-zones.js +1 -0
  434. package/dist/tui-RI7P6PBS.js +13 -0
  435. package/dist/tui-RI7P6PBS.js.map +1 -0
  436. package/dist/types-V3FJ26TF.js +30 -0
  437. package/dist/types-V3FJ26TF.js.map +1 -0
  438. package/dist/types.d.ts +634 -9
  439. package/dist/types.js +10 -3
  440. package/dist/utility-learner.js +1 -0
  441. package/dist/utility-runtime.js +1 -0
  442. package/dist/utility-telemetry.js +1 -0
  443. package/dist/verified-recall.js +10 -7
  444. package/dist/version-utils.js +1 -0
  445. package/dist/whitespace.js +1 -0
  446. package/dist/work-product-ledger.js +1 -0
  447. package/package.json +7 -3
  448. package/scripts/ensure-better-sqlite3.mjs +124 -0
  449. package/dist/access-service-Br8ZydTK.d.ts +0 -827
  450. package/dist/chunk-3OGMS3PE.js.map +0 -1
  451. package/dist/chunk-3YGHKTBF.js.map +0 -1
  452. package/dist/chunk-6PFRXT4K.js.map +0 -1
  453. package/dist/chunk-6YJHX2DL.js.map +0 -1
  454. package/dist/chunk-BECYBZLX.js.map +0 -1
  455. package/dist/chunk-C2EFFULQ.js.map +0 -1
  456. package/dist/chunk-CUPFXL3J.js.map +0 -1
  457. package/dist/chunk-DIXB44VE.js.map +0 -1
  458. package/dist/chunk-F5VP6YCB.js.map +0 -1
  459. package/dist/chunk-FVA6TGI3.js.map +0 -1
  460. package/dist/chunk-GA5P7RST.js.map +0 -1
  461. package/dist/chunk-KVBLZUKV.js.map +0 -1
  462. package/dist/chunk-L7IXWRYE.js.map +0 -1
  463. package/dist/chunk-LOIMBRDE.js.map +0 -1
  464. package/dist/chunk-LTCGGW2D.js +0 -14
  465. package/dist/chunk-LTCGGW2D.js.map +0 -1
  466. package/dist/chunk-NZLQTHS5.js.map +0 -1
  467. package/dist/chunk-OC5OXUQ4.js.map +0 -1
  468. package/dist/chunk-PVPWZSSI.js.map +0 -1
  469. package/dist/chunk-SPI27QT6.js.map +0 -1
  470. package/dist/chunk-STGWEHYR.js.map +0 -1
  471. package/dist/chunk-TP4FZJIZ.js.map +0 -1
  472. package/dist/chunk-ULYOGL6R.js.map +0 -1
  473. package/dist/chunk-UWB5LMWY.js.map +0 -1
  474. package/dist/chunk-VBVG2M5G.js.map +0 -1
  475. package/dist/chunk-VDX363PS.js.map +0 -1
  476. package/dist/chunk-WCLICCGB.js.map +0 -1
  477. package/dist/chunk-X6GF3FX2.js +0 -26
  478. package/dist/chunk-X6GF3FX2.js.map +0 -1
  479. package/dist/chunk-XXVWLXSG.js.map +0 -1
  480. package/dist/chunk-Y7R2XJ5Q.js.map +0 -1
  481. package/dist/chunk-ZAIM4TUE.js.map +0 -1
  482. package/dist/engine-72LSIWQP.js +0 -23
  483. /package/dist/{contradiction-review-WIUBAR52.js.map → capsule-cli.js.map} +0 -0
  484. /package/dist/{engine-72LSIWQP.js.map → capsule-crypto-5CYAGVC5.js.map} +0 -0
  485. /package/dist/{chunk-TMYO7B5P.js.map → chunk-47WOM4YW.js.map} +0 -0
  486. /package/dist/{chunk-DG6YMRDC.js.map → chunk-B2TL6GA2.js.map} +0 -0
  487. /package/dist/{chunk-AYXIPSZO.js.map → chunk-CRU27Q4J.js.map} +0 -0
  488. /package/dist/{chunk-RBBWYEFJ.js.map → chunk-G2WADRQ3.js.map} +0 -0
  489. /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":[]}
@@ -2,6 +2,7 @@ import {
2
2
  runGraphRecall
3
3
  } from "./chunk-DGVM5SFL.js";
4
4
  import "./chunk-64NJRYU2.js";
5
+ import "./chunk-PZ5AY32C.js";
5
6
  export {
6
7
  runGraphRecall
7
8
  };
@@ -8,6 +8,7 @@ import {
8
8
  isNodeType,
9
9
  queryGraph
10
10
  } from "./chunk-64NJRYU2.js";
11
+ import "./chunk-PZ5AY32C.js";
11
12
  export {
12
13
  DEFAULT_PPR_DAMPING,
13
14
  DEFAULT_PPR_ITERATIONS,
@@ -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 is corrupt (fail-open).
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
- * @param seeds - initial memory paths to expand from (e.g. QMD top results)
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): Promise<Array<{
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
- } from "./chunk-C2EFFULQ.js";
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
@@ -7,6 +7,7 @@ import "./chunk-NGAVDO7E.js";
7
7
  import "./chunk-DT5TVLJE.js";
8
8
  import "./chunk-DGXUHMOV.js";
9
9
  import "./chunk-LPSF4OQH.js";
10
+ import "./chunk-PZ5AY32C.js";
10
11
  export {
11
12
  searchHarmonicRetrieval
12
13
  };
package/dist/himem.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  classifyMemoryKind
3
3
  } from "./chunk-YAZNBMNF.js";
4
+ import "./chunk-PZ5AY32C.js";
4
5
  export {
5
6
  classifyMemoryKind
6
7
  };
package/dist/hygiene.js CHANGED
@@ -2,6 +2,7 @@ import {
2
2
  lintWorkspaceFiles,
3
3
  rotateMarkdownFileToArchive
4
4
  } from "./chunk-DM2T26WE.js";
5
+ import "./chunk-PZ5AY32C.js";
5
6
  export {
6
7
  lintWorkspaceFiles,
7
8
  rotateMarkdownFileToArchive
@@ -7,6 +7,7 @@ import {
7
7
  serializeContinuityIncident,
8
8
  upsertContinuityLoopInMarkdown
9
9
  } from "./chunk-QSVPYQPG.js";
10
+ import "./chunk-PZ5AY32C.js";
10
11
  export {
11
12
  closeContinuityIncidentRecord,
12
13
  createContinuityIncidentRecord,
@@ -4,6 +4,7 @@ import {
4
4
  rescoreMemoryImportance,
5
5
  scoreImportance
6
6
  } from "./chunk-JXS5PDQ7.js";
7
+ import "./chunk-PZ5AY32C.js";
7
8
  export {
8
9
  importanceLevel,
9
10
  isAboveImportanceThreshold,