@remnic/core 10.0.174 → 10.0.176

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 (245) hide show
  1. package/dist/access-admin-ops-surface.js +72 -71
  2. package/dist/access-audit.js +2 -2
  3. package/dist/access-cli.js +72 -71
  4. package/dist/access-cli.js.map +1 -1
  5. package/dist/access-extraction-force-flush-preempt.js +72 -71
  6. package/dist/access-extraction-force-flush.js +72 -71
  7. package/dist/access-http-briefing.js +72 -71
  8. package/dist/access-http-query.js +72 -71
  9. package/dist/access-http.js +72 -71
  10. package/dist/access-identity-continuity-surface.js +72 -71
  11. package/dist/access-lcm-surface.js +72 -71
  12. package/dist/access-mcp.js +72 -71
  13. package/dist/access-observe-write-surface.js +72 -71
  14. package/dist/access-operations-batch.js +72 -71
  15. package/dist/access-operations.js +72 -71
  16. package/dist/access-recall-concurrency.js +72 -71
  17. package/dist/access-recall-response.js +72 -71
  18. package/dist/access-recall-surface.js +72 -71
  19. package/dist/access-service.js +72 -71
  20. package/dist/active-recall.js +16 -14
  21. package/dist/active-recall.js.map +1 -1
  22. package/dist/adapters/index.js +4 -4
  23. package/dist/adapters/registry.js +2 -2
  24. package/dist/briefing.js +14 -13
  25. package/dist/buffer-add-turns-bounded.js +2 -2
  26. package/dist/buffer-session-cap.d.ts +1 -1
  27. package/dist/buffer-session-cap.d.ts.map +1 -1
  28. package/dist/buffer-session-cap.js +1 -1
  29. package/dist/buffer.js +11 -10
  30. package/dist/causal-consolidation.js +15 -14
  31. package/dist/causal-consolidation.js.map +1 -1
  32. package/dist/{chunk-IO4AAVYZ.js → chunk-2EKXMZ6E.js} +2 -2
  33. package/dist/{chunk-TOQK5A4Y.js → chunk-2LXROA34.js} +6 -6
  34. package/dist/{chunk-IUM3VSHI.js → chunk-2WREX7KD.js} +10 -1
  35. package/dist/chunk-2WREX7KD.js.map +1 -0
  36. package/dist/{chunk-IHB3JO4B.js → chunk-3FS6IVSU.js} +2 -2
  37. package/dist/{chunk-UBQ2ZOWA.js → chunk-3SP7EZWA.js} +2 -2
  38. package/dist/{chunk-4PBHMJRC.js → chunk-4GI2IGUK.js} +2 -2
  39. package/dist/{chunk-OWD365QW.js → chunk-4TIGRBKH.js} +5 -5
  40. package/dist/{chunk-HHVK2JRE.js → chunk-4TPU36X4.js} +2 -2
  41. package/dist/{chunk-DMPZABKG.js → chunk-4TZOOUMK.js} +2 -2
  42. package/dist/{chunk-Y2LZW3EQ.js → chunk-5CLKLKID.js} +3 -3
  43. package/dist/{chunk-5MTKGNZ5.js → chunk-5RBHL5TF.js} +121 -41
  44. package/dist/chunk-5RBHL5TF.js.map +1 -0
  45. package/dist/{chunk-HR3DKJCU.js → chunk-6SROXED4.js} +2 -2
  46. package/dist/{chunk-L3DDKXQJ.js → chunk-76LDFLAG.js} +2 -2
  47. package/dist/{chunk-5RONA5FF.js → chunk-7DFJ4JX2.js} +4 -4
  48. package/dist/{chunk-OK3X3TBR.js → chunk-7L73PLRG.js} +2 -2
  49. package/dist/{chunk-PUQQPLVV.js → chunk-AJQI2XCB.js} +2 -2
  50. package/dist/chunk-AJQI2XCB.js.map +1 -0
  51. package/dist/{chunk-RSUNBJ4I.js → chunk-AOHQ4OJR.js} +8 -8
  52. package/dist/{chunk-WKNMKV52.js → chunk-AQ6V47Q7.js} +2 -2
  53. package/dist/{chunk-H4KIMZJD.js → chunk-B4ZA2PZC.js} +3 -3
  54. package/dist/{chunk-DLR3SBOM.js → chunk-B7GZL7PR.js} +2 -2
  55. package/dist/{chunk-XYNUEXLC.js → chunk-BAMF6J4W.js} +4 -4
  56. package/dist/{chunk-WI2WTIMY.js → chunk-CFFYGKDJ.js} +5 -5
  57. package/dist/{chunk-NTR72OL5.js → chunk-CXIBBZ6N.js} +2 -2
  58. package/dist/{chunk-3DJ6R4CC.js → chunk-DLPS5YP3.js} +2 -2
  59. package/dist/{chunk-EXGY5TPU.js → chunk-EQSOXIIH.js} +7 -7
  60. package/dist/{chunk-6OMSYPOL.js → chunk-F2XXZR6A.js} +3 -3
  61. package/dist/{chunk-CY2C5LM4.js → chunk-FDLPNFKE.js} +2 -2
  62. package/dist/{chunk-KAGLV5KH.js → chunk-FTQF3G3B.js} +2 -2
  63. package/dist/{chunk-2GQVYLQK.js → chunk-FTV2C3CA.js} +2 -2
  64. package/dist/{chunk-B7HYXVME.js → chunk-FZF7JX76.js} +1 -1
  65. package/dist/chunk-FZF7JX76.js.map +1 -0
  66. package/dist/{chunk-ZKXNSPGQ.js → chunk-G77MHQFZ.js} +2 -2
  67. package/dist/{chunk-66DUCUOC.js → chunk-GGQ3CJVH.js} +2 -2
  68. package/dist/{chunk-BN5SK2RZ.js → chunk-HHKUWNHQ.js} +2 -2
  69. package/dist/{chunk-KMOH6W5B.js → chunk-HOTAHSO3.js} +3 -3
  70. package/dist/{chunk-OY3IULYL.js → chunk-IFXQGDMG.js} +2 -2
  71. package/dist/{chunk-OWBI5477.js → chunk-JUROR7PB.js} +2 -2
  72. package/dist/{chunk-4ACKO4U2.js → chunk-JXYFXVPB.js} +2 -2
  73. package/dist/{chunk-ASWECJXS.js → chunk-KYPFQO43.js} +3 -3
  74. package/dist/{chunk-4WOEEMGK.js → chunk-KZBE4KBZ.js} +2 -2
  75. package/dist/{chunk-V6MN37WG.js → chunk-MFJM35R7.js} +2 -2
  76. package/dist/{chunk-LKXW6W42.js → chunk-OTE5E44O.js} +2 -2
  77. package/dist/{chunk-KPLKABGR.js → chunk-P3SMXKFR.js} +2 -2
  78. package/dist/{chunk-27BH67PT.js → chunk-PCLTJUOY.js} +2 -2
  79. package/dist/{chunk-JDH2BA2P.js → chunk-RXAWE76Y.js} +2 -2
  80. package/dist/{chunk-IXI6S2VJ.js → chunk-S45VECVD.js} +29 -2
  81. package/dist/chunk-S45VECVD.js.map +1 -0
  82. package/dist/{chunk-WTFHZQXM.js → chunk-T3NEDSLZ.js} +3 -3
  83. package/dist/{chunk-HB2PRTXX.js → chunk-V425GW5W.js} +2 -2
  84. package/dist/{chunk-XKFL2WQO.js → chunk-V5FCMJW4.js} +2 -2
  85. package/dist/{chunk-SNI526DD.js → chunk-VR6NF6VX.js} +2 -2
  86. package/dist/{chunk-V6UFCV6T.js → chunk-VRDG7XFJ.js} +80 -80
  87. package/dist/{chunk-5ACIRCBO.js → chunk-WTXUUZYI.js} +6 -4
  88. package/dist/chunk-WTXUUZYI.js.map +1 -0
  89. package/dist/chunk-XBJOO7G5.js +87 -0
  90. package/dist/chunk-XBJOO7G5.js.map +1 -0
  91. package/dist/{chunk-RASE4TEF.js → chunk-Y26CFLHD.js} +5 -2
  92. package/dist/chunk-Y26CFLHD.js.map +1 -0
  93. package/dist/{chunk-AM6H7BIY.js → chunk-YMNPQMHA.js} +2 -2
  94. package/dist/{chunk-QVXRE66C.js → chunk-ZBDTOWGX.js} +7 -7
  95. package/dist/{chunk-YCK26VSL.js → chunk-ZMEEOLQG.js} +2 -2
  96. package/dist/{chunk-R2AJAAHJ.js → chunk-ZNHLUYIT.js} +90 -16
  97. package/dist/chunk-ZNHLUYIT.js.map +1 -0
  98. package/dist/{chunk-DAOMWGO2.js → chunk-ZX5N5D6M.js} +4 -4
  99. package/dist/cli.js +72 -71
  100. package/dist/coding/export-okf-codegraph.js +13 -12
  101. package/dist/coding/export-okf-codegraph.js.map +1 -1
  102. package/dist/compounding/engine.js +15 -14
  103. package/dist/config.d.ts.map +1 -1
  104. package/dist/config.js +16 -14
  105. package/dist/connectors/codex-materialize-runner.js +14 -13
  106. package/dist/connectors/index.js +14 -13
  107. package/dist/convergence-refresh.js +16 -15
  108. package/dist/corpus-watermark.js +16 -15
  109. package/dist/entity-retrieval.js +14 -13
  110. package/dist/explicit-capture.js +72 -71
  111. package/dist/extraction.js +18 -17
  112. package/dist/{first-start-migration-CCZ5SM3V.js → first-start-migration-TCPK2I7J.js} +4 -4
  113. package/dist/harmonic-retrieval.js +14 -13
  114. package/dist/index.js +104 -103
  115. package/dist/lcm/index.js +3 -3
  116. package/dist/location/index.js +15 -14
  117. package/dist/maintenance/memory-governance.js +14 -13
  118. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +14 -13
  119. package/dist/maintenance/rebuild-memory-projection-runner.js +16 -15
  120. package/dist/maintenance/rebuild-memory-projection.js +15 -14
  121. package/dist/memory-browse.js +9 -8
  122. package/dist/namespaces/migrate.js +15 -14
  123. package/dist/namespaces/search.d.ts +5 -1
  124. package/dist/namespaces/search.d.ts.map +1 -1
  125. package/dist/namespaces/search.js +12 -11
  126. package/dist/namespaces/storage.js +14 -13
  127. package/dist/operator-doctor-corpus.js +17 -16
  128. package/dist/operator-toolkit.js +23 -21
  129. package/dist/orchestration/backlog-scheduler.js +75 -74
  130. package/dist/orchestration/backlog-scheduler.js.map +1 -1
  131. package/dist/orchestration/buffer-drain-runner.js +73 -72
  132. package/dist/orchestration/maintenance.js +22 -21
  133. package/dist/orchestrator.js +72 -71
  134. package/dist/peers/index.js +1 -1
  135. package/dist/peers/interaction-log-append.d.ts.map +1 -1
  136. package/dist/qmd-daemon-session.d.ts +8 -0
  137. package/dist/qmd-daemon-session.d.ts.map +1 -1
  138. package/dist/qmd-daemon-session.js +1 -1
  139. package/dist/qmd-health-metadata.d.ts +39 -0
  140. package/dist/qmd-health-metadata.d.ts.map +1 -0
  141. package/dist/qmd-health-metadata.js +12 -0
  142. package/dist/qmd-health-metadata.js.map +1 -0
  143. package/dist/qmd-status.d.ts.map +1 -1
  144. package/dist/qmd-status.js +1 -1
  145. package/dist/qmd.d.ts +5 -1
  146. package/dist/qmd.d.ts.map +1 -1
  147. package/dist/qmd.js +8 -7
  148. package/dist/recall-composition-decision.js +2 -2
  149. package/dist/recall-navigation.js +72 -71
  150. package/dist/recall-state-view-admission.js +9 -8
  151. package/dist/recall-why-service.js +9 -8
  152. package/dist/resume-bundles.js +19 -17
  153. package/dist/search/factory.js +11 -10
  154. package/dist/search/index.js +11 -10
  155. package/dist/search/lancedb-backend.js +2 -2
  156. package/dist/search/meilisearch-backend.js +2 -2
  157. package/dist/search/orama-backend.js +2 -2
  158. package/dist/search/port.d.ts +21 -0
  159. package/dist/search/port.d.ts.map +1 -1
  160. package/dist/search/port.js +1 -1
  161. package/dist/search/remote-backend.js +2 -2
  162. package/dist/semantic-consolidation.js +15 -14
  163. package/dist/semantic-rule-promotion.js +14 -13
  164. package/dist/semantic-rule-verifier.js +14 -13
  165. package/dist/source-agent-qualifier.js +17 -16
  166. package/dist/standup/build.js +14 -13
  167. package/dist/storage.js +13 -12
  168. package/dist/transcript.js +2 -2
  169. package/dist/transfer/export-okf.js +14 -13
  170. package/dist/verified-recall.js +14 -13
  171. package/dist/who-knows-cli.js +15 -14
  172. package/dist/who-knows.js +14 -13
  173. package/package.json +2 -2
  174. package/src/buffer-session-cap-default.test.ts +86 -0
  175. package/src/buffer-session-cap.ts +7 -1
  176. package/src/config.ts +2 -1
  177. package/src/namespaces/search.test.ts +320 -4
  178. package/src/namespaces/search.ts +147 -51
  179. package/src/peers/interaction-log-append.ts +11 -3
  180. package/src/peers/peers.test.ts +27 -0
  181. package/src/qmd-client.test.ts +34 -3
  182. package/src/qmd-daemon-session.ts +34 -1
  183. package/src/qmd-health-metadata.test.ts +493 -0
  184. package/src/qmd-health-metadata.ts +95 -0
  185. package/src/qmd-status.ts +10 -1
  186. package/src/qmd.ts +83 -3
  187. package/src/search/port.ts +23 -0
  188. package/dist/chunk-5ACIRCBO.js.map +0 -1
  189. package/dist/chunk-5MTKGNZ5.js.map +0 -1
  190. package/dist/chunk-B7HYXVME.js.map +0 -1
  191. package/dist/chunk-IUM3VSHI.js.map +0 -1
  192. package/dist/chunk-IXI6S2VJ.js.map +0 -1
  193. package/dist/chunk-PUQQPLVV.js.map +0 -1
  194. package/dist/chunk-R2AJAAHJ.js.map +0 -1
  195. package/dist/chunk-RASE4TEF.js.map +0 -1
  196. /package/dist/{chunk-IO4AAVYZ.js.map → chunk-2EKXMZ6E.js.map} +0 -0
  197. /package/dist/{chunk-TOQK5A4Y.js.map → chunk-2LXROA34.js.map} +0 -0
  198. /package/dist/{chunk-IHB3JO4B.js.map → chunk-3FS6IVSU.js.map} +0 -0
  199. /package/dist/{chunk-UBQ2ZOWA.js.map → chunk-3SP7EZWA.js.map} +0 -0
  200. /package/dist/{chunk-4PBHMJRC.js.map → chunk-4GI2IGUK.js.map} +0 -0
  201. /package/dist/{chunk-OWD365QW.js.map → chunk-4TIGRBKH.js.map} +0 -0
  202. /package/dist/{chunk-HHVK2JRE.js.map → chunk-4TPU36X4.js.map} +0 -0
  203. /package/dist/{chunk-DMPZABKG.js.map → chunk-4TZOOUMK.js.map} +0 -0
  204. /package/dist/{chunk-Y2LZW3EQ.js.map → chunk-5CLKLKID.js.map} +0 -0
  205. /package/dist/{chunk-HR3DKJCU.js.map → chunk-6SROXED4.js.map} +0 -0
  206. /package/dist/{chunk-L3DDKXQJ.js.map → chunk-76LDFLAG.js.map} +0 -0
  207. /package/dist/{chunk-5RONA5FF.js.map → chunk-7DFJ4JX2.js.map} +0 -0
  208. /package/dist/{chunk-OK3X3TBR.js.map → chunk-7L73PLRG.js.map} +0 -0
  209. /package/dist/{chunk-RSUNBJ4I.js.map → chunk-AOHQ4OJR.js.map} +0 -0
  210. /package/dist/{chunk-WKNMKV52.js.map → chunk-AQ6V47Q7.js.map} +0 -0
  211. /package/dist/{chunk-H4KIMZJD.js.map → chunk-B4ZA2PZC.js.map} +0 -0
  212. /package/dist/{chunk-DLR3SBOM.js.map → chunk-B7GZL7PR.js.map} +0 -0
  213. /package/dist/{chunk-XYNUEXLC.js.map → chunk-BAMF6J4W.js.map} +0 -0
  214. /package/dist/{chunk-WI2WTIMY.js.map → chunk-CFFYGKDJ.js.map} +0 -0
  215. /package/dist/{chunk-NTR72OL5.js.map → chunk-CXIBBZ6N.js.map} +0 -0
  216. /package/dist/{chunk-3DJ6R4CC.js.map → chunk-DLPS5YP3.js.map} +0 -0
  217. /package/dist/{chunk-EXGY5TPU.js.map → chunk-EQSOXIIH.js.map} +0 -0
  218. /package/dist/{chunk-6OMSYPOL.js.map → chunk-F2XXZR6A.js.map} +0 -0
  219. /package/dist/{chunk-CY2C5LM4.js.map → chunk-FDLPNFKE.js.map} +0 -0
  220. /package/dist/{chunk-KAGLV5KH.js.map → chunk-FTQF3G3B.js.map} +0 -0
  221. /package/dist/{chunk-2GQVYLQK.js.map → chunk-FTV2C3CA.js.map} +0 -0
  222. /package/dist/{chunk-ZKXNSPGQ.js.map → chunk-G77MHQFZ.js.map} +0 -0
  223. /package/dist/{chunk-66DUCUOC.js.map → chunk-GGQ3CJVH.js.map} +0 -0
  224. /package/dist/{chunk-BN5SK2RZ.js.map → chunk-HHKUWNHQ.js.map} +0 -0
  225. /package/dist/{chunk-KMOH6W5B.js.map → chunk-HOTAHSO3.js.map} +0 -0
  226. /package/dist/{chunk-OY3IULYL.js.map → chunk-IFXQGDMG.js.map} +0 -0
  227. /package/dist/{chunk-OWBI5477.js.map → chunk-JUROR7PB.js.map} +0 -0
  228. /package/dist/{chunk-4ACKO4U2.js.map → chunk-JXYFXVPB.js.map} +0 -0
  229. /package/dist/{chunk-ASWECJXS.js.map → chunk-KYPFQO43.js.map} +0 -0
  230. /package/dist/{chunk-4WOEEMGK.js.map → chunk-KZBE4KBZ.js.map} +0 -0
  231. /package/dist/{chunk-V6MN37WG.js.map → chunk-MFJM35R7.js.map} +0 -0
  232. /package/dist/{chunk-LKXW6W42.js.map → chunk-OTE5E44O.js.map} +0 -0
  233. /package/dist/{chunk-KPLKABGR.js.map → chunk-P3SMXKFR.js.map} +0 -0
  234. /package/dist/{chunk-27BH67PT.js.map → chunk-PCLTJUOY.js.map} +0 -0
  235. /package/dist/{chunk-JDH2BA2P.js.map → chunk-RXAWE76Y.js.map} +0 -0
  236. /package/dist/{chunk-WTFHZQXM.js.map → chunk-T3NEDSLZ.js.map} +0 -0
  237. /package/dist/{chunk-HB2PRTXX.js.map → chunk-V425GW5W.js.map} +0 -0
  238. /package/dist/{chunk-XKFL2WQO.js.map → chunk-V5FCMJW4.js.map} +0 -0
  239. /package/dist/{chunk-SNI526DD.js.map → chunk-VR6NF6VX.js.map} +0 -0
  240. /package/dist/{chunk-V6UFCV6T.js.map → chunk-VRDG7XFJ.js.map} +0 -0
  241. /package/dist/{chunk-AM6H7BIY.js.map → chunk-YMNPQMHA.js.map} +0 -0
  242. /package/dist/{chunk-QVXRE66C.js.map → chunk-ZBDTOWGX.js.map} +0 -0
  243. /package/dist/{chunk-YCK26VSL.js.map → chunk-ZMEEOLQG.js.map} +0 -0
  244. /package/dist/{chunk-DAOMWGO2.js.map → chunk-ZX5N5D6M.js.map} +0 -0
  245. /package/dist/{first-start-migration-CCZ5SM3V.js.map → first-start-migration-TCPK2I7J.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveDefaultNamespaceRoot,
3
3
  resolveNamespaceStorageRoot
4
- } from "./chunk-4WOEEMGK.js";
4
+ } from "./chunk-KZBE4KBZ.js";
5
5
  import {
6
6
  getConfiguredNamespaces
7
7
  } from "./chunk-Y6FJDJUK.js";
