@remnic/core 9.3.703 → 9.3.705

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 (324) hide show
  1. package/dist/access-boundary.d.ts +8 -8
  2. package/dist/access-boundary.js +27 -27
  3. package/dist/access-cli.js +57 -56
  4. package/dist/access-cli.js.map +1 -1
  5. package/dist/access-http.d.ts +7 -7
  6. package/dist/access-http.js +32 -31
  7. package/dist/access-mcp.d.ts +7 -7
  8. package/dist/access-mcp.js +31 -30
  9. package/dist/access-operations-batch.d.ts +2 -0
  10. package/dist/access-operations-batch.js +120 -0
  11. package/dist/access-operations.d.ts +8 -7
  12. package/dist/access-operations.js +30 -29
  13. package/dist/access-schema.js +3 -3
  14. package/dist/{access-service-COCzhgEL.d.ts → access-service-C8hc8N2i.d.ts} +4 -4
  15. package/dist/access-service.d.ts +7 -7
  16. package/dist/access-service.js +26 -26
  17. package/dist/access-surface-catalog.d.ts +7 -7
  18. package/dist/access-surface-catalog.js +57 -54
  19. package/dist/access-surface-catalog.js.map +1 -1
  20. package/dist/action-confidence.d.ts +3 -3
  21. package/dist/active-memory-bridge.d.ts +3 -3
  22. package/dist/active-recall.d.ts +3 -3
  23. package/dist/{auto-sync-3AAP25FV.js → auto-sync-24NNS3GU.js} +3 -3
  24. package/dist/behavior-learner.d.ts +3 -3
  25. package/dist/behavior-signals.d.ts +3 -3
  26. package/dist/bootstrap.d.ts +6 -6
  27. package/dist/briefing.d.ts +3 -3
  28. package/dist/briefing.js +5 -5
  29. package/dist/buffer-surprise-report.d.ts +3 -3
  30. package/dist/buffer.d.ts +3 -3
  31. package/dist/bulk-import/index.d.ts +4 -4
  32. package/dist/calibration.d.ts +3 -3
  33. package/dist/capabilities.d.ts +3 -3
  34. package/dist/{capsule-crypto-YO5QJ6L3.js → capsule-crypto-7FJQINUR.js} +2 -2
  35. package/dist/{catalog-DxCzhjE6.d.ts → catalog-CAeU0e1C.d.ts} +1 -1
  36. package/dist/causal-behavior.d.ts +3 -3
  37. package/dist/causal-behavior.js +5 -5
  38. package/dist/causal-chain.js +3 -3
  39. package/dist/causal-consolidation.d.ts +3 -3
  40. package/dist/causal-consolidation.js +9 -9
  41. package/dist/causal-retrieval.js +3 -3
  42. package/dist/causal-trajectory-graph.js +2 -2
  43. package/dist/causal-trajectory.js +1 -1
  44. package/dist/{chunk-BXLOS5AJ.js → chunk-2NLLXCJG.js} +2 -2
  45. package/dist/{chunk-EOOVJK2U.js → chunk-2SYPOX45.js} +10 -10
  46. package/dist/{chunk-64XXOQRW.js → chunk-47LPHBIP.js} +2 -2
  47. package/dist/{chunk-QGJAGC2J.js → chunk-5DTWZ66X.js} +2 -2
  48. package/dist/chunk-5DTWZ66X.js.map +1 -0
  49. package/dist/{chunk-6VVP6NK7.js → chunk-6GJ2WQRK.js} +2 -2
  50. package/dist/{chunk-4NFVPDIL.js → chunk-74MYJSKB.js} +5 -5
  51. package/dist/{chunk-X5J3JZR3.js → chunk-773DPI6T.js} +6 -6
  52. package/dist/{chunk-FVI5B7DE.js → chunk-7ARKLLCV.js} +6 -6
  53. package/dist/{chunk-ZCEI242W.js → chunk-7L54YZUI.js} +411 -401
  54. package/dist/chunk-7L54YZUI.js.map +1 -0
  55. package/dist/{chunk-AGNBY3VG.js → chunk-APJQ6UEA.js} +4 -4
  56. package/dist/{chunk-CI7RKSRE.js → chunk-AQEJKOKI.js} +2 -1
  57. package/dist/{chunk-DL6H3D7S.js → chunk-ARV3AUOM.js} +2 -2
  58. package/dist/{chunk-JTKFZMZ7.js → chunk-BKBSE3BU.js} +3 -3
  59. package/dist/{chunk-TGAHHCB6.js → chunk-BMKGG7GC.js} +2 -2
  60. package/dist/{chunk-GFIARMA7.js → chunk-C2EHWNP2.js} +13 -13
  61. package/dist/{chunk-VKJHM6PL.js → chunk-DGTDRIUO.js} +5 -5
  62. package/dist/chunk-GI3MTYDU.js +1303 -0
  63. package/dist/chunk-GI3MTYDU.js.map +1 -0
  64. package/dist/{chunk-5VXVXJH6.js → chunk-GT4VBKM4.js} +59 -5
  65. package/dist/chunk-GT4VBKM4.js.map +1 -0
  66. package/dist/{chunk-KC6TCAWV.js → chunk-HEHPVBWA.js} +6 -6
  67. package/dist/{chunk-MDJURR27.js → chunk-HW5EF6LV.js} +2 -2
  68. package/dist/{chunk-BMFZLLNI.js → chunk-ICP53SKG.js} +2 -2
  69. package/dist/{chunk-YOI3ELXF.js → chunk-IF362TF6.js} +2 -2
  70. package/dist/{chunk-ABCGDW3A.js → chunk-IFR23TC5.js} +4 -4
  71. package/dist/{chunk-OXEAMU42.js → chunk-JHAYR2JY.js} +33 -33
  72. package/dist/{chunk-CZJ6QSKG.js → chunk-JZCKDTAS.js} +4 -4
  73. package/dist/{chunk-CZJ6QSKG.js.map → chunk-JZCKDTAS.js.map} +1 -1
  74. package/dist/{chunk-VPAFWWCL.js → chunk-K22IJO4R.js} +2 -2
  75. package/dist/{chunk-JMA4RYRN.js → chunk-KFU2SKDD.js} +2 -2
  76. package/dist/{chunk-VDX2J7OX.js → chunk-KQAFEZQX.js} +2 -2
  77. package/dist/{chunk-AMNLZ6SF.js → chunk-KZMMAVR2.js} +2 -2
  78. package/dist/{chunk-EZR35XHX.js → chunk-LY4FJLPT.js} +2 -2
  79. package/dist/{chunk-NUIJEGVD.js → chunk-M5MWSG4S.js} +7 -7
  80. package/dist/{chunk-Z7XEIAV4.js → chunk-MNH2OODZ.js} +2 -2
  81. package/dist/{chunk-MXEWQKM7.js → chunk-NFGJBEPT.js} +6 -6
  82. package/dist/{chunk-Q4O3ET6F.js → chunk-NUWZFSKC.js} +2 -2
  83. package/dist/{chunk-6TAETM63.js → chunk-OM6ETLLH.js} +2 -2
  84. package/dist/{chunk-QQW2LIEA.js → chunk-OMSTU233.js} +7 -7
  85. package/dist/{chunk-XGMCUY5P.js → chunk-S3WYRPSA.js} +64 -64
  86. package/dist/{chunk-QIMFOCSH.js → chunk-S5APSA3U.js} +2 -2
  87. package/dist/{chunk-IX72AAMZ.js → chunk-SY6WG6DB.js} +2 -2
  88. package/dist/{chunk-MBUM2Y3L.js → chunk-ULVM34NP.js} +5 -5
  89. package/dist/{chunk-DQEMWVMT.js → chunk-X7Y7WX73.js} +1 -1
  90. package/dist/{chunk-7WWURLG6.js → chunk-XPOOY35N.js} +2 -2
  91. package/dist/{chunk-EYJD6KIO.js → chunk-Y4PMATX2.js} +6 -6
  92. package/dist/{chunk-KF74X62T.js → chunk-YGKUAX2B.js} +4 -4
  93. package/dist/{chunk-YN4ZT4CW.js → chunk-YI7RZO7Y.js} +1 -1
  94. package/dist/{cli-BM4xQPp4.d.ts → cli-ChE0XlJY.d.ts} +6 -6
  95. package/dist/cli.d.ts +9 -9
  96. package/dist/cli.js +55 -54
  97. package/dist/compounding/engine.d.ts +3 -3
  98. package/dist/compounding/engine.js +5 -5
  99. package/dist/compounding/preference-consolidator.d.ts +3 -3
  100. package/dist/compression-optimizer.d.ts +3 -3
  101. package/dist/config.d.ts +3 -3
  102. package/dist/connectors/codex-materialize-runner.d.ts +3 -3
  103. package/dist/connectors/codex-materialize-runner.js +5 -5
  104. package/dist/connectors/codex-materialize.d.ts +3 -3
  105. package/dist/connectors/index.d.ts +3 -3
  106. package/dist/connectors/index.js +5 -5
  107. package/dist/consolidation-provenance-check.d.ts +3 -3
  108. package/dist/consolidation-undo.d.ts +3 -3
  109. package/dist/contradiction/index.d.ts +3 -3
  110. package/dist/conversation-index/backend.d.ts +3 -3
  111. package/dist/conversation-index/chunker.d.ts +3 -3
  112. package/dist/conversation-index/faiss-adapter.d.ts +3 -3
  113. package/dist/conversation-index/indexer.d.ts +3 -3
  114. package/dist/conversation-index/search.d.ts +3 -3
  115. package/dist/day-summary.d.ts +3 -3
  116. package/dist/delinearize.d.ts +3 -3
  117. package/dist/direct-answer-wiring.d.ts +3 -3
  118. package/dist/direct-answer.d.ts +3 -3
  119. package/dist/embedding-fallback.d.ts +3 -3
  120. package/dist/enrichment/index.d.ts +3 -3
  121. package/dist/entity-retrieval.d.ts +3 -3
  122. package/dist/entity-retrieval.js +5 -5
  123. package/dist/entity-schema.d.ts +3 -3
  124. package/dist/explicit-capture.d.ts +6 -6
  125. package/dist/extraction-faithfulness.d.ts +3 -3
  126. package/dist/extraction-judge-telemetry.d.ts +3 -3
  127. package/dist/extraction-judge-training.d.ts +3 -3
  128. package/dist/extraction-judge.d.ts +3 -3
  129. package/dist/extraction.d.ts +3 -3
  130. package/dist/extraction.js +2 -2
  131. package/dist/fallback-llm.d.ts +3 -3
  132. package/dist/{graph-edge-decay-D7OESCBR.js → graph-edge-decay-JLOF3YW4.js} +3 -3
  133. package/dist/graph-snapshot.js +3 -3
  134. package/dist/graph.js +2 -2
  135. package/dist/identity-continuity.d.ts +3 -3
  136. package/dist/importance.d.ts +3 -3
  137. package/dist/importers/index.d.ts +2 -2
  138. package/dist/index.d.ts +14 -29
  139. package/dist/index.js +100 -99
  140. package/dist/index.js.map +1 -1
  141. package/dist/intent.d.ts +3 -3
  142. package/dist/lcm/archive.d.ts +1 -1
  143. package/dist/lcm/archive.js +2 -2
  144. package/dist/lcm/engine.d.ts +3 -3
  145. package/dist/lcm/engine.js +5 -5
  146. package/dist/lcm/index.d.ts +3 -3
  147. package/dist/lcm/index.js +7 -7
  148. package/dist/lcm/queue.d.ts +1 -1
  149. package/dist/lcm/recall.d.ts +1 -1
  150. package/dist/lcm/summarizer.d.ts +1 -1
  151. package/dist/lcm/summarizer.js +3 -3
  152. package/dist/lcm/tools.d.ts +3 -3
  153. package/dist/lifecycle.d.ts +3 -3
  154. package/dist/live-connectors-runner.d.ts +3 -3
  155. package/dist/local-llm.d.ts +3 -3
  156. package/dist/maintenance/memory-governance.d.ts +3 -3
  157. package/dist/maintenance/memory-governance.js +6 -6
  158. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +5 -5
  159. package/dist/maintenance/rebuild-memory-projection.js +7 -7
  160. package/dist/mcp-memory-inspector-app.d.ts +7 -7
  161. package/dist/memory-action-policy.d.ts +3 -3
  162. package/dist/memory-cache.d.ts +3 -3
  163. package/dist/memory-lifecycle-ledger-utils.d.ts +3 -3
  164. package/dist/memory-projection-store.d.ts +3 -3
  165. package/dist/memory-provenance.d.ts +3 -3
  166. package/dist/memory-worth-outcomes.d.ts +3 -3
  167. package/dist/{index-DJ9QWMw-.d.ts → message-parts/index.d.ts} +2 -1
  168. package/dist/message-parts/index.js +24 -0
  169. package/dist/message-parts/index.js.map +1 -0
  170. package/dist/models-json.d.ts +3 -3
  171. package/dist/namespaces/migrate.d.ts +4 -4
  172. package/dist/namespaces/migrate.js +10 -10
  173. package/dist/namespaces/principal.d.ts +3 -3
  174. package/dist/namespaces/search.d.ts +3 -3
  175. package/dist/namespaces/search.js +4 -4
  176. package/dist/namespaces/storage.d.ts +4 -4
  177. package/dist/namespaces/storage.js +5 -5
  178. package/dist/native-knowledge.d.ts +3 -3
  179. package/dist/objective-state-writers.d.ts +1 -1
  180. package/dist/objective-state-writers.js +2 -2
  181. package/dist/operator-toolkit.d.ts +3 -3
  182. package/dist/operator-toolkit.js +17 -17
  183. package/dist/orchestration/maintenance.d.ts +4 -4
  184. package/dist/orchestration/maintenance.js +7 -7
  185. package/dist/{orchestrator-C9CDWAm6.d.ts → orchestrator-m_PnhyHj.d.ts} +4 -4
  186. package/dist/orchestrator.d.ts +6 -6
  187. package/dist/orchestrator.js +44 -44
  188. package/dist/patterns-cli.d.ts +3 -3
  189. package/dist/{pipeline-BSTuml0d.d.ts → pipeline-DmqtvION.d.ts} +1 -1
  190. package/dist/policy-runtime.d.ts +3 -3
  191. package/dist/provenance.d.ts +3 -3
  192. package/dist/qmd-recall-cache.d.ts +3 -3
  193. package/dist/qmd.d.ts +3 -3
  194. package/dist/recall-disclosure-escalation.d.ts +3 -3
  195. package/dist/recall-explain-renderer.d.ts +3 -3
  196. package/dist/recall-planner-llm.d.ts +3 -3
  197. package/dist/recall-state.d.ts +3 -3
  198. package/dist/recall-tag-filter.d.ts +3 -3
  199. package/dist/recall-xray-cli.d.ts +3 -3
  200. package/dist/recall-xray-renderer.d.ts +3 -3
  201. package/dist/recall-xray.d.ts +3 -3
  202. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  203. package/dist/replay/normalizers/claude.d.ts +1 -1
  204. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  205. package/dist/replay/normalizers/shared.d.ts +1 -1
  206. package/dist/replay/runner.d.ts +1 -1
  207. package/dist/replay/types.d.ts +1 -1
  208. package/dist/resolve-auth-token.d.ts +3 -3
  209. package/dist/resume-bundles.js +1 -1
  210. package/dist/retrieval-agents.d.ts +3 -3
  211. package/dist/retrieval-tiers.d.ts +3 -3
  212. package/dist/routing/engine.d.ts +3 -3
  213. package/dist/routing/store.d.ts +3 -3
  214. package/dist/search/embed-helper.d.ts +3 -3
  215. package/dist/search/factory.d.ts +3 -3
  216. package/dist/search/factory.js +3 -3
  217. package/dist/search/index.d.ts +3 -3
  218. package/dist/search/index.js +7 -7
  219. package/dist/search/lancedb-backend.d.ts +3 -3
  220. package/dist/search/meilisearch-backend.d.ts +3 -3
  221. package/dist/search/noop-backend.d.ts +3 -3
  222. package/dist/search/orama-backend.d.ts +3 -3
  223. package/dist/search/port.d.ts +3 -3
  224. package/dist/search/remote-backend.d.ts +3 -3
  225. package/dist/{semantic-consolidation-DgFXyALl.d.ts → semantic-consolidation-DVBbq6Wr.d.ts} +1 -1
  226. package/dist/semantic-consolidation.d.ts +4 -4
  227. package/dist/semantic-consolidation.js +7 -7
  228. package/dist/semantic-rule-promotion.js +5 -5
  229. package/dist/semantic-rule-verifier.d.ts +3 -3
  230. package/dist/semantic-rule-verifier.js +6 -6
  231. package/dist/session-observer-bands.d.ts +3 -3
  232. package/dist/session-observer-state.d.ts +3 -3
  233. package/dist/shared-context/manager.d.ts +3 -3
  234. package/dist/signal.d.ts +3 -3
  235. package/dist/storage.d.ts +3 -3
  236. package/dist/storage.js +4 -4
  237. package/dist/summarizer.d.ts +3 -3
  238. package/dist/summary-snapshot.d.ts +3 -3
  239. package/dist/temporal-supersession.d.ts +3 -3
  240. package/dist/temporal-validity.d.ts +3 -3
  241. package/dist/threading.d.ts +3 -3
  242. package/dist/tier-migration.d.ts +3 -3
  243. package/dist/tier-routing.d.ts +3 -3
  244. package/dist/topics.d.ts +3 -3
  245. package/dist/transcript.d.ts +3 -3
  246. package/dist/transfer/backup.js +2 -2
  247. package/dist/transfer/capsule-export.js +2 -2
  248. package/dist/transfer/capsule-import.js +2 -2
  249. package/dist/transfer/import-sqlite.js +2 -2
  250. package/dist/{types-MWKPZnM0.d.ts → types-CJrvHJjx.d.ts} +2 -2
  251. package/dist/{types-ByK7T3L6.d.ts → types-gb_SNtjR.d.ts} +1 -1
  252. package/dist/types.d.ts +3 -3
  253. package/dist/utility-runtime.d.ts +3 -3
  254. package/dist/utils/path.d.ts +17 -0
  255. package/dist/utils/path.js +9 -0
  256. package/dist/utils/path.js.map +1 -0
  257. package/dist/verified-recall.js +6 -6
  258. package/package.json +27 -2
  259. package/src/access-boundary.ts +102 -1
  260. package/src/access-http.ts +54 -0
  261. package/src/access-operations-batch.ts +1468 -0
  262. package/src/access-operations.ts +4 -0
  263. package/src/access-surface-catalog.test.ts +17 -1
  264. package/src/access-surface-catalog.ts +57 -54
  265. package/src/cli/creation-ledger-commands.ts +346 -0
  266. package/src/cli/research-status-commands.ts +256 -0
  267. package/src/cli.ts +7 -516
  268. package/src/storage-contract/atomicity.test.ts +113 -0
  269. package/src/storage-contract/cache-coherence.test.ts +100 -0
  270. package/src/storage-contract/content-hash.test.ts +102 -0
  271. package/src/storage-contract/failure-semantics.test.ts +108 -0
  272. package/src/storage-contract/harness.ts +148 -0
  273. package/src/storage-contract/namespace-routing.test.ts +135 -0
  274. package/src/storage-contract/round-trip.test.ts +226 -0
  275. package/src/storage-contract/surface.test.ts +90 -0
  276. package/src/storage-contract/versioning.test.ts +139 -0
  277. package/dist/chunk-5VXVXJH6.js.map +0 -1
  278. package/dist/chunk-QGJAGC2J.js.map +0 -1
  279. package/dist/chunk-ZCEI242W.js.map +0 -1
  280. package/dist/path-X2K5XCHL.js +0 -9
  281. /package/dist/{capsule-crypto-YO5QJ6L3.js.map → access-operations-batch.js.map} +0 -0
  282. /package/dist/{auto-sync-3AAP25FV.js.map → auto-sync-24NNS3GU.js.map} +0 -0
  283. /package/dist/{path-X2K5XCHL.js.map → capsule-crypto-7FJQINUR.js.map} +0 -0
  284. /package/dist/{chunk-BXLOS5AJ.js.map → chunk-2NLLXCJG.js.map} +0 -0
  285. /package/dist/{chunk-EOOVJK2U.js.map → chunk-2SYPOX45.js.map} +0 -0
  286. /package/dist/{chunk-64XXOQRW.js.map → chunk-47LPHBIP.js.map} +0 -0
  287. /package/dist/{chunk-6VVP6NK7.js.map → chunk-6GJ2WQRK.js.map} +0 -0
  288. /package/dist/{chunk-4NFVPDIL.js.map → chunk-74MYJSKB.js.map} +0 -0
  289. /package/dist/{chunk-X5J3JZR3.js.map → chunk-773DPI6T.js.map} +0 -0
  290. /package/dist/{chunk-FVI5B7DE.js.map → chunk-7ARKLLCV.js.map} +0 -0
  291. /package/dist/{chunk-AGNBY3VG.js.map → chunk-APJQ6UEA.js.map} +0 -0
  292. /package/dist/{chunk-CI7RKSRE.js.map → chunk-AQEJKOKI.js.map} +0 -0
  293. /package/dist/{chunk-DL6H3D7S.js.map → chunk-ARV3AUOM.js.map} +0 -0
  294. /package/dist/{chunk-JTKFZMZ7.js.map → chunk-BKBSE3BU.js.map} +0 -0
  295. /package/dist/{chunk-TGAHHCB6.js.map → chunk-BMKGG7GC.js.map} +0 -0
  296. /package/dist/{chunk-GFIARMA7.js.map → chunk-C2EHWNP2.js.map} +0 -0
  297. /package/dist/{chunk-VKJHM6PL.js.map → chunk-DGTDRIUO.js.map} +0 -0
  298. /package/dist/{chunk-KC6TCAWV.js.map → chunk-HEHPVBWA.js.map} +0 -0
  299. /package/dist/{chunk-MDJURR27.js.map → chunk-HW5EF6LV.js.map} +0 -0
  300. /package/dist/{chunk-BMFZLLNI.js.map → chunk-ICP53SKG.js.map} +0 -0
  301. /package/dist/{chunk-YOI3ELXF.js.map → chunk-IF362TF6.js.map} +0 -0
  302. /package/dist/{chunk-ABCGDW3A.js.map → chunk-IFR23TC5.js.map} +0 -0
  303. /package/dist/{chunk-OXEAMU42.js.map → chunk-JHAYR2JY.js.map} +0 -0
  304. /package/dist/{chunk-VPAFWWCL.js.map → chunk-K22IJO4R.js.map} +0 -0
  305. /package/dist/{chunk-JMA4RYRN.js.map → chunk-KFU2SKDD.js.map} +0 -0
  306. /package/dist/{chunk-VDX2J7OX.js.map → chunk-KQAFEZQX.js.map} +0 -0
  307. /package/dist/{chunk-AMNLZ6SF.js.map → chunk-KZMMAVR2.js.map} +0 -0
  308. /package/dist/{chunk-EZR35XHX.js.map → chunk-LY4FJLPT.js.map} +0 -0
  309. /package/dist/{chunk-NUIJEGVD.js.map → chunk-M5MWSG4S.js.map} +0 -0
  310. /package/dist/{chunk-Z7XEIAV4.js.map → chunk-MNH2OODZ.js.map} +0 -0
  311. /package/dist/{chunk-MXEWQKM7.js.map → chunk-NFGJBEPT.js.map} +0 -0
  312. /package/dist/{chunk-Q4O3ET6F.js.map → chunk-NUWZFSKC.js.map} +0 -0
  313. /package/dist/{chunk-6TAETM63.js.map → chunk-OM6ETLLH.js.map} +0 -0
  314. /package/dist/{chunk-QQW2LIEA.js.map → chunk-OMSTU233.js.map} +0 -0
  315. /package/dist/{chunk-XGMCUY5P.js.map → chunk-S3WYRPSA.js.map} +0 -0
  316. /package/dist/{chunk-QIMFOCSH.js.map → chunk-S5APSA3U.js.map} +0 -0
  317. /package/dist/{chunk-IX72AAMZ.js.map → chunk-SY6WG6DB.js.map} +0 -0
  318. /package/dist/{chunk-MBUM2Y3L.js.map → chunk-ULVM34NP.js.map} +0 -0
  319. /package/dist/{chunk-DQEMWVMT.js.map → chunk-X7Y7WX73.js.map} +0 -0
  320. /package/dist/{chunk-7WWURLG6.js.map → chunk-XPOOY35N.js.map} +0 -0
  321. /package/dist/{chunk-EYJD6KIO.js.map → chunk-Y4PMATX2.js.map} +0 -0
  322. /package/dist/{chunk-KF74X62T.js.map → chunk-YGKUAX2B.js.map} +0 -0
  323. /package/dist/{chunk-YN4ZT4CW.js.map → chunk-YI7RZO7Y.js.map} +0 -0
  324. /package/dist/{graph-edge-decay-D7OESCBR.js.map → graph-edge-decay-JLOF3YW4.js.map} +0 -0
