@remnic/core 9.4.0 → 9.4.2

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 (329) hide show
  1. package/dist/access-admin-ops-surface.d.ts +5 -5
  2. package/dist/access-admin-ops-surface.js +22 -21
  3. package/dist/access-boundary.d.ts +5 -5
  4. package/dist/access-boundary.js +23 -22
  5. package/dist/access-cli.js +63 -62
  6. package/dist/access-cli.js.map +1 -1
  7. package/dist/access-http.d.ts +5 -5
  8. package/dist/access-http.js +31 -30
  9. package/dist/access-identity-continuity-surface.d.ts +4 -4
  10. package/dist/access-identity-continuity-surface.js +22 -21
  11. package/dist/access-lcm-surface.d.ts +5 -5
  12. package/dist/access-lcm-surface.js +22 -21
  13. package/dist/access-mcp.d.ts +5 -5
  14. package/dist/access-mcp.js +27 -26
  15. package/dist/access-observe-write-surface.d.ts +5 -5
  16. package/dist/access-observe-write-surface.js +22 -21
  17. package/dist/access-operations-batch.js +24 -23
  18. package/dist/access-operations.d.ts +9 -9
  19. package/dist/access-operations.js +26 -25
  20. package/dist/access-recall-surface.d.ts +5 -5
  21. package/dist/access-recall-surface.js +22 -21
  22. package/dist/access-schema.d.ts +68 -68
  23. package/dist/access-schema.js +3 -3
  24. package/dist/{access-service-CdW6B2qQ.d.ts → access-service-m-2VO_Ig.d.ts} +3 -3
  25. package/dist/access-service.d.ts +5 -5
  26. package/dist/access-service.js +22 -21
  27. package/dist/access-surface-catalog.d.ts +5 -5
  28. package/dist/action-confidence.d.ts +1 -1
  29. package/dist/active-memory-bridge.d.ts +1 -1
  30. package/dist/active-recall.d.ts +1 -1
  31. package/dist/active-recall.js +1 -1
  32. package/dist/adapters/index.js +4 -4
  33. package/dist/adapters/registry.js +2 -2
  34. package/dist/{auto-sync-M47VTCFI.js → auto-sync-HMHQHUAG.js} +4 -4
  35. package/dist/behavior-learner.d.ts +1 -1
  36. package/dist/behavior-signals.d.ts +1 -1
  37. package/dist/bootstrap.d.ts +4 -4
  38. package/dist/briefing.d.ts +1 -1
  39. package/dist/briefing.js +5 -5
  40. package/dist/buffer-surprise-report.d.ts +1 -1
  41. package/dist/buffer.d.ts +1 -1
  42. package/dist/calibration.d.ts +1 -1
  43. package/dist/capabilities.d.ts +1 -1
  44. package/dist/{catalog-bflYNWsM.d.ts → catalog-BxWokdC2.d.ts} +1 -1
  45. package/dist/causal-behavior.d.ts +1 -1
  46. package/dist/causal-consolidation.d.ts +1 -1
  47. package/dist/causal-consolidation.js +6 -6
  48. package/dist/causal-trajectory-graph.d.ts +1 -1
  49. package/dist/{chunk-TKUQSXU4.js → chunk-27FLVMDC.js} +12 -12
  50. package/dist/{chunk-XXEOGY77.js → chunk-2FOD2YY3.js} +7 -7
  51. package/dist/{chunk-6Y4JTNX7.js → chunk-2MR3MFQB.js} +2 -2
  52. package/dist/{chunk-AU7Q3LSC.js → chunk-2QSZNTDO.js} +4 -4
  53. package/dist/{chunk-64ZYXSCO.js → chunk-2U2A5HF4.js} +10 -4
  54. package/dist/chunk-2U2A5HF4.js.map +1 -0
  55. package/dist/{chunk-RBGL4MKQ.js → chunk-3F4N4WDH.js} +75 -110
  56. package/dist/chunk-3F4N4WDH.js.map +1 -0
  57. package/dist/{chunk-4NMATTXV.js → chunk-4BFRBP45.js} +2 -2
  58. package/dist/{chunk-L4UZBJNM.js → chunk-4P4626RY.js} +4 -4
  59. package/dist/{chunk-XZJMIJLW.js → chunk-5QZDMSSN.js} +29 -29
  60. package/dist/chunk-64UDOIMI.js +121 -0
  61. package/dist/chunk-64UDOIMI.js.map +1 -0
  62. package/dist/{chunk-H2EJNV2Z.js → chunk-66FLU5BT.js} +2 -2
  63. package/dist/{chunk-MWH5MAFP.js → chunk-6BISDEN6.js} +5 -5
  64. package/dist/{chunk-VBVSN2TV.js → chunk-6ZIETXZ2.js} +2 -2
  65. package/dist/{chunk-42BBIR33.js → chunk-7N2RUBAP.js} +2 -2
  66. package/dist/{chunk-UQI2NHTY.js → chunk-7QWMTOIF.js} +37 -37
  67. package/dist/{chunk-QICQ35K5.js → chunk-7Z2DZNWN.js} +17 -8
  68. package/dist/{chunk-QICQ35K5.js.map → chunk-7Z2DZNWN.js.map} +1 -1
  69. package/dist/{chunk-JI5AVXYO.js → chunk-AKUCU7CI.js} +5 -5
  70. package/dist/{chunk-FT37KV7R.js → chunk-BGTAL46Y.js} +2 -2
  71. package/dist/{chunk-7VFZTJ7K.js → chunk-BV2TIZ4F.js} +2 -2
  72. package/dist/{chunk-FWPHPN3V.js → chunk-CLX5VDNY.js} +5 -5
  73. package/dist/{chunk-TH2KIPP7.js → chunk-CZAA5N5S.js} +2 -2
  74. package/dist/{chunk-7BAJAXGB.js → chunk-CZAZX7JP.js} +4 -4
  75. package/dist/{chunk-APMGGGTY.js → chunk-DGYCWCQ7.js} +2 -2
  76. package/dist/{chunk-GEVIE5NV.js → chunk-DR6PEJU3.js} +4 -4
  77. package/dist/{chunk-2TCZE3C2.js → chunk-EPGWWCZF.js} +2 -2
  78. package/dist/{chunk-OUXPVWTZ.js → chunk-FLVL4L3L.js} +5 -5
  79. package/dist/{chunk-YPL66L3U.js → chunk-FZGGZAAU.js} +2 -2
  80. package/dist/{chunk-XOE5DYQL.js → chunk-HRCACVHL.js} +2 -2
  81. package/dist/{chunk-KS4PRHRD.js → chunk-IC6QX5TC.js} +2 -2
  82. package/dist/{chunk-H25TAODC.js → chunk-ILFJ7AVS.js} +4 -4
  83. package/dist/{chunk-UQMCR5RW.js → chunk-JLR3JSTL.js} +3 -3
  84. package/dist/{chunk-5H56JAHW.js → chunk-KCJ5H6XQ.js} +2 -2
  85. package/dist/{chunk-H5IT5JL7.js → chunk-LOR6ZM5R.js} +3 -3
  86. package/dist/{chunk-VBBMTSOV.js → chunk-M7GGMGMZ.js} +6 -6
  87. package/dist/{chunk-G47FEGGK.js → chunk-NG7YBCJO.js} +4 -4
  88. package/dist/{chunk-QGS7Z7YU.js → chunk-OHDJ34CC.js} +2 -2
  89. package/dist/{chunk-UAOZJX5J.js → chunk-P6SYWE4G.js} +53 -6
  90. package/dist/chunk-P6SYWE4G.js.map +1 -0
  91. package/dist/{chunk-LLMZK53N.js → chunk-PUBTHW5O.js} +2 -2
  92. package/dist/{chunk-AGNBY3VG.js → chunk-PYHOAXTI.js} +2 -2
  93. package/dist/{chunk-SXN3LCUT.js → chunk-RHOZ5LLO.js} +100 -4
  94. package/dist/chunk-RHOZ5LLO.js.map +1 -0
  95. package/dist/{chunk-6KYMPV2O.js → chunk-RL6NEVXT.js} +45 -2
  96. package/dist/chunk-RL6NEVXT.js.map +1 -0
  97. package/dist/{chunk-7WV3F5DQ.js → chunk-V7IZKJI3.js} +2 -2
  98. package/dist/{chunk-IGF4DII6.js → chunk-X4A62ET7.js} +9 -9
  99. package/dist/{chunk-OH6BKCPB.js → chunk-XN3TUUX2.js} +2 -2
  100. package/dist/{chunk-5K5VEDFY.js → chunk-YDSWRD33.js} +4 -4
  101. package/dist/{chunk-ABGDGBDT.js → chunk-YPEMNNNY.js} +2 -2
  102. package/dist/{chunk-YM7IEUO7.js → chunk-ZPOROUTX.js} +2 -2
  103. package/dist/{cli-Dfnc66gs.d.ts → cli-EiBBOt3r.d.ts} +3 -3
  104. package/dist/cli.d.ts +6 -6
  105. package/dist/cli.js +51 -50
  106. package/dist/compounding/engine.d.ts +1 -1
  107. package/dist/compounding/engine.js +5 -5
  108. package/dist/compounding/preference-consolidator.d.ts +1 -1
  109. package/dist/compression-optimizer.d.ts +1 -1
  110. package/dist/config.d.ts +1 -1
  111. package/dist/config.js +1 -1
  112. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  113. package/dist/connectors/codex-materialize-runner.js +5 -5
  114. package/dist/connectors/codex-materialize.d.ts +1 -1
  115. package/dist/connectors/index.d.ts +1 -1
  116. package/dist/connectors/index.js +5 -5
  117. package/dist/consolidation-provenance-check.d.ts +1 -1
  118. package/dist/consolidation-undo.d.ts +1 -1
  119. package/dist/contradiction/index.d.ts +1 -1
  120. package/dist/conversation-index/backend.d.ts +1 -1
  121. package/dist/conversation-index/backend.js +2 -2
  122. package/dist/conversation-index/chunker.d.ts +1 -1
  123. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  124. package/dist/conversation-index/indexer.d.ts +1 -1
  125. package/dist/conversation-index/search.d.ts +1 -1
  126. package/dist/day-summary.d.ts +1 -1
  127. package/dist/delinearize.d.ts +1 -1
  128. package/dist/direct-answer-wiring.d.ts +1 -1
  129. package/dist/direct-answer.d.ts +1 -1
  130. package/dist/embedding-fallback.d.ts +1 -1
  131. package/dist/enrichment/index.d.ts +1 -1
  132. package/dist/entity-retrieval.d.ts +1 -1
  133. package/dist/entity-retrieval.js +5 -5
  134. package/dist/entity-schema.d.ts +1 -1
  135. package/dist/explicit-capture.d.ts +4 -4
  136. package/dist/extraction-faithfulness.d.ts +1 -1
  137. package/dist/extraction-judge-telemetry.d.ts +1 -1
  138. package/dist/extraction-judge-training.d.ts +1 -1
  139. package/dist/extraction-judge.d.ts +1 -1
  140. package/dist/extraction.d.ts +1 -1
  141. package/dist/fallback-llm.d.ts +1 -1
  142. package/dist/graph-dashboard-diff.d.ts +1 -1
  143. package/dist/graph-dashboard-key.d.ts +1 -1
  144. package/dist/graph-dashboard-parser.d.ts +1 -1
  145. package/dist/graph-edge-reinforcement.d.ts +1 -1
  146. package/dist/graph-snapshot.d.ts +1 -1
  147. package/dist/graph.d.ts +1 -1
  148. package/dist/identity-continuity.d.ts +1 -1
  149. package/dist/importance.d.ts +1 -1
  150. package/dist/index.d.ts +17 -12
  151. package/dist/index.js +79 -78
  152. package/dist/intent.d.ts +1 -1
  153. package/dist/lcm/engine.d.ts +1 -1
  154. package/dist/lcm/engine.js +4 -4
  155. package/dist/lcm/index.d.ts +1 -1
  156. package/dist/lcm/index.js +6 -6
  157. package/dist/lcm/schema.js +2 -2
  158. package/dist/lcm/tools.d.ts +1 -1
  159. package/dist/lifecycle.d.ts +1 -1
  160. package/dist/live-connectors-runner.d.ts +1 -1
  161. package/dist/local-llm.d.ts +1 -1
  162. package/dist/local-model-endpoint.d.ts +1 -1
  163. package/dist/maintenance/memory-governance.d.ts +1 -1
  164. package/dist/maintenance/memory-governance.js +5 -5
  165. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +5 -5
  166. package/dist/maintenance/rebuild-memory-projection.js +6 -6
  167. package/dist/mcp-memory-inspector-app.d.ts +5 -5
  168. package/dist/memory-action-policy.d.ts +1 -1
  169. package/dist/memory-cache.d.ts +1 -1
  170. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  171. package/dist/memory-projection-store.d.ts +23 -3
  172. package/dist/memory-projection-store.js +9 -2
  173. package/dist/memory-provenance.d.ts +1 -1
  174. package/dist/memory-worth-outcomes.d.ts +1 -1
  175. package/dist/models-json.d.ts +1 -1
  176. package/dist/namespaces/migrate.d.ts +2 -2
  177. package/dist/namespaces/migrate.js +17 -16
  178. package/dist/namespaces/principal.d.ts +1 -1
  179. package/dist/namespaces/search.d.ts +1 -1
  180. package/dist/namespaces/search.js +11 -10
  181. package/dist/namespaces/storage.d.ts +2 -2
  182. package/dist/namespaces/storage.js +5 -5
  183. package/dist/native-knowledge.d.ts +1 -1
  184. package/dist/operator-toolkit.d.ts +11 -2
  185. package/dist/operator-toolkit.js +23 -20
  186. package/dist/orchestration/compression-guideline-coordinator.d.ts +1 -1
  187. package/dist/orchestration/maintenance.d.ts +2 -2
  188. package/dist/orchestration/maintenance.js +7 -7
  189. package/dist/{orchestrator-Y9wyG4jK.d.ts → orchestrator-B2Y28Z9t.d.ts} +3 -3
  190. package/dist/orchestrator.d.ts +4 -4
  191. package/dist/orchestrator.js +63 -62
  192. package/dist/patterns-cli.d.ts +1 -1
  193. package/dist/policy-runtime.d.ts +1 -1
  194. package/dist/provenance.d.ts +1 -1
  195. package/dist/{purge-IHRX4Z7X.js → purge-NDWV6WYD.js} +4 -3
  196. package/dist/{purge-IHRX4Z7X.js.map → purge-NDWV6WYD.js.map} +1 -1
  197. package/dist/qmd-Db9mOkzB.d.ts +330 -0
  198. package/dist/qmd-preflight.d.ts +5 -0
  199. package/dist/qmd-preflight.js +31 -0
  200. package/dist/qmd-preflight.js.map +1 -0
  201. package/dist/qmd-recall-cache.d.ts +1 -1
  202. package/dist/qmd.d.ts +3 -305
  203. package/dist/qmd.js +10 -8
  204. package/dist/recall-disclosure-escalation.d.ts +1 -1
  205. package/dist/recall-explain-renderer.d.ts +1 -1
  206. package/dist/recall-planner-llm.d.ts +1 -1
  207. package/dist/recall-state.d.ts +1 -1
  208. package/dist/recall-tag-filter.d.ts +1 -1
  209. package/dist/recall-timings.d.ts +1 -1
  210. package/dist/recall-xray-cli.d.ts +1 -1
  211. package/dist/recall-xray-renderer.d.ts +1 -1
  212. package/dist/recall-xray.d.ts +1 -1
  213. package/dist/resolve-auth-token.d.ts +1 -1
  214. package/dist/resume-bundles.js +2 -2
  215. package/dist/retrieval-agents.d.ts +2 -2
  216. package/dist/retrieval-tiers.d.ts +1 -1
  217. package/dist/routing/engine.d.ts +1 -1
  218. package/dist/routing/store.d.ts +1 -1
  219. package/dist/runtime/better-sqlite.d.ts +17 -1
  220. package/dist/runtime/better-sqlite.js +5 -3
  221. package/dist/schemas.d.ts +84 -84
  222. package/dist/search/embed-helper.d.ts +1 -1
  223. package/dist/search/factory.d.ts +1 -1
  224. package/dist/search/factory.js +10 -9
  225. package/dist/search/index.d.ts +1 -1
  226. package/dist/search/index.js +15 -14
  227. package/dist/search/lancedb-backend.d.ts +1 -1
  228. package/dist/search/lancedb-backend.js +2 -2
  229. package/dist/search/meilisearch-backend.d.ts +1 -1
  230. package/dist/search/meilisearch-backend.js +2 -2
  231. package/dist/search/noop-backend.d.ts +1 -1
  232. package/dist/search/orama-backend.d.ts +1 -1
  233. package/dist/search/orama-backend.js +2 -2
  234. package/dist/search/port.d.ts +1 -1
  235. package/dist/search/remote-backend.d.ts +1 -1
  236. package/dist/{semantic-consolidation-bfXJNKVf.d.ts → semantic-consolidation-BDVIbLRw.d.ts} +1 -1
  237. package/dist/semantic-consolidation.d.ts +2 -2
  238. package/dist/semantic-consolidation.js +6 -6
  239. package/dist/semantic-rule-promotion.js +5 -5
  240. package/dist/semantic-rule-verifier.d.ts +1 -1
  241. package/dist/semantic-rule-verifier.js +5 -5
  242. package/dist/session-observer-bands.d.ts +1 -1
  243. package/dist/session-observer-state.d.ts +1 -1
  244. package/dist/session-transcript-migration.js +2 -2
  245. package/dist/shared-context/manager.d.ts +9 -9
  246. package/dist/signal.d.ts +1 -1
  247. package/dist/storage.d.ts +1 -1
  248. package/dist/storage.js +4 -4
  249. package/dist/summarizer.d.ts +1 -1
  250. package/dist/summary-snapshot.d.ts +1 -1
  251. package/dist/temporal-supersession.d.ts +1 -1
  252. package/dist/temporal-validity.d.ts +1 -1
  253. package/dist/threading.d.ts +1 -1
  254. package/dist/tier-migration.d.ts +1 -1
  255. package/dist/tier-routing.d.ts +1 -1
  256. package/dist/topics.d.ts +1 -1
  257. package/dist/transcript.d.ts +1 -1
  258. package/dist/transfer/autodetect.js +1 -1
  259. package/dist/transfer/backup.js +1 -1
  260. package/dist/transfer/capsule-export.js +2 -2
  261. package/dist/transfer/export-sqlite.js +2 -2
  262. package/dist/transfer/import-sqlite.js +2 -2
  263. package/dist/transfer/types.d.ts +66 -66
  264. package/dist/trust-score-stage.d.ts +1 -1
  265. package/dist/trust-score.d.ts +1 -1
  266. package/dist/{types-D1iBqhJA.d.ts → types-ljkd82rn.d.ts} +13 -1
  267. package/dist/types.d.ts +1 -1
  268. package/dist/utility-runtime.d.ts +1 -1
  269. package/dist/verified-recall.js +5 -5
  270. package/package.json +2 -2
  271. package/src/memory-projection-open-failure.test.ts +322 -0
  272. package/src/memory-projection-store.ts +179 -2
  273. package/src/operator-toolkit.ts +64 -0
  274. package/src/qmd-preflight.test.ts +197 -0
  275. package/src/qmd-preflight.ts +167 -0
  276. package/src/qmd.ts +115 -129
  277. package/src/runtime/better-sqlite.test.ts +54 -0
  278. package/src/runtime/better-sqlite.ts +83 -3
  279. package/src/wearables/cleanup.test.ts +56 -0
  280. package/src/wearables/cleanup.ts +22 -1
  281. package/src/wearables/config.test.ts +25 -0
  282. package/src/wearables/config.ts +31 -4
  283. package/src/wearables/types.ts +12 -1
  284. package/dist/chunk-64ZYXSCO.js.map +0 -1
  285. package/dist/chunk-6KYMPV2O.js.map +0 -1
  286. package/dist/chunk-RBGL4MKQ.js.map +0 -1
  287. package/dist/chunk-SXN3LCUT.js.map +0 -1
  288. package/dist/chunk-UAOZJX5J.js.map +0 -1
  289. /package/dist/{auto-sync-M47VTCFI.js.map → auto-sync-HMHQHUAG.js.map} +0 -0
  290. /package/dist/{chunk-TKUQSXU4.js.map → chunk-27FLVMDC.js.map} +0 -0
  291. /package/dist/{chunk-XXEOGY77.js.map → chunk-2FOD2YY3.js.map} +0 -0
  292. /package/dist/{chunk-6Y4JTNX7.js.map → chunk-2MR3MFQB.js.map} +0 -0
  293. /package/dist/{chunk-AU7Q3LSC.js.map → chunk-2QSZNTDO.js.map} +0 -0
  294. /package/dist/{chunk-4NMATTXV.js.map → chunk-4BFRBP45.js.map} +0 -0
  295. /package/dist/{chunk-L4UZBJNM.js.map → chunk-4P4626RY.js.map} +0 -0
  296. /package/dist/{chunk-XZJMIJLW.js.map → chunk-5QZDMSSN.js.map} +0 -0
  297. /package/dist/{chunk-H2EJNV2Z.js.map → chunk-66FLU5BT.js.map} +0 -0
  298. /package/dist/{chunk-MWH5MAFP.js.map → chunk-6BISDEN6.js.map} +0 -0
  299. /package/dist/{chunk-VBVSN2TV.js.map → chunk-6ZIETXZ2.js.map} +0 -0
  300. /package/dist/{chunk-42BBIR33.js.map → chunk-7N2RUBAP.js.map} +0 -0
  301. /package/dist/{chunk-UQI2NHTY.js.map → chunk-7QWMTOIF.js.map} +0 -0
  302. /package/dist/{chunk-JI5AVXYO.js.map → chunk-AKUCU7CI.js.map} +0 -0
  303. /package/dist/{chunk-FT37KV7R.js.map → chunk-BGTAL46Y.js.map} +0 -0
  304. /package/dist/{chunk-7VFZTJ7K.js.map → chunk-BV2TIZ4F.js.map} +0 -0
  305. /package/dist/{chunk-FWPHPN3V.js.map → chunk-CLX5VDNY.js.map} +0 -0
  306. /package/dist/{chunk-TH2KIPP7.js.map → chunk-CZAA5N5S.js.map} +0 -0
  307. /package/dist/{chunk-7BAJAXGB.js.map → chunk-CZAZX7JP.js.map} +0 -0
  308. /package/dist/{chunk-APMGGGTY.js.map → chunk-DGYCWCQ7.js.map} +0 -0
  309. /package/dist/{chunk-GEVIE5NV.js.map → chunk-DR6PEJU3.js.map} +0 -0
  310. /package/dist/{chunk-2TCZE3C2.js.map → chunk-EPGWWCZF.js.map} +0 -0
  311. /package/dist/{chunk-OUXPVWTZ.js.map → chunk-FLVL4L3L.js.map} +0 -0
  312. /package/dist/{chunk-YPL66L3U.js.map → chunk-FZGGZAAU.js.map} +0 -0
  313. /package/dist/{chunk-XOE5DYQL.js.map → chunk-HRCACVHL.js.map} +0 -0
  314. /package/dist/{chunk-KS4PRHRD.js.map → chunk-IC6QX5TC.js.map} +0 -0
  315. /package/dist/{chunk-H25TAODC.js.map → chunk-ILFJ7AVS.js.map} +0 -0
  316. /package/dist/{chunk-UQMCR5RW.js.map → chunk-JLR3JSTL.js.map} +0 -0
  317. /package/dist/{chunk-5H56JAHW.js.map → chunk-KCJ5H6XQ.js.map} +0 -0
  318. /package/dist/{chunk-H5IT5JL7.js.map → chunk-LOR6ZM5R.js.map} +0 -0
  319. /package/dist/{chunk-VBBMTSOV.js.map → chunk-M7GGMGMZ.js.map} +0 -0
  320. /package/dist/{chunk-G47FEGGK.js.map → chunk-NG7YBCJO.js.map} +0 -0
  321. /package/dist/{chunk-QGS7Z7YU.js.map → chunk-OHDJ34CC.js.map} +0 -0
  322. /package/dist/{chunk-LLMZK53N.js.map → chunk-PUBTHW5O.js.map} +0 -0
  323. /package/dist/{chunk-AGNBY3VG.js.map → chunk-PYHOAXTI.js.map} +0 -0
  324. /package/dist/{chunk-7WV3F5DQ.js.map → chunk-V7IZKJI3.js.map} +0 -0
  325. /package/dist/{chunk-IGF4DII6.js.map → chunk-X4A62ET7.js.map} +0 -0
  326. /package/dist/{chunk-OH6BKCPB.js.map → chunk-XN3TUUX2.js.map} +0 -0
  327. /package/dist/{chunk-5K5VEDFY.js.map → chunk-YDSWRD33.js.map} +0 -0
  328. /package/dist/{chunk-ABGDGBDT.js.map → chunk-YPEMNNNY.js.map} +0 -0
  329. /package/dist/{chunk-YM7IEUO7.js.map → chunk-ZPOROUTX.js.map} +0 -0
