@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
package/dist/qmd.d.ts CHANGED
@@ -1,307 +1,5 @@
1
- import { Q as QmdSearchResult, ag as QmdSearchExplain } from './types-D1iBqhJA.js';
2
- import { SearchBackend, SearchExecutionOptions, SearchQueryOptions } from './search/port.js';
1
+ import './types-ljkd82rn.js';
2
+ import './search/port.js';
3
+ export { c as QMD_SUPPORTED_VERSION, i as QmdCapabilities, j as QmdChunkStrategy, Q as QmdClient, k as QmdClientOptions, l as QmdDoctorReport, m as QmdSearchStrategy, n as QmdStructuredSearch, o as QmdStructuredSearchType, t as QmdSubprocessStrategy, u as QmdVersionStatus, w as QmdVersionTuple, x as buildDefaultStructuredSearches, f as compareQmdVersions, y as getQmdCommandName, g as getQmdPostInstallProbeTargets, z as parseQmdExplain, p as parseQmdVersion, h as parseQmdVersionOutput, A as releaseSharedDaemonSessionForTest, r as resolveQmdCapabilities, B as retainSharedDaemonSessionForTest, C as sharedDaemonSessionCountForTest, s as shouldAutoUpgradeQmd, v as versionAtLeast } from './qmd-Db9mOkzB.js';
3
4
  import './types-gb_SNtjR.js';
4
5
  import './message-parts/index.js';