@@ -1,11 +1,11 @@
1
1
  import { StorageManager } from './storage.js';
2
- import { n as BriefingSections, o as BriefingFollowup, p as BriefingFocus, C as CalendarSource, q as CalendarEvent, g as MemoryFile, r as BriefingActiveThread, s as BriefingResult, E as EntityFile, t as BriefingRecentEntity } from './types-MWKPZnM0.js';
2
+ import { n as BriefingSections, o as BriefingFollowup, p as BriefingFocus, C as CalendarSource, q as CalendarEvent, g as MemoryFile, r as BriefingActiveThread, s as BriefingResult, E as EntityFile, t as BriefingRecentEntity } from './types-CJrvHJjx.js';
3
3
  import './page-versioning.js';
4
4
  import './consolidation-operator.js';
5
5
  import './memory-projection-store.js';
6
6
  import './maintenance/memory-governance.js';
7
- import './types-ByK7T3L6.js';
8
- import './index-DJ9QWMw-.js';
7
+ import './types-gb_SNtjR.js';
8
+ import './message-parts/index.js';
9
9
  import './runtime/better-sqlite.js';
10
10
  import 'better-sqlite3';
11
11
  import './structured-attributes.js';
package/dist/briefing.js CHANGED
@@ -17,10 +17,10 @@ import {
17
17
  renderBriefingMarkdown,
18
18
  resolveBriefingSaveDir,
19
19
  validateBriefingFormat
20
- } from "./chunk-6VVP6NK7.js";
21
- import "./chunk-GFIARMA7.js";
22
- import "./chunk-3JJWNZTT.js";
20
+ } from "./chunk-6GJ2WQRK.js";
21
+ import "./chunk-C2EHWNP2.js";
23
22
  import "./chunk-M7XQSUBB.js";