@@ -2308,4 +2308,4 @@ export {
2308
2308
  runNamespaceMaintenancePlan,
2309
2309
  runNamespaceMaintenanceBatchPlan
2310
2310
  };
2311
- //# sourceMappingURL=chunk-NTR72OL5.js.map
2311
+ //# sourceMappingURL=chunk-CXIBBZ6N.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  reportSearchDegradation,
10
10
  resolveEnsureCollectionArgs
11
- } from "./chunk-B7HYXVME.js";
11
+ } from "./chunk-FZF7JX76.js";
12
12
  import {
13
13
  log
14
14
  } from "./chunk-3WCASNQZ.js";
@@ -523,4 +523,4 @@ function isMissingVectorProviderColumnError(err) {
523
523
  export {
524
524
  LanceDbBackend
525
525
  };
526
- //# sourceMappingURL=chunk-3DJ6R4CC.js.map
526
+ //# sourceMappingURL=chunk-DLPS5YP3.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ExtractionDeadlineError
3
- } from "./chunk-UBQ2ZOWA.js";
3
+ } from "./chunk-3SP7EZWA.js";
4
4
  import {
5
5
  BufferAdmissionRefusedError,
6
6
  BufferSessionTurnRefusedError,
@@ -14,18 +14,18 @@ import {
14
14
  } from "./chunk-TRFSTCQK.js";
15
15
  import {
16
16
  addTurnsBoundedWithAdmissionKey
17
- } from "./chunk-WI2WTIMY.js";
17
+ } from "./chunk-CFFYGKDJ.js";
18
18
  import {
19
19
  selectEvictedBufferKeys
20
20
  } from "./chunk-6ZELOK6O.js";