5
-
6
- interface QmdClientOptions {
7
- slowLog?: {
8
- enabled: boolean;
9
- thresholdMs: number;
10
- };
11
- updateTimeoutMs?: number;
12
- updateMinIntervalMs?: number;
13
- qmdPath?: string;
14
- daemonUrl?: string;
15
- daemonRecheckIntervalMs?: number;
16
- qmdSupportedVersion?: string;
17
- qmdAutoUpgradeEnabled?: boolean;
18
- qmdAutoUpgradeCheckIntervalMs?: number;
19
- qmdChunkStrategy?: QmdChunkStrategy;
20
- qmdCandidateLimit?: number;
21
- qmdQueryRerankEnabled?: boolean;
22
- qmdIndexName?: string;
23
- qmdForceCpu?: boolean;
24
- qmdGpuBackend?: "auto" | "metal" | "cuda" | "vulkan" | "false";
25
- qmdEmbedParallelism?: number;
26
- qmdEmbedModel?: string;
27
- qmdRerankModel?: string;
28
- qmdGenerateModel?: string;
29
- /** Daemon search plan; default "hybrid" preserves lex+vec+hyde. Issue #1335. */
30
- qmdSearchStrategy?: QmdSearchStrategy;
31
- /** Subprocess fallback command; default "query" keeps LLM expansion. Issue #1335. */
32
- qmdSubprocessStrategy?: QmdSubprocessStrategy;
33
- /** Override automatic qmd fallback probes; defaults to known install paths. */
34
- qmdFallbackPaths?: string[];
35
- /** Per-call daemon search timeout in ms; default 8000. Issue #1335. */
36
- qmdDaemonTimeoutMs?: number;
37
- }
38
- type QmdVersionTuple = [number, number, number];
39
- type QmdChunkStrategy = "auto" | "regex";
40
- type QmdStructuredSearchType = "lex" | "vec" | "hyde";
41
- /**
42
- * Daemon search plan. Issue #1335.
43
- * - "hybrid" → lex + vec + hyde (DEFAULT — full recall; runs an embedding pass
44
- * plus a HyDE generate pass, which dominates latency on CPU-only models).
45
- * - "lex-vec" → lex + vec (drops the expensive HyDE generate leg).
46
- * - "lex" → lex only (BM25; fastest, no model inference).
47
- */
48
- type QmdSearchStrategy = "hybrid" | "lex-vec" | "lex";
49
- /**
50
- * Subprocess fallback command (used only when the daemon is unavailable). Issue #1335.
51
- * - "query" → `qmd query` (DEFAULT — LLM query expansion + rerank; see CLAUDE.md
52
- * gotcha #7, this is intentional and must remain the default).
53
- * - "search" → `qmd search` (BM25-only; fast, but no expansion/rerank).
54
- */
55
- type QmdSubprocessStrategy = "query" | "search";
56
- interface QmdStructuredSearch {
57
- type: QmdStructuredSearchType;
58
- query: string;
59
- }
60
- interface QmdCapabilities {
61
- version: string | null;
62
- parsedVersion: QmdVersionTuple | null;
63
- stableSdk: boolean;
64
- unifiedSearch: boolean;
65
- getDocumentBody: boolean;
66
- maintenanceApi: boolean;
67
- legacySkillInstall: boolean;
68
- intentHints: boolean;
69
- explainTraces: boolean;
70
- candidateLimit: boolean;
71
- v2McpQueryTool: boolean;
72
- structuredSearches: boolean;
73
- queryRerankToggle: boolean;
74
- chunkStrategy: boolean;
75
- qmdBench: boolean;
76
- perCollectionModels: boolean;
77
- jsonLineNumbers: boolean;
78
- editorLinks: boolean;
79
- doctor: boolean;
80
- versionedSkills: boolean;
81
- absoluteSnippetLines: boolean;
82
- fullQueryOutput: boolean;
83
- forceCpu: boolean;
84
- gpuBackendOverride: boolean;
85
- embedParallelism: boolean;
86
- modelEnvConsistency: boolean;
87
- scopedEmbed: boolean;
88
- safeStatusDeviceProbe: boolean;
89
- mcpIndexSelection: boolean;
90
- outputFormatFlag: boolean;
91
- }
92
- interface QmdVersionStatus {
93
- installedVersion: string | null;
94
- supportedVersion: string;
95
- supported: boolean;
96
- newerThanSupported: boolean;
97
- upgradeAvailable: boolean;
98
- capabilities: QmdCapabilities;
99
- }
100
- interface QmdDoctorReport {
101
- available: boolean;
102
- skipped?: string;
103
- report?: unknown;
104
- raw?: string;
105
- error?: string;
106
- }
107
- declare const QMD_SUPPORTED_VERSION = "2.5.3";
108
- type QmdRuntimeEnv = Record<string, string | undefined>;
109
- declare function parseQmdVersion(version: string | null): QmdVersionTuple | null;
110
- declare function parseQmdVersionOutput(stdout: string, stderr: string): string | null;
111
- declare function compareQmdVersions(left: QmdVersionTuple | null, right: QmdVersionTuple | null): number;
112
- declare function versionAtLeast(current: QmdVersionTuple | null, target: QmdVersionTuple): boolean;
113
- declare function resolveQmdCapabilities(version: string | null): QmdCapabilities;
114
- declare function shouldAutoUpgradeQmd(installedVersion: string | null, supportedVersion?: string): boolean;
115
- declare function getQmdPostInstallProbeTargets(qmdPath: string, qmdPathSource: "configured" | "auto-path" | "auto-fallback"): Array<{
116
- qmdPath: string;
117
- source: "auto-path" | "auto-fallback";
118
- }>;
119
- /**
120
- * Build the structured sub-queries the daemon `query` tool runs in one request.
121
- *
122
- * The default `"hybrid"` plan (lex + vec + hyde) intentionally exercises QMD's
123
- * full RRF + rerank path for best recall. On CPU-only models the `hyde` leg
124
- * (1.7B generate + embed) dominates wall-clock — operators on constrained
125
- * hardware can trade recall for latency via `qmdSearchStrategy` (issue #1335)
126
- * without losing the default behavior. A per-call `structuredSearches` override
127
- * always wins so callers with stronger query-document structure stay in control.
128
- */
129
- declare function buildDefaultStructuredSearches(query: string, options?: SearchQueryOptions, strategy?: QmdSearchStrategy): QmdStructuredSearch[];
130
- declare function parseQmdExplain(value: unknown): QmdSearchExplain | undefined;
131
- declare function getQmdCommandName(args: string[]): string;
132
- declare class QmdDaemonSession {
133
- private child;
134
- private initialized;
135
- private buffer;
136
- private startPromise;
137
- private pendingRequests;
138
- private readonly qmdPath;
139
- private readonly runtimeEnv;
140
- private readonly indexName?;
141
- constructor(qmdPath: string, runtimeEnv?: QmdRuntimeEnv, indexName?: string);
142
- /** Spawn the qmd mcp child process and perform MCP handshake. */
143
- start(): Promise<boolean>;
144
- /** Call an MCP tool and return the parsed result. */
145
- callTool(name: string, args: Record<string, unknown>, timeoutMs?: number, signal?: AbortSignal): Promise<unknown>;
146
- /** Kill stdio process and clear state so the next probe can restart. */
147
- invalidate(): void;
148
- /** Kill stdio process and wait briefly for the child handle to close. */
149
- close(timeoutMs?: number): Promise<void>;
150
- isActive(): boolean;
151
- /** True while the process is spawned but the MCP handshake has not yet completed. */
152
- isLoading(): boolean;
153
- private sendRequest;
154
- private sendNotification;
155
- private handleStdoutData;
156
- private handleMessage;
157
- private cleanup;
158
- }
159
- declare function retainSharedDaemonSession(qmdPath: string, runtimeEnv?: QmdRuntimeEnv, indexName?: string, cliVersion?: string | null): QmdDaemonSession;
160
- declare function releaseSharedDaemonSession(session: QmdDaemonSession | null): Promise<void>;
161
- declare const sharedDaemonSessionCountForTest: () => number;
162
-
163
- declare class QmdClient implements SearchBackend {
164
- private readonly collection;
165
- private readonly maxResults;
166
- private available;
167
- private _lastUpdateFailAtMs;
168
- private lastEmbedFailAtMs;
169
- private lastUpdateRunAtMs;
170
- get lastUpdateFailedAtMs(): number | null;
171
- get lastUpdateRanAtMs(): number | null;
172
- resetUpdateThrottles(): void;
173
- private readonly updateTimeoutMs;
174
- private readonly updateMinIntervalMs;
175
- private readonly slowLog?;
176
- private readonly configuredQmdPath?;
177
- private readonly qmdSupportedVersion;
178
- private readonly qmdAutoUpgradeEnabled;
179
- private readonly qmdAutoUpgradeCheckIntervalMs;
180
- private readonly qmdChunkStrategy?;
181
- private readonly qmdCandidateLimit?;
182
- private readonly qmdQueryRerankEnabled;
183
- private readonly qmdIndexName?;
184
- private readonly qmdSearchStrategy;
185
- private readonly qmdSubprocessStrategy;
186
- private readonly qmdFallbackPaths;
187
- private readonly daemonTimeoutMs;
188
- private readonly qmdRuntimeEnv;
189
- private qmdPathSource;
190
- private cliVersion;
191
- private lastCliProbeError;
192
- private qmdCapabilities;
193
- private daemonSession;
194
- private daemonAvailable;
195
- private daemonSessionPath;
196
- private lastDaemonCheckAtMs;
197
- private readonly daemonEnabled;
198
- private readonly daemonRecheckIntervalMs;
199
- /** Consecutive transient daemon failures before invalidating the session. */
200
- private daemonTransientFailures;
201
- private static readonly DAEMON_MAX_TRANSIENT_FAILURES;
202
- constructor(collection: string, maxResults: number, opts?: QmdClientOptions);
203
- private qmdPath;
204
- private buildRuntimeEnv;
205
- probe(): Promise<boolean>;
206
- checkAvailability(execution?: SearchExecutionOptions): Promise<boolean>;
207
- private probeDaemon;
208
- private probeCli;
209
- private maybeAutoUpgradeQmd;
210
- private probePostInstallQmdVersion;
211
- private autoUpgradeTargetKey;
212
- private logCliProbeWarning;
213
- /** Re-probe daemon if it was down and recheck interval has elapsed. */
214
- private maybeProbeDaemon;
215
- isAvailable(): boolean;
216
- /** Debug string for troubleshooting availability issues. */
217
- debugStatus(): string;
218
- getVersionStatus(): QmdVersionStatus;
219
- doctor(): Promise<QmdDoctorReport>;
220
- isDaemonMode(): boolean;
221
- dispose(): Promise<void>;
222
- /**
223
- * Record a daemon search success — resets the transient failure counter.
224
- */
225
- private recordDaemonSuccess;
226
- /**
227
- * Handle a non-timeout, non-cancellation daemon error.
228
- * Tolerates up to DAEMON_MAX_TRANSIENT_FAILURES consecutive failures
229
- * before invalidating the session. This prevents a single transient
230
- * error from pushing all concurrent searches through the subprocess
231
- * mutex for the full recheck interval.
232
- */
233
- private handleDaemonTransientError;
234
- private runQmdCommand;
235
- private supportsIntentHints;
236
- private supportsExplainTraces;
237
- private supportsCandidateLimit;
238
- private supportsRerankToggle;
239
- private supportsChunkStrategy;
240
- /**
241
- * QMD v2 (>= 2.0.0) uses a new MCP tool API:
242
- * - `search` and `vsearch` tools removed; only `query` tool exists
243
- * - `query` accepts `{ searches: [{ type, query }], collections?: string[] }`
244
- * instead of `{ query: string, collection?: string }`
245
- * - `collection` (singular) → `collections` (plural array)
246
- */
247
- private isQmdV2;
248
- private resolveSearchOptions;
249
- resolveSupportedSearchOptions(options?: SearchQueryOptions): SearchQueryOptions | undefined;
250
- private addResolvedSearchOptionsToArgs;
251
- private addQmdJsonOutputArgs;
252
- private addResolvedSearchOptionsToMcpArgs;
253
- private buildEmbedArgs;
254
- search(query: string, collection?: string, maxResults?: number, options?: SearchQueryOptions, execution?: SearchExecutionOptions): Promise<QmdSearchResult[]>;
255
- searchGlobal(query: string, maxResults?: number, execution?: SearchExecutionOptions): Promise<QmdSearchResult[]>;
256
- /**
257
- * BM25 keyword search (fast, ~0.3s). Uses `qmd search`.
258
- */
259
- bm25Search(query: string, collection?: string, maxResults?: number, execution?: SearchExecutionOptions): Promise<QmdSearchResult[]>;
260
- /**
261
- * Vector similarity search (~3-4s). Uses `qmd vsearch`.
262
- */
263
- vectorSearch(query: string, collection?: string, maxResults?: number, execution?: SearchExecutionOptions): Promise<QmdSearchResult[]>;
264
- /**
265
- * Hybrid search: runs BM25 + vector in parallel, merges/dedupes by path
266
- * keeping the best score and first non-empty snippet.
267
- */
268
- hybridSearch(query: string, collection?: string, maxResults?: number, execution?: SearchExecutionOptions): Promise<QmdSearchResult[]>;
269
- private searchViaDaemon;
270
- private bm25SearchViaDaemon;
271
- private vsearchViaDaemon;
272
- /**
273
- * Report a backend degradation to the caller's observer (#1536): an empty
274
- * result caused by unavailability/loading/timeout is otherwise
275
- * indistinguishable from "no matches" (CLAUDE.md rule 34). Observer
276
- * failures are swallowed — observability must never break search.
277
- */
278
- private notifyDegradation;
279
- /**
280
- * Condense an error into a degradation `detail` string that is safe to
281
- * serialize on LastRecallSnapshot and expose via last-recall MCP/HTTP
282
- * surfaces (cursor review on #1544): first line only, path-like tokens
283
- * redacted (absolute, home-rooted, and Windows drive paths can leak
284
- * usernames and filesystem layout), capped at 160 chars. The unredacted
285
- * error still reaches operators via the warn log at the failure site.
286
- */
287
- private degradationDetail;
288
- private searchViaSubprocess;
289
- private bm25SearchViaSubprocess;
290
- private vsearchViaSubprocess;
291
- private searchGlobalViaSubprocess;
292
- update(execution?: SearchExecutionOptions): Promise<void>;
293
- updateStrict(execution?: SearchExecutionOptions): Promise<void>;
294
- updateCollection(collection: string, execution?: SearchExecutionOptions): Promise<void>;
295
- updateCollectionStrict(collection: string, execution?: SearchExecutionOptions): Promise<void>;
296
- updatesAllCollections(): boolean;
297
- private runUpdateForCollection;
298
- embed(): Promise<void>;
299
- embedStrict(): Promise<void>;
300
- embedCollection(collection: string): Promise<void>;
301
- embedCollectionStrict(collection: string): Promise<void>;
302
- private runEmbedForCollection;
303
- checkCollection(collectionOrExecution?: string | SearchExecutionOptions, execution?: SearchExecutionOptions): Promise<"present" | "missing" | "unknown" | "skipped">;
304
- ensureCollection(memoryDir: string, collectionOrExecution?: string | SearchExecutionOptions, execution?: SearchExecutionOptions): Promise<"present" | "missing" | "unknown" | "skipped">;
305
- }
306
-
307
- export { QMD_SUPPORTED_VERSION, type QmdCapabilities, type QmdChunkStrategy, QmdClient, type QmdClientOptions, type QmdDoctorReport, type QmdSearchStrategy, type QmdStructuredSearch, type QmdStructuredSearchType, type QmdSubprocessStrategy, type QmdVersionStatus, type QmdVersionTuple, buildDefaultStructuredSearches, compareQmdVersions, getQmdCommandName, getQmdPostInstallProbeTargets, parseQmdExplain, parseQmdVersion, parseQmdVersionOutput, releaseSharedDaemonSession as releaseSharedDaemonSessionForTest, resolveQmdCapabilities, retainSharedDaemonSession as retainSharedDaemonSessionForTest, sharedDaemonSessionCountForTest, shouldAutoUpgradeQmd, versionAtLeast };
package/dist/qmd.js CHANGED
@@ -1,21 +1,23 @@
1
1
  import {
2
- QMD_SUPPORTED_VERSION,
3
2
  QmdClient,
4
3
  buildDefaultStructuredSearches,
5
- compareQmdVersions,
6
4
  getQmdCommandName,
7
- getQmdPostInstallProbeTargets,
8
5
  parseQmdExplain,
6
+ releaseSharedDaemonSession,
7
+ retainSharedDaemonSession,
8
+ sharedDaemonSessionCountForTest
9
+ } from "./chunk-3F4N4WDH.js";
10
+ import "./chunk-WU46YPY6.js";
11
+ import {
12
+ QMD_SUPPORTED_VERSION,
13
+ compareQmdVersions,
14
+ getQmdPostInstallProbeTargets,
9
15
  parseQmdVersion,
10
16
  parseQmdVersionOutput,
11
- releaseSharedDaemonSession,
12
17
  resolveQmdCapabilities,
13
- retainSharedDaemonSession,
14
- sharedDaemonSessionCountForTest,
15
18
  shouldAutoUpgradeQmd,
16
19
  versionAtLeast
17
- } from "./chunk-RBGL4MKQ.js";
18
- import "./chunk-WU46YPY6.js";
20
+ } from "./chunk-64UDOIMI.js";
19
21
  import "./chunk-O75CRYGF.js";