23
+ import "./chunk-3JJWNZTT.js";
24
24
  import "./chunk-5UZXUTVO.js";
25
25
  import "./chunk-5GPPACXK.js";
26
26
  import "./chunk-OMNTQPZO.js";
@@ -29,14 +29,14 @@ import "./chunk-SVOZFLIQ.js";
29
29
  import "./chunk-LTJAMRGI.js";
30
30
  import "./chunk-J6A3CX5N.js";
31
31
  import "./chunk-IX3UQT4H.js";
32
+ import "./chunk-RULE4VG5.js";
32
33
  import "./chunk-SCU65EZI.js";
33
34
  import "./chunk-MB5RSUW6.js";
34
35
  import "./chunk-6KYMPV2O.js";
35
36
  import "./chunk-AWJ2FHCF.js";
36
37
  import "./chunk-42JKGUFJ.js";
37
- import "./chunk-RULE4VG5.js";
38
- import "./chunk-LDXUBPMO.js";
39
38
  import "./chunk-DM2T26WE.js";
39
+ import "./chunk-LDXUBPMO.js";
40
40
  import "./chunk-FEB7W5JG.js";
41
41
  import "./chunk-G7D6GZ5J.js";
42
42
  import "./chunk-VF4XKTX3.js";
@@ -1,6 +1,6 @@
1
- import { z as BufferSurpriseEvent } from './types-MWKPZnM0.js';
2
- import './types-ByK7T3L6.js';
3
- import './index-DJ9QWMw-.js';
1
+ import { z as BufferSurpriseEvent } from './types-CJrvHJjx.js';
2
+ import './types-gb_SNtjR.js';
3
+ import './message-parts/index.js';
4
4
 
