@graphrefly/graphrefly 0.41.0 → 0.43.0

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 (296) hide show
  1. package/dist/{cascading-Cxs1eztH.d.cts → cascading-CH-_VwG9.d.cts} +2 -2
  2. package/dist/{cascading-BNfxffgc.d.ts → cascading-OgKQZjsa.d.ts} +2 -2
  3. package/dist/chunk-3XDYJRYU.js +1 -0
  4. package/dist/{chunk-AI7QC7J6.js → chunk-4YAN45KM.js} +1 -1
  5. package/dist/chunk-626TESAC.js +3 -0
  6. package/dist/chunk-6HOSXQKF.js +1 -0
  7. package/dist/{chunk-G3M3IMEV.js → chunk-CUNIRONA.js} +1 -1
  8. package/dist/chunk-EBW4V6JN.js +1 -0
  9. package/dist/chunk-FDQGFWLF.js +1 -0
  10. package/dist/{chunk-33N4TU3X.js → chunk-FG4TKHMC.js} +1 -1
  11. package/dist/{chunk-YQRN4CIV.js → chunk-I7IGYPSL.js} +1 -1
  12. package/dist/chunk-INQD2KRQ.js +1 -0
  13. package/dist/{chunk-7PQLZMOG.js → chunk-JNWRYDJN.js} +1 -1
  14. package/dist/{chunk-TT4C7DXW.js → chunk-JQFH2DV6.js} +1 -1
  15. package/dist/{chunk-M3FQSXEW.js → chunk-K2Q24F5T.js} +1 -1
  16. package/dist/chunk-KVV66NN2.js +1 -0
  17. package/dist/chunk-NON4NLIC.js +45 -0
  18. package/dist/{chunk-CYOSWFT2.js → chunk-O2BLLH7M.js} +3 -3
  19. package/dist/{chunk-OV5AA6HJ.js → chunk-OCKEEPRJ.js} +1 -1
  20. package/dist/{chunk-X7QKTXXC.js → chunk-OFZG3TB3.js} +3 -3
  21. package/dist/chunk-OYJKFY7V.js +1 -0
  22. package/dist/{chunk-SC27WTSG.js → chunk-P6C4WHZO.js} +1 -1
  23. package/dist/{chunk-VV62MIG4.js → chunk-PT7W5FCD.js} +1 -1
  24. package/dist/{chunk-UISPDFJ3.js → chunk-Q4U3A3L5.js} +1 -1
  25. package/dist/chunk-QE4IGY7I.js +61 -0
  26. package/dist/{chunk-5VEZLQFN.js → chunk-QYVXF7GW.js} +1 -1
  27. package/dist/{chunk-ZAJ7J7TO.js → chunk-S3EEIPO7.js} +1 -1
  28. package/dist/{chunk-GI4Q7PNY.js → chunk-SUWT3ZON.js} +1 -1
  29. package/dist/{chunk-CGNOWGV6.js → chunk-TPKQW72B.js} +1 -1
  30. package/dist/{chunk-L77I47VU.js → chunk-V5A7M7RJ.js} +1 -1
  31. package/dist/chunk-VNC3TMVY.js +1 -0
  32. package/dist/{chunk-AK5RHMC5.js → chunk-VOPGGIL7.js} +1 -1
  33. package/dist/chunk-VQ4A6T2A.js +1 -0
  34. package/dist/{chunk-KNVCCBIU.js → chunk-XG62INFA.js} +1 -1
  35. package/dist/{chunk-F7VUYPP6.js → chunk-Y4NI3X7O.js} +1 -1
  36. package/dist/compat/index.cjs +5 -5
  37. package/dist/compat/index.d.cts +16 -16
  38. package/dist/compat/index.d.ts +16 -16
  39. package/dist/compat/index.js +1 -1
  40. package/dist/compat/jotai/index.d.cts +2 -2
  41. package/dist/compat/jotai/index.d.ts +2 -2
  42. package/dist/compat/nanostores/index.d.cts +2 -2
  43. package/dist/compat/nanostores/index.d.ts +2 -2
  44. package/dist/compat/nestjs/index.cjs +5 -5
  45. package/dist/compat/nestjs/index.d.cts +8 -8
  46. package/dist/compat/nestjs/index.d.ts +8 -8
  47. package/dist/compat/nestjs/index.js +1 -1
  48. package/dist/compat/react/index.d.cts +2 -2
  49. package/dist/compat/react/index.d.ts +2 -2
  50. package/dist/compat/solid/index.d.cts +2 -2
  51. package/dist/compat/solid/index.d.ts +2 -2
  52. package/dist/compat/svelte/index.d.cts +2 -2
  53. package/dist/compat/svelte/index.d.ts +2 -2
  54. package/dist/compat/vue/index.d.cts +2 -2
  55. package/dist/compat/vue/index.d.ts +2 -2
  56. package/dist/compat/zustand/index.cjs +3 -3
  57. package/dist/compat/zustand/index.d.cts +4 -4
  58. package/dist/compat/zustand/index.d.ts +4 -4
  59. package/dist/compat/zustand/index.js +1 -1
  60. package/dist/core/index.d.cts +4 -4
  61. package/dist/core/index.d.ts +4 -4
  62. package/dist/{decay-C25AyNAj.d.cts → decay-2ZukgQ4o.d.cts} +2 -2
  63. package/dist/{decay-BnrlbxSv.d.ts → decay-CdEBmDIs.d.ts} +2 -2
  64. package/dist/extra/browser.d.cts +1 -1
  65. package/dist/extra/browser.d.ts +1 -1
  66. package/dist/extra/index.cjs +14 -14
  67. package/dist/extra/index.d.cts +10 -11
  68. package/dist/extra/index.d.ts +10 -11
  69. package/dist/extra/index.js +1 -1
  70. package/dist/extra/node.cjs +2 -2
  71. package/dist/extra/node.d.cts +1 -1
  72. package/dist/extra/node.d.ts +1 -1
  73. package/dist/extra/node.js +1 -1
  74. package/dist/extra/operators.cjs +1 -1
  75. package/dist/extra/operators.d.cts +1 -1
  76. package/dist/extra/operators.d.ts +1 -1
  77. package/dist/extra/operators.js +1 -1
  78. package/dist/extra/reactive.d.cts +3 -3
  79. package/dist/extra/reactive.d.ts +3 -3
  80. package/dist/extra/reactive.js +1 -1
  81. package/dist/extra/render/index.d.cts +3 -3
  82. package/dist/extra/render/index.d.ts +3 -3
  83. package/dist/extra/sources.cjs +3 -1
  84. package/dist/extra/sources.d.cts +1 -1
  85. package/dist/extra/sources.d.ts +1 -1
  86. package/dist/extra/sources.js +1 -1
  87. package/dist/extra/storage-browser.d.cts +1 -1
  88. package/dist/extra/storage-browser.d.ts +1 -1
  89. package/dist/{fallback-CMZl39L5.d.ts → fallback-CqYVLL6X.d.ts} +1 -1
  90. package/dist/{fallback-8JYU8tlT.d.cts → fallback-Ctlj2tMY.d.cts} +1 -1
  91. package/dist/graph/index.cjs +7 -7
  92. package/dist/graph/index.d.cts +5 -5
  93. package/dist/graph/index.d.ts +5 -5
  94. package/dist/graph/index.js +1 -1
  95. package/dist/{graph-BkIkog4h.d.ts → graph-7VguS7a4.d.ts} +3 -3
  96. package/dist/{graph-E6likq7w.d.cts → graph-C4SHb3Ly.d.cts} +3 -3
  97. package/dist/{index-DgJc8Zgc.d.cts → index-0rKFCVFp.d.cts} +90 -5
  98. package/dist/{index-BAQrjuZF.d.ts → index-B-i4_g3k.d.ts} +2 -2
  99. package/dist/{index-DpiGqtrs.d.cts → index-B5iz82A3.d.cts} +441 -381
  100. package/dist/{index-Bd91Nmf4.d.cts → index-BAOD98JD.d.cts} +4 -4
  101. package/dist/{index-2n8Eai6M.d.ts → index-BG0BN3PB.d.ts} +1 -1
  102. package/dist/{index-z8WFPVI8.d.cts → index-BJX94aud.d.cts} +1 -1
  103. package/dist/{index-DhLyOHYZ.d.ts → index-BP8a88zx.d.ts} +11 -4
  104. package/dist/{index-Cnr1WrlX.d.cts → index-BTQtTb_H.d.cts} +14 -3
  105. package/dist/{index-DOBLxOti.d.cts → index-BVpm6noz.d.cts} +1 -1
  106. package/dist/{index-Cczxgd2D.d.ts → index-Bc41FuHp.d.cts} +3 -3
  107. package/dist/{index-BiHUBEKq.d.cts → index-BdGtBX-X.d.cts} +3 -3
  108. package/dist/{index-da2V5vPy.d.ts → index-Bf7eqeSF.d.ts} +2 -2
  109. package/dist/{index-DuRsN9ae.d.cts → index-BiX1Nkgx.d.cts} +383 -18
  110. package/dist/{index-DGTo1yka.d.cts → index-BoLv_OfD.d.cts} +2 -2
  111. package/dist/{index-DVAlsmEU.d.cts → index-BojK2fwH.d.cts} +3 -3
  112. package/dist/{index-B72TQQHd.d.cts → index-BsT7F2et.d.ts} +3 -3
  113. package/dist/{index-DGD4_fj6.d.cts → index-BwLvVVsy.d.cts} +8 -5
  114. package/dist/{index-CQtWm7jS.d.ts → index-C59mYFKp.d.ts} +9 -9
  115. package/dist/{index-C6ZUaos7.d.ts → index-C7O6r5fV.d.ts} +1 -1
  116. package/dist/{index-CL7oilfm.d.cts → index-C9kSENB4.d.cts} +1 -1
  117. package/dist/{index-DVDapw2k.d.cts → index-C9pjcz3l.d.cts} +35 -36
  118. package/dist/{index-CG33HeBW.d.ts → index-CAC_rNzm.d.ts} +8 -5
  119. package/dist/{index-yLt-aPMp.d.ts → index-CCq87F7t.d.ts} +1 -1
  120. package/dist/{index-D4uimgee.d.cts → index-CDXc9zKM.d.cts} +1 -1
  121. package/dist/{index-B2RUoIUz.d.ts → index-CJK1JkYy.d.ts} +1 -1
  122. package/dist/{index-DktLSZOc.d.cts → index-CLon-IWF.d.cts} +4 -4
  123. package/dist/{index-DQQCOIt8.d.cts → index-COD1kVoS.d.cts} +10 -5
  124. package/dist/{index-bXXLSvor.d.ts → index-CPT7C_f1.d.ts} +4 -4
  125. package/dist/{index-CD2dBMet.d.ts → index-CQG3D1cp.d.ts} +10 -5
  126. package/dist/{index-BQ1fR4li.d.ts → index-CZQXo5tH.d.ts} +35 -36
  127. package/dist/{index-A3U3CSve.d.cts → index-CZjOhcBy.d.cts} +2 -2
  128. package/dist/{index-DYTBbF8T.d.cts → index-ChOyVLKm.d.cts} +1 -1
  129. package/dist/{index-BJSZxSFX.d.ts → index-CvrqGfNS.d.ts} +1 -1
  130. package/dist/{index-DhnsQfa3.d.ts → index-D-AEQVLo.d.ts} +441 -381
  131. package/dist/{index-CAP3UGsq.d.ts → index-D4Y1cMG0.d.ts} +1 -1
  132. package/dist/{index-40ZT4MHj.d.ts → index-DBHK8O6H.d.ts} +14 -3
  133. package/dist/{index-3k4Gg6-n.d.ts → index-DBevwHj_.d.ts} +3 -3
  134. package/dist/{index-Ctb7_2sG.d.ts → index-DIOoAZUX.d.ts} +1 -1
  135. package/dist/{index-WSlcjhQF.d.ts → index-DSZ3ZCHF.d.ts} +124 -13
  136. package/dist/{index-DH4fm2Ck.d.ts → index-Dgs8zcj7.d.ts} +2 -2
  137. package/dist/{index-BaA-xpSw.d.ts → index-Dh_HJ82K.d.ts} +3 -3
  138. package/dist/{index-CtFNGe-m.d.cts → index-Dhc7a7Xo.d.cts} +2 -2
  139. package/dist/{index-CoM4rzyB.d.ts → index-Dmqp7KjD.d.ts} +1 -1
  140. package/dist/{index-B6iTqKtJ.d.ts → index-Dn-wI9g4.d.ts} +2 -2
  141. package/dist/{index-C-dkXOpB.d.cts → index-Du7u1lSf.d.cts} +11 -4
  142. package/dist/{index-DfOK_oL5.d.ts → index-DwigL4lY.d.ts} +383 -18
  143. package/dist/index-DyR7eU5S.d.cts +779 -0
  144. package/dist/index-JZUPJIJy.d.ts +779 -0
  145. package/dist/{index-I1cCY3ZI.d.ts → index-K0_0eR8g.d.ts} +90 -5
  146. package/dist/{index-BilOa6AE.d.cts → index-O16yXPK4.d.cts} +124 -13
  147. package/dist/{index-CRm0YIzC.d.cts → index-O7fucFrU.d.cts} +9 -9
  148. package/dist/{index-MxYuWOrf.d.cts → index-RV_yDjOX.d.cts} +3 -3
  149. package/dist/{index-C5cQ7Gfx.d.ts → index-cm1GNcWE.d.ts} +4 -4
  150. package/dist/{index-CgnCFhr2.d.cts → index-f5IivDUX.d.cts} +1 -1
  151. package/dist/{index-PgwvGWa1.d.cts → index-hHcaFlJX.d.cts} +1 -1
  152. package/dist/{index-tV3AA9hI.d.cts → index-tJoTcnHh.d.cts} +2 -2
  153. package/dist/{index-eaQuGJnv.d.ts → index-wAzD9yVj.d.ts} +3 -3
  154. package/dist/{index-D3ayz3hy.d.cts → index-z96luz5O.d.cts} +1 -1
  155. package/dist/index.cjs +48 -48
  156. package/dist/index.d.cts +45 -50
  157. package/dist/index.d.ts +45 -50
  158. package/dist/index.js +1 -1
  159. package/dist/{meta-D8OyedKp.d.ts → meta-BgVAsg9j.d.ts} +1 -1
  160. package/dist/{meta-Ct9nqQS5.d.cts → meta-vE8bxW1E.d.cts} +1 -1
  161. package/dist/{node-BYInONRr.d.cts → node-ClS5yC-B.d.cts} +1 -1
  162. package/dist/{node-BYInONRr.d.ts → node-ClS5yC-B.d.ts} +1 -1
  163. package/dist/{observable-DO8DDEzv.d.ts → observable-BsBzUrcI.d.ts} +1 -1
  164. package/dist/{observable-DMIlYJV1.d.cts → observable-DLGPPtb8.d.cts} +1 -1
  165. package/dist/patterns/ai/browser.d.cts +4 -4
  166. package/dist/patterns/ai/browser.d.ts +4 -4
  167. package/dist/patterns/ai/browser.js +1 -1
  168. package/dist/patterns/ai/index.cjs +17 -17
  169. package/dist/patterns/ai/index.d.cts +17 -17
  170. package/dist/patterns/ai/index.d.ts +17 -17
  171. package/dist/patterns/ai/index.js +1 -1
  172. package/dist/patterns/ai/node.d.cts +4 -4
  173. package/dist/patterns/ai/node.d.ts +4 -4
  174. package/dist/patterns/ai/node.js +1 -1
  175. package/dist/patterns/cqrs/index.cjs +3 -3
  176. package/dist/patterns/cqrs/index.d.cts +6 -6
  177. package/dist/patterns/cqrs/index.d.ts +6 -6
  178. package/dist/patterns/cqrs/index.js +1 -1
  179. package/dist/patterns/demo-shell/index.cjs +5 -5
  180. package/dist/patterns/demo-shell/index.d.cts +5 -5
  181. package/dist/patterns/demo-shell/index.d.ts +5 -5
  182. package/dist/patterns/demo-shell/index.js +1 -1
  183. package/dist/patterns/domain-templates/index.cjs +3 -3
  184. package/dist/patterns/domain-templates/index.d.cts +4 -4
  185. package/dist/patterns/domain-templates/index.d.ts +4 -4
  186. package/dist/patterns/domain-templates/index.js +1 -1
  187. package/dist/patterns/graphspec/index.cjs +12 -12
  188. package/dist/patterns/graphspec/index.d.cts +5 -5
  189. package/dist/patterns/graphspec/index.d.ts +5 -5
  190. package/dist/patterns/graphspec/index.js +1 -1
  191. package/dist/patterns/harness/index.cjs +10 -8
  192. package/dist/patterns/harness/index.d.cts +11 -12
  193. package/dist/patterns/harness/index.d.ts +11 -12
  194. package/dist/patterns/harness/index.js +1 -1
  195. package/dist/patterns/inspect/index.cjs +3 -0
  196. package/dist/patterns/inspect/index.d.cts +9 -0
  197. package/dist/patterns/inspect/index.d.ts +9 -0
  198. package/dist/patterns/inspect/index.js +1 -0
  199. package/dist/patterns/job-queue/index.cjs +3 -3
  200. package/dist/patterns/job-queue/index.d.cts +6 -6
  201. package/dist/patterns/job-queue/index.d.ts +6 -6
  202. package/dist/patterns/job-queue/index.js +1 -1
  203. package/dist/patterns/memory/index.cjs +3 -3
  204. package/dist/patterns/memory/index.d.cts +6 -6
  205. package/dist/patterns/memory/index.d.ts +6 -6
  206. package/dist/patterns/memory/index.js +1 -1
  207. package/dist/patterns/messaging/index.cjs +3 -3
  208. package/dist/patterns/messaging/index.d.cts +5 -5
  209. package/dist/patterns/messaging/index.d.ts +5 -5
  210. package/dist/patterns/messaging/index.js +1 -1
  211. package/dist/patterns/orchestration/index.cjs +3 -3
  212. package/dist/patterns/orchestration/index.d.cts +7 -7
  213. package/dist/patterns/orchestration/index.d.ts +7 -7
  214. package/dist/patterns/orchestration/index.js +1 -1
  215. package/dist/patterns/process/index.cjs +1 -1
  216. package/dist/patterns/process/index.d.cts +7 -7
  217. package/dist/patterns/process/index.d.ts +7 -7
  218. package/dist/patterns/process/index.js +1 -1
  219. package/dist/patterns/reactive-layout/index.cjs +4 -4
  220. package/dist/patterns/reactive-layout/index.d.cts +5 -5
  221. package/dist/patterns/reactive-layout/index.d.ts +5 -5
  222. package/dist/patterns/reactive-layout/index.js +1 -1
  223. package/dist/patterns/reduction/index.cjs +3 -3
  224. package/dist/patterns/reduction/index.d.cts +4 -4
  225. package/dist/patterns/reduction/index.d.ts +4 -4
  226. package/dist/patterns/reduction/index.js +1 -1
  227. package/dist/patterns/surface/index.cjs +8 -8
  228. package/dist/patterns/surface/index.d.cts +6 -6
  229. package/dist/patterns/surface/index.d.ts +6 -6
  230. package/dist/patterns/surface/index.js +1 -1
  231. package/dist/{pipeline-graph-MWrQZXCq.d.cts → pipeline-graph-DPqKDk59.d.cts} +5 -5
  232. package/dist/{pipeline-graph-CB4La-UW.d.ts → pipeline-graph-loP57TBA.d.ts} +5 -5
  233. package/dist/{reactive-layout-BtZfUKuL.d.cts → reactive-layout-Dsvob4zD.d.cts} +2 -2
  234. package/dist/{reactive-layout-KJj4E2dT.d.ts → reactive-layout-v7KPvxoc.d.ts} +2 -2
  235. package/dist/{reactive-log-_zeEnB9H.d.cts → reactive-log-B00laMSQ.d.cts} +1 -1
  236. package/dist/{reactive-log-BlAsPLl2.d.ts → reactive-log-BezYsbA_.d.ts} +1 -1
  237. package/dist/{reactive-map-6P_k3AQM.d.cts → reactive-map-48mnZ-nu.d.cts} +1 -1
  238. package/dist/{reactive-map-CjXByDV-.d.ts → reactive-map-BVVPdvmi.d.ts} +1 -1
  239. package/dist/resilience-YIWPK4YC.js +1 -0
  240. package/dist/{sugar-DzePN5-g.d.cts → sugar-DLwvMr3F.d.ts} +24 -4
  241. package/dist/{sugar-BhfjgetH.d.ts → sugar-DyVGtczU.d.cts} +24 -4
  242. package/dist/{topology-tree-mF7Emqzm.d.ts → topology-tree-BNGvuG82.d.ts} +1 -1
  243. package/dist/{topology-tree-3LBKFsUo.d.cts → topology-tree-BSdfSwMi.d.cts} +1 -1
  244. package/dist/{types-1Dhoi7HM.d.cts → types-B1jDWVsM.d.cts} +1 -1
  245. package/dist/{types-39jk0kaV.d.ts → types-DkzUUs0H.d.ts} +1 -1
  246. package/package.json +11 -51
  247. package/dist/budget-gate-CmmVtasH.d.ts +0 -115
  248. package/dist/budget-gate-DiP_nK0n.d.cts +0 -115
  249. package/dist/chunk-2W553JJC.js +0 -1
  250. package/dist/chunk-4MKL6Q3K.js +0 -1
  251. package/dist/chunk-5B3JDG5F.js +0 -1
  252. package/dist/chunk-5QSXEMXG.js +0 -1
  253. package/dist/chunk-5TEFC2ZX.js +0 -1
  254. package/dist/chunk-5TOPVRN6.js +0 -1
  255. package/dist/chunk-EC2WNSZ7.js +0 -1
  256. package/dist/chunk-ELAASRBT.js +0 -3
  257. package/dist/chunk-H5SCWHWP.js +0 -1
  258. package/dist/chunk-OLIKJUKI.js +0 -1
  259. package/dist/chunk-POXANAJ6.js +0 -3
  260. package/dist/chunk-RSMEXK53.js +0 -43
  261. package/dist/chunk-SGS4OJGS.js +0 -1
  262. package/dist/chunk-URJ2VFNC.js +0 -1
  263. package/dist/chunk-VXPLLA4P.js +0 -1
  264. package/dist/chunk-WZYB3JQS.js +0 -1
  265. package/dist/chunk-Z6X7B6A4.js +0 -61
  266. package/dist/index-8s-Qm-gz.d.ts +0 -218
  267. package/dist/index-BgjS2b8N.d.ts +0 -366
  268. package/dist/index-BmSQLAZo.d.cts +0 -244
  269. package/dist/index-CGhMJNHb.d.cts +0 -128
  270. package/dist/index-CUIkE1l9.d.cts +0 -230
  271. package/dist/index-Ck35nA-T.d.ts +0 -244
  272. package/dist/index-CuPUehFa.d.cts +0 -218
  273. package/dist/index-D1Gc7wV5.d.ts +0 -230
  274. package/dist/index-N2MAxt7_.d.ts +0 -128
  275. package/dist/index-t6L2qpHh.d.cts +0 -366
  276. package/dist/patterns/audit/index.cjs +0 -3
  277. package/dist/patterns/audit/index.d.cts +0 -8
  278. package/dist/patterns/audit/index.d.ts +0 -8
  279. package/dist/patterns/audit/index.js +0 -1
  280. package/dist/patterns/guarded-execution/index.cjs +0 -3
  281. package/dist/patterns/guarded-execution/index.d.cts +0 -9
  282. package/dist/patterns/guarded-execution/index.d.ts +0 -9
  283. package/dist/patterns/guarded-execution/index.js +0 -1
  284. package/dist/patterns/lens/index.cjs +0 -3
  285. package/dist/patterns/lens/index.d.cts +0 -7
  286. package/dist/patterns/lens/index.d.ts +0 -7
  287. package/dist/patterns/lens/index.js +0 -1
  288. package/dist/patterns/refine-loop/index.cjs +0 -5
  289. package/dist/patterns/refine-loop/index.d.cts +0 -9
  290. package/dist/patterns/refine-loop/index.d.ts +0 -9
  291. package/dist/patterns/refine-loop/index.js +0 -1
  292. package/dist/patterns/resilient-pipeline/index.cjs +0 -3
  293. package/dist/patterns/resilient-pipeline/index.d.cts +0 -8
  294. package/dist/patterns/resilient-pipeline/index.d.ts +0 -8
  295. package/dist/patterns/resilient-pipeline/index.js +0 -1
  296. package/dist/resilience-JISHQD2F.js +0 -1