20
22
  import "./chunk-AWJ2FHCF.js";
21
23
  import "./chunk-42JKGUFJ.js";
@@ -1,4 +1,4 @@
1
- import { R as RecallDisclosure } from './types-D1iBqhJA.js';
1
+ import { R as RecallDisclosure } from './types-ljkd82rn.js';
2
2
  import './types-gb_SNtjR.js';
3
3
  import './message-parts/index.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { LastRecallSnapshot } from './recall-state.js';
2
- import { t as RecallTierExplain } from './types-D1iBqhJA.js';
2
+ import { t as RecallTierExplain } from './types-ljkd82rn.js';
3
3
  import { RecallXraySnapshot } from './recall-xray.js';
4
4
  import './search/port.js';
5
5
  import './types-gb_SNtjR.js';
@@ -1,4 +1,4 @@
1
- import { b as RecallPlanMode, P as PluginConfig } from './types-D1iBqhJA.js';
1
+ import { b as RecallPlanMode, P as PluginConfig } from './types-ljkd82rn.js';
2
2
  import { CapabilitySet } from './capabilities.js';
3
3
  import { FallbackLlmClient, FallbackLlmOptions } from './fallback-llm.js';
4
4
  import './types-gb_SNtjR.js';
@@ -1,5 +1,5 @@
1
1
  import { SearchDegradation } from './search/port.js';