5
5
  /**
6
6
  * Buffer-surprise telemetry report (issue #563 PR 3).
package/dist/buffer.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { StorageManager } from './storage.js';
2
- import { P as PluginConfig, u as BufferTurn } from './types-MWKPZnM0.js';
2
+ import { P as PluginConfig, u as BufferTurn } from './types-CJrvHJjx.js';
3
3
  import './page-versioning.js';
4
4
  import './consolidation-operator.js';
5
5
  import './memory-projection-store.js';
6
6
  import './maintenance/memory-governance.js';
7
- import './types-ByK7T3L6.js';
8
- import './index-DJ9QWMw-.js';
7
+ import './types-gb_SNtjR.js';
8
+ import './message-parts/index.js';
9
9
  import './runtime/better-sqlite.js';
10
10
  import 'better-sqlite3';
11
11
  import './structured-attributes.js';
@@ -1,7 +1,7 @@
1
- import { e as BulkImportSourceAdapter } from '../types-ByK7T3L6.js';
2
- export { d as BulkImportError, B as BulkImportOptions, b as BulkImportResult, a as BulkImportSource, f as ImportSourceRole, I as ImportTurn, g as ImportTurnValidationIssue, i as isImportRole, p as parseIsoTimestamp, v as validateImportTurn } from '../types-ByK7T3L6.js';
3
- export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from '../pipeline-BSTuml0d.js';
4
- import '../index-DJ9QWMw-.js';
1
+ import { e as BulkImportSourceAdapter } from '../types-gb_SNtjR.js';
2
+ export { d as BulkImportError, B as BulkImportOptions, b as BulkImportResult, a as BulkImportSource, f as ImportSourceRole, I as ImportTurn, g as ImportTurnValidationIssue, i as isImportRole, p as parseIsoTimestamp, v as validateImportTurn } from '../types-gb_SNtjR.js';
3
+ export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from '../pipeline-DmqtvION.js';
4
+ import '../message-parts/index.js';
5
5
 
6
6
  /**
7
7
  * Register a source adapter. Rejects duplicate names and empty names.
@@ -1,8 +1,8 @@
1
1
  import { FallbackLlmClient } from './fallback-llm.js';
2
- import { G as GatewayConfig, f as AgentPersonaModelConfig } from './types-MWKPZnM0.js';
2
+ import { G as GatewayConfig, f as AgentPersonaModelConfig } from './types-CJrvHJjx.js';
3
3
  import './resolve-provider-secret.js';
4
- import './types-ByK7T3L6.js';
5
- import './index-DJ9QWMw-.js';
4
+ import './types-gb_SNtjR.js';
5
+ import './message-parts/index.js';
6
6
 
7
7
  /**
8
8
  * calibration.ts — Prediction-Error-Driven Model-User Calibration
@@ -1,6 +1,6 @@
1
- import { P as PluginConfig } from './types-MWKPZnM0.js';
2
- import './types-ByK7T3L6.js';
3
- import './index-DJ9QWMw-.js';
1
+ import { P as PluginConfig } from './types-CJrvHJjx.js';
2
+ import './types-gb_SNtjR.js';
3
+ import './message-parts/index.js';
4
4
 
5
5
  /**
6
6
  * CapabilitySet — recall-operation feature gates resolved once, then threaded.
@@ -3,7 +3,7 @@ import {
3
3
  decryptCapsuleFileInMemory,
4
4
  encryptCapsuleFile,
5
5
  isEncryptedCapsuleFile
6
- } from "./chunk-DQEMWVMT.js";
6
+ } from "./chunk-X7Y7WX73.js";
7
7
  import "./chunk-BJMBJZ2Y.js";
8
8
  import "./chunk-UKJAGEXH.js";
9
9
  import "./chunk-FP2373TW.js";
@@ -15,4 +15,4 @@ export {
15
15
  encryptCapsuleFile,
16
16
  isEncryptedCapsuleFile
17
17
  };
18
- //# sourceMappingURL=capsule-crypto-YO5QJ6L3.js.map
18
+ //# sourceMappingURL=capsule-crypto-7FJQINUR.js.map
@@ -1,4 +1,4 @@
1
- import { P as PluginConfig } from './types-MWKPZnM0.js';
1
+ import { P as PluginConfig } from './types-CJrvHJjx.js';
2
2
 
3
3
  /**
4
4
  * Rebuildable namespace catalog (issue #1499).
@@ -2,9 +2,9 @@ import { CausalChainIndex } from './causal-chain.js';
2
2
  import { ConsolidatedPreference } from './compounding/preference-consolidator.js';
3
3
  import './causal-trajectory.js';
4
4
  import './objective-state.js';
5
- import './types-MWKPZnM0.js';
6
- import './types-ByK7T3L6.js';
7
- import './index-DJ9QWMw-.js';
5
+ import './types-CJrvHJjx.js';
6
+ import './types-gb_SNtjR.js';
7
+ import './message-parts/index.js';
8
8
  import './lcm/engine.js';
9
9
  import './lcm/archive.js';
10
10
  import 'better-sqlite3';
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  readChainIndex,
3
3
  resolveChainsDir
4
- } from "./chunk-4NFVPDIL.js";
4
+ } from "./chunk-74MYJSKB.js";
5
5
  import "./chunk-7FL4CNPV.js";
6
6
  import {
7
7
  resolveCausalTrajectoryStoreDir
8
- } from "./chunk-YN4ZT4CW.js";
9
- import {
10
- log
11
- } from "./chunk-NU3CSQ4H.js";
8
+ } from "./chunk-YI7RZO7Y.js";
12
9
  import {
13
10
  normalizeRecallTokens
14
11
  } from "./chunk-ZBJMUXZH.js";
12
+ import {
13
+ log
14
+ } from "./chunk-NU3CSQ4H.js";
15
15
  import {
16
16
  isRecord
17
17
  } from "./chunk-A2IYSXDQ.js";
@@ -6,11 +6,11 @@ import {
6
6
  stitchCausalChain,
7
7
  validateCausalEdge,
8
8
  writeChainIndex
9
- } from "./chunk-4NFVPDIL.js";
9
+ } from "./chunk-74MYJSKB.js";
10
10
  import "./chunk-7FL4CNPV.js";
11
- import "./chunk-YN4ZT4CW.js";
12
- import "./chunk-NU3CSQ4H.js";
11
+ import "./chunk-YI7RZO7Y.js";
13
12
  import "./chunk-ZBJMUXZH.js";
13
+ import "./chunk-NU3CSQ4H.js";
14
14
  import "./chunk-A2IYSXDQ.js";
15
15
  import "./chunk-LPSF4OQH.js";
16
16
  import "./chunk-PZ5AY32C.js";
@@ -1,7 +1,7 @@
1
- import { G as GatewayConfig, f as AgentPersonaModelConfig, P as PluginConfig, g as MemoryFile } from './types-MWKPZnM0.js';
1
+ import { G as GatewayConfig, f as AgentPersonaModelConfig, P as PluginConfig, g as MemoryFile } from './types-CJrvHJjx.js';
2
2
  import { RolloutSummaryInput, MaterializeResult } from './connectors/codex-materialize.js';
3
- import './types-ByK7T3L6.js';
4
- import './index-DJ9QWMw-.js';
3
+ import './types-gb_SNtjR.js';
4
+ import './message-parts/index.js';
5
5
 
6
6
  /**
7
7
  * causal-consolidation.ts — CMC Phase 2: LLM-Assisted Causal Consolidation
@@ -1,23 +1,24 @@
1
1
  import {
2
2
  readChainIndex,
3
3
  resolveChainsDir
4
- } from "./chunk-4NFVPDIL.js";
4
+ } from "./chunk-74MYJSKB.js";
5
5
  import {
6
6
  buildExtensionsBlockForConsolidation
7
- } from "./chunk-FVI5B7DE.js";
7
+ } from "./chunk-7ARKLLCV.js";
8
8
  import {
9
9
  runPostConsolidationMaterialize
10
- } from "./chunk-QIMFOCSH.js";
10
+ } from "./chunk-S5APSA3U.js";
11
11
  import "./chunk-UUH4YQOF.js";
12
12
  import "./chunk-JLNBQWZ2.js";
13
13
  import "./chunk-3UXOZBHV.js";
14
14
  import "./chunk-7FL4CNPV.js";
15
15
  import {
16
16
  resolveCausalTrajectoryStoreDir
17
- } from "./chunk-YN4ZT4CW.js";
18
- import "./chunk-GFIARMA7.js";
19
- import "./chunk-3JJWNZTT.js";
17
+ } from "./chunk-YI7RZO7Y.js";
18
+ import "./chunk-ZBJMUXZH.js";
19
+ import "./chunk-C2EHWNP2.js";
20
20
  import "./chunk-M7XQSUBB.js";
21
+ import "./chunk-3JJWNZTT.js";
21
22
  import "./chunk-5UZXUTVO.js";
22
23
  import "./chunk-5GPPACXK.js";
23
24
  import "./chunk-OMNTQPZO.js";
@@ -26,14 +27,14 @@ import "./chunk-SVOZFLIQ.js";
26
27
  import "./chunk-LTJAMRGI.js";
27
28
  import "./chunk-J6A3CX5N.js";
28
29
  import "./chunk-IX3UQT4H.js";
30
+ import "./chunk-RULE4VG5.js";
29
31
  import "./chunk-SCU65EZI.js";
30
32
  import "./chunk-MB5RSUW6.js";
31
33
  import "./chunk-6KYMPV2O.js";
32
34
  import "./chunk-AWJ2FHCF.js";
33
35
  import "./chunk-42JKGUFJ.js";
34
- import "./chunk-RULE4VG5.js";
35
- import "./chunk-LDXUBPMO.js";
36
36
  import "./chunk-DM2T26WE.js";
37
+ import "./chunk-LDXUBPMO.js";
37
38
  import "./chunk-FEB7W5JG.js";
38
39
  import "./chunk-G7D6GZ5J.js";
39
40
  import "./chunk-VF4XKTX3.js";
@@ -60,7 +61,6 @@ import {
60
61
  log
61
62
  } from "./chunk-NU3CSQ4H.js";
62
63
  import "./chunk-6MKAMLQL.js";
63
- import "./chunk-ZBJMUXZH.js";
64
64
  import {
65
65
  isRecord
66
66
  } from "./chunk-A2IYSXDQ.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  readChainIndex,
3
3
  resolveChainsDir
4
- } from "./chunk-4NFVPDIL.js";
4
+ } from "./chunk-74MYJSKB.js";
5
5
  import "./chunk-7FL4CNPV.js";
6
6
  import {
7
7
  readCausalTrajectoryRecords,
8
8
  searchCausalTrajectories
9
- } from "./chunk-YN4ZT4CW.js";
9
+ } from "./chunk-YI7RZO7Y.js";
10
+ import "./chunk-ZBJMUXZH.js";
10
11
  import {
11
12
  log
12
13
  } from "./chunk-NU3CSQ4H.js";
13
- import "./chunk-ZBJMUXZH.js";
14
14
  import "./chunk-A2IYSXDQ.js";
15
15
  import "./chunk-LPSF4OQH.js";
16
16
  import "./chunk-PZ5AY32C.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  appendEdge
3
- } from "./chunk-KF74X62T.js";
4
- import "./chunk-2LSZVONP.js";
3
+ } from "./chunk-YGKUAX2B.js";
5
4
  import "./chunk-DEUNUKTD.js";
5
+ import "./chunk-2LSZVONP.js";
6
6
  import "./chunk-PZ5AY32C.js";
7
7
 
8
8
  // src/causal-trajectory-graph.ts
@@ -6,7 +6,7 @@ import {
6
6
  resolveCausalTrajectoryStoreDir,
7
7
  searchCausalTrajectories,
8
8
  validateCausalTrajectoryRecord
9
- } from "./chunk-YN4ZT4CW.js";
9
+ } from "./chunk-YI7RZO7Y.js";
10
10
  import "./chunk-ZBJMUXZH.js";
11
11
  import "./chunk-A2IYSXDQ.js";
12
12
  import "./chunk-LPSF4OQH.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-765K3SAT.js";
4
4
  import {
5
5
  encryptCapsuleFile
6
- } from "./chunk-DQEMWVMT.js";
6
+ } from "./chunk-X7Y7WX73.js";
7
7
  import {
8
8
  computeTransferOutputRel,
9
9
  isTransferPathExcluded
@@ -109,4 +109,4 @@ async function enforceRetention(outDirAbs, retentionDays) {
109
109
  export {
110
110
  backupMemoryDir
111
111
  };
112
- //# sourceMappingURL=chunk-BXLOS5AJ.js.map
112
+ //# sourceMappingURL=chunk-2NLLXCJG.js.map
@@ -10,10 +10,17 @@ import {
10
10
  import {
11
11
  listMemoryGovernanceRuns,
12
12
  readMemoryGovernanceRunArtifact
13
- } from "./chunk-MBUM2Y3L.js";
13
+ } from "./chunk-ULVM34NP.js";
14
14
  import {
15
15
  StorageManager
16
- } from "./chunk-GFIARMA7.js";
16
+ } from "./chunk-C2EHWNP2.js";
17
+ import {
18
+ MEMORY_LIFECYCLE_EVENT_SORT_ORDER,
19
+ buildLifecycleEventsForMemory,
20
+ inferMemoryStatus,
21
+ sortMemoryLifecycleEvents,
22
+ toMemoryPathRel
23
+ } from "./chunk-RULE4VG5.js";
17
24
  import {
18
25
  normalizeProjectionPreview,
19
26
  normalizeProjectionTags
@@ -32,13 +39,6 @@ import {
32
39
  import {
33
40
  openBetterSqlite3
34
41
  } from "./chunk-6KYMPV2O.js";
35
- import {
36
- MEMORY_LIFECYCLE_EVENT_SORT_ORDER,
37
- buildLifecycleEventsForMemory,
38
- inferMemoryStatus,
39
- sortMemoryLifecycleEvents,
40
- toMemoryPathRel
41
- } from "./chunk-RULE4VG5.js";
42
42
 
43
43
  // src/maintenance/rebuild-memory-projection.ts
44
44
  import path from "path";
@@ -929,4 +929,4 @@ export {
929
929
  verifyMemoryProjection,
930
930
  repairMemoryProjection
931
931
  };
932
- //# sourceMappingURL=chunk-EOOVJK2U.js.map
932
+ //# sourceMappingURL=chunk-2SYPOX45.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZFXCQPNO.js";
5
5
  import {
6
6
  StorageManager
7
- } from "./chunk-GFIARMA7.js";
7
+ } from "./chunk-C2EHWNP2.js";
8
8
  import {
9
9
  MutationSerializer
10
10
  } from "./chunk-LTJAMRGI.js";
@@ -336,4 +336,4 @@ export {
336
336
  resolveNamespaceStorageRoot,
337
337
  NamespaceStorageRouter
338
338
  };
339
- //# sourceMappingURL=chunk-64XXOQRW.js.map
339
+ //# sourceMappingURL=chunk-47LPHBIP.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EngramAccessInputError
3
- } from "./chunk-OXEAMU42.js";
3
+ } from "./chunk-JHAYR2JY.js";
4
4
  import {
5
5
  expandTildePath
6
6
  } from "./chunk-EYIEWJNI.js";
@@ -104,4 +104,4 @@ export {
104
104
  listRegisteredOperations,
105
105
  __resetRegistryForTest
106
106
  };
107
- //# sourceMappingURL=chunk-QGJAGC2J.js.map
107
+ //# sourceMappingURL=chunk-5DTWZ66X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/access-boundary.ts"],"sourcesContent":["/**\n * Single input-validation and error boundary for the CLI/MCP/HTTP access\n * surfaces (issue #1525, epic #1520 Phase 1).\n *\n * Every operation that crosses the access-service facade passes through ONE\n * registry entry: a zod-validated request envelope, a shared error mapper,\n * and the \"reject invalid input and list valid options\" behavior that\n * CLAUDE.md rules 14/17/24/28/36/48/51 previously had to be re-implemented\n * per handler. The three surfaces become thin adapters — one operation\n * definition, three transports — so a validation fix lands everywhere at\n * once.\n *\n * Host-agnostic (rule 31): operation names carry no `openclaw-*`/`engram-*`\n * prefix. Session/namespace tenancy stays in the handler layer (resolved via\n * ScopePlan #1521); the boundary validates SHAPE, not tenancy.\n */\n\nimport { z } from \"zod\";\nimport { EngramAccessInputError, type EngramAccessService } from \"./access-service.js\";\nimport { expandTildePath } from \"./utils/path.js\";\n\n// ---------------------------------------------------------------------------\n// Canonical operation names — host-agnostic (rule 31)\n// ---------------------------------------------------------------------------\n\n/**\n * Canonical operation ids. One id is shared by the MCP tool, the HTTP route,\n * and the CLI command that expose the same operation. Add to this union as\n * each domain-group migration PR (memory ops → connectors → namespaces …)\n * lands; the fitness test in `access-surface-catalog.test.ts` treats the\n * registered set as the migration state.\n */\nexport type OperationName =\n | \"memory_get\"\n | \"memory_search\"\n | \"memory_store\"\n | \"coding_decision\"\n | \"coding_architecture\"\n // codegraph parity tools (issue #1554) -- each maps to one codegraph_*\n // boundary operation that delegates to the surface handler in\n // coding/codegraph-surfaces.ts. Names match the external tool suffixes.\n | \"codegraph_index\"\n | \"codegraph_list_projects\"\n | \"codegraph_delete_project\"\n | \"codegraph_index_status\"\n | \"codegraph_search_graph\"\n | \"codegraph_trace_path\"\n | \"codegraph_detect_changes\"\n | \"codegraph_query_graph\"\n | \"codegraph_get_schema\"\n | \"codegraph_get_snippet\"\n | \"codegraph_get_architecture\"\n | \"codegraph_search_code\"\n | \"codegraph_manage_adr\"\n | \"codegraph_ingest_traces\"\n | \"coding_delta\"\n // Remaining MCP/HTTP handlers migrated through the boundary (issue #1525).\n | \"recall\"\n | \"recall_explain\"\n | \"set_coding_context\"\n | \"recall_tier_explain\"\n | \"recall_xray\"\n | \"wearables_status\"\n | \"wearables_sync\"\n | \"transcript_day\"\n | \"transcript_search\"\n | \"transcript_memories\"\n | \"action_confidence\"\n | \"chatgpt_memory_inspector\"\n | \"day_summary\"\n | \"capsule_export\"\n | \"capsule_import\"\n | \"capsule_list\"\n | \"memory_governance_run\"\n | \"procedure_mining_run\"\n | \"pattern_reinforcement_run\"\n | \"procedural_stats\"\n | \"memory_timeline\"\n | \"suggestion_submit\"\n | \"entity_get\"\n | \"review_queue_list\"\n | \"observe\"\n | \"lcm_search\"\n | \"lcm_compaction_flush\"\n | \"lcm_compaction_record\"\n | \"continuity_audit_generate\"\n | \"continuity_incident_open\"\n | \"continuity_incident_close\"\n | \"continuity_incident_list\"\n | \"continuity_loop_add_or_update\"\n | \"continuity_loop_review\"\n | \"identity_anchor_get\"\n | \"identity_anchor_update\"\n | \"memory_identity\"\n | \"work_task\"\n | \"work_project\"\n | \"work_board\"\n | \"shared_context_write_output\"\n | \"shared_feedback_record\"\n | \"shared_priorities_append\"\n | \"shared_context_cross_signals_run\"\n | \"shared_context_curate_daily\"\n | \"compounding_weekly_synthesize\"\n | \"compounding_promote_candidate\"\n | \"compression_guidelines_optimize\"\n | \"compression_guidelines_activate\"\n | \"memory_profile\"\n | \"memory_entities_list\"\n | \"memory_questions\"\n | \"memory_last_recall\"\n | \"memory_intent_debug\"\n | \"memory_qmd_debug\"\n | \"memory_graph_explain\"\n | \"graph_snapshot\"\n | \"memory_feedback\"\n | \"memory_promote\"\n | \"memory_outcome\"\n | \"memory_action_apply\"\n | \"context_checkpoint\"\n | \"briefing\"\n | \"review_list\"\n | \"review_resolve\"\n | \"contradiction_scan_run\"\n | \"memory_summarize_hourly\"\n | \"conversation_index_update\"\n | \"profiling_report\"\n | \"graph_edge_decay_run\"\n | \"live_connectors_run\"\n | \"peer_list\"\n | \"peer_get\"\n | \"peer_set\"\n | \"peer_delete\"\n | \"peer_profile_get\"\n | \"peer_forget\"\n | \"console_state\"\n | \"dreams_status\"\n | \"dreams_run\"\n // HTTP-only routes (no direct MCP tool equivalent).\n | \"offline_sync_snapshot\"\n | \"offline_sync_snapshot_stream\"\n | \"offline_sync_files\"\n | \"offline_sync_file_content\"\n | \"offline_sync_apply_file_content\"\n | \"offline_sync_apply\"\n | \"lcm_status\"\n | \"memory_list\"\n | \"entity_list\"\n | \"maintenance_status\"\n | \"quality_status\"\n | \"trust_zones_status\"\n | \"trust_zones_records\"\n | \"review_disposition\"\n | \"trust_zones_promote\"\n | \"trust_zones_demo_seed\"\n | \"citations_observed\"\n | \"contradiction_detail\"\n | \"graph_events\";\n\n// ---------------------------------------------------------------------------\n// Operation context — what every handler receives\n// ---------------------------------------------------------------------------\n\n/**\n * Per-call context. `service` is the facade the handler delegates to; the\n * boundary never reaches past it. `authenticatedPrincipal` is resolved by\n * the SURFACE (MCP header / HTTP identity / CLI flag) before the boundary\n * runs, so handlers stay principal-source-agnostic. `hooks` carries\n * transport-level callbacks (e.g. HTTP write-quota enforcement) that must\n * fire atomically inside the service call; surfaces that have no such hook\n * leave it undefined.\n */\nexport interface OperationContext {\n readonly service: EngramAccessService;\n readonly authenticatedPrincipal?: string;\n readonly hooks?: OperationHooks;\n}\n\n/**\n * Transport-level callbacks a handler forwards into the service call. Kept\n * narrow on purpose: the boundary owns validation + dispatch shape, not\n * transport policy. Add fields here only when a surface genuinely needs a\n * callback the service itself consumes.\n */\nexport interface OperationHooks {\n /** HTTP write-quota gate; throws to reject the write when exhausted. */\n readonly enforceWriteQuota?: () => void | Promise<void>;\n}\n\n// ---------------------------------------------------------------------------\n// Operation spec + bound operation\n// ---------------------------------------------------------------------------\n\nexport interface OperationSpec<In, Out> {\n /** Canonical operation id; matches an {@link OperationName}. */\n readonly name: OperationName;\n readonly description: string;\n /** Zod schema validating the raw request envelope. */\n readonly schema: z.ZodType<In>;\n /** Handler invoked with the parsed input; throws EngramAccessInputError for domain faults. */\n readonly handler: (input: In, ctx: OperationContext) => Promise<Out>;\n}\n\nexport interface BoundOperation<In = unknown, Out = unknown> {\n readonly spec: OperationSpec<In, Out>;\n /** Validate the raw envelope, then invoke the handler. Throws EngramAccessInputError on any validation failure. */\n readonly run: (rawInput: unknown, ctx: OperationContext) => Promise<Out>;\n}\n\n// ---------------------------------------------------------------------------\n// Shared normalizers the boundary owns (rules 17, 28, 36, 48, 51)\n// ---------------------------------------------------------------------------\n\n/**\n * Coerce boolean-like strings at the edge (rule 36). Accepts actual booleans\n * and the string spellings clients send (\"true\"/\"false\"/\"1\"/\"0\"/\"yes\"/\"no\"/\n * \"on\"/\"off\", case-insensitive). Rejects anything else loudly — `Boolean(\"false\")`\n * would silently be `true`, which is the bug rule 36 exists to prevent.\n *\n * `undefined`/`null`/`\"\"` → `undefined`, so callers can keep treating an\n * absent flag as \"use the default\" without a separate presence check.\n */\nexport function coerceBooleanLike(value: unknown): boolean | undefined {\n if (value === undefined || value === null || value === \"\") return undefined;\n if (typeof value === \"boolean\") return value;\n if (typeof value === \"string\") {\n const lower = value.trim().toLowerCase();\n if (lower === \"true\" || lower === \"1\" || lower === \"yes\" || lower === \"on\") return true;\n if (lower === \"false\" || lower === \"0\" || lower === \"no\" || lower === \"off\") return false;\n }\n throw new EngramAccessInputError(\n `expected a boolean-like value (true|false|1|0|yes|no|on|off); got ${JSON.stringify(value)}`,\n );\n}\n\n/**\n * Coerce + validate a positive integer from a numeric string or number\n * (rule 28). Loosely-typed MCP/CLI clients send `\"5\"`; `typeof saved === \"number\"`\n * on read-back would reject it later, so we coerce at the edge and reject\n * booleans/objects loudly (`Number(true) === 1` would silently pass otherwise).\n *\n * `undefined`/`null`/`\"\"` → `undefined`.\n */\nexport function coercePositiveInteger(value: unknown, label: string): number | undefined {\n if (value === undefined || value === null || value === \"\") return undefined;\n if (typeof value === \"number\") {\n if (!Number.isFinite(value) || value <= 0 || !Number.isInteger(value)) {\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n }\n return value;\n }\n if (typeof value === \"string\") {\n const trimmed = value.trim();\n if (!/^[+-]?\\d+$/.test(trimmed)) {\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n }\n const parsed = Number(trimmed);\n if (!Number.isSafeInteger(parsed) || parsed <= 0) {\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n }\n return parsed;\n }\n throw new EngramAccessInputError(`${label} expects a positive integer; got ${JSON.stringify(value)}`);\n}\n\n/**\n * Expand `~` in a path-shaped input (rule 17). Node `fs` does NOT expand `~`;\n * ad-hoc regex drifts. `undefined`/`null`/`\"\"` → `undefined`.\n */\nexport function normalizeOptionalPath(value: unknown): string | undefined {\n if (value === undefined || value === null || value === \"\") return undefined;\n if (typeof value !== \"string\") {\n throw new EngramAccessInputError(`expected a path string; got ${JSON.stringify(value)}`);\n }\n return expandTildePath(value);\n}\n\n// ---------------------------------------------------------------------------\n// Error formatting — rule 51: list valid options, never silently default\n// ---------------------------------------------------------------------------\n\n/**\n * Turn a zod failure into an {@link EngramAccessInputError} whose message\n * names the offending field and — for enum/union issues — lists the valid\n * options, so the caller can correct rather than guess (rule 51).\n */\nexport function formatZodIssues(error: z.ZodError): string {\n const parts: string[] = [];\n for (const issue of error.issues) {\n const path = issue.path.length > 0 ? issue.path.join(\".\") : \"(root)\";\n const options = enumOptionsFromIssue(issue);\n const suffix = options ? `. Valid: ${options.join(\", \")}` : \"\";\n parts.push(`${path}: ${issue.message}${suffix}`);\n }\n return parts.length > 0\n ? `request validation failed: ${parts.join(\"; \")}`\n : \"request validation failed\";\n}\n\nfunction enumOptionsFromIssue(issue: z.ZodIssue): readonly string[] | undefined {\n // zod exposes accepted enum values on the issue for ZodEnum / ZodNativeEnum\n // and on the options of invalid_union discriminators. Reading them here\n // keeps \"list valid options\" in ONE place rather than per handler.\n if (issue.code === z.ZodIssueCode.invalid_enum_value) {\n const rawOptions = (issue as { options?: unknown }).options;\n if (Array.isArray(rawOptions)) {\n return rawOptions.map((opt) => String(opt));\n }\n }\n return undefined;\n}\n\n// ---------------------------------------------------------------------------\n// Registry\n// ---------------------------------------------------------------------------\n\nconst registry = new Map<OperationName, BoundOperation>();\n\n/**\n * Register an operation. Throws if the name is already registered — duplicate\n * registration is a programming error, not a runtime input fault, so it throws\n * a plain Error (not the input-error class surfaces translate for clients).\n */\nexport function defineOperation<In, Out>(spec: OperationSpec<In, Out>): BoundOperation<In, Out> {\n if (registry.has(spec.name)) {\n throw new Error(`access-boundary: operation already registered: ${spec.name}`);\n }\n const bound: BoundOperation<In, Out> = {\n spec,\n run: async (rawInput, ctx) => {\n const parseResult = spec.schema.safeParse(rawInput);\n if (!parseResult.success) {\n throw new EngramAccessInputError(formatZodIssues(parseResult.error));\n }\n return spec.handler(parseResult.data, ctx);\n },\n };\n // Store under the canonical name; the cast is safe because In/Out are\n // erased at the registry boundary and recovered by callers via getOperation.\n registry.set(spec.name, bound as unknown as BoundOperation);\n return bound;\n}\n\n/** Look up a registered operation by canonical name. */\nexport function getOperation(name: OperationName): BoundOperation | undefined {\n return registry.get(name);\n}\n\n/** All registered operation names. */\nexport function listRegisteredOperations(): readonly OperationName[] {\n return [...registry.keys()];\n}\n\n/** Test-only: clear the registry so pilot definitions can be re-registered. */\nexport function __resetRegistryForTest(): void {\n registry.clear();\n}\n"],"mappings":"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","names":[]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  StorageManager,
3
3
  normalizeEntityName