@@ -1,18 +1,17 @@
1
- export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as domainMeta, bk as externalBundle, bl as externalProducer, bn as fromCSV, bo as fromClickHouseWatch, bp as fromDrizzle, bq as fromHTTP, br as fromHTTPPoll, bs as fromHTTPStream, bt as fromKafka, bu as fromKysely, bv as fromMCP, bw as fromNATS, bx as fromNDJSON, by as fromOTel, bz as fromPrisma, bA as fromPrometheus, bB as fromPulsar, bC as fromRabbitMQ, bD as fromRedisStream, bE as fromSSE, bF as fromSqlite, bG as fromSqliteCursor, bH as fromStatsD, bI as fromSyslog, bJ as fromWebSocket, bK as fromWebSocketReconnect, bL as fromWebhook, bM as lru, bN as makeHttpError, bO as matchesCron, bP as nameToSignal, bQ as ndjsonRows, bR as parseCron, bS as parsePrometheusText, bT as parseSSEStream, bU as parseStatsD, bV as parseSyslog, bW as pubsub, bX as reactiveSink, bY as serializeError, bZ as signalToName, b_ as singleFromAny, b$ as singleNodeFromAny, c0 as stratify, c1 as toCSV, c2 as toClickHouse, c3 as toFile, c4 as toHTTP, c5 as toKafka, c6 as toLoki, c7 as toMongo, c8 as toNATS, c9 as toPostgres, ca as toPulsar, cb as toRabbitMQ, cc as toReadableStream, cd as toRedisStream, ce as toS3, cf as toSSE, cg as toSSEBytes, ch as toSqlite, ci as toTempo, cj as toWebSocket, ck as workerBridge, cl as workerSelf } from '../index-BilOa6AE.cjs';
2
- export { B as BackoffPreset, e as BackoffStrategy, f as CircuitBreaker, b as CircuitBreakerOptions, g as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, d as NS_PER_SEC, a as RateLimiterOptions, h as RateLimiterOverflowError, i as RateLimiterOverflowPolicy, c as RetryOptions, S as StatusValue, T as TimeoutError, j as TokenBucket, W as WithBreakerBundle, k as WithStatusBundle, l as circuitBreaker, m as constant, n as decorrelatedJitter, o as exponential, p as fallback, q as fibonacci, r as linear, s as rateLimiter, t as resolveBackoffPreset, u as retry, v as timeout, w as tokenBucket, x as withBreaker, y as withMaxAttempts, z as withStatus } from '../index-DGTo1yka.cjs';
3
- export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as decay, e as distill, v as verifiable } from '../decay-C25AyNAj.cjs';
4
- export { f as DescribeChangeset, g as DescribeEvent, M as DescribeNodeMeta, Q as topologyDiff } from '../graph-E6likq7w.cjs';
1
+ export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BudgetConstraint, d as BudgetGateOptions, e as BufferedSinkHandle, f as BundleTriad, C as CSVRow, g as CacheEvictionPolicy, h as CascadingCache, i as CascadingCacheOptions, j as CheckpointToRedisOptions, k as CheckpointToS3Options, l as ClickHouseClientLike, m as ClickHouseInsertClientLike, n as ClickHouseRow, o as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, p as ErrorMessage, q as ExternalBundleOptions, r as ExternalRegister, F as FileWriterLike, s as FromCSVOptions, t as FromClickHouseWatchOptions, u as FromDrizzleOptions, v as FromHTTPOptions, w as FromHTTPPollOptions, x as FromHTTPStreamOptions, y as FromKafkaOptions, z as FromKyselyOptions, G as FromMCPOptions, H as FromNATSOptions, I as FromNDJSONOptions, J as FromOTelOptions, K as FromPrismaOptions, L as FromPrometheusOptions, M as FromPulsarOptions, N as FromRabbitMQOptions, O as FromRedisStreamOptions, P as FromSSEOptions, Q as FromSqliteOptions, R as FromStatsDOptions, S as FromSyslogOptions, T as FromWebSocketReconnectOptions, U as HTTPBundle, V as InitMessage, W as KafkaConsumerLike, X as KafkaMessage, Y as KafkaProducerLike, Z as KyselyQueryLike, _ as LokiClientLike, $ as LokiStream, a0 as MCPClientLike, a1 as MongoCollectionLike, a2 as NATSClientLike, a3 as NATSMessage, a4 as NATSSubscriptionLike, a5 as NativePubSubBackend, a6 as OTelBundle, a7 as OTelLog, a8 as OTelMetric, a9 as OTelRegister, aa as OTelSpan, ab as ParseSSEStreamOptions, ac as PostgresClientLike, ad as PrismaModelLike, ae as PrometheusMetric, af as PubSubBackend, ag as PubSubHub, ah as PubSubHubOptions, ai as PulsarConsumerLike, aj as PulsarMessage, ak as PulsarProducerLike, al as RabbitMQChannelLike, am as RabbitMQMessage, an as ReactiveSinkBackpressureOptions, ao as ReactiveSinkConfig, ap as ReactiveSinkHandle, aq as ReactiveSinkOptions, ar as ReactiveSinkRetryOptions, as as ReadyMessage, at as RedisCheckpointClientLike, au as RedisClientLike, av as RedisStreamEntry, aw as ResettableTimer, ax as S3ClientLike, ay as SSEEvent, az as SignalMessage, aA as SingleFromAnyOptions, aB as SinkFailure, aC as SinkHandle, aD as SinkTransportError, aE as SqliteDbLike, aF as SqliteIterableDbLike, aG as StatsDMetric, aH as StatsDRegister, aI as StratifyOptions, aJ as StratifyRule, aK as SyslogMessage, aL as SyslogRegister, aM as TempoClientLike, aN as ToCSVOptions, aO as ToClickHouseOptions, aP as ToFileOptions, aQ as ToHTTPOptions, aR as ToKafkaOptions, aS as ToLokiOptions, aT as ToMongoOptions, aU as ToNATSOptions, aV as ToPostgresOptions, aW as ToPulsarOptions, aX as ToRabbitMQOptions, aY as ToRedisStreamOptions, aZ as ToS3Options, a_ as ToSSEOptions, a$ as ToSqliteOptions, b0 as ToTempoOptions, b1 as ToWebSocketOptions, b2 as ValueMessage, b3 as WatermarkController, b4 as WatermarkOptions, b5 as WebSocketLike, b6 as WebSocketMessageEventLike, b7 as WebSocketRegister, b8 as WebhookRegister, b9 as WorkerBridge, ba as WorkerBridgeOptions, bb as WorkerSelfHandle, bc as WorkerSelfOptions, bd as WorkerTransport, be as budgetGate, bf as cascadingCache, bg as checkpointToRedis, bh as checkpointToS3, bi as createTransport, bj as createWatermarkController, bk as csvRows, bl as deserializeError, bm as domainMeta, bn as externalBundle, bo as externalProducer, bq as fromCSV, br as fromClickHouseWatch, bs as fromDrizzle, bt as fromHTTP, bu as fromHTTPPoll, bv as fromHTTPStream, bw as fromKafka, bx as fromKysely, by as fromMCP, bz as fromNATS, bA as fromNDJSON, bB as fromOTel, bC as fromPrisma, bD as fromPrometheus, bE as fromPulsar, bF as fromRabbitMQ, bG as fromRedisStream, bH as fromSSE, bI as fromSqlite, bJ as fromSqliteCursor, bK as fromStatsD, bL as fromSyslog, bM as fromWebSocket, bN as fromWebSocketReconnect, bO as fromWebhook, bP as lru, bQ as makeHttpError, bR as matchesCron, bS as nameToSignal, bT as ndjsonRows, bU as parseCron, bV as parsePrometheusText, bW as parseSSEStream, bX as parseStatsD, bY as parseSyslog, bZ as pubsub, b_ as reactiveSink, b$ as serializeError, c0 as signalToName, c1 as singleFromAny, c2 as singleNodeFromAny, c3 as stratify, c4 as toCSV, c5 as toClickHouse, c6 as toFile, c7 as toHTTP, c8 as toKafka, c9 as toLoki, ca as toMongo, cb as toNATS, cc as toPostgres, cd as toPulsar, ce as toRabbitMQ, cf as toReadableStream, cg as toRedisStream, ch as toS3, ci as toSSE, cj as toSSEBytes, ck as toSqlite, cl as toTempo, cm as toWebSocket, cn as workerBridge, co as workerSelf } from '../index-O16yXPK4.cjs';
2
+ export { B as BackoffPreset, a as BackoffStrategy, C as CircuitBreaker, b as CircuitBreakerOptions, c as CircuitOpenError, d as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, e as NS_PER_SEC, R as RateLimiterOptions, f as RateLimiterOverflowError, g as RateLimiterOverflowPolicy, h as RetryOptions, S as StatusValue, T as TimeoutError, i as TokenBucket, W as WithBreakerBundle, j as WithStatusBundle, k as circuitBreaker, l as constant, m as decorrelatedJitter, n as exponential, o as fallback, p as fibonacci, q as linear, r as rateLimiter, s as resolveBackoffPreset, t as retry, u as timeout, v as tokenBucket, w as withBreaker, x as withMaxAttempts, y as withStatus } from '../index-BoLv_OfD.cjs';
3
+ export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as decay, e as distill, v as verifiable } from '../decay-2ZukgQ4o.cjs';
4
+ export { D as DescribeChangeset, d as DescribeEvent, M as DescribeNodeMeta, Q as topologyDiff } from '../graph-C4SHb3Ly.cjs';
5
5
  export { C as ContentAddressedMissError, a as ContentAddressedMode, b as ContentAddressedStorage, c as ContentAddressedStorageOptions, d as canonicalJson, e as contentAddressedStorage } from '../content-addressed-storage-4-ST1tYk.cjs';
6
- export { A as AuditLogOpts, B as BaseAuditRecord, D as DEFAULT_AUDIT_GUARD, F as FailureMeta, L as LightMutationOpts, M as MutationOpts, S as SuccessMeta, W as WrapMutationOpts, a as appendAudit, b as bumpCursor, c as createAuditLog, l as lightMutation, r as registerCursor, d as registerCursorMap, t as tryIncrementBounded, w as wrapMutation } from '../index-DVDapw2k.cjs';
7
- export { T as ToObservableOptions, t as toObservable } from '../observable-DMIlYJV1.cjs';
6
+ export { A as AuditLogOpts, B as BaseAuditRecord, D as DEFAULT_AUDIT_GUARD, F as FailureMeta, L as LightMutationOpts, M as MutationOpts, S as SuccessMeta, W as WrapMutationOpts, a as appendAudit, b as bumpCursor, c as createAuditLog, l as lightMutation, r as registerCursor, d as registerCursorMap, t as tryIncrementBounded, w as wrapMutation } from '../index-C9pjcz3l.cjs';
7
+ export { T as ToObservableOptions, t as toObservable } from '../observable-DLGPPtb8.cjs';
8
8
  export { MergeMapOptions, TapObserver, ThrottleOptions, audit, buffer, bufferCount, bufferTime, catchError, combine, combineLatest, concat, concatMap, debounce, debounceTime, delay, distinctUntilChanged, elementAt, exhaustMap, filter, find, first, flatMap, interval, last, map, merge, mergeMap, onFirstData, pairwise, pausable, race, reduce, repeat, rescue, sample, scan, skip, switchMap, take, takeUntil, takeWhile, tap, tapFirst, throttle, throttleTime, valve, window, windowCount, windowTime, withLatestFrom, zip } from './operators.cjs';
9
9
  export { IndexBackend, IndexRow, ListBackend, NativeIndexBackend, NativeListBackend, ReactiveIndexBundle, ReactiveIndexOptions, ReactiveListBundle, ReactiveListOptions, UpsertOptions, reactiveIndex, reactiveList } from './reactive.cjs';