2
- import { b as RecallPlanMode, I as IdentityInjectionMode, t as RecallTierExplain } from './types-D1iBqhJA.js';
2
+ import { b as RecallPlanMode, I as IdentityInjectionMode, t as RecallTierExplain } from './types-ljkd82rn.js';
3
3
  import './types-gb_SNtjR.js';
4
4
  import './message-parts/index.js';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { RecallFilterTrace } from './recall-xray.js';
2
2
  import './memory-provenance.js';
3
- import './types-D1iBqhJA.js';
3
+ import './types-ljkd82rn.js';
4
4
  import './types-gb_SNtjR.js';
5
5
  import './message-parts/index.js';
6
6
  import './user-model.js';
@@ -1,4 +1,4 @@
1
- import { P as PluginConfig } from './types-D1iBqhJA.js';
1
+ import { P as PluginConfig } from './types-ljkd82rn.js';
2
2
  import './types-gb_SNtjR.js';
3
3
  import './message-parts/index.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { RecallXrayFormat } from './recall-xray-renderer.js';
2
- import { R as RecallDisclosure } from './types-D1iBqhJA.js';
2
+ import { R as RecallDisclosure } from './types-ljkd82rn.js';
3
3
  import './recall-xray.js';
4
4
  import './memory-provenance.js';
