@snoai/memory 1.7.0 → 1.7.1

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 (351) hide show
  1. package/README.md +1 -1
  2. package/dist/{_types-CUKHSRkS.d.ts → _types-CZDWRxyi.d.ts} +0 -2
  3. package/dist/{access-tracker-CFxRg7Bt.d.ts → access-tracker-CtqCTq9b.d.ts} +4 -6
  4. package/dist/{adapter-BFtbOOw3.d.ts → adapter-6irg6Ykg.d.ts} +3 -7
  5. package/dist/{adapter-CG-UbOjU.js → adapter-BVBeFvUc.js} +2 -4
  6. package/dist/{agent-llm-port-BlFrD2ro.d.ts → agent-llm-port-i_L33_v_.d.ts} +0 -2
  7. package/dist/{all-resources-Dij6l5h0.d.ts → all-resources-3zj0PED4.d.ts} +2 -4
  8. package/dist/{all-resources-BQK2ugjB.js → all-resources-BZc9QIAW.js} +41 -81
  9. package/dist/{ambient-learning-text-normalizer-_fH3LeuK.d.ts → ambient-learning-text-normalizer-H_idEjJi.d.ts} +0 -2
  10. package/dist/{ambient-learning-text-normalizer-CxjATmMp.js → ambient-learning-text-normalizer-dxAxf9oi.js} +3 -5
  11. package/dist/{atomic-extraction-reply-DF_S9ROg.js → atomic-extraction-reply-CoxIGLmU.js} +6 -9
  12. package/dist/{atomic-extraction-skill-CcXmuCqL.js → atomic-extraction-skill-5lAqr8BM.js} +1 -2
  13. package/dist/{atomic-memory-extraction-pL1_58Kw.js → atomic-memory-extraction-CWMMWF2C.js} +27 -40
  14. package/dist/{atomic-memory-extraction-Bp7AWZqi.d.ts → atomic-memory-extraction-DcoaYWiS.d.ts} +6 -20
  15. package/dist/{b-profile-section-dictionary-provider-Buj_M-QA.d.ts → b-profile-section-dictionary-provider-BuzxMJtG.d.ts} +2 -6
  16. package/dist/{b-profile-section-dictionary-provider-BHkoNqgk.js → b-profile-section-dictionary-provider-DMGsJlYh.js} +3 -6
  17. package/dist/{best-effort-BPZSzKk0.d.ts → best-effort-DvyP9avp.d.ts} +0 -2
  18. package/dist/{calendar-instruction-CzqZbAPG.js → calendar-instruction-uK6xsrCt.js} +1 -2
  19. package/dist/{capture-policy-detector-3tDQkBi9.d.ts → capture-policy-detector-CEgDjHPq.d.ts} +1 -3
  20. package/dist/{capture-policy-detector-DaMfy9CZ.js → capture-policy-detector-DhNGhDw3.js} +5 -7
  21. package/dist/{classifier-CXQxJJPP.d.ts → classifier-DeFV9Zro.d.ts} +1 -5
  22. package/dist/client.d.ts +1 -3
  23. package/dist/client.js +4 -6
  24. package/dist/{coding-skin-AW1UPUPY.js → coding-skin-BnFryVac.js} +2 -4
  25. package/dist/coding-skin.d.ts +0 -4
  26. package/dist/coding-skin.js +1 -1
  27. package/dist/{config-BwUcq2zS.js → config-D6GJyMKz.js} +17 -34
  28. package/dist/{connection-D989FqGS.d.ts → connection-22Uywd-U.d.ts} +1 -6
  29. package/dist/{connection-BtK-3r-f.js → connection-H-_OZ-pP.js} +3 -5
  30. package/dist/{daily-log-generator-DEsiCs7o.js → daily-log-generator-DdzlaQYy.js} +8 -12
  31. package/dist/{daily-log-generator-CsQPHl4A.d.ts → daily-log-generator-IbaCpCH8.d.ts} +1 -5
  32. package/dist/{daily-spend-estimator-DiwzBlo1.d.ts → daily-spend-estimator-CKaQYiHB.d.ts} +0 -2
  33. package/dist/{data-bootstrap-Bl3lthzE.d.ts → data-bootstrap-Bf_VMTSc.d.ts} +0 -4
  34. package/dist/{data-bootstrap-P8sie9WA.js → data-bootstrap-Db6a7ASj.js} +1 -3
  35. package/dist/{data-paths-C7sNdqvP.d.ts → data-paths-CFwVskNd.d.ts} +0 -2
  36. package/dist/{derived-suppression-cache-CcANI-p7.d.ts → derived-suppression-cache-ByclOuKE.d.ts} +1 -7
  37. package/dist/diagnostic-encoder.d.ts +0 -2
  38. package/dist/diagnostic-encoder.js +2 -3
  39. package/dist/{embedding-provider-client-CELWtPgt.d.ts → embedding-provider-client-Bli3uXan.d.ts} +0 -4
  40. package/dist/{embedding-provider-client-CgpUK_1G.js → embedding-provider-client-ClgiYSD4.js} +4 -8
  41. package/dist/{entry-metadata-parser-BIVSMCIk.js → entry-metadata-parser-W53-Odqm.js} +1 -2
  42. package/dist/{error-D-wb-rZw.js → error-Dga5Ot1M.js} +1 -2
  43. package/dist/{error-signals-lMH2uAdV.js → error-signals-CqvwBBWn.js} +1 -2
  44. package/dist/{error-signals-D8_3vYu4.d.ts → error-signals-f0JhwtHI.d.ts} +0 -2
  45. package/dist/{errors-CeVRxf9V.d.ts → errors-Cqej5eCm.d.ts} +0 -2
  46. package/dist/{extraction-text-sanitizer-B_AhIecT.d.ts → extraction-text-sanitizer-D_7Ogceg.d.ts} +0 -2
  47. package/dist/{i18n-text-DbD6Qify.d.ts → i18n-text-CqS4mUit.d.ts} +0 -2
  48. package/dist/{index-Df9420Pl.d.ts → index-B0iQL0Kp.d.ts} +3 -15
  49. package/dist/{index-DPfJrOFD.d.ts → index-B3H1zNbk.d.ts} +2 -38
  50. package/dist/{index-CJrMFlAU.d.ts → index-oFJyQfvq.d.ts} +0 -2
  51. package/dist/index.d.ts +12 -14
  52. package/dist/index.js +18 -22
  53. package/dist/{intent-analyzer-B5XVrWwe.d.ts → intent-analyzer-DmeMSTrr.d.ts} +0 -2
  54. package/dist/internal/config/index.d.ts +1 -1
  55. package/dist/internal/config/index.js +1 -2
  56. package/dist/internal/config/plugin-config-schema.d.ts +1 -1
  57. package/dist/internal/config/plugin-config-schema.js +1 -2
  58. package/dist/internal/config/product-mode.d.ts +1 -1
  59. package/dist/internal/config/product-mode.js +1 -2
  60. package/dist/internal/config/settings.d.ts +1 -1
  61. package/dist/internal/config/settings.js +3 -4
  62. package/dist/internal/config/skill-categories.d.ts +1 -3
  63. package/dist/internal/config/skill-categories.js +1 -2
  64. package/dist/internal/config/skin-defaults.d.ts +1 -3
  65. package/dist/internal/config/skin-defaults.js +1 -2
  66. package/dist/internal/contract/discovery.d.ts +1 -3
  67. package/dist/internal/contract/discovery.js +2 -3
  68. package/dist/internal/contract/profile.d.ts +1 -1
  69. package/dist/internal/contract/profile.js +1 -2
  70. package/dist/internal/contract/routes.d.ts +1 -1
  71. package/dist/internal/contract/routes.js +1 -2
  72. package/dist/internal/engine/bindings/memory-cli-shared.d.ts +7 -9
  73. package/dist/internal/engine/bindings/memory-cli-shared.js +1 -2
  74. package/dist/internal/engine/bindings/memory-forget-tool.d.ts +1 -3
  75. package/dist/internal/engine/bindings/memory-forget-tool.js +2 -3
  76. package/dist/internal/engine/bindings/memory-list-tool.d.ts +1 -3
  77. package/dist/internal/engine/bindings/memory-list-tool.js +2 -3
  78. package/dist/internal/engine/bindings/memory-recall-tool.d.ts +1 -3
  79. package/dist/internal/engine/bindings/memory-recall-tool.js +3 -4
  80. package/dist/internal/engine/bindings/memory-reflection-resolve-tool.d.ts +1 -3
  81. package/dist/internal/engine/bindings/memory-reflection-resolve-tool.js +3 -4
  82. package/dist/internal/engine/bindings/memory-stats-tool.d.ts +1 -3
  83. package/dist/internal/engine/bindings/memory-stats-tool.js +3 -4
  84. package/dist/internal/engine/bindings/memory-store-tool.d.ts +1 -3
  85. package/dist/internal/engine/bindings/memory-store-tool.js +6 -7
  86. package/dist/internal/engine/bindings/memory-tool-access.d.ts +3 -5
  87. package/dist/internal/engine/bindings/memory-tool-access.js +2 -3
  88. package/dist/internal/engine/bindings/memory-tool-formatting.d.ts +1 -3
  89. package/dist/internal/engine/bindings/memory-tool-formatting.js +2 -3
  90. package/dist/internal/engine/bindings/memory-tool-results.d.ts +3 -5
  91. package/dist/internal/engine/bindings/memory-tool-results.js +2 -3
  92. package/dist/internal/engine/bindings/memory-tool-schemas.d.ts +9 -11
  93. package/dist/internal/engine/bindings/memory-tool-schemas.js +2 -3
  94. package/dist/internal/engine/bindings/memory-update-tool.d.ts +1 -3
  95. package/dist/internal/engine/bindings/memory-update-tool.js +5 -6
  96. package/dist/internal/engine/bindings/sno-station-mem-ambient-learning-hook.d.ts +7 -9
  97. package/dist/internal/engine/bindings/sno-station-mem-ambient-learning-hook.js +8 -9
  98. package/dist/internal/engine/bindings/sno-station-mem-auto-recall-hook.d.ts +7 -9
  99. package/dist/internal/engine/bindings/sno-station-mem-auto-recall-hook.js +6 -7
  100. package/dist/internal/engine/bindings/sno-station-mem-hook-types.d.ts +1 -3
  101. package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.d.ts +8 -10
  102. package/dist/internal/engine/bindings/sno-station-mem-insight-distill-factory.js +4 -5
  103. package/dist/internal/engine/bindings/sno-station-mem-message-transcript.d.ts +2 -4
  104. package/dist/internal/engine/bindings/sno-station-mem-message-transcript.js +5 -6
  105. package/dist/internal/engine/bindings/sno-station-mem-reset-hook.d.ts +6 -8
  106. package/dist/internal/engine/bindings/sno-station-mem-reset-hook.js +1 -2
  107. package/dist/internal/engine/bindings/sno-station-mem-runtime-mode.d.ts +2 -4
  108. package/dist/internal/engine/bindings/sno-station-mem-runtime-mode.js +4 -5
  109. package/dist/internal/engine/bindings/sno-station-mem-session-state.d.ts +1 -3
  110. package/dist/internal/engine/bindings/sno-station-mem-session-state.js +1 -2
  111. package/dist/internal/engine/eval/trace.d.ts +1 -1
  112. package/dist/internal/engine/eval/trace.js +1 -2
  113. package/dist/internal/engine/extraction/ambient-learning-text-normalizer.d.ts +1 -1
  114. package/dist/internal/engine/extraction/ambient-learning-text-normalizer.js +1 -2
  115. package/dist/internal/engine/extraction/atomic-memory-extraction.d.ts +1 -1
  116. package/dist/internal/engine/extraction/atomic-memory-extraction.js +1 -2
  117. package/dist/internal/engine/extraction/b-profile-section-dictionary-provider.d.ts +1 -1
  118. package/dist/internal/engine/extraction/b-profile-section-dictionary-provider.js +1 -2
  119. package/dist/internal/engine/extraction/b-profile-section-rekey.d.ts +6 -8
  120. package/dist/internal/engine/extraction/b-profile-section-rekey.js +4 -5
  121. package/dist/internal/engine/extraction/capture-policy-detector.d.ts +1 -1
  122. package/dist/internal/engine/extraction/capture-policy-detector.js +1 -2
  123. package/dist/internal/engine/extraction/embedding-provider-client.d.ts +1 -1
  124. package/dist/internal/engine/extraction/embedding-provider-client.js +1 -2
  125. package/dist/internal/engine/extraction/extraction-text-sanitizer.d.ts +1 -1
  126. package/dist/internal/engine/extraction/extraction-text-sanitizer.js +3 -4
  127. package/dist/internal/engine/extraction/memory-metadata-codec.d.ts +2 -2
  128. package/dist/internal/engine/extraction/memory-metadata-codec.js +1 -2
  129. package/dist/internal/engine/extraction/memory-temporality-classifier.d.ts +1 -1
  130. package/dist/internal/engine/extraction/memory-temporality-classifier.js +1 -2
  131. package/dist/internal/engine/i18n/all-resources.d.ts +1 -1
  132. package/dist/internal/engine/i18n/all-resources.js +1 -2
  133. package/dist/internal/engine/i18n/locales.d.ts +1 -1
  134. package/dist/internal/engine/i18n/locales.js +1 -2
  135. package/dist/internal/engine/i18n/res/_types.d.ts +1 -1
  136. package/dist/internal/engine/i18n/res/_types.js +1 -2
  137. package/dist/internal/engine/observability/adapter.d.ts +1 -1
  138. package/dist/internal/engine/observability/adapter.js +1 -2
  139. package/dist/internal/engine/observability/best-effort.d.ts +1 -1
  140. package/dist/internal/engine/observability/best-effort.js +1 -2
  141. package/dist/internal/engine/observability/early-diagnostics.js +1 -2
  142. package/dist/internal/engine/observability/memory-snapshot.d.ts +1 -1
  143. package/dist/internal/engine/observability/memory-snapshot.js +1 -2
  144. package/dist/internal/engine/observability/observable-embedder.d.ts +1 -1
  145. package/dist/internal/engine/observability/observable-embedder.js +2 -3
  146. package/dist/internal/engine/observability/observable-llm-client.d.ts +1 -1
  147. package/dist/internal/engine/observability/observable-llm-client.js +2 -3
  148. package/dist/internal/engine/observability/observable-memory-store.d.ts +1 -1
  149. package/dist/internal/engine/observability/observable-memory-store.js +4 -5
  150. package/dist/internal/engine/observability/observable-retriever.d.ts +1 -1
  151. package/dist/internal/engine/observability/observable-retriever.js +4 -5
  152. package/dist/internal/engine/observability/runtime-diagnostics.d.ts +2 -4
  153. package/dist/internal/engine/observability/runtime-diagnostics.js +6 -7
  154. package/dist/internal/engine/observability/session-registry.d.ts +1 -1
  155. package/dist/internal/engine/observability/session-registry.js +1 -2
  156. package/dist/internal/engine/observability/version-metadata.d.ts +1 -3
  157. package/dist/internal/engine/observability/version-metadata.js +1 -2
  158. package/dist/internal/engine/operations/daily-spend-estimator.d.ts +1 -1
  159. package/dist/internal/engine/operations/daily-spend-estimator.js +2 -3
  160. package/dist/internal/engine/operations/learning-file-maintenance.d.ts +1 -1
  161. package/dist/internal/engine/operations/learning-file-maintenance.js +3 -4
  162. package/dist/internal/engine/operations/memory-tier-promoter.d.ts +1 -1
  163. package/dist/internal/engine/operations/memory-tier-promoter.js +1 -2
  164. package/dist/internal/engine/operations/runtime-audit-log.d.ts +2 -2
  165. package/dist/internal/engine/operations/runtime-audit-log.js +1 -1
  166. package/dist/internal/engine/provider/canonical-memory-corpus.d.ts +2 -4
  167. package/dist/internal/engine/provider/canonical-memory-corpus.js +2 -3
  168. package/dist/internal/engine/provider/provider-registration.d.ts +7 -9
  169. package/dist/internal/engine/provider/provider-registration.js +1 -2
  170. package/dist/internal/engine/provider/provider-row-renderer.d.ts +2 -4
  171. package/dist/internal/engine/provider/provider-row-renderer.js +2 -3
  172. package/dist/internal/engine/provider/provider-types.d.ts +1 -1
  173. package/dist/internal/engine/reflection/daily-log-generator.d.ts +1 -1
  174. package/dist/internal/engine/reflection/daily-log-generator.js +1 -2
  175. package/dist/internal/engine/reflection/reflection-command-hooks.d.ts +1 -1
  176. package/dist/internal/engine/reflection/reflection-command-hooks.js +1 -2
  177. package/dist/internal/engine/reflection/reflection-deps.d.ts +1 -1
  178. package/dist/internal/engine/reflection/reflection-embedded-generator.d.ts +1 -1
  179. package/dist/internal/engine/reflection/reflection-embedded-generator.js +1 -2
  180. package/dist/internal/engine/reflection/reflection-injection-hooks.d.ts +1 -1
  181. package/dist/internal/engine/reflection/reflection-injection-hooks.js +3 -4
  182. package/dist/internal/engine/reflection/reflection-lifecycle-hooks.d.ts +1 -1
  183. package/dist/internal/engine/reflection/reflection-lifecycle-hooks.js +3 -4
  184. package/dist/internal/engine/reflection/strategy-hook-runner.d.ts +3 -3
  185. package/dist/internal/engine/reflection/strategy-hook-runner.js +2 -2
  186. package/dist/internal/engine/rem/classifier.d.ts +1 -1
  187. package/dist/internal/engine/rem/classifier.js +1 -2
  188. package/dist/internal/engine/rem/index.d.ts +3 -3
  189. package/dist/internal/engine/rem/index.js +18 -36
  190. package/dist/internal/engine/rem/types.d.ts +1 -1
  191. package/dist/internal/engine/rem/types.js +1 -2
  192. package/dist/internal/engine/retrieval/access-tracker.d.ts +1 -1
  193. package/dist/internal/engine/retrieval/access-tracker.js +1 -2
  194. package/dist/internal/engine/retrieval/intent-analyzer.d.ts +1 -1
  195. package/dist/internal/engine/retrieval/intent-analyzer.js +1 -2
  196. package/dist/internal/engine/retrieval/retrieval-gate.d.ts +1 -1
  197. package/dist/internal/engine/retrieval/retrieval-gate.js +1 -2
  198. package/dist/internal/engine/retrieval/retriever.d.ts +1 -1
  199. package/dist/internal/engine/retrieval/retriever.js +1 -2
  200. package/dist/internal/engine/security/memory-scope-policy.d.ts +1 -1
  201. package/dist/internal/engine/security/memory-scope-policy.js +1 -2
  202. package/dist/internal/engine/security/redact.d.ts +1 -1
  203. package/dist/internal/engine/security/redact.js +1 -2
  204. package/dist/internal/engine/security/scopes.d.ts +2 -2
  205. package/dist/internal/engine/security/scopes.js +2 -2
  206. package/dist/internal/engine/shared/errors.d.ts +1 -1
  207. package/dist/internal/engine/shared/errors.js +1 -2
  208. package/dist/internal/engine/shared/i18n-text.d.ts +1 -1
  209. package/dist/internal/engine/shared/i18n-text.js +1 -2
  210. package/dist/internal/engine/shared/iso-date-time.d.ts +1 -3
  211. package/dist/internal/engine/shared/iso-date-time.js +1 -2
  212. package/dist/internal/engine/shared/lru.d.ts +1 -1
  213. package/dist/internal/engine/shared/lru.js +1 -2
  214. package/dist/internal/engine/shared/memory-kind-policy.d.ts +1 -1
  215. package/dist/internal/engine/shared/memory-kind-policy.js +1 -2
  216. package/dist/internal/engine/shared/paths.d.ts +2 -2
  217. package/dist/internal/engine/shared/paths.js +1 -2
  218. package/dist/internal/engine/shared/types.d.ts +2 -2
  219. package/dist/internal/engine/shared/types.js +2 -3
  220. package/dist/internal/engine/shared/utils.d.ts +1 -1
  221. package/dist/internal/engine/shared/utils.js +1 -2
  222. package/dist/internal/engine/telemetry/memory-telemetry-api.d.ts +5 -9
  223. package/dist/internal/engine/telemetry/memory-telemetry-api.js +6 -8
  224. package/dist/internal/engine/telemetry/memory-telemetry-observability.d.ts +2 -4
  225. package/dist/internal/engine/telemetry/memory-telemetry-observability.js +1 -2
  226. package/dist/internal/engine/telemetry/memory-telemetry-outbox.d.ts +1 -1
  227. package/dist/internal/engine/telemetry/memory-telemetry-outbox.js +4 -5
  228. package/dist/internal/engine/telemetry/memory-telemetry-types.d.ts +1 -1
  229. package/dist/internal/engine/telemetry/memory-telemetry-types.js +1 -2
  230. package/dist/internal/engine/telemetry/observe-ledger.d.ts +3 -5
  231. package/dist/internal/engine/telemetry/observe-ledger.js +2 -3
  232. package/dist/internal/model/agent-llm-port.d.ts +1 -1
  233. package/dist/internal/model/llm-client.d.ts +2 -2
  234. package/dist/internal/model/llm-client.js +2 -2
  235. package/dist/internal/model/llm-failure.d.ts +1 -3
  236. package/dist/internal/model/llm-failure.js +1 -2
  237. package/dist/internal/model/llm-mode-routing.d.ts +1 -3
  238. package/dist/internal/model/llm-mode-routing.js +2 -3
  239. package/dist/internal/store/atomic-memory-cutover-sql.d.ts +2 -4
  240. package/dist/internal/store/atomic-memory-cutover-sql.js +2 -3
  241. package/dist/internal/store/connection.d.ts +1 -1
  242. package/dist/internal/store/connection.js +1 -2
  243. package/dist/internal/store/data-bootstrap.d.ts +1 -1
  244. package/dist/internal/store/data-bootstrap.js +1 -2
  245. package/dist/internal/store/data-paths.d.ts +1 -1
  246. package/dist/internal/store/data-paths.js +1 -2
  247. package/dist/internal/store/maintenance.d.ts +4 -6
  248. package/dist/internal/store/maintenance.js +18 -25
  249. package/dist/internal/store/memory-kinds-cutover-migrator.d.ts +1 -3
  250. package/dist/internal/store/memory-kinds-cutover-migrator.js +4 -5
  251. package/dist/internal/store/migrations.d.ts +2 -4
  252. package/dist/internal/store/migrations.js +2 -3
  253. package/dist/internal/store/sqlite-runtime.d.ts +1 -1
  254. package/dist/internal/store/sqlite-runtime.js +2 -3
  255. package/dist/internal/store/store.d.ts +2 -2
  256. package/dist/internal/store/store.js +1 -2
  257. package/dist/{learning-file-maintenance-9b-Ut6Kv.d.ts → learning-file-maintenance-ZT6kHwb1.d.ts} +0 -2
  258. package/dist/{llm-client-nWW1o1F6.d.ts → llm-client-Bar23wPq.d.ts} +1 -5
  259. package/dist/{llm-client-Dq9FZPdC.js → llm-client-BtbX4af4.js} +8 -12
  260. package/dist/{locales-JxGmkG6t.d.ts → locales-CCZtQJq7.d.ts} +0 -2
  261. package/dist/{log-site-catalog.generated-Wze-GrOG.js → log-site-catalog.generated-Dtiih6m2.js} +3 -5
  262. package/dist/{lru-DyoaTyIs.d.ts → lru-DYiuPJFA.d.ts} +0 -2
  263. package/dist/memdump.d.ts +1 -3
  264. package/dist/memdump.js +1 -2
  265. package/dist/{memory-entry-projector-B36Nwsi_.js → memory-entry-projector-CkoEuLv6.js} +17 -30
  266. package/dist/{memory-kind-policy-BMebgugU.d.ts → memory-kind-policy-BRjhwhSl.d.ts} +1 -3
  267. package/dist/{memory-metadata-codec-H8BniJM3.d.ts → memory-metadata-codec-CcYw0t6c.d.ts} +1 -7
  268. package/dist/{memory-metadata-codec-DL1sbJiN.js → memory-metadata-codec-Cglikqj8.js} +4 -8
  269. package/dist/{memory-runtime-B4A1t5DO.js → memory-runtime-B9fG-sNo.js} +104 -204
  270. package/dist/{memory-scope-policy-1gg5QlWZ.d.ts → memory-scope-policy-4WfFFs_H.d.ts} +0 -4
  271. package/dist/{memory-scope-policy--TiLZnrE.js → memory-scope-policy-Dg2LHZ25.js} +3 -6
  272. package/dist/{memory-snapshot-CKnQovB5.d.ts → memory-snapshot-8RxJpqig.d.ts} +3 -5
  273. package/dist/{memory-source-order-YMRoeDLd.js → memory-source-order-BTo_ix2y.js} +1 -2
  274. package/dist/{memory-store-base-BHYXgsCq.d.ts → memory-store-base-CHBfMmZb.d.ts} +11 -21
  275. package/dist/{memory-store-shared-pOb59ScU.js → memory-store-shared-B-zOxk_Q.js} +4 -6
  276. package/dist/{memory-store-write-validation-B_hDG2zf.js → memory-store-write-validation-BbvoN3Li.js} +4 -7
  277. package/dist/{memory-telemetry-incidents-BWA9kcZx.js → memory-telemetry-incidents-Dp8GVD2Q.js} +1 -2
  278. package/dist/{memory-telemetry-metadata-CA7W8tK6.js → memory-telemetry-metadata-PMKWCAbj.js} +1 -2
  279. package/dist/{memory-telemetry-outbox-ddTdImt7.d.ts → memory-telemetry-outbox-D-L9c3Nw.d.ts} +2 -4
  280. package/dist/{memory-telemetry-receipts-MAJecvXQ.d.ts → memory-telemetry-receipts-Boj2CE16.d.ts} +1 -5
  281. package/dist/{memory-telemetry-receipts-cjIQGwdp.js → memory-telemetry-receipts-ComlCOro.js} +2 -4
  282. package/dist/{memory-telemetry-types-CufVmrCs.d.ts → memory-telemetry-types-Bg8U0Drl.d.ts} +0 -2
  283. package/dist/{memory-temporality-classifier-CHcnOT5T.js → memory-temporality-classifier-Bm0EiCN8.js} +7 -9
  284. package/dist/{memory-temporality-classifier-Wi6WWeAj.d.ts → memory-temporality-classifier-HI9KeEsM.d.ts} +1 -3
  285. package/dist/{memory-tier-promoter-m60-RlAj.d.ts → memory-tier-promoter-CqNT2qFj.d.ts} +1 -3
  286. package/dist/{memory-tool-dependencies-CAVm0Sy4.js → memory-tool-dependencies-BxVJ-bHs.js} +6 -6
  287. package/dist/memory-tool-dependencies-KsEWfLkV.d.ts +14 -0
  288. package/dist/{model-call-table-DjfbmUDl.js → model-call-table-BxGwmwv0.js} +2 -3
  289. package/dist/{model-reply-text-CKopStP2.js → model-reply-text-C7jEWDXG.js} +2 -4
  290. package/dist/{observable-embedder-0FwxJMhJ.d.ts → observable-embedder-DunGMyQg.d.ts} +2 -4
  291. package/dist/{observable-llm-client-DY7w1Fj1.d.ts → observable-llm-client-D_mOM5Pn.d.ts} +3 -5
  292. package/dist/{observable-memory-store-C25Q_hoW.d.ts → observable-memory-store-DUhat-p3.d.ts} +5 -7
  293. package/dist/{observable-retriever-Cs9Bwzq6.d.ts → observable-retriever-7TmJk1HE.d.ts} +6 -8
  294. package/dist/{operation-cancellation-QcwC4mDX.js → operation-cancellation-mqfQz0ka.js} +1 -2
  295. package/dist/paths-BySyy_eq.d.ts +1 -0
  296. package/dist/{plugin-config-observe-schema-ue9XxUj_.js → plugin-config-observe-schema-CwHVuVhu.js} +2 -3
  297. package/dist/{plugin-config-schema-DQh5njrS.d.ts → plugin-config-schema-DO4FhsYc.d.ts} +4 -24
  298. package/dist/{plugin-config-schema-D-IoHmis.js → plugin-config-schema-sJbkVY0-.js} +8 -14
  299. package/dist/{profile-CcvVR6K8.d.ts → profile-nVQCcv-0.d.ts} +1 -3
  300. package/dist/{profile-section-writer-3apndAJu.js → profile-section-writer-DSX6R3GF.js} +10 -15
  301. package/dist/{provider-registration-qLSA9CQl.js → provider-registration-lujpiuef.js} +5 -8
  302. package/dist/{provider-runtime-types-DFhtdA6d.d.ts → provider-runtime-types-peajl6V-.d.ts} +0 -2
  303. package/dist/{provider-types-CZGm6v88.d.ts → provider-types-DIU9efEA.d.ts} +1 -3
  304. package/dist/{redact-BTIZcHQL.d.ts → redact-BnUxXQUE.d.ts} +0 -2
  305. package/dist/{reflection-command-hooks-BRLqVNCi.d.ts → reflection-command-hooks-CvkTlbOa.d.ts} +5 -7
  306. package/dist/{reflection-command-hooks-B9UENMGV.js → reflection-command-hooks-Dyckr_Ma.js} +11 -14
  307. package/dist/{reflection-deps-C0TJ-gpU.d.ts → reflection-deps-AqE-y4Ba.d.ts} +6 -8
  308. package/dist/{reflection-embedded-generator-Cs59hWYr.d.ts → reflection-embedded-generator-BJol6by2.d.ts} +6 -8
  309. package/dist/{reflection-embedded-generator-Do_r_LbU.js → reflection-embedded-generator-i8KHqMpr.js} +5 -8
  310. package/dist/{reflection-injection-hooks-Cy4bRemm.d.ts → reflection-injection-hooks-C3PeK3QM.d.ts} +7 -11
  311. package/dist/{reflection-lifecycle-hooks-C-lf00DB.d.ts → reflection-lifecycle-hooks-Cjvwic3J.d.ts} +4 -6
  312. package/dist/{relation-dictionary-Cev1kyLe.js → relation-dictionary-QVBewRQ1.js} +3 -6
  313. package/dist/release-download.d.ts +1 -3
  314. package/dist/release-download.js +1 -2
  315. package/dist/{relevant-memories-context-m8nuFZcM.js → relevant-memories-context-CvMB_zj8.js} +1 -2
  316. package/dist/rem-batch-executor-BSWXFOLH.js +1 -0
  317. package/dist/{rem-consumer-retrieval-BhS1ivcd.js → rem-consumer-retrieval-DXeqknml.js} +3 -5
  318. package/dist/{rem-trigger-pg_cCp5U.js → rem-trigger-BaJa5FS0.js} +170 -339
  319. package/dist/{resolver-Dy-hnjCR.js → resolver-DQ47zbPS.js} +2 -4
  320. package/dist/{results-BkMsHy7M.js → results-DERE8r4S.js} +2 -3
  321. package/dist/{retrieval-gate-Bx2Zg7jD.d.ts → retrieval-gate-XvDp3HuK.d.ts} +0 -2
  322. package/dist/{retriever-2RJYAvlD.d.ts → retriever-Cv-hwHpH.d.ts} +10 -22
  323. package/dist/{retriever-C54bXeDh.js → retriever-DRtPp86k.js} +12 -22
  324. package/dist/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  325. package/dist/{runtime-audit-log-DK6xAYxh.js → runtime-audit-log-4NJsojEj.js} +2 -4
  326. package/dist/{runtime-audit-log-D2Hqk_kl.d.ts → runtime-audit-log-CJK9iVX9.d.ts} +1 -3
  327. package/dist/{scopes-CtrY-YQ3.d.ts → scopes-BcdyFdfw.d.ts} +1 -5
  328. package/dist/{scopes-a4Kly9n7.js → scopes-DQjbRC2q.js} +2 -3
  329. package/dist/{server-CByyXSvp.js → server-DPd3Xef2.js} +10 -15
  330. package/dist/{session-registry-DBoE7AvZ.d.ts → session-registry-Dft8oCDg.d.ts} +0 -2
  331. package/dist/sidecar/main.js +3 -4
  332. package/dist/{signed-registry-constants-Bv0fgZ8Q.d.ts → signed-registry-constants-BfycrCI1.d.ts} +0 -2
  333. package/dist/{signed-registry-constants-yq3DlG3B.js → signed-registry-constants-CO2vv_QJ.js} +1 -2
  334. package/dist/{sno-station-mem-runtime-dependencies-CgNS1dIM.js → sno-station-mem-runtime-dependencies-DITNvfkR.js} +14 -14
  335. package/dist/sno-station-mem-runtime-dependencies-DorPRtTM.d.ts +29 -0
  336. package/dist/{sqlite-runtime-L_ywirTm.d.ts → sqlite-runtime-Cea2knhj.d.ts} +0 -2
  337. package/dist/{store-Bz0y76cJ.d.ts → store-AGtE-n72.d.ts} +4 -14
  338. package/dist/{store-DNgKOGWP.js → store-YX1_c1NH.js} +44 -76
  339. package/dist/{strategy-hook-runner-Bg6rBY71.js → strategy-hook-runner-CwqZ1orf.js} +5 -7
  340. package/dist/{strategy-hook-runner-vbrWiDbK.d.ts → strategy-hook-runner-DqJpzS9C.d.ts} +7 -9
  341. package/dist/{token-counter-BD1f48Km.js → token-counter-N9I9iWq1.js} +1 -2
  342. package/dist/{trace-C1JxMfs-.d.ts → trace-CX26YO5M.d.ts} +0 -2
  343. package/dist/{types-El7jViCz.d.ts → types-CMbBmMJB.d.ts} +1 -5
  344. package/dist/{types-pVomjzqR.d.ts → types-qOSF58Ck.d.ts} +0 -2
  345. package/dist/{unplaced-candidate-migration-BCcdQkcx.js → unplaced-candidate-migration-BFQqjIDP.js} +8 -14
  346. package/dist/{utils-CDw2ttQf.d.ts → utils-CdhxW1G9.d.ts} +0 -2
  347. package/package.json +1 -1
  348. package/dist/memory-tool-dependencies-D2fOC-KL.d.ts +0 -14
  349. package/dist/paths-obFSsJv3.d.ts +0 -1
  350. package/dist/rem-batch-executor-BUgNyYLv.js +0 -2
  351. package/dist/sno-station-mem-runtime-dependencies-ByI3b-wB.d.ts +0 -31