10
- export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, a as ReactiveLogBundle, R as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-_zeEnB9H.cjs';
11
- export { M as MapBackend, N as NativeMapBackend, a as NativeMapBackendOptions, R as ReactiveMapBundle, b as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-6P_k3AQM.cjs';
10
+ export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, a as ReactiveLogBundle, R as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-B00laMSQ.cjs';
11
+ export { M as MapBackend, N as NativeMapBackend, a as NativeMapBackendOptions, R as ReactiveMapBundle, b as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-48mnZ-nu.cjs';
12
12
  export { AsyncSourceOpts, EventTargetLike, FromCronOptions, NodeInput, ReactiveCounterBundle, awaitSettled, cached, defer, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, nodeSignal, of, reactiveCounter, replay, share, shareReplay, throwError, toArray } from './sources.cjs';
13
13
  export { StorageHandle, sortJsonValue, stableJsonString } from './storage-core.cjs';
14
14
  export { AppendCursor, AppendLoadResult, AppendLogStorageOptions, AppendLogStorageTier, BaseStorageTier, Codec, KvStorageOptions, KvStorageTier, SnapshotStorageOptions, SnapshotStorageTier, StorageBackend, appendLogStorage, dictKv, dictSnapshot, jsonCodec, jsonCodecFor, kvStorage, memoryAppendLog, memoryBackend, memoryKv, memorySnapshot, snapshotStorage } from './storage-tiers.cjs';
15
- export { B as BudgetConstraint, a as BudgetGateOptions, b as budgetGate } from '../budget-gate-DiP_nK0n.cjs';
16
- import '../node-BYInONRr.cjs';
17
- import '../meta-Ct9nqQS5.cjs';
15
+ import '../node-ClS5yC-B.cjs';
16
+ import '../meta-vE8bxW1E.cjs';
18
17
  import 'rxjs';
@@ -1,18 +1,17 @@
1
- export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BufferedSinkHandle, d as BundleTriad, C as CSVRow, e as CacheEvictionPolicy, f as CascadingCache, g as CascadingCacheOptions, h as CheckpointToRedisOptions, i as CheckpointToS3Options, j as ClickHouseClientLike, k as ClickHouseInsertClientLike, l as ClickHouseRow, m as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, n as ErrorMessage, o as ExternalBundleOptions, p as ExternalRegister, F as FileWriterLike, q as FromCSVOptions, r as FromClickHouseWatchOptions, s as FromDrizzleOptions, t as FromHTTPOptions, u as FromHTTPPollOptions, v as FromHTTPStreamOptions, w as FromKafkaOptions, x as FromKyselyOptions, y as FromMCPOptions, z as FromNATSOptions, G as FromNDJSONOptions, H as FromOTelOptions, I as FromPrismaOptions, J as FromPrometheusOptions, K as FromPulsarOptions, L as FromRabbitMQOptions, M as FromRedisStreamOptions, N as FromSSEOptions, O as FromSqliteOptions, P as FromStatsDOptions, Q as FromSyslogOptions, R as FromWebSocketReconnectOptions, S as HTTPBundle, T as InitMessage, U as KafkaConsumerLike, V as KafkaMessage, W as KafkaProducerLike, X as KyselyQueryLike, Y as LokiClientLike, Z as LokiStream, _ as MCPClientLike, $ as MongoCollectionLike, a0 as NATSClientLike, a1 as NATSMessage, a2 as NATSSubscriptionLike, a3 as NativePubSubBackend, a4 as OTelBundle, a5 as OTelLog, a6 as OTelMetric, a7 as OTelRegister, a8 as OTelSpan, a9 as ParseSSEStreamOptions, aa as PostgresClientLike, ab as PrismaModelLike, ac as PrometheusMetric, ad as PubSubBackend, ae as PubSubHub, af as PubSubHubOptions, ag as PulsarConsumerLike, ah as PulsarMessage, ai as PulsarProducerLike, aj as RabbitMQChannelLike, ak as RabbitMQMessage, al as ReactiveSinkBackpressureOptions, am as ReactiveSinkConfig, an as ReactiveSinkHandle, ao as ReactiveSinkOptions, ap as ReactiveSinkRetryOptions, aq as ReadyMessage, ar as RedisCheckpointClientLike, as as RedisClientLike, at as RedisStreamEntry, au as ResettableTimer, av as S3ClientLike, aw as SSEEvent, ax as SignalMessage, ay as SingleFromAnyOptions, az as SinkFailure, aA as SinkHandle, aB as SinkTransportError, aC as SqliteDbLike, aD as SqliteIterableDbLike, aE as StatsDMetric, aF as StatsDRegister, aG as StratifyOptions, aH as StratifyRule, aI as SyslogMessage, aJ as SyslogRegister, aK as TempoClientLike, aL as ToCSVOptions, aM as ToClickHouseOptions, aN as ToFileOptions, aO as ToHTTPOptions, aP as ToKafkaOptions, aQ as ToLokiOptions, aR as ToMongoOptions, aS as ToNATSOptions, aT as ToPostgresOptions, aU as ToPulsarOptions, aV as ToRabbitMQOptions, aW as ToRedisStreamOptions, aX as ToS3Options, aY as ToSSEOptions, aZ as ToSqliteOptions, a_ as ToTempoOptions, a$ as ToWebSocketOptions, b0 as ValueMessage, b1 as WatermarkController, b2 as WatermarkOptions, b3 as WebSocketLike, b4 as WebSocketMessageEventLike, b5 as WebSocketRegister, b6 as WebhookRegister, b7 as WorkerBridge, b8 as WorkerBridgeOptions, b9 as WorkerSelfHandle, ba as WorkerSelfOptions, bb as WorkerTransport, bc as cascadingCache, bd as checkpointToRedis, be as checkpointToS3, bf as createTransport, bg as createWatermarkController, bh as csvRows, bi as deserializeError, bj as domainMeta, bk as externalBundle, bl as externalProducer, bn as fromCSV, bo as fromClickHouseWatch, bp as fromDrizzle, bq as fromHTTP, br as fromHTTPPoll, bs as fromHTTPStream, bt as fromKafka, bu as fromKysely, bv as fromMCP, bw as fromNATS, bx as fromNDJSON, by as fromOTel, bz as fromPrisma, bA as fromPrometheus, bB as fromPulsar, bC as fromRabbitMQ, bD as fromRedisStream, bE as fromSSE, bF as fromSqlite, bG as fromSqliteCursor, bH as fromStatsD, bI as fromSyslog, bJ as fromWebSocket, bK as fromWebSocketReconnect, bL as fromWebhook, bM as lru, bN as makeHttpError, bO as matchesCron, bP as nameToSignal, bQ as ndjsonRows, bR as parseCron, bS as parsePrometheusText, bT as parseSSEStream, bU as parseStatsD, bV as parseSyslog, bW as pubsub, bX as reactiveSink, bY as serializeError, bZ as signalToName, b_ as singleFromAny, b$ as singleNodeFromAny, c0 as stratify, c1 as toCSV, c2 as toClickHouse, c3 as toFile, c4 as toHTTP, c5 as toKafka, c6 as toLoki, c7 as toMongo, c8 as toNATS, c9 as toPostgres, ca as toPulsar, cb as toRabbitMQ, cc as toReadableStream, cd as toRedisStream, ce as toS3, cf as toSSE, cg as toSSEBytes, ch as toSqlite, ci as toTempo, cj as toWebSocket, ck as workerBridge, cl as workerSelf } from '../index-WSlcjhQF.js';
2
- export { B as BackoffPreset, e as BackoffStrategy, f as CircuitBreaker, b as CircuitBreakerOptions, g as CircuitOpenError, C as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, d as NS_PER_SEC, a as RateLimiterOptions, h as RateLimiterOverflowError, i as RateLimiterOverflowPolicy, c as RetryOptions, S as StatusValue, T as TimeoutError, j as TokenBucket, W as WithBreakerBundle, k as WithStatusBundle, l as circuitBreaker, m as constant, n as decorrelatedJitter, o as exponential, p as fallback, q as fibonacci, r as linear, s as rateLimiter, t as resolveBackoffPreset, u as retry, v as timeout, w as tokenBucket, x as withBreaker, y as withMaxAttempts, z as withStatus } from '../index-BAQrjuZF.js';
3
- export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as decay, e as distill, v as verifiable } from '../decay-BnrlbxSv.js';
4
- export { f as DescribeChangeset, g as DescribeEvent, M as DescribeNodeMeta, Q as topologyDiff } from '../graph-BkIkog4h.js';
1
+ export { A as AckableMessage, a as AdapterHandlers, B as BatchMessage, b as BridgeMessage, c as BudgetConstraint, d as BudgetGateOptions, e as BufferedSinkHandle, f as BundleTriad, C as CSVRow, g as CacheEvictionPolicy, h as CascadingCache, i as CascadingCacheOptions, j as CheckpointToRedisOptions, k as CheckpointToS3Options, l as ClickHouseClientLike, m as ClickHouseInsertClientLike, n as ClickHouseRow, o as CronSchedule, D as DrizzleQueryLike, E as EmitTriad, p as ErrorMessage, q as ExternalBundleOptions, r as ExternalRegister, F as FileWriterLike, s as FromCSVOptions, t as FromClickHouseWatchOptions, u as FromDrizzleOptions, v as FromHTTPOptions, w as FromHTTPPollOptions, x as FromHTTPStreamOptions, y as FromKafkaOptions, z as FromKyselyOptions, G as FromMCPOptions, H as FromNATSOptions, I as FromNDJSONOptions, J as FromOTelOptions, K as FromPrismaOptions, L as FromPrometheusOptions, M as FromPulsarOptions, N as FromRabbitMQOptions, O as FromRedisStreamOptions, P as FromSSEOptions, Q as FromSqliteOptions, R as FromStatsDOptions, S as FromSyslogOptions, T as FromWebSocketReconnectOptions, U as HTTPBundle, V as InitMessage, W as KafkaConsumerLike, X as KafkaMessage, Y as KafkaProducerLike, Z as KyselyQueryLike, _ as LokiClientLike, $ as LokiStream, a0 as MCPClientLike, a1 as MongoCollectionLike, a2 as NATSClientLike, a3 as NATSMessage, a4 as NATSSubscriptionLike, a5 as NativePubSubBackend, a6 as OTelBundle, a7 as OTelLog, a8 as OTelMetric, a9 as OTelRegister, aa as OTelSpan, ab as ParseSSEStreamOptions, ac as PostgresClientLike, ad as PrismaModelLike, ae as PrometheusMetric, af as PubSubBackend, ag as PubSubHub, ah as PubSubHubOptions, ai as PulsarConsumerLike, aj as PulsarMessage, ak as PulsarProducerLike, al as RabbitMQChannelLike, am as RabbitMQMessage, an as ReactiveSinkBackpressureOptions, ao as ReactiveSinkConfig, ap as ReactiveSinkHandle, aq as ReactiveSinkOptions, ar as ReactiveSinkRetryOptions, as as ReadyMessage, at as RedisCheckpointClientLike, au as RedisClientLike, av as RedisStreamEntry, aw as ResettableTimer, ax as S3ClientLike, ay as SSEEvent, az as SignalMessage, aA as SingleFromAnyOptions, aB as SinkFailure, aC as SinkHandle, aD as SinkTransportError, aE as SqliteDbLike, aF as SqliteIterableDbLike, aG as StatsDMetric, aH as StatsDRegister, aI as StratifyOptions, aJ as StratifyRule, aK as SyslogMessage, aL as SyslogRegister, aM as TempoClientLike, aN as ToCSVOptions, aO as ToClickHouseOptions, aP as ToFileOptions, aQ as ToHTTPOptions, aR as ToKafkaOptions, aS as ToLokiOptions, aT as ToMongoOptions, aU as ToNATSOptions, aV as ToPostgresOptions, aW as ToPulsarOptions, aX as ToRabbitMQOptions, aY as ToRedisStreamOptions, aZ as ToS3Options, a_ as ToSSEOptions, a$ as ToSqliteOptions, b0 as ToTempoOptions, b1 as ToWebSocketOptions, b2 as ValueMessage, b3 as WatermarkController, b4 as WatermarkOptions, b5 as WebSocketLike, b6 as WebSocketMessageEventLike, b7 as WebSocketRegister, b8 as WebhookRegister, b9 as WorkerBridge, ba as WorkerBridgeOptions, bb as WorkerSelfHandle, bc as WorkerSelfOptions, bd as WorkerTransport, be as budgetGate, bf as cascadingCache, bg as checkpointToRedis, bh as checkpointToS3, bi as createTransport, bj as createWatermarkController, bk as csvRows, bl as deserializeError, bm as domainMeta, bn as externalBundle, bo as externalProducer, bq as fromCSV, br as fromClickHouseWatch, bs as fromDrizzle, bt as fromHTTP, bu as fromHTTPPoll, bv as fromHTTPStream, bw as fromKafka, bx as fromKysely, by as fromMCP, bz as fromNATS, bA as fromNDJSON, bB as fromOTel, bC as fromPrisma, bD as fromPrometheus, bE as fromPulsar, bF as fromRabbitMQ, bG as fromRedisStream, bH as fromSSE, bI as fromSqlite, bJ as fromSqliteCursor, bK as fromStatsD, bL as fromSyslog, bM as fromWebSocket, bN as fromWebSocketReconnect, bO as fromWebhook, bP as lru, bQ as makeHttpError, bR as matchesCron, bS as nameToSignal, bT as ndjsonRows, bU as parseCron, bV as parsePrometheusText, bW as parseSSEStream, bX as parseStatsD, bY as parseSyslog, bZ as pubsub, b_ as reactiveSink, b$ as serializeError, c0 as signalToName, c1 as singleFromAny, c2 as singleNodeFromAny, c3 as stratify, c4 as toCSV, c5 as toClickHouse, c6 as toFile, c7 as toHTTP, c8 as toKafka, c9 as toLoki, ca as toMongo, cb as toNATS, cc as toPostgres, cd as toPulsar, ce as toRabbitMQ, cf as toReadableStream, cg as toRedisStream, ch as toS3, ci as toSSE, cj as toSSEBytes, ck as toSqlite, cl as toTempo, cm as toWebSocket, cn as workerBridge, co as workerSelf } from '../index-DSZ3ZCHF.js';
2
+ export { B as BackoffPreset, a as BackoffStrategy, C as CircuitBreaker, b as CircuitBreakerOptions, c as CircuitOpenError, d as CircuitState, E as ExponentialBackoffOptions, F as FallbackInput, J as JitterMode, N as NS_PER_MS, e as NS_PER_SEC, R as RateLimiterOptions, f as RateLimiterOverflowError, g as RateLimiterOverflowPolicy, h as RetryOptions, S as StatusValue, T as TimeoutError, i as TokenBucket, W as WithBreakerBundle, j as WithStatusBundle, k as circuitBreaker, l as constant, m as decorrelatedJitter, n as exponential, o as fallback, p as fibonacci, q as linear, r as rateLimiter, s as resolveBackoffPreset, t as retry, u as timeout, v as tokenBucket, w as withBreaker, x as withMaxAttempts, y as withStatus } from '../index-B-i4_g3k.js';
3
+ export { D as DistillBundle, a as DistillOptions, E as Extraction, V as VerifiableBundle, b as VerifiableOptions, c as VerifyValue, d as decay, e as distill, v as verifiable } from '../decay-CdEBmDIs.js';
4
+ export { D as DescribeChangeset, d as DescribeEvent, M as DescribeNodeMeta, Q as topologyDiff } from '../graph-7VguS7a4.js';
5
5
  export { C as ContentAddressedMissError, a as ContentAddressedMode, b as ContentAddressedStorage, c as ContentAddressedStorageOptions, d as canonicalJson, e as contentAddressedStorage } from '../content-addressed-storage-DuYMjV7o.js';
6
- export { A as AuditLogOpts, B as BaseAuditRecord, D as DEFAULT_AUDIT_GUARD, F as FailureMeta, L as LightMutationOpts, M as MutationOpts, S as SuccessMeta, W as WrapMutationOpts, a as appendAudit, b as bumpCursor, c as createAuditLog, l as lightMutation, r as registerCursor, d as registerCursorMap, t as tryIncrementBounded, w as wrapMutation } from '../index-BQ1fR4li.js';
7
- export { T as ToObservableOptions, t as toObservable } from '../observable-DO8DDEzv.js';
6
+ export { A as AuditLogOpts, B as BaseAuditRecord, D as DEFAULT_AUDIT_GUARD, F as FailureMeta, L as LightMutationOpts, M as MutationOpts, S as SuccessMeta, W as WrapMutationOpts, a as appendAudit, b as bumpCursor, c as createAuditLog, l as lightMutation, r as registerCursor, d as registerCursorMap, t as tryIncrementBounded, w as wrapMutation } from '../index-CZQXo5tH.js';
7
+ export { T as ToObservableOptions, t as toObservable } from '../observable-BsBzUrcI.js';
8
8
  export { MergeMapOptions, TapObserver, ThrottleOptions, audit, buffer, bufferCount, bufferTime, catchError, combine, combineLatest, concat, concatMap, debounce, debounceTime, delay, distinctUntilChanged, elementAt, exhaustMap, filter, find, first, flatMap, interval, last, map, merge, mergeMap, onFirstData, pairwise, pausable, race, reduce, repeat, rescue, sample, scan, skip, switchMap, take, takeUntil, takeWhile, tap, tapFirst, throttle, throttleTime, valve, window, windowCount, windowTime, withLatestFrom, zip } from './operators.js';
9
9
  export { IndexBackend, IndexRow, ListBackend, NativeIndexBackend, NativeListBackend, ReactiveIndexBundle, ReactiveIndexOptions, ReactiveListBundle, ReactiveListOptions, UpsertOptions, reactiveIndex, reactiveList } from './reactive.js';
