@graphrefly/graphrefly 0.27.0 → 0.28.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 (428) hide show
  1. package/dist/backoff-HPZMEZNF.js +1 -0
  2. package/dist/cascading-B-5zmAUv.d.cts +180 -0
  3. package/dist/cascading-D9WG1-9L.d.ts +180 -0
  4. package/dist/chunk-2FOAM3OR.js +1 -0
  5. package/dist/chunk-2PMCKKRK.js +1 -0
  6. package/dist/chunk-3JXNEPCD.js +2 -0
  7. package/dist/chunk-3R5HFPX7.js +78 -0
  8. package/dist/chunk-4GKB4OUJ.js +1 -0
  9. package/dist/chunk-4VVTGLXJ.js +1 -0
  10. package/dist/chunk-5QDBSZBV.js +1 -0
  11. package/dist/chunk-6QZNQS5B.js +1 -0
  12. package/dist/chunk-6V3SEX2I.js +1 -0
  13. package/dist/chunk-76A3HVQE.js +9 -0
  14. package/dist/chunk-7H6LGFUG.js +64 -0
  15. package/dist/chunk-CK2E7BTU.js +1 -0
  16. package/dist/chunk-CKCSDI7T.js +6 -0
  17. package/dist/chunk-CRXTH3SH.js +1 -0
  18. package/dist/chunk-CWLN3X3N.js +1 -0
  19. package/dist/chunk-D7A7DBE4.js +1 -0
  20. package/dist/chunk-DBGGMN3D.js +1 -0
  21. package/dist/chunk-DQA3UIQ2.js +1 -0
  22. package/dist/chunk-ERLIRFPA.js +1 -0
  23. package/dist/chunk-ESMPEKEV.js +1 -0
  24. package/dist/chunk-ETWTCCJI.js +1 -0
  25. package/dist/chunk-FNYWM6JC.js +1 -0
  26. package/dist/chunk-GHJJR5P4.js +1 -0
  27. package/dist/chunk-GPW2V3RE.js +1 -0
  28. package/dist/chunk-I6VIH3VA.js +1 -0
  29. package/dist/chunk-K2GNMCQT.js +1 -0
  30. package/dist/chunk-LBTDSCCO.js +3 -0
  31. package/dist/chunk-LQ3Y5NJS.js +1 -0
  32. package/dist/chunk-MIQTDPY4.js +5 -0
  33. package/dist/chunk-MTTAAPCK.js +1 -0
  34. package/dist/chunk-OAWLCNJJ.js +1 -0
  35. package/dist/chunk-OBKQQA5I.js +1 -0
  36. package/dist/chunk-OYHGKYQM.js +1 -0
  37. package/dist/chunk-PIOGHC63.js +1 -0
  38. package/dist/chunk-QWAPKG3O.js +2 -0
  39. package/dist/chunk-QYADASLV.js +1 -0
  40. package/dist/chunk-RHESUC3V.js +43 -0
  41. package/dist/chunk-S35VARIR.js +1 -0
  42. package/dist/chunk-SC3U7ETD.js +1 -0
  43. package/dist/chunk-U3AICJKU.js +1 -0
  44. package/dist/chunk-UMBIDLJ4.js +1 -0
  45. package/dist/chunk-UPHHLMHE.js +1 -0
  46. package/dist/chunk-UPXUCFMX.js +1 -0
  47. package/dist/chunk-UWJE5FQA.js +18 -0
  48. package/dist/chunk-V6YQICXZ.js +1 -0
  49. package/dist/chunk-VIMF6LGM.js +1 -0
  50. package/dist/chunk-VJLMUKOI.js +1 -0
  51. package/dist/chunk-VPYBOXVT.js +1 -0
  52. package/dist/chunk-VTPVOGHH.js +1 -0
  53. package/dist/chunk-WQ2BN6X6.js +1 -0
  54. package/dist/chunk-XAUNPIMX.js +1 -0
  55. package/dist/chunk-Y2EMPB3I.js +1 -0
  56. package/dist/chunk-Z4HDAS2Q.js +1 -0
  57. package/dist/chunk-ZB5EHBIO.js +1 -0
  58. package/dist/chunk-ZV2DXV5A.js +23 -0
  59. package/dist/compat/index.cjs +14 -7656
  60. package/dist/compat/index.d.cts +15 -14
  61. package/dist/compat/index.d.ts +15 -14
  62. package/dist/compat/index.js +1 -50
  63. package/dist/compat/jotai/index.cjs +1 -2048
  64. package/dist/compat/jotai/index.d.cts +2 -2
  65. package/dist/compat/jotai/index.d.ts +2 -2
  66. package/dist/compat/jotai/index.js +1 -9
  67. package/dist/compat/nanostores/index.cjs +1 -2175
  68. package/dist/compat/nanostores/index.d.cts +2 -2
  69. package/dist/compat/nanostores/index.d.ts +2 -2
  70. package/dist/compat/nanostores/index.js +1 -23
  71. package/dist/compat/nestjs/index.cjs +14 -6782
  72. package/dist/compat/nestjs/index.d.cts +7 -6
  73. package/dist/compat/nestjs/index.d.ts +7 -6
  74. package/dist/compat/nestjs/index.js +1 -83
  75. package/dist/compat/react/index.cjs +1 -141
  76. package/dist/compat/react/index.d.cts +2 -2
  77. package/dist/compat/react/index.d.ts +2 -2
  78. package/dist/compat/react/index.js +1 -12
  79. package/dist/compat/solid/index.cjs +1 -128
  80. package/dist/compat/solid/index.d.cts +2 -2
  81. package/dist/compat/solid/index.d.ts +2 -2
  82. package/dist/compat/solid/index.js +1 -12
  83. package/dist/compat/svelte/index.cjs +1 -131
  84. package/dist/compat/svelte/index.d.cts +2 -2
  85. package/dist/compat/svelte/index.d.ts +2 -2
  86. package/dist/compat/svelte/index.js +1 -12
  87. package/dist/compat/vue/index.cjs +1 -146
  88. package/dist/compat/vue/index.d.cts +2 -2
  89. package/dist/compat/vue/index.d.ts +2 -2
  90. package/dist/compat/vue/index.js +1 -12
  91. package/dist/compat/zustand/index.cjs +6 -4931
  92. package/dist/compat/zustand/index.d.cts +5 -5
  93. package/dist/compat/zustand/index.d.ts +5 -5
  94. package/dist/compat/zustand/index.js +1 -12
  95. package/dist/composite-B-xqw4Kk.d.cts +69 -0
  96. package/dist/composite-BhbKHbOS.d.ts +69 -0
  97. package/dist/core/index.cjs +1 -2271
  98. package/dist/core/index.d.cts +4 -4
  99. package/dist/core/index.d.ts +4 -4
  100. package/dist/core/index.js +1 -110
  101. package/dist/extra/browser.cjs +1 -0
  102. package/dist/extra/browser.d.cts +3 -0
  103. package/dist/extra/browser.d.ts +3 -0
  104. package/dist/extra/browser.js +1 -0
  105. package/dist/extra/index.cjs +23 -9971
  106. package/dist/extra/index.d.cts +13 -6
  107. package/dist/extra/index.d.ts +13 -6
  108. package/dist/extra/index.js +1 -381
  109. package/dist/extra/node.cjs +3 -0
  110. package/dist/extra/node.d.cts +81 -0
  111. package/dist/extra/node.d.ts +81 -0
  112. package/dist/extra/node.js +2 -0
  113. package/dist/extra/operators.cjs +1 -0
  114. package/dist/extra/operators.d.cts +910 -0
  115. package/dist/extra/operators.d.ts +910 -0
  116. package/dist/extra/operators.js +1 -0
  117. package/dist/extra/reactive.cjs +1 -0
  118. package/dist/extra/reactive.d.cts +352 -0
  119. package/dist/extra/reactive.d.ts +352 -0
  120. package/dist/extra/reactive.js +1 -0
  121. package/dist/extra/sources.cjs +1 -2486
  122. package/dist/extra/sources.d.cts +6 -2
  123. package/dist/extra/sources.d.ts +6 -2
  124. package/dist/extra/sources.js +1 -57
  125. package/dist/extra/storage-browser.cjs +1 -0
  126. package/dist/extra/storage-browser.d.cts +71 -0
  127. package/dist/extra/storage-browser.d.ts +71 -0
  128. package/dist/extra/storage-browser.js +1 -0
  129. package/dist/extra/storage-core.cjs +1 -0
  130. package/dist/extra/storage-core.d.cts +98 -0
  131. package/dist/extra/storage-core.d.ts +98 -0
  132. package/dist/extra/storage-core.js +1 -0
  133. package/dist/extra/storage-node.cjs +2 -0
  134. package/dist/extra/storage-node.d.cts +60 -0
  135. package/dist/extra/storage-node.d.ts +60 -0
  136. package/dist/extra/storage-node.js +1 -0
  137. package/dist/fallback-BaTS7vVY.d.cts +258 -0
  138. package/dist/fallback-eOm3LNxP.d.ts +258 -0
  139. package/dist/graph/index.cjs +6 -5030
  140. package/dist/graph/index.d.cts +6 -5
  141. package/dist/graph/index.d.ts +6 -5
  142. package/dist/graph/index.js +1 -50
  143. package/dist/{graph-CCwGKLCm.d.ts → graph-BZGRXwOm.d.ts} +134 -31
  144. package/dist/{graph-DNCrvZSn.d.cts → graph-D48Qw9Cg.d.cts} +134 -31
  145. package/dist/index-8FSVk4Uf.d.ts +135 -0
  146. package/dist/index-9oDeHH2u.d.cts +291 -0
  147. package/dist/{messaging-XDoYablx.d.ts → index-B0c4cmIO.d.ts} +31 -93
  148. package/dist/{index-VdHQMPy1.d.ts → index-B1AmmSlb.d.ts} +1 -1
  149. package/dist/{index-VHqptjhu.d.cts → index-B2pwesl9.d.cts} +1 -1
  150. package/dist/index-BHvIquRZ.d.ts +1957 -0
  151. package/dist/{index-Dzk2hrlR.d.ts → index-BVHOrDwO.d.ts} +1 -1
  152. package/dist/{index-CxFrXH4m.d.ts → index-BWJV63ti.d.ts} +1 -1
  153. package/dist/{index-Xi3u0HCQ.d.cts → index-B_agccPe.d.cts} +1 -1
  154. package/dist/index-BgyGlizc.d.ts +163 -0
  155. package/dist/index-BpA5c4G9.d.ts +357 -0
  156. package/dist/index-BpIFjILY.d.cts +357 -0
  157. package/dist/{index-3lsddbbS.d.ts → index-Bqachn9_.d.ts} +1 -1
  158. package/dist/index-Btib9rsU.d.ts +607 -0
  159. package/dist/{index-wEn0eFe8.d.ts → index-BwM9BEkt.d.ts} +1 -1
  160. package/dist/index-BxJ86YZZ.d.cts +105 -0
  161. package/dist/{audit-DRlSzBu9.d.ts → index-C73n7lo-.d.cts} +27 -21
  162. package/dist/index-CEXXwWVH.d.cts +192 -0
  163. package/dist/index-CHEswufn.d.cts +163 -0
  164. package/dist/{index-C0svESO4.d.ts → index-CMn8S8Hw.d.ts} +1 -1
  165. package/dist/{index-ByQxazQJ.d.cts → index-CRO83MmV.d.cts} +1 -1
  166. package/dist/{index-BuEoe-Qu.d.ts → index-CloUk1kY.d.ts} +9 -9
  167. package/dist/index-CpgYhnrG.d.ts +291 -0
  168. package/dist/{index-DO_6JN9Z.d.cts → index-Cyojz0AE.d.cts} +1 -1
  169. package/dist/{demo-shell-BDkOptd6.d.ts → index-CzobVSMr.d.ts} +14 -14
  170. package/dist/index-Czq6ynh8.d.ts +143 -0
  171. package/dist/{index-BaSM3aYt.d.ts → index-D-YB-Vl3.d.ts} +3 -3
  172. package/dist/index-DAlweici.d.ts +231 -0
  173. package/dist/index-DEwTb_fm.d.cts +1957 -0
  174. package/dist/{index-DYme44FM.d.cts → index-DL-rYJrx.d.cts} +1 -1
  175. package/dist/{memory-li6FL5RM.d.ts → index-DP4ZTkdw.d.ts} +26 -26
  176. package/dist/{index-BwfLUNw4.d.ts → index-DUqMOlKZ.d.cts} +173 -2040
  177. package/dist/{index-B1tloyhO.d.cts → index-D_NwnRYS.d.cts} +1 -1
  178. package/dist/index-DaLJvH8Z.d.ts +105 -0
  179. package/dist/index-DcXZBF5a.d.cts +135 -0
  180. package/dist/index-DfyOkTvs.d.ts +321 -0
  181. package/dist/{index-B9B7_HEY.d.ts → index-DiOXyAwt.d.ts} +1 -1
  182. package/dist/index-DpHe5e0Q.d.ts +186 -0
  183. package/dist/index-DraikLjn.d.ts +86 -0
  184. package/dist/{index-D8wS_PeY.d.cts → index-DxsnAMWD.d.cts} +9 -9
  185. package/dist/{messaging-Gt4LPbyA.d.cts → index-DyxjtScX.d.cts} +31 -93
  186. package/dist/{audit-ClmqGOCx.d.cts → index-HDpJe9hX.d.ts} +27 -21
  187. package/dist/{index-DVGiGFGT.d.cts → index-O6TgGUBV.d.cts} +3 -3
  188. package/dist/{index-B6EhDnjH.d.cts → index-Oi8d8w4R.d.cts} +1 -1
  189. package/dist/{index-C8oil6M6.d.ts → index-ROpQmGjE.d.ts} +30 -6
  190. package/dist/index-RukJ4DLS.d.cts +607 -0
  191. package/dist/{index-BHlKbUwO.d.cts → index-ZftwfxJM.d.ts} +173 -2040
  192. package/dist/{index-BPVt8kqc.d.ts → index-cByzxQIC.d.cts} +10 -195
  193. package/dist/index-dtN7YA2x.d.cts +143 -0
  194. package/dist/{index-CI3DprxP.d.cts → index-fM6y00vT.d.cts} +30 -6
  195. package/dist/{index-DlLp-2Xn.d.cts → index-m-yHof5p.d.ts} +10 -195
  196. package/dist/index-pXrDMpRO.d.cts +231 -0
  197. package/dist/index-rHJSKsU8.d.cts +186 -0
  198. package/dist/index-rX8HBM5h.d.cts +321 -0
  199. package/dist/{index-CO8uBlUh.d.cts → index-rnwQly8X.d.cts} +147 -20
  200. package/dist/index-sm373fsH.d.ts +192 -0
  201. package/dist/{memory-C6Z2tGpC.d.cts → index-tbf2gKHd.d.cts} +26 -26
  202. package/dist/{demo-shell-Crid1WdR.d.cts → index-u15meRxL.d.cts} +14 -14
  203. package/dist/{index-B6D3QNSA.d.ts → index-umtoWT8K.d.ts} +147 -20
  204. package/dist/index-vscRDkjW.d.cts +86 -0
  205. package/dist/index.cjs +150 -24142
  206. package/dist/index.d.cts +69 -2099
  207. package/dist/index.d.ts +69 -2099
  208. package/dist/index.js +1 -3868
  209. package/dist/{meta-CbznRPYJ.d.ts → meta-Cgj6zeji.d.cts} +5 -5
  210. package/dist/{meta-BxCA7rcr.d.cts → meta-CwesDrMD.d.ts} +5 -5
  211. package/dist/{node-BmerH3kS.d.cts → node-Cc1TniY8.d.cts} +36 -9
  212. package/dist/{node-BmerH3kS.d.ts → node-Cc1TniY8.d.ts} +36 -9
  213. package/dist/{observable-BgGUwcqp.d.ts → observable-Ct-gJ9jI.d.ts} +1 -1
  214. package/dist/{observable-DJt_AxzQ.d.cts → observable-glXQoGj2.d.cts} +1 -1
  215. package/dist/patterns/ai/browser.cjs +25 -0
  216. package/dist/patterns/ai/browser.d.cts +127 -0
  217. package/dist/patterns/ai/browser.d.ts +127 -0
  218. package/dist/patterns/ai/browser.js +3 -0
  219. package/dist/patterns/ai/index.cjs +91 -0
  220. package/dist/patterns/ai/index.d.cts +17 -0
  221. package/dist/patterns/ai/index.d.ts +17 -0
  222. package/dist/patterns/ai/index.js +1 -0
  223. package/dist/patterns/ai/node.cjs +2 -0
  224. package/dist/patterns/ai/node.d.cts +58 -0
  225. package/dist/patterns/ai/node.d.ts +58 -0
  226. package/dist/patterns/ai/node.js +1 -0
  227. package/dist/patterns/audit/index.cjs +6 -0
  228. package/dist/patterns/audit/index.d.cts +6 -0
  229. package/dist/patterns/audit/index.d.ts +6 -0
  230. package/dist/patterns/audit/index.js +1 -0
  231. package/dist/patterns/cqrs/index.cjs +6 -0
  232. package/dist/patterns/cqrs/index.d.cts +5 -0
  233. package/dist/patterns/cqrs/index.d.ts +5 -0
  234. package/dist/patterns/cqrs/index.js +1 -0
  235. package/dist/patterns/demo-shell/index.cjs +7 -0
  236. package/dist/patterns/demo-shell/index.d.cts +6 -0
  237. package/dist/patterns/demo-shell/index.d.ts +6 -0
  238. package/dist/patterns/demo-shell/index.js +1 -0
  239. package/dist/patterns/domain-templates/index.cjs +6 -0
  240. package/dist/patterns/domain-templates/index.d.cts +5 -0
  241. package/dist/patterns/domain-templates/index.d.ts +5 -0
  242. package/dist/patterns/domain-templates/index.js +1 -0
  243. package/dist/patterns/graphspec/index.cjs +83 -0
  244. package/dist/patterns/graphspec/index.d.cts +7 -0
  245. package/dist/patterns/graphspec/index.d.ts +7 -0
  246. package/dist/patterns/graphspec/index.js +1 -0
  247. package/dist/patterns/guarded-execution/index.cjs +6 -0
  248. package/dist/patterns/guarded-execution/index.d.cts +7 -0
  249. package/dist/patterns/guarded-execution/index.d.ts +7 -0
  250. package/dist/patterns/guarded-execution/index.js +1 -0
  251. package/dist/patterns/harness/index.cjs +48 -0
  252. package/dist/patterns/harness/index.d.cts +8 -0
  253. package/dist/patterns/harness/index.d.ts +8 -0
  254. package/dist/patterns/harness/index.js +1 -0
  255. package/dist/patterns/job-queue/index.cjs +6 -0
  256. package/dist/patterns/job-queue/index.d.cts +5 -0
  257. package/dist/patterns/job-queue/index.d.ts +5 -0
  258. package/dist/patterns/job-queue/index.js +1 -0
  259. package/dist/patterns/lens/index.cjs +6 -0
  260. package/dist/patterns/lens/index.d.cts +7 -0
  261. package/dist/patterns/lens/index.d.ts +7 -0
  262. package/dist/patterns/lens/index.js +1 -0
  263. package/dist/patterns/memory/index.cjs +6 -0
  264. package/dist/patterns/memory/index.d.cts +5 -0
  265. package/dist/patterns/memory/index.d.ts +5 -0
  266. package/dist/patterns/memory/index.js +1 -0
  267. package/dist/patterns/messaging/index.cjs +6 -0
  268. package/dist/patterns/messaging/index.d.cts +5 -0
  269. package/dist/patterns/messaging/index.d.ts +5 -0
  270. package/dist/patterns/messaging/index.js +1 -0
  271. package/dist/patterns/orchestration/index.cjs +6 -0
  272. package/dist/patterns/orchestration/index.d.cts +6 -0
  273. package/dist/patterns/orchestration/index.d.ts +6 -0
  274. package/dist/patterns/orchestration/index.js +1 -0
  275. package/dist/patterns/reactive-layout/index.cjs +7 -6444
  276. package/dist/patterns/reactive-layout/index.d.cts +6 -6
  277. package/dist/patterns/reactive-layout/index.d.ts +6 -6
  278. package/dist/patterns/reactive-layout/index.js +1 -56
  279. package/dist/patterns/reduction/index.cjs +6 -0
  280. package/dist/patterns/reduction/index.d.cts +5 -0
  281. package/dist/patterns/reduction/index.d.ts +5 -0
  282. package/dist/patterns/reduction/index.js +1 -0
  283. package/dist/patterns/refine-loop/index.cjs +8 -0
  284. package/dist/patterns/refine-loop/index.d.cts +7 -0
  285. package/dist/patterns/refine-loop/index.d.ts +7 -0
  286. package/dist/patterns/refine-loop/index.js +1 -0
  287. package/dist/patterns/resilient-pipeline/index.cjs +1 -0
  288. package/dist/patterns/resilient-pipeline/index.d.cts +7 -0
  289. package/dist/patterns/resilient-pipeline/index.d.ts +7 -0
  290. package/dist/patterns/resilient-pipeline/index.js +1 -0
  291. package/dist/patterns/surface/index.cjs +14 -0
  292. package/dist/patterns/surface/index.d.cts +8 -0
  293. package/dist/patterns/surface/index.d.ts +8 -0
  294. package/dist/patterns/surface/index.js +1 -0
  295. package/dist/{reactive-layout-MQP--J3F.d.cts → reactive-layout-CpYb5qLP.d.cts} +2 -2
  296. package/dist/{reactive-layout-u5Ulnqag.d.ts → reactive-layout-D8u4wuUR.d.ts} +2 -2
  297. package/dist/reactive-log-DPzuUDj5.d.cts +190 -0
  298. package/dist/reactive-log-YuH9VYN8.d.ts +190 -0
  299. package/dist/{composite-aUCvjZVR.d.ts → reactive-map-CdbNoSgP.d.ts} +2 -67
  300. package/dist/{composite-C7PcQvcs.d.cts → reactive-map-DUeRmb9d.d.cts} +2 -67
  301. package/dist/resilience-Ba5-b4WD.d.cts +493 -0
  302. package/dist/resilience-CGRzhnD3.d.ts +493 -0
  303. package/dist/resilience-QAHKANT5.js +1 -0
  304. package/dist/{sugar-D02n5JjF.d.cts → sugar-BV0htudb.d.cts} +8 -4
  305. package/dist/{sugar-CCOxXK1e.d.ts → sugar-Dtyrq2_q.d.ts} +8 -4
  306. package/dist/topology-tree-CYHOwQZ_.d.ts +25 -0
  307. package/dist/topology-tree-DROUdq5B.d.cts +25 -0
  308. package/dist/types-O3GzJY2U.d.cts +401 -0
  309. package/dist/types-u64Ose53.d.ts +401 -0
  310. package/package.json +252 -22
  311. package/dist/ai-CaR_912Q.d.cts +0 -1033
  312. package/dist/ai-WlRltJV7.d.ts +0 -1033
  313. package/dist/chunk-3ZWCKRHX.js +0 -117
  314. package/dist/chunk-3ZWCKRHX.js.map +0 -1
  315. package/dist/chunk-7TAQJHQV.js +0 -103
  316. package/dist/chunk-7TAQJHQV.js.map +0 -1
  317. package/dist/chunk-APFNLIRG.js +0 -62
  318. package/dist/chunk-APFNLIRG.js.map +0 -1
  319. package/dist/chunk-AT5LKYNL.js +0 -395
  320. package/dist/chunk-AT5LKYNL.js.map +0 -1
  321. package/dist/chunk-BQ6RQQFF.js +0 -5087
  322. package/dist/chunk-BQ6RQQFF.js.map +0 -1
  323. package/dist/chunk-BVZYTZ5H.js +0 -599
  324. package/dist/chunk-BVZYTZ5H.js.map +0 -1
  325. package/dist/chunk-DST5DKZS.js +0 -1371
  326. package/dist/chunk-DST5DKZS.js.map +0 -1
  327. package/dist/chunk-GTE6PWRZ.js +0 -866
  328. package/dist/chunk-GTE6PWRZ.js.map +0 -1
  329. package/dist/chunk-HXZEYDUR.js +0 -94
  330. package/dist/chunk-HXZEYDUR.js.map +0 -1
  331. package/dist/chunk-J22W6HV3.js +0 -107
  332. package/dist/chunk-J22W6HV3.js.map +0 -1
  333. package/dist/chunk-J2VBW3DZ.js +0 -302
  334. package/dist/chunk-J2VBW3DZ.js.map +0 -1
  335. package/dist/chunk-JSCT3CR4.js +0 -38
  336. package/dist/chunk-JSCT3CR4.js.map +0 -1
  337. package/dist/chunk-JWBCY4NC.js +0 -330
  338. package/dist/chunk-JWBCY4NC.js.map +0 -1
  339. package/dist/chunk-K2AUJHVP.js +0 -2251
  340. package/dist/chunk-K2AUJHVP.js.map +0 -1
  341. package/dist/chunk-MJ2NKQQL.js +0 -119
  342. package/dist/chunk-MJ2NKQQL.js.map +0 -1
  343. package/dist/chunk-N6UR7YVY.js +0 -198
  344. package/dist/chunk-N6UR7YVY.js.map +0 -1
  345. package/dist/chunk-NC6S43JJ.js +0 -456
  346. package/dist/chunk-NC6S43JJ.js.map +0 -1
  347. package/dist/chunk-OFVJBJXR.js +0 -98
  348. package/dist/chunk-OFVJBJXR.js.map +0 -1
  349. package/dist/chunk-OHISZPOJ.js +0 -97
  350. package/dist/chunk-OHISZPOJ.js.map +0 -1
  351. package/dist/chunk-OU5CQKNW.js +0 -102
  352. package/dist/chunk-OU5CQKNW.js.map +0 -1
  353. package/dist/chunk-PF7GRZMW.js +0 -2712
  354. package/dist/chunk-PF7GRZMW.js.map +0 -1
  355. package/dist/chunk-PHOUUNK7.js +0 -2291
  356. package/dist/chunk-PHOUUNK7.js.map +0 -1
  357. package/dist/chunk-RNHBMHKA.js +0 -1665
  358. package/dist/chunk-RNHBMHKA.js.map +0 -1
  359. package/dist/chunk-SX52TAR4.js +0 -110
  360. package/dist/chunk-SX52TAR4.js.map +0 -1
  361. package/dist/chunk-VYPWMZ6H.js +0 -98
  362. package/dist/chunk-VYPWMZ6H.js.map +0 -1
  363. package/dist/chunk-WBZOVTYK.js +0 -171
  364. package/dist/chunk-WBZOVTYK.js.map +0 -1
  365. package/dist/chunk-WKNUIZOY.js +0 -354
  366. package/dist/chunk-WKNUIZOY.js.map +0 -1
  367. package/dist/chunk-X3VMZYBT.js +0 -713
  368. package/dist/chunk-X3VMZYBT.js.map +0 -1
  369. package/dist/chunk-X5R3GL6H.js +0 -525
  370. package/dist/chunk-X5R3GL6H.js.map +0 -1
  371. package/dist/chunk-XGPU467M.js +0 -136
  372. package/dist/chunk-XGPU467M.js.map +0 -1
  373. package/dist/compat/index.cjs.map +0 -1
  374. package/dist/compat/index.js.map +0 -1
  375. package/dist/compat/jotai/index.cjs.map +0 -1
  376. package/dist/compat/jotai/index.js.map +0 -1
  377. package/dist/compat/nanostores/index.cjs.map +0 -1
  378. package/dist/compat/nanostores/index.js.map +0 -1
  379. package/dist/compat/nestjs/index.cjs.map +0 -1
  380. package/dist/compat/nestjs/index.js.map +0 -1
  381. package/dist/compat/react/index.cjs.map +0 -1
  382. package/dist/compat/react/index.js.map +0 -1
  383. package/dist/compat/solid/index.cjs.map +0 -1
  384. package/dist/compat/solid/index.js.map +0 -1
  385. package/dist/compat/svelte/index.cjs.map +0 -1
  386. package/dist/compat/svelte/index.js.map +0 -1
  387. package/dist/compat/vue/index.cjs.map +0 -1
  388. package/dist/compat/vue/index.js.map +0 -1
  389. package/dist/compat/zustand/index.cjs.map +0 -1
  390. package/dist/compat/zustand/index.js.map +0 -1
  391. package/dist/core/index.cjs.map +0 -1
  392. package/dist/core/index.js.map +0 -1
  393. package/dist/extra/index.cjs.map +0 -1
  394. package/dist/extra/index.js.map +0 -1
  395. package/dist/extra/sources.cjs.map +0 -1
  396. package/dist/extra/sources.js.map +0 -1
  397. package/dist/graph/index.cjs.map +0 -1
  398. package/dist/graph/index.js.map +0 -1
  399. package/dist/index.cjs.map +0 -1
  400. package/dist/index.js.map +0 -1
  401. package/dist/patterns/ai.cjs +0 -7930
  402. package/dist/patterns/ai.cjs.map +0 -1
  403. package/dist/patterns/ai.d.cts +0 -10
  404. package/dist/patterns/ai.d.ts +0 -10
  405. package/dist/patterns/ai.js +0 -71
  406. package/dist/patterns/ai.js.map +0 -1
  407. package/dist/patterns/audit.cjs +0 -5805
  408. package/dist/patterns/audit.cjs.map +0 -1
  409. package/dist/patterns/audit.d.cts +0 -6
  410. package/dist/patterns/audit.d.ts +0 -6
  411. package/dist/patterns/audit.js +0 -29
  412. package/dist/patterns/audit.js.map +0 -1
  413. package/dist/patterns/demo-shell.cjs +0 -5604
  414. package/dist/patterns/demo-shell.cjs.map +0 -1
  415. package/dist/patterns/demo-shell.d.cts +0 -6
  416. package/dist/patterns/demo-shell.d.ts +0 -6
  417. package/dist/patterns/demo-shell.js +0 -15
  418. package/dist/patterns/demo-shell.js.map +0 -1
  419. package/dist/patterns/memory.cjs +0 -5283
  420. package/dist/patterns/memory.cjs.map +0 -1
  421. package/dist/patterns/memory.d.cts +0 -5
  422. package/dist/patterns/memory.d.ts +0 -5
  423. package/dist/patterns/memory.js +0 -20
  424. package/dist/patterns/memory.js.map +0 -1
  425. package/dist/patterns/reactive-layout/index.cjs.map +0 -1
  426. package/dist/patterns/reactive-layout/index.js.map +0 -1
  427. package/dist/storage-CMjUUuxn.d.ts +0 -190
  428. package/dist/storage-DdWlZo6U.d.cts +0 -190