21
+ import {
22
+ scanSignals
23
+ } from "./chunk-H3FZVNRN.js";
21
24
  import {
22
25
  refuseOverCapSingle,
23
26
  resolveMaxTurnsPerSession,
24
27
  sessionTurnCapReached
25
- } from "./chunk-PUQQPLVV.js";
26
- import {
27
- scanSignals
28
- } from "./chunk-H3FZVNRN.js";
28
+ } from "./chunk-AJQI2XCB.js";
29
29
  import {
30
30
  EVICTION_HOOKS,
31
31
  bufferEntryCounts,
@@ -941,4 +941,4 @@ var SmartBuffer = class {
941
941
  export {
942
942
  SmartBuffer
943
943
  };
944
- //# sourceMappingURL=chunk-EXGY5TPU.js.map
944
+ //# sourceMappingURL=chunk-EQSOXIIH.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveDefaultNamespaceRoot
3
- } from "./chunk-4WOEEMGK.js";
3
+ } from "./chunk-KZBE4KBZ.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-OWBI5477.js";
6
+ } from "./chunk-JUROR7PB.js";
7
7
  import {
8
8
  composeLocationDayBody,
9
9
  composeLocationDayMeta,
@@ -852,4 +852,4 @@ export {
852
852
  LOCATION_SYNC_DEFAULT_INTERVAL_MS,
853
853
  startLocationAutoSync
854
854
  };
855
- //# sourceMappingURL=chunk-6OMSYPOL.js.map
855
+ //# sourceMappingURL=chunk-F2XXZR6A.js.map
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-YVUNHNB6.js";
11
11
  import {
12
12
  parseQmdExplain
13
- } from "./chunk-R2AJAAHJ.js";
13
+ } from "./chunk-ZNHLUYIT.js";
14
14
  import {
15
15
  parseFlexibleIsoTimestamp
16
16
  } from "./chunk-P7FMDTKL.js";
@@ -645,4 +645,4 @@ export {
645
645
  appendMemoryToGraphContext,
646
646
  resolvePersistedMemoryRelativePath
647
647
  };
648
- //# sourceMappingURL=chunk-CY2C5LM4.js.map
648
+ //# sourceMappingURL=chunk-FDLPNFKE.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  describeSearchDegradations,
9
9
  fatalSearchDegradations
10
- } from "./chunk-B7HYXVME.js";
10
+ } from "./chunk-FZF7JX76.js";
11
11
  import {
12
12
  isAbortError
13
13
  } from "./chunk-R2MBW2S4.js";
@@ -102,4 +102,4 @@ export {
102
102
  notifyContextComposition,
103
103
  recallFailureComposition
104
104
  };
