@graphrefly/graphrefly 0.43.0 → 0.45.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 (422) hide show
  1. package/README.md +21 -17
  2. package/dist/compat/index.cjs +20 -10
  3. package/dist/compat/index.cjs.map +1 -0
  4. package/dist/compat/index.d.cts +1 -22
  5. package/dist/compat/index.d.ts +1 -22
  6. package/dist/compat/index.js +3 -1
  7. package/dist/compat/index.js.map +1 -0
  8. package/dist/compat/jotai/index.cjs +21 -1
  9. package/dist/compat/jotai/index.cjs.map +1 -0
  10. package/dist/compat/jotai/index.d.cts +1 -2
  11. package/dist/compat/jotai/index.d.ts +1 -2
  12. package/dist/compat/jotai/index.js +3 -1
  13. package/dist/compat/jotai/index.js.map +1 -0
  14. package/dist/compat/nanostores/index.cjs +21 -1
  15. package/dist/compat/nanostores/index.cjs.map +1 -0
  16. package/dist/compat/nanostores/index.d.cts +1 -2
  17. package/dist/compat/nanostores/index.d.ts +1 -2
  18. package/dist/compat/nanostores/index.js +3 -1
  19. package/dist/compat/nanostores/index.js.map +1 -0
  20. package/dist/compat/nestjs/index.cjs +20 -10
  21. package/dist/compat/nestjs/index.cjs.map +1 -0
  22. package/dist/compat/nestjs/index.d.cts +1 -13
  23. package/dist/compat/nestjs/index.d.ts +1 -13
  24. package/dist/compat/nestjs/index.js +3 -1
  25. package/dist/compat/nestjs/index.js.map +1 -0
  26. package/dist/compat/react/index.cjs +21 -1
  27. package/dist/compat/react/index.cjs.map +1 -0
  28. package/dist/compat/react/index.d.cts +1 -2
  29. package/dist/compat/react/index.d.ts +1 -2
  30. package/dist/compat/react/index.js +3 -1
  31. package/dist/compat/react/index.js.map +1 -0
  32. package/dist/compat/solid/index.cjs +21 -1
  33. package/dist/compat/solid/index.cjs.map +1 -0
  34. package/dist/compat/solid/index.d.cts +1 -2
  35. package/dist/compat/solid/index.d.ts +1 -2
  36. package/dist/compat/solid/index.js +3 -1
  37. package/dist/compat/solid/index.js.map +1 -0
  38. package/dist/compat/svelte/index.cjs +21 -1
  39. package/dist/compat/svelte/index.cjs.map +1 -0
  40. package/dist/compat/svelte/index.d.cts +1 -2
  41. package/dist/compat/svelte/index.d.ts +1 -2
  42. package/dist/compat/svelte/index.js +3 -1
  43. package/dist/compat/svelte/index.js.map +1 -0
  44. package/dist/compat/vue/index.cjs +21 -1
  45. package/dist/compat/vue/index.cjs.map +1 -0
  46. package/dist/compat/vue/index.d.cts +1 -3
  47. package/dist/compat/vue/index.d.ts +1 -3
  48. package/dist/compat/vue/index.js +3 -1
  49. package/dist/compat/vue/index.js.map +1 -0
  50. package/dist/compat/zustand/index.cjs +21 -3
  51. package/dist/compat/zustand/index.cjs.map +1 -0
  52. package/dist/compat/zustand/index.d.cts +1 -6
  53. package/dist/compat/zustand/index.d.ts +1 -6
  54. package/dist/compat/zustand/index.js +3 -1
  55. package/dist/compat/zustand/index.js.map +1 -0
  56. package/dist/core/index.cjs +21 -1
  57. package/dist/core/index.cjs.map +1 -0
  58. package/dist/core/index.d.cts +1 -4
  59. package/dist/core/index.d.ts +1 -4
  60. package/dist/core/index.js +3 -1
  61. package/dist/core/index.js.map +1 -0
  62. package/dist/extra/browser.cjs +21 -1
  63. package/dist/extra/browser.cjs.map +1 -0
  64. package/dist/extra/browser.d.cts +1 -4
  65. package/dist/extra/browser.d.ts +1 -4
  66. package/dist/extra/browser.js +3 -1
  67. package/dist/extra/browser.js.map +1 -0
  68. package/dist/extra/index.cjs +20 -19
  69. package/dist/extra/index.cjs.map +1 -0
  70. package/dist/extra/index.d.cts +1 -17
  71. package/dist/extra/index.d.ts +1 -17
  72. package/dist/extra/index.js +3 -1
  73. package/dist/extra/index.js.map +1 -0
  74. package/dist/extra/node.cjs +21 -2
  75. package/dist/extra/node.cjs.map +1 -0
  76. package/dist/extra/node.d.cts +1 -187
  77. package/dist/extra/node.d.ts +1 -187
  78. package/dist/extra/node.js +3 -2
  79. package/dist/extra/node.js.map +1 -0
  80. package/dist/extra/operators.cjs +21 -1
  81. package/dist/extra/operators.cjs.map +1 -0
  82. package/dist/extra/operators.d.cts +1 -950
  83. package/dist/extra/operators.d.ts +1 -950
  84. package/dist/extra/operators.js +3 -1
  85. package/dist/extra/operators.js.map +1 -0
  86. package/dist/extra/reactive.cjs +21 -1
  87. package/dist/extra/reactive.cjs.map +1 -0
  88. package/dist/extra/reactive.d.cts +1 -353
  89. package/dist/extra/reactive.d.ts +1 -353
  90. package/dist/extra/reactive.js +3 -1
  91. package/dist/extra/reactive.js.map +1 -0
  92. package/dist/extra/render/index.cjs +21 -5
  93. package/dist/extra/render/index.cjs.map +1 -0
  94. package/dist/extra/render/index.d.cts +1 -183
  95. package/dist/extra/render/index.d.ts +1 -183
  96. package/dist/extra/render/index.js +3 -1
  97. package/dist/extra/render/index.js.map +1 -0
  98. package/dist/extra/sources.cjs +21 -3
  99. package/dist/extra/sources.cjs.map +1 -0
  100. package/dist/extra/sources.d.cts +1 -584
  101. package/dist/extra/sources.d.ts +1 -584
  102. package/dist/extra/sources.js +3 -1
  103. package/dist/extra/sources.js.map +1 -0
  104. package/dist/extra/storage-browser.cjs +21 -1
  105. package/dist/extra/storage-browser.cjs.map +1 -0
  106. package/dist/extra/storage-browser.d.cts +1 -37
  107. package/dist/extra/storage-browser.d.ts +1 -37
  108. package/dist/extra/storage-browser.js +3 -1
  109. package/dist/extra/storage-browser.js.map +1 -0
  110. package/dist/extra/storage-core.cjs +21 -1
  111. package/dist/extra/storage-core.cjs.map +1 -0
  112. package/dist/extra/storage-core.d.cts +1 -28
  113. package/dist/extra/storage-core.d.ts +1 -28
  114. package/dist/extra/storage-core.js +3 -1
  115. package/dist/extra/storage-core.js.map +1 -0
  116. package/dist/extra/storage-node.cjs +20 -0
  117. package/dist/extra/storage-node.cjs.map +1 -0
  118. package/dist/extra/storage-node.d.cts +1 -2
  119. package/dist/extra/storage-node.d.ts +1 -2
  120. package/dist/extra/storage-node.js +3 -0
  121. package/dist/extra/storage-node.js.map +1 -0
  122. package/dist/extra/storage-tiers-browser.cjs +21 -1
  123. package/dist/extra/storage-tiers-browser.cjs.map +1 -0
  124. package/dist/extra/storage-tiers-browser.d.cts +1 -120
  125. package/dist/extra/storage-tiers-browser.d.ts +1 -120
  126. package/dist/extra/storage-tiers-browser.js +3 -1
  127. package/dist/extra/storage-tiers-browser.js.map +1 -0
  128. package/dist/extra/storage-tiers-node.cjs +21 -1
  129. package/dist/extra/storage-tiers-node.cjs.map +1 -0
  130. package/dist/extra/storage-tiers-node.d.cts +1 -210
  131. package/dist/extra/storage-tiers-node.d.ts +1 -210
  132. package/dist/extra/storage-tiers-node.js +3 -1
  133. package/dist/extra/storage-tiers-node.js.map +1 -0
  134. package/dist/extra/storage-tiers.cjs +21 -1
  135. package/dist/extra/storage-tiers.cjs.map +1 -0
  136. package/dist/extra/storage-tiers.d.cts +1 -412
  137. package/dist/extra/storage-tiers.d.ts +1 -412
  138. package/dist/extra/storage-tiers.js +3 -1
  139. package/dist/extra/storage-tiers.js.map +1 -0
  140. package/dist/extra/storage-wal.cjs +21 -0
  141. package/dist/extra/storage-wal.cjs.map +1 -0
  142. package/dist/extra/storage-wal.d.cts +1 -0
  143. package/dist/extra/storage-wal.d.ts +1 -0
  144. package/dist/extra/storage-wal.js +3 -0
  145. package/dist/extra/storage-wal.js.map +1 -0
  146. package/dist/graph/index.cjs +21 -7
  147. package/dist/graph/index.cjs.map +1 -0
  148. package/dist/graph/index.d.cts +1 -7
  149. package/dist/graph/index.d.ts +1 -7
  150. package/dist/graph/index.js +3 -1
  151. package/dist/graph/index.js.map +1 -0
  152. package/dist/index.cjs +20 -227
  153. package/dist/index.cjs.map +1 -0
  154. package/dist/index.d.cts +45 -96
  155. package/dist/index.d.ts +45 -96
  156. package/dist/index.js +3 -1
  157. package/dist/index.js.map +1 -0
  158. package/dist/patterns/ai/browser.cjs +20 -7
  159. package/dist/patterns/ai/browser.cjs.map +1 -0
  160. package/dist/patterns/ai/browser.d.cts +1 -127
  161. package/dist/patterns/ai/browser.d.ts +1 -127
  162. package/dist/patterns/ai/browser.js +3 -3
  163. package/dist/patterns/ai/browser.js.map +1 -0
  164. package/dist/patterns/ai/index.cjs +20 -73
  165. package/dist/patterns/ai/index.cjs.map +1 -0
  166. package/dist/patterns/ai/index.d.cts +1 -21
  167. package/dist/patterns/ai/index.d.ts +1 -21
  168. package/dist/patterns/ai/index.js +3 -1
  169. package/dist/patterns/ai/index.js.map +1 -0
  170. package/dist/patterns/ai/node.cjs +21 -1
  171. package/dist/patterns/ai/node.cjs.map +1 -0
  172. package/dist/patterns/ai/node.d.cts +1 -59
  173. package/dist/patterns/ai/node.d.ts +1 -59
  174. package/dist/patterns/ai/node.js +3 -1
  175. package/dist/patterns/ai/node.js.map +1 -0
  176. package/dist/patterns/cqrs/index.cjs +21 -3
  177. package/dist/patterns/cqrs/index.cjs.map +1 -0
  178. package/dist/patterns/cqrs/index.d.cts +1 -8
  179. package/dist/patterns/cqrs/index.d.ts +1 -8
  180. package/dist/patterns/cqrs/index.js +3 -1
  181. package/dist/patterns/cqrs/index.js.map +1 -0
  182. package/dist/patterns/demo-shell/index.cjs +21 -5
  183. package/dist/patterns/demo-shell/index.cjs.map +1 -0
  184. package/dist/patterns/demo-shell/index.d.cts +1 -7
  185. package/dist/patterns/demo-shell/index.d.ts +1 -7
  186. package/dist/patterns/demo-shell/index.js +3 -1
  187. package/dist/patterns/demo-shell/index.js.map +1 -0
  188. package/dist/patterns/domain-templates/index.cjs +21 -3
  189. package/dist/patterns/domain-templates/index.cjs.map +1 -0
  190. package/dist/patterns/domain-templates/index.d.cts +1 -6
  191. package/dist/patterns/domain-templates/index.d.ts +1 -6
  192. package/dist/patterns/domain-templates/index.js +3 -1
  193. package/dist/patterns/domain-templates/index.js.map +1 -0
  194. package/dist/patterns/graphspec/index.cjs +21 -86
  195. package/dist/patterns/graphspec/index.cjs.map +1 -0
  196. package/dist/patterns/graphspec/index.d.cts +1 -8
  197. package/dist/patterns/graphspec/index.d.ts +1 -8
  198. package/dist/patterns/graphspec/index.js +3 -1
  199. package/dist/patterns/graphspec/index.js.map +1 -0
  200. package/dist/patterns/harness/index.cjs +21 -48
  201. package/dist/patterns/harness/index.cjs.map +1 -0
  202. package/dist/patterns/harness/index.d.cts +1 -14
  203. package/dist/patterns/harness/index.d.ts +1 -14
  204. package/dist/patterns/harness/index.js +3 -1
  205. package/dist/patterns/harness/index.js.map +1 -0
  206. package/dist/patterns/inspect/index.cjs +21 -3
  207. package/dist/patterns/inspect/index.cjs.map +1 -0
  208. package/dist/patterns/inspect/index.d.cts +1 -9
  209. package/dist/patterns/inspect/index.d.ts +1 -9
  210. package/dist/patterns/inspect/index.js +3 -1
  211. package/dist/patterns/inspect/index.js.map +1 -0
  212. package/dist/patterns/job-queue/index.cjs +21 -3
  213. package/dist/patterns/job-queue/index.cjs.map +1 -0
  214. package/dist/patterns/job-queue/index.d.cts +1 -9
  215. package/dist/patterns/job-queue/index.d.ts +1 -9
  216. package/dist/patterns/job-queue/index.js +3 -1
  217. package/dist/patterns/job-queue/index.js.map +1 -0
  218. package/dist/patterns/memory/index.cjs +21 -3
  219. package/dist/patterns/memory/index.cjs.map +1 -0
  220. package/dist/patterns/memory/index.d.cts +1 -8
  221. package/dist/patterns/memory/index.d.ts +1 -8
  222. package/dist/patterns/memory/index.js +3 -1
  223. package/dist/patterns/memory/index.js.map +1 -0
  224. package/dist/patterns/messaging/index.cjs +21 -3
  225. package/dist/patterns/messaging/index.cjs.map +1 -0
  226. package/dist/patterns/messaging/index.d.cts +1 -7
  227. package/dist/patterns/messaging/index.d.ts +1 -7
  228. package/dist/patterns/messaging/index.js +3 -1
  229. package/dist/patterns/messaging/index.js.map +1 -0
  230. package/dist/patterns/orchestration/index.cjs +21 -3
  231. package/dist/patterns/orchestration/index.cjs.map +1 -0
  232. package/dist/patterns/orchestration/index.d.cts +1 -9
  233. package/dist/patterns/orchestration/index.d.ts +1 -9
  234. package/dist/patterns/orchestration/index.js +3 -1
  235. package/dist/patterns/orchestration/index.js.map +1 -0
  236. package/dist/patterns/process/index.cjs +21 -1
  237. package/dist/patterns/process/index.cjs.map +1 -0
  238. package/dist/patterns/process/index.d.cts +1 -10
  239. package/dist/patterns/process/index.d.ts +1 -10
  240. package/dist/patterns/process/index.js +3 -1
  241. package/dist/patterns/process/index.js.map +1 -0
  242. package/dist/patterns/reactive-layout/index.cjs +21 -4
  243. package/dist/patterns/reactive-layout/index.cjs.map +1 -0
  244. package/dist/patterns/reactive-layout/index.d.cts +1 -7
  245. package/dist/patterns/reactive-layout/index.d.ts +1 -7
  246. package/dist/patterns/reactive-layout/index.js +3 -1
  247. package/dist/patterns/reactive-layout/index.js.map +1 -0
  248. package/dist/patterns/reduction/index.cjs +21 -3
  249. package/dist/patterns/reduction/index.cjs.map +1 -0
  250. package/dist/patterns/reduction/index.d.cts +1 -6
  251. package/dist/patterns/reduction/index.d.ts +1 -6
  252. package/dist/patterns/reduction/index.js +3 -1
  253. package/dist/patterns/reduction/index.js.map +1 -0
  254. package/dist/patterns/surface/index.cjs +21 -13
  255. package/dist/patterns/surface/index.cjs.map +1 -0
  256. package/dist/patterns/surface/index.d.cts +1 -9
  257. package/dist/patterns/surface/index.d.ts +1 -9
  258. package/dist/patterns/surface/index.js +3 -1
  259. package/dist/patterns/surface/index.js.map +1 -0
  260. package/dist/patterns/topology-view/index.cjs +21 -0
  261. package/dist/patterns/topology-view/index.cjs.map +1 -0
  262. package/dist/patterns/topology-view/index.d.cts +1 -0
  263. package/dist/patterns/topology-view/index.d.ts +1 -0
  264. package/dist/patterns/topology-view/index.js +3 -0
  265. package/dist/patterns/topology-view/index.js.map +1 -0
  266. package/dist/testing/index.cjs +21 -0
  267. package/dist/testing/index.cjs.map +1 -0
  268. package/dist/testing/index.d.cts +1 -0
  269. package/dist/testing/index.d.ts +1 -0
  270. package/dist/testing/index.js +3 -0
  271. package/dist/testing/index.js.map +1 -0
  272. package/package.json +608 -584
  273. package/dist/backoff-HPZMEZNF.js +0 -1
  274. package/dist/cascading-CH-_VwG9.d.cts +0 -199
  275. package/dist/cascading-OgKQZjsa.d.ts +0 -199
  276. package/dist/chunk-35JTVPOX.js +0 -1
  277. package/dist/chunk-3G5U5QNE.js +0 -5
  278. package/dist/chunk-3XDYJRYU.js +0 -1
  279. package/dist/chunk-4I45FVQS.js +0 -1
  280. package/dist/chunk-4VVTGLXJ.js +0 -1
  281. package/dist/chunk-4YAN45KM.js +0 -1
  282. package/dist/chunk-5QDBSZBV.js +0 -1
  283. package/dist/chunk-626TESAC.js +0 -3
  284. package/dist/chunk-6HOSXQKF.js +0 -1
  285. package/dist/chunk-6QZNQS5B.js +0 -1
  286. package/dist/chunk-C72GO4IZ.js +0 -1
  287. package/dist/chunk-CE72X3WO.js +0 -1
  288. package/dist/chunk-CK2E7BTU.js +0 -1
  289. package/dist/chunk-CLD3F4R5.js +0 -1
  290. package/dist/chunk-CUNIRONA.js +0 -1
  291. package/dist/chunk-D27JNOLZ.js +0 -1
  292. package/dist/chunk-D5RFJOZ2.js +0 -1
  293. package/dist/chunk-EBW4V6JN.js +0 -1
  294. package/dist/chunk-ESMPEKEV.js +0 -1
  295. package/dist/chunk-F3IGTWCQ.js +0 -1
  296. package/dist/chunk-F672GV32.js +0 -1
  297. package/dist/chunk-FDQGFWLF.js +0 -1
  298. package/dist/chunk-FG4TKHMC.js +0 -1
  299. package/dist/chunk-GPW2V3RE.js +0 -1
  300. package/dist/chunk-I7IGYPSL.js +0 -1
  301. package/dist/chunk-INQD2KRQ.js +0 -1
  302. package/dist/chunk-JNWRYDJN.js +0 -1
  303. package/dist/chunk-JQFH2DV6.js +0 -1
  304. package/dist/chunk-K2Q24F5T.js +0 -1
  305. package/dist/chunk-KGKJCHEK.js +0 -1
  306. package/dist/chunk-KRH66M4O.js +0 -1
  307. package/dist/chunk-KVV66NN2.js +0 -1
  308. package/dist/chunk-L6NSJVJZ.js +0 -1
  309. package/dist/chunk-LYCLF26R.js +0 -1
  310. package/dist/chunk-NNKJUORL.js +0 -1
  311. package/dist/chunk-NON4NLIC.js +0 -45
  312. package/dist/chunk-O2BLLH7M.js +0 -18
  313. package/dist/chunk-OCKEEPRJ.js +0 -2
  314. package/dist/chunk-OFZG3TB3.js +0 -9
  315. package/dist/chunk-OYJKFY7V.js +0 -1
  316. package/dist/chunk-P6C4WHZO.js +0 -5
  317. package/dist/chunk-PT7W5FCD.js +0 -5
  318. package/dist/chunk-Q4U3A3L5.js +0 -1
  319. package/dist/chunk-QE4IGY7I.js +0 -61
  320. package/dist/chunk-QYADASLV.js +0 -1
  321. package/dist/chunk-QYVXF7GW.js +0 -1
  322. package/dist/chunk-S3EEIPO7.js +0 -1
  323. package/dist/chunk-SUWT3ZON.js +0 -1
  324. package/dist/chunk-TPKQW72B.js +0 -1
  325. package/dist/chunk-TSOYJ743.js +0 -1
  326. package/dist/chunk-TZQPPQEQ.js +0 -1
  327. package/dist/chunk-V5A7M7RJ.js +0 -1
  328. package/dist/chunk-VIMF6LGM.js +0 -1
  329. package/dist/chunk-VJLMUKOI.js +0 -1
  330. package/dist/chunk-VN6RDSK2.js +0 -1
  331. package/dist/chunk-VNC3TMVY.js +0 -1
  332. package/dist/chunk-VOPGGIL7.js +0 -1
  333. package/dist/chunk-VQ4A6T2A.js +0 -1
  334. package/dist/chunk-XG62INFA.js +0 -1
  335. package/dist/chunk-Y4NI3X7O.js +0 -84
  336. package/dist/content-addressed-storage-4-ST1tYk.d.cts +0 -124
  337. package/dist/content-addressed-storage-DuYMjV7o.d.ts +0 -124
  338. package/dist/decay-2ZukgQ4o.d.cts +0 -112
  339. package/dist/decay-CdEBmDIs.d.ts +0 -112
  340. package/dist/fallback-CqYVLL6X.d.ts +0 -250
  341. package/dist/fallback-Ctlj2tMY.d.cts +0 -250
  342. package/dist/graph-7VguS7a4.d.ts +0 -1668
  343. package/dist/graph-C4SHb3Ly.d.cts +0 -1668
  344. package/dist/index-0rKFCVFp.d.cts +0 -557
  345. package/dist/index-B-i4_g3k.d.ts +0 -651
  346. package/dist/index-B5iz82A3.d.cts +0 -2655
  347. package/dist/index-BAOD98JD.d.cts +0 -754
  348. package/dist/index-BG0BN3PB.d.ts +0 -44
  349. package/dist/index-BJX94aud.d.cts +0 -34
  350. package/dist/index-BP8a88zx.d.ts +0 -385
  351. package/dist/index-BTQtTb_H.d.cts +0 -301
  352. package/dist/index-BVpm6noz.d.cts +0 -36
  353. package/dist/index-Bc41FuHp.d.cts +0 -291
  354. package/dist/index-BdGtBX-X.d.cts +0 -515
  355. package/dist/index-Bf7eqeSF.d.ts +0 -113
  356. package/dist/index-BiX1Nkgx.d.cts +0 -1844
  357. package/dist/index-BoLv_OfD.d.cts +0 -651
  358. package/dist/index-BojK2fwH.d.cts +0 -299
  359. package/dist/index-BsT7F2et.d.ts +0 -291
  360. package/dist/index-BwLvVVsy.d.cts +0 -189
  361. package/dist/index-C59mYFKp.d.ts +0 -121
  362. package/dist/index-C7O6r5fV.d.ts +0 -37
  363. package/dist/index-C9kSENB4.d.cts +0 -127
  364. package/dist/index-C9pjcz3l.d.cts +0 -209
  365. package/dist/index-CAC_rNzm.d.ts +0 -189
  366. package/dist/index-CCq87F7t.d.ts +0 -127
  367. package/dist/index-CDXc9zKM.d.cts +0 -26
  368. package/dist/index-CJK1JkYy.d.ts +0 -36
  369. package/dist/index-CLon-IWF.d.cts +0 -374
  370. package/dist/index-COD1kVoS.d.cts +0 -468
  371. package/dist/index-CPT7C_f1.d.ts +0 -374
  372. package/dist/index-CQG3D1cp.d.ts +0 -468
  373. package/dist/index-CZQXo5tH.d.ts +0 -209
  374. package/dist/index-CZjOhcBy.d.cts +0 -113
  375. package/dist/index-ChOyVLKm.d.cts +0 -86
  376. package/dist/index-CvrqGfNS.d.ts +0 -34
  377. package/dist/index-D-AEQVLo.d.ts +0 -2655
  378. package/dist/index-D4Y1cMG0.d.ts +0 -26
  379. package/dist/index-DBHK8O6H.d.ts +0 -301
  380. package/dist/index-DBevwHj_.d.ts +0 -515
  381. package/dist/index-DIOoAZUX.d.ts +0 -45
  382. package/dist/index-DSZ3ZCHF.d.ts +0 -3402
  383. package/dist/index-Dgs8zcj7.d.ts +0 -102
  384. package/dist/index-Dh_HJ82K.d.ts +0 -299
  385. package/dist/index-Dhc7a7Xo.d.cts +0 -102
  386. package/dist/index-Dmqp7KjD.d.ts +0 -86
  387. package/dist/index-Dn-wI9g4.d.ts +0 -231
  388. package/dist/index-Du7u1lSf.d.cts +0 -385
  389. package/dist/index-DwigL4lY.d.ts +0 -1844
  390. package/dist/index-DyR7eU5S.d.cts +0 -779
  391. package/dist/index-JZUPJIJy.d.ts +0 -779
  392. package/dist/index-K0_0eR8g.d.ts +0 -557
  393. package/dist/index-O16yXPK4.d.cts +0 -3402
  394. package/dist/index-O7fucFrU.d.cts +0 -121
  395. package/dist/index-RV_yDjOX.d.cts +0 -198
  396. package/dist/index-cm1GNcWE.d.ts +0 -754
  397. package/dist/index-f5IivDUX.d.cts +0 -37
  398. package/dist/index-hHcaFlJX.d.cts +0 -45
  399. package/dist/index-tJoTcnHh.d.cts +0 -231
  400. package/dist/index-wAzD9yVj.d.ts +0 -198
  401. package/dist/index-z96luz5O.d.cts +0 -44
  402. package/dist/meta-BgVAsg9j.d.ts +0 -102
  403. package/dist/meta-vE8bxW1E.d.cts +0 -102
  404. package/dist/node-ClS5yC-B.d.cts +0 -1347
  405. package/dist/node-ClS5yC-B.d.ts +0 -1347
  406. package/dist/observable-BsBzUrcI.d.ts +0 -36
  407. package/dist/observable-DLGPPtb8.d.cts +0 -36
  408. package/dist/pipeline-graph-DPqKDk59.d.cts +0 -137
  409. package/dist/pipeline-graph-loP57TBA.d.ts +0 -137
  410. package/dist/reactive-layout-Dsvob4zD.d.cts +0 -183
  411. package/dist/reactive-layout-v7KPvxoc.d.ts +0 -183
  412. package/dist/reactive-log-B00laMSQ.d.cts +0 -223
  413. package/dist/reactive-log-BezYsbA_.d.ts +0 -223
  414. package/dist/reactive-map-48mnZ-nu.d.cts +0 -296
  415. package/dist/reactive-map-BVVPdvmi.d.ts +0 -296
  416. package/dist/resilience-YIWPK4YC.js +0 -1
  417. package/dist/sugar-DLwvMr3F.d.ts +0 -223
  418. package/dist/sugar-DyVGtczU.d.cts +0 -223
  419. package/dist/topology-tree-BNGvuG82.d.ts +0 -25
  420. package/dist/topology-tree-BSdfSwMi.d.cts +0 -25
  421. package/dist/types-B1jDWVsM.d.cts +0 -442
  422. package/dist/types-DkzUUs0H.d.ts +0 -442