@@ -0,0 +1,121 @@
1
+ import {
2
+ isAbortError
3
+ } from "./chunk-PVGDJXVK.js";
4
+
5
+ // src/qmd-preflight.ts
6
+ var QMD_PROBE_TIMEOUT_MS = 8e3;
7
+ var QMD_PROBE_RETRY_BACKOFF_MS = [300, 800];
8
+ var QMD_SUPPORTED_VERSION = "2.5.3";
9
+ function classifyProbeFailure(err) {
10
+ if (err && typeof err === "object") {
11
+ if ("code" in err) {
12
+ const code = err.code;
13
+ if (code === "ENOENT" || code === "EACCES") return "missing";
14
+ }
15
+ if ("timedOut" in err && err.timedOut === true) return "transient";
16
+ }
17
+ if (isAbortError(err)) return "transient";
18
+ return "other";
19
+ }
20
+ function parseQmdVersion(version) {
21
+ if (!version) return null;
22
+ const match = version.match(/v?(\d{1,10})\.(\d{1,10})\.(\d{1,10})/i);
23
+ if (!match) return null;
24
+ return [
25
+ Number.parseInt(match[1] ?? "0", 10),
26
+ Number.parseInt(match[2] ?? "0", 10),
27
+ Number.parseInt(match[3] ?? "0", 10)
28
+ ];
29
+ }
30
+ function parseQmdVersionOutput(stdout, stderr) {
31
+ const lines = `${stdout}
32
+ ${stderr}`.split("\n").map((s) => s.trim()).filter((s) => s.length > 0);
33
+ if (lines.length === 0) return null;
34
+ const semanticLines = lines.filter((line) => parseQmdVersion(line) !== null);
35
+ if (semanticLines.length === 0) return lines[0] ?? null;
36
+ return semanticLines.find((line) => /\bqmd\b/i.test(line)) ?? semanticLines[0] ?? null;
37
+ }
38
+ function compareQmdVersions(left, right) {
39
+ if (!left && !right) return 0;
40
+ if (!left) return -1;
41
+ if (!right) return 1;
42
+ for (let i = 0; i < 3; i += 1) {
43
+ if ((left[i] ?? 0) > (right[i] ?? 0)) return 1;
44
+ if ((left[i] ?? 0) < (right[i] ?? 0)) return -1;
45
+ }
46
+ return 0;
47
+ }
48
+ function versionAtLeast(current, target) {
49
+ return compareQmdVersions(current, target) >= 0;
50
+ }
51
+ function resolveQmdCapabilities(version) {
52
+ const parsedVersion = parseQmdVersion(version);
53
+ const atLeast = (target) => versionAtLeast(parsedVersion, target);
54
+ return {
55
+ version,
56
+ parsedVersion,
57
+ stableSdk: atLeast([2, 0, 0]),
58
+ unifiedSearch: atLeast([2, 0, 0]),
59
+ getDocumentBody: atLeast([2, 0, 0]),
60
+ maintenanceApi: atLeast([2, 0, 0]),
61
+ legacySkillInstall: atLeast([2, 0, 1]),
62
+ intentHints: atLeast([1, 1, 5]),
63
+ explainTraces: atLeast([1, 1, 2]),
64
+ candidateLimit: atLeast([1, 1, 2]),
65
+ v2McpQueryTool: atLeast([2, 0, 0]),
66
+ structuredSearches: atLeast([2, 0, 0]),
67
+ queryRerankToggle: atLeast([2, 1, 0]),
68
+ chunkStrategy: atLeast([2, 1, 0]),
69
+ qmdBench: atLeast([2, 1, 0]),
70
+ perCollectionModels: atLeast([2, 1, 0]),
71
+ jsonLineNumbers: atLeast([2, 1, 0]),
72
+ editorLinks: atLeast([2, 1, 0]),
73
+ doctor: atLeast([2, 5, 0]),
74
+ versionedSkills: atLeast([2, 5, 0]),
75
+ absoluteSnippetLines: atLeast([2, 5, 0]),
76
+ fullQueryOutput: atLeast([2, 5, 0]),
77
+ forceCpu: atLeast([2, 5, 0]),
78
+ gpuBackendOverride: atLeast([2, 5, 0]),
79
+ embedParallelism: atLeast([2, 5, 0]),
80
+ modelEnvConsistency: atLeast([2, 5, 0]),
81
+ scopedEmbed: atLeast([2, 5, 0]),
82
+ safeStatusDeviceProbe: atLeast([2, 5, 0]),
83
+ mcpIndexSelection: atLeast([2, 5, 0]),
84
+ outputFormatFlag: atLeast([2, 5, 3])
85
+ };
86
+ }
87
+ function shouldAutoUpgradeQmd(installedVersion, supportedVersion = QMD_SUPPORTED_VERSION) {
88
+ const installed = parseQmdVersion(installedVersion);
89
+ const supported = parseQmdVersion(supportedVersion);
90
+ if (!installed || !supported) return false;
91
+ return compareQmdVersions(installed, supported) < 0;
92
+ }
93
+ function getQmdPostInstallProbeTargets(qmdPath, qmdPathSource) {
94
+ const targets = [
95
+ { qmdPath: "qmd", source: "auto-path" }
96
+ ];
97
+ const normalizedPath = qmdPath.trim();
98
+ if (qmdPathSource === "auto-fallback" && normalizedPath.length > 0 && normalizedPath !== "qmd") {
99
+ targets.push({ qmdPath: normalizedPath, source: "auto-fallback" });
100
+ }
101
+ return targets;
102
+ }
103
+ function qmdVersionToString(version) {
104
+ return `${version[0]}.${version[1]}.${version[2]}`;
105
+ }
106
+
107
+ export {
108
+ QMD_PROBE_TIMEOUT_MS,
109
+ QMD_PROBE_RETRY_BACKOFF_MS,
110
+ QMD_SUPPORTED_VERSION,
111
+ classifyProbeFailure,
112
+ parseQmdVersion,
113
+ parseQmdVersionOutput,
114
+ compareQmdVersions,
115
+ versionAtLeast,
116
+ resolveQmdCapabilities,
117
+ shouldAutoUpgradeQmd,
118
+ getQmdPostInstallProbeTargets,
119
+ qmdVersionToString
120
+ };
121
+ //# sourceMappingURL=chunk-64UDOIMI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/qmd-preflight.ts"],"sourcesContent":["/**\n * QMD version-check PREFLIGHT / probe-classification helpers.\n *\n * Pure, self-contained functions extracted from qmd.ts (issue #1841) so the\n * QmdClient class file stays under the structural-ratchet LOC ceiling. These\n * cover two related concerns of the startup preflight:\n *\n * 1. VERSION parsing/comparison — turning `qmd --version` output into a tuple,\n * comparing against the supported target, and resolving feature capability\n * flags from the parsed version.\n * 2. PROBE failure classification — distinguishing a slow/overloaded binary\n * (transient → retry) from a genuine misconfiguration (ENOENT/EACCES → fail\n * fast) using STRUCTURED signals, never the error message.\n *\n * No behavioral change from qmd.ts round 1 (issue #1841): structured-signal\n * classification (code=ENOENT/EACCES=>missing, timedOut flag=>transient,\n * caller-cancel silenced, non-zero-exit=>other); backoff [300,800].\n */\nimport { isAbortError } from \"./abort-error.js\";\nimport type { QmdCapabilities, QmdVersionTuple } from \"./qmd.js\";\n\n// Deadline (ms) for a single `qmd --version` probe.\nexport const QMD_PROBE_TIMEOUT_MS = 8_000;\n\n// Backoff schedule (ms) for retrying a TRANSIENT (timeout/abort) version-check\n// probe of a CONFIGURED qmdPath before declaring it failed. A binary that\n// resolved and ran before is more likely slow under load than gone, so we retry\n// transient failures but NOT ENOENT/EACCES (hard misconfiguration, fail fast).\n// Length == number of retries after the initial attempt. Issue #1841.\nexport const QMD_PROBE_RETRY_BACKOFF_MS = [300, 800];\n\nexport const QMD_SUPPORTED_VERSION = \"2.5.3\";\n\n/**\n * Classify a `qmd --version` probe failure so the preflight can distinguish a\n * slow/overloaded binary (a genuine deadline timeout) from a real\n * misconfiguration (ENOENT/EACCES — the configured path is missing or not\n * executable). Only transient failures are retried; missing binaries fail fast.\n *\n * Classification keys on STRUCTURED signals, never the error *message*: a\n * non-zero-exit failure embeds the child's stderr in its message, so scanning\n * that text for \"abort\"/\"timed out\"/\"not found\" would misclassify a healthy\n * binary. The structured signals are: `code` (ENOENT/EACCES) for missing; the\n * `timedOut` flag set by `runCommandWithTimeout` for a genuine timeout; an\n * AbortError name for a deadline/abort under load. Issue #1841.\n */\nexport type QmdProbeFailureKind = \"transient\" | \"missing\" | \"other\";\nexport function classifyProbeFailure(err: unknown): QmdProbeFailureKind {\n if (err && typeof err === \"object\") {\n // Node spawn failures carry a structured `code`: ENOENT (not found) /\n // EACCES (not executable).\n if (\"code\" in err) {\n const code = err.code;\n if (code === \"ENOENT\" || code === \"EACCES\") return \"missing\";\n }\n // runCommandWithTimeout flags a genuine deadline breach with `timedOut`.\n if (\"timedOut\" in err && err.timedOut === true) return \"transient\";\n }\n // An AbortError reaching here is a deadline/abort under load → transient.\n // (Caller cancellation is intercepted by the retry loop before this runs.)\n if (isAbortError(err)) return \"transient\";\n // Anything else — including a non-zero exit whose message embeds stderr — is\n // a generic failure: never scan the message to upgrade/downgrade it.\n return \"other\";\n}\n\nexport function parseQmdVersion(version: string | null): QmdVersionTuple | null {\n if (!version) return null;\n const match = version.match(/v?(\\d{1,10})\\.(\\d{1,10})\\.(\\d{1,10})/i);\n if (!match) return null;\n return [\n Number.parseInt(match[1] ?? \"0\", 10),\n Number.parseInt(match[2] ?? \"0\", 10),\n Number.parseInt(match[3] ?? \"0\", 10),\n ];\n}\n\nexport function parseQmdVersionOutput(stdout: string, stderr: string): string | null {\n const lines = `${stdout}\\n${stderr}`\n .split(\"\\n\")\n .map((s) => s.trim())\n .filter((s) => s.length > 0);\n if (lines.length === 0) return null;\n const semanticLines = lines.filter((line) => parseQmdVersion(line) !== null);\n if (semanticLines.length === 0) return lines[0] ?? null;\n return semanticLines.find((line) => /\\bqmd\\b/i.test(line)) ?? semanticLines[0] ?? null;\n}\n\nexport function compareQmdVersions(left: QmdVersionTuple | null, right: QmdVersionTuple | null): number {\n if (!left && !right) return 0;\n if (!left) return -1;\n if (!right) return 1;\n for (let i = 0; i < 3; i += 1) {\n if ((left[i] ?? 0) > (right[i] ?? 0)) return 1;\n if ((left[i] ?? 0) < (right[i] ?? 0)) return -1;\n }\n return 0;\n}\n\nexport function versionAtLeast(current: QmdVersionTuple | null, target: QmdVersionTuple): boolean {\n return compareQmdVersions(current, target) >= 0;\n}\n\nexport function resolveQmdCapabilities(version: string | null): QmdCapabilities {\n const parsedVersion = parseQmdVersion(version);\n const atLeast = (target: QmdVersionTuple): boolean => versionAtLeast(parsedVersion, target);\n return {\n version,\n parsedVersion,\n stableSdk: atLeast([2, 0, 0]),\n unifiedSearch: atLeast([2, 0, 0]),\n getDocumentBody: atLeast([2, 0, 0]),\n maintenanceApi: atLeast([2, 0, 0]),\n legacySkillInstall: atLeast([2, 0, 1]),\n intentHints: atLeast([1, 1, 5]),\n explainTraces: atLeast([1, 1, 2]),\n candidateLimit: atLeast([1, 1, 2]),\n v2McpQueryTool: atLeast([2, 0, 0]),\n structuredSearches: atLeast([2, 0, 0]),\n queryRerankToggle: atLeast([2, 1, 0]),\n chunkStrategy: atLeast([2, 1, 0]),\n qmdBench: atLeast([2, 1, 0]),\n perCollectionModels: atLeast([2, 1, 0]),\n jsonLineNumbers: atLeast([2, 1, 0]),\n editorLinks: atLeast([2, 1, 0]),\n doctor: atLeast([2, 5, 0]),\n versionedSkills: atLeast([2, 5, 0]),\n absoluteSnippetLines: atLeast([2, 5, 0]),\n fullQueryOutput: atLeast([2, 5, 0]),\n forceCpu: atLeast([2, 5, 0]),\n gpuBackendOverride: atLeast([2, 5, 0]),\n embedParallelism: atLeast([2, 5, 0]),\n modelEnvConsistency: atLeast([2, 5, 0]),\n scopedEmbed: atLeast([2, 5, 0]),\n safeStatusDeviceProbe: atLeast([2, 5, 0]),\n mcpIndexSelection: atLeast([2, 5, 0]),\n outputFormatFlag: atLeast([2, 5, 3]),\n };\n}\n\nexport function shouldAutoUpgradeQmd(\n installedVersion: string | null,\n supportedVersion: string = QMD_SUPPORTED_VERSION\n): boolean {\n const installed = parseQmdVersion(installedVersion);\n const supported = parseQmdVersion(supportedVersion);\n if (!installed || !supported) return false;\n return compareQmdVersions(installed, supported) < 0;\n}\n\nexport function getQmdPostInstallProbeTargets(\n qmdPath: string,\n qmdPathSource: \"configured\" | \"auto-path\" | \"auto-fallback\"\n): Array<{ qmdPath: string; source: \"auto-path\" | \"auto-fallback\" }> {\n const targets: Array<{ qmdPath: string; source: \"auto-path\" | \"auto-fallback\" }> = [\n { qmdPath: \"qmd\", source: \"auto-path\" },\n ];\n const normalizedPath = qmdPath.trim();\n if (qmdPathSource === \"auto-fallback\" && normalizedPath.length > 0 && normalizedPath !== \"qmd\") {\n targets.push({ qmdPath: normalizedPath, source: \"auto-fallback\" });\n }\n return targets;\n}\n\nexport function qmdVersionToString(version: QmdVersionTuple): string {\n return `${version[0]}.${version[1]}.${version[2]}`;\n}\n"],"mappings":"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","names":[]}
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2A3OXAP2.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-VBBMTSOV.js";
6
+ } from "./chunk-M7GGMGMZ.js";
7
7
  import {
8
8
  getCachedEpisodeMap,
9
9
  setCachedEpisodeMap
@@ -107,4 +107,4 @@ export {
107
107
  compareVerifiedEpisodeResults,
108
108
  searchVerifiedEpisodes
109
109
  };
110
- //# sourceMappingURL=chunk-H2EJNV2Z.js.map
110
+ //# sourceMappingURL=chunk-66FLU5BT.js.map
@@ -10,10 +10,10 @@ import {
10
10
  import {
11
11
  listMemoryGovernanceRuns,
12
12
  readMemoryGovernanceRunArtifact
13
- } from "./chunk-KS4PRHRD.js";
13
+ } from "./chunk-IC6QX5TC.js";
14
14
  import {
15
15
  StorageManager
16
- } from "./chunk-VBBMTSOV.js";
16
+ } from "./chunk-M7GGMGMZ.js";
17
17
  import {
18
18
  MEMORY_LIFECYCLE_EVENT_SORT_ORDER,
19
19
  buildLifecycleEventsForMemory,
@@ -36,10 +36,10 @@ import {
36
36
  readProjectedEntityMentions,
37
37
  readProjectedGovernanceRecord,
38
38
  readProjectedNativeKnowledgeChunks
39
- } from "./chunk-SXN3LCUT.js";
39
+ } from "./chunk-RHOZ5LLO.js";
40
40
  import {
41
41
  openBetterSqlite3
42
- } from "./chunk-6KYMPV2O.js";
42
+ } from "./chunk-RL6NEVXT.js";
43
43
  import {
44
44
  log
45
45
  } from "./chunk-37CTGERM.js";