10
- export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, a as ReactiveLogBundle, R as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-BlAsPLl2.js';
11
- export { M as MapBackend, N as NativeMapBackend, a as NativeMapBackendOptions, R as ReactiveMapBundle, b as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-CjXByDV-.js';
10
+ export { L as LogBackend, M as MergedReactiveLog, N as NativeLogBackend, a as ReactiveLogBundle, R as ReactiveLogOptions, V as ViewSpec, m as mergeReactiveLogs, r as reactiveLog } from '../reactive-log-BezYsbA_.js';
11
+ export { M as MapBackend, N as NativeMapBackend, a as NativeMapBackendOptions, R as ReactiveMapBundle, b as ReactiveMapOptions, c as ReactiveMapRetention, r as reactiveMap } from '../reactive-map-BVVPdvmi.js';
12
12
  export { AsyncSourceOpts, EventTargetLike, FromCronOptions, NodeInput, ReactiveCounterBundle, awaitSettled, cached, defer, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, nodeSignal, of, reactiveCounter, replay, share, shareReplay, throwError, toArray } from './sources.js';
13
13
  export { StorageHandle, sortJsonValue, stableJsonString } from './storage-core.js';
14
14
  export { AppendCursor, AppendLoadResult, AppendLogStorageOptions, AppendLogStorageTier, BaseStorageTier, Codec, KvStorageOptions, KvStorageTier, SnapshotStorageOptions, SnapshotStorageTier, StorageBackend, appendLogStorage, dictKv, dictSnapshot, jsonCodec, jsonCodecFor, kvStorage, memoryAppendLog, memoryBackend, memoryKv, memorySnapshot, snapshotStorage } from './storage-tiers.js';
15
- export { B as BudgetConstraint, a as BudgetGateOptions, b as budgetGate } from '../budget-gate-CmmVtasH.js';
16
- import '../node-BYInONRr.js';
17
- import '../meta-D8OyedKp.js';
15
+ import '../node-ClS5yC-B.js';
16
+ import '../meta-BgVAsg9j.js';
18
17
  import 'rxjs';
@@ -1 +1 @@
1
- import{a as jc,b as kc,c as tc,d as uc,e as Qc,f as Rc,g as Sc,h as Tc,i as Uc,j as Vc,k as Wc}from"../chunk-ZAJ7J7TO.js";import{a as nc,b as oc}from"../chunk-WZYB3JQS.js";import{b as Pc}from"../chunk-TSOYJ743.js";import{$ as hc,A as Ib,B as Jb,C as Kb,D as Lb,E as Mb,F as Nb,G as Ob,H as Pb,I as Qb,J as Rb,K as Sb,L as Tb,M as Ub,N as Vb,O as Wb,P as Xb,Q as Yb,R as Zb,S as _b,T as $b,U as ac,V as bc,W as cc,X as dc,Y as ec,Z as fc,_ as gc,a as oa,aa as ic,b as pa,ba as sc,c as kb,d as lb,e as mb,f as nb,g as ob,h as pb,i as qb,j as rb,k as sb,l as tb,m as ub,n as vb,o as wb,p as xb,q as yb,r as zb,s as Ab,t as Bb,u as Cb,v as Db,w as Eb,x as Fb,y as Gb,z as Hb}from"../chunk-CYOSWFT2.js";import{a as e,b as p,c as q,d as r,e as s,f as t,g as u,h as v,i as w,j as x,k as y,l as z}from"../chunk-4MKL6Q3K.js";import{b as pc,c as qc,d as rc,e as zc,f as Ac}from"../chunk-KNVCCBIU.js";import{a as Oc}from"../chunk-AI7QC7J6.js";import{a as vc,b as wc}from"../chunk-NNKJUORL.js";import{a as xc,b as yc}from"../chunk-KGKJCHEK.js";import{a as lc,b as mc}from"../chunk-TZQPPQEQ.js";import{a,b as aa}from"../chunk-5QDBSZBV.js";import{a as fa,b as ga,c as ha,d as ia,e as ja,f as ka,g as la,h as ma,i as na}from"../chunk-VXPLLA4P.js";import{a as d}from"../chunk-L6NSJVJZ.js";import{a as ca,b as da,c as ea}from"../chunk-TT4C7DXW.js";import{a as ba}from"../chunk-POXANAJ6.js";import"../chunk-SGS4OJGS.js";import{a as o}from"../chunk-ESMPEKEV.js";import{a as Dc,b as Ec,c as Fc,d as Gc,e as Hc,f as Ic,g as Jc,h as Kc,i as Lc,j as Mc,k as Nc}from"../chunk-D5RFJOZ2.js";import{a as Bc,b as Cc}from"../chunk-CE72X3WO.js";import{A as Qa,B as Ra,C as Sa,D as Ta,E as Ua,F as Va,G as Wa,I as Xa,J as Ya,K as Za,L as _a,M as $a,N as ab,O as bb,P as cb,Q as db,R as eb,S as fb,T as gb,U as hb,V as ib,W as jb,a as qa,b as ra,c as sa,d as ta,e as ua,f as va,g as wa,h as xa,i as ya,j as za,k as Aa,l as Ba,m as Ca,n as Da,o as Ea,p as Fa,q as Ga,r as Ha,s as Ia,t as Ja,u as Ka,v as La,w as Ma,x as Na,y as Oa,z as Pa}from"../chunk-AK5RHMC5.js";import{a as f,b as g,c as h,d as i,e as j,f as k,g as l,h as m,i as n}from"../chunk-4VVTGLXJ.js";import{A as Y,B as Z,C as _,D as $,a as b,b as c,c as A,d as B,e as C,f as D,g as E,h as F,i as G,j as H,k as I,l as J,m as K,n as L,o as M,p as N,q as O,r as P,s as Q,t as R,u as S,v as T,w as U,x as V,y as W,z as X}from"../chunk-L77I47VU.js";import"../chunk-35JTVPOX.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{q as CircuitOpenError,pc as ContentAddressedMissError,ga as DEFAULT_AUDIT_GUARD,f as NS_PER_MS,g as NS_PER_SEC,vc as NativeIndexBackend,xc as NativeListBackend,ca as NativeLogBackend,lc as NativeMapBackend,tc as NativePubSubBackend,u as RateLimiterOverflowError,o as ResettableTimer,x as TimeoutError,ja as appendAudit,Hc as appendLogStorage,Wa as audit,X as awaitSettled,e as budgetGate,Xa as buffer,Ya as bufferCount,_a as bufferTime,ia as bumpCursor,U as cached,qc as canonicalJson,kc as cascadingCache,jb as catchError,cc as checkpointToRedis,bc as checkpointToS3,r as circuitBreaker,Ha as combine,gb as combineLatest,La as concat,Pa as concatMap,h as constant,rc as contentAddressedStorage,ha as createAuditLog,Uc as createTransport,aa as createWatermarkController,Lb as csvRows,Ta as debounce,hb as debounceTime,Pc as decay,l as decorrelatedJitter,P as defer,Sa as delay,Tc as deserializeError,Mc as dictKv,Nc as dictSnapshot,oc as distill,Fa as distinctUntilChanged,d as domainMeta,Ba as elementAt,M as empty,A as escapeRegexChar,Oa as exhaustMap,j as exponential,pa as externalBundle,oa as externalProducer,y as fallback,k as fibonacci,ra as filter,Aa as find,ya as first,V as firstValueFrom,W as firstWhere,Ra as flatMap,Q as forEach,K as fromAny,J as fromAsyncIter,Kb as fromCSV,Ob as fromClickHouseWatch,F as fromCron,hc as fromDrizzle,G as fromEvent,nb as fromHTTP,vb as fromHTTPPoll,ub as fromHTTPStream,H as fromIter,Gb as fromKafka,ic as fromKysely,yb as fromMCP,Rb as fromNATS,Nb as fromNDJSON,zb as fromOTel,gc as fromPrisma,Eb as fromPrometheus,I as fromPromise,Pb as fromPulsar,Tb as fromRabbitMQ,E as fromRaf,Ib as fromRedisStream,tb as fromSSE,dc as fromSqlite,ec as fromSqliteCursor,Cb as fromStatsD,Ab as fromSyslog,D as fromTimer,lb as fromWebSocket,xb as fromWebSocketReconnect,mb as fromWebhook,B as globToRegExp,bb as interval,Dc as jsonCodec,Ec as jsonCodecFor,_ as keepalive,Ic as kvStorage,za as last,ka as lightMutation,i as linear,jc as lru,sc as makeHttpError,qa as map,C as matchesAnyPattern,c as matchesCron,Kc as memoryAppendLog,Fc as memoryBackend,Lc as memoryKv,Jc as memorySnapshot,Ja as merge,Qa as mergeMap,ea as mergeReactiveLogs,Rc as nameToSignal,Mb as ndjsonRows,N as never,Y as nodeSignal,L as of,Da as onFirstData,Ga as pairwise,b as parseCron,Fb as parsePrometheusText,sb as parseSSEStream,Db as parseStatsD,Bb as parseSyslog,db as pausable,uc as pubsub,Ma as race,v as rateLimiter,$ as reactiveCounter,wc as reactiveIndex,yc as reactiveList,da as reactiveLog,mc as reactiveMap,kb as reactiveSink,ta as reduce,ma as registerCursor,na as registerCursorMap,cb as repeat,T as replay,eb as rescue,n as resolveBackoffPreset,p as retry,Va as sample,sa as scan,Sc as serializeError,S as share,Z as shareReplay,Qc as signalToName,zc as singleFromAny,Ac as singleNodeFromAny,va as skip,Gc as snapshotStorage,Bc as sortJsonValue,Cc as stableJsonString,Oc as stratify,Na as switchMap,ua as take,xa as takeUntil,wa as takeWhile,Ca as tap,Ea as tapFirst,Ua as throttle,ib as throttleTime,O as throwError,z as timeout,R as toArray,Wb as toCSV,Xb as toClickHouse,Vb as toFile,ob as toHTTP,Hb as toKafka,$b as toLoki,_b as toMongo,Sb as toNATS,a as toObservable,Zb as toPostgres,Qb as toPulsar,Ub as toRabbitMQ,rb as toReadableStream,Jb as toRedisStream,Yb as toS3,pb as toSSE,qb as toSSEBytes,fc as toSqlite,ac as toTempo,wb as toWebSocket,t as tokenBucket,ba as topologyDiff,fa as tryIncrementBounded,fb as valve,nc as verifiable,ab as window,Za as windowCount,$a as windowTime,s as withBreaker,Ia as withLatestFrom,m as withMaxAttempts,w as withStatus,Vc as workerBridge,Wc as workerSelf,la as wrapMutation,Ka as zip};
1
+ import{a as jc,b as kc,c as tc,d as uc,e as Qc,f as Rc,g as Sc,h as Tc,i as Uc,j as Vc,k as Wc}from"../chunk-S3EEIPO7.js";import{a as nc,b as oc}from"../chunk-6HOSXQKF.js";import{b as Pc}from"../chunk-TSOYJ743.js";import{$ as hc,A as Ib,B as Jb,C as Kb,D as Lb,E as Mb,F as Nb,G as Ob,H as Pb,I as Qb,J as Rb,K as Sb,L as Tb,M as Ub,N as Vb,O as Wb,P as Xb,Q as Yb,R as Zb,S as _b,T as $b,U as ac,V as bc,W as cc,X as dc,Y as ec,Z as fc,_ as gc,a as ib,aa as ic,b as jb,ba as sc,c as kb,d as lb,e as mb,f as nb,g as ob,h as pb,i as qb,j as rb,k as sb,l as tb,m as ub,n as vb,o as wb,p as xb,q as yb,r as zb,s as Ab,t as Bb,u as Cb,v as Db,w as Eb,x as Fb,y as Gb,z as Hb}from"../chunk-O2BLLH7M.js";import{a as e,d as ka,e as la,f as ma,g as na,h as oa,i as pa,j as qa,k as ra,l as sa,m as ta,n as ua}from"../chunk-VNC3TMVY.js";import{b as pc,c as qc,d as rc,e as zc,f as Ac}from"../chunk-XG62INFA.js";import{a as Oc}from"../chunk-4YAN45KM.js";import{a,b as Xa}from"../chunk-5QDBSZBV.js";import{a as $a,b as ab,c as bb,d as cb,e as db,f as eb,g as fb,h as gb,i as hb}from"../chunk-FDQGFWLF.js";import{a as d}from"../chunk-L6NSJVJZ.js";import"../chunk-KVV66NN2.js";import"../chunk-3G5U5QNE.js";import"../chunk-C72GO4IZ.js";import{e as f}from"../chunk-626TESAC.js";import{a as g}from"../chunk-ESMPEKEV.js";import{a as Dc,b as Ec,c as Fc,d as Gc,e as Hc,f as Ic,g as Jc,h as Kc,i as Lc,j as Mc,k as Nc}from"../chunk-D5RFJOZ2.js";import{a as Bc,b as Cc}from"../chunk-CE72X3WO.js";import{A as Q,B as R,C as S,D as T,E as U,F as V,G as W,I as X,J as Y,K as Z,L as _,M as $,N as aa,O as ba,P as ca,Q as da,R as ea,S as fa,T as ga,U as ha,V as ia,W as ja,a as q,b as r,c as s,d as t,e as u,f as v,g as w,h as x,i as y,j as z,k as A,l as B,m as C,n as D,o as E,p as F,q as G,r as H,s as I,t as J,u as K,v as L,w as M,x as N,y as O,z as P}from"../chunk-VOPGGIL7.js";import{a as h,b as i,c as j,d as k,e as l,f as m,g as n,h as o,i as p}from"../chunk-4VVTGLXJ.js";import"../chunk-35JTVPOX.js";import{a as vc,b as wc}from"../chunk-NNKJUORL.js";import{a as xc,b as yc}from"../chunk-KGKJCHEK.js";import{a as lc,b as mc}from"../chunk-TZQPPQEQ.js";import{a as Ya,b as Za,c as _a}from"../chunk-JQFH2DV6.js";import{A as Ta,B as Ua,C as Va,D as Wa,a as b,b as c,c as va,d as wa,e as xa,f as ya,g as za,h as Aa,i as Ba,j as Ca,k as Da,l as Ea,m as Fa,n as Ga,o as Ha,p as Ia,q as Ja,r as Ka,s as La,t as Ma,u as Na,v as Oa,w as Pa,x as Qa,y as Ra,z as Sa}from"../chunk-V5A7M7RJ.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{la as CircuitOpenError,pc as ContentAddressedMissError,ab as DEFAULT_AUDIT_GUARD,h as NS_PER_MS,i as NS_PER_SEC,vc as NativeIndexBackend,xc as NativeListBackend,Ya as NativeLogBackend,lc as NativeMapBackend,tc as NativePubSubBackend,pa as RateLimiterOverflowError,g as ResettableTimer,sa as TimeoutError,db as appendAudit,Hc as appendLogStorage,W as audit,Sa as awaitSettled,e as budgetGate,X as buffer,Y as bufferCount,_ as bufferTime,cb as bumpCursor,Pa as cached,qc as canonicalJson,kc as cascadingCache,ja as catchError,cc as checkpointToRedis,bc as checkpointToS3,ma as circuitBreaker,H as combine,ga as combineLatest,L as concat,P as concatMap,j as constant,rc as contentAddressedStorage,bb as createAuditLog,Uc as createTransport,Xa as createWatermarkController,Lb as csvRows,T as debounce,ha as debounceTime,Pc as decay,n as decorrelatedJitter,Ka as defer,S as delay,Tc as deserializeError,Mc as dictKv,Nc as dictSnapshot,oc as distill,F as distinctUntilChanged,d as domainMeta,B as elementAt,Ha as empty,va as escapeRegexChar,O as exhaustMap,l as exponential,jb as externalBundle,ib as externalProducer,ta as fallback,m as fibonacci,r as filter,A as find,y as first,Qa as firstValueFrom,Ra as firstWhere,R as flatMap,La as forEach,Fa as fromAny,Ea as fromAsyncIter,Kb as fromCSV,Ob as fromClickHouseWatch,Aa as fromCron,hc as fromDrizzle,Ba as fromEvent,nb as fromHTTP,vb as fromHTTPPoll,ub as fromHTTPStream,Ca as fromIter,Gb as fromKafka,ic as fromKysely,yb as fromMCP,Rb as fromNATS,Nb as fromNDJSON,zb as fromOTel,gc as fromPrisma,Eb as fromPrometheus,Da as fromPromise,Pb as fromPulsar,Tb as fromRabbitMQ,za as fromRaf,Ib as fromRedisStream,tb as fromSSE,dc as fromSqlite,ec as fromSqliteCursor,Cb as fromStatsD,Ab as fromSyslog,ya as fromTimer,lb as fromWebSocket,xb as fromWebSocketReconnect,mb as fromWebhook,wa as globToRegExp,ba as interval,Dc as jsonCodec,Ec as jsonCodecFor,Va as keepalive,Ic as kvStorage,z as last,eb as lightMutation,k as linear,jc as lru,sc as makeHttpError,q as map,xa as matchesAnyPattern,c as matchesCron,Kc as memoryAppendLog,Fc as memoryBackend,Lc as memoryKv,Jc as memorySnapshot,J as merge,Q as mergeMap,_a as mergeReactiveLogs,Rc as nameToSignal,Mb as ndjsonRows,Ia as never,Ta as nodeSignal,Ga as of,D as onFirstData,G as pairwise,b as parseCron,Fb as parsePrometheusText,sb as parseSSEStream,Db as parseStatsD,Bb as parseSyslog,da as pausable,uc as pubsub,M as race,qa as rateLimiter,Wa as reactiveCounter,wc as reactiveIndex,yc as reactiveList,Za as reactiveLog,mc as reactiveMap,kb as reactiveSink,t as reduce,gb as registerCursor,hb as registerCursorMap,ca as repeat,Oa as replay,ea as rescue,p as resolveBackoffPreset,ka as retry,V as sample,s as scan,Sc as serializeError,Na as share,Ua as shareReplay,Qc as signalToName,zc as singleFromAny,Ac as singleNodeFromAny,v as skip,Gc as snapshotStorage,Bc as sortJsonValue,Cc as stableJsonString,Oc as stratify,N as switchMap,u as take,x as takeUntil,w as takeWhile,C as tap,E as tapFirst,U as throttle,ia as throttleTime,Ja as throwError,ua as timeout,Ma as toArray,Wb as toCSV,Xb as toClickHouse,Vb as toFile,ob as toHTTP,Hb as toKafka,$b as toLoki,_b as toMongo,Sb as toNATS,a as toObservable,Zb as toPostgres,Qb as toPulsar,Ub as toRabbitMQ,rb as toReadableStream,Jb as toRedisStream,Yb as toS3,pb as toSSE,qb as toSSEBytes,fc as toSqlite,ac as toTempo,wb as toWebSocket,oa as tokenBucket,f as topologyDiff,$a as tryIncrementBounded,fa as valve,nc as verifiable,aa as window,Z as windowCount,$ as windowTime,na as withBreaker,I as withLatestFrom,o as withMaxAttempts,ra as withStatus,Vc as workerBridge,Wc as workerSelf,fb as wrapMutation,K as zip};
@@ -1,2 +1,2 @@
1
- "use strict";var fe=Object.defineProperty;var vt=Object.getOwnPropertyDescriptor;var wt=Object.getOwnPropertyNames;var _t=Object.prototype.hasOwnProperty;var E=(n,e)=>()=>(n&&(e=n(n=0)),e);var Nt=(n,e)=>{for(var t in e)fe(n,t,{get:e[t],enumerable:!0})},xt=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of wt(e))!_t.call(n,o)&&o!==t&&fe(n,o,{get:()=>e[o],enumerable:!(r=vt(e,o))||r.enumerable});return n};var kt=n=>xt(fe({},"__esModule",{value:!0}),n);function K(){return Date.now()*1e6}var te=E(()=>{"use strict"});var L,v,R,M,V,B,X,P,N,g,$,pe,Et,he,St,Ot,me,Ce,De,Ie,ge,G=E(()=>{"use strict";L=Symbol.for("graphrefly/START"),v=Symbol.for("graphrefly/DATA"),R=Symbol.for("graphrefly/DIRTY"),M=Symbol.for("graphrefly/RESOLVED"),V=Symbol.for("graphrefly/INVALIDATE"),B=Symbol.for("graphrefly/PAUSE"),X=Symbol.for("graphrefly/RESUME"),P=Symbol.for("graphrefly/TEARDOWN"),N=Symbol.for("graphrefly/COMPLETE"),g=Symbol.for("graphrefly/ERROR"),$=Object.freeze([R]),pe=Object.freeze([M]),Et=Object.freeze([V]),he=Object.freeze([L]),St=Object.freeze([N]),Ot=Object.freeze([P]),me=Object.freeze([$]),Ce=Object.freeze([pe]),De=Object.freeze([Et]),Ie=Object.freeze([St]),ge=Object.freeze([Ot])});function Fe(n){n.registerCodec(At)}var At,Le=E(()=>{"use strict";At={name:"json",version:1,contentType:"application/json",encode(n){let e=JSON.stringify(n);return new TextEncoder().encode(e)},decode(n,e){let t=new TextDecoder().decode(n);return JSON.parse(t)}}});function ne(n){if(n==null)return Rt;let{type:e,id:t,...r}=n;return{type:e??"system",id:t??"",...r}}var Rt,Pe=E(()=>{"use strict";Rt={type:"system",id:""}});function Ve(){return Te>0||Mt}function Be(){return Te>0}function We(n){Te>0?Ct.push(n):n()}function re(n,e,t){if(e.length===0)return;if(e.length===1){let d=t(e[0][0]);if(d<3||!Ve()){n(e);return}(d>=5?He:d===4?Ue:Ge).push(()=>n(e));return}let r=e.length,o=r,s=r,a=r,i=0;for(;i<r&&t(e[i][0])<3;)i++;for(o=i;i<r&&t(e[i][0])===3;)i++;for(s=i;i<r&&t(e[i][0])===4;)i++;a=i;let u=Ve();if(o>0){let d=e.slice(0,o);n(d)}if(s>o){let d=e.slice(o,s);u?Ge.push(()=>n(d)):n(d)}if(a>s){let d=e.slice(s,a);u?Ue.push(()=>n(d)):n(d)}if(r>a){let d=e.slice(a,r);u?He.push(()=>n(d)):n(d)}}var Te,Mt,Ge,Ue,He,Ct,je=E(()=>{"use strict";Te=0,Mt=!1,Ge=[],Ue=[],He=[],Ct=[]});function Ke(n){n.registerMessageType(L,{tier:0,wireCrossing:!1}),n.registerMessageType(R,{tier:1,wireCrossing:!1}),n.registerMessageType(V,{tier:1,wireCrossing:!1,metaPassthrough:!1}),n.registerMessageType(B,{tier:2,wireCrossing:!1}),n.registerMessageType(X,{tier:2,wireCrossing:!1}),n.registerMessageType(v,{tier:3,wireCrossing:!0}),n.registerMessageType(M,{tier:3,wireCrossing:!0}),n.registerMessageType(N,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(g,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(P,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var oe,$e=E(()=>{"use strict";G();oe=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_rigorRecorder;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=t=>{let r=this._messageTypes.get(t);return r!=null?r.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}get rigorRecorder(){return this._rigorRecorder}set rigorRecorder(e){this._rigorRecorder=e}registerMessageType(e,t){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:t.tier,wireCrossing:t.wireCrossing??t.tier>=3,metaPassthrough:t.metaPassthrough??!0}),this}messageTier(e){let t=this._messageTypes.get(e);return t!=null?t.tier:1}isWireCrossing(e){let t=this._messageTypes.get(e);return t!=null?t.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let t=this._messageTypes.get(e);return t!=null?t.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var z,ze=E(()=>{"use strict";z=class extends Error{actor;action;nodeName;constructor(e,t){super(t??`GuardDenied: action "${String(e.action)}" denied for actor type "${String(e.actor.type)}"`),this.name="GuardDenied",this.actor=e.actor,this.action=e.action,this.nodeName=e.nodeName}get node(){return this.nodeName}}});function be(n){if(n===void 0)return null;if(typeof n=="number"){if(!Number.isFinite(n))throw new TypeError(`Cannot hash non-finite number: ${n}`);if(Number.isInteger(n)&&!Number.isSafeInteger(n))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${n}. Cross-language cid parity is not guaranteed for unsafe integers.`);return n}if(typeof n=="string"||typeof n=="boolean"||n===null)return n;if(Array.isArray(n))return n.map(be);if(typeof n=="object"&&n!==null){let e={};for(let t of Object.keys(n).sort())e[t]=be(n[t]);return e}return null}function Ft(n){let e=It.encode(n),t=e.length,r=t*8,o=t+9+63&-64,s=new Uint8Array(o);s.set(e),s[t]=128;let a=new DataView(s.buffer);a.setUint32(o-4,r>>>0,!1),a.setUint32(o-8,Math.floor(r/4294967296)>>>0,!1);let i=1779033703,u=3144134277,d=1013904242,l=2773480762,c=1359893119,p=2600822924,f=528734635,h=1541459225,T=new Uint32Array(64),y=(m,x)=>m>>>x|m<<32-x;for(let m=0;m<o;m+=64){for(let _=0;_<16;_++)T[_]=a.getUint32(m+_*4,!1);for(let _=16;_<64;_++){let I=T[_-15],j=T[_-2],J=y(I,7)^y(I,18)^I>>>3,H=y(j,17)^y(j,19)^j>>>10;T[_]=T[_-16]+J+T[_-7]+H>>>0}let x=i,w=u,k=d,C=l,O=c,F=p,Y=f,D=h;for(let _=0;_<64;_++){let I=y(O,6)^y(O,11)^y(O,25),j=O&F^~O&Y,J=D+I+j+Dt[_]+T[_]>>>0,H=y(x,2)^y(x,13)^y(x,22),ce=x&w^x&k^w&k,yt=H+ce>>>0;D=Y,Y=F,F=O,O=C+J>>>0,C=k,k=w,w=x,x=J+yt>>>0}i=i+x>>>0,u=u+w>>>0,d=d+k>>>0,l=l+C>>>0,c=c+O>>>0,p=p+F>>>0,f=f+Y>>>0,h=h+D>>>0}let b=m=>m.toString(16).padStart(8,"0");return b(i)+b(u)+b(d)+b(l)+b(c)+b(p)+b(f)+b(h)}function ye(n){let e=be(n??null),t=JSON.stringify(e);return Ft(t).slice(0,16)}function Lt(){let n=globalThis.crypto;if(n?.randomUUID)return n.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),t=e()+e()+e()+e();return`${t.slice(0,8)}-${t.slice(8,12)}-4${t.slice(13,16)}-${(parseInt(t.slice(16,17),16)&3|8).toString(16)}${t.slice(17,20)}-${t.slice(20,32)}`}function ve(n,e,t){let r=t?.id??Lt();if(n===0)return{id:r,version:0};let s=(t?.hash??ye)(e);return{id:r,version:0,cid:s,prev:null}}function qe(n,e,t){n.version+=1,"cid"in n&&(n.prev=n.cid,n.cid=t(e))}var Dt,It,Ye=E(()=>{"use strict";Dt=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),It=new TextEncoder});function Ze(n){return{node:n,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function we(n){n.prevData=void 0,n.dirty=!1,n.involvedThisWave=!1,n.dataBatch.length=0,n.terminal=void 0}function se(n){return n.length===0?n:typeof n[0]=="symbol"?[n]:n}function ae(n,e,t){let r=Qe(n)?n:[],o=typeof n=="function"?n:typeof e=="function"?e:void 0,s={};return Qe(n)?s=(_e(e)?e:t)??{}:_e(n)?s=n:s=(_e(e)?e:t)??{},new ie(r,o,s)}var Je,Xe,Pt,Gt,Ne,ie,Qe,_e,xe=E(()=>{"use strict";Le();Pe();je();te();$e();ze();G();Ye();Je=()=>{},Xe=100;Pt=(n,e,t,r)=>{t.direction==="down-in"&&n._onDepMessage(t.depIndex,e)},Gt=(n,e,t,r)=>{let o=n;if(o._status==="completed"||o._status==="errored")return;let s=o._cached,a=s===void 0?[he]:[he,[v,s]];o._status==="dirty"&&a.push($),re(e,a,o._config.tierOf)},Ne=new oe({onMessage:Pt,onSubscribe:Gt});Ke(Ne);Fe(Ne);ie=class n{_optsName;_describeKind;meta;_hasMeta;_config;_deps;_sinks=null;_sinkCount=0;_cached;_status;_cleanup;_store={};_waveHasNewData=!1;_hasNewTerminal=!1;_hasCalledFnOnce=!1;_paused=!1;_pendingWave=!1;_isExecutingFn=!1;_pendingRerun=!1;_rerunDepth=0;_dirtyDepCount=0;_batchPendingMessages=null;_pauseLocks=null;_pauseBuffer=null;_fn;_equals;_resubscribable;_resetOnTeardown;_autoComplete;_autoError;_pausable;_partial;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,t,r){this._config=r.config??Ne,this._config.onMessage,this._optsName=r.name,this._describeKind=r.describeKind,this._equals=r.equals??Object.is,this._resubscribable=r.resubscribable??!1,this._resetOnTeardown=r.resetOnTeardown??!1,this._autoComplete=r.completeWhenDepsComplete??!0,this._autoError=r.errorWhenDepsError??!0,this._pausable=r.pausable??!0,this._guard=r.guard,this._fn=t,this._partial=r.partial??!1,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&t==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=r.versioningHash??this._config.defaultHashFn??ye;let o=r.versioning??this._config.defaultVersioning;this._versioningLevel=o,this._versioning=o!=null?ve(o,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(Ze);let s={};for(let[i,u]of Object.entries(r.meta??{})){let d={initial:u,name:`${r.name??"node"}:meta:${i}`,describeKind:"state",config:this._config};r.guard!=null&&(d.guard=r.guard),s[i]=new n([],void 0,d)}Object.freeze(s),this.meta=s,this._hasMeta=Object.keys(s).length>0;let a=this;this._actions={emit(i){a._emit([[v,i]])},down(i){a._emit(se(i))},up(i){a._emitUp(se(i))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,t){if(this._isExecutingFn)throw new Error(`Node "${this.name}": _applyVersioning cannot run mid-fn \u2014 call it outside of \`_execFn\` (typically at graph setup time before the first subscribe).`);let r=this._versioningLevel;if(r!=null&&e<=r)return;let o=t?.hash??this._hashFn;o!==this._hashFn&&(this._hashFn=o);let s=this._cached===void 0?void 0:this._cached,a=this._versioning,i=a?.id??t?.id,u=a?.version??0,d=ve(e,s,{id:i,hash:o});d.version=u,this._versioning=d,this._versioningLevel=e}_setInspectorHook(e){return e==null?()=>{}:(this._inspectorHooks==null&&(this._inspectorHooks=new Set),this._inspectorHooks.add(e),()=>{this._inspectorHooks?.delete(e),this._inspectorHooks?.size===0&&(this._inspectorHooks=void 0)})}_pushGuard(e){return this._extraGuards==null&&(this._extraGuards=new Set),this._extraGuards.add(e),()=>{this._extraGuards?.delete(e),this._extraGuards?.size===0&&(this._extraGuards=void 0)}}allowsObserve(e){if(this._guard==null&&this._extraGuards==null)return!0;let t=ne(e);if(this._guard!=null&&!this._guard(t,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(t,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let t=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!t&&!r)return;let o=ne(e?.actor),s=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(o,s))throw new z({actor:o,action:s,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(o,s))throw new z({actor:o,action:s,nodeName:this.name})}this._lastMutation={actor:o,timestamp_ns:K()}}down(e,t){let r=se(e);r.length!==0&&(this._checkGuard(t),this._emit(r))}emit(e,t){this._checkGuard(t),this._emit([[v,e]])}up(e,t){if(this._deps.length===0)return;let r=se(e);if(r.length===0)return;this._checkGuard(t);let o=t??{internal:!0};this._validateUpTiers(r);for(let s of this._deps)s.node.up?.(r,o)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let t of this._deps)t.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let t=this._config.tierOf;for(let r of e){let o=t(r[0]);if(o===3||o===4)throw new Error(`Node "${this.name}": tier-${o} messages cannot flow up \u2014 DATA/RESOLVED/COMPLETE/ERROR are downstream-only. Use \`down(...)\` for value delivery; \`up(...)\` is for control signals (DIRTY, INVALIDATE, PAUSE, RESUME, TEARDOWN).`)}}subscribe(e,t){if(t!=null&&this._guard!=null){let u=ne(t);if(!this._guard(u,"observe"))throw new z({actor:u,action:"observe",nodeName:this.name})}let o=this._isTerminal&&this._resubscribable;if(o){this._cached=void 0,this._status="sentinel",this._store={},this._hasCalledFnOnce=!1,this._waveHasNewData=!1,this._hasNewTerminal=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._isExecutingFn=!1,this._rerunDepth=0,this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null;for(let u of this._deps)we(u);if(this._partial===!1){for(let u of this._deps)if(u.prevData!==void 0||u.dataBatch.length!==0||u.terminal!==void 0||u.dirty)throw new Error(`resubscribable-reset invariant: DepRecord not fully reset for node ${this._optsName??"(anonymous)"}`)}}this._sinkCount+=1;let s;try{s=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:o},this._actions)}catch(u){throw this._sinkCount-=1,u}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let a=this._isTerminal;if(this._sinkCount===1&&!a)try{this._activate()}catch(u){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof s=="function")try{s()}catch{}throw u}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let i=!1;return()=>{i||(i=!0,this._sinkCount-=1,this._removeSink(e),typeof s=="function"&&s(),this._sinks==null&&this._deactivate())}}_removeSink(e){if(this._sinks===e)this._sinks=null;else if(this._sinks!=null&&typeof this._sinks!="function")if(this._sinks.delete(e),this._sinks.size===1){let[t]=this._sinks;this._sinks=t}else this._sinks.size===0&&(this._sinks=null)}_activate(){if(this._deps.length===0){this._fn&&this._execFn();return}this._dirtyDepCount=0;let e=this._deps.length,t=0;try{for(let r=0;r<e;r++){let o=r,s=this._deps[r];s.unsub=Je,s.unsub=s.node.subscribe(a=>{if(s.unsub===null)return;let i=this._config.tierOf,u=!1;for(let d of a)i(d[0])>=3&&(u=!0),this._config.onMessage(this,d,{direction:"down-in",depIndex:o},this._actions);u&&this._maybeRunFnOnSettlement()}),t++}}catch(r){this._deps[t].unsub=null;for(let o=0;o<t;o++){let s=this._deps[o];if(s.unsub!=null){let a=s.unsub;s.unsub=null;try{a()}catch{}we(s)}}throw this._dirtyDepCount=0,r}}_addDep(e){for(let o=0;o<this._deps.length;o++)if(this._deps[o].node===e)return o;let t=this._deps.length,r=Ze(e);if(this._deps.push(r),this._sinks==null)return t;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(me),r.unsub=Je;try{r.unsub=e.subscribe(o=>{if(r.unsub===null)return;let s=this._config.tierOf,a=!1;for(let i of o)s(i[0])>=3&&(a=!0),this._config.onMessage(this,i,{direction:"down-in",depIndex:t},this._actions);a&&this._maybeRunFnOnSettlement()})}catch(o){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,o}return t}_deactivate(e=!1){let t=this._cleanup;if(this._cleanup=void 0,typeof t=="function")try{t()}catch(r){this._emit([[g,this._wrapFnError("cleanup threw",r)]])}else if(t!=null&&typeof t=="object"){let r=t.deactivate;if(typeof r=="function")try{r()}catch(o){this._emit([[g,this._wrapFnError("cleanup.deactivate threw",o)]])}}for(let r of this._deps){if(r.unsub!=null){let o=r.unsub;r.unsub=null;try{o()}catch{}}we(r)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,t){let r=this._deps[e],o=t[0];if(this._inspectorHooks!=null){let s={kind:"dep_message",depIndex:e,message:t};for(let a of this._inspectorHooks)a(s)}if(o!==L){if(o===R){this._depDirtied(r);return}if(o===V){if(this._depInvalidated(r),this._cached===void 0)return;this._emit(De);return}if(o===B||o===X){this._emit([t]);return}if(o===P){this._emit(ge);return}if(o===v)this._depSettledAsData(r,t[1]);else if(o===M)this._depSettledAsResolved(r);else if(o===N)this._depSettledAsTerminal(r,!0);else if(o===g)this._depSettledAsTerminal(r,t[1]);else{this._emit([t]);return}if(!this._fn){(o===v||o===M)&&this._emit([t]),(o===N||o===g)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(me))}_depSettledAsData(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(t),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=t,e.involvedThisWave=!0,this._hasNewTerminal=!0}_depInvalidated(e){e.prevData=void 0,e.terminal=void 0,e.dataBatch.length=0,e.dirty?e.involvedThisWave=!1:(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++)}_maybeRunFnOnSettlement(){if(!(this._isTerminal&&!this._resubscribable)&&!(this._dirtyDepCount>0)){if(!this._partial&&!this._hasCalledFnOnce)for(let e=0;e<this._deps.length;e++){let t=this._deps[e];if(t.dataBatch.length===0&&t.prevData===void 0&&t.terminal===void 0){this._maybeAutoTerminalAfterWave();return}}if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(Ce),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(t=>t.terminal!==void 0&&t.terminal!==!0);if(e!=null){this._autoError&&this._emit([[g,e.terminal]]);return}this._autoComplete&&this._deps.every(t=>t.terminal!==void 0)&&this._emit(Ie)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(a){this._emit([[g,this._wrapFnError("cleanup threw",a)]]);return}}else if(e!=null&&typeof e=="object"){let a=e.beforeRun;if(typeof a=="function"){e.beforeRun=void 0;try{a()}catch(i){this._emit([[g,this._wrapFnError("cleanup.beforeRun threw",i)]]);return}}}let t=this._deps.map(a=>a.involvedThisWave?a.dataBatch.length>0?[...a.dataBatch]:[]:void 0),r=this._deps.map(a=>a.prevData);for(let a=0;a<this._deps.length;a++){let i=t[a];i!=null&&i.length>0&&(this._deps[a].prevData=i[i.length-1])}let o=this._deps.map(a=>a.terminal),s={prevData:r,terminalDeps:o,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let a={kind:"run",batchData:t,prevData:r};for(let i of this._inspectorHooks)i(a)}this._isExecutingFn=!0;try{let a=this._fn(t,this._actions,s);if(typeof a=="function")this._cleanup=a;else if(a!=null&&typeof a=="object"){let i=a;(typeof i.beforeRun=="function"||typeof i.deactivate=="function"||typeof i.invalidate=="function")&&(this._cleanup=a)}}catch(a){this._emit([[g,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>Xe?(this._rerunDepth=0,this._emit([[g,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${Xe} \u2014 likely a reactive cycle`)]])):this._maybeRunFnOnSettlement()):this._rerunDepth=0,this._clearWaveFlags()}}_clearWaveFlags(){this._waveHasNewData=!1,this._hasNewTerminal=!1;for(let e of this._deps)e.involvedThisWave=!1,e.dataBatch.length=0}_wrapFnError(e,t){let r=t instanceof Error?t.message:String(t);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:t})}_frameBatch(e){let t=this._config.tierOf;if(e.length===1)return t(e[0][0])===3&&this._status!=="dirty"?[$,e[0]]:e;let r=!0,o=!1,s=!1,a=-1;for(let u of e){let d=t(u[0]);d<a&&(r=!1),d===3&&(o=!0),u[0]===R&&(s=!0),a=d}let i=e;if(!r){let u=e.map((d,l)=>({m:d,i:l,tier:t(d[0])}));u.sort((d,l)=>d.tier-l.tier||d.i-l.i),i=u.map(d=>d.m)}if(o&&!s&&this._status!=="dirty"){let u=0;for(;u<i.length&&t(i[u][0])===0;)u++;return u===0?[$,...i]:[...i.slice(0,u),$,...i.slice(u)]}return i}_emit(e){if(e.length===0)return;for(let i=0;i<e.length;i++){let u=e[i];if(u[0]===g&&u[1]===void 0)throw new TypeError('[ERROR, payload] requires a non-undefined payload (spec \xA71.2). Pass an Error object or domain tag instead \u2014 e.g. node.down([[ERROR, new Error("reason")]])')}let t=e;if(this._isTerminal&&!this._resubscribable){let i=e.filter(u=>u[0]===P||u[0]===V);if(i.length===0)return;t=i}t=this._frameBatch(t);let o=null;for(let i=0;i<t.length;i++){let u=t[i],d=u[0];if(d!==B&&d!==X){o?.push(u);continue}if(u.length<2)throw new Error(`Node "${this.name}": [[${d===B?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let l=!0;if(this._pausable!==!1){let c=u[1];if(d===B)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(c),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(c))l=!1;else if(this._pauseLocks.delete(c),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let p=this._pauseBuffer;this._pauseBuffer=[],this._emit(p)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}l?o?.push(u):o==null&&(o=t.slice(0,i))}if(o!=null){if(o.length===0)return;t=o}if(this._hasMeta&&t.some(i=>i[0]===P))for(let i of Object.keys(this.meta))try{this.meta[i]._emit(ge)}catch{}let{finalMessages:s,equalsError:a}=this._updateState(t);if(s.length>0&&this._config.inspectorEnabled){let i=this._config.globalInspector;if(i!=null)try{i({kind:"emit",node:this,messages:s})}catch{}}if(s.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let i=this._config.tierOf,u=[];for(let d of s)i(d[0])===3?this._pauseBuffer.push(d):u.push(d);u.length>0&&this._dispatchOrAccumulate(u)}else this._dispatchOrAccumulate(s);a!=null&&this._emit([[g,a]])}_updateState(e){let t=this._config.tierOf,r,o,s=-1,a=0;for(let l of e)t(l[0])===3&&a++;let i=a<=1,u=-1;if(this._versioning!=null&&a>1){for(let l=e.length-1;l>=0;l--)if(e[l][0]===v){u=l;break}}for(let l=0;l<e.length;l++){let c=e[l],p=c[0];if(p===v){if(c.length>=2){let f=!1;if(i&&this._cached!==void 0)try{f=this._equals(this._cached,c[1])}catch(h){o=this._wrapFnError("equals threw",h),s=l;break}if(f){r==null&&(r=e.slice(0,l)),r.push(pe),this._status="resolved";continue}this._cached=c[1],this._versioning!=null&&(u<0||l===u)&&qe(this._versioning,c[1],this._hashFn)}this._status="settled",r?.push(c)}else if(r?.push(c),p===R)this._status="dirty";else if(p===M)this._status="resolved";else if(p===N){this._status="completed";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"completed",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===g){this._status="errored";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"errored",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===V){if(this._cached!==void 0){let h=this._config.rigorRecorder;if(h!=null)try{h.onNonVacuousInvalidate(this,this._cached)}catch{}}this._cached=void 0,this._status="dirty";let f=this._cleanup;if(typeof f=="function"){this._cleanup=void 0;try{f()}catch{}}else if(f!=null&&typeof f=="object"){let h=f.invalidate;if(typeof h=="function")try{h()}catch{}}}else p===P&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let d=s>=0?r??e.slice(0,s):r??e;return o!=null?{finalMessages:d,equalsError:o}:{finalMessages:d}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let t=[...this._sinks];for(let r of t)r(e)};_dispatchOrAccumulate(e){if(Be()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],We(()=>this._flushBatchPending()));for(let t of e)this._batchPendingMessages.push(t);return}re(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let t=this._frameBatch(e);re(this._deliverToSinks,t,this._config.tierOf)}},Qe=n=>Array.isArray(n),_e=n=>typeof n=="object"&&n!=null&&!Array.isArray(n)});function A(n,e){return ae((r,o,s)=>n(o,s)??void 0,{describeKind:"producer",...e})}var Z=E(()=>{"use strict";xe()});function et(n,e){let t={factory:n};return e!==void 0&&(t.factoryArgs=e),t}var tt=E(()=>{"use strict"});function de(n){return{describeKind:"producer",...n}}function Ut(n){return/[\\^$+?.()|[\]{}]/.test(n)?`\\${n}`:n}function q(n){let e="^";for(let t=0;t<n.length;t+=1){let r=n[t];if(r==="*"){n[t+1]==="*"?(e+=".*",t+=1):e+="[^/]*";continue}e+=Ut(r)}return e+="$",new RegExp(e)}function U(n,e){for(let t of e)if(t.test(n))return!0;return!1}function nt(n,e){let{signal:t,period:r,...o}=e??{};return A(s=>{let a=!1,i=0,u,d,l=()=>{a=!0,u!==void 0&&clearTimeout(u),d!==void 0&&clearInterval(d),t?.removeEventListener("abort",p)},c=()=>{a||(r!=null?(s.emit(i++),d=setInterval(()=>{a||s.emit(i++)},r)):(a=!0,t?.removeEventListener("abort",p),s.emit(i++),s.down([[N]])))},p=()=>{a||(l(),s.down([[g,t.reason]]))};if(t?.aborted){p();return}return u=setTimeout(c,n),t?.addEventListener("abort",p,{once:!0}),l},de(o))}function rt(n,e){return A(t=>{let r=!1;try{for(let o of n){if(r)return;t.emit(o)}r||t.down([[N]])}catch(o){r||t.down([[g,o]])}return()=>{r=!0}},de(e))}function Ht(n){return n!=null&&typeof n.then=="function"}function Vt(n,e){let{signal:t,...r}=e??{};return A(o=>{let s=!1,a=()=>{s||(s=!0,o.down([[g,t.reason]]))};if(t?.aborted){a();return}return t?.addEventListener("abort",a,{once:!0}),Promise.resolve(n).then(i=>{s||(s=!0,t?.removeEventListener("abort",a),o.emit(i),o.down([[N]]))},i=>{s||(s=!0,t?.removeEventListener("abort",a),o.down([[g,i]]))}),()=>{s=!0,t?.removeEventListener("abort",a)}},de(r))}function Bt(n,e){let{signal:t,...r}=e??{};return A(o=>{let s=new AbortController,a=()=>s.abort(t?.reason);t?.aborted?s.abort(t.reason):t?.addEventListener("abort",a,{once:!0});let i=t??s.signal,u=!1,d=n[Symbol.asyncIterator](),l=()=>{u||i.aborted||Promise.resolve(d.next()).then(c=>{if(!(u||i.aborted)){if(c.done){o.down([[N]]);return}o.emit(c.value),l()}},c=>{!u&&!i.aborted&&o.down([[g,c]])})};return l(),()=>{u=!0,t?.removeEventListener("abort",a),s.abort(),Promise.resolve(d.return?.()).catch(()=>{})}},de(r))}function Wt(n){return n!=null&&typeof n=="object"&&"cache"in n&&typeof n.subscribe=="function"}function ot(n,e){if(Wt(n))return n;if(Ht(n))return Vt(n,e);if(n!=null){let t=n;if(typeof t[Symbol.asyncIterator]=="function")return Bt(n,e);if(typeof t[Symbol.iterator]=="function")return rt(n,e)}return jt(n)}function jt(...n){return rt(n,void 0)}var st=E(()=>{"use strict";G();Z()});var ue=E(()=>{"use strict";st()});var Xt={};Nt(Xt,{fileAppendLog:()=>ht,fileBackend:()=>Q,fileKv:()=>Tt,fileSnapshot:()=>pt,fromFSWatch:()=>qt,fromGitHook:()=>at,fromSpawn:()=>dt,runProcess:()=>ut,sqliteAppendLog:()=>gt,sqliteBackend:()=>ee,sqliteKv:()=>bt,sqliteSnapshot:()=>mt});module.exports=kt(Xt);te();G();Z();G();tt();xe();ue();function Kt(n){return{describeKind:"derived",...n}}function $t(n,e,t){let r,o=!1,s=()=>{o||(o=!0,t())};return r=n.subscribe(a=>{let i=!1,u=!1;for(let d of a)d[0]!==L&&(d[0]===v?e.emit(d[1]):d[0]===N?i=!0:d[0]===g?(u=!0,e.down([d])):(d[0]===R||d[0]===M)&&e.down([d]));u?(r?.(),r=void 0,s()):i&&s()}),()=>{r?.(),r=void 0}}function it(n,e,t){let r,o=!1;function s(){r?.(),r=void 0}return ae([n],(a,i,u)=>{if(u.terminalDeps[0]!=null&&u.terminalDeps[0]!==!0){s();return}if(u.terminalDeps[0]===!0){o=!0,r||i.down([[N]]);return}let d=a[0];if(!(d==null||d.length===0))return s(),r=$t(ot(e(d[d.length-1])),i,()=>{s(),o&&i.down([[N]])}),{deactivate:()=>{s(),o=!1}}},{...Kt(t),completeWhenDepsComplete:!1,meta:{...et("switchMap"),...t?.meta??{}}})}ue();function at(n,e){let{pollMs:t=5e3,include:r,exclude:o,maxConsecutiveErrors:s=1}=e??{},a=r?.map(q)??[],i=o?.map(q)??[],{execFileSync:u}=require("node:child_process"),d=p=>u("git",p,{cwd:n,encoding:"utf-8"}).trim(),l,c=0;return it(nt(0,{period:t}),()=>A(p=>{try{let f=d(["rev-parse","HEAD"]);if(!f)return c=0,()=>{};if(l===void 0)return l=f,c=0,()=>{};if(f===l)return c=0,()=>{};let h=d(["diff","--name-only",`${l}..${f}`]).split(`
2
- `).filter(Boolean);a.length>0&&(h=h.filter(b=>U(b,a))),i.length>0&&(h=h.filter(b=>!U(b,i)));let T=d(["log","-1","--format=%s",f]),y=d(["log","-1","--format=%an",f]);p.emit({hook:"post-commit",commit:f,files:h,message:T,author:y,timestamp_ns:K()}),l=f,c=0}catch(f){c+=1,c>=s&&p.down([[g,f]])}return()=>{}}))}var le=require("node:fs"),ke=require("node:path");te();G();Z();ue();function zt(n){return{describeKind:"producer",...n}}function qt(n,e){let t=Array.isArray(n)?n:[n];if(t.length===0)throw new RangeError("fromFSWatch expects at least one path");let{recursive:r=!0,debounce:o=100,include:s,exclude:a,...i}=e??{},u=s?.map(q)??[],d=(a??["**/node_modules/**","**/.git/**","**/dist/**"]).map(q);return A(l=>{let c=new Map,p=[],f=!1,h=!1,T=0,y=()=>{for(let w of p.splice(0))w.close()},b=w=>{h||(h=!0,f=!0,m!==void 0&&clearTimeout(m),m=void 0,c.clear(),y(),l.down([[g,w]]))},m,x=w=>{if(m=void 0,f||h||c.size===0)return;let k=[];for(let C of c.values())k.push([v,C]);c.clear(),!(f||h||w!==T)&&l.down(k)};try{for(let w of t){let k=(0,le.watch)(w,{recursive:r},(C,O)=>{if(f||h||O==null)return;let F=String(O).replaceAll("\\","/"),D=(0,ke.resolve)(w,String(O)).replaceAll("\\","/"),_=(0,ke.resolve)(w).replaceAll("\\","/"),I=F.startsWith("./")?F.slice(2):F;if(!(u.length===0||U(D,u)||U(I,u))||U(D,d)||U(I,d))return;let H="change";if(C==="rename")try{H=(0,le.existsSync)(D)?"create":"delete"}catch{H="rename"}c.set(D,{type:H,path:D,root:_,relative_path:I,timestamp_ns:K()}),m!==void 0&&clearTimeout(m);let ce=T;m=setTimeout(()=>x(ce),o)});k.on("error",C=>b(C)),p.push(k)}}catch(w){b(w)}return()=>{f=!0,T+=1,m!==void 0&&clearTimeout(m),m=void 0,y(),c.clear()}},zt(i))}var Ee=require("node:child_process");G();Z();function dt(n,e,t){return A(r=>{let o=(0,Ee.spawn)(n,e,{cwd:t?.cwd,env:t?.env,shell:t?.shell,signal:t?.signal,stdio:t?.stdio??"pipe"}),s=!0,a=null;return o.stdout?.on("data",i=>{s&&r.down([[v,{kind:"stdout",chunk:i}]])}),o.stderr?.on("data",i=>{s&&r.down([[v,{kind:"stderr",chunk:i}]])}),o.on("error",i=>{s&&(s=!1,r.down([[g,i]]))}),o.on("exit",(i,u)=>{a==null&&(a={code:i,signal:u})}),o.on("close",()=>{if(!s)return;s=!1;let i=a??{code:null,signal:null};r.down([[v,{kind:"exit",code:i.code,signal:i.signal}],[N]])}),()=>{if(s){s=!1,o.stdout?.removeAllListeners(),o.stderr?.removeAllListeners(),o.removeAllListeners("error"),o.removeAllListeners("exit"),o.removeAllListeners("close");try{o.kill("SIGTERM")}catch{}}}},{name:"from_spawn"})}function ut(n,e,t){return A(r=>{let o=(0,Ee.spawn)(n,e,{cwd:t?.cwd,env:t?.env,shell:t?.shell,signal:t?.signal,stdio:t?.stdio??"pipe"}),s=!0,a=[],i=[],u=null;return o.stdout?.on("data",d=>{s&&a.push(d)}),o.stderr?.on("data",d=>{s&&i.push(d)}),o.on("error",d=>{s&&(s=!1,r.down([[g,d]]))}),o.on("exit",(d,l)=>{u==null&&(u={code:d,signal:l})}),o.on("close",()=>{if(!s)return;s=!1;let d=u??{code:null,signal:null},l=Buffer.concat(a).toString("utf8"),c=Buffer.concat(i).toString("utf8");r.down([[v,{stdout:l,stderr:c,exitCode:d.code,signal:d.signal}],[N]])}),()=>{if(s){s=!1,o.stdout?.removeAllListeners(),o.stderr?.removeAllListeners(),o.removeAllListeners("error"),o.removeAllListeners("exit"),o.removeAllListeners("close");try{o.kill("SIGTERM")}catch{}}}},{name:"run_process"})}var ct=require("node:crypto"),S=require("node:fs"),W=require("node:path"),ft=require("node:sqlite");function Se(n){if(n===null||typeof n!="object")return n;if(Array.isArray(n))return n.map(Se);let e=n,t=Object.keys(e).sort(),r={};for(let o of t)r[o]=Se(e[o]);return r}function lt(n){return JSON.stringify(Se(n),void 0,0)}var Yt=new TextEncoder,Jt=new TextDecoder("utf-8",{fatal:!0}),Oe={name:"json",version:1,encode(n){return Yt.encode(lt(n))},decode(n){return JSON.parse(Jt.decode(n))}};function Ae(n,e={}){let t=e.codec??Oe,r=e.name??n.name??"snapshot",o=e.keyOf??(c=>c.name??e.name??n.name??"snapshot"),s,a=0,i=e.compactEvery,u,d={name:r,debounceMs:e.debounceMs,compactEvery:i,filter:e.filter,keyOf:o,save(c){if(!(e.filter&&!e.filter(c))&&(s={snapshot:c},a+=1,i!==void 0&&a%i===0||!e.debounceMs))return l()},load(){let c=u??r,p=n.read(c);if(p!==void 0)return p instanceof Uint8Array?p.length===0?void 0:t.decode(p):Promise.resolve(p).then(f=>f===void 0||f.length===0?void 0:t.decode(f))},async flush(){await l()},async rollback(){s=void 0}};function l(){let c=s;if(!c)return;s=void 0;let p=o(c.snapshot),f=t.encode(c.snapshot),h=n.write(p,f);if(h instanceof Promise)return h.then(()=>{u=p});u=p}return d}function Re(n,e={}){let t=e.codec??Oe,r=e.name??n.name??"append-log",o=e.keyOf??(p=>r),s=e.compactEvery,a=new Map,i=0,u,d={name:r,debounceMs:e.debounceMs,compactEvery:s,keyOf:o,appendEntries(p){if(p.length!==0){for(let f of p){let h=o(f),T=a.get(h);T||(T=[],a.set(h,T)),T.push(f)}if(i+=p.length,s!==void 0&&i%s===0||!e.debounceMs)return l()}},async loadEntries(p){let f=p?.keyFilter,h=n.list===void 0?f!==void 0?[f]:[r]:await Promise.resolve(n.list(f)),T=[];for(let y of h){let b=await Promise.resolve(n.read(y));if(b===void 0||b.length===0)continue;let m=t.decode(b);Array.isArray(m)&&T.push(...m)}return{entries:T,cursor:void 0}},async flush(){await l()},async rollback(){a=new Map}};function l(){if(a.size===0)return;let p=a;a=new Map;let f=(u??Promise.resolve()).then(()=>{let h=c(p);return h instanceof Promise?h:Promise.resolve()},()=>{let h=c(p);return h instanceof Promise?h:Promise.resolve()});return u=f.finally(()=>{u===f&&(u=void 0)}),u}function c(p){let f=[];for(let[h,T]of p){let y=n.read(h),b=m=>{let w=[...m===void 0||m.length===0?[]:t.decode(m)??[],...T],k=t.encode(w);return n.write(h,k)};if(y instanceof Promise)f.push(y.then(async m=>{let x=b(m);x instanceof Promise&&await x}));else{let m=b(y);m instanceof Promise&&f.push(m)}}if(f.length>0)return Promise.all(f).then(()=>{})}return d}function Me(n,e={}){let t=e.codec??Oe,r=e.name??n.name??"kv",o=e.compactEvery,s=new Map,a=0,i={name:r,debounceMs:e.debounceMs,compactEvery:o,filter:e.filter,save(d,l){if(!(e.filter&&!e.filter(d,l))&&(s.set(d,l),a+=1,o!==void 0&&a%o===0||!e.debounceMs))return u()},load(d){let l=n.read(d);if(l!==void 0)return l instanceof Uint8Array?l.length===0?void 0:t.decode(l):Promise.resolve(l).then(c=>c===void 0||c.length===0?void 0:t.decode(c))},delete(d){if(s.delete(d),!!n.delete)return n.delete(d)},list(d){return n.list?n.list(d):[]},async flush(){await u()},async rollback(){s=new Map}};function u(){if(s.size===0)return;let d=s;s=new Map;let l=[];for(let[c,p]of d){let f=t.encode(p),h=n.write(c,f);h instanceof Promise&&l.push(h)}if(l.length>0)return Promise.all(l).then(()=>{})}return i}function Q(n){let e=new TextEncoder,t=new TextDecoder("utf-8",{fatal:!0}),r=s=>{let a="";for(let i of s){if(i.length===1&&/[a-zA-Z0-9_-]/.test(i)){a+=i;continue}for(let u of e.encode(i))a+=`%${u.toString(16).padStart(2,"0")}`}return(0,W.join)(n,`${a}.bin`)},o=s=>{if(!s.endsWith(".bin"))return null;let a=s.slice(0,-4),i=[],u=l=>{for(let c=0;c<l.length;c++)i.push(l.charCodeAt(c))},d=0;for(;d<a.length;){let l=a[d];if(l==="%"&&d+2<a.length){let c=a.slice(d+1,d+3);if(/^[0-9a-f]{2}$/i.test(c)){i.push(Number.parseInt(c,16)),d+=3;continue}}u(l),d+=1}try{return t.decode(new Uint8Array(i))}catch{return null}};return{name:`file:${n}`,read(s){try{let a=(0,S.readFileSync)(r(s));return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}catch{return}},write(s,a){(0,S.mkdirSync)(n,{recursive:!0});let i=r(s),u=(0,W.basename)(i),d=(0,W.dirname)(i),l=(0,W.join)(d,`.${u}.${(0,ct.randomBytes)(8).toString("hex")}.tmp`);try{(0,S.writeFileSync)(l,a),(0,S.renameSync)(l,i)}catch(c){try{(0,S.unlinkSync)(l)}catch{}throw c}},delete(s){try{(0,S.unlinkSync)(r(s))}catch(a){if(a.code!=="ENOENT")throw a}},list(s){try{let a=(0,S.readdirSync)(n),i=[];for(let u of a){if(u.startsWith("."))continue;let d=o(u);d!==null&&(s!==void 0&&!d.startsWith(s)||i.push(d))}return i.sort()}catch(a){if(a.code==="ENOENT")return[];throw a}}}}function ee(n){let e=new ft.DatabaseSync(n);return e.exec("CREATE TABLE IF NOT EXISTS graphrefly_storage (k TEXT PRIMARY KEY, v BLOB NOT NULL)"),{name:`sqlite:${n}`,read(t){return e.prepare("SELECT v FROM graphrefly_storage WHERE k = ?").get(t)?.v},write(t,r){e.prepare("INSERT OR REPLACE INTO graphrefly_storage (k, v) VALUES (?, ?)").run(t,r)},delete(t){e.prepare("DELETE FROM graphrefly_storage WHERE k = ?").run(t)},list(t){if(t===void 0)return e.prepare("SELECT k FROM graphrefly_storage ORDER BY k").all().map(a=>a.k);let r=t.replace(/[\\%_]/g,"\\$&");return e.prepare("SELECT k FROM graphrefly_storage WHERE k LIKE ? ESCAPE '\\' ORDER BY k").all(`${r}%`).map(s=>s.k)},close(){try{e.close()}catch{}}}}function pt(n,e){return Ae(Q(n),e)}function ht(n,e){return Re(Q(n),e)}function mt(n,e){let t=ee(n),r=Ae(t,e);return Object.assign(r,{close:()=>t.close()})}function gt(n,e){let t=ee(n),r=Re(t,e);return Object.assign(r,{close:()=>t.close()})}function Tt(n,e){return Me(Q(n),e)}function bt(n,e){let t=ee(n),r=Me(t,e);return Object.assign(r,{close:()=>t.close()})}0&&(module.exports={fileAppendLog,fileBackend,fileKv,fileSnapshot,fromFSWatch,fromGitHook,fromSpawn,runProcess,sqliteAppendLog,sqliteBackend,sqliteKv,sqliteSnapshot});
1
+ "use strict";var fe=Object.defineProperty;var _t=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var xt=Object.prototype.hasOwnProperty;var k=(n,e)=>()=>(n&&(e=n(n=0)),e);var kt=(n,e)=>{for(var t in e)fe(n,t,{get:e[t],enumerable:!0})},Et=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Nt(e))!xt.call(n,o)&&o!==t&&fe(n,o,{get:()=>e[o],enumerable:!(r=_t(e,o))||r.enumerable});return n};var St=n=>Et(fe({},"__esModule",{value:!0}),n);function K(){return Date.now()*1e6}var te=k(()=>{"use strict"});var L,v,R,M,V,B,X,P,N,g,$,pe,Ot,he,At,Rt,me,Ce,De,Ie,ge,G=k(()=>{"use strict";L=Symbol.for("graphrefly/START"),v=Symbol.for("graphrefly/DATA"),R=Symbol.for("graphrefly/DIRTY"),M=Symbol.for("graphrefly/RESOLVED"),V=Symbol.for("graphrefly/INVALIDATE"),B=Symbol.for("graphrefly/PAUSE"),X=Symbol.for("graphrefly/RESUME"),P=Symbol.for("graphrefly/TEARDOWN"),N=Symbol.for("graphrefly/COMPLETE"),g=Symbol.for("graphrefly/ERROR"),$=Object.freeze([R]),pe=Object.freeze([M]),Ot=Object.freeze([V]),he=Object.freeze([L]),At=Object.freeze([N]),Rt=Object.freeze([P]),me=Object.freeze([$]),Ce=Object.freeze([pe]),De=Object.freeze([Ot]),Ie=Object.freeze([At]),ge=Object.freeze([Rt])});function Fe(n){n.registerCodec(Mt)}var Mt,Le=k(()=>{"use strict";Mt={name:"json",version:1,contentType:"application/json",encode(n){let e=JSON.stringify(n);return new TextEncoder().encode(e)},decode(n,e){let t=new TextDecoder().decode(n);return JSON.parse(t)}}});function ne(n){if(n==null)return Ct;let{type:e,id:t,...r}=n;return{type:e??"system",id:t??"",...r}}var Ct,Pe=k(()=>{"use strict";Ct={type:"system",id:""}});function Ve(){return Te>0||Dt}function Be(){return Te>0}function We(n){Te>0?It.push(n):n()}function re(n,e,t){if(e.length===0)return;if(e.length===1){let d=t(e[0][0]);if(d<3||!Ve()){n(e);return}(d>=5?He:d===4?Ue:Ge).push(()=>n(e));return}let r=e.length,o=r,s=r,a=r,i=0;for(;i<r&&t(e[i][0])<3;)i++;for(o=i;i<r&&t(e[i][0])===3;)i++;for(s=i;i<r&&t(e[i][0])===4;)i++;a=i;let u=Ve();if(o>0){let d=e.slice(0,o);n(d)}if(s>o){let d=e.slice(o,s);u?Ge.push(()=>n(d)):n(d)}if(a>s){let d=e.slice(s,a);u?Ue.push(()=>n(d)):n(d)}if(r>a){let d=e.slice(a,r);u?He.push(()=>n(d)):n(d)}}var Te,Dt,Ge,Ue,He,It,je=k(()=>{"use strict";Te=0,Dt=!1,Ge=[],Ue=[],He=[],It=[]});function Ke(n){n.registerMessageType(L,{tier:0,wireCrossing:!1}),n.registerMessageType(R,{tier:1,wireCrossing:!1}),n.registerMessageType(V,{tier:1,wireCrossing:!1,metaPassthrough:!1}),n.registerMessageType(B,{tier:2,wireCrossing:!1}),n.registerMessageType(X,{tier:2,wireCrossing:!1}),n.registerMessageType(v,{tier:3,wireCrossing:!0}),n.registerMessageType(M,{tier:3,wireCrossing:!0}),n.registerMessageType(N,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(g,{tier:4,wireCrossing:!0,metaPassthrough:!1}),n.registerMessageType(P,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var oe,$e=k(()=>{"use strict";G();oe=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_rigorRecorder;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=t=>{let r=this._messageTypes.get(t);return r!=null?r.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}get rigorRecorder(){return this._rigorRecorder}set rigorRecorder(e){this._rigorRecorder=e}registerMessageType(e,t){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:t.tier,wireCrossing:t.wireCrossing??t.tier>=3,metaPassthrough:t.metaPassthrough??!0}),this}messageTier(e){let t=this._messageTypes.get(e);return t!=null?t.tier:1}isWireCrossing(e){let t=this._messageTypes.get(e);return t!=null?t.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let t=this._messageTypes.get(e);return t!=null?t.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var z,ze=k(()=>{"use strict";z=class extends Error{actor;action;nodeName;constructor(e,t){super(t??`GuardDenied: action "${String(e.action)}" denied for actor type "${String(e.actor.type)}"`),this.name="GuardDenied",this.actor=e.actor,this.action=e.action,this.nodeName=e.nodeName}get node(){return this.nodeName}}});function be(n){if(n===void 0)return null;if(typeof n=="number"){if(!Number.isFinite(n))throw new TypeError(`Cannot hash non-finite number: ${n}`);if(Number.isInteger(n)&&!Number.isSafeInteger(n))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${n}. Cross-language cid parity is not guaranteed for unsafe integers.`);return n}if(typeof n=="string"||typeof n=="boolean"||n===null)return n;if(Array.isArray(n))return n.map(be);if(typeof n=="object"&&n!==null){let e={};for(let t of Object.keys(n).sort())e[t]=be(n[t]);return e}return null}function Pt(n){let e=Lt.encode(n),t=e.length,r=t*8,o=t+9+63&-64,s=new Uint8Array(o);s.set(e),s[t]=128;let a=new DataView(s.buffer);a.setUint32(o-4,r>>>0,!1),a.setUint32(o-8,Math.floor(r/4294967296)>>>0,!1);let i=1779033703,u=3144134277,d=1013904242,l=2773480762,c=1359893119,p=2600822924,f=528734635,h=1541459225,T=new Uint32Array(64),y=(m,x)=>m>>>x|m<<32-x;for(let m=0;m<o;m+=64){for(let _=0;_<16;_++)T[_]=a.getUint32(m+_*4,!1);for(let _=16;_<64;_++){let I=T[_-15],j=T[_-2],J=y(I,7)^y(I,18)^I>>>3,H=y(j,17)^y(j,19)^j>>>10;T[_]=T[_-16]+J+T[_-7]+H>>>0}let x=i,w=u,E=d,C=l,O=c,F=p,Y=f,D=h;for(let _=0;_<64;_++){let I=y(O,6)^y(O,11)^y(O,25),j=O&F^~O&Y,J=D+I+j+Ft[_]+T[_]>>>0,H=y(x,2)^y(x,13)^y(x,22),ce=x&w^x&E^w&E,wt=H+ce>>>0;D=Y,Y=F,F=O,O=C+J>>>0,C=E,E=w,w=x,x=J+wt>>>0}i=i+x>>>0,u=u+w>>>0,d=d+E>>>0,l=l+C>>>0,c=c+O>>>0,p=p+F>>>0,f=f+Y>>>0,h=h+D>>>0}let b=m=>m.toString(16).padStart(8,"0");return b(i)+b(u)+b(d)+b(l)+b(c)+b(p)+b(f)+b(h)}function ye(n){let e=be(n??null),t=JSON.stringify(e);return Pt(t).slice(0,16)}function Gt(){let n=globalThis.crypto;if(n?.randomUUID)return n.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),t=e()+e()+e()+e();return`${t.slice(0,8)}-${t.slice(8,12)}-4${t.slice(13,16)}-${(parseInt(t.slice(16,17),16)&3|8).toString(16)}${t.slice(17,20)}-${t.slice(20,32)}`}function ve(n,e,t){let r=t?.id??Gt();if(n===0)return{id:r,version:0};let s=(t?.hash??ye)(e);return{id:r,version:0,cid:s,prev:null}}function qe(n,e,t){n.version+=1,"cid"in n&&(n.prev=n.cid,n.cid=t(e))}var Ft,Lt,Ye=k(()=>{"use strict";Ft=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Lt=new TextEncoder});function Ze(n){return{node:n,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function we(n){n.prevData=void 0,n.dirty=!1,n.involvedThisWave=!1,n.dataBatch.length=0,n.terminal=void 0}function se(n){return n.length===0?n:typeof n[0]=="symbol"?[n]:n}function ae(n,e,t){let r=Qe(n)?n:[],o=typeof n=="function"?n:typeof e=="function"?e:void 0,s={};return Qe(n)?s=(_e(e)?e:t)??{}:_e(n)?s=n:s=(_e(e)?e:t)??{},new ie(r,o,s)}var Je,Xe,Ut,Ht,Ne,ie,Qe,_e,xe=k(()=>{"use strict";Le();Pe();je();te();$e();ze();G();Ye();Je=()=>{},Xe=100;Ut=(n,e,t,r)=>{t.direction==="down-in"&&n._onDepMessage(t.depIndex,e)},Ht=(n,e,t,r)=>{let o=n;if(o._status==="completed"||o._status==="errored")return;let s=o._cached,a=s===void 0?[he]:[he,[v,s]];o._status==="dirty"&&a.push($),re(e,a,o._config.tierOf)},Ne=new oe({onMessage:Ut,onSubscribe:Ht});Ke(Ne);Fe(Ne);ie=class n{_optsName;_describeKind;meta;_hasMeta;_config;_deps;_sinks=null;_sinkCount=0;_cached;_status;_cleanup;_store={};_waveHasNewData=!1;_hasNewTerminal=!1;_hasCalledFnOnce=!1;_paused=!1;_pendingWave=!1;_isExecutingFn=!1;_pendingRerun=!1;_rerunDepth=0;_dirtyDepCount=0;_batchPendingMessages=null;_pauseLocks=null;_pauseBuffer=null;_fn;_equals;_resubscribable;_resetOnTeardown;_autoComplete;_autoError;_pausable;_partial;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,t,r){this._config=r.config??Ne,this._config.onMessage,this._optsName=r.name,this._describeKind=r.describeKind,this._equals=r.equals??Object.is,this._resubscribable=r.resubscribable??!1,this._resetOnTeardown=r.resetOnTeardown??!1,this._autoComplete=r.completeWhenDepsComplete??!0,this._autoError=r.errorWhenDepsError??!0,this._pausable=r.pausable??!0,this._guard=r.guard,this._fn=t,this._partial=r.partial??!1,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&t==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=r.versioningHash??this._config.defaultHashFn??ye;let o=r.versioning??this._config.defaultVersioning;this._versioningLevel=o,this._versioning=o!=null?ve(o,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(Ze);let s={};for(let[i,u]of Object.entries(r.meta??{})){let d={initial:u,name:`${r.name??"node"}:meta:${i}`,describeKind:"state",config:this._config};r.guard!=null&&(d.guard=r.guard),s[i]=new n([],void 0,d)}Object.freeze(s),this.meta=s,this._hasMeta=Object.keys(s).length>0;let a=this;this._actions={emit(i){a._emit([[v,i]])},down(i){a._emit(se(i))},up(i){a._emitUp(se(i))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,t){if(this._isExecutingFn)throw new Error(`Node "${this.name}": _applyVersioning cannot run mid-fn \u2014 call it outside of \`_execFn\` (typically at graph setup time before the first subscribe).`);let r=this._versioningLevel;if(r!=null&&e<=r)return;let o=t?.hash??this._hashFn;o!==this._hashFn&&(this._hashFn=o);let s=this._cached===void 0?void 0:this._cached,a=this._versioning,i=a?.id??t?.id,u=a?.version??0,d=ve(e,s,{id:i,hash:o});d.version=u,this._versioning=d,this._versioningLevel=e}_setInspectorHook(e){return e==null?()=>{}:(this._inspectorHooks==null&&(this._inspectorHooks=new Set),this._inspectorHooks.add(e),()=>{this._inspectorHooks?.delete(e),this._inspectorHooks?.size===0&&(this._inspectorHooks=void 0)})}_pushGuard(e){return this._extraGuards==null&&(this._extraGuards=new Set),this._extraGuards.add(e),()=>{this._extraGuards?.delete(e),this._extraGuards?.size===0&&(this._extraGuards=void 0)}}allowsObserve(e){if(this._guard==null&&this._extraGuards==null)return!0;let t=ne(e);if(this._guard!=null&&!this._guard(t,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(t,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let t=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!t&&!r)return;let o=ne(e?.actor),s=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(o,s))throw new z({actor:o,action:s,nodeName:this.name});if(this._extraGuards!=null){for(let a of this._extraGuards)if(!a(o,s))throw new z({actor:o,action:s,nodeName:this.name})}this._lastMutation={actor:o,timestamp_ns:K()}}down(e,t){let r=se(e);r.length!==0&&(this._checkGuard(t),this._emit(r))}emit(e,t){this._checkGuard(t),this._emit([[v,e]])}up(e,t){if(this._deps.length===0)return;let r=se(e);if(r.length===0)return;this._checkGuard(t);let o=t??{internal:!0};this._validateUpTiers(r);for(let s of this._deps)s.node.up?.(r,o)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let t of this._deps)t.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let t=this._config.tierOf;for(let r of e){let o=t(r[0]);if(o===3||o===4)throw new Error(`Node "${this.name}": tier-${o} messages cannot flow up \u2014 DATA/RESOLVED/COMPLETE/ERROR are downstream-only. Use \`down(...)\` for value delivery; \`up(...)\` is for control signals (DIRTY, INVALIDATE, PAUSE, RESUME, TEARDOWN).`)}}subscribe(e,t){if(t!=null&&this._guard!=null){let u=ne(t);if(!this._guard(u,"observe"))throw new z({actor:u,action:"observe",nodeName:this.name})}let o=this._isTerminal&&this._resubscribable;if(o){this._cached=void 0,this._status="sentinel",this._store={},this._hasCalledFnOnce=!1,this._waveHasNewData=!1,this._hasNewTerminal=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._isExecutingFn=!1,this._rerunDepth=0,this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null;for(let u of this._deps)we(u);if(this._partial===!1){for(let u of this._deps)if(u.prevData!==void 0||u.dataBatch.length!==0||u.terminal!==void 0||u.dirty)throw new Error(`resubscribable-reset invariant: DepRecord not fully reset for node ${this._optsName??"(anonymous)"}`)}}this._sinkCount+=1;let s;try{s=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:o},this._actions)}catch(u){throw this._sinkCount-=1,u}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let a=this._isTerminal;if(this._sinkCount===1&&!a)try{this._activate()}catch(u){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof s=="function")try{s()}catch{}throw u}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let i=!1;return()=>{i||(i=!0,this._sinkCount-=1,this._removeSink(e),typeof s=="function"&&s(),this._sinks==null&&this._deactivate())}}_removeSink(e){if(this._sinks===e)this._sinks=null;else if(this._sinks!=null&&typeof this._sinks!="function")if(this._sinks.delete(e),this._sinks.size===1){let[t]=this._sinks;this._sinks=t}else this._sinks.size===0&&(this._sinks=null)}_activate(){if(this._deps.length===0){this._fn&&this._execFn();return}this._dirtyDepCount=0;let e=this._deps.length,t=0;try{for(let r=0;r<e;r++){let o=r,s=this._deps[r];s.unsub=Je,s.unsub=s.node.subscribe(a=>{if(s.unsub===null)return;let i=this._config.tierOf,u=!1;for(let d of a)i(d[0])>=3&&(u=!0),this._config.onMessage(this,d,{direction:"down-in",depIndex:o},this._actions);u&&this._maybeRunFnOnSettlement()}),t++}}catch(r){this._deps[t].unsub=null;for(let o=0;o<t;o++){let s=this._deps[o];if(s.unsub!=null){let a=s.unsub;s.unsub=null;try{a()}catch{}we(s)}}throw this._dirtyDepCount=0,r}}_addDep(e){for(let o=0;o<this._deps.length;o++)if(this._deps[o].node===e)return o;let t=this._deps.length,r=Ze(e);if(this._deps.push(r),this._sinks==null)return t;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(me),r.unsub=Je;try{r.unsub=e.subscribe(o=>{if(r.unsub===null)return;let s=this._config.tierOf,a=!1;for(let i of o)s(i[0])>=3&&(a=!0),this._config.onMessage(this,i,{direction:"down-in",depIndex:t},this._actions);a&&this._maybeRunFnOnSettlement()})}catch(o){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,o}return t}_deactivate(e=!1){let t=this._cleanup;if(this._cleanup=void 0,typeof t=="function")try{t()}catch(r){this._emit([[g,this._wrapFnError("cleanup threw",r)]])}else if(t!=null&&typeof t=="object"){let r=t.deactivate;if(typeof r=="function")try{r()}catch(o){this._emit([[g,this._wrapFnError("cleanup.deactivate threw",o)]])}}for(let r of this._deps){if(r.unsub!=null){let o=r.unsub;r.unsub=null;try{o()}catch{}}we(r)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,t){let r=this._deps[e],o=t[0];if(this._inspectorHooks!=null){let s={kind:"dep_message",depIndex:e,message:t};for(let a of this._inspectorHooks)a(s)}if(o!==L){if(o===R){this._depDirtied(r);return}if(o===V){if(this._depInvalidated(r),this._cached===void 0)return;this._emit(De);return}if(o===B||o===X){this._emit([t]);return}if(o===P){this._emit(ge);return}if(o===v)this._depSettledAsData(r,t[1]);else if(o===M)this._depSettledAsResolved(r);else if(o===N)this._depSettledAsTerminal(r,!0);else if(o===g)this._depSettledAsTerminal(r,t[1]);else{this._emit([t]);return}if(!this._fn){(o===v||o===M)&&this._emit([t]),(o===N||o===g)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(me))}_depSettledAsData(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(t),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,t){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=t,e.involvedThisWave=!0,this._hasNewTerminal=!0}_depInvalidated(e){e.prevData=void 0,e.terminal=void 0,e.dataBatch.length=0,e.dirty?e.involvedThisWave=!1:(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++)}_maybeRunFnOnSettlement(){if(!(this._isTerminal&&!this._resubscribable)&&!(this._dirtyDepCount>0)){if(!this._partial&&!this._hasCalledFnOnce)for(let e=0;e<this._deps.length;e++){let t=this._deps[e];if(t.dataBatch.length===0&&t.prevData===void 0&&t.terminal===void 0){this._maybeAutoTerminalAfterWave();return}}if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(Ce),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(t=>t.terminal!==void 0&&t.terminal!==!0);if(e!=null){this._autoError&&this._emit([[g,e.terminal]]);return}this._autoComplete&&this._deps.every(t=>t.terminal!==void 0)&&this._emit(Ie)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(a){this._emit([[g,this._wrapFnError("cleanup threw",a)]]);return}}else if(e!=null&&typeof e=="object"){let a=e.beforeRun;if(typeof a=="function"){e.beforeRun=void 0;try{a()}catch(i){this._emit([[g,this._wrapFnError("cleanup.beforeRun threw",i)]]);return}}}let t=this._deps.map(a=>a.involvedThisWave?a.dataBatch.length>0?[...a.dataBatch]:[]:void 0),r=this._deps.map(a=>a.prevData);for(let a=0;a<this._deps.length;a++){let i=t[a];i!=null&&i.length>0&&(this._deps[a].prevData=i[i.length-1])}let o=this._deps.map(a=>a.terminal),s={prevData:r,terminalDeps:o,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let a={kind:"run",batchData:t,prevData:r};for(let i of this._inspectorHooks)i(a)}this._isExecutingFn=!0;try{let a=this._fn(t,this._actions,s);if(typeof a=="function")this._cleanup=a;else if(a!=null&&typeof a=="object"){let i=a;(typeof i.beforeRun=="function"||typeof i.deactivate=="function"||typeof i.invalidate=="function")&&(this._cleanup=a)}}catch(a){this._emit([[g,this._wrapFnError("fn threw",a)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>Xe?(this._rerunDepth=0,this._emit([[g,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${Xe} \u2014 likely a reactive cycle`)]])):this._maybeRunFnOnSettlement()):this._rerunDepth=0,this._clearWaveFlags()}}_clearWaveFlags(){this._waveHasNewData=!1,this._hasNewTerminal=!1;for(let e of this._deps)e.involvedThisWave=!1,e.dataBatch.length=0}_wrapFnError(e,t){let r=t instanceof Error?t.message:String(t);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:t})}_frameBatch(e){let t=this._config.tierOf;if(e.length===1)return t(e[0][0])===3&&this._status!=="dirty"?[$,e[0]]:e;let r=!0,o=!1,s=!1,a=-1;for(let u of e){let d=t(u[0]);d<a&&(r=!1),d===3&&(o=!0),u[0]===R&&(s=!0),a=d}let i=e;if(!r){let u=e.map((d,l)=>({m:d,i:l,tier:t(d[0])}));u.sort((d,l)=>d.tier-l.tier||d.i-l.i),i=u.map(d=>d.m)}if(o&&!s&&this._status!=="dirty"){let u=0;for(;u<i.length&&t(i[u][0])===0;)u++;return u===0?[$,...i]:[...i.slice(0,u),$,...i.slice(u)]}return i}_emit(e){if(e.length===0)return;for(let i=0;i<e.length;i++){let u=e[i];if(u[0]===g&&u[1]===void 0)throw new TypeError('[ERROR, payload] requires a non-undefined payload (spec \xA71.2). Pass an Error object or domain tag instead \u2014 e.g. node.down([[ERROR, new Error("reason")]])')}let t=e;if(this._isTerminal&&!this._resubscribable){let i=e.filter(u=>u[0]===P||u[0]===V);if(i.length===0)return;t=i}t=this._frameBatch(t);let o=null;for(let i=0;i<t.length;i++){let u=t[i],d=u[0];if(d!==B&&d!==X){o?.push(u);continue}if(u.length<2)throw new Error(`Node "${this.name}": [[${d===B?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let l=!0;if(this._pausable!==!1){let c=u[1];if(d===B)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(c),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(c))l=!1;else if(this._pauseLocks.delete(c),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let p=this._pauseBuffer;this._pauseBuffer=[],this._emit(p)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}l?o?.push(u):o==null&&(o=t.slice(0,i))}if(o!=null){if(o.length===0)return;t=o}if(this._hasMeta&&t.some(i=>i[0]===P))for(let i of Object.keys(this.meta))try{this.meta[i]._emit(ge)}catch{}let{finalMessages:s,equalsError:a}=this._updateState(t);if(s.length>0&&this._config.inspectorEnabled){let i=this._config.globalInspector;if(i!=null)try{i({kind:"emit",node:this,messages:s})}catch{}}if(s.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let i=this._config.tierOf,u=[];for(let d of s)i(d[0])===3?this._pauseBuffer.push(d):u.push(d);u.length>0&&this._dispatchOrAccumulate(u)}else this._dispatchOrAccumulate(s);a!=null&&this._emit([[g,a]])}_updateState(e){let t=this._config.tierOf,r,o,s=-1,a=0;for(let l of e)t(l[0])===3&&a++;let i=a<=1,u=-1;if(this._versioning!=null&&a>1){for(let l=e.length-1;l>=0;l--)if(e[l][0]===v){u=l;break}}for(let l=0;l<e.length;l++){let c=e[l],p=c[0];if(p===v){if(c.length>=2){let f=!1;if(i&&this._cached!==void 0)try{f=this._equals(this._cached,c[1])}catch(h){o=this._wrapFnError("equals threw",h),s=l;break}if(f){r==null&&(r=e.slice(0,l)),r.push(pe),this._status="resolved";continue}this._cached=c[1],this._versioning!=null&&(u<0||l===u)&&qe(this._versioning,c[1],this._hashFn)}this._status="settled",r?.push(c)}else if(r?.push(c),p===R)this._status="dirty";else if(p===M)this._status="resolved";else if(p===N){this._status="completed";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"completed",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===g){this._status="errored";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"errored",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===V){if(this._cached!==void 0){let h=this._config.rigorRecorder;if(h!=null)try{h.onNonVacuousInvalidate(this,this._cached)}catch{}}this._cached=void 0,this._status="dirty";let f=this._cleanup;if(typeof f=="function"){this._cleanup=void 0;try{f()}catch{}}else if(f!=null&&typeof f=="object"){let h=f.invalidate;if(typeof h=="function")try{h()}catch{}}}else p===P&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let d=s>=0?r??e.slice(0,s):r??e;return o!=null?{finalMessages:d,equalsError:o}:{finalMessages:d}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let t=[...this._sinks];for(let r of t)r(e)};_dispatchOrAccumulate(e){if(Be()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],We(()=>this._flushBatchPending()));for(let t of e)this._batchPendingMessages.push(t);return}re(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let t=this._frameBatch(e);re(this._deliverToSinks,t,this._config.tierOf)}},Qe=n=>Array.isArray(n),_e=n=>typeof n=="object"&&n!=null&&!Array.isArray(n)});function A(n,e){return ae((r,o,s)=>n(o,s)??void 0,{describeKind:"producer",...e})}var Z=k(()=>{"use strict";xe()});function et(n,e){let t={factory:n};return e!==void 0&&(t.factoryArgs=e),t}var tt=k(()=>{"use strict"});function de(n){return{describeKind:"producer",...n}}function Vt(n){return/[\\^$+?.()|[\]{}]/.test(n)?`\\${n}`:n}function q(n){let e="^";for(let t=0;t<n.length;t+=1){let r=n[t];if(r==="*"){n[t+1]==="*"?(e+=".*",t+=1):e+="[^/]*";continue}e+=Vt(r)}return e+="$",new RegExp(e)}function U(n,e){for(let t of e)if(t.test(n))return!0;return!1}function nt(n,e){let{signal:t,period:r,...o}=e??{};return A(s=>{let a=!1,i=0,u,d,l=()=>{a=!0,u!==void 0&&clearTimeout(u),d!==void 0&&clearInterval(d),t?.removeEventListener("abort",p)},c=()=>{a||(r!=null?(s.emit(i++),d=setInterval(()=>{a||s.emit(i++)},r)):(a=!0,t?.removeEventListener("abort",p),s.emit(i++),s.down([[N]])))},p=()=>{a||(l(),s.down([[g,t.reason]]))};if(t?.aborted){p();return}return u=setTimeout(c,n),t?.addEventListener("abort",p,{once:!0}),l},de(o))}function rt(n,e){return A(t=>{let r=!1;try{for(let o of n){if(r)return;t.emit(o)}r||t.down([[N]])}catch(o){r||t.down([[g,o]])}return()=>{r=!0}},de(e))}function Bt(n){return n!=null&&typeof n.then=="function"}function Wt(n,e){let{signal:t,...r}=e??{};return A(o=>{let s=!1,a=()=>{s||(s=!0,o.down([[g,t.reason]]))};if(t?.aborted){a();return}return t?.addEventListener("abort",a,{once:!0}),Promise.resolve(n).then(i=>{s||(s=!0,t?.removeEventListener("abort",a),o.emit(i),o.down([[N]]))},i=>{s||(s=!0,t?.removeEventListener("abort",a),o.down([[g,i]]))}),()=>{s=!0,t?.removeEventListener("abort",a)}},de(r))}function jt(n,e){let{signal:t,...r}=e??{};return A(o=>{let s=new AbortController,a=()=>s.abort(t?.reason);t?.aborted?s.abort(t.reason):t?.addEventListener("abort",a,{once:!0});let i=t??s.signal,u=!1,d=n[Symbol.asyncIterator](),l=()=>{u||i.aborted||Promise.resolve(d.next()).then(c=>{if(!(u||i.aborted)){if(c.done){o.down([[N]]);return}o.emit(c.value),l()}},c=>{!u&&!i.aborted&&o.down([[g,c]])})};return l(),()=>{u=!0,t?.removeEventListener("abort",a),s.abort(),Promise.resolve(d.return?.()).catch(()=>{})}},de(r))}function Kt(n){return n!=null&&typeof n=="object"&&"cache"in n&&typeof n.subscribe=="function"}function ot(n,e){if(Kt(n))return n;if(Bt(n))return Wt(n,e);if(n!=null){let t=n;if(typeof t[Symbol.asyncIterator]=="function")return jt(n,e);if(typeof t[Symbol.iterator]=="function")return rt(n,e)}return $t(n)}function $t(...n){return rt(n,void 0)}var st=k(()=>{"use strict";G();Z()});var ue=k(()=>{"use strict";st()});function zt(n){return{describeKind:"derived",...n}}function qt(n,e,t){let r,o=!1,s=()=>{o||(o=!0,t())};return r=n.subscribe(a=>{let i=!1,u=!1;for(let d of a)d[0]!==L&&(d[0]===v?e.emit(d[1]):d[0]===N?i=!0:d[0]===g?(u=!0,e.down([d])):(d[0]===R||d[0]===M)&&e.down([d]));u?(r?.(),r=void 0,s()):i&&s()}),()=>{r?.(),r=void 0}}function it(n,e,t){let r,o=!1;function s(){r?.(),r=void 0}return ae([n],(a,i,u)=>{if(u.terminalDeps[0]!=null&&u.terminalDeps[0]!==!0){s();return}if(u.terminalDeps[0]===!0){o=!0,r||i.down([[N]]);return}let d=a[0];if(!(d==null||d.length===0))return s(),r=qt(ot(e(d[d.length-1])),i,()=>{s(),o&&i.down([[N]])}),{deactivate:()=>{s(),o=!1}}},{...zt(t),completeWhenDepsComplete:!1,meta:{...et("switchMap"),...t?.meta??{}}})}var at=k(()=>{"use strict";G();tt();xe();ue()});var dt=k(()=>{"use strict";at()});var Qt={};kt(Qt,{fileAppendLog:()=>gt,fileBackend:()=>Q,fileKv:()=>yt,fileSnapshot:()=>mt,fromFSWatch:()=>Jt,fromGitHook:()=>ut,fromSpawn:()=>lt,runProcess:()=>ct,sqliteAppendLog:()=>bt,sqliteBackend:()=>ee,sqliteKv:()=>vt,sqliteSnapshot:()=>Tt});module.exports=St(Qt);te();G();Z();dt();ue();function ut(n,e){let{pollMs:t=5e3,include:r,exclude:o,maxConsecutiveErrors:s=1}=e??{},a=r?.map(q)??[],i=o?.map(q)??[],{execFileSync:u}=require("node:child_process"),d=p=>u("git",p,{cwd:n,encoding:"utf-8"}).trim(),l,c=0;return it(nt(0,{period:t}),()=>A(p=>{try{let f=d(["rev-parse","HEAD"]);if(!f)return c=0,()=>{};if(l===void 0)return l=f,c=0,()=>{};if(f===l)return c=0,()=>{};let h=d(["diff","--name-only",`${l}..${f}`]).split(`
2
+ `).filter(Boolean);a.length>0&&(h=h.filter(b=>U(b,a))),i.length>0&&(h=h.filter(b=>!U(b,i)));let T=d(["log","-1","--format=%s",f]),y=d(["log","-1","--format=%an",f]);p.emit({hook:"post-commit",commit:f,files:h,message:T,author:y,timestamp_ns:K()}),l=f,c=0}catch(f){c+=1,c>=s&&p.down([[g,f]])}return()=>{}}))}var le=require("node:fs"),ke=require("node:path");te();G();Z();ue();function Yt(n){return{describeKind:"producer",...n}}function Jt(n,e){let t=Array.isArray(n)?n:[n];if(t.length===0)throw new RangeError("fromFSWatch expects at least one path");let{recursive:r=!0,debounce:o=100,include:s,exclude:a,...i}=e??{},u=s?.map(q)??[],d=(a??["**/node_modules/**","**/.git/**","**/dist/**"]).map(q);return A(l=>{let c=new Map,p=[],f=!1,h=!1,T=0,y=()=>{for(let w of p.splice(0))w.close()},b=w=>{h||(h=!0,f=!0,m!==void 0&&clearTimeout(m),m=void 0,c.clear(),y(),l.down([[g,w]]))},m,x=w=>{if(m=void 0,f||h||c.size===0)return;let E=[];for(let C of c.values())E.push([v,C]);c.clear(),!(f||h||w!==T)&&l.down(E)};try{for(let w of t){let E=(0,le.watch)(w,{recursive:r},(C,O)=>{if(f||h||O==null)return;let F=String(O).replaceAll("\\","/"),D=(0,ke.resolve)(w,String(O)).replaceAll("\\","/"),_=(0,ke.resolve)(w).replaceAll("\\","/"),I=F.startsWith("./")?F.slice(2):F;if(!(u.length===0||U(D,u)||U(I,u))||U(D,d)||U(I,d))return;let H="change";if(C==="rename")try{H=(0,le.existsSync)(D)?"create":"delete"}catch{H="rename"}c.set(D,{type:H,path:D,root:_,relative_path:I,timestamp_ns:K()}),m!==void 0&&clearTimeout(m);let ce=T;m=setTimeout(()=>x(ce),o)});E.on("error",C=>b(C)),p.push(E)}}catch(w){b(w)}return()=>{f=!0,T+=1,m!==void 0&&clearTimeout(m),m=void 0,y(),c.clear()}},Yt(i))}var Ee=require("node:child_process");G();Z();function lt(n,e,t){return A(r=>{let o=(0,Ee.spawn)(n,e,{cwd:t?.cwd,env:t?.env,shell:t?.shell,signal:t?.signal,stdio:t?.stdio??"pipe"}),s=!0,a=null;return o.stdout?.on("data",i=>{s&&r.down([[v,{kind:"stdout",chunk:i}]])}),o.stderr?.on("data",i=>{s&&r.down([[v,{kind:"stderr",chunk:i}]])}),o.on("error",i=>{s&&(s=!1,r.down([[g,i]]))}),o.on("exit",(i,u)=>{a==null&&(a={code:i,signal:u})}),o.on("close",()=>{if(!s)return;s=!1;let i=a??{code:null,signal:null};r.down([[v,{kind:"exit",code:i.code,signal:i.signal}],[N]])}),()=>{if(s){s=!1,o.stdout?.removeAllListeners(),o.stderr?.removeAllListeners(),o.removeAllListeners("error"),o.removeAllListeners("exit"),o.removeAllListeners("close");try{o.kill("SIGTERM")}catch{}}}},{name:"from_spawn"})}function ct(n,e,t){return A(r=>{let o=(0,Ee.spawn)(n,e,{cwd:t?.cwd,env:t?.env,shell:t?.shell,signal:t?.signal,stdio:t?.stdio??"pipe"}),s=!0,a=[],i=[],u=null;return o.stdout?.on("data",d=>{s&&a.push(d)}),o.stderr?.on("data",d=>{s&&i.push(d)}),o.on("error",d=>{s&&(s=!1,r.down([[g,d]]))}),o.on("exit",(d,l)=>{u==null&&(u={code:d,signal:l})}),o.on("close",()=>{if(!s)return;s=!1;let d=u??{code:null,signal:null},l=Buffer.concat(a).toString("utf8"),c=Buffer.concat(i).toString("utf8");r.down([[v,{stdout:l,stderr:c,exitCode:d.code,signal:d.signal}],[N]])}),()=>{if(s){s=!1,o.stdout?.removeAllListeners(),o.stderr?.removeAllListeners(),o.removeAllListeners("error"),o.removeAllListeners("exit"),o.removeAllListeners("close");try{o.kill("SIGTERM")}catch{}}}},{name:"run_process"})}var pt=require("node:crypto"),S=require("node:fs"),W=require("node:path"),ht=require("node:sqlite");function Se(n){if(n===null||typeof n!="object")return n;if(Array.isArray(n))return n.map(Se);let e=n,t=Object.keys(e).sort(),r={};for(let o of t)r[o]=Se(e[o]);return r}function ft(n){return JSON.stringify(Se(n),void 0,0)}var Xt=new TextEncoder,Zt=new TextDecoder("utf-8",{fatal:!0}),Oe={name:"json",version:1,encode(n){return Xt.encode(ft(n))},decode(n){return JSON.parse(Zt.decode(n))}};function Ae(n,e={}){let t=e.codec??Oe,r=e.name??n.name??"snapshot",o=e.keyOf??(c=>c.name??e.name??n.name??"snapshot"),s,a=0,i=e.compactEvery,u,d={name:r,debounceMs:e.debounceMs,compactEvery:i,filter:e.filter,keyOf:o,save(c){if(!(e.filter&&!e.filter(c))&&(s={snapshot:c},a+=1,i!==void 0&&a%i===0||!e.debounceMs))return l()},load(){let c=u??r,p=n.read(c);if(p!==void 0)return p instanceof Uint8Array?p.length===0?void 0:t.decode(p):Promise.resolve(p).then(f=>f===void 0||f.length===0?void 0:t.decode(f))},async flush(){await l()},async rollback(){s=void 0}};function l(){let c=s;if(!c)return;s=void 0;let p=o(c.snapshot),f=t.encode(c.snapshot),h=n.write(p,f);if(h instanceof Promise)return h.then(()=>{u=p});u=p}return d}function Re(n,e={}){let t=e.codec??Oe,r=e.name??n.name??"append-log",o=e.keyOf??(p=>r),s=e.compactEvery,a=new Map,i=0,u,d={name:r,debounceMs:e.debounceMs,compactEvery:s,keyOf:o,appendEntries(p){if(p.length!==0){for(let f of p){let h=o(f),T=a.get(h);T||(T=[],a.set(h,T)),T.push(f)}if(i+=p.length,s!==void 0&&i%s===0||!e.debounceMs)return l()}},async loadEntries(p){let f=p?.keyFilter,h=n.list===void 0?f!==void 0?[f]:[r]:await Promise.resolve(n.list(f)),T=[];for(let y of h){let b=await Promise.resolve(n.read(y));if(b===void 0||b.length===0)continue;let m=t.decode(b);Array.isArray(m)&&T.push(...m)}return{entries:T,cursor:void 0}},async flush(){await l()},async rollback(){a=new Map}};function l(){if(a.size===0)return;let p=a;a=new Map;let f=(u??Promise.resolve()).then(()=>{let h=c(p);return h instanceof Promise?h:Promise.resolve()},()=>{let h=c(p);return h instanceof Promise?h:Promise.resolve()});return u=f.finally(()=>{u===f&&(u=void 0)}),u}function c(p){let f=[];for(let[h,T]of p){let y=n.read(h),b=m=>{let w=[...m===void 0||m.length===0?[]:t.decode(m)??[],...T],E=t.encode(w);return n.write(h,E)};if(y instanceof Promise)f.push(y.then(async m=>{let x=b(m);x instanceof Promise&&await x}));else{let m=b(y);m instanceof Promise&&f.push(m)}}if(f.length>0)return Promise.all(f).then(()=>{})}return d}function Me(n,e={}){let t=e.codec??Oe,r=e.name??n.name??"kv",o=e.compactEvery,s=new Map,a=0,i={name:r,debounceMs:e.debounceMs,compactEvery:o,filter:e.filter,save(d,l){if(!(e.filter&&!e.filter(d,l))&&(s.set(d,l),a+=1,o!==void 0&&a%o===0||!e.debounceMs))return u()},load(d){let l=n.read(d);if(l!==void 0)return l instanceof Uint8Array?l.length===0?void 0:t.decode(l):Promise.resolve(l).then(c=>c===void 0||c.length===0?void 0:t.decode(c))},delete(d){if(s.delete(d),!!n.delete)return n.delete(d)},list(d){return n.list?n.list(d):[]},async flush(){await u()},async rollback(){s=new Map}};function u(){if(s.size===0)return;let d=s;s=new Map;let l=[];for(let[c,p]of d){let f=t.encode(p),h=n.write(c,f);h instanceof Promise&&l.push(h)}if(l.length>0)return Promise.all(l).then(()=>{})}return i}function Q(n){let e=new TextEncoder,t=new TextDecoder("utf-8",{fatal:!0}),r=s=>{let a="";for(let i of s){if(i.length===1&&/[a-zA-Z0-9_-]/.test(i)){a+=i;continue}for(let u of e.encode(i))a+=`%${u.toString(16).padStart(2,"0")}`}return(0,W.join)(n,`${a}.bin`)},o=s=>{if(!s.endsWith(".bin"))return null;let a=s.slice(0,-4),i=[],u=l=>{for(let c=0;c<l.length;c++)i.push(l.charCodeAt(c))},d=0;for(;d<a.length;){let l=a[d];if(l==="%"&&d+2<a.length){let c=a.slice(d+1,d+3);if(/^[0-9a-f]{2}$/i.test(c)){i.push(Number.parseInt(c,16)),d+=3;continue}}u(l),d+=1}try{return t.decode(new Uint8Array(i))}catch{return null}};return{name:`file:${n}`,read(s){try{let a=(0,S.readFileSync)(r(s));return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}catch{return}},write(s,a){(0,S.mkdirSync)(n,{recursive:!0});let i=r(s),u=(0,W.basename)(i),d=(0,W.dirname)(i),l=(0,W.join)(d,`.${u}.${(0,pt.randomBytes)(8).toString("hex")}.tmp`);try{(0,S.writeFileSync)(l,a),(0,S.renameSync)(l,i)}catch(c){try{(0,S.unlinkSync)(l)}catch{}throw c}},delete(s){try{(0,S.unlinkSync)(r(s))}catch(a){if(a.code!=="ENOENT")throw a}},list(s){try{let a=(0,S.readdirSync)(n),i=[];for(let u of a){if(u.startsWith("."))continue;let d=o(u);d!==null&&(s!==void 0&&!d.startsWith(s)||i.push(d))}return i.sort()}catch(a){if(a.code==="ENOENT")return[];throw a}}}}function ee(n){let e=new ht.DatabaseSync(n);return e.exec("CREATE TABLE IF NOT EXISTS graphrefly_storage (k TEXT PRIMARY KEY, v BLOB NOT NULL)"),{name:`sqlite:${n}`,read(t){return e.prepare("SELECT v FROM graphrefly_storage WHERE k = ?").get(t)?.v},write(t,r){e.prepare("INSERT OR REPLACE INTO graphrefly_storage (k, v) VALUES (?, ?)").run(t,r)},delete(t){e.prepare("DELETE FROM graphrefly_storage WHERE k = ?").run(t)},list(t){if(t===void 0)return e.prepare("SELECT k FROM graphrefly_storage ORDER BY k").all().map(a=>a.k);let r=t.replace(/[\\%_]/g,"\\$&");return e.prepare("SELECT k FROM graphrefly_storage WHERE k LIKE ? ESCAPE '\\' ORDER BY k").all(`${r}%`).map(s=>s.k)},close(){try{e.close()}catch{}}}}function mt(n,e){return Ae(Q(n),e)}function gt(n,e){return Re(Q(n),e)}function Tt(n,e){let t=ee(n),r=Ae(t,e);return Object.assign(r,{close:()=>t.close()})}function bt(n,e){let t=ee(n),r=Re(t,e);return Object.assign(r,{close:()=>t.close()})}function yt(n,e){return Me(Q(n),e)}function vt(n,e){let t=ee(n),r=Me(t,e);return Object.assign(r,{close:()=>t.close()})}0&&(module.exports={fileAppendLog,fileBackend,fileKv,fileSnapshot,fromFSWatch,fromGitHook,fromSpawn,runProcess,sqliteAppendLog,sqliteBackend,sqliteKv,sqliteSnapshot});
@@ -1,4 +1,4 @@
1
- import { a as NodeOptions, N as Node } from '../node-BYInONRr.cjs';
1
+ import { a as NodeOptions, N as Node } from '../node-ClS5yC-B.cjs';
2
2
  export { fileAppendLog, fileBackend, fileKv, fileSnapshot, sqliteAppendLog, sqliteBackend, sqliteKv, sqliteSnapshot } from './storage-tiers-node.cjs';
3
3
  import './storage-tiers.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as NodeOptions, N as Node } from '../node-BYInONRr.js';
1
+ import { a as NodeOptions, N as Node } from '../node-ClS5yC-B.js';
2
2
  export { fileAppendLog, fileBackend, fileKv, fileSnapshot, sqliteAppendLog, sqliteBackend, sqliteKv, sqliteSnapshot } from './storage-tiers-node.js';
3
3
  import './storage-tiers.js';
4
4
 
@@ -1,2 +1,2 @@
1
- import{a as K,b as j,c as I,d as D,e as z,f as $,g as Q,h as U}from"../chunk-VN6RDSK2.js";import"../chunk-D5RFJOZ2.js";import"../chunk-CE72X3WO.js";import{x as P}from"../chunk-AK5RHMC5.js";import"../chunk-4VVTGLXJ.js";import{d as E,e as g,f as L}from"../chunk-L77I47VU.js";import"../chunk-35JTVPOX.js";import{F as v,p as F}from"../chunk-LYCLF26R.js";import{b as y,i as B,j as x}from"../chunk-CK2E7BTU.js";import{a as q}from"../chunk-QYADASLV.js";function V(a,h){let{pollMs:o=5e3,include:c,exclude:e,maxConsecutiveErrors:t=1}=h??{},u=c?.map(E)??[],n=e?.map(E)??[],{execFileSync:d}=q("child_process"),r=S=>d("git",S,{cwd:a,encoding:"utf-8"}).trim(),l,i=0;return P(L(0,{period:o}),()=>v(S=>{try{let s=r(["rev-parse","HEAD"]);if(!s)return i=0,()=>{};if(l===void 0)return l=s,i=0,()=>{};if(s===l)return i=0,()=>{};let p=r(["diff","--name-only",`${l}..${s}`]).split(`
1
+ import{a as K,b as j,c as I,d as D,e as z,f as $,g as Q,h as U}from"../chunk-VN6RDSK2.js";import"../chunk-D5RFJOZ2.js";import"../chunk-CE72X3WO.js";import{x as L}from"../chunk-VOPGGIL7.js";import"../chunk-4VVTGLXJ.js";import"../chunk-35JTVPOX.js";import{d as E,e as g,f as P}from"../chunk-V5A7M7RJ.js";import{F as v,p as F}from"../chunk-LYCLF26R.js";import{b as y,i as B,j as x}from"../chunk-CK2E7BTU.js";import{a as q}from"../chunk-QYADASLV.js";function V(a,h){let{pollMs:o=5e3,include:c,exclude:e,maxConsecutiveErrors:t=1}=h??{},u=c?.map(E)??[],n=e?.map(E)??[],{execFileSync:d}=q("child_process"),r=S=>d("git",S,{cwd:a,encoding:"utf-8"}).trim(),l,i=0;return L(P(0,{period:o}),()=>v(S=>{try{let s=r(["rev-parse","HEAD"]);if(!s)return i=0,()=>{};if(l===void 0)return l=s,i=0,()=>{};if(s===l)return i=0,()=>{};let p=r(["diff","--name-only",`${l}..${s}`]).split(`
2
2
  `).filter(Boolean);u.length>0&&(p=p.filter(w=>g(w,u))),n.length>0&&(p=p.filter(w=>!g(w,n)));let k=r(["log","-1","--format=%s",s]),T=r(["log","-1","--format=%an",s]);S.emit({hook:"post-commit",commit:s,files:p,message:k,author:T,timestamp_ns:F()}),l=s,i=0}catch(s){i+=1,i>=t&&S.down([[x,s]])}return()=>{}}))}import{existsSync as X,watch as Y}from"fs";import{resolve as _}from"path";function Z(a){return{describeKind:"producer",...a}}function Se(a,h){let o=Array.isArray(a)?a:[a];if(o.length===0)throw new RangeError("fromFSWatch expects at least one path");let{recursive:c=!0,debounce:e=100,include:t,exclude:u,...n}=h??{},d=t?.map(E)??[],r=(u??["**/node_modules/**","**/.git/**","**/dist/**"]).map(E);return v(l=>{let i=new Map,S=[],s=!1,p=!1,k=0,T=()=>{for(let f of S.splice(0))f.close()},w=f=>{p||(p=!0,s=!0,m!==void 0&&clearTimeout(m),m=void 0,i.clear(),T(),l.down([[x,f]]))},m,H=f=>{if(m=void 0,s||p||i.size===0)return;let O=[];for(let b of i.values())O.push([y,b]);i.clear(),!(s||p||f!==k)&&l.down(O)};try{for(let f of o){let O=Y(f,{recursive:c},(b,N)=>{if(s||p||N==null)return;let M=String(N).replaceAll("\\","/"),A=_(f,String(N)).replaceAll("\\","/"),J=_(f).replaceAll("\\","/"),R=M.startsWith("./")?M.slice(2):M;if(!(d.length===0||g(A,d)||g(R,d))||g(A,r)||g(R,r))return;let G="change";if(b==="rename")try{G=X(A)?"create":"delete"}catch{G="rename"}i.set(A,{type:G,path:A,root:J,relative_path:R,timestamp_ns:F()}),m!==void 0&&clearTimeout(m);let W=k;m=setTimeout(()=>H(W),e)});O.on("error",b=>w(b)),S.push(O)}}catch(f){w(f)}return()=>{s=!0,k+=1,m!==void 0&&clearTimeout(m),m=void 0,T(),i.clear()}},Z(n))}import{spawn as C}from"child_process";function ee(a,h,o){return v(c=>{let e=C(a,h,{cwd:o?.cwd,env:o?.env,shell:o?.shell,signal:o?.signal,stdio:o?.stdio??"pipe"}),t=!0,u=null;return e.stdout?.on("data",n=>{t&&c.down([[y,{kind:"stdout",chunk:n}]])}),e.stderr?.on("data",n=>{t&&c.down([[y,{kind:"stderr",chunk:n}]])}),e.on("error",n=>{t&&(t=!1,c.down([[x,n]]))}),e.on("exit",(n,d)=>{u==null&&(u={code:n,signal:d})}),e.on("close",()=>{if(!t)return;t=!1;let n=u??{code:null,signal:null};c.down([[y,{kind:"exit",code:n.code,signal:n.signal}],[B]])}),()=>{if(t){t=!1,e.stdout?.removeAllListeners(),e.stderr?.removeAllListeners(),e.removeAllListeners("error"),e.removeAllListeners("exit"),e.removeAllListeners("close");try{e.kill("SIGTERM")}catch{}}}},{name:"from_spawn"})}function te(a,h,o){return v(c=>{let e=C(a,h,{cwd:o?.cwd,env:o?.env,shell:o?.shell,signal:o?.signal,stdio:o?.stdio??"pipe"}),t=!0,u=[],n=[],d=null;return e.stdout?.on("data",r=>{t&&u.push(r)}),e.stderr?.on("data",r=>{t&&n.push(r)}),e.on("error",r=>{t&&(t=!1,c.down([[x,r]]))}),e.on("exit",(r,l)=>{d==null&&(d={code:r,signal:l})}),e.on("close",()=>{if(!t)return;t=!1;let r=d??{code:null,signal:null},l=Buffer.concat(u).toString("utf8"),i=Buffer.concat(n).toString("utf8");c.down([[y,{stdout:l,stderr:i,exitCode:r.code,signal:r.signal}],[B]])}),()=>{if(t){t=!1,e.stdout?.removeAllListeners(),e.stderr?.removeAllListeners(),e.removeAllListeners("error"),e.removeAllListeners("exit"),e.removeAllListeners("close");try{e.kill("SIGTERM")}catch{}}}},{name:"run_process"})}export{D as fileAppendLog,K as fileBackend,Q as fileKv,I as fileSnapshot,Se as fromFSWatch,V as fromGitHook,ee as fromSpawn,te as runProcess,$ as sqliteAppendLog,j as sqliteBackend,U as sqliteKv,z as sqliteSnapshot};