105
- //# sourceMappingURL=chunk-KAGLV5KH.js.map
105
+ //# sourceMappingURL=chunk-FTQF3G3B.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseFrontmatter
3
- } from "./chunk-OWBI5477.js";
3
+ } from "./chunk-JUROR7PB.js";
4
4
  import {
5
5
  activityDigestPath,
6
6
  isValidActivityDate
@@ -199,4 +199,4 @@ export {
199
199
  buildStandup,
200
200
  standupHelp
201
201
  };
202
- //# sourceMappingURL=chunk-2GQVYLQK.js.map
202
+ //# sourceMappingURL=chunk-FTV2C3CA.js.map
@@ -60,4 +60,4 @@ export {
60
60
  describeSearchDegradations,
61
61
  resolveEnsureCollectionArgs
62
62
  };
63
- //# sourceMappingURL=chunk-B7HYXVME.js.map
63
+ //# sourceMappingURL=chunk-FZF7JX76.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/search/port.ts"],"sourcesContent":["import type { QmdSearchResult } from \"../types.js\";\n\n/** Alias so consumers don't need to reference \"Qmd\" in a backend-agnostic context. */\nexport type SearchResult = QmdSearchResult;\n\nexport interface SearchQueryOptions {\n intent?: string;\n explain?: boolean;\n candidateLimit?: number;\n rerank?: boolean;\n chunkStrategy?: \"auto\" | \"regex\";\n structuredSearches?: Array<{ type: \"lex\" | \"vec\" | \"hyde\"; query: string }>;\n}\n\n/** Merge config-derived QMD options with an optional per-recall HTTP/MCP override. */\nexport function mergeSearchQueryOptions(\n configured: SearchQueryOptions | undefined,\n request?: SearchQueryOptions,\n): SearchQueryOptions | undefined {\n if (!configured && !request) return undefined;\n const out: SearchQueryOptions = { ...(configured ?? {}) };\n if (!request) {\n return Object.keys(out).length > 0 ? out : undefined;\n }\n if (request.intent !== undefined) {\n const intent = request.intent.trim();\n if (intent.length > 0) out.intent = intent;\n }\n if (request.explain !== undefined) {\n out.explain = request.explain;\n }\n // QMD wire path only honors explicit opt-out (`rerank: false`); `true` is a no-op.\n if (request.rerank === false) out.rerank = false;\n if (request.chunkStrategy === \"auto\" || request.chunkStrategy === \"regex\") {\n out.chunkStrategy = request.chunkStrategy;\n }\n if (\n request.candidateLimit !== undefined &&\n Number.isFinite(request.candidateLimit) &&\n request.candidateLimit > 0\n ) {\n out.candidateLimit = Math.floor(request.candidateLimit);\n }\n if (request.structuredSearches !== undefined && request.structuredSearches.length > 0) {\n out.structuredSearches = request.structuredSearches;\n }\n return Object.keys(out).length > 0 ? out : undefined;\n}\n\n/**\n * A search that returned empty (or partial) results because the backend was\n * unavailable, still loading, or timed out — cases that are otherwise\n * indistinguishable from a genuine \"no matches\" (issue #1536, CLAUDE.md\n * rule 34).\n */\nexport interface SearchDegradation {\n backend: \"qmd\" | \"remote\" | \"meilisearch\" | \"orama\" | \"lancedb\";\n code:\n | \"backend_unavailable\"\n | \"backend_error\"\n | \"daemon_timeout\"\n | \"daemon_loading\"\n | \"subprocess_error\"\n | \"deadline_exceeded\"\n | \"remote_error\"\n | \"vector_tier_unavailable\";\n detail?: string;\n}\n\nexport interface SearchExecutionOptions {\n signal?: AbortSignal;\n /**\n * Observer invoked when the backend degrades during this call (#1536).\n * Callers that need to distinguish empty-because-degraded from\n * empty-because-no-matches (recall x-ray, fallback decisions) pass a\n * collector here. Observer failures are swallowed by the notifier —\n * observability must never break search.\n */\n onDegradation?: (degradation: SearchDegradation) => void;\n}\n\nexport function reportSearchDegradation(\n execution: SearchExecutionOptions | undefined,\n degradation: SearchDegradation\n): void {\n try {\n execution?.onDegradation?.(degradation);\n } catch {\n // Observability must never break search.\n }\n}\n\n/**\n * Codes that mean the search backend could NOT answer, so an empty\n * result set carries no information (issue #3082 / recall_why #3033).\n * `vector_tier_unavailable` is excluded on purpose: the lexical tier\n * still answered, so the result set is degraded but real.\n */\nexport const FATAL_SEARCH_DEGRADATION_CODES: Readonly<\n Partial<Record<SearchDegradation[\"code\"], true>>\n> = Object.freeze({\n backend_unavailable: true,\n backend_error: true,\n daemon_timeout: true,\n daemon_loading: true,\n subprocess_error: true,\n deadline_exceeded: true,\n remote_error: true,\n});\n\nexport function fatalSearchDegradations(\n degradations: readonly SearchDegradation[],\n): SearchDegradation[] {\n return degradations.filter((d) => FATAL_SEARCH_DEGRADATION_CODES[d.code] === true);\n}\n\nexport function describeSearchDegradations(\n degradations: readonly SearchDegradation[],\n): string {\n return degradations\n .map((d) => `${d.backend}:${d.code}${d.detail !== undefined ? ` (${d.detail})` : \"\"}`)\n .join(\"; \");\n}\n\nexport function resolveEnsureCollectionArgs(\n collectionOrExecution?: string | SearchExecutionOptions,\n execution?: SearchExecutionOptions\n): { collection?: string; execution?: SearchExecutionOptions } {\n if (typeof collectionOrExecution === \"string\") {\n return { collection: collectionOrExecution, execution };\n }\n return { collection: undefined, execution: collectionOrExecution ?? execution };\n}\n\n/**\n * Optional status report for search backends that track embedding backlog.\n * Backends without embedding pipelines return null from status().\n */\nexport interface SearchBackendStatus {\n pendingEmbeddings: number | null;\n oldestPendingAgeMs: number | null;\n totalFiles: number | null;\n embeddedFiles: number | null;\n}\n\nexport interface OperationalSearchHealth extends SearchBackendStatus {\n collectionState: \"present\" | \"missing\" | \"unknown\";\n /** Recheck the captured operational owner after the caller's final await. */\n isCurrent?: () => boolean;\n}\n\n/**\n * Abstract search backend interface.\n *\n * Implementations:\n * - QmdClient (default, local hybrid BM25+vector+reranking)\n * - OramaBackend (embedded, pure JS, hybrid FTS+vector)\n * - LanceDbBackend (embedded, native Arrow bindings, RRF reranking)\n * - MeilisearchBackend (server-based SDK, hybrid search)\n * - RemoteSearchBackend (HTTP REST adapter)\n * - NoopSearchBackend (graceful degradation)\n *\n * See docs/writing-a-search-backend.md for the implementation guide.\n */\nexport interface SearchBackend {\n // ── Lifecycle ──\n probe(execution?: SearchExecutionOptions): Promise<boolean>;\n /**\n * Optional non-mutating availability probe for health/readiness checks.\n * Implementations must avoid auto-upgrades, collection creation, daemon\n * startup, or any other runtime-modifying side effects.\n */\n checkAvailability?(execution?: SearchExecutionOptions): Promise<boolean>;\n isAvailable(): boolean;\n debugStatus(): string;\n /** Opaque current operational generation; observing it must not acquire a process. */\n operationalHealthIdentity?(): object | null;\n getVersionStatus?(): {\n installedVersion: string | null;\n supportedVersion: string;\n supported: boolean;\n upgradeAvailable: boolean;\n capabilities?: { doctor?: boolean };\n } | null;\n /** Optional embedding backlog status for health surfaces. */\n status?(): Promise<SearchBackendStatus>;\n /**\n * Fresh health from an already-owned operational connection only.\n * Undefined means the optional capability is absent: use existing diagnostics.\n */\n readOperationalHealth?(\n memoryDir: string,\n execution?: SearchExecutionOptions,\n ): Promise<OperationalSearchHealth | undefined>;\n\n // ── Search ──\n search(\n query: string,\n collection?: string,\n maxResults?: number,\n options?: SearchQueryOptions,\n execution?: SearchExecutionOptions\n ): Promise<SearchResult[]>;\n searchGlobal(query: string, maxResults?: number, execution?: SearchExecutionOptions): Promise<SearchResult[]>;\n bm25Search(\n query: string,\n collection?: string,\n maxResults?: number,\n execution?: SearchExecutionOptions\n ): Promise<SearchResult[]>;\n vectorSearch(\n query: string,\n collection?: string,\n maxResults?: number,\n execution?: SearchExecutionOptions\n ): Promise<SearchResult[]>;\n hybridSearch(\n query: string,\n collection?: string,\n maxResults?: number,\n execution?: SearchExecutionOptions\n ): Promise<SearchResult[]>;\n\n // ── Maintenance ──\n update(execution?: SearchExecutionOptions): Promise<void>;\n /**\n * Wall-clock ms of the most recent SUCCESSFUL index refresh, or null when the\n * backend has never run one. Ordinary update() is fail-open: it returns\n * silently (without throwing or advancing this timestamp) when the backend is\n * unavailable or the call is suppressed by a min-interval / failure backoff.\n * Callers that must know whether update() actually indexed — so they can\n * invalidate dependent caches only on a real refresh — snapshot this before\n * the call and treat the backend as refreshed iff the value advanced. Optional\n * because not every backend tracks it; absent means \"assume refreshed\".\n */\n readonly lastUpdateRanAtMs?: number | null;\n /**\n * Optional strict refresh used by callers that must know whether the backend\n * was actually refreshed before writing success markers. Ordinary update\n * calls remain fail-open for migration/maintenance resilience.\n */\n updateStrict?(execution?: SearchExecutionOptions): Promise<void>;\n /**\n * Fail-open like update(), but reports whether the index was actually brought\n * up to date: false when it returned early (aborted, unavailable, suppressed\n * or skipped) or failed. It never rejects for an update failure. For backends with no strict variant, so a caller\n * that must not lose a re-index (the entity-migration pending marker) can tell.\n */\n updateCompleted?(execution?: SearchExecutionOptions): Promise<boolean>;\n updateCollection(collection: string, execution?: SearchExecutionOptions): Promise<void>;\n updateCollectionFromDir?(collection: string, memoryDir: string, execution?: SearchExecutionOptions): Promise<void>;\n /**\n * True when update() refreshes every indexed collection, not just this\n * backend's configured collection. Namespace routers use this to avoid\n * repeating the same expensive global update once per namespace.\n */\n updatesAllCollections?(): boolean;\n /**\n * Optional strict refresh used by callers that must know whether a collection\n * was actually refreshed before writing success markers. Ordinary update\n * calls remain fail-open for migration/maintenance resilience.\n */\n updateCollectionStrict?(collection: string, execution?: SearchExecutionOptions): Promise<void>;\n embed(): Promise<void>;\n /**\n * Optional strict embed used by callers that must know vectors were actually\n * refreshed before writing success markers.\n */\n embedStrict?(): Promise<void>;\n embedCollection(collection: string): Promise<void>;\n /**\n * Optional strict collection embed used by callers that must know vectors were\n * actually refreshed before writing success markers.\n */\n embedCollectionStrict?(collection: string): Promise<void>;\n\n // ── Collection management ──\n /**\n * True only when the backend can bind, isolate, search, and delete collections\n * outside Remnic's primary memory roots.\n */\n supportsAdditionalCollections?(): boolean;\n /**\n * Prevent a collection from participating in unscoped/global searches.\n * Dedicated corpora must call this immediately after collection creation.\n */\n excludeCollectionFromGlobalSearch?(collection: string, execution?: SearchExecutionOptions): Promise<void>;\n /** Remove a non-primary collection and its backend-owned index state. */\n deleteCollection?(collection: string, execution?: SearchExecutionOptions): Promise<boolean>;\n /** Canonical source root currently bound to a named collection. */\n collectionRoot?(collection: string, execution?: SearchExecutionOptions): Promise<string | null>;\n /** Collection-scoped status for observability surfaces. */\n collectionStatus?(collection: string): Promise<Pick<SearchBackendStatus, \"totalFiles\">>;\n /**\n * Optional non-mutating collection probe. Backends that can distinguish a\n * missing collection from a transient probe failure should implement this so\n * callers can avoid auto-creating collections in unsafe layouts.\n */\n checkCollection?(\n collectionOrExecution?: string | SearchExecutionOptions,\n execution?: SearchExecutionOptions\n ): Promise<\"present\" | \"missing\" | \"unknown\" | \"skipped\">;\n ensureCollection(\n memoryDir: string,\n execution?: SearchExecutionOptions\n ): Promise<\"present\" | \"missing\" | \"unknown\" | \"skipped\">;\n ensureCollection(\n memoryDir: string,\n collection?: string,\n execution?: SearchExecutionOptions\n ): Promise<\"present\" | \"missing\" | \"unknown\" | \"skipped\">;\n}\n"],"mappings":";AAeO,SAAS,wBACd,YACA,SACgC;AAChC,MAAI,CAAC,cAAc,CAAC,QAAS,QAAO;AACpC,QAAM,MAA0B,EAAE,GAAI,cAAc,CAAC,EAAG;AACxD,MAAI,CAAC,SAAS;AACZ,WAAO,OAAO,KAAK,GAAG,EAAE,SAAS,IAAI,MAAM;AAAA,EAC7C;AACA,MAAI,QAAQ,WAAW,QAAW;AAChC,UAAM,SAAS,QAAQ,OAAO,KAAK;AACnC,QAAI,OAAO,SAAS,EAAG,KAAI,SAAS;AAAA,EACtC;AACA,MAAI,QAAQ,YAAY,QAAW;AACjC,QAAI,UAAU,QAAQ;AAAA,EACxB;AAEA,MAAI,QAAQ,WAAW,MAAO,KAAI,SA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I5477.js";
17
+ } from "./chunk-JUROR7PB.js";
18
18
  import {
19
19
  OKF_PROFILE_TYPE,
20
20
  okfTypeForMemory
@@ -272,4 +272,4 @@ export {
272
272
  exportOkfBundle,
273
273
  firstHeading
274
274
  };
275
- //# sourceMappingURL=chunk-ZKXNSPGQ.js.map
275
+ //# sourceMappingURL=chunk-G77MHQFZ.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  reportSearchDegradation,
10
10
  resolveEnsureCollectionArgs
11
- } from "./chunk-B7HYXVME.js";
11
+ } from "./chunk-FZF7JX76.js";
12
12
  import {
13
13
  log
14
14
  } from "./chunk-3WCASNQZ.js";