5
5
  import './user-model.js';
@@ -1,6 +1,6 @@
1
1
  import { RecallXraySnapshot } from './recall-xray.js';
2
2
  import './memory-provenance.js';
3
- import './types-D1iBqhJA.js';
3
+ import './types-ljkd82rn.js';
4
4
  import './types-gb_SNtjR.js';
5
5
  import './message-parts/index.js';
6
6
  import './user-model.js';
@@ -1,5 +1,5 @@
1
1
  import { RetrievedMemoryProvenance } from './memory-provenance.js';
2
- import { t as RecallTierExplain, R as RecallDisclosure } from './types-D1iBqhJA.js';
2
+ import { t as RecallTierExplain, R as RecallDisclosure } from './types-ljkd82rn.js';
3
3
  import './user-model.js';
4
4
  import './types-gb_SNtjR.js';
5
5
  import './message-parts/index.js';
@@ -1,4 +1,4 @@
1
- import { Y as SecretRef, Z as AgentAccessAuthToken } from './types-D1iBqhJA.js';
1
+ import { Y as SecretRef, Z as AgentAccessAuthToken } from './types-ljkd82rn.js';
2
2
  import './types-gb_SNtjR.js';
3
3
  import './message-parts/index.js';
4
4
 
@@ -4,12 +4,12 @@ import {
4
4
  recordResumeBundle,
5
5
  resolveResumeBundleDir,
6
6
  validateResumeBundle
7
- } from "./chunk-OH6BKCPB.js";
7
+ } from "./chunk-XN3TUUX2.js";
8
8
  import "./chunk-ZRWB5D4H.js";