@@ -1023,4 +1023,4 @@ export {
1023
1023
  verifyMemoryProjection,
1024
1024
  repairMemoryProjection
1025
1025
  };
1026
- //# sourceMappingURL=chunk-MWH5MAFP.js.map
1026
+ //# sourceMappingURL=chunk-6BISDEN6.js.map
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  planNamespaceMaintenance,
12
12
  runNamespaceMaintenanceBatchPlan
13
- } from "./chunk-H5IT5JL7.js";
13
+ } from "./chunk-LOR6ZM5R.js";
14
14
  import {
15
15
  resolveConsolidationCapabilities,
16
16
  resolveNamespaceCapabilities,
@@ -447,4 +447,4 @@ var MaintenanceScheduler = class {
447
447
  export {
448
448
  MaintenanceScheduler
449
449
  };
450
- //# sourceMappingURL=chunk-VBVSN2TV.js.map
450
+ //# sourceMappingURL=chunk-6ZIETXZ2.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openBetterSqlite3
3
- } from "./chunk-6KYMPV2O.js";
3
+ } from "./chunk-RL6NEVXT.js";
4
4
  import {
5
5
  log
6
6
  } from "./chunk-37CTGERM.js";
@@ -131,4 +131,4 @@ export {
131
131
  ensureLcmStateDir,
132
132
  applyLcmSchema
133
133
  };