4
- } from "./chunk-GFIARMA7.js";
4
+ } from "./chunk-C2EHWNP2.js";
5
5
  import {
6
6
  extractJsonCandidates
7
7
  } from "./chunk-RGMVMVMF.js";
@@ -870,4 +870,4 @@ export {
870
870
  resolveBriefingSaveDir,
871
871
  briefingFilename
872
872
  };
873
- //# sourceMappingURL=chunk-6VVP6NK7.js.map
873
+ //# sourceMappingURL=chunk-6GJ2WQRK.js.map
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-7FL4CNPV.js";
4
4
  import {
5
5
  resolveCausalTrajectoryStoreDir
6
- } from "./chunk-YN4ZT4CW.js";
7
- import {
8
- log
9
- } from "./chunk-NU3CSQ4H.js";
6
+ } from "./chunk-YI7RZO7Y.js";
10
7
  import {
11
8
  normalizeRecallTokens
12
9
  } from "./chunk-ZBJMUXZH.js";
10
+ import {
11
+ log
12
+ } from "./chunk-NU3CSQ4H.js";
13
13
  import {
14
14
  assertIsoRecordedAt,
15
15
  assertString,
@@ -339,4 +339,4 @@ export {
339
339
  scoreStitchCandidate,
340
340
  stitchCausalChain
341
341
  };
342
- //# sourceMappingURL=chunk-4NFVPDIL.js.map
342
+ //# sourceMappingURL=chunk-74MYJSKB.js.map
@@ -1,3 +1,6 @@
1
+ import {
2
+ LcmDag
3
+ } from "./chunk-7N4KAIGN.js";
1
4
  import {
2
5
  LcmWorkQueue
3
6
  } from "./chunk-TPDBFYEG.js";
@@ -10,13 +13,10 @@ import {
10
13
  } from "./chunk-KYYL4U6X.js";
11
14
  import {
12
15
  LcmSummarizer
13
- } from "./chunk-7WWURLG6.js";
16
+ } from "./chunk-XPOOY35N.js";
14
17
  import {
15
18
  LcmArchive
16
- } from "./chunk-MDJURR27.js";
17
- import {
18
- LcmDag
19
- } from "./chunk-7N4KAIGN.js";
19
+ } from "./chunk-HW5EF6LV.js";
20
20
  import {
21
21
  log
22
22
  } from "./chunk-NU3CSQ4H.js";