@@ -274,4 +274,4 @@ function isMeilisearchIndexNotFoundError(err) {
274
274
  export {
275
275
  MeilisearchBackend
276
276
  };
277
- //# sourceMappingURL=chunk-66DUCUOC.js.map
277
+ //# sourceMappingURL=chunk-GGQ3CJVH.js.map
@@ -2,7 +2,7 @@ import {
2
2
  WHO_KNOWS_DEFAULT_LIMIT,
3
3
  WHO_KNOWS_MAX_LIMIT,
4
4
  validateWhoKnowsInput
5
- } from "./chunk-XKFL2WQO.js";
5
+ } from "./chunk-V5FCMJW4.js";
6
6
 
7
7
  // src/who-knows-cli.ts
8
8
  function extractWhoKnowsRawArgs(rest) {
@@ -74,4 +74,4 @@ export {
74
74
  renderWhoKnowsText,
75
75
  renderWhoKnows
76
76
  };
77
- //# sourceMappingURL=chunk-BN5SK2RZ.js.map
77
+ //# sourceMappingURL=chunk-HHKUWNHQ.js.map
@@ -8,11 +8,11 @@ import {
8
8
  } from "./chunk-5CO5G4MN.js";
9
9
  import {
10
10
  resolveDefaultNamespaceRoot
11
- } from "./chunk-4WOEEMGK.js";
11
+ } from "./chunk-KZBE4KBZ.js";
12
12
  import {
13
13
  StorageManager,
14
14
  readRawMemoryDocument
15
- } from "./chunk-OWBI5477.js";
15
+ } from "./chunk-JUROR7PB.js";
16
16
  import {
17
17
  parseContinuityImprovementLoops
18
18
  } from "./chunk-LDXUBPMO.js";
@@ -1869,4 +1869,4 @@ export {
1869
1869
  defaultTierMigrationCycleBudget,
1870
1870
  CompoundingEngine
1871
1871
  };
1872
- //# sourceMappingURL=chunk-KMOH6W5B.js.map
1872
+ //# sourceMappingURL=chunk-HOTAHSO3.js.map
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-3DADRUGW.js";
15
15
  import {
16
16
  StorageManager
17
- } from "./chunk-OWBI5477.js";
17
+ } from "./chunk-JUROR7PB.js";
18
18
  import {
19
19
  isValidityExpiredNow
20
20
  } from "./chunk-6CIAGZ6X.js";
@@ -626,4 +626,4 @@ export {
626
626
  readProjectedHarmonicGraph,
627
627
  searchHarmonicRetrieval
628
628
  };
629
- //# sourceMappingURL=chunk-OY3IULYL.js.map
629
+ //# sourceMappingURL=chunk-IFXQGDMG.js.map
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  normalizeQmdResultPath,
28
28
  resolveNamespaceResultPath
29
- } from "./chunk-5MTKGNZ5.js";
29
+ } from "./chunk-5RBHL5TF.js";
30
30
  import {
31
31
  withholdToolScopedFromSharedNamespace
32
32
  } from "./chunk-S2V7RUCL.js";
@@ -13356,4 +13356,4 @@ export {
13356
13356
  isValidBufferSurpriseEvent,
13357
13357
  StorageManager3 as StorageManager
13358
13358
  };
13359
- //# sourceMappingURL=chunk-OWBI5477.js.map
13359
+ //# sourceMappingURL=chunk-JUROR7PB.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  rebuildMemoryProjection,
3
3
  watchProjectionRebuildParent