@@ -1,4 +1,4 @@
1
- import { a as NodeOptions, N as Node } from '../node-BmerH3kS.cjs';
1
+ import { N as NodeOptions, a as Node } from '../node-Cc1TniY8.cjs';
2
2
 
3
3
  /**
4
4
  * Core reactive sources, sinks, and utilities (roadmap §2.3).
@@ -401,6 +401,10 @@ declare function firstValueFrom<T>(source: Node<T>): Promise<T>;
401
401
  * @category extra
402
402
  */
403
403
  declare function firstWhere<T>(source: Node<T>, predicate: (value: T) => boolean): Promise<T>;
404
+ declare function awaitSettled<T>(source: Node<T>, opts?: {
405
+ predicate?: (value: T) => boolean;
406
+ timeoutMs?: number;
407
+ }): Promise<NonNullable<T>>;
404
408
  /**
405
409
  * RxJS-named alias for {@link replay} — multicast with a replay buffer of size `bufferSize`.
406
410
  *
@@ -462,4 +466,4 @@ type ReactiveCounterBundle = {
462
466
  */
463
467
  declare function reactiveCounter(cap: number): ReactiveCounterBundle;
464
468
 
465
- export { type AsyncSourceOpts, type EventTargetLike, type FromCronOptions, type NodeInput, type ReactiveCounterBundle, cached, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, of, reactiveCounter, replay, share, shareReplay, throwError, toArray };
469
+ export { type AsyncSourceOpts, type EventTargetLike, type FromCronOptions, type NodeInput, type ReactiveCounterBundle, awaitSettled, cached, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, of, reactiveCounter, replay, share, shareReplay, throwError, toArray };
@@ -1,4 +1,4 @@
1
- import { a as NodeOptions, N as Node } from '../node-BmerH3kS.js';
1
+ import { N as NodeOptions, a as Node } from '../node-Cc1TniY8.js';
2
2
 