134
- //# sourceMappingURL=chunk-42BBIR33.js.map
134
+ //# sourceMappingURL=chunk-7N2RUBAP.js.map
@@ -7,18 +7,18 @@ import {
7
7
  import {
8
8
  openclawReplayNormalizer
9
9
  } from "./chunk-7F7Z6MOS.js";
10
+ import {
11
+ importSqlite
12
+ } from "./chunk-PYHOAXTI.js";
10
13
  import {
11
14
  exportJsonBundle
12
15
  } from "./chunk-UP6MOYCB.js";
13
16
  import {
14
17
  exportSqlite
15
- } from "./chunk-7VFZTJ7K.js";
18
+ } from "./chunk-BV2TIZ4F.js";
16
19
  import {
17
20
  importMarkdownBundle
18
21
  } from "./chunk-HDDRVXX4.js";
19
- import {
20
- importSqlite
21
- } from "./chunk-AGNBY3VG.js";
22
22
  import {
23
23
  detectImportFormat
24
24
  } from "./chunk-OZKVVUJB.js";
@@ -31,6 +31,15 @@ import {
31
31
  import {
32
32
  exportMarkdownBundle
33
33
  } from "./chunk-765K3SAT.js";
34
+ import {
35
+ buildReplayNormalizerRegistry,
36
+ clampBatchSize,
37
+ runReplay
38
+ } from "./chunk-HOJZMQ4J.js";
39
+ import {
40
+ isReplaySource,
41
+ normalizeReplaySessionKey
42
+ } from "./chunk-2PRQG7PV.js";
34
43
  import {
35
44
  RoutingRulesStore
36
45
  } from "./chunk-KQPJLK3X.js";
@@ -41,31 +50,22 @@ import {
41
50
  WebDavServer
42
51
  } from "./chunk-PYIFUBRK.js";
43
52
  import {
44
- buildReplayNormalizerRegistry,
45
- clampBatchSize,
46
- runReplay
47
- } from "./chunk-HOJZMQ4J.js";
48
- import {
49
- isReplaySource,
50
- normalizeReplaySessionKey
51
- } from "./chunk-2PRQG7PV.js";
53
+ migrateObservations
54
+ } from "./chunk-D6RIFG4O.js";
52
55
  import {
53
56
  rebuildMemoryLifecycleLedger
54
- } from "./chunk-XOE5DYQL.js";
57
+ } from "./chunk-HRCACVHL.js";
55
58
  import {
56
59
  rebuildMemoryProjection,
57
60
  repairMemoryProjection,
58
61
  verifyMemoryProjection
59
- } from "./chunk-MWH5MAFP.js";
62
+ } from "./chunk-6BISDEN6.js";
60
63
  import {
61
64
  rebuildObservations
62
65
  } from "./chunk-LZZNTPLR.js";