4
- } from "./chunk-H4KIMZJD.js";
4
+ } from "./chunk-B4ZA2PZC.js";
5
5
  import {
6
6
  initLogger,
7
7
  log
@@ -77,4 +77,4 @@ if (invokedAsRunner) {
77
77
  export {
78
78
  PROJECTION_REBUILD_RUNNER_FLAG
79
79
  };
80
- //# sourceMappingURL=chunk-4ACKO4U2.js.map
80
+ //# sourceMappingURL=chunk-JXYFXVPB.js.map
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-5HFVWYHL.js";
4
4
  import {
5
5
  isGenericRecallExcludedPath
6
- } from "./chunk-HR3DKJCU.js";
6
+ } from "./chunk-6SROXED4.js";
7
7
  import {
8
8
  planRecallMode
9
9
  } from "./chunk-CSAKJVXW.js";
10
10
  import {
11
11
  describeSearchDegradations,
12
12
  fatalSearchDegradations
13
- } from "./chunk-B7HYXVME.js";
13
+ } from "./chunk-FZF7JX76.js";
14
14
  import {
15
15
  RecallWhyInputError,
16
16
  explainRecallMiss
@@ -132,4 +132,4 @@ async function findExpectedMemory(orchestrator, namespaces, expect) {
132
132
  export {
133
133
  runRecallWhy
134
134
  };
135
- //# sourceMappingURL=chunk-ASWECJXS.js.map
135
+ //# sourceMappingURL=chunk-KYPFQO43.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-OWBI5477.js";
3
+ } from "./chunk-JUROR7PB.js";
4
4
  import {
5
5
  keyring_exports,
6
6
  secureStoreDir
@@ -417,4 +417,4 @@ export {
417
417
  resolveNamespaceStorageRoot,
418
418
  NamespaceStorageRouter
419
419
  };
420
- //# sourceMappingURL=chunk-4WOEEMGK.js.map
420
+ //# sourceMappingURL=chunk-KZBE4KBZ.js.map
@@ -6,7 +6,7 @@ import {
6
6
  headerConnector,
7
7
  renderExtractionConversation,
8
8
  resolveSourceConnector
9
- } from "./chunk-WKNMKV52.js";
9
+ } from "./chunk-AQ6V47Q7.js";
10
10
  import {
11
11
  normalizeReasoningTrace
12
12
  } from "./chunk-54V4BZWP.js";
@@ -2458,4 +2458,4 @@ export {
2458
2458
  shouldEnableLocalExtractionThinking,
2459
2459
  ExtractionEngine
2460
2460
  };
2461
- //# sourceMappingURL=chunk-V6MN37WG.js.map
2461
+ //# sourceMappingURL=chunk-MFJM35R7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runPostConsolidationMaterialize
3
- } from "./chunk-HB2PRTXX.js";
3
+ } from "./chunk-V425GW5W.js";
4
4
  import {
5
5
  discoverMemoryExtensions,
6
6
  renderExtensionsBlock,
@@ -232,4 +232,4 @@ export {
232
232
  buildExtensionsBlockForConsolidation,
233
233
  materializeAfterSemanticConsolidation
234
234
  };
235
- //# sourceMappingURL=chunk-LKXW6W42.js.map
235
+ //# sourceMappingURL=chunk-OTE5E44O.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-YVUNHNB6.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-OWBI5477.js";
6
+ } from "./chunk-JUROR7PB.js";
7
7
  import {
8
8
  requestEntityCanonicalIdReconcile
9
9
  } from "./chunk-KM4QO4LN.js";
@@ -769,4 +769,4 @@ export {
769
769
  listMemoryGovernanceRuns,
770
770
  readMemoryGovernanceRunArtifact
771
771
  };
772
- //# sourceMappingURL=chunk-KPLKABGR.js.map
772
+ //# sourceMappingURL=chunk-P3SMXKFR.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-B7RWBZXW.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-OWBI5477.js";
6
+ } from "./chunk-JUROR7PB.js";
7
7
  import {
8
8
  countRecallTokenOverlap,
9
9
  normalizeRecallTokens
@@ -109,4 +109,4 @@ export {
109
109
  compareVerifiedEpisodeResults,
110
110
  searchVerifiedEpisodes
111
111
  };
112
- //# sourceMappingURL=chunk-27BH67PT.js.map
112
+ //# sourceMappingURL=chunk-PCLTJUOY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isGenericRecallExcludedPath
3
- } from "./chunk-HR3DKJCU.js";
3
+ } from "./chunk-6SROXED4.js";
4
4
  import {
5
5
  normalizeProjectionPreview
6
6
  } from "./chunk-SCU65EZI.js";
@@ -209,4 +209,4 @@ export {
209
209
  browsePatternMatches,
210
210
  runMemoryBrowse
211
211
  };
212
- //# sourceMappingURL=chunk-JDH2BA2P.js.map
212
+ //# sourceMappingURL=chunk-RXAWE76Y.js.map
@@ -16,6 +16,15 @@ import {
16
16
  } from "./chunk-3WCASNQZ.js";
17
17
 
18
18
  // src/qmd-daemon-session.ts
19
+ import { z } from "zod";
20
+ var initializeHealthSchema = z.object({
21
+ isError: z.literal(false).optional(),
22
+ capabilities: z.object({
23
+ experimental: z.object({
24
+ "qmd/healthMetadata": z.strictObject({ schemaVersion: z.literal(1) }).optional()
25
+ }).optional()
26
+ })
27
+ });
19
28
  var nextJsonRpcId = 1;