9
9
  import "./chunk-5EZXHU36.js";
10
10
  import "./chunk-KFY3SGN7.js";
11
11
  import "./chunk-LMDRGRJ2.js";
12
- import "./chunk-QICQ35K5.js";
12
+ import "./chunk-7Z2DZNWN.js";
13
13
  import "./chunk-NDAH7BJ5.js";
14
14
  import "./chunk-Z5LAYHGJ.js";
15
15
  import "./chunk-G6NKALRN.js";
@@ -1,5 +1,5 @@
1
- import { Q as QmdSearchResult } from './types-D1iBqhJA.js';
2
- import { QmdClient } from './qmd.js';
1
+ import { Q as QmdSearchResult } from './types-ljkd82rn.js';
2
+ import { Q as QmdClient } from './qmd-Db9mOkzB.js';
3
3
  import './types-gb_SNtjR.js';
4
4
  import './message-parts/index.js';
5
5
  import './search/port.js';
@@ -1,4 +1,4 @@
1
- import { ao as RetrievalTier } from './types-D1iBqhJA.js';
1
+ import { an as RetrievalTier } from './types-ljkd82rn.js';
2
2
  import './types-gb_SNtjR.js';
3
3
  import './message-parts/index.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { h as MemoryCategory } from '../types-D1iBqhJA.js';