63
66
  import {
64
67
  archiveObservations
65
68
  } from "./chunk-WMWVO45V.js";
66
- import {
67
- migrateObservations
68
- } from "./chunk-D6RIFG4O.js";
69
69
  import {
70
70
  runCompatChecks
71
71
  } from "./chunk-GQL52GQ5.js";
@@ -75,9 +75,6 @@ import {
75
75
  registerBulkImportSource,
76
76
  runBulkImportPipeline
77
77
  } from "./chunk-CKITWVWJ.js";
78
- import {
79
- searchVerifiedEpisodes
80
- } from "./chunk-H2EJNV2Z.js";
81
78
  import {
82
79
  getUtilityLearningStatus,
83
80
  learnUtilityPromotionWeights
@@ -86,20 +83,26 @@ import {
86
83
  getUtilityTelemetryStatus,
87
84
  recordUtilityTelemetryEvent
88
85
  } from "./chunk-TERNBNJB.js";
86
+ import {
87
+ searchVerifiedEpisodes
88
+ } from "./chunk-66FLU5BT.js";
89
89
  import {
90
90
  ThreadingManager
91
91
  } from "./chunk-DBRYEIGY.js";
92
92
  import {
93
93
  promoteSemanticRuleFromMemory
94
- } from "./chunk-QGS7Z7YU.js";
94
+ } from "./chunk-OHDJ34CC.js";
95
95
  import {
96
96
  searchVerifiedSemanticRules
97
- } from "./chunk-ABGDGBDT.js";
97
+ } from "./chunk-YPEMNNNY.js";
98
+ import {
99
+ resolveAgentAccessAuthToken
100
+ } from "./chunk-TGQ2NTWH.js";
98
101
  import {
99
102
  buildResumeBundleFromState,
100
103
  getResumeBundleStatus,
101
104
  recordResumeBundle
102
- } from "./chunk-OH6BKCPB.js";
105
+ } from "./chunk-XN3TUUX2.js";
103
106
  import {
104
107
  getWorkProductLedgerStatus,
105
108
  recordWorkProductLedgerEntry,
@@ -111,9 +114,6 @@ import {
111
114
  import {
112
115
  parseXrayCliOptions
113
116
  } from "./chunk-DANV2HTH.js";
114
- import {
115
- resolveAgentAccessAuthToken
116
- } from "./chunk-TGQ2NTWH.js";
117
117
  import {
118
118
  collectPatternMemories,
119
119
  explainPatternMemory,
@@ -135,12 +135,12 @@ import {
135
135
  runOperatorInventory,
136
136
  runOperatorRepair,
137
137
  runOperatorSetup
138
- } from "./chunk-UAOZJX5J.js";
138
+ } from "./chunk-P6SYWE4G.js";
139
139
  import {
140
140
  listNamespaces,
141
141
  runNamespaceMigration,
142
142
  verifyNamespaces
143
- } from "./chunk-UQMCR5RW.js";
143
+ } from "./chunk-JLR3JSTL.js";
144
144
  import {
145
145
  analyzeSessionIntegrity,
146
146
  applySessionRepair,
@@ -207,16 +207,16 @@ import {
207
207
  } from "./chunk-UQ7RN5HK.js";
208
208
  import {
209
209
  parseConfig
210
- } from "./chunk-QICQ35K5.js";
210
+ } from "./chunk-7Z2DZNWN.js";
211
211
  import {
212
212
  getAbstractionNodeStoreStatus
213
213
  } from "./chunk-OADWQ5CR.js";
214
214
  import {
215
215
  EngramAccessHttpServer
216
- } from "./chunk-XXEOGY77.js";
216
+ } from "./chunk-2FOD2YY3.js";
217
217
  import {
218
218
  WearablesInputError
219
- } from "./chunk-7WV3F5DQ.js";
219
+ } from "./chunk-V7IZKJI3.js";
220
220
  import {
221
221
  ChatEngine,
222
222
  EngramMcpServer,
@@ -226,10 +226,10 @@ import {
226
226
  createProductionChatLlmAdapter,
227
227
  loadChatSession,
228
228
  sessionBelongsToPrincipal
229
- } from "./chunk-GEVIE5NV.js";
229
+ } from "./chunk-DR6PEJU3.js";
230
230
  import {
231
231
  EngramAccessService
232
- } from "./chunk-IGF4DII6.js";
232
+ } from "./chunk-X4A62ET7.js";
233
233
  import {
234
234
  WorkStorage
235
235
  } from "./chunk-GDB4J2H3.js";