@@ -1,102 +0,0 @@
1
- import { G as Graph } from './graph-7VguS7a4.js';
2
- import { M as MeasurementAdapter } from './reactive-layout-v7KPvxoc.js';
3
-
4
- /**
5
- * Three-pane demo shell (roadmap §7.2).
6
- *
7
- * A `Graph("demo-shell")` that dogfoods reactive coordination for the
8
- * main/side split layout with synchronized cross-highlighting.
9
- *
10
- * **Zero framework dependency** — framework bindings wrap pane components only.
11
- * The shell graph is headless and fully testable.
12
- */
13
-
14
- /** Identifies which pane is the source of a hover event. */
15
- type HoverPaneType = "visual" | "graph" | "code";
16
- /** Cross-highlighting hover target. `null` means nothing hovered. */
17
- type HoverTarget = {
18
- pane: HoverPaneType;
19
- id: string;
20
- } | null;
21
- /** Which pane is full-screened (null = normal layout). */
22
- type FullscreenPane = "main" | "graph" | "code" | null;
23
- /**
24
- * Cross-referencing registry: maps node paths to code line numbers and
25
- * visual element selectors. Provided by each demo's `store.ts`.
26
- */
27
- type NodeRegistry = Map<string, {
28
- codeLine: number;
29
- visualSelector: string;
30
- }>;
31
- /** Callbacks for cross-highlighting effect nodes. */
32
- type HighlightCallbacks = {
33
- /** Called when code-scroll highlight target changes. */
34
- codeScroll?: (line: number | null) => void;
35
- /** Called when visual highlight target changes. */
36
- visual?: (selector: string | null) => void;
37
- /** Called when graph highlight target changes. */
38
- graph?: (nodeId: string | null) => void;
39
- };
40
- /** Label dimensions for graph node sizing. */
41
- type GraphLabelSize = {
42
- width: number;
43
- height: number;
44
- };
45
- /** Options for {@link demoShell}. */
46
- type DemoShellOptions = {
47
- /** Initial main/side split ratio (0–1). Default: `0.65`. */
48
- mainRatio?: number;
49
- /** Initial graph/code vertical split in the side pane (0–1). Default: `0.5`. */
50
- sideSplit?: number;
51
- /** Initial viewport width in pixels. Default: `1280`. */
52
- viewportWidth?: number;
53
- /** Cross-referencing registry for hover→code/visual/graph mapping. */
54
- nodeRegistry?: NodeRegistry;
55
- /** Measurement adapter for layout engine integration. When provided, enables layout/* derived nodes. */
56
- adapter?: MeasurementAdapter;
57
- /** Font string for layout measurement. Default: `"14px monospace"`. */
58
- layoutFont?: string;
59
- /** Callbacks for cross-highlighting effect nodes. When provided, creates effect nodes visible in describe(). */
60
- onHighlight?: HighlightCallbacks;
61
- };
62
- /** Return type of {@link demoShell}. */
63
- type DemoShellHandle = {
64
- /** The demo-shell graph. */
65
- graph: Graph;
66
- setMainRatio(ratio: number): void;
67
- setSideSplit(ratio: number): void;
68
- setFullscreen(pane: FullscreenPane): void;
69
- setViewportWidth(width: number): void;
70
- setHoverTarget(target: HoverTarget): void;
71
- setDemoGraph(g: Graph | null): void;
72
- bumpGraphTick(): void;
73
- selectNode(path: string | null): void;
74
- setMetaDebug(on: boolean): void;
75
- /** Set code text for layout/code-lines measurement (requires adapter). */
76
- setCodeText(text: string): void;
77
- /** Atomic multi-set — wraps core `batch()` for glitch-free updates. */
78
- batch(fn: () => void): void;
79
- destroy(): void;
80
- };
81
- /**
82
- * Creates the three-pane demo shell graph (roadmap §7.2).
83
- *
84
- * All coordination is reactive — no polling, no imperative triggers.
85
- * Framework bindings subscribe to named nodes and drive `state` inputs.
86
- */
87
- declare function demoShell(opts?: DemoShellOptions): DemoShellHandle;
88
-
89
- type index_DemoShellHandle = DemoShellHandle;
90
- type index_DemoShellOptions = DemoShellOptions;
91
- type index_FullscreenPane = FullscreenPane;
92
- type index_GraphLabelSize = GraphLabelSize;
93
- type index_HighlightCallbacks = HighlightCallbacks;
94
- type index_HoverPaneType = HoverPaneType;
95
- type index_HoverTarget = HoverTarget;
96
- type index_NodeRegistry = NodeRegistry;
97
- declare const index_demoShell: typeof demoShell;
98
- declare namespace index {
99
- export { type index_DemoShellHandle as DemoShellHandle, type index_DemoShellOptions as DemoShellOptions, type index_FullscreenPane as FullscreenPane, type index_GraphLabelSize as GraphLabelSize, type index_HighlightCallbacks as HighlightCallbacks, type index_HoverPaneType as HoverPaneType, type index_HoverTarget as HoverTarget, type index_NodeRegistry as NodeRegistry, index_demoShell as demoShell };
100
- }
101
-
102
- export { type DemoShellHandle as D, type FullscreenPane as F, type GraphLabelSize as G, type HighlightCallbacks as H, type NodeRegistry as N, type DemoShellOptions as a, type HoverPaneType as b, type HoverTarget as c, demoShell as d, index as i };
@@ -1,299 +0,0 @@
1
- import { B as BaseAuditRecord } from './index-CZQXo5tH.js';
2
- import { a as ReactiveLogBundle } from './reactive-log-BezYsbA_.js';
3
- import { NodeInput } from './extra/sources.js';
4
- import { AppendLogStorageTier } from './extra/storage-tiers.js';
5
- import { C as CqrsEventMap, a as CqrsEvent, b as CqrsGraph } from './index-CQG3D1cp.js';
6
-
7
- /**
8
- * Process Manager pattern (Phase 7 — roadmap §4.6, Audit 3 — locked 2026-04-24).
9
- *
10
- * Reactive long-running workflow primitive over CQRS event nodes.
11
- * Correlates events across aggregates, tracks per-instance state, supports
12
- * retries with backoff, and runs compensation on failure or explicit cancel.
13
- *
14
- * ## Architecture
15
- *
16
- * - Per-instance state lives in a `Map<correlationId, TState>` closure (in-memory).
17
- * The `_process_<name>_started` synthetic event is dispatched per `start()`
18
- * for an event-sourced audit trail using `correlationId` as `aggregateId`.
19
- * Future state-snapshot persistence (`_process_<name>_state`) is reserved
20
- * under the same `_process_<name>_*` namespace but not yet implemented;
21
- * see `docs/optimizations.md` "Deferred follow-ups".
22
- * - Watched-event subscriptions are imperative (coordinator role) — each
23
- * watched CQRS event type is subscribed to via `entries.subscribe(...)`.
24
- * These are NOT reactive node edges; the process manager is intentionally
25
- * a coordinator that bridges reactive CQRS events into imperative instance logic.
26
- * - Step execution uses `fromAny` to uniformly handle sync and async handlers.
27
- * - Retry delays use `setTimeout` (same sanctioned pattern as `extra/resilience.ts`
28
- * retry helper — this primitive is a coordinator, not a reactive pipeline stage).
29
- * - Timer scheduling uses `fromTimer` from `extra/sources.ts` per spec §5.8.
30
- * - Audit log uses `createAuditLog` per Audit 2.
31
- *
32
- * @module
33
- */
34
-
35
- /**
36
- * Discriminated union returned by each step handler.
37
- *
38
- * - `"success"` — step ran cleanly; update state, optionally emit
39
- * side-effect events and schedule a future synthetic event. The process
40
- * instance stays `"running"`.
41
- * - `"terminate"` — workflow complete; instance moves to `"terminated"`.
42
- * Process-specific extension to the canonical outcome enum.
43
- * - `"failure"` — triggers compensation; instance moves to `"compensated"` /
44
- * `"errored"`.
45
- *
46
- * Field name is `outcome` (matching `cqrs.DispatchRecord.outcome` and the
47
- * canonical Tier 1.6.2 / 2.3 enum). `"success"` and `"failure"` are the
48
- * canonical values; `"terminate"` is the process-specific extension for
49
- * "early-return success".
50
- */
51
- type ProcessStepResult<TState> = {
52
- outcome: "success";
53
- state: TState;
54
- emit?: readonly {
55
- type: string;
56
- payload: unknown;
57
- }[];
58
- schedule?: ProcessSchedule;
59
- } | {
60
- outcome: "terminate";
61
- state: TState;
62
- emit?: readonly {
63
- type: string;
64
- payload: unknown;
65
- }[];
66
- reason?: string;
67
- } | {
68
- outcome: "failure";
69
- error: unknown;
70
- };
71
- /**
72
- * Schedule a synthetic timer event after `afterMs` milliseconds.
73
- * When the timer fires, the synthetic event of `eventType` is routed to the
74
- * matching step (if one is registered) for this correlationId.
75
- */
76
- type ProcessSchedule = {
77
- afterMs: number;
78
- eventType: string;
79
- };
80
- /**
81
- * Step handler signature.
82
- *
83
- * Receives the current instance state and the triggering CQRS event.
84
- * Returns a {@link ProcessStepResult} — sync value, Promise, or any
85
- * {@link NodeInput} consumed via `fromAny`.
86
- */
87
- type ProcessStep<TState, EM extends CqrsEventMap, K extends keyof EM & string> = (state: TState, event: CqrsEvent<EM[K]>) => NodeInput<ProcessStepResult<TState>>;
88
- /**
89
- * Compensation handler. Runs when a step returns `outcome: "failure"`, throws, or
90
- * when `cancel(correlationId)` is called on a running instance.
91
- *
92
- * Should undo any side effects performed by prior steps (refund, cancel
93
- * reservation, etc.). Errors thrown inside compensate are swallowed and
94
- * recorded in the audit log with `status: "errored"` to prevent cascading
95
- * failure loops.
96
- */
97
- type ProcessCompensate<TState> = (state: TState, error: unknown) => NodeInput<void>;
98
- /**
99
- * Audit record for a single process instance state transition.
100
- *
101
- * Every status change (start → running → terminated / errored / compensated)
102
- * appends one record. `correlationId` is the stable process key.
103
- *
104
- * Extends {@link BaseAuditRecord} so records carry `t_ns` / `seq` /
105
- * `handlerVersion` from the cross-cutting Audit 2 schema.
106
- */
107
- interface ProcessInstance<TState> extends BaseAuditRecord {
108
- /** Stable correlation key that identifies this process instance. */
109
- readonly correlationId: string;
110
- /** Most-recent instance state at this transition. */
111
- readonly state: TState;
112
- /** Current lifecycle status after this transition. */
113
- readonly status: "running" | "terminated" | "errored" | "compensated";
114
- /** Wall-clock nanoseconds when `start()` was called. */
115
- readonly startedAt: number;
116
- /** Wall-clock nanoseconds of this transition. */
117
- readonly updatedAt: number;
118
- /** Handler version stamped at transition time (Audit 5). */
119
- readonly handlerVersion?: {
120
- id: string;
121
- version: string | number;
122
- };
123
- /** Optional human-readable reason for cancellation. Present only on `"compensated"` records produced by `cancel()`. */
124
- readonly reason?: string;
125
- }
126
- /**
127
- * Recommended `keyOf` for storage tiers keyed by correlationId (Audit 2).
128
- */
129
- declare const processInstanceKeyOf: <TState>(i: ProcessInstance<TState>) => string;
130
- /**
131
- * Options for {@link processManager}.
132
- */
133
- interface ProcessManagerOpts<TState, EM extends CqrsEventMap> {
134
- /** Initial state value for every new process instance. */
135
- readonly initial: TState;
136
- /** CQRS event types to watch for correlation routing. */
137
- readonly watching: readonly (keyof EM & string)[];
138
- /**
139
- * Per-event-type step handlers. A step is invoked when a watched event's
140
- * `correlationId` matches a running instance and the event type is in
141
- * `steps`. Events with no matching step are silently ignored.
142
- */
143
- readonly steps: {
144
- [K in keyof EM & string]?: ProcessStep<TState, EM, K>;
145
- };
146
- /**
147
- * Optional compensation handler. Runs on step `outcome: "failure"` / step throw
148
- * and on explicit `cancel()`. If omitted, instances fail silently with
149
- * status `"errored"` instead of `"compensated"`.
150
- */
151
- readonly compensate?: ProcessCompensate<TState>;
152
- /**
153
- * Optional predicate called after each `"success"` step. When it returns
154
- * `true`, the instance is moved to `"terminated"` immediately without
155
- * waiting for a `"terminate"` step result.
156
- */
157
- readonly isTerminal?: (state: TState) => boolean;
158
- /**
159
- * Maximum number of retry attempts after a step throws (not counting the
160
- * first attempt). Default: `0` (no retry — fail immediately on throw).
161
- */
162
- readonly retryMax?: number;
163
- /**
164
- * Per-retry backoff delays in milliseconds. `backoffMs[i]` is the delay
165
- * before attempt `i + 1`. If fewer entries than `retryMax`, the last entry
166
- * is repeated. Default: `[0]` (no delay).
167
- *
168
- * **Implementation note:** retry delays are implemented with `setTimeout`
169
- * (same sanctioned exception as `extra/resilience.ts`). This is a
170
- * coordinator-layer primitive — `fromTimer` would require subscribing to
171
- * an additional node per attempt, which would leak timer nodes without a
172
- * clear disposal scope.
173
- */
174
- readonly backoffMs?: readonly number[];
175
- /** Handler version tag stamped onto audit records (Audit 5). */
176
- readonly handlerVersion?: {
177
- id: string;
178
- version: string | number;
179
- };
180
- /** Optional persistence wiring (Audit 4). */
181
- readonly persistence?: {
182
- /**
183
- * Wire the per-process synthetic state event stream to append-log tiers.
184
- * Reuses `CqrsGraph.attachEventStorage` so events persist across restarts.
185
- */
186
- eventStorage?: readonly AppendLogStorageTier<CqrsEvent>[];
187
- };
188
- }
189
- /**
190
- * Result handle returned by {@link processManager}.
191
- */
192
- interface ProcessManagerResult<TState> {
193
- /**
194
- * Reactive audit log of every process instance state transition.
195
- * Every `start()`, step result, retry, cancellation, and compensation
196
- * appends a {@link ProcessInstance} record.
197
- */
198
- readonly instances: ReactiveLogBundle<ProcessInstance<TState>>;
199
- /**
200
- * Alias for {@link instances} (Audit 2 `.audit` duplication convention).
201
- */
202
- readonly audit: ReactiveLogBundle<ProcessInstance<TState>>;
203
- /**
204
- * Start a new process instance identified by `correlationId`.
205
- *
206
- * Emits a synthetic `_process_<name>_started` event into the CQRS graph
207
- * with `correlationId` as `aggregateId` so per-aggregate streams record
208
- * the process lifecycle. If the correlationId already has an active
209
- * (running) instance, this call is a no-op (idempotent).
210
- *
211
- * @param correlationId - Stable key for this workflow instance.
212
- * @param initialPayload - Optional payload carried on the start event.
213
- */
214
- start(correlationId: string, initialPayload?: unknown): void;
215
- /**
216
- * Cancel a running instance by correlationId.
217
- *
218
- * Triggers the `compensate` handler (if configured), then marks the
219
- * instance as `"compensated"`. If the instance is not running, this is
220
- * a no-op.
221
- *
222
- * @param correlationId - Instance to cancel.
223
- * @param reason - Optional human-readable reason recorded in the audit log.
224
- */
225
- cancel(correlationId: string, reason?: string): void;
226
- /**
227
- * Synchronous read of the current in-memory state for a correlationId.
228
- * Returns `undefined` if the instance does not exist or has terminated.
229
- */
230
- getState(correlationId: string): TState | undefined;
231
- /**
232
- * Release all watched-event subscriptions and stop processing new events.
233
- *
234
- * After `dispose()`, subsequent `start()` and `cancel()` calls are no-ops.
235
- * In-flight async steps complete naturally; no new steps are dispatched.
236
- */
237
- dispose(): void;
238
- }
239
- /**
240
- * Create a process manager that coordinates long-running reactive workflows
241
- * over a {@link CqrsGraph}.
242
- *
243
- * Process instances are identified by `correlationId`. Events from the watched
244
- * event types are routed to per-instance step handlers when the event's
245
- * `correlationId` matches a running instance.
246
- *
247
- * ```ts
248
- * const app = cqrs<{ orderPlaced: { orderId: string }; paymentReceived: { amount: number } }>("orders");
249
- *
250
- * const pm = processManager(app, "fulfillment", {
251
- * initial: { step: "awaiting-payment", total: 0 },
252
- * watching: ["orderPlaced", "paymentReceived"],
253
- * steps: {
254
- * orderPlaced(state, event) {
255
- * return { outcome: "success", state: { ...state, orderId: event.payload.orderId } };
256
- * },
257
- * paymentReceived(state, event) {
258
- * return { outcome: "terminate", state: { ...state, total: event.payload.amount } };
259
- * },
260
- * },
261
- * compensate(state, _error) {
262
- * // undo reservation, issue refund, etc.
263
- * },
264
- * retryMax: 2,
265
- * backoffMs: [100, 500],
266
- * });
267
- *
268
- * pm.start("order-123");
269
- * app.dispatch("orderPlaced", { orderId: "order-123" }, { correlationId: "order-123" });
270
- * ```
271
- *
272
- * @param cqrsGraph - The CQRS graph whose event streams the manager watches.
273
- * @param name - Stable identifier for this process type; used for the
274
- * synthetic event-type prefix `_process_<name>_*`. Currently emits
275
- * `_process_<name>_started` per `start()`; the prefix is reserved for
276
- * future `_state` / `_timer` channels.
277
- * @param opts - Configuration: initial state, watched events, steps, retry,
278
- * compensation, and optional persistence.
279
- * @returns {@link ProcessManagerResult} with `instances` audit log and
280
- * `start`, `cancel`, `getState` imperative controls.
281
- *
282
- * @category patterns
283
- */
284
- declare function processManager<TState, EM extends CqrsEventMap = Record<string, unknown>>(cqrsGraph: CqrsGraph<EM>, name: string, opts: ProcessManagerOpts<TState, EM>): ProcessManagerResult<TState>;
285
-
286
- type index_ProcessCompensate<TState> = ProcessCompensate<TState>;
287
- type index_ProcessInstance<TState> = ProcessInstance<TState>;
288
- type index_ProcessManagerOpts<TState, EM extends CqrsEventMap> = ProcessManagerOpts<TState, EM>;
289
- type index_ProcessManagerResult<TState> = ProcessManagerResult<TState>;
290
- type index_ProcessSchedule = ProcessSchedule;
291
- type index_ProcessStep<TState, EM extends CqrsEventMap, K extends keyof EM & string> = ProcessStep<TState, EM, K>;
292
- type index_ProcessStepResult<TState> = ProcessStepResult<TState>;
293
- declare const index_processInstanceKeyOf: typeof processInstanceKeyOf;
294
- declare const index_processManager: typeof processManager;
295
- declare namespace index {
296
- export { type index_ProcessCompensate as ProcessCompensate, type index_ProcessInstance as ProcessInstance, type index_ProcessManagerOpts as ProcessManagerOpts, type index_ProcessManagerResult as ProcessManagerResult, type index_ProcessSchedule as ProcessSchedule, type index_ProcessStep as ProcessStep, type index_ProcessStepResult as ProcessStepResult, index_processInstanceKeyOf as processInstanceKeyOf, index_processManager as processManager };
297
- }
298
-
299
- export { type ProcessCompensate as P, type ProcessInstance as a, type ProcessManagerOpts as b, type ProcessManagerResult as c, type ProcessSchedule as d, type ProcessStep as e, type ProcessStepResult as f, processManager as g, index as i, processInstanceKeyOf as p };
@@ -1,102 +0,0 @@
1
- import { G as Graph } from './graph-C4SHb3Ly.cjs';
2
- import { M as MeasurementAdapter } from './reactive-layout-Dsvob4zD.cjs';
3
-
4
- /**
5
- * Three-pane demo shell (roadmap §7.2).
6
- *
7
- * A `Graph("demo-shell")` that dogfoods reactive coordination for the
8
- * main/side split layout with synchronized cross-highlighting.
9
- *
10
- * **Zero framework dependency** — framework bindings wrap pane components only.
11
- * The shell graph is headless and fully testable.
12
- */
13
-
14
- /** Identifies which pane is the source of a hover event. */
15
- type HoverPaneType = "visual" | "graph" | "code";
16
- /** Cross-highlighting hover target. `null` means nothing hovered. */
17
- type HoverTarget = {
18
- pane: HoverPaneType;
19
- id: string;
20
- } | null;
21
- /** Which pane is full-screened (null = normal layout). */
22
- type FullscreenPane = "main" | "graph" | "code" | null;
23
- /**
24
- * Cross-referencing registry: maps node paths to code line numbers and
25
- * visual element selectors. Provided by each demo's `store.ts`.
26
- */
27
- type NodeRegistry = Map<string, {
28
- codeLine: number;
29
- visualSelector: string;
30
- }>;
31
- /** Callbacks for cross-highlighting effect nodes. */
32
- type HighlightCallbacks = {
33
- /** Called when code-scroll highlight target changes. */
34
- codeScroll?: (line: number | null) => void;
35
- /** Called when visual highlight target changes. */
36
- visual?: (selector: string | null) => void;
37
- /** Called when graph highlight target changes. */
38
- graph?: (nodeId: string | null) => void;
39
- };
40
- /** Label dimensions for graph node sizing. */
41
- type GraphLabelSize = {
42
- width: number;
43
- height: number;
44
- };
45
- /** Options for {@link demoShell}. */
46
- type DemoShellOptions = {
47
- /** Initial main/side split ratio (0–1). Default: `0.65`. */
48
- mainRatio?: number;
49
- /** Initial graph/code vertical split in the side pane (0–1). Default: `0.5`. */
50
- sideSplit?: number;
51
- /** Initial viewport width in pixels. Default: `1280`. */
52
- viewportWidth?: number;
53
- /** Cross-referencing registry for hover→code/visual/graph mapping. */
54
- nodeRegistry?: NodeRegistry;
55
- /** Measurement adapter for layout engine integration. When provided, enables layout/* derived nodes. */
56
- adapter?: MeasurementAdapter;
57
- /** Font string for layout measurement. Default: `"14px monospace"`. */
58
- layoutFont?: string;
59
- /** Callbacks for cross-highlighting effect nodes. When provided, creates effect nodes visible in describe(). */
60
- onHighlight?: HighlightCallbacks;
61
- };
62
- /** Return type of {@link demoShell}. */
63
- type DemoShellHandle = {
64
- /** The demo-shell graph. */
65
- graph: Graph;
66
- setMainRatio(ratio: number): void;
67
- setSideSplit(ratio: number): void;
68
- setFullscreen(pane: FullscreenPane): void;
69
- setViewportWidth(width: number): void;
70
- setHoverTarget(target: HoverTarget): void;
71
- setDemoGraph(g: Graph | null): void;
72
- bumpGraphTick(): void;
73
- selectNode(path: string | null): void;
74
- setMetaDebug(on: boolean): void;
75
- /** Set code text for layout/code-lines measurement (requires adapter). */
76
- setCodeText(text: string): void;
77
- /** Atomic multi-set — wraps core `batch()` for glitch-free updates. */
78
- batch(fn: () => void): void;
79
- destroy(): void;
80
- };
81
- /**
82
- * Creates the three-pane demo shell graph (roadmap §7.2).
83
- *
84
- * All coordination is reactive — no polling, no imperative triggers.
85
- * Framework bindings subscribe to named nodes and drive `state` inputs.
86
- */
87
- declare function demoShell(opts?: DemoShellOptions): DemoShellHandle;
88
-
89
- type index_DemoShellHandle = DemoShellHandle;
90
- type index_DemoShellOptions = DemoShellOptions;
91
- type index_FullscreenPane = FullscreenPane;
92
- type index_GraphLabelSize = GraphLabelSize;
93
- type index_HighlightCallbacks = HighlightCallbacks;
94
- type index_HoverPaneType = HoverPaneType;
95
- type index_HoverTarget = HoverTarget;
96
- type index_NodeRegistry = NodeRegistry;
97
- declare const index_demoShell: typeof demoShell;
98
- declare namespace index {
99
- export { type index_DemoShellHandle as DemoShellHandle, type index_DemoShellOptions as DemoShellOptions, type index_FullscreenPane as FullscreenPane, type index_GraphLabelSize as GraphLabelSize, type index_HighlightCallbacks as HighlightCallbacks, type index_HoverPaneType as HoverPaneType, type index_HoverTarget as HoverTarget, type index_NodeRegistry as NodeRegistry, index_demoShell as demoShell };
100
- }
101
-
102
- export { type DemoShellHandle as D, type FullscreenPane as F, type GraphLabelSize as G, type HighlightCallbacks as H, type NodeRegistry as N, type DemoShellOptions as a, type HoverPaneType as b, type HoverTarget as c, demoShell as d, index as i };
@@ -1,86 +0,0 @@
1
- import { N as Node } from './node-ClS5yC-B.js';
2
-
3
- /**
4
- * Options for creating an atom.
5
- *
6
- * @category compat
7
- */
8
- interface AtomOptions {
9
- /** Optional identifier for the underlying node. */
10
- name?: string;
11
- /** Optional companion meta nodes. */
12
- meta?: Record<string, unknown>;
13
- }
14
- /**
15
- * A read-only Jotai-compatible atom.
16
- *
17
- * @category compat
18
- */
19
- interface ReadableAtom<T> {
20
- /** Returns the current cached value. */
21
- get(): T;
22
- /** Subscribes to value changes. Returns an unsubscribe function. */
23
- subscribe(callback: (value: T) => void): () => void;
24
- /** Access to companion meta nodes. */
25
- readonly meta: Record<string, Node>;
26
- /** @internal The underlying GraphReFly node. */
27
- _node: Node<T>;
28
- }
29
- /**
30
- * A writable Jotai-compatible atom.
31
- *
32
- * @category compat
33
- */
34
- interface WritableAtom<T> extends ReadableAtom<T> {
35
- /** Sets a new value. */
36
- set(value: T): void;
37
- /** Updates the value using a transformation function. */
38
- update(fn: (current: T) => T): void;
39
- }
40
- /** Function type for reading other atoms inside a derived atom. */
41
- type GetFn = <V>(a: ReadableAtom<V>) => V;
42
- /** Function type for writing to other atoms inside a writable derived atom. */
43
- type SetFn = <V>(a: WritableAtom<V>, value: V) => void;
44
- /** Function that computes the atom's value. */
45
- type ReadFn<T> = (get: GetFn) => T;
46
- /** Function that handles writes to the atom. */
47
- type WriteFn<T> = (get: GetFn, set: SetFn, value: T) => void;
48
- /**
49
- * Creates a Jotai-compatible atom built on GraphReFly primitives.
50
- *
51
- * Supports three overloads:
52
- * 1. `atom(initial)` — Writable primitive atom (wraps `state()`).
53
- * 2. `atom(read)` — Read-only derived atom (wraps `dynamicNode()`).
54
- * 3. `atom(read, write)` — Writable derived atom.
55
- *
56
- * @param initialOrRead - Initial value or a read function.
57
- * @param writeOrOptions - Write function or options object.
58
- * @param options - Optional configuration.
59
- * @returns WritableAtom or ReadableAtom.
60
- *
61
- * @example
62
- * ```ts
63
- * const count = atom(0);
64
- * count.set(1);
65
- * const doubled = atom((get) => get(count)! * 2);
66
- * ```
67
- *
68
- * @category compat
69
- */
70
- declare function atom<T>(initial: T, options?: AtomOptions): WritableAtom<T>;
71
- declare function atom<T>(read: ReadFn<T>, options?: AtomOptions): ReadableAtom<T>;
72
- declare function atom<T>(read: ReadFn<T>, write: WriteFn<T>, options?: AtomOptions): WritableAtom<T>;
73
-
74
- type index_AtomOptions = AtomOptions;
75
- type index_GetFn = GetFn;
76
- type index_ReadFn<T> = ReadFn<T>;
77
- type index_ReadableAtom<T> = ReadableAtom<T>;
78
- type index_SetFn = SetFn;
79
- type index_WritableAtom<T> = WritableAtom<T>;
80
- type index_WriteFn<T> = WriteFn<T>;
81
- declare const index_atom: typeof atom;
82
- declare namespace index {
83
- export { type index_AtomOptions as AtomOptions, type index_GetFn as GetFn, type index_ReadFn as ReadFn, type index_ReadableAtom as ReadableAtom, type index_SetFn as SetFn, type index_WritableAtom as WritableAtom, type index_WriteFn as WriteFn, index_atom as atom };
84
- }
85
-
86
- export { type AtomOptions as A, type GetFn as G, type ReadFn as R, type SetFn as S, type WritableAtom as W, type ReadableAtom as a, type WriteFn as b, atom as c, index as i };