1
+ import { h as MemoryCategory } from '../types-ljkd82rn.js';
2
2
  import '../types-gb_SNtjR.js';
3
3
  import '../message-parts/index.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { RoutingEngineOptions, RouteRule } from './engine.js';
2
- import '../types-D1iBqhJA.js';
2
+ import '../types-ljkd82rn.js';
3
3
  import '../types-gb_SNtjR.js';
4
4
  import '../message-parts/index.js';
5
5
 
@@ -3,7 +3,23 @@ import BetterSqlite3 from 'better-sqlite3';
3
3
  type BetterSqlite3Database = BetterSqlite3.Database;
4
4
  type BetterSqlite3Ctor = typeof BetterSqlite3;
5
5
  declare function openBetterSqlite3(file: string, options?: ConstructorParameters<BetterSqlite3Ctor>[1]): BetterSqlite3Database;
6
+ interface BetterSqlite3DriverProbe {
7
+ /** true when the native binding loaded successfully under this process. */
8
+ ok: boolean;
9
+ /** Path-free detail string (class + code) from `displayErrorDetail`; "" when ok. */
10
+ detail: string;
11
+ /** true when the failure is classified as a native-binding ABI mismatch. */
12
+ nativeBindingMismatch: boolean;
13
+ }
14
+ /**
15
+ * Attempt to load the better-sqlite3 native driver under the running process
16
+ * WITHOUT opening a database. Used by the server startup check (issue #1829)
17
+ * to surface a wrong-ABI build loudly instead of letting each memory browse
18
+ * silently fall back to a full-corpus scan. Never throws — callers log the
19
+ * result. A successful probe also warms the ctor cache for later opens.
20
+ */
21
+ declare function probeBetterSqlite3Driver(): BetterSqlite3DriverProbe;
6
22
  declare function isLikelyBetterSqlite3NativeBindingError(error: unknown): boolean;
7
23
  declare function displayErrorDetail(error: unknown): string;
8
24
 
9
- export { type BetterSqlite3Database, displayErrorDetail, isLikelyBetterSqlite3NativeBindingError, openBetterSqlite3 };
25
+ export { type BetterSqlite3Database, type BetterSqlite3DriverProbe, displayErrorDetail, isLikelyBetterSqlite3NativeBindingError, openBetterSqlite3, probeBetterSqlite3Driver };
@@ -1,12 +1,14 @@
1
1
  import {
2
2
  displayErrorDetail,
3
3
  isLikelyBetterSqlite3NativeBindingError,
4
- openBetterSqlite3
5
- } from "../chunk-6KYMPV2O.js";
4
+ openBetterSqlite3,
5
+ probeBetterSqlite3Driver
6
+ } from "../chunk-RL6NEVXT.js";
6
7
  import "../chunk-PZ5AY32C.js";
7
8
  export {
8
9
  displayErrorDetail,
9
10
  isLikelyBetterSqlite3NativeBindingError,
10
- openBetterSqlite3
11
+ openBetterSqlite3,
12
+ probeBetterSqlite3Driver
11
13
  };
12
14
  //# sourceMappingURL=better-sqlite.js.map