@@ -241,7 +241,7 @@ import {
241
241
  import {
242
242
  migrateSessionTranscripts,
243
243
  planSessionTranscriptMigration
244
- } from "./chunk-LLMZK53N.js";
244
+ } from "./chunk-PUBTHW5O.js";
245
245
  import {
246
246
  parseRecallExplainFormat,
247
247
  renderRecallExplain,
@@ -255,7 +255,7 @@ import {
255
255
  readMemoryGovernanceRunArtifact,
256
256
  restoreMemoryGovernanceRun,
257
257
  runMemoryGovernance
258
- } from "./chunk-KS4PRHRD.js";
258
+ } from "./chunk-IC6QX5TC.js";
259
259
  import {
260
260
  analyzeGraphHealth
261
261
  } from "./chunk-OBMR4VIX.js";
@@ -3683,7 +3683,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
3683
3683
  }
3684
3684
  const confirmed = confirmValue === "yes";
3685
3685
  const dryRun = hasDryRunFlag || !confirmed;
3686
- const { purgeMemories } = await import("./purge-IHRX4Z7X.js");
3686
+ const { purgeMemories } = await import("./purge-NDWV6WYD.js");
3687
3687
  try {
3688
3688
  const result = await purgeMemories({
3689
3689
  storage: orchestrator.storage,
@@ -7520,4 +7520,4 @@ export {
7520
7520
  listMemoryMarkdownFilePaths,
7521
7521
  registerCli
7522
7522
  };
7523
- //# sourceMappingURL=chunk-UQI2NHTY.js.map
7523
+ //# sourceMappingURL=chunk-7QWMTOIF.js.map
@@ -64,15 +64,17 @@ var MAX_AUTO_SYNC_WINDOW_DAYS = 90;
64
64
  var DEFAULT_SOURCE_TRUST = 0.8;
65
65
  var DEFAULT_AUTO_APPROVE_TRUST = 0.7;
66
66
  var DEFAULT_REVIEW_TRUST = 0.45;
67
- function defaultWearableCleanupSettings() {
67
+ var BOUNDARY_PRESERVING_SOURCE_IDS = /* @__PURE__ */ new Set(["bee"]);
68
+ function defaultWearableCleanupSettings(sourceId) {
68
69
  return {
69
70
  mergeSameSpeaker: true,
70
71
  stripFillers: true,
71
72
  collapseRepeats: true,
72
- dropLowQuality: true
73
+ dropLowQuality: true,
74
+ preserveUtteranceBoundaries: sourceId !== void 0 && BOUNDARY_PRESERVING_SOURCE_IDS.has(sourceId)
73
75
  };
74
76
  }
75
- function defaultWearableSourceSettings() {
77
+ function defaultWearableSourceSettings(sourceId) {
76
78
  return {
77
79
  enabled: false,
78
80
  memoryMode: "smart",
@@ -83,7 +85,7 @@ function defaultWearableSourceSettings() {
83
85
  minImportance: DEFAULT_MIN_IMPORTANCE,
84
86
  maxMemoriesPerDay: DEFAULT_MAX_MEMORIES_PER_DAY,
85
87
  importNativeMemories: "smart",
86
- cleanup: defaultWearableCleanupSettings()
88
+ cleanup: defaultWearableCleanupSettings(sourceId)
87
89
  };
88
90
  }
89
91
  function defaultWearablesConfig() {
@@ -167,9 +169,9 @@ function parseCorrectionRules(value, keyPath) {
167
169
  compileCorrectionRules(rules, keyPath);
168
170
  return rules;
169
171
  }
170
- function parseSourceSettings(value, keyPath) {
172
+ function parseSourceSettings(value, keyPath, sourceId) {
171
173
  const raw = requireObject(value, keyPath);
172
- const defaults = defaultWearableSourceSettings();
174
+ const defaults = defaultWearableSourceSettings(sourceId);
173
175
  const minConfidenceRaw = coerceNumber(raw.minConfidence);
174
176
  if (raw.minConfidence !== void 0 && (minConfidenceRaw === void 0 || minConfidenceRaw < 0 || minConfidenceRaw > 1)) {
175
177
  throw new Error(
@@ -227,6 +229,12 @@ function parseSourceSettings(value, keyPath) {
227
229
  rawCleanup.dropLowQuality,
228
230
  `${keyPath}.cleanup.dropLowQuality`,
229
231
  defaults.cleanup.dropLowQuality
232
+ ),
233
+ preserveUtteranceBoundaries: parseBool(
234
+ rawCleanup.preserveUtteranceBoundaries,
235
+ `${keyPath}.cleanup.preserveUtteranceBoundaries`,
236
+ // Optional on the type; the per-source default is always concrete.
237
+ defaults.cleanup.preserveUtteranceBoundaries ?? false
230
238
  )
231
239
  };
232
240
  return {
@@ -330,7 +338,8 @@ function parseWearablesConfig(value) {
330
338
  }
331
339
  sources[sourceId] = parseSourceSettings(
332
340
  sourceValue,
333
- `wearables.sources.${sourceId}`
341
+ `wearables.sources.${sourceId}`,
342
+ sourceId
334
343
  );
335
344
  }
336
345
  }
@@ -3413,4 +3422,4 @@ export {
3413
3422
  VALID_MEMORY_CATEGORIES,
3414
3423
  parseConfig
3415
3424
  };
3416
- //# sourceMappingURL=chunk-QICQ35K5.js.map
3425
+ //# sourceMappingURL=chunk-7Z2DZNWN.js.map