@@ -513,4 +513,4 @@ export {
513
513
  extractLcmConfig,
514
514
  LcmEngine
515
515
  };
516
- //# sourceMappingURL=chunk-X5J3JZR3.js.map
516
+ //# sourceMappingURL=chunk-773DPI6T.js.map
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  runPostConsolidationMaterialize
3
- } from "./chunk-QIMFOCSH.js";
3
+ } from "./chunk-S5APSA3U.js";
4
4
  import {
5
5
  discoverMemoryExtensions,
6
6
  renderExtensionsBlock,
7
7
  resolveExtensionsRoot
8
8
  } from "./chunk-JLNBQWZ2.js";
9
+ import {
10
+ countRecallTokenOverlap,
11
+ normalizeRecallTokens
12
+ } from "./chunk-ZBJMUXZH.js";
9
13
  import {
10
14
  isSemanticConsolidationLlmOperator
11
15
  } from "./chunk-G7D6GZ5J.js";
12
16
  import {
13
17
  log
14
18
  } from "./chunk-NU3CSQ4H.js";
15
- import {
16
- countRecallTokenOverlap,
17
- normalizeRecallTokens
18
- } from "./chunk-ZBJMUXZH.js";
19
19
 
20
20
  // src/semantic-consolidation.ts
21
21
  function findSimilarClusters(memories, config) {
@@ -217,4 +217,4 @@ export {
217
217
  buildExtensionsBlockForConsolidation,
218
218
  materializeAfterSemanticConsolidation
219
219
  };
220
- //# sourceMappingURL=chunk-FVI5B7DE.js.map
220
+ //# sourceMappingURL=chunk-7ARKLLCV.js.map