20
29
  function sanitizeForLog(value, max = 200) {
21
30
  let out = "";
@@ -44,6 +53,8 @@ function isTimeoutMessage(message) {
44
53
  var QmdDaemonSession = class {
45
54
  child = null;
46
55
  initialized = false;
56
+ processIdentity = null;
57
+ healthMetadataCapability = null;
47
58
  buffer = "";
48
59
  startPromise = null;
49
60
  pendingRequests = /* @__PURE__ */ new Map();
@@ -78,6 +89,7 @@ var QmdDaemonSession = class {
78
89
  stdio: ["pipe", "pipe", "pipe"]
79
90
  });
80
91
  this.child = child;
92
+ this.processIdentity = {};
81
93
  this.buffer = "";
82
94
  child.stdout?.on("data", (data) => {
83
95
  if (this.child !== child) return;
@@ -109,6 +121,7 @@ var QmdDaemonSession = class {
109
121
  } else {
110
122
  log.debug("QMD mcp: process already running, retrying handshake");
111
123
  }
124
+ const processIdentity = this.processIdentity;
112
125
  try {
113
126
  const result = await this.sendRequest(
114
127
  "initialize",
@@ -119,15 +132,19 @@ var QmdDaemonSession = class {
119
132
  },
120
133
  6e4
121
134
  );
135
+ if (this.processIdentity !== processIdentity) return false;
122
136
  if (!result) {
123
137
  this.cleanup({ killChild: true });
124
138
  return false;
125
139
  }
126
140
  this.sendNotification("notifications/initialized");
141
+ const metadata = initializeHealthSchema.safeParse(result).data;
142
+ this.healthMetadataCapability = !metadata ? "invalid" : metadata.capabilities.experimental?.["qmd/healthMetadata"] ? "available" : "absent";
127
143
  this.initialized = true;
128
144
  log.info("QMD mcp: stdio session initialized");
129
145
  return true;
130
146
  } catch (err) {
147
+ if (this.processIdentity !== processIdentity) return false;
131
148
  const msg = err instanceof Error ? err.message : String(err);
132
149
  if (isTimeoutMessage(msg)) {
133
150
  log.debug("QMD mcp: handshake timed out \u2014 process still loading, will retry later");
@@ -138,7 +155,7 @@ var QmdDaemonSession = class {
138
155
  }
139
156
  return false;
140
157
  } finally {
141
- this.startPromise = null;
158
+ if (this.processIdentity === processIdentity) this.startPromise = null;
142
159
  }
143
160
  })();
144
161
  return this.startPromise;
@@ -181,6 +198,14 @@ var QmdDaemonSession = class {
181
198
  isActive() {
182
199
  return this.child !== null && !this.child.killed && this.initialized;
183
200
  }
201
+ /** Opaque identity; health readers cannot adopt or restart a different child. */
202
+ activeProcessIdentity() {
203
+ return this.isActive() ? this.processIdentity : null;
204
+ }
205
+ /** Passive, generation-scoped metadata from the operational initialize handshake. */
206
+ getHealthMetadataCapability() {
207
+ return this.isActive() ? this.healthMetadataCapability : null;
208
+ }
184
209
  /** True while the process is spawned but the MCP handshake has not yet completed. */
185
210
  isLoading() {
186
211
  return this.child !== null && !this.child.killed && !this.initialized;
@@ -302,6 +327,8 @@ var QmdDaemonSession = class {
302
327
  this.pendingRequests.clear();
303
328
  this.startPromise = null;
304
329
  this.child = null;
330
+ this.processIdentity = null;
331
+ this.healthMetadataCapability = null;
305
332
  this.buffer = "";
306
333
  }
307
334
  };
@@ -309,4 +336,4 @@ var QmdDaemonSession = class {
309
336
  export {
310
337
  QmdDaemonSession
311
338
  };
312
- //# sourceMappingURL=chunk-IXI6S2VJ.js.map
339
+ //# sourceMappingURL=chunk-S45VECVD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/qmd-daemon-session.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { abortError, throwIfAborted } from \"./abort-error.js\";\nimport { log } from \"./logger.js\";\nimport { type CommandChildProcess, launchProcess } from \"./runtime/child-process.js\";\nimport { mergeEnv } from \"./runtime/env.js\";\nimport { sleep } from \"./utils/sleep.js\";\n\nexport type QmdRuntimeEnv = Record<string, string | undefined>;\n\nconst initializeHealthSchema = z.object({\n isError: z.literal(false).optional(),\n capabilities: z.object({\n experimental: z.object({\n \"qmd/healthMetadata\": z.strictObject({ schemaVersion: z.literal(1) }).optional(),\n }).optional(),\n }),\n});\n\nexport type QmdDaemonSpawn = (\n command: string,\n args: string[],\n options?: Record<string, unknown>\n) => CommandChildProcess;\n\ntype PendingRequest = {\n resolve: (value: unknown) => void;\n reject: (reason: Error) => void;\n timer: ReturnType<typeof setTimeout>;\n cleanup: () => void;\n};\n\nlet nextJsonRpcId = 1;\n\n/**\n * Drop C0 controls and one ANSI CSI sequence. Char scan on purpose:\n * the regex-safety ratchet flags new regular expressions on changed lines.\n */\nfunction sanitizeForLog(value: string, max = 200): string {\n let out = \"\";\n const cap = Math.min(value.length, max);\n for (let i = 0; i < cap; i++) {\n const code = value.charCodeAt(i);\n if (code === 0x1b && value.charCodeAt(i + 1) === 0x5b) {\n i += 2;\n while (i < cap) {\n const next = value.charCodeAt(i);\n const isLetter = (next >= 65 && next <= 90) || (next >= 97 && next <= 122);\n if (isLetter) break;\n i += 1;\n }\n continue;\n }\n if (code < 0x20 || code === 0x7f) continue;\n out += value[i] ?? \"\";\n }\n if (value.length > max) return `${out}…(truncated)`;\n return out;\n}\n\nfunction isTimeoutMessage(message: string): boolean {\n return message.toLowerCase().includes(\"timed out\");\n}\n\n/**\n * One `qmd mcp` child and its JSON-RPC session.\n *\n * Aborting or timing out a `tools/call` writes MCP `notifications/cancelled`\n * and rejects the caller immediately. The SDK drops the tool result once the\n * server's request controller is aborted, so this session does not wait for\n * a response after cancel. The initialize handshake is not cancelled: a slow\n * model load is supposed to stay alive for the next probe.\n *\n * The child is not killed on cancel. Reloading the rerank model costs longer\n * than the recall budget, and a slow query would then take the warm process\n * down on every timeout.\n */\ntype HealthMetadataCapability = \"available\" | \"absent\" | \"invalid\";\n\nexport class QmdDaemonSession {\n private child: CommandChildProcess | null = null;\n private initialized = false;\n private processIdentity: object | null = null;\n private healthMetadataCapability: HealthMetadataCapability | null = null;\n private buffer = \"\";\n private startPromise: Promise<boolean> | null = null;\n private pendingRequests = new Map<number, PendingRequest>();\n private readonly qmdPath: string;\n private readonly runtimeEnv: QmdRuntimeEnv;\n private readonly indexName?: string;\n private readonly spawn: QmdDaemonSpawn;\n\n constructor(\n qmdPath: string,\n runtimeEnv: QmdRuntimeEnv = {},\n indexName?: string,\n spawn: QmdDaemonSpawn = launchProcess\n ) {\n this.qmdPath = qmdPath;\n this.runtimeEnv = runtimeEnv;\n this.indexName = indexName?.trim() || undefined;\n this.spawn = spawn;\n }\n\n /** Spawn the qmd mcp child process and perform MCP handshake. */\n async start(): Promise<boolean> {\n if (this.child && !this.child.killed && this.initialized) {\n return true;\n }\n if (this.startPromise) {\n return this.startPromise;\n }\n this.startPromise = (async () => {\n const processAlreadyRunning = this.child != null && !this.child.killed;\n if (!processAlreadyRunning) {\n if (this.child) {\n this.cleanup({ killChild: true });\n }\n try {\n const args = this.indexName ? [\"--index\", this.indexName, \"mcp\"] : [\"mcp\"];\n const child = this.spawn(this.qmdPath, args, {\n env: mergeEnv({ NO_COLOR: \"1\", ...this.runtimeEnv }),\n stdio: [\"pipe\", \"pipe\", \"pipe\"],\n });\n this.child = child;\n this.processIdentity = {};\n this.buffer = \"\";\n\n child.stdout?.on(\"data\", (data: Buffer) => {\n if (this.child !== child) return;\n this.handleStdoutData(data);\n });\n child.stderr?.on(\"data\", (data: Buffer) => {\n if (this.child !== child) return;\n const msg = data.toString().trim();\n if (msg) log.debug(`QMD mcp stderr: ${sanitizeForLog(msg)}`);\n });\n child.stdin?.on(\"error\", (err) => {\n log.debug(`QMD mcp stdin error (suppressed): ${err.message}`);\n });\n child.on(\"error\", (err) => {\n if (this.child !== child) return;\n log.debug(`QMD mcp process error: ${err.message}`);\n this.cleanup({ child });\n });\n child.on(\"close\", (code) => {\n if (this.child !== child) return;\n log.debug(`QMD mcp process exited (code ${code})`);\n this.cleanup({ child });\n });\n } catch (err) {\n log.debug(`QMD mcp: failed to spawn process: ${err}`);\n this.cleanup({ killChild: true });\n return false;\n }\n } else {\n log.debug(\"QMD mcp: process already running, retrying handshake\");\n }\n\n const processIdentity = this.processIdentity;\n try {\n const result = await this.sendRequest(\n \"initialize\",\n {\n protocolVersion: \"2024-11-05\",\n capabilities: {},\n clientInfo: { name: \"openclaw-remnic\", version: \"1.0.0\" },\n },\n 60_000\n );\n if (this.processIdentity !== processIdentity) return false;\n if (!result) {\n this.cleanup({ killChild: true });\n return false;\n }\n this.sendNotification(\"notifications/initialized\");\n const metadata = initializeHealthSchema.safeParse(result).data;\n this.healthMetadataCapability = !metadata ? \"invalid\"\n : metadata.capabilities.experimental?.[\"qmd/healthMetadata\"] ? \"available\" : \"absent\";\n this.initialized = true;\n log.info(\"QMD mcp: stdio session initialized\");\n return true;\n } catch (err) {\n if (this.processIdentity !== processIdentity) return false;\n const msg = err instanceof Error ? err.message : String(err);\n if (isTimeoutMessage(msg)) {\n log.debug(\"QMD mcp: handshake timed out — process still loading, will retry later\");\n this.initialized = false;\n } else {\n log.debug(`QMD mcp: failed to start stdio session: ${err}`);\n this.cleanup({ killChild: true });\n }\n return false;\n } finally {\n if (this.processIdentity === processIdentity) this.startPromise = null;\n }\n })();\n return this.startPromise;\n }\n\n /** Call an MCP tool and return the parsed result. */\n async callTool(\n name: string,\n args: Record<string, unknown>,\n timeoutMs = 30_000,\n signal?: AbortSignal\n ): Promise<unknown> {\n if (!this.child || this.child.killed || !this.initialized) {\n throw new Error(\"QMD mcp process not running\");\n }\n return this.sendRequest(\"tools/call\", { name, arguments: args }, timeoutMs, signal);\n }\n\n /** Kill stdio process and clear state so the next probe can restart. */\n invalidate(): void {\n this.cleanup({ killChild: true });\n }\n\n /** Kill stdio process and wait briefly for the child handle to close. */\n async close(timeoutMs = 1_000): Promise<void> {\n const target = this.child;\n if (!target) {\n this.cleanup({ killChild: true });\n return;\n }\n\n let closed = false;\n const closedPromise = new Promise<void>((resolve) => {\n target.once(\"close\", () => {\n closed = true;\n resolve();\n });\n });\n\n this.cleanup({ killChild: true });\n await Promise.race([closedPromise, sleep(timeoutMs)]);\n if (!closed) {\n try {\n target.kill(\"SIGKILL\");\n } catch {\n // Ignore process-kill races during shutdown.\n }\n await Promise.race([closedPromise, sleep(250)]);\n }\n }\n\n isActive(): boolean {\n return this.child !== null && !this.child.killed && this.initialized;\n }\n\n /** Opaque identity; health readers cannot adopt or restart a different child. */\n activeProcessIdentity(): object | null {\n return this.isActive() ? this.processIdentity : null;\n }\n\n /** Passive, generation-scoped metadata from the operational initialize handshake. */\n getHealthMetadataCapability(): HealthMetadataCapability | null {\n return this.isActive() ? this.healthMetadataCapability : null;\n }\n\n /** True while the process is spawned but the MCP handshake has not yet completed. */\n isLoading(): boolean {\n return this.child !== null && !this.child.killed && !this.initialized;\n }\n\n private sendRequest(\n method: string,\n params: Record<string, unknown>,\n timeoutMs: number,\n signal?: AbortSignal\n ): Promise<unknown> {\n return new Promise((resolve, reject) => {\n throwIfAborted(signal, `QMD mcp ${method} aborted before request`);\n if (!this.child || !this.child.stdin || this.child.killed) {\n reject(new Error(\"QMD mcp process not available\"));\n return;\n }\n\n const id = nextJsonRpcId++;\n let written = false;\n const abandon = (reason: string) => {\n // Only a tool call that actually went out can be holding the worker.\n // initialize stays running across a slow model load.\n if (!written || method !== \"tools/call\") return;\n this.sendNotification(\"notifications/cancelled\", { requestId: id, reason });\n };\n const timer = setTimeout(() => {\n this.pendingRequests.delete(id);\n cleanup();\n const reason = `QMD mcp ${method} timed out after ${timeoutMs}ms`;\n abandon(reason);\n reject(new Error(reason));\n }, timeoutMs);\n const onAbort = () => {\n clearTimeout(timer);\n this.pendingRequests.delete(id);\n cleanup();\n abandon(\"client aborted\");\n reject(abortError(`QMD mcp ${method} aborted`));\n };\n const cleanup = () => {\n signal?.removeEventListener(\"abort\", onAbort);\n };\n\n this.pendingRequests.set(id, { resolve, reject, timer, cleanup });\n signal?.addEventListener(\"abort\", onAbort, { once: true });\n const message = `${JSON.stringify({ jsonrpc: \"2.0\", id, method, params })}\\n`;\n try {\n this.child.stdin.write(message, (err) => {\n if (!err) return;\n written = false;\n clearTimeout(timer);\n this.pendingRequests.delete(id);\n cleanup();\n reject(new Error(`Failed to write to QMD mcp stdin: ${err.message}`));\n });\n written = true;\n } catch (err) {\n written = false;\n clearTimeout(timer);\n this.pendingRequests.delete(id);\n cleanup();\n const messageText = err instanceof Error ? err.message : String(err);\n reject(new Error(`Failed to write to QMD mcp stdin: ${messageText}`));\n }\n });\n }\n\n private sendNotification(method: string, params?: Record<string, unknown>): void {\n if (!this.child || !this.child.stdin || this.child.killed) return;\n if (this.child.stdin.destroyed) return;\n const msg: Record<string, unknown> = { jsonrpc: \"2.0\", method };\n if (params) msg.params = params;\n try {\n this.child.stdin.write(`${JSON.stringify(msg)}\\n`);\n } catch {\n // Ignore EPIPE / write-after-close\n }\n }\n\n private handleStdoutData(data: Buffer | string): void {\n this.buffer += data.toString();\n let newlineIdx: number;\n // Re-evaluated on every pass so a blank line cannot leave a stale index.\n while ((newlineIdx = this.buffer.indexOf(\"\\n\")) !== -1) {\n const line = this.buffer.slice(0, newlineIdx).trim();\n this.buffer = this.buffer.slice(newlineIdx + 1);\n if (!line) continue;\n try {\n const msg = JSON.parse(line) as Record<string, unknown>;\n this.handleMessage(msg);\n } catch {\n log.debug(`QMD mcp: unparseable stdout: ${sanitizeForLog(line, 200)}`);\n }\n }\n }\n\n private handleMessage(msg: Record<string, unknown>): void {\n if (msg.id !== undefined && msg.id !== null) {\n const pending = this.pendingRequests.get(msg.id as number);\n if (pending) {\n clearTimeout(pending.timer);\n this.pendingRequests.delete(msg.id as number);\n pending.cleanup();\n if (msg.error) {\n pending.reject(new Error(JSON.stringify(msg.error)));\n } else {\n pending.resolve(msg.result);\n }\n }\n return;\n }\n if (msg.method) {\n log.debug(`QMD mcp notification: ${msg.method}`);\n }\n }\n\n private cleanup(opts?: { killChild?: boolean; child?: CommandChildProcess | null }): void {\n const target = opts?.child ?? this.child;\n if (!target) return;\n if (opts?.child && this.child !== opts.child) {\n return;\n }\n if (opts?.killChild && !target.killed) {\n target.kill(\"SIGTERM\");\n }\n this.initialized = false;\n for (const [, pending] of this.pendingRequests) {\n clearTimeout(pending.timer);\n pending.cleanup();\n pending.reject(new Error(\"QMD mcp process terminated\"));\n }\n this.pendingRequests.clear();\n this.startPromise = null;\n this.child = null;\n this.processIdentity = null;\n this.healthMetadataCapability = null;\n this.buffer = \"\";\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,SAAS,SAAS;AASlB,IAAM,yBAAyB,EAAE,OAAO;AAAA,EACtC,SAAS,EAAE,QAAQ,KAAK,EAAE,SAAS;AAAA,EACnC,cAAc,EAAE,OAAO;AAAA,IACrB,cAAc,EAAE,OAAO;AAAA,MACrB,sBAAsB,EAAE,aAAa,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;AAAA,IACjF,CAAC,EAAE,SAAS;AAAA,EACd,CAAC;AACH,CAAC;AAeD,IAAI,gBAAgB;AAMpB,SAAS,eAAe,OAAe,MAAM,KAAa;AACxD,MAAI,MAAM;AACV,QAAM,MAAM,KAAK,IAAI,MAAM,QAAQ,GAAG;AACtC,WAAS,IAAI,GAAG,IAAI,KAAK,KAAK;AAC5B,UAAM,OAAO,MAAM,WAAW,CAAC;AAC/B,QAAI,SAAS,MAAQ,MAAM,WAAW,IAAI,CAAC,MAAM,IAAM;AACrD,WAAK;AACL,aAAO,IAAI,KAAK;AACd,cAAM,OAAO,MAAM,WAAW,CAAC;AAC/B,cAAM,WAAY,QAAQ,MAAM,QAAQ,MAAQ,QAAQ,MAAM,QAAQ;AACtE,YAAI,SAAU;AACd,aAAK;AAAA,MACP;AACA;AAAA,IACF;AACA,QAAI,OAAO,MAAQ,SAAS,IAAM;AAClC,WAAO,MAAM,CAAC,KAAK;AAAA,EACrB;AACA,MAAI,MAAM,SAAS,IAAK,QAAO,GAAG,GAAG;AACrC,SAAO;AACT;AAEA,SAAS,iBAAiB,SAA0B;AAClD,SAAO,QAAQ,YAAY,EAAE,SAAS,WAA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AQ;AACrC,aAAO,KAAK,SAAS;AAAA,IACvB;AACA,SAAK,cAAc;AACnB,eAAW,CAAC,EAAE,OAAO,KAAK,KAAK,iBAAiB;AAC9C,mBAAa,QAAQ,KAAK;AAC1B,cAAQ,QAAQ;AAChB,cAAQ,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAAA,IACxD;AACA,SAAK,gBAAgB,MAAM;AAC3B,SAAK,eAAe;AACpB,SAAK,QAAQ;AACb,SAAK,kBAAkB;AACvB,SAAK,2BAA2B;AAChC,SAAK,SAAS;AAAA,EAChB;AACF;","names":[]}
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  NamespaceStorageRouter
3
- } from "./chunk-4WOEEMGK.js";
3
+ } from "./chunk-KZBE4KBZ.js";
4
4
  import {
5
5
  namespaceCollectionName
6
- } from "./chunk-5MTKGNZ5.js";
6
+ } from "./chunk-5RBHL5TF.js";
7
7
  import {
8
8
  isSafeRouteNamespace
9
9
  } from "./chunk-PCXDUHQH.js";
@@ -213,4 +213,4 @@ export {
213
213
  verifyNamespaces,
214
214
  runNamespaceMigration
215
215
  };
216
- //# sourceMappingURL=chunk-WTFHZQXM.js.map
216
+ //# sourceMappingURL=chunk-T3NEDSLZ.js.map
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-ZCUTSMR2.js";
14
14
  import {
15
15
  StorageManager
16
- } from "./chunk-OWBI5477.js";
16
+ } from "./chunk-JUROR7PB.js";
17
17
  import {
18
18
  excludeSupportPassportPrivateMemories
19
19
  } from "./chunk-TSUSHXBW.js";
@@ -134,4 +134,4 @@ export {
134
134
  runCodexMaterialize,
135
135
  runPostConsolidationMaterialize
136
136
  };
137
- //# sourceMappingURL=chunk-HB2PRTXX.js.map
137
+ //# sourceMappingURL=chunk-V425GW5W.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseEntityFile
3
- } from "./chunk-OWBI5477.js";
3
+ } from "./chunk-JUROR7PB.js";
4
4
  import {
5
5
  inferMemoryStatus
6
6
  } from "./chunk-7RJUVTVF.js";
@@ -253,4 +253,4 @@ export {
253
253
  WHO_KNOWS_MCP_TOOLS,
254
254
  handleWhoKnowsHttpQuery
255
255
  };
256
- //# sourceMappingURL=chunk-XKFL2WQO.js.map
256
+ //# sourceMappingURL=chunk-V5FCMJW4.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rebuildMemoryProjection
3
- } from "./chunk-H4KIMZJD.js";
3
+ } from "./chunk-B4ZA2PZC.js";
4
4
 
5
5
  // src/convergence-refresh.ts
6
6
  async function refreshConvergedNamespaces(namespaces, namespaceSearchRouter, getStorage, searchEnabled) {
@@ -32,4 +32,4 @@ async function refreshConvergedNamespaces(namespaces, namespaceSearchRouter, get
32
32
  export {
33
33
  refreshConvergedNamespaces
34
34
  };
35
- //# sourceMappingURL=chunk-SNI526DD.js.map
35
+ //# sourceMappingURL=chunk-VR6NF6VX.js.map