3
3
  /**
4
4
  * Core reactive sources, sinks, and utilities (roadmap §2.3).
@@ -401,6 +401,10 @@ declare function firstValueFrom<T>(source: Node<T>): Promise<T>;
401
401
  * @category extra
402
402
  */
403
403
  declare function firstWhere<T>(source: Node<T>, predicate: (value: T) => boolean): Promise<T>;
404
+ declare function awaitSettled<T>(source: Node<T>, opts?: {
405
+ predicate?: (value: T) => boolean;
406
+ timeoutMs?: number;
407
+ }): Promise<NonNullable<T>>;
404
408
  /**
405
409
  * RxJS-named alias for {@link replay} — multicast with a replay buffer of size `bufferSize`.
406
410
  *
@@ -462,4 +466,4 @@ type ReactiveCounterBundle = {
462
466
  */
463
467
  declare function reactiveCounter(cap: number): ReactiveCounterBundle;
464
468
 
465
- export { type AsyncSourceOpts, type EventTargetLike, type FromCronOptions, type NodeInput, type ReactiveCounterBundle, cached, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, of, reactiveCounter, replay, share, shareReplay, throwError, toArray };
469
+ export { type AsyncSourceOpts, type EventTargetLike, type FromCronOptions, type NodeInput, type ReactiveCounterBundle, awaitSettled, cached, empty, escapeRegexChar, firstValueFrom, firstWhere, forEach, fromAny, fromAsyncIter, fromCron, fromEvent, fromIter, fromPromise, fromRaf, fromTimer, globToRegExp, keepalive, matchesAnyPattern, never, of, reactiveCounter, replay, share, shareReplay, throwError, toArray };
@@ -1,57 +1 @@
1
- import {
2
- cached,
3
- empty,
4
- escapeRegexChar,
5
- firstValueFrom,
6
- firstWhere,
7
- forEach,
8
- fromAny,
9
- fromAsyncIter,
10
- fromCron,
11
- fromEvent,
12
- fromIter,
13
- fromPromise,
14
- fromRaf,
15
- fromTimer,
16
- globToRegExp,
17
- keepalive,
18
- matchesAnyPattern,
19
- never,
20
- of,
21
- reactiveCounter,
22
- replay,
23
- share,
24
- shareReplay,
25
- throwError,
26
- toArray
27
- } from "../chunk-BVZYTZ5H.js";
28
- import "../chunk-PHOUUNK7.js";
29
- import "../chunk-SX52TAR4.js";
30
- export {
31
- cached,
32
- empty,
33
- escapeRegexChar,
34
- firstValueFrom,
35
- firstWhere,
36
- forEach,
37
- fromAny,
38
- fromAsyncIter,
39
- fromCron,
40
- fromEvent,
41
- fromIter,
42
- fromPromise,
43
- fromRaf,
44
- fromTimer,
45
- globToRegExp,
46
- keepalive,
47
- matchesAnyPattern,
48
- never,
49
- of,
50
- reactiveCounter,
51
- replay,
52
- share,
53
- shareReplay,
54
- throwError,
55
- toArray
56
- };
57
- //# sourceMappingURL=sources.js.map
1
+ import{A as y,B as z,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-2PMCKKRK.js";import"../chunk-ZB5EHBIO.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{w as awaitSettled,t as cached,m as empty,a as escapeRegexChar,u as firstValueFrom,v as firstWhere,p as forEach,k as fromAny,j as fromAsyncIter,f as fromCron,g as fromEvent,h as fromIter,i as fromPromise,e as fromRaf,d as fromTimer,b as globToRegExp,y as keepalive,c as matchesAnyPattern,n as never,l as of,z as reactiveCounter,s as replay,r as share,x as shareReplay,o as throwError,q as toArray};
@@ -0,0 +1 @@
1
+ "use strict";var K=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames;var Oe=Object.prototype.hasOwnProperty;var Re=(t,e)=>{for(var n in e)K(t,n,{get:e[n],enumerable:!0})},Ce=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of De(e))!Oe.call(t,r)&&r!==n&&K(t,r,{get:()=>e[r],enumerable:!(s=Se(e,r))||s.enumerable});return t};var Ie=t=>Ce(K({},"__esModule",{value:!0}),t);var Ze={};Re(Ze,{fromIDBRequest:()=>Ye,fromIDBTransaction:()=>Ke,indexedDbStorage:()=>Xe});module.exports=Ie(Ze);var G=Symbol.for("graphrefly/START"),_=Symbol.for("graphrefly/DATA"),A=Symbol.for("graphrefly/DIRTY"),E=Symbol.for("graphrefly/RESOLVED"),M=Symbol.for("graphrefly/INVALIDATE"),S=Symbol.for("graphrefly/PAUSE"),H=Symbol.for("graphrefly/RESUME"),N=Symbol.for("graphrefly/TEARDOWN"),v=Symbol.for("graphrefly/COMPLETE"),h=Symbol.for("graphrefly/ERROR"),D=Object.freeze([A]),J=Object.freeze([E]),Fe=Object.freeze([M]),X=Object.freeze([G]),Ge=Object.freeze([v]),He=Object.freeze([N]),Z=Object.freeze([D]),le=Object.freeze([J]),ce=Object.freeze([Fe]),ue=Object.freeze([Ge]),Q=Object.freeze([He]);var Le={name:"json",version:1,contentType:"application/json",encode(t){let e=JSON.stringify(t);return new TextEncoder().encode(e)},decode(t,e){let n=new TextDecoder().decode(t);return JSON.parse(n)}};function fe(t){t.registerCodec(Le)}var Ve={type:"system",id:""};function B(t){if(t==null)return Ve;let{type:e,id:n,...s}=t;return{type:e??"system",id:n??"",...s}}var ee=0,Pe=!1,he=[],pe=[],ge=[],Be=[];function _e(){return ee>0||Pe}function ye(){return ee>0}function me(t){ee>0?Be.push(t):t()}function U(t,e,n){if(e.length===0)return;if(e.length===1){let l=n(e[0][0]);if(l<3||!_e()){t(e);return}(l>=5?ge:l===4?pe:he).push(()=>t(e));return}let s=e.length,r=s,o=s,i=s,a=0;for(;a<s&&n(e[a][0])<3;)a++;for(r=a;a<s&&n(e[a][0])===3;)a++;for(o=a;a<s&&n(e[a][0])===4;)a++;i=a;let d=_e();if(r>0){let l=e.slice(0,r);t(l)}if(o>r){let l=e.slice(r,o);d?he.push(()=>t(l)):t(l)}if(i>o){let l=e.slice(o,i);d?pe.push(()=>t(l)):t(l)}if(s>i){let l=e.slice(i,s);d?ge.push(()=>t(l)):t(l)}}function be(){return Date.now()*1e6}var W=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=n=>{let s=this._messageTypes.get(n);return s!=null?s.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}registerMessageType(e,n){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:n.tier,wireCrossing:n.wireCrossing??n.tier>=3,metaPassthrough:n.metaPassthrough??!0}),this}messageTier(e){let n=this._messageTypes.get(e);return n!=null?n.tier:1}isWireCrossing(e){let n=this._messageTypes.get(e);return n!=null?n.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let n=this._messageTypes.get(e);return n!=null?n.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.")}};function ve(t){t.registerMessageType(G,{tier:0,wireCrossing:!1}),t.registerMessageType(A,{tier:1,wireCrossing:!1}),t.registerMessageType(M,{tier:1,wireCrossing:!1,metaPassthrough:!1}),t.registerMessageType(S,{tier:2,wireCrossing:!1}),t.registerMessageType(H,{tier:2,wireCrossing:!1}),t.registerMessageType(_,{tier:3,wireCrossing:!0}),t.registerMessageType(E,{tier:3,wireCrossing:!0}),t.registerMessageType(v,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(h,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(N,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var O=class extends Error{actor;action;nodeName;constructor(e,n){super(n??`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 ne(t){if(t===void 0)return null;if(typeof t=="number"){if(!Number.isFinite(t))throw new TypeError(`Cannot hash non-finite number: ${t}`);if(Number.isInteger(t)&&!Number.isSafeInteger(t))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${t}. Cross-language cid parity is not guaranteed for unsafe integers.`);return t}if(typeof t=="string"||typeof t=="boolean"||t===null)return t;if(Array.isArray(t))return t.map(ne);if(typeof t=="object"&&t!==null){let e={};for(let n of Object.keys(t).sort())e[n]=ne(t[n]);return e}return null}var Ue=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]),We=new TextEncoder;function je(t){let e=We.encode(t),n=e.length,s=n*8,r=n+9+63&-64,o=new Uint8Array(r);o.set(e),o[n]=128;let i=new DataView(o.buffer);i.setUint32(r-4,s>>>0,!1),i.setUint32(r-8,Math.floor(s/4294967296)>>>0,!1);let a=1779033703,d=3144134277,l=1013904242,c=2773480762,u=1359893119,f=2600822924,g=528734635,y=1541459225,k=new Uint32Array(64),b=(x,m)=>x>>>m|x<<32-m;for(let x=0;x<r;x+=64){for(let p=0;p<16;p++)k[p]=i.getUint32(x+p*4,!1);for(let p=16;p<64;p++){let I=k[p-15],F=k[p-2],P=b(I,7)^b(I,18)^I>>>3,Y=b(F,17)^b(F,19)^F>>>10;k[p]=k[p-16]+P+k[p-7]+Y>>>0}let m=a,R=d,C=l,$=c,T=u,L=f,V=g,q=y;for(let p=0;p<64;p++){let I=b(T,6)^b(T,11)^b(T,25),F=T&L^~T&V,P=q+I+F+Ue[p]+k[p]>>>0,Y=b(m,2)^b(m,13)^b(m,22),Ee=m&R^m&C^R&C,Me=Y+Ee>>>0;q=V,V=L,L=T,T=$+P>>>0,$=C,C=R,R=m,m=P+Me>>>0}a=a+m>>>0,d=d+R>>>0,l=l+C>>>0,c=c+$>>>0,u=u+T>>>0,f=f+L>>>0,g=g+V>>>0,y=y+q>>>0}let w=x=>x.toString(16).padStart(8,"0");return w(a)+w(d)+w(l)+w(c)+w(u)+w(f)+w(g)+w(y)}function te(t){let e=ne(t??null),n=JSON.stringify(e);return je(n).slice(0,16)}function ze(){let t=globalThis.crypto;if(t?.randomUUID)return t.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),n=e()+e()+e()+e();return`${n.slice(0,8)}-${n.slice(8,12)}-4${n.slice(13,16)}-${(parseInt(n.slice(16,17),16)&3|8).toString(16)}${n.slice(17,20)}-${n.slice(20,32)}`}function se(t,e,n){let s=n?.id??ze();if(t===0)return{id:s,version:0};let o=(n?.hash??te)(e);return{id:s,version:0,cid:o,prev:null}}function we(t,e,n){t.version+=1,"cid"in t&&(t.prev=t.cid,t.cid=n(e))}var xe=()=>{},Te=100;function Ne(t){return{node:t,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function re(t){t.prevData=void 0,t.dirty=!1,t.involvedThisWave=!1,t.dataBatch.length=0,t.terminal=void 0}function j(t){return t.length===0?t:typeof t[0]=="symbol"?[t]:t}var $e=(t,e,n,s)=>{n.direction==="down-in"&&t._onDepMessage(n.depIndex,e)},qe=(t,e,n,s)=>{let r=t;if(r._status==="completed"||r._status==="errored")return;let o=r._cached,i=o===void 0?[X]:[X,[_,o]];r._status==="dirty"&&i.push(D),U(e,i,r._config.tierOf)},ie=new W({onMessage:$e,onSubscribe:qe});ve(ie);fe(ie);var z=class t{_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;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,n,s){this._config=s.config??ie,this._config.onMessage,this._optsName=s.name,this._describeKind=s.describeKind,this._equals=s.equals??Object.is,this._resubscribable=s.resubscribable??!1,this._resetOnTeardown=s.resetOnTeardown??!1,this._autoComplete=s.completeWhenDepsComplete??!0,this._autoError=s.errorWhenDepsError??!0,this._pausable=s.pausable??!0,this._guard=s.guard,this._fn=n,this._cached=s.initial!==void 0?s.initial:void 0,this._status=e.length===0&&n==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=s.versioningHash??this._config.defaultHashFn??te;let r=s.versioning??this._config.defaultVersioning;this._versioningLevel=r,this._versioning=r!=null?se(r,this._cached===void 0?void 0:this._cached,{id:s.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(Ne);let o={};for(let[a,d]of Object.entries(s.meta??{})){let l={initial:d,name:`${s.name??"node"}:meta:${a}`,describeKind:"state",config:this._config};s.guard!=null&&(l.guard=s.guard),o[a]=new t([],void 0,l)}Object.freeze(o),this.meta=o,this._hasMeta=Object.keys(o).length>0;let i=this;this._actions={emit(a){i._emit([[_,a]])},down(a){i._emit(j(a))},up(a){i._emitUp(j(a))}},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,n){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 s=this._versioningLevel;if(s!=null&&e<=s)return;let r=n?.hash??this._hashFn;r!==this._hashFn&&(this._hashFn=r);let o=this._cached===void 0?void 0:this._cached,i=this._versioning,a=i?.id??n?.id,d=i?.version??0,l=se(e,o,{id:a,hash:r});l.version=d,this._versioning=l,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 n=B(e);if(this._guard!=null&&!this._guard(n,"observe"))return!1;if(this._extraGuards!=null){for(let s of this._extraGuards)if(!s(n,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let n=this._guard!=null||this._extraGuards!=null,s=e?.actor!=null;if(!n&&!s)return;let r=B(e?.actor),o=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(r,o))throw new O({actor:r,action:o,nodeName:this.name});if(this._extraGuards!=null){for(let i of this._extraGuards)if(!i(r,o))throw new O({actor:r,action:o,nodeName:this.name})}this._lastMutation={actor:r,timestamp_ns:be()}}down(e,n){let s=j(e);s.length!==0&&(this._checkGuard(n),this._emit(s))}emit(e,n){this._checkGuard(n),this._emit([[_,e]])}up(e,n){if(this._deps.length===0)return;let s=j(e);if(s.length===0)return;this._checkGuard(n);let r=n??{internal:!0};this._validateUpTiers(s);for(let o of this._deps)o.node.up?.(s,r)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let n of this._deps)n.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let n=this._config.tierOf;for(let s of e){let r=n(s[0]);if(r===3||r===4)throw new Error(`Node "${this.name}": tier-${r} 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,n){if(n!=null&&this._guard!=null){let d=B(n);if(!this._guard(d,"observe"))throw new O({actor:d,action:"observe",nodeName:this.name})}let r=this._isTerminal&&this._resubscribable;if(r){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 d of this._deps)re(d)}this._sinkCount+=1;let o;try{o=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:r},this._actions)}catch(d){throw this._sinkCount-=1,d}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let i=this._isTerminal;if(this._sinkCount===1&&!i)try{this._activate()}catch(d){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof o=="function")try{o()}catch{}throw d}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let a=!1;return()=>{a||(a=!0,this._sinkCount-=1,this._removeSink(e),typeof o=="function"&&o(),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[n]=this._sinks;this._sinks=n}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,n=0;try{for(let s=0;s<e;s++){let r=s,o=this._deps[s];o.unsub=xe,o.unsub=o.node.subscribe(i=>{if(o.unsub===null)return;let a=this._config.tierOf,d=!1;for(let l of i)a(l[0])>=3&&(d=!0),this._config.onMessage(this,l,{direction:"down-in",depIndex:r},this._actions);d&&this._maybeRunFnOnSettlement()}),n++}}catch(s){this._deps[n].unsub=null;for(let r=0;r<n;r++){let o=this._deps[r];if(o.unsub!=null){let i=o.unsub;o.unsub=null;try{i()}catch{}re(o)}}throw this._dirtyDepCount=0,s}}_addDep(e){for(let r=0;r<this._deps.length;r++)if(this._deps[r].node===e)return r;let n=this._deps.length,s=Ne(e);if(this._deps.push(s),this._sinks==null)return n;s.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(Z),s.unsub=xe;try{s.unsub=e.subscribe(r=>{if(s.unsub===null)return;let o=this._config.tierOf,i=!1;for(let a of r)o(a[0])>=3&&(i=!0),this._config.onMessage(this,a,{direction:"down-in",depIndex:n},this._actions);i&&this._maybeRunFnOnSettlement()})}catch(r){throw s.unsub=null,this._deps.pop(),this._dirtyDepCount--,r}return n}_deactivate(e=!1){let n=this._cleanup;if(this._cleanup=void 0,typeof n=="function")try{n()}catch(s){this._emit([[h,this._wrapFnError("cleanup threw",s)]])}else if(n!=null&&typeof n=="object"){let s=n.deactivate;if(typeof s=="function")try{s()}catch(r){this._emit([[h,this._wrapFnError("cleanup.deactivate threw",r)]])}}for(let s of this._deps){if(s.unsub!=null){let r=s.unsub;s.unsub=null;try{r()}catch{}}re(s)}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,n){let s=this._deps[e],r=n[0];if(this._inspectorHooks!=null){let o={kind:"dep_message",depIndex:e,message:n};for(let i of this._inspectorHooks)i(o)}if(r!==G){if(r===A){this._depDirtied(s);return}if(r===M){this._depInvalidated(s),this._emit(ce);return}if(r===S||r===H){this._emit([n]);return}if(r===N){this._emit(Q);return}if(r===_)this._depSettledAsData(s,n[1]);else if(r===E)this._depSettledAsResolved(s);else if(r===v)this._depSettledAsTerminal(s,!0);else if(r===h)this._depSettledAsTerminal(s,n[1]);else{this._emit([n]);return}if(!this._fn){(r===_||r===E)&&this._emit([n]),(r===v||r===h)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(Z))}_depSettledAsData(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(n),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=n,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._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(le),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(n=>n.terminal!==void 0&&n.terminal!==!0);if(e!=null){this._autoError&&this._emit([[h,e.terminal]]);return}this._autoComplete&&this._deps.every(n=>n.terminal!==void 0)&&this._emit(ue)}_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(i){this._emit([[h,this._wrapFnError("cleanup threw",i)]]);return}}else if(e!=null&&typeof e=="object"){let i=e.beforeRun;if(typeof i=="function"){e.beforeRun=void 0;try{i()}catch(a){this._emit([[h,this._wrapFnError("cleanup.beforeRun threw",a)]]);return}}}let n=this._deps.map(i=>i.involvedThisWave?i.dataBatch.length>0?[...i.dataBatch]:[]:void 0),s=this._deps.map(i=>i.prevData);for(let i=0;i<this._deps.length;i++){let a=n[i];a!=null&&a.length>0&&(this._deps[i].prevData=a[a.length-1])}let r=this._deps.map(i=>i.terminal),o={prevData:s,terminalDeps:r,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let i={kind:"run",batchData:n,prevData:s};for(let a of this._inspectorHooks)a(i)}this._isExecutingFn=!0;try{let i=this._fn(n,this._actions,o);if(typeof i=="function")this._cleanup=i;else if(i!=null&&typeof i=="object"){let a=i;(typeof a.beforeRun=="function"||typeof a.deactivate=="function"||typeof a.invalidate=="function")&&(this._cleanup=i)}}catch(i){this._emit([[h,this._wrapFnError("fn threw",i)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>Te?(this._rerunDepth=0,this._emit([[h,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${Te} \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,n){let s=n instanceof Error?n.message:String(n);return new Error(`Node "${this.name}": ${e}: ${s}`,{cause:n})}_frameBatch(e){let n=this._config.tierOf;if(e.length===1)return n(e[0][0])===3&&this._status!=="dirty"?[D,e[0]]:e;let s=!0,r=!1,o=!1,i=-1;for(let d of e){let l=n(d[0]);l<i&&(s=!1),l===3&&(r=!0),d[0]===A&&(o=!0),i=l}let a=e;if(!s){let d=e.map((l,c)=>({m:l,i:c,tier:n(l[0])}));d.sort((l,c)=>l.tier-c.tier||l.i-c.i),a=d.map(l=>l.m)}if(r&&!o&&this._status!=="dirty"){let d=0;for(;d<a.length&&n(a[d][0])===0;)d++;return d===0?[D,...a]:[...a.slice(0,d),D,...a.slice(d)]}return a}_emit(e){if(e.length===0)return;let n=e;if(this._isTerminal&&!this._resubscribable){let a=e.filter(d=>d[0]===N||d[0]===M);if(a.length===0)return;n=a}n=this._frameBatch(n);let r=null;for(let a=0;a<n.length;a++){let d=n[a],l=d[0];if(l!==S&&l!==H){r?.push(d);continue}if(d.length<2)throw new Error(`Node "${this.name}": [[${l===S?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let c=!0;if(this._pausable!==!1){let u=d[1];if(l===S)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(u),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(u))c=!1;else if(this._pauseLocks.delete(u),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let f=this._pauseBuffer;this._pauseBuffer=[],this._emit(f)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}c?r?.push(d):r==null&&(r=n.slice(0,a))}if(r!=null){if(r.length===0)return;n=r}if(this._hasMeta&&n.some(a=>a[0]===N))for(let a of Object.keys(this.meta))try{this.meta[a]._emit(Q)}catch{}let{finalMessages:o,equalsError:i}=this._updateState(n);if(o.length>0&&this._config.inspectorEnabled){let a=this._config.globalInspector;if(a!=null)try{a({kind:"emit",node:this,messages:o})}catch{}}if(o.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let a=this._config.tierOf,d=[];for(let l of o){let c=a(l[0]);c<3||c===5?d.push(l):this._pauseBuffer.push(l)}d.length>0&&this._dispatchOrAccumulate(d)}else this._dispatchOrAccumulate(o);i!=null&&this._emit([[h,i]])}_updateState(e){let n=this._config.tierOf,s,r,o=-1,i=0;for(let c of e)n(c[0])===3&&i++;let a=i<=1,d=-1;if(this._versioning!=null&&i>1){for(let c=e.length-1;c>=0;c--)if(e[c][0]===_){d=c;break}}for(let c=0;c<e.length;c++){let u=e[c],f=u[0];if(f===_){if(u.length>=2){let g=!1;if(a&&this._cached!==void 0)try{g=this._equals(this._cached,u[1])}catch(y){r=this._wrapFnError("equals threw",y),o=c;break}if(g){s==null&&(s=e.slice(0,c)),s.push(J),this._status="resolved";continue}this._cached=u[1],this._versioning!=null&&(d<0||c===d)&&we(this._versioning,u[1],this._hashFn)}this._status="settled",s?.push(u)}else if(s?.push(u),f===A)this._status="dirty";else if(f===E)this._status="resolved";else if(f===v)this._status="completed";else if(f===h)this._status="errored";else if(f===M){this._cached=void 0,this._status="dirty";let g=this._cleanup;if(typeof g=="function"){this._cleanup=void 0;try{g()}catch{}}else if(g!=null&&typeof g=="object"){let y=g.invalidate;if(typeof y=="function")try{y()}catch{}}}else f===N&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let l=o>=0?s??e.slice(0,o):s??e;return r!=null?{finalMessages:l,equalsError:r}:{finalMessages:l}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let n=[...this._sinks];for(let s of n)s(e)};_dispatchOrAccumulate(e){if(ye()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],me(()=>this._flushBatchPending()));for(let n of e)this._batchPendingMessages.push(n);return}U(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let n=this._frameBatch(e);U(this._deliverToSinks,n,this._config.tierOf)}},ke=t=>Array.isArray(t),oe=t=>typeof t=="object"&&t!=null&&!Array.isArray(t);function Ae(t,e,n){let s=ke(t)?t:[],r=typeof t=="function"?t:typeof e=="function"?e:void 0,o={};return ke(t)?o=(oe(e)?e:n)??{}:oe(t)?o=t:o=(oe(e)?e:n)??{},new z(s,r,o)}function ae(t,e){return Ae((s,r,o)=>t(r,o)??void 0,{describeKind:"producer",...e})}function Ye(t){return ae(e=>{let n=!1,s=()=>{t.onsuccess=null,t.onerror=null};return t.onsuccess=()=>{n||(n=!0,s(),e.down([[_,t.result],[v]]))},t.onerror=()=>{n||(n=!0,s(),e.down([[h,t.error??new Error("IndexedDB request failed")]]))},()=>{n=!0,s()}})}function Ke(t){return ae(e=>{let n=!1,s=()=>{t.oncomplete=null,t.onerror=null,t.onabort=null};return t.oncomplete=()=>{n||(n=!0,s(),e.down([[_,void 0],[v]]))},t.onerror=()=>{n||(n=!0,s(),e.down([[h,t.error??new Error("IndexedDB transaction failed")]]))},t.onabort=()=>{n||(n=!0,s(),e.down([[h,t.error??new Error("IndexedDB transaction aborted")]]))},()=>{n=!0,s()}})}function Je(t,e,n){return new Promise((s,r)=>{if(typeof indexedDB>"u"){r(new TypeError("indexedDB is not available in this environment"));return}let o=indexedDB.open(t,n);o.onupgradeneeded=()=>{let i=o.result;i.objectStoreNames.contains(e)||i.createObjectStore(e)},o.onsuccess=()=>s(o.result),o.onerror=()=>r(o.error??new Error("IndexedDB open failed"))})}function de(t,e,n,s,r){return Je(t,e,n).then(o=>new Promise((i,a)=>{let d=o.transaction(e,s),l=d.objectStore(e),c=r(l),u,f=!1,g=!1,y=()=>{!f||!g||(o.close(),i(u))};c.onsuccess=()=>{u=c.result,f=!0,y()},c.onerror=()=>{o.close(),a(c.error??new Error("IndexedDB request failed"))},d.oncomplete=()=>{if(g=!0,!f){o.close(),a(new Error("IndexedDB transaction completed without request result"));return}y()},d.onerror=()=>{o.close(),a(d.error??new Error("IndexedDB transaction failed"))},d.onabort=()=>{o.close(),a(d.error??new Error("IndexedDB transaction aborted"))}}))}function Xe(t){let{dbName:e,storeName:n}=t,s=t.version??1,r=t.key??"graphrefly_checkpoint";return{async save(o,i){await de(e,n,s,"readwrite",a=>a.put(i,r))},async load(o){let i=await de(e,n,s,"readonly",a=>a.get(r));return i==null||typeof i!="object"||Array.isArray(i)?null:i},async clear(o){await de(e,n,s,"readwrite",i=>i.delete(r))}}}0&&(module.exports={fromIDBRequest,fromIDBTransaction,indexedDbStorage});
@@ -0,0 +1,71 @@
1
+ import { a as Node } from '../node-Cc1TniY8.cjs';
2
+ import { StorageTier } from './storage-core.cjs';
3
+
4
+ /**
5
+ * Browser-only storage backend + IndexedDB reactive sources.
6
+ *
7
+ * `indexedDbStorage` provides async {@link StorageTier} semantics backed by
8
+ * IndexedDB; `fromIDBRequest` / `fromIDBTransaction` wrap raw IDB primitives
9
+ * as reactive sources. Imports require the DOM lib — not safe to pull into
10
+ * Node-only bundles without `lib: ["dom"]` in the consumer's tsconfig.
11
+ *
12
+ * The legacy `extra/storage.ts` barrel re-exports this module for back-compat;
13
+ * browser-first consumers should import from here directly.
14
+ *
15
+ * @module
16
+ */
17
+
18
+ type IndexedDbStorageSpec = {
19
+ dbName: string;
20
+ storeName: string;
21
+ /** Object-store key under which snapshots are written. @default `"graphrefly_checkpoint"`. */
22
+ key?: string;
23
+ version?: number;
24
+ };
25
+ /**
26
+ * Wraps an `IDBRequest` as a one-shot reactive source.
27
+ *
28
+ * @param req - Request whose callbacks are converted to protocol messages.
29
+ * @returns `Node<T>` that emits `DATA` once on success then `COMPLETE`;
30
+ * emits `ERROR` on failure.
31
+ *
32
+ * @category extra
33
+ */
34
+ declare function fromIDBRequest<T>(req: IDBRequest<T>): Node<T>;
35
+ /**
36
+ * Wraps an `IDBTransaction` terminal lifecycle as a one-shot reactive source.
37
+ *
38
+ * @param tx - Transaction to observe.
39
+ * @returns `Node<void>` that emits `DATA` (`undefined`) then `COMPLETE` on
40
+ * success; emits `ERROR` on `error`/`abort`.
41
+ *
42
+ * @category extra
43
+ */
44
+ declare function fromIDBTransaction(tx: IDBTransaction): Node<void>;
45
+ /**
46
+ * IndexedDB-backed async storage tier (browser runtime).
47
+ *
48
+ * All three methods return `Promise`s — pairs naturally with a warm/cold
49
+ * cadence where async writes are debounced per tier via
50
+ * `Graph.attachStorage`. Writes use `readwrite` transactions; reads use
51
+ * `readonly`. Missing records resolve to `null`.
52
+ *
53
+ * @param spec - Database name, store name, optional `key` (default
54
+ * `"graphrefly_checkpoint"`) and schema `version` (default `1`).
55
+ * @returns Async {@link StorageTier}.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * import { indexedDbStorage, memoryStorage } from "@graphrefly/graphrefly-ts";
60
+ *
61
+ * graph.attachStorage([
62
+ * memoryStorage(),
63
+ * indexedDbStorage({ dbName: "myApp", storeName: "checkpoints" }),
64
+ * ]);
65
+ * ```
66
+ *
67
+ * @category extra
68
+ */
69
+ declare function indexedDbStorage(spec: IndexedDbStorageSpec): StorageTier;
70
+
71
+ export { type IndexedDbStorageSpec, fromIDBRequest, fromIDBTransaction, indexedDbStorage };
@@ -0,0 +1,71 @@
1
+ import { a as Node } from '../node-Cc1TniY8.js';
2
+ import { StorageTier } from './storage-core.js';
3
+
4
+ /**
5
+ * Browser-only storage backend + IndexedDB reactive sources.
6
+ *
7
+ * `indexedDbStorage` provides async {@link StorageTier} semantics backed by
8
+ * IndexedDB; `fromIDBRequest` / `fromIDBTransaction` wrap raw IDB primitives
9
+ * as reactive sources. Imports require the DOM lib — not safe to pull into
10
+ * Node-only bundles without `lib: ["dom"]` in the consumer's tsconfig.
11
+ *
12
+ * The legacy `extra/storage.ts` barrel re-exports this module for back-compat;
13
+ * browser-first consumers should import from here directly.
14
+ *
15
+ * @module
16
+ */
17
+
18
+ type IndexedDbStorageSpec = {
19
+ dbName: string;
20
+ storeName: string;
21
+ /** Object-store key under which snapshots are written. @default `"graphrefly_checkpoint"`. */
22
+ key?: string;
23
+ version?: number;
24
+ };
25
+ /**
26
+ * Wraps an `IDBRequest` as a one-shot reactive source.
27
+ *
28
+ * @param req - Request whose callbacks are converted to protocol messages.
29
+ * @returns `Node<T>` that emits `DATA` once on success then `COMPLETE`;
30
+ * emits `ERROR` on failure.
31
+ *
32
+ * @category extra
33
+ */
34
+ declare function fromIDBRequest<T>(req: IDBRequest<T>): Node<T>;
35
+ /**
36
+ * Wraps an `IDBTransaction` terminal lifecycle as a one-shot reactive source.
37
+ *
38
+ * @param tx - Transaction to observe.
39
+ * @returns `Node<void>` that emits `DATA` (`undefined`) then `COMPLETE` on
40
+ * success; emits `ERROR` on `error`/`abort`.
41
+ *
42
+ * @category extra
43
+ */
44
+ declare function fromIDBTransaction(tx: IDBTransaction): Node<void>;
45
+ /**
46
+ * IndexedDB-backed async storage tier (browser runtime).
47
+ *
48
+ * All three methods return `Promise`s — pairs naturally with a warm/cold
49
+ * cadence where async writes are debounced per tier via
50
+ * `Graph.attachStorage`. Writes use `readwrite` transactions; reads use
51
+ * `readonly`. Missing records resolve to `null`.
52
+ *
53
+ * @param spec - Database name, store name, optional `key` (default
54
+ * `"graphrefly_checkpoint"`) and schema `version` (default `1`).
55
+ * @returns Async {@link StorageTier}.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * import { indexedDbStorage, memoryStorage } from "@graphrefly/graphrefly-ts";
60
+ *
61
+ * graph.attachStorage([
62
+ * memoryStorage(),
63
+ * indexedDbStorage({ dbName: "myApp", storeName: "checkpoints" }),
64
+ * ]);
65
+ * ```
66
+ *
67
+ * @category extra
68
+ */
69
+ declare function indexedDbStorage(spec: IndexedDbStorageSpec): StorageTier;
70
+
71
+ export { type IndexedDbStorageSpec, fromIDBRequest, fromIDBTransaction, indexedDbStorage };
@@ -0,0 +1 @@
1
+ import{a,b,c}from"../chunk-DQA3UIQ2.js";import"../chunk-ZB5EHBIO.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{a as fromIDBRequest,b as fromIDBTransaction,c as indexedDbStorage};
@@ -0,0 +1 @@
1
+ "use strict";var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var c=(n,r)=>{for(var e in r)s(n,e,{get:r[e],enumerable:!0})},g=(n,r,e,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of a(r))!d.call(n,t)&&t!==e&&s(n,t,{get:()=>r[t],enumerable:!(o=u(r,t))||o.enumerable});return n};var f=n=>g(s({},"__esModule",{value:!0}),n);var S={};c(S,{dictStorage:()=>l,memoryStorage:()=>y,sortJsonValue:()=>i,stableJsonString:()=>k});module.exports=f(S);function i(n){if(n===null||typeof n!="object")return n;if(Array.isArray(n))return n.map(i);let r=n,e=Object.keys(r).sort(),o={};for(let t of e)o[t]=i(r[t]);return o}function k(n){return JSON.stringify(i(n),void 0,0)}function y(){let n=new Map;return{save(r,e){n.set(r,JSON.parse(JSON.stringify(e)))},load(r){let e=n.get(r);return e===void 0?null:JSON.parse(JSON.stringify(e))},clear(r){n.delete(r)},list(){return[...n.keys()].sort()}}}function l(n){return{save(r,e){n[r]=JSON.parse(JSON.stringify(e))},load(r){let e=n[r];return e===void 0?null:JSON.parse(JSON.stringify(e))},clear(r){delete n[r]},list(){return Object.keys(n).sort()}}}0&&(module.exports={dictStorage,memoryStorage,sortJsonValue,stableJsonString});
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Storage tier primitive — browser-safe core (types + in-memory backends).
3
+ *
4
+ * Split out of `extra/storage.ts` so browser bundles can import the
5
+ * {@link StorageTier} contract, {@link memoryStorage}, {@link dictStorage}
6
+ * and shared JSON helpers without pulling `node:fs` / `node:sqlite` /
7
+ * `node:crypto`. Node-only backends (`fileStorage`, `sqliteStorage`) live in
8
+ * {@link ./storage-node}; browser-only ones (`indexedDbStorage`,
9
+ * `fromIDBRequest`, `fromIDBTransaction`) live in {@link ./storage-browser}.
10
+ * The legacy `extra/storage.ts` module re-exports all three for back-compat.
11
+ *
12
+ * @module
13
+ */
14
+ /**
15
+ * Single persistence primitive — supports sync and async backends alike via
16
+ * `void | Promise<void>` returns. `debounceMs` / `compactEvery` / `filter`
17
+ * are per-tier cadence controls honored by `Graph.attachStorage`;
18
+ * `cascadingCache` ignores them (it has its own eviction policy).
19
+ */
20
+ interface StorageTier {
21
+ /** Read a value. Returns `null` (or resolves to `null`) on miss. */
22
+ load(key: string): unknown | Promise<unknown>;
23
+ /** Write a record. Sync tiers return `void`; async tiers return `Promise<void>`. */
24
+ save(key: string, data: unknown): void | Promise<void>;
25
+ /** Delete a value. Optional — tiers without `clear` are append/overwrite-only. */
26
+ clear?(key: string): void | Promise<void>;
27
+ /**
28
+ * Enumerate known keys. Optional — tiers that only address a single record
29
+ * (e.g. `indexedDbStorage`) or that can't cheaply enumerate (e.g. a remote
30
+ * write-only sink) may omit it. Callers that require enumeration (the
31
+ * surface `snapshot.list()` helper, MCP `graphrefly_snapshot_list`, CLI
32
+ * `graphrefly snapshot list`) should check before calling.
33
+ */
34
+ list?(): readonly string[] | Promise<readonly string[]>;
35
+ /**
36
+ * Debounce saves on this tier (ms). Hot tier: `0` (sync-through).
37
+ * Warm: `1000`. Cold: `60000`. Each tier holds its own last-save baseline,
38
+ * so cold flushes aren't penalized by hot flushes.
39
+ */
40
+ debounceMs?: number;
41
+ /**
42
+ * Every Nth record is a full snapshot; others are diffs against this
43
+ * tier's own baseline. Default `10`. Set `1` for always-full;
44
+ * `Number.POSITIVE_INFINITY` is unsafe — WAL replay needs periodic anchors.
45
+ */
46
+ compactEvery?: number;
47
+ /** Pre-save filter — return `false` to skip this record on this tier. */
48
+ filter?: (key: string, record: unknown) => boolean;
49
+ }
50
+ /** Handle returned by `Graph.attachStorage` — dispose to stop observing. */
51
+ interface StorageHandle {
52
+ dispose(): void;
53
+ }
54
+ /** Recursively sort object keys so `JSON.stringify` output is order-independent. */
55
+ declare function sortJsonValue(value: unknown): unknown;
56
+ /**
57
+ * Stable JSON encoding (no trailing newline). Tiers that want POSIX newline
58
+ * convention (e.g. `fileStorage`) append their own; in-database tiers
59
+ * (`sqliteStorage`) keep the payload byte-identical for cross-tier hash/CID
60
+ * comparison.
61
+ */
62
+ declare function stableJsonString(data: unknown): string;
63
+ /**
64
+ * In-memory storage tier (process-local; useful for tests and hot tier).
65
+ *
66
+ * @returns Sync {@link StorageTier} with JSON-cloned isolation.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * import { memoryStorage } from "@graphrefly/graphrefly-ts";
71
+ *
72
+ * const hot = memoryStorage();
73
+ * graph.attachStorage([hot]);
74
+ * ```
75
+ *
76
+ * @category extra
77
+ */
78
+ declare function memoryStorage(): StorageTier;
79
+ /**
80
+ * Dict-backed storage tier — stores JSON-cloned values under caller keys in
81
+ * a caller-owned plain object. Useful for embedding in a parent state shape.
82
+ *
83
+ * @param storage - Caller-owned object used as the backing store.
84
+ * @returns Sync {@link StorageTier}.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * import { dictStorage } from "@graphrefly/graphrefly-ts";
89
+ *
90
+ * const state: Record<string, unknown> = {};
91
+ * graph.attachStorage([dictStorage(state)]);
92
+ * ```
93
+ *
94
+ * @category extra
95
+ */
96
+ declare function dictStorage(storage: Record<string, unknown>): StorageTier;
97
+
98
+ export { type StorageHandle, type StorageTier, dictStorage, memoryStorage, sortJsonValue, stableJsonString };
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Storage tier primitive — browser-safe core (types + in-memory backends).
3
+ *
4
+ * Split out of `extra/storage.ts` so browser bundles can import the
5
+ * {@link StorageTier} contract, {@link memoryStorage}, {@link dictStorage}
6
+ * and shared JSON helpers without pulling `node:fs` / `node:sqlite` /
7
+ * `node:crypto`. Node-only backends (`fileStorage`, `sqliteStorage`) live in
8
+ * {@link ./storage-node}; browser-only ones (`indexedDbStorage`,
9
+ * `fromIDBRequest`, `fromIDBTransaction`) live in {@link ./storage-browser}.
10
+ * The legacy `extra/storage.ts` module re-exports all three for back-compat.
11
+ *
12
+ * @module
13
+ */
14
+ /**
15
+ * Single persistence primitive — supports sync and async backends alike via
16
+ * `void | Promise<void>` returns. `debounceMs` / `compactEvery` / `filter`
17
+ * are per-tier cadence controls honored by `Graph.attachStorage`;
18
+ * `cascadingCache` ignores them (it has its own eviction policy).
19
+ */
20
+ interface StorageTier {
21
+ /** Read a value. Returns `null` (or resolves to `null`) on miss. */
22
+ load(key: string): unknown | Promise<unknown>;
23
+ /** Write a record. Sync tiers return `void`; async tiers return `Promise<void>`. */
24
+ save(key: string, data: unknown): void | Promise<void>;
25
+ /** Delete a value. Optional — tiers without `clear` are append/overwrite-only. */
26
+ clear?(key: string): void | Promise<void>;
27
+ /**
28
+ * Enumerate known keys. Optional — tiers that only address a single record
29
+ * (e.g. `indexedDbStorage`) or that can't cheaply enumerate (e.g. a remote
30
+ * write-only sink) may omit it. Callers that require enumeration (the
31
+ * surface `snapshot.list()` helper, MCP `graphrefly_snapshot_list`, CLI
32
+ * `graphrefly snapshot list`) should check before calling.
33
+ */
34
+ list?(): readonly string[] | Promise<readonly string[]>;
35
+ /**
36
+ * Debounce saves on this tier (ms). Hot tier: `0` (sync-through).
37
+ * Warm: `1000`. Cold: `60000`. Each tier holds its own last-save baseline,
38
+ * so cold flushes aren't penalized by hot flushes.
39
+ */
40
+ debounceMs?: number;
41
+ /**
42
+ * Every Nth record is a full snapshot; others are diffs against this
43
+ * tier's own baseline. Default `10`. Set `1` for always-full;
44
+ * `Number.POSITIVE_INFINITY` is unsafe — WAL replay needs periodic anchors.
45
+ */
46
+ compactEvery?: number;
47
+ /** Pre-save filter — return `false` to skip this record on this tier. */
48
+ filter?: (key: string, record: unknown) => boolean;
49
+ }
50
+ /** Handle returned by `Graph.attachStorage` — dispose to stop observing. */
51
+ interface StorageHandle {
52
+ dispose(): void;
53
+ }
54
+ /** Recursively sort object keys so `JSON.stringify` output is order-independent. */
55
+ declare function sortJsonValue(value: unknown): unknown;
56
+ /**
57
+ * Stable JSON encoding (no trailing newline). Tiers that want POSIX newline
58
+ * convention (e.g. `fileStorage`) append their own; in-database tiers
59
+ * (`sqliteStorage`) keep the payload byte-identical for cross-tier hash/CID
60
+ * comparison.
61
+ */
62
+ declare function stableJsonString(data: unknown): string;
63
+ /**
64
+ * In-memory storage tier (process-local; useful for tests and hot tier).
65
+ *
66
+ * @returns Sync {@link StorageTier} with JSON-cloned isolation.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * import { memoryStorage } from "@graphrefly/graphrefly-ts";
71
+ *
72
+ * const hot = memoryStorage();
73
+ * graph.attachStorage([hot]);
74
+ * ```
75
+ *
76
+ * @category extra
77
+ */
78
+ declare function memoryStorage(): StorageTier;
79
+ /**
80
+ * Dict-backed storage tier — stores JSON-cloned values under caller keys in
81
+ * a caller-owned plain object. Useful for embedding in a parent state shape.
82
+ *
83
+ * @param storage - Caller-owned object used as the backing store.
84
+ * @returns Sync {@link StorageTier}.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * import { dictStorage } from "@graphrefly/graphrefly-ts";
89
+ *
90
+ * const state: Record<string, unknown> = {};
91
+ * graph.attachStorage([dictStorage(state)]);
92
+ * ```
93
+ *
94
+ * @category extra
95
+ */
96
+ declare function dictStorage(storage: Record<string, unknown>): StorageTier;
97
+
98
+ export { type StorageHandle, type StorageTier, dictStorage, memoryStorage, sortJsonValue, stableJsonString };
@@ -0,0 +1 @@
1
+ import{a,b,c,d}from"../chunk-I6VIH3VA.js";import"../chunk-QYADASLV.js";export{d as dictStorage,c as memoryStorage,a as sortJsonValue,b as stableJsonString};
@@ -0,0 +1,2 @@
1
+ "use strict";var g=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var N=(n,e)=>{for(var o in e)g(n,o,{get:e[o],enumerable:!0})},O=(n,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!T.call(n,a)&&a!==o&&g(n,a,{get:()=>e[a],enumerable:!(r=E(e,a))||r.enumerable});return n};var b=n=>O(g({},"__esModule",{value:!0}),n);var J={};N(J,{fileStorage:()=>v,sqliteStorage:()=>x});module.exports=b(J);var k=require("node:crypto"),c=require("node:fs"),p=require("node:path"),h=require("node:sqlite");function y(n){if(n===null||typeof n!="object")return n;if(Array.isArray(n))return n.map(y);let e=n,o=Object.keys(e).sort(),r={};for(let a of o)r[a]=y(e[a]);return r}function S(n){return JSON.stringify(y(n),void 0,0)}function v(n){let e=new TextEncoder,o=new TextDecoder("utf-8",{fatal:!0}),r=s=>{let t="";for(let i of s){if(i.length===1&&/[a-zA-Z0-9_-]/.test(i)){t+=i;continue}for(let d of e.encode(i))t+=`%${d.toString(16).padStart(2,"0")}`}return(0,p.join)(n,`${t}.json`)},a=s=>{if(!s.endsWith(".json"))return null;let t=s.slice(0,-5),i=[],d=f=>{for(let u=0;u<f.length;u++)i.push(f.charCodeAt(u))},l=0;for(;l<t.length;){let f=t[l];if(f==="%"&&l+2<t.length){let u=t.slice(l+1,l+3);if(/^[0-9a-f]{2}$/i.test(u)){i.push(Number.parseInt(u,16)),l+=3;continue}}d(f),l+=1}try{return o.decode(new Uint8Array(i))}catch{return null}};return{save(s,t){(0,c.mkdirSync)(n,{recursive:!0});let i=r(s),d=`${S(t)}
2
+ `,l=(0,p.basename)(i),f=(0,p.dirname)(i),u=(0,p.join)(f,`.${l}.${(0,k.randomBytes)(8).toString("hex")}.tmp`);try{(0,c.writeFileSync)(u,d,"utf8"),(0,c.renameSync)(u,i)}catch(m){try{(0,c.unlinkSync)(u)}catch{}throw m}},load(s){try{let t=(0,c.readFileSync)(r(s),"utf8").trim();return t?JSON.parse(t):null}catch{return null}},clear(s){try{(0,c.unlinkSync)(r(s))}catch(t){if(t.code!=="ENOENT")throw t}},list(){try{let s=(0,c.readdirSync)(n),t=[];for(let i of s){if(i.startsWith("."))continue;let d=a(i);d!==null&&t.push(d)}return t.sort()}catch(s){if(s.code==="ENOENT")return[];throw s}}}}function x(n){let e=new h.DatabaseSync(n);return e.exec("CREATE TABLE IF NOT EXISTS graphrefly_checkpoint (k TEXT PRIMARY KEY, v TEXT NOT NULL)"),{save(o,r){let a=S(r);e.prepare("INSERT OR REPLACE INTO graphrefly_checkpoint (k, v) VALUES (?, ?)").run(o,a)},load(o){let r=e.prepare("SELECT v FROM graphrefly_checkpoint WHERE k = ?").get(o);return r===void 0||typeof r.v!="string"||r.v.trim()===""?null:JSON.parse(r.v)},clear(o){e.prepare("DELETE FROM graphrefly_checkpoint WHERE k = ?").run(o)},list(){return e.prepare("SELECT k FROM graphrefly_checkpoint ORDER BY k").all().map(r=>r.k)},close(){try{e.close()}catch{}}}}0&&(module.exports={fileStorage,sqliteStorage});
@@ -0,0 +1,60 @@
1
+ import { StorageTier } from './storage-core.cjs';
2
+
3
+ /**
4
+ * Node-only storage backends — `fileStorage` (atomic per-key JSON files) and
5
+ * `sqliteStorage` (Node 22.5+ `node:sqlite`). Imports `node:fs`, `node:path`,
6
+ * `node:crypto`, `node:sqlite`.
7
+ *
8
+ * Browser-safe consumers should import {@link ./storage-core} instead; the
9
+ * legacy `extra/storage.ts` barrel re-exports this module for back-compat.
10
+ *
11
+ * @module
12
+ */
13
+
14
+ /**
15
+ * Atomic JSON file storage tier (one file per key in a directory, temp + rename).
16
+ *
17
+ * Keys are sanitized to filesystem-safe names (`[^a-zA-Z0-9_-]` → `%<hex>`).
18
+ * `load` returns `null` for missing files, empty files, or invalid JSON.
19
+ *
20
+ * @param dir - Directory where per-key JSON files are written.
21
+ * @returns Sync {@link StorageTier}.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * import { fileStorage, memoryStorage } from "@graphrefly/graphrefly-ts";
26
+ *
27
+ * graph.attachStorage([memoryStorage(), fileStorage("./checkpoints")]);
28
+ * ```
29
+ *
30
+ * @category extra
31
+ */
32
+ declare function fileStorage(dir: string): StorageTier;
33
+ /**
34
+ * SQLite storage tier using Node.js `node:sqlite` ({@link DatabaseSync}).
35
+ *
36
+ * Returns a {@link StorageTier} extended with `close()` — the caller owns the
37
+ * connection and should close it when discarding the tier.
38
+ *
39
+ * **Runtime:** Requires Node 22.5+ with `node:sqlite` enabled.
40
+ *
41
+ * @param path - SQLite database file path.
42
+ * @returns Sync {@link StorageTier} with an idempotent `close()` method.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * import { sqliteStorage, memoryStorage } from "@graphrefly/graphrefly-ts";
47
+ *
48
+ * const cold = sqliteStorage("./graphs.sqlite");
49
+ * graph.attachStorage([memoryStorage(), cold]);
50
+ * // ... later, on shutdown:
51
+ * cold.close();
52
+ * ```
53
+ *
54
+ * @category extra
55
+ */
56
+ declare function sqliteStorage(path: string): StorageTier & {
57
+ close(): void;
58
+ };
59
+
60
+ export { fileStorage, sqliteStorage };
@@ -0,0 +1,60 @@
1
+ import { StorageTier } from './storage-core.js';
2
+
3
+ /**
4
+ * Node-only storage backends — `fileStorage` (atomic per-key JSON files) and
5
+ * `sqliteStorage` (Node 22.5+ `node:sqlite`). Imports `node:fs`, `node:path`,
6
+ * `node:crypto`, `node:sqlite`.
7
+ *
8
+ * Browser-safe consumers should import {@link ./storage-core} instead; the
9
+ * legacy `extra/storage.ts` barrel re-exports this module for back-compat.
10
+ *
11
+ * @module
12
+ */
13
+
14
+ /**
15
+ * Atomic JSON file storage tier (one file per key in a directory, temp + rename).
16
+ *
17
+ * Keys are sanitized to filesystem-safe names (`[^a-zA-Z0-9_-]` → `%<hex>`).
18
+ * `load` returns `null` for missing files, empty files, or invalid JSON.
19
+ *
20
+ * @param dir - Directory where per-key JSON files are written.
21
+ * @returns Sync {@link StorageTier}.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * import { fileStorage, memoryStorage } from "@graphrefly/graphrefly-ts";
26
+ *
27
+ * graph.attachStorage([memoryStorage(), fileStorage("./checkpoints")]);
28
+ * ```
29
+ *
30
+ * @category extra
31
+ */
32
+ declare function fileStorage(dir: string): StorageTier;
33
+ /**
34
+ * SQLite storage tier using Node.js `node:sqlite` ({@link DatabaseSync}).
35
+ *
36
+ * Returns a {@link StorageTier} extended with `close()` — the caller owns the
37
+ * connection and should close it when discarding the tier.
38
+ *
39
+ * **Runtime:** Requires Node 22.5+ with `node:sqlite` enabled.
40
+ *
41
+ * @param path - SQLite database file path.
42
+ * @returns Sync {@link StorageTier} with an idempotent `close()` method.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * import { sqliteStorage, memoryStorage } from "@graphrefly/graphrefly-ts";
47
+ *
48
+ * const cold = sqliteStorage("./graphs.sqlite");
49
+ * graph.attachStorage([memoryStorage(), cold]);
50
+ * // ... later, on shutdown:
51
+ * cold.close();
52
+ * ```
53
+ *
54
+ * @category extra
55
+ */
56
+ declare function sqliteStorage(path: string): StorageTier & {
57
+ close(): void;
58
+ };
59
+
60
+ export { fileStorage, sqliteStorage };
@@ -0,0 +1 @@
1
+ import{a,b}from"../chunk-3JXNEPCD.js";import"../chunk-I6VIH3VA.js";import"../chunk-QYADASLV.js";export{a as fileStorage,b as sqliteStorage};