@@ -11,7 +11,7 @@ import { LRUCache } from "lru-cache";
11
11
  import { isLowercaseCanonicalUUIDv7 } from "@snoai/common-core";
12
12
  import { z } from "zod";
13
13
  import { CHUNKING_VERSION, DEFAULT_AGGREGATION_CONFIG, DEFAULT_CHUNK_CONFIG, HEAD_EXTRACT_MIN_CONTENT_TOKENS, HEAD_EXTRACT_OVERLAP_DROP_RATIO, HEAD_EXTRACT_TOKEN_BUDGET } from "@snoai/chunking";
14
- //#region src/contract/routes.ts
14
+ // src/contract/routes.ts
15
15
  const MEMORY_ROUTES = {
16
16
  init: {
17
17
  path: "/v1/init",
@@ -70,8 +70,7 @@ const MEMORY_ERROR_STATUS = {
70
70
  };
71
71
  const MEMORY_RECONNECT_INTERVAL_MS = 1e3;
72
72
  const MEMORY_DEFAULT_SKIN_ID = "default";
73
- //#endregion
74
- //#region ../embedder/dist/index.mjs
73
+ // ../embedder/dist/index.mjs
75
74
  /**
76
75
  * Shared embedding constants — single source of truth for all apps.
77
76
  * 1024-d is the ONLY supported dimension.
@@ -1215,8 +1214,7 @@ var LocalReranker = class {
1215
1214
  }
1216
1215
  }
1217
1216
  };
1218
- //#endregion
1219
- //#region config/index.ts
1217
+ // config/index.ts
1220
1218
  /**
1221
1219
  * Sno Station Memory centralized configuration.
1222
1220
  * Shared tunable constants for every memory skin.
@@ -1487,8 +1485,7 @@ const recallLifecycleSchema = z.object({
1487
1485
  * literal default object instead of re-parsing the schema each time.
1488
1486
  */
1489
1487
  const DEFAULT_RECALL_LIFECYCLE = recallLifecycleSchema.parse(void 0);
1490
- //#endregion
1491
- //#region src/engine/i18n/locales.ts
1488
+ // src/engine/i18n/locales.ts
1492
1489
  const SUPPORTED_LOCALES = [
1493
1490
  "en",
1494
1491
  "de",
@@ -1504,8 +1501,7 @@ const SUPPORTED_SET = new Set(SUPPORTED_LOCALES);
1504
1501
  function isSupportedLocale(value) {
1505
1502
  return SUPPORTED_SET.has(value);
1506
1503
  }
1507
- //#endregion
1508
- //#region config/plugin-config-mode-schema.ts
1504
+ // config/plugin-config-mode-schema.ts
1509
1505
  /**
1510
1506
  * Product LLM modes, tier-ordered: Local First (selected calls on host) → Agent
1511
1507
  * Native (every call borrows the host agent's model) → REM Enhanced (top
@@ -1529,8 +1525,7 @@ const llmRoutingConfigSchema = z.object({
1529
1525
  language: z.enum(SUPPORTED_LOCALES).default("en"),
1530
1526
  modelCalls: modelCallsConfigSchema
1531
1527
  }).strict();
1532
- //#endregion
1533
- //#region config/plugin-config-embedding-schema.ts
1528
+ // config/plugin-config-embedding-schema.ts
1534
1529
  const localEmbedSessionOptionsSchema = z.object({
1535
1530
  graphOptimizationLevel: z.enum([
1536
1531
  "disabled",
@@ -1581,8 +1576,7 @@ const embeddingConfigSchema = z.object({
1581
1576
  /** Enable text chunking for long passages (default: true) */
1582
1577
  chunking: z.boolean().default(true)
1583
1578
  }).prefault({});
1584
- //#endregion
1585
- //#region src/model/signed-registry-constants.ts
1579
+ // src/model/signed-registry-constants.ts
1586
1580
  /** Fixed signed, persisted, and host protocol values. Change only with their external authority. */
1587
1581
  const FIXED_EXTERNAL_VALUE_49 = "database contains both mem_claw_memories and nodix_memories";
1588
1582
  const FIXED_EXTERNAL_VALUE_51 = "PRAGMA table_info(mem_claw_memories)";
@@ -1662,16 +1656,14 @@ const PERSISTED_CANDIDATE_HASH_V1 = "mem-claw:unplaced-candidate:legacy:v1";
1662
1656
  const PERSISTED_CONTENT_HASH_V1 = "mem-claw:hash:v1";
1663
1657
  const PERSISTED_CONTENT_HASH_V3 = "mem-claw:hash:v3";
1664
1658
  const PERSISTED_PROVIDER_SYSTEM = "openclaw";
1665
- //#endregion
1666
- //#region src/model/llm-client-types.ts
1659
+ // src/model/llm-client-types.ts
1667
1660
  const LLM_PRESETS = [
1668
1661
  FIXED_MEMORY_SNO_AI_EXTRACT,
1669
1662
  FIXED_MEMORY_SNO_EXTRACT_CHAT,
1670
1663
  FIXED_MEMORY_SNO_EXTRACT_PROFILE,
1671
1664
  FIXED_MEMORY_SNO_CONFLICT_VERDICT
1672
1665
  ];
1673
- //#endregion
1674
- //#region config/plugin-config-feature-schema.ts
1666
+ // config/plugin-config-feature-schema.ts
1675
1667
  const sessionMemoryConfigSchema = z.object({
1676
1668
  enabled: z.boolean().default(true),
1677
1669
  messageCount: z.number().int().min(1).max(100).default(15)
@@ -1716,8 +1708,7 @@ const memoryReflectionConfigSchema = z.object({
1716
1708
  injectIntoPrompt: z.boolean().default(false),
1717
1709
  agentId: z.string().optional()
1718
1710
  }).prefault({});
1719
- //#endregion
1720
- //#region config/plugin-config-observe-schema.ts
1711
+ // config/plugin-config-observe-schema.ts
1721
1712
  const AGENT_IDS = [
1722
1713
  PERSISTED_PROVIDER_SYSTEM,
1723
1714
  FIXED_PROTOCOL_VALUE_70,
@@ -1770,8 +1761,7 @@ const observeConfigSchema = z.object({
1770
1761
  }).prefault({}).superRefine((value, ctx) => {
1771
1762
  if (value.enabled) validateObserveBaseUrl(value.baseUrl, ctx);
1772
1763
  });
1773
- //#endregion
1774
- //#region config/plugin-config-retrieval-schema.ts
1764
+ // config/plugin-config-retrieval-schema.ts
1775
1765
  const log = createLogger("sno-station-mem:config:retrieval");
1776
1766
  /** Published remote selections now run the existing local pipeline. */
1777
1767
  const rerankModeSchema = z.preprocess((value) => {
@@ -1827,8 +1817,7 @@ const retrievalConfigSchema = z.object({
1827
1817
  /** Hard cap: effective half-life <= baseHalfLife * maxHalfLifeMultiplier (default: 3) */
1828
1818
  maxHalfLifeMultiplier: z.number().min(1).max(10).default(3)
1829
1819
  }).prefault({});
1830
- //#endregion
1831
- //#region config/session-strategy.ts
1820
+ // config/session-strategy.ts
1832
1821
  /** @file session-strategy.ts
1833
1822
  * @purpose Defines session-memory strategy constants without importing plugin config schemas.
1834
1823
  * @boundary Shared literal values only; no schema or runtime registration dependencies.
@@ -1838,8 +1827,7 @@ const SESSION_STRATEGIES = [
1838
1827
  "systemSessionMemory",
1839
1828
  "none"
1840
1829
  ];
1841
- //#endregion
1842
- //#region config/plugin-config-schema.ts
1830
+ // config/plugin-config-schema.ts
1843
1831
  const scopesConfigSchema = z.object({
1844
1832
  default: z.string().default(DEFAULT_SCOPE),
1845
1833
  definitions: z.record(z.string(), z.object({
@@ -1931,8 +1919,7 @@ const pluginConfigSchema = z.object({
1931
1919
  profile: z.enum(ONBOARDING_PROFILES)
1932
1920
  }).strict().optional()
1933
1921
  }).strict();
1934
- //#endregion
1935
- //#region src/model/model-call-table.ts
1922
+ // src/model/model-call-table.ts
1936
1923
  const extract = {
1937
1924
  "local-first": "off",
1938
1925
  "agent-native": "host",
@@ -2542,8 +2529,7 @@ const MODEL_CALL_WORKLOAD = {
2542
2529
  function modelCallDestination(callId, mode, modelCalls) {
2543
2530
  return modelCalls[callId][mode];
2544
2531
  }
2545
- //#endregion
2546
- //#region config/settings.ts
2532
+ // config/settings.ts
2547
2533
  const destination = z.enum([
2548
2534
  "off",
2549
2535
  "host",
@@ -2776,8 +2762,7 @@ function settingsToPluginConfig(settings, usageClass) {
2776
2762
  } }
2777
2763
  });
2778
2764
  }
2779
- //#endregion
2780
- //#region src/contract/profile.ts
2765
+ // src/contract/profile.ts
2781
2766
  function getStateDir(defaultStateDir) {
2782
2767
  return path.resolve(process.env.SNO_PROFILE_DIR ?? defaultStateDir ?? path.join(homedir(), ".sno"));
2783
2768
  }
@@ -2812,8 +2797,7 @@ function getDiscoveryPath() {
2812
2797
  function getSidecarSocketPath() {
2813
2798
  return path.join(getStateDir(), "station", "sidecar.sock");
2814
2799
  }
2815
- //#endregion
2816
- //#region src/sidecar/config.ts
2800
+ // src/sidecar/config.ts
2817
2801
  /** @file config.ts
2818
2802
  * @purpose Centralizes the standalone REM sidecar's paths, protocol constants, and boot settings.
2819
2803
  * @boundary Environment and filesystem configuration for CLI discovery and local REM state.
@@ -2931,5 +2915,4 @@ function readMaintenanceOverrides() {
2931
2915
  volumeThreshold: positive(REM_VOLUME_THRESHOLD_ENV)
2932
2916
  };
2933
2917
  }
2934
- //#endregion
2935
2918
  export { FIXED_IDX_MEMORY_ACTIVE_TASK_CURRENT_REVISION as $, MEMORY_SHUTDOWN_TIMEOUT_MS as $n, FIXED_PROTOCOL_VALUE_79 as $t, modelCallDestination as A, DEFAULT_REFLECTION_ERROR_SCAN_MAX_CHARS as An, MEMORY_SKIN_HEADER as Ar, FIXED_MEMORY_PROFILE_RECOVERY_ENTRIES as At, FIXED_EXTERNAL_VALUE_49 as B, FTS_MERGE_INTERVAL_MS as Bn, FIXED_PROTOCOL_VALUE_63 as Bt, getSnoStationMemStateDir as C, CHUNK_OVERLAP_TOKENS as Cn, ensureModelDownloaded as Cr, FIXED_MEMORY_CHUNKS_MEM_FACET_IDX as Ct, settingsToPluginConfig as D, DEFAULT_IMPORTANCE as Dn, MEMORY_ERROR_STATUS as Dr, FIXED_MEMORY_MEMORIES_FACT_ID_INSERT_GUARD as Dt, defaultSettings as E, DEFAULT_BM25_WEIGHT as En, MEMORY_DEFAULT_SKIN_ID as Er, FIXED_MEMORY_MEMORIES as Et, observeConfigSchema as F, EMBEDDER_DIM as Fn, FIXED_MEMORY_SNO_AI_EXTRACT as Ft, FIXED_EXTERNAL_VALUE_55 as G, INTEGRITY_CHECK_INTERVAL_MS as Gn, FIXED_PROTOCOL_VALUE_68 as Gt, FIXED_EXTERNAL_VALUE_52 as H, HEAD_EXTRACT_OVERLAP_DROP_RATIO as Hn, FIXED_PROTOCOL_VALUE_65 as Ht, extractionConfigSchema as I, EMBEDDER_MODEL_DEFAULT as In, FIXED_MEMORY_SNO_EXTRACT_CHAT as It, FIXED_EXTERNAL_VALUE_58 as J, MAX_AGGREGATION_RESULT_TOKENS as Jn, FIXED_PROTOCOL_VALUE_74 as Jt, FIXED_EXTERNAL_VALUE_56 as K, INTRA_MEMORY_COSINE_THRESHOLD as Kn, FIXED_PROTOCOL_VALUE_69 as Kt, memoryReflectionConfigSchema as L, EMBEDDER_PROVIDER_DEFAULT as Ln, FIXED_MEMORY_SNO_EXTRACT_PROFILE as Lt, retrievalConfigSchema as M, DEFAULT_RERANK_TIMEOUT_MS as Mn, memoryMethod as Mr, FIXED_MEMORY_PROVIDER_PROJECT_AGENTS as Mt, isObserveAgentId as N, DEFAULT_SCOPE as Nn, FIXED_MEMORY_PROVIDER_PROJECT_MAPPINGS as Nt, MODEL_CALLS as O, DEFAULT_RECALL_LIFECYCLE as On, MEMORY_RECONNECT_INTERVAL_MS as Or, FIXED_MEMORY_MEMORIES_FACT_ID_UPDATE_GUARD as Ot, observeAgentId as P, DEFAULT_VECTOR_WEIGHT as Pn, FIXED_MEMORY_ROW_PATH_PATTERN as Pt, FIXED_IDX_MEMORY as Q, MAX_RECALLED_TODO_TOKENS as Qn, FIXED_PROTOCOL_VALUE_78 as Qt, selfImprovementConfigSchema as R, EVAL_QA_TRACES_FILENAME as Rn, FIXED_MEMORY_TASK_LIFECYCLE_COMMANDS as Rt, getSidecarSocketPath as S, CHUNK_MIN_TOKENS as Sn, LocalReranker as Sr, FIXED_MEMORY_CHUNKS_MEMORY_ID_IDX as St, readSettings as T, CHUNK_TOKENIZER_MODE as Tn, MEMORY_CANCEL_ON_DISCONNECT_HEADER as Tr, FIXED_MEMORY_EXTRACTION_TIMESTAMPS as Tt, FIXED_EXTERNAL_VALUE_53 as U, HEAD_EXTRACT_TOKEN_BUDGET as Un, FIXED_PROTOCOL_VALUE_66 as Ut, FIXED_EXTERNAL_VALUE_51 as V, HEAD_EXTRACT_MIN_CONTENT_TOKENS as Vn, FIXED_PROTOCOL_VALUE_64 as Vt, FIXED_EXTERNAL_VALUE_54 as W, IMPORTANCE_WEIGHT_BASE as Wn, FIXED_PROTOCOL_VALUE_67 as Wt, FIXED_EXTERNAL_VALUE_8 as X, MAX_CHUNK_FETCH_LIMIT as Xn, FIXED_PROTOCOL_VALUE_76 as Xt, FIXED_EXTERNAL_VALUE_62 as Y, MAX_CANDIDATE_POOL_SIZE as Yn, FIXED_PROTOCOL_VALUE_75 as Yt, FIXED_EXTERNAL_VALUE_9 as Z, MAX_LIST_LIMIT as Zn, FIXED_PROTOCOL_VALUE_77 as Zt, readRemTestHoldMs as _, BACKUP_MIN_FREE_DISK_RATIO as _n, CachedEmbeddingProvider as _r, FIXED_MEMORY_CHUNKS as _t, REM_MODEL_OUTPUT_TOKEN_CAP as a, PERSISTED_PROVIDER_SYSTEM as an, RECENCY_WEIGHT as ar, FIXED_IDX_MEMORY_MEMORIES_LANE_PROJECT as at, getPrincipal as b, CHUNKING_VERSION as bn, LOCAL_EMBEDDING_MODEL_REVISION as br, FIXED_MEMORY_CHUNKS_AU as bt, REM_SIDECAR_ORIGIN as c, SUPPORTED_LOCALES as cn, RETRIEVAL_STORAGE_CHUNK_PROFILE as cr, FIXED_IDX_MEMORY_MEMORIES_PROJECT_FACT_KEY_ACTIVE as ct, getRemDiscoveryPath as d, ADJACENCY_BONUS_PER_PAIR as dn, USAGE_EVENT_RETENTION_INTERVAL_MS as dr, FIXED_MEMORY_ACTIVE_TASK_EVIDENCE as dt, FIXED_VEC_MEMORY as en, MIN_RECALL_TOKEN_BUDGET as er, FIXED_IDX_MEMORY_ACTIVE_TASK_EVIDENCE_INSTANCE as et, getRemJobJournalPath as f, ATOMIC_CAPTURE_OUTPUT_TOKEN_BUDGET as fn, USAGE_OUTBOX_INTERVAL_MS as fr, FIXED_MEMORY_ACTIVE_TASK_INSTANCES as ft, readRemOperationalConfig as g, BACKUP_INTERVAL_MS as gn, recallLifecycleSchema as gr, FIXED_MEMORY_ACTIVE_TASK_TRANSITIONS as gt, readMaintenanceOverrides as h, ATOMIC_EXTRACTION_MAX_INPUT_TOKENS as hn, experimentMmrDisabled as hr, FIXED_MEMORY_ACTIVE_TASK_REVISIONS as ht, REM_JOBS_PATH_PREFIX as i, PERSISTED_CONTENT_HASH_V3 as in, PLANNER_STATISTICS_INTERVAL_MS as ir, FIXED_IDX_MEMORY_MEMORIES_FACT_ID as it, SESSION_STRATEGIES as j, DEFAULT_REFLECTION_SESSION_TTL_MS as jn, REM_SIDECAR_TOKEN_HEADER as jr, FIXED_MEMORY_PROVIDER_AGENT_MAPPINGS as jt, MODEL_CALL_WORKLOAD as k, DEFAULT_RECALL_TOKEN_BUDGET as kn, MEMORY_ROUTES as kr, FIXED_MEMORY_MIGRATION_MARKERS as kt, REM_SOURCE as l, isSupportedLocale as ln, SNO_OBSERVE_FLUSH_TIMEOUT_MS as lr, FIXED_IDX_MEMORY_MEMORIES_PROJECT_TIMESTAMP as lt, isRemTraceEnabled as m, ATOMIC_ENRICHMENT_OUTPUT_TOKEN_BUDGET as mn, experimentCandidatePoolOverride as mr, FIXED_MEMORY_ACTIVE_TASK_MIGRATION_MANIFESTS as mt, MEMORY_USAGE_FLUSH_INTERVAL_MS as n, PERSISTED_CANDIDATE_HASH_V1 as nn, MULTI_HIT_BONUS_CAP as nr, FIXED_IDX_MEMORY_MEMORIES_CATEGORY as nt, REM_RUN_PATH as o, embeddingConfigSchema as on, REFLECTION_SLICE_CACHE_TTL_MS as or, FIXED_IDX_MEMORY_MEMORIES_PROJECT as ot, getRemTraceLogPath as p, ATOMIC_CAPTURE_TIMEOUT_MS as pn, VECTOR_DIMENSION_DEFAULT as pr, FIXED_MEMORY_ACTIVE_TASK_MIGRATION_EVIDENCE as pt, FIXED_EXTERNAL_VALUE_57 as q, MAINTENANCE_TICK_MS as qn, FIXED_PROTOCOL_VALUE_73 as qt, REM_CORRELATION_ID_HEADER as r, PERSISTED_CONTENT_HASH_V1 as rn, MULTI_HIT_BONUS_PER_HIT as rr, FIXED_IDX_MEMORY_MEMORIES_CONTENT_HASH as rt, REM_SIDECAR_HOST as s, llmRoutingConfigSchema as sn, REM_TRIGGER_CHECK_INTERVAL_MS as sr, FIXED_IDX_MEMORY_MEMORIES_PROJECT_CONTENT_HASH as st, HEALTH_PATH as t, FIXED_VEC_MEMORY_CHUNKS as tn, MMR_LAMBDA as tr, FIXED_IDX_MEMORY_ACTIVE_TASK_INSTANCES_PROJECTION as tt, getRemChassisJournalPath as u, ADJACENCY_BONUS_CAP as un, TIME_DECAY_FLOOR as ur, FIXED_MEMORY as ut, SettingsUnavailableError as v, BONUS_TOTAL_INVARIANT as vn, LOCAL_EMBEDDING_CACHE_DIR_DEFAULT as vr, FIXED_MEMORY_CHUNKS_AD as vt, getStateDir as w, CHUNK_TARGET_TOKENS as wn, MEMORY_BODY_LIMIT_BYTES as wr, FIXED_MEMORY_CHUNKS_MEM_IDX as wt, getSettingsPath as x, CHUNK_MAX_TOKENS as xn, LocalEmbedProvider as xr, FIXED_MEMORY_CHUNKS_FTS as xt, getDiscoveryPath as y, CACHE_TTL_MS as yn, LOCAL_EMBEDDING_MODEL as yr, FIXED_MEMORY_CHUNKS_AI as yt, sessionMemoryConfigSchema as z, FORGET_QUERY_MIN_SCORE as zn, FIXED_MEMORY_UNPLACED_CANDIDATES as zt };
@@ -1,4 +1,4 @@
1
- import { o as SqliteRuntimeHandle, r as SqliteDatabaseLike } from "./sqlite-runtime-L_ywirTm.js";
1
+ import { o as SqliteRuntimeHandle, r as SqliteDatabaseLike } from "./sqlite-runtime-Cea2knhj.js";
2
2
  import { drizzle } from "drizzle-orm/better-sqlite3";
3
3
  import { SQLiteColumn, SQLiteTableWithColumns } from "drizzle-orm/sqlite-core";
4
4
  declare namespace schema_d_exports {
@@ -320,16 +320,12 @@ declare const nodixProfileRecoveryEntries: SQLiteTableWithColumns<{
320
320
  };
321
321
  dialect: "sqlite";
322
322
  }>;
323
- //#endregion
324
- //#region src/store/path-validation.d.ts
325
323
  /**
326
324
  * Validate and prepare the storage directory for the SQLite database file.
327
325
  * Resolves symlinks, creates missing directories, and checks write permissions.
328
326
  * Returns the resolved parent directory path on success, or throws a descriptive error.
329
327
  */
330
328
  declare function validateStoragePath(dbPath: string): string;
331
- //#endregion
332
- //#region src/store/connection.d.ts
333
329
  type RuntimeDrizzleDB = ReturnType<typeof drizzle<typeof schema_d_exports>>;
334
330
  type DrizzleDB = RuntimeDrizzleDB & {
335
331
  $client: SqliteDatabaseLike;
@@ -371,5 +367,4 @@ declare function loadStorageExtensions(sqlite: SqliteRuntimeHandle): void;
371
367
  declare function initDb(dbPath: string, vectorDim: number): DrizzleDB;
372
368
  /** Implements close db as the local SQLite connection setup operation. */
373
369
  declare function closeDb(db: DrizzleDB): void;
374
- //#endregion
375
370
  export { loadStorageExtensions as a, readChunkVecTableState as c, initDb as i, vecTableDdlHasPartitionKey as l, VecTableState as n, parseVecTableDimension as o, closeDb as r, readChunkVecTableDimension as s, DrizzleDB as t, validateStoragePath as u };
@@ -1,5 +1,5 @@
1
1
  import { StorageError } from "./internal/engine/shared/errors.js";
2
- import { a as schema_exports, i as migrateLegacyDatabaseNamespace, n as loadSqliteVecExtension, o as applyEntityNameKeyMigration, r as resolveSimpleTokenizerPath, t as migrateUnplacedCandidates } from "./unplaced-candidate-migration-BCcdQkcx.js";
2
+ import { a as schema_exports, i as migrateLegacyDatabaseNamespace, n as loadSqliteVecExtension, o as applyEntityNameKeyMigration, r as resolveSimpleTokenizerPath, t as migrateUnplacedCandidates } from "./unplaced-candidate-migration-BFQqjIDP.js";
3
3
  import { SqliteFileMissingError, openSqliteDatabase } from "./internal/store/sqlite-runtime.js";
4
4
  import { createLogger } from "@snoai/utils/logger";
5
5
  import { dirname, join } from "node:path";
@@ -7,7 +7,7 @@ import { accessSync, constants, existsSync, lstatSync, mkdirSync, realpathSync }
7
7
  import { fileURLToPath } from "node:url";
8
8
  import { drizzle } from "drizzle-orm/better-sqlite3";
9
9
  import { migrate } from "drizzle-orm/better-sqlite3/migrator";
10
- //#region src/store/path-validation.ts
10
+ // src/store/path-validation.ts
11
11
  /**
12
12
  * Validate and prepare the storage directory for the SQLite database file.
13
13
  * Resolves symlinks, creates missing directories, and checks write permissions.
@@ -41,8 +41,7 @@ function validateStoragePath(dbPath) {
41
41
  }
42
42
  return resolvedDir;
43
43
  }
44
- //#endregion
45
- //#region src/store/connection.ts
44
+ // src/store/connection.ts
46
45
  /** @file connection.ts
47
46
  * @purpose Creates and validates SQLite connections used by the memory store.
48
47
  * @boundary Filesystem safety, database pragmas, migrations, and runtime loading.
@@ -274,5 +273,4 @@ function ensureColumn(database, tableName, columnName, declaration) {
274
273
  if (database.prepare(`PRAGMA table_info(${tableName})`).all().some(({ name }) => name === columnName)) return;
275
274
  database.exec(`ALTER TABLE ${tableName} ADD COLUMN ${columnName} ${declaration}`);
276
275
  }
277
- //#endregion
278
276
  export { readChunkVecTableDimension as a, validateStoragePath as c, parseVecTableDimension as i, initDb as n, readChunkVecTableState as o, loadStorageExtensions as r, vecTableDdlHasPartitionKey as s, closeDb as t };
@@ -1,9 +1,9 @@
1
1
  import "./internal/config/index.js";
2
2
  import { redactSecrets } from "./internal/engine/security/redact.js";
3
- import { a as memoryOperationSignal, n as memoryFileWrite, t as checkMemoryOperation } from "./operation-cancellation-QcwC4mDX.js";
4
- import { n as RESOURCES_BY_LOCALE } from "./all-resources-BQK2ugjB.js";
5
- import { t as resolveLocale } from "./resolver-Dy-hnjCR.js";
6
- import { a as sha256Hex } from "./error-signals-lMH2uAdV.js";
3
+ import { a as memoryOperationSignal, n as memoryFileWrite, t as checkMemoryOperation } from "./operation-cancellation-mqfQz0ka.js";
4
+ import { n as RESOURCES_BY_LOCALE } from "./all-resources-BZc9QIAW.js";
5
+ import { t as resolveLocale } from "./resolver-DQ47zbPS.js";
6
+ import { a as sha256Hex } from "./error-signals-CqvwBBWn.js";
7
7
  import { chunk, countTokens } from "@snoai/chunking";
8
8
  import { createLogger } from "@snoai/utils/logger";
9
9
  import { basename, dirname, join } from "node:path";
@@ -11,7 +11,7 @@ import { appendFile, link, mkdir, readFile, readdir, stat, unlink, writeFile } f
11
11
  import { randomUUID } from "node:crypto";
12
12
  import "node:fs";
13
13
  import "node:readline";
14
- //#region src/engine/operations/session-summary-storage.ts
14
+ // src/engine/operations/session-summary-storage.ts
15
15
  const diagnosticLog$1 = createLogger("sno-station-mem:session-summary-storage");
16
16
  /** Implements sort file names by mtime desc as the local session summary storage operation. */
17
17
  async function sortFileNamesByMtimeDesc(dir, fileNames) {
@@ -48,8 +48,7 @@ function extractTextContent(content) {
48
48
  }
49
49
  return parts.length > 0 ? parts.join("\n") : null;
50
50
  }
51
- //#endregion
52
- //#region src/engine/reflection/reflection-prompt-input.ts
51
+ // src/engine/reflection/reflection-prompt-input.ts
53
52
  function prepareReflectionPromptInputs(conversation, maxInputChars) {
54
53
  const trimmed = conversation.trim();
55
54
  if (!trimmed) return [];
@@ -61,8 +60,7 @@ function prepareReflectionPromptInputs(conversation, maxInputChars) {
61
60
  maxTokens
62
61
  }).map((draft) => draft.chunkText);
63
62
  }
64
- //#endregion
65
- //#region src/engine/reflection/transient-generation-retry.ts
63
+ // src/engine/reflection/transient-generation-retry.ts
66
64
  const TRANSIENT_POLICIES = {
67
65
  transportReset: [
68
66
  /unexpected eof/i,
@@ -240,8 +238,7 @@ async function runWithReflectionTransientRetryOnce(params) {
240
238
  }
241
239
  }
242
240
  }
243
- //#endregion
244
- //#region src/engine/reflection/daily-log-generator.ts
241
+ // src/engine/reflection/daily-log-generator.ts
245
242
  /** @file daily-log-generator.ts
246
243
  * @purpose Runs reflection analysis and writes durable improvement-oriented records.
247
244
  * @boundary LLM prompts, reflection stores, retry handling, and learning extraction.
@@ -465,5 +462,4 @@ async function writeReflectionToFilesystem(params) {
465
462
  }
466
463
  throw new Error(`Failed to allocate unique reflection file for ${dateStr} ${timeCompact}`);
467
464
  }
468
- //#endregion
469
465
  export { generateReflectionText as a, shouldSkipReflectionMessage as c, ensureDailyLogFile as i, writeReflectionToFilesystem as l, buildReflectionFallbackText as n, readSessionConversationForReflection as o, buildReflectionPrompt as r, readSessionConversationWithResetFallback as s, REFLECTION_FALLBACK_MARKER as t, extractTextContent as u };
@@ -1,9 +1,6 @@
1
- import { t as ReflectionErrorSignal } from "./error-signals-D8_3vYu4.js";
2
- //#region src/engine/operations/session-summary-storage.d.ts
1
+ import { t as ReflectionErrorSignal } from "./error-signals-f0JhwtHI.js";
3
2
  /** Extracts text content from raw inputs while tolerating partial data. */
4
3
  declare function extractTextContent(content: unknown): string | null;
5
- //#endregion
6
- //#region src/engine/reflection/daily-log-generator.d.ts
7
4
  declare const REFLECTION_FALLBACK_MARKER = "(fallback) Reflection generation failed; storing minimal pointer only.";
8
5
  /**
9
6
  * Tests whether should skip reflection message without mutating reflection capture policy state.
@@ -69,5 +66,4 @@ type WriteReflectionFsParams = {
69
66
  * Persists reflection to filesystem through the single reflection capture policy write path.
70
67
  */
71
68
  declare function writeReflectionToFilesystem(params: WriteReflectionFsParams): Promise<string>;
72
- //#endregion
73
69
  export { buildReflectionFallbackText as a, generateReflectionText as c, shouldSkipReflectionMessage as d, writeReflectionToFilesystem as f, WriteReflectionFsParams as i, readSessionConversationForReflection as l, ReflectionGenerator as n, buildReflectionPrompt as o, extractTextContent as p, ReflectionResult as r, ensureDailyLogFile as s, REFLECTION_FALLBACK_MARKER as t, readSessionConversationWithResetFallback as u };
@@ -1,8 +1,6 @@
1
- //#region src/engine/operations/daily-spend-estimator.d.ts
2
1
  /**
3
2
  * Reads estimated spend today and applies daily spend accounting fallback behavior for missing
4
3
  * data.
5
4
  */
6
5
  declare function readEstimatedSpendToday(stateDir: string): Promise<number>;
7
- //#endregion
8
6
  export { readEstimatedSpendToday as t };
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- //#region src/store/install-manifest.d.ts
3
2
  /** Manifest shape, named so the schema can be annotated without restating it. */
4
3
  interface InstallManifestShape {
5
4
  schemaVersion: 1;
@@ -11,8 +10,6 @@ interface InstallManifestShape {
11
10
  /** Schema. No `lastSeenVersion` / `lastSeenAt`. */
12
11
  declare const InstallManifestSchema: z.ZodType<InstallManifestShape, unknown>;
13
12
  type InstallManifest = z.infer<typeof InstallManifestSchema>;
14
- //#endregion
15
- //#region src/store/data-bootstrap.d.ts
16
13
  interface BootstrapResult {
17
14
  dbPath: string;
18
15
  manifest: InstallManifest;
@@ -26,5 +23,4 @@ interface BootstrapResult {
26
23
  * 3. manifest missing, dir empty → fresh install.
27
24
  */
28
25
  declare function bootstrapDataLayout(storePath: string): BootstrapResult;
29
- //#endregion
30
26
  export { bootstrapDataLayout as n, BootstrapResult as t };
@@ -94,8 +94,7 @@ function freshInstallManifest(args) {
94
94
  dbPath: args.dbPath
95
95
  });
96
96
  }
97
- //#endregion
98
- //#region src/store/data-bootstrap.ts
97
+ // src/store/data-bootstrap.ts
99
98
  /** @file data-bootstrap.ts
100
99
  * @purpose Drive the boot flow: ensure data dir exists, probe
101
100
  * filesystem, then resolve or create the install manifest
@@ -168,5 +167,4 @@ function bootstrapDataLayout(storePath) {
168
167
  dataDir
169
168
  };
170
169
  }
171
- //#endregion
172
170
  export { bootstrapDataLayout as t };
@@ -1,4 +1,3 @@
1
- //#region src/store/data-paths.d.ts
2
1
  /** Typed boundary error for refuse-to-operate when data dir is on NFS/SMB/FUSE. */
3
2
  declare class NonLocalFilesystemError extends Error {
4
3
  readonly dir: string;
@@ -18,5 +17,4 @@ declare function getBackupsDir(): string;
18
17
  * only — Windows is out of v1 projectId.
19
18
  */
20
19
  declare function assertLocalFilesystem(dir: string): void;
21
- //#endregion
22
20
  export { getCostLogPath as a, getSnoStationMemDataDir as c, getBackupsDir as i, assertLocalFilesystem as n, getInstallManifestPath as o, getAuditLogPath as r, getKillswitchPath as s, NonLocalFilesystemError as t };
@@ -1,5 +1,4 @@
1
- import "./types-El7jViCz.js";
2
- //#region src/engine/reflection/reflection-line-loader.d.ts
1
+ import "./types-CMbBmMJB.js";
3
2
  interface ReflectionLineSource {
4
3
  line: string;
5
4
  rowId: string;
@@ -16,21 +15,16 @@ interface LoadedReflectionSlices {
16
15
  invariantSources: ReflectionLineSource[];
17
16
  derivedSources: ReflectionLineSource[];
18
17
  }
19
- //#endregion
20
- //#region src/engine/reflection/derived-line-cache.d.ts
21
18
  type ReflectionDerivedCacheEntry = {
22
19
  updatedAt: number;
23
20
  derived: string[];
24
21
  derivedSources?: ReflectionLineSource[];
25
22
  };
26
23
  type ReflectionDerivedCache = Map<string, ReflectionDerivedCacheEntry>;
27
- //#endregion
28
- //#region src/engine/reflection/derived-suppression-cache.d.ts
29
24
  type ReflectionDerivedSuppressionEntry = {
30
25
  updatedAt: number;
31
26
  until: number;
32
27
  reason: string;
33
28
  };
34
29
  type ReflectionDerivedSuppressionCache = Map<string, ReflectionDerivedSuppressionEntry>;
35
- //#endregion
36
30
  export { ReflectionDerivedCache as n, LoadedReflectionSlices as r, ReflectionDerivedSuppressionCache as t };
@@ -1,6 +1,4 @@
1
1
  import { DiagnosticInput, DiagnosticInput as DiagnosticInput$1, LogLevel, LogSource } from "@snoai/utils/log-encoder";
2
- //#region src/engine/observability/early-diagnostics.d.ts
3
2
  export declare function encodeDiagnostic(input: DiagnosticInput$1): string;
4
3
  export declare function writeEmergencyDiagnostic(input: DiagnosticInput$1): void;
5
- //#endregion
6
4
  export type { DiagnosticInput, LogLevel, LogSource };
@@ -1,6 +1,6 @@
1
- import { n as version, t as logSiteCatalog } from "./log-site-catalog.generated-Wze-GrOG.js";
1
+ import { n as version, t as logSiteCatalog } from "./log-site-catalog.generated-Dtiih6m2.js";
2
2
  import { diagnosticProcessInstanceId, encodeDiagnostic as encodeDiagnostic$1, writeEmergencyDiagnostic as writeEmergencyDiagnostic$1 } from "@snoai/utils/log-encoder";
3
- //#region src/engine/observability/early-diagnostics.ts
3
+ // src/engine/observability/early-diagnostics.ts
4
4
  function bindApplication(input) {
5
5
  const site = logSiteCatalog.sites[input.source.site_id];
6
6
  const matched = site?.file === input.source.file && site?.function === input.source.function;
@@ -25,5 +25,4 @@ function encodeDiagnostic(input) {
25
25
  function writeEmergencyDiagnostic(input) {
26
26
  writeEmergencyDiagnostic$1(bindApplication(input));
27
27
  }
28
- //#endregion
29
28
  export { encodeDiagnostic, writeEmergencyDiagnostic };
@@ -1,5 +1,4 @@
1
1
  import { LocalEmbedDtype, LocalEmbedSessionOptions } from "@snoai/embedder";
2
- //#region src/engine/extraction/embedding-provider-factory.d.ts
3
2
  type EmbeddingProviderKind = "local-onnx";
4
3
  interface EmbeddingConfig {
5
4
  /** Which provider to instantiate. Defaults to local-onnx. */
@@ -29,8 +28,6 @@ interface EmbeddingConfig {
29
28
  /** Enable text chunking for long passages (default: true) */
30
29
  chunking?: boolean;
31
30
  }
32
- //#endregion
33
- //#region src/engine/extraction/embedding-provider-client.d.ts
34
31
  declare class Embedder {
35
32
  private readonly provider;
36
33
  private readonly chunkingEnabled;
@@ -96,5 +93,4 @@ declare class Embedder {
96
93
  }
97
94
  /** Creates the embedder facade around the local ONNX provider. */
98
95
  declare function createEmbedder(config: EmbeddingConfig, stateDir: string): Embedder;
99
- //#endregion
100
96
  export { EmbeddingProviderKind as i, createEmbedder as n, EmbeddingConfig as r, Embedder as t };
@@ -4,7 +4,7 @@ import { chunk } from "@snoai/chunking";
4
4
  import { CachedEmbeddingProvider, LOCAL_EMBEDDING_CACHE_DIR_DEFAULT, LOCAL_EMBEDDING_MODEL, LOCAL_EMBEDDING_MODEL_REVISION, LocalEmbedProvider, LocalReranker, ensureModelDownloaded } from "@snoai/embedder";
5
5
  import { createLogger } from "@snoai/utils/logger";
6
6
  import { availableParallelism } from "node:os";
7
- //#region src/engine/extraction/embedding-provider-factory.ts
7
+ // src/engine/extraction/embedding-provider-factory.ts
8
8
  function resolveEmbeddingCacheDir(config) {
9
9
  return config.cacheDir || LOCAL_EMBEDDING_CACHE_DIR_DEFAULT;
10
10
  }
@@ -26,8 +26,7 @@ function buildProvider(config) {
26
26
  ...config.pooling !== void 0 ? { pooling: config.pooling } : {}
27
27
  });
28
28
  }
29
- //#endregion
30
- //#region src/engine/extraction/embedding-vector-aggregation.ts
29
+ // src/engine/extraction/embedding-vector-aggregation.ts
31
30
  /**
32
31
  * Compute L2-normalized weighted average of Float32Array vectors.
33
32
  * Weights are typically chunk char lengths so longer chunks contribute more.
@@ -52,8 +51,7 @@ function weightedAverageFloat32(vectors, weights, dim) {
52
51
  if (norm > 0) for (let j = 0; j < dim; j++) acc[j] = (acc[j] ?? 0) / norm;
53
52
  return Float32Array.from(acc);
54
53
  }
55
- //#endregion
56
- //#region src/engine/shared/token-bound.ts
54
+ // src/engine/shared/token-bound.ts
57
55
  /** @file token-bound.ts
58
56
  * @purpose Cuts text to a token budget under any monotonic token counter.
59
57
  * @boundary Pure text function; the caller supplies the counter.
@@ -80,8 +78,7 @@ function truncateToTokens(text, maxTokens, countTokens) {
80
78
  }
81
79
  return codePoints.slice(0, low).join("").trimEnd();
82
80
  }
83
- //#endregion
84
- //#region src/engine/extraction/embedding-provider-client.ts
81
+ // src/engine/extraction/embedding-provider-client.ts
85
82
  /** @file embedding-provider-client.ts
86
83
  * @purpose Adapts embedding providers to the plugin retrieval and storage contract.
87
84
  * @boundary Local ONNX embeddings, chunk sizing, and vector dimensions.
@@ -309,5 +306,4 @@ var Embedder = class {
309
306
  function createEmbedder(config, stateDir) {
310
307
  return new Embedder(config, stateDir);
311
308
  }
312
- //#endregion
313
309
  export { createEmbedder as n, Embedder as t };
@@ -1,4 +1,4 @@
1
- //#region src/engine/reflection/entry-metadata-parser.ts
1
+ // src/engine/reflection/entry-metadata-parser.ts
2
2
  /** @file entry-metadata-parser.ts
3
3
  * @purpose Defines metadata helpers for reflection provenance, severity, and grouping.
4
4
  * @boundary Reflection item storage, retry handling, and reporting surfaces.
@@ -16,5 +16,4 @@ function parseReflectionMetadata(metadataRaw) {
16
16
  return {};
17
17
  }
18
18
  }
19
- //#endregion
20
19
  export { parseReflectionMetadata as t };
@@ -1,4 +1,4 @@
1
- //#region src/contract/error.ts
1
+ // src/contract/error.ts
2
2
  const DEGRADED_REASONS = [
3
3
  "sidecar-unreachable",
4
4
  "sidecar-unresponsive",
@@ -19,5 +19,4 @@ var ContractError = class extends Error {
19
19
  this.name = "ContractError";
20
20
  }
21
21
  };
22
- //#endregion
23
22
  export { DEGRADED_REASONS as n, ContractError as t };
@@ -1,7 +1,7 @@
1
1
  import "./internal/config/index.js";
2
2
  import { redactSecrets } from "./internal/engine/security/redact.js";
3
3
  import { createHash } from "node:crypto";
4
- //#region src/engine/security/error-signals.ts
4
+ // src/engine/security/error-signals.ts
5
5
  /** @file error-signals.ts
6
6
  * @purpose Classifies error-like text patterns used by capture and retrieval heuristics.
7
7
  * @boundary Multilingual runtime regexes and operational signal extraction.
@@ -130,5 +130,4 @@ function createErrorSignalTracker(options = {}) {
130
130
  }
131
131
  };
132
132
  }
133
- //#endregion
134
133
  export { sha256Hex as a, normalizeErrorSignature as i, createErrorSignalTracker as n, summarizeErrorText as o, extractTextFromToolResult as r, containsErrorSignal as t };
@@ -1,4 +1,3 @@
1
- //#region src/engine/security/error-signals.d.ts
2
1
  type ReflectionErrorSignal = {
3
2
  at: number;
4
3
  toolName: string;
@@ -24,5 +23,4 @@ declare function createErrorSignalTracker(options?: CreateErrorSignalTrackerOpti
24
23
  clearSession: (sessionKey: string) => void;
25
24
  prune: (ttlMs: number, maxSessions: number) => void;
26
25
  };
27
- //#endregion
28
26
  export { createErrorSignalTracker as n, ReflectionErrorSignal as t };
@@ -1,4 +1,3 @@
1
- //#region src/engine/shared/errors.d.ts
2
1
  /** @file errors.ts
3
2
  * @purpose Defines typed plugin errors and stable codes for callers and CLI output.
4
3
  * @boundary Runtime boundaries, CLI error mapping, and test assertions.
@@ -45,5 +44,4 @@ declare class ConfigError extends SnoStationMemError {
45
44
  */
46
45
  constructor(message: string, cause?: unknown);
47
46
  }
48
- //#endregion
49
47
  export { StorageError as a, SnoStationMemError as i, EmbeddingError as n, RetrievalError as r, ConfigError as t };
@@ -1,4 +1,3 @@
1
- //#region src/engine/extraction/extraction-text-sanitizer.d.ts
2
1
  /**
3
2
  * Keeps a section's clause list inside `DEFAULT_MAX_CONTEXT_TOKENS`, the repository-wide
4
3
  * per-record ceiling the store refuses to write past.
@@ -28,5 +27,4 @@ declare function buildIndexedText(abstract: string, content: string): string;
28
27
  * conversation text reaches the extraction LLM.
29
28
  */
30
29
  declare function stripEnvelopeMetadata(text: string): string;
31
- //#endregion
32
30
  export { buildIndexedText as n, stripEnvelopeMetadata as r, boundSectionContent as t };
@@ -1,4 +1,3 @@
1
- //#region src/engine/shared/i18n-text.d.ts
2
1
  declare const HTML_TAG_PATTERN: RegExp;
3
2
  /** Builds a Unicode-aware left/right token-boundary regex around a regex body. */
4
3
  declare function unicodeBoundaryRegex(body: string, flags?: string): RegExp;
@@ -9,5 +8,4 @@ declare function stripRoleLabelPrefix(text: string): string;
9
8
  declare function normalizeForCompare(text: string): string;
10
9
  declare function truncateGraphemes(text: string, maxGraphemes: number, suffix?: string): string;
11
10
  declare function tokenizeForFts(rawQuery: string): string[];
12
- //#endregion
13
11
  export { stripRoleLabelPrefix as a, unicodeBoundaryRegex as c, stripHtmlTags as i, boundaryAwareRegex as n, tokenizeForFts as o, normalizeForCompare as r, truncateGraphemes as s, HTML_TAG_PATTERN as t };
@@ -1,8 +1,7 @@
1
- import { p as LlmRoutingConfig, t as PluginConfig } from "./plugin-config-schema-DQh5njrS.js";
2
- import { g as MemoryEntry, h as MemoryCategory, t as AGGREGATION_OPERATIONS, x as RetrievalResult } from "./types-El7jViCz.js";
3
- import { r as SnoStationMemMemorySearchResult } from "./provider-runtime-types-DFhtdA6d.js";
1
+ import { p as LlmRoutingConfig, t as PluginConfig } from "./plugin-config-schema-DO4FhsYc.js";
2
+ import { g as MemoryEntry, h as MemoryCategory, t as AGGREGATION_OPERATIONS, x as RetrievalResult } from "./types-CMbBmMJB.js";
3
+ import { r as SnoStationMemMemorySearchResult } from "./provider-runtime-types-peajl6V-.js";
4
4
  import { z } from "zod";
5
- //#region src/contract/error.d.ts
6
5
  declare const DEGRADED_REASONS: readonly ["sidecar-unreachable", "sidecar-unresponsive", "principal-mismatch", "store-mismatch", "no-agent-endpoint", "invalid-input", "timeout", "storage-unavailable", "engine-failed"];
7
6
  type DegradedReason = (typeof DEGRADED_REASONS)[number];
8
7
  declare class ContractError extends Error {
@@ -10,8 +9,6 @@ declare class ContractError extends Error {
10
9
  readonly degraded = true;
11
10
  constructor(reason: DegradedReason, message?: string);
12
11
  }
13
- //#endregion
14
- //#region src/contract/inputs.d.ts
15
12
  type JsonValue = z.infer<ReturnType<typeof z.json>>;
16
13
  type HostContext = {
17
14
  observeSessionUuid?: string;
@@ -225,8 +222,6 @@ declare const inspectionSchema: z.ZodType<Inspection, unknown>;
225
222
  declare const usageSignalSchema: z.ZodType<UsageSignal, unknown>;
226
223
  declare const hostEventSchema: z.ZodType<HostEvent, unknown>;
227
224
  declare const inputSchemas: { [K in keyof ContractInputs]: z.ZodType<ContractInputs[K], unknown>; };
228
- //#endregion
229
- //#region src/contract/results.d.ts
230
225
  type Result<T> = T & ({
231
226
  degraded: false;
232
227
  } | {
@@ -327,12 +322,8 @@ declare const retrievalResultSchema: z.ZodType<RetrievalResult, unknown>;
327
322
  declare const toolResponseSchema: z.ZodType<ToolResponse, unknown>;
328
323
  declare const inspectDataSchema: z.ZodType<InspectData, unknown>;
329
324
  declare const outputSchemas: { [K in keyof ContractOutputs]: z.ZodType<ContractOutputs[K], unknown>; };
330
- //#endregion
331
- //#region src/contract/settings.d.ts
332
325
  type EngineSettings = Omit<PluginConfig, keyof LlmRoutingConfig | "remEnhanced">;
333
326
  declare const engineSettingsSchema: z.ZodType<EngineSettings, unknown>;
334
- //#endregion
335
- //#region src/contract/routes.d.ts
336
327
  declare const MEMORY_ROUTES: Readonly<Record<ContractMethod, {
337
328
  path: string;
338
329
  timeoutMs: number;
@@ -347,8 +338,6 @@ declare function memoryMethod(pathname: string): ContractMethod | undefined;
347
338
  declare const MEMORY_ERROR_STATUS: Readonly<Record<DegradedReason, number>>;
348
339
  declare const MEMORY_RECONNECT_INTERVAL_MS = 1e3;
349
340
  declare const MEMORY_DEFAULT_SKIN_ID = "default";
350
- //#endregion
351
- //#region src/contract/index.d.ts
352
341
  type ContractMethod = keyof ContractInputs;
353
342
  interface MemoryContract {
354
343
  init(scope: ScopeCtx, registration: Registration): Promise<ContractOutputs["init"]>;
@@ -367,5 +356,4 @@ declare function contractJsonSchemas(method: ContractMethod): {
367
356
  input: z.core.JSONSchema.JSONSchema;
368
357
  output: z.core.JSONSchema.JSONSchema;
369
358
  };
370
- //#endregion
371
359
  export { turnSchema as $, ContractInputs as A, Registration as B, ToolResponse as C, retrievalResultSchema as D, outputSchemas as E, Inspection as F, initRegistrationSchema as G, Turn as H, JsonValue as I, messageSchema as J, inputSchemas as K, Message as L, HostDecision as M, HostEvent as N, toolResponseSchema as O, InitRegistration as P, scopeSchema as Q, Mutation as R, Result as S, memoryEntrySchema as T, UsageSignal as U, ScopeCtx as V, hostEventSchema as W, recallOptionsSchema as X, mutationSchema as Y, registrationSchema as Z, EngineSettings as _, parseOutput as a, InspectData as b, MEMORY_DEFAULT_SKIN_ID as c, MEMORY_RECONNECT_INTERVAL_MS as d, usageSignalSchema as et, MEMORY_ROUTES as f, memoryMethod as g, REM_SIDECAR_TOKEN_HEADER as h, parseInput as i, HostContext as j, AgentModelRegistration as k, MEMORY_ERROR_STATUS as l, MEMORY_START_TIMEOUT_MS as m, MemoryContract as n, DEGRADED_REASONS as nt, MEMORY_BODY_LIMIT_BYTES as o, MEMORY_SKIN_HEADER as p, inspectionSchema as q, contractJsonSchemas as r, DegradedReason as rt, MEMORY_CANCEL_ON_DISCONNECT_HEADER as s, ContractMethod as t, ContractError as tt, MEMORY_HEALTH_TIMEOUT_MS as u, engineSettingsSchema as v, inspectDataSchema as w, ProjectSummary as x, ContractOutputs as y, RecallOptions as z };