@graphrefly/ts 0.0.1 → 0.0.3

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 (333) hide show
  1. package/README.md +197 -117
  2. package/dist/actions-types-CH-XCU9O.d.cts +657 -0
  3. package/dist/actions-types-w2iPQTkv.d.ts +657 -0
  4. package/dist/adapters/index.cjs +5157 -2951
  5. package/dist/adapters/index.cjs.map +1 -1
  6. package/dist/adapters/index.d.cts +207 -70
  7. package/dist/adapters/index.d.ts +207 -70
  8. package/dist/adapters/index.js +3738 -1688
  9. package/dist/adapters/index.js.map +1 -1
  10. package/dist/adapters/nestjs/microservices.cjs +841 -0
  11. package/dist/adapters/nestjs/microservices.cjs.map +1 -0
  12. package/dist/adapters/nestjs/microservices.d.cts +45 -0
  13. package/dist/adapters/nestjs/microservices.d.ts +45 -0
  14. package/dist/adapters/nestjs/microservices.js +206 -0
  15. package/dist/adapters/nestjs/microservices.js.map +1 -0
  16. package/dist/adapters/nestjs/native.cjs +1391 -0
  17. package/dist/adapters/nestjs/native.cjs.map +1 -0
  18. package/dist/adapters/nestjs/native.d.cts +111 -0
  19. package/dist/adapters/nestjs/native.d.ts +111 -0
  20. package/dist/adapters/nestjs/native.js +577 -0
  21. package/dist/adapters/nestjs/native.js.map +1 -0
  22. package/dist/adapters/nestjs/websockets.cjs +924 -0
  23. package/dist/adapters/nestjs/websockets.cjs.map +1 -0
  24. package/dist/adapters/nestjs/websockets.d.cts +47 -0
  25. package/dist/adapters/nestjs/websockets.d.ts +47 -0
  26. package/dist/adapters/nestjs/websockets.js +286 -0
  27. package/dist/adapters/nestjs/websockets.js.map +1 -0
  28. package/dist/adapters/nestjs.cjs +1085 -0
  29. package/dist/adapters/nestjs.cjs.map +1 -0
  30. package/dist/adapters/nestjs.d.cts +385 -0
  31. package/dist/adapters/nestjs.d.ts +385 -0
  32. package/dist/adapters/nestjs.js +112 -0
  33. package/dist/adapters/nestjs.js.map +1 -0
  34. package/dist/adapters/observe-storage.d.cts +3 -3
  35. package/dist/adapters/observe-storage.d.ts +3 -3
  36. package/dist/adapters/observe-storage.js +4 -4
  37. package/dist/adapters/react.cjs.map +1 -1
  38. package/dist/adapters/react.d.cts +2 -2
  39. package/dist/adapters/react.d.ts +2 -2
  40. package/dist/adapters/react.js +1 -1
  41. package/dist/adapters/solid.cjs.map +1 -1
  42. package/dist/adapters/solid.d.cts +2 -2
  43. package/dist/adapters/solid.d.ts +2 -2
  44. package/dist/adapters/solid.js +1 -1
  45. package/dist/adapters/svelte.cjs.map +1 -1
  46. package/dist/adapters/svelte.d.cts +2 -2
  47. package/dist/adapters/svelte.d.ts +2 -2
  48. package/dist/adapters/svelte.js +1 -1
  49. package/dist/adapters/vue.cjs.map +1 -1
  50. package/dist/adapters/vue.d.cts +2 -2
  51. package/dist/adapters/vue.d.ts +2 -2
  52. package/dist/adapters/vue.js +1 -1
  53. package/dist/{agent-runtime-BesGDZcB.d.ts → agent-runtime-types-core-CKwrBDyi.d.ts} +171 -320
  54. package/dist/{agent-runtime-DZTJ3C-p.d.cts → agent-runtime-types-core-bfl4m0vM.d.cts} +171 -320
  55. package/dist/agent-runtime-types-tool-BLPV3azj.d.cts +695 -0
  56. package/dist/agent-runtime-types-tool-hwqvVqNt.d.ts +695 -0
  57. package/dist/agentic-memory-retention-CLwI76JK.d.ts +14 -0
  58. package/dist/agentic-memory-retention-Cz8GR6ie.d.cts +14 -0
  59. package/dist/{agentic-memory-DfuVZ-lY.d.cts → agentic-memory-types-JDr7MPhh.d.cts} +13 -57
  60. package/dist/{agentic-memory-BmRCvh0d.d.ts → agentic-memory-types-khYJgzKL.d.ts} +13 -57
  61. package/dist/{capability-admission-B0BzqAm5.d.cts → capability-admission-B8RNFyaZ.d.cts} +3 -3
  62. package/dist/{capability-admission-g0mn9hpq.d.ts → capability-admission-Dkw1Xz3r.d.ts} +3 -3
  63. package/dist/chunk-2KUAG2GZ.js +9693 -0
  64. package/dist/chunk-2KUAG2GZ.js.map +1 -0
  65. package/dist/{chunk-CZNV3VXM.js → chunk-3J7UPZL5.js} +11 -11
  66. package/dist/{chunk-HKK2JD7Z.js → chunk-3LYI6ADX.js} +12 -125
  67. package/dist/chunk-3LYI6ADX.js.map +1 -0
  68. package/dist/{chunk-YXMZ2N6J.js → chunk-4M37FH2I.js} +1071 -1025
  69. package/dist/chunk-4M37FH2I.js.map +1 -0
  70. package/dist/{chunk-YDSIVHRR.js → chunk-4NWSNI4K.js} +1598 -1584
  71. package/dist/chunk-4NWSNI4K.js.map +1 -0
  72. package/dist/{chunk-Z2ANQ6JW.js → chunk-4Q77MMJY.js} +2 -2
  73. package/dist/{chunk-SS2A464I.js → chunk-54WPEODM.js} +3 -3
  74. package/dist/chunk-54WPEODM.js.map +1 -0
  75. package/dist/chunk-6E76H4OU.js +132 -0
  76. package/dist/chunk-6E76H4OU.js.map +1 -0
  77. package/dist/chunk-7GOTIIQ7.js +819 -0
  78. package/dist/chunk-7GOTIIQ7.js.map +1 -0
  79. package/dist/{chunk-V7CIJE4B.js → chunk-DKFWDTVY.js} +92 -9
  80. package/dist/chunk-DKFWDTVY.js.map +1 -0
  81. package/dist/{chunk-FBUU43PM.js → chunk-E4QCH32M.js} +448 -446
  82. package/dist/chunk-E4QCH32M.js.map +1 -0
  83. package/dist/{chunk-XKXWK2KP.js → chunk-GXU6WFEJ.js} +1157 -1021
  84. package/dist/chunk-GXU6WFEJ.js.map +1 -0
  85. package/dist/{chunk-K3FXTC3I.js → chunk-HJACH5PU.js} +3 -3
  86. package/dist/{chunk-GTPCOEOZ.js → chunk-IDMLXLLG.js} +3 -3
  87. package/dist/{chunk-DKP56CSW.js → chunk-JKAYLDQV.js} +2 -2
  88. package/dist/{chunk-4VLAQHZI.js → chunk-K7FB3JTD.js} +17 -1
  89. package/dist/chunk-K7FB3JTD.js.map +1 -0
  90. package/dist/{chunk-43BKLFZU.js → chunk-KFURM6FM.js} +10 -10
  91. package/dist/{chunk-H75VXTGT.js → chunk-L6LDXRWE.js} +3 -3
  92. package/dist/{chunk-H75VXTGT.js.map → chunk-L6LDXRWE.js.map} +1 -1
  93. package/dist/chunk-MCOFHMUU.js +4131 -0
  94. package/dist/chunk-MCOFHMUU.js.map +1 -0
  95. package/dist/chunk-MQEQMS7B.js +1009 -0
  96. package/dist/chunk-MQEQMS7B.js.map +1 -0
  97. package/dist/chunk-MTELVIYR.js +1421 -0
  98. package/dist/chunk-MTELVIYR.js.map +1 -0
  99. package/dist/{chunk-3JR3EDB2.js → chunk-NNDIFUKX.js} +121 -115
  100. package/dist/chunk-NNDIFUKX.js.map +1 -0
  101. package/dist/{chunk-2747WN4Y.js → chunk-PUSRRALM.js} +3 -3
  102. package/dist/{chunk-QFY4AFY4.js → chunk-PVC7WDKI.js} +58 -52
  103. package/dist/chunk-PVC7WDKI.js.map +1 -0
  104. package/dist/{chunk-VTHLCFN4.js → chunk-RAHNUYA5.js} +2 -2
  105. package/dist/chunk-TQPCAIQI.js +612 -0
  106. package/dist/chunk-TQPCAIQI.js.map +1 -0
  107. package/dist/{chunk-IXZBUWSP.js → chunk-UEMN5URK.js} +2 -2
  108. package/dist/chunk-WOS7RJYZ.js +1320 -0
  109. package/dist/chunk-WOS7RJYZ.js.map +1 -0
  110. package/dist/{chunk-6PHB5CJS.js → chunk-ZLFRB6FI.js} +2 -2
  111. package/dist/composition/index.cjs +1228 -1076
  112. package/dist/composition/index.cjs.map +1 -1
  113. package/dist/composition/index.d.cts +3 -3
  114. package/dist/composition/index.d.ts +3 -3
  115. package/dist/composition/index.js +4 -4
  116. package/dist/core/index.cjs +1198 -1046
  117. package/dist/core/index.cjs.map +1 -1
  118. package/dist/core/index.d.cts +23 -2
  119. package/dist/core/index.d.ts +23 -2
  120. package/dist/core/index.js +2 -2
  121. package/dist/cqrs/index.d.cts +3 -3
  122. package/dist/cqrs/index.d.ts +3 -3
  123. package/dist/cqrs/messaging.d.cts +4 -4
  124. package/dist/cqrs/messaging.d.ts +4 -4
  125. package/dist/cqrs/work-queue.d.cts +5 -5
  126. package/dist/cqrs/work-queue.d.ts +5 -5
  127. package/dist/data-structures/index.cjs +1226 -1074
  128. package/dist/data-structures/index.cjs.map +1 -1
  129. package/dist/data-structures/index.d.cts +8 -7
  130. package/dist/data-structures/index.d.ts +8 -7
  131. package/dist/data-structures/index.js +6 -5
  132. package/dist/{describe-DYMw_l1C.d.cts → describe-BumQ-3_0.d.cts} +1 -1
  133. package/dist/{describe-BpyJuWkw.d.ts → describe-cYr_Z5zm.d.ts} +1 -1
  134. package/dist/executors/tool-provider-adapters.cjs +3091 -0
  135. package/dist/executors/tool-provider-adapters.cjs.map +1 -0
  136. package/dist/executors/tool-provider-adapters.d.cts +174 -0
  137. package/dist/executors/tool-provider-adapters.d.ts +174 -0
  138. package/dist/executors/tool-provider-adapters.js +1336 -0
  139. package/dist/executors/tool-provider-adapters.js.map +1 -0
  140. package/dist/executors/tool-provider-runtime.cjs +5178 -0
  141. package/dist/executors/tool-provider-runtime.cjs.map +1 -0
  142. package/dist/executors/tool-provider-runtime.d.cts +17 -0
  143. package/dist/executors/tool-provider-runtime.d.ts +17 -0
  144. package/dist/executors/tool-provider-runtime.js +15 -0
  145. package/dist/executors/tool-provider-runtime.js.map +1 -0
  146. package/dist/executors/tool-provider.cjs +6392 -0
  147. package/dist/executors/tool-provider.cjs.map +1 -0
  148. package/dist/executors/tool-provider.d.cts +60 -0
  149. package/dist/executors/tool-provider.d.ts +60 -0
  150. package/dist/executors/tool-provider.js +89 -0
  151. package/dist/executors/tool-provider.js.map +1 -0
  152. package/dist/executors/work-queue.d.cts +6 -6
  153. package/dist/executors/work-queue.d.ts +6 -6
  154. package/dist/graph/index.cjs +1499 -1341
  155. package/dist/graph/index.cjs.map +1 -1
  156. package/dist/graph/index.d.cts +9 -8
  157. package/dist/graph/index.d.ts +9 -8
  158. package/dist/graph/index.js +23 -22
  159. package/dist/{graph-DCEWh4T2.d.cts → graph-C1C-wb0L.d.cts} +266 -137
  160. package/dist/{graph-D-1-SQeC.d.ts → graph-CS0b4V9B.d.ts} +266 -137
  161. package/dist/{index-72VZC0-E.d.cts → index-DLrNopda.d.cts} +151 -10
  162. package/dist/{index-Bmxeu0nK.d.ts → index-DzJni3_6.d.ts} +151 -10
  163. package/dist/index.cjs +3397 -3140
  164. package/dist/index.cjs.map +1 -1
  165. package/dist/index.d.cts +12 -9
  166. package/dist/index.d.ts +12 -9
  167. package/dist/index.js +110 -109
  168. package/dist/inspection/boundary.d.cts +4 -4
  169. package/dist/inspection/boundary.d.ts +4 -4
  170. package/dist/measurements-BWAnochv.d.ts +294 -0
  171. package/dist/measurements-B_gJfD8h.d.cts +294 -0
  172. package/dist/messaging/index.cjs +57 -51
  173. package/dist/messaging/index.cjs.map +1 -1
  174. package/dist/messaging/index.d.cts +11 -276
  175. package/dist/messaging/index.d.ts +11 -276
  176. package/dist/messaging/index.js +1 -1
  177. package/dist/operators/index.cjs +1228 -1076
  178. package/dist/operators/index.cjs.map +1 -1
  179. package/dist/operators/index.d.cts +5 -5
  180. package/dist/operators/index.d.ts +5 -5
  181. package/dist/operators/index.js +5 -5
  182. package/dist/orchestration/index.cjs +8844 -6071
  183. package/dist/orchestration/index.cjs.map +1 -1
  184. package/dist/orchestration/index.d.cts +171 -224
  185. package/dist/orchestration/index.d.ts +171 -224
  186. package/dist/orchestration/index.js +42 -991
  187. package/dist/orchestration/index.js.map +1 -1
  188. package/dist/orchestration/messaging.d.cts +5 -8
  189. package/dist/orchestration/messaging.d.ts +5 -8
  190. package/dist/orchestration/work-queue.cjs +1243 -5
  191. package/dist/orchestration/work-queue.cjs.map +1 -1
  192. package/dist/orchestration/work-queue.d.cts +121 -10
  193. package/dist/orchestration/work-queue.d.ts +121 -10
  194. package/dist/orchestration/work-queue.js +1067 -4
  195. package/dist/orchestration/work-queue.js.map +1 -1
  196. package/dist/patterns/event-flow.cjs +6 -20
  197. package/dist/patterns/event-flow.cjs.map +1 -1
  198. package/dist/patterns/event-flow.d.cts +4 -4
  199. package/dist/patterns/event-flow.d.ts +4 -4
  200. package/dist/patterns/event-flow.js +2 -2
  201. package/dist/patterns/index.cjs +453 -465
  202. package/dist/patterns/index.cjs.map +1 -1
  203. package/dist/patterns/index.d.cts +6 -5
  204. package/dist/patterns/index.d.ts +6 -5
  205. package/dist/patterns/index.js +3 -3
  206. package/dist/process-types-BB7oRhX3.d.cts +200 -0
  207. package/dist/process-types-QNhyoYJ8.d.ts +200 -0
  208. package/dist/{reactive-collection-DNV0-gFi.d.cts → reactive-collection-BYlWvtnp.d.cts} +4 -34
  209. package/dist/{reactive-collection-BAmfrGjd.d.ts → reactive-collection-efOEdGFN.d.ts} +4 -34
  210. package/dist/{reactive-collection-storage-BNEldDyi.d.cts → reactive-collection-storage-BjoLsoiC.d.cts} +5 -5
  211. package/dist/{reactive-collection-storage-YZsAQsWK.d.ts → reactive-collection-storage-DwW6UuK_.d.ts} +5 -5
  212. package/dist/{reactive-map-DRD1LJ2H.d.cts → reactive-map-BHacbIqz.d.cts} +7 -2
  213. package/dist/{reactive-map-EsDiCmJk.d.ts → reactive-map-DN4Jyqnf.d.ts} +7 -2
  214. package/dist/render/index.d.cts +2 -2
  215. package/dist/render/index.d.ts +2 -2
  216. package/dist/scheduled-readiness-BmqXxnzX.d.ts +91 -0
  217. package/dist/scheduled-readiness-CYSw7KDE.d.cts +91 -0
  218. package/dist/semantic-memory-graph-B_LwbM-E.d.cts +30 -0
  219. package/dist/semantic-memory-graph-rsFNNhwn.d.ts +30 -0
  220. package/dist/{semantic-memory-graph-DKuNzuWw.d.cts → semantic-memory-graph-types-Y73bbwVI.d.cts} +2 -28
  221. package/dist/{semantic-memory-graph-uwbwJdhe.d.ts → semantic-memory-graph-types-safmPkuX.d.ts} +2 -28
  222. package/dist/solutions/index.cjs +6353 -6169
  223. package/dist/solutions/index.cjs.map +1 -1
  224. package/dist/solutions/index.d.cts +12 -10
  225. package/dist/solutions/index.d.ts +12 -10
  226. package/dist/solutions/index.js +5 -5
  227. package/dist/solutions/reactive-layout/browser/index.cjs +116 -108
  228. package/dist/solutions/reactive-layout/browser/index.cjs.map +1 -1
  229. package/dist/solutions/reactive-layout/browser/index.d.cts +4 -4
  230. package/dist/solutions/reactive-layout/browser/index.d.ts +4 -4
  231. package/dist/solutions/reactive-layout/browser/index.js +3 -3
  232. package/dist/solutions/reactive-layout/index.cjs +3578 -3350
  233. package/dist/solutions/reactive-layout/index.cjs.map +1 -1
  234. package/dist/solutions/reactive-layout/index.d.cts +32 -576
  235. package/dist/solutions/reactive-layout/index.d.ts +32 -576
  236. package/dist/solutions/reactive-layout/index.js +65 -5
  237. package/dist/solutions/reactive-layout/node-canvas/index.cjs +127 -117
  238. package/dist/solutions/reactive-layout/node-canvas/index.cjs.map +1 -1
  239. package/dist/solutions/reactive-layout/node-canvas/index.d.cts +4 -4
  240. package/dist/solutions/reactive-layout/node-canvas/index.d.ts +4 -4
  241. package/dist/solutions/reactive-layout/node-canvas/index.js +3 -3
  242. package/dist/solutions/reactive-layout/react-native/index.cjs +127 -117
  243. package/dist/solutions/reactive-layout/react-native/index.cjs.map +1 -1
  244. package/dist/solutions/reactive-layout/react-native/index.d.cts +4 -4
  245. package/dist/solutions/reactive-layout/react-native/index.d.ts +4 -4
  246. package/dist/solutions/reactive-layout/react-native/index.js +3 -3
  247. package/dist/solutions/reactive-layout/skia/index.cjs +127 -117
  248. package/dist/solutions/reactive-layout/skia/index.cjs.map +1 -1
  249. package/dist/solutions/reactive-layout/skia/index.d.cts +4 -4
  250. package/dist/solutions/reactive-layout/skia/index.d.ts +4 -4
  251. package/dist/solutions/reactive-layout/skia/index.js +3 -3
  252. package/dist/solutions/work-item/actions.cjs +1609 -1428
  253. package/dist/solutions/work-item/actions.cjs.map +1 -1
  254. package/dist/solutions/work-item/actions.d.cts +23 -184
  255. package/dist/solutions/work-item/actions.d.ts +23 -184
  256. package/dist/solutions/work-item/actions.js +1558 -934
  257. package/dist/solutions/work-item/actions.js.map +1 -1
  258. package/dist/solutions/work-item/scheduling.cjs +9181 -1838
  259. package/dist/solutions/work-item/scheduling.cjs.map +1 -1
  260. package/dist/solutions/work-item/scheduling.d.cts +1763 -328
  261. package/dist/solutions/work-item/scheduling.d.ts +1763 -328
  262. package/dist/solutions/work-item/scheduling.js +117 -3
  263. package/dist/solutions/work-item/work-queue.d.cts +7 -7
  264. package/dist/solutions/work-item/work-queue.d.ts +7 -7
  265. package/dist/sources/browser.cjs +1318 -1083
  266. package/dist/sources/browser.cjs.map +1 -1
  267. package/dist/sources/browser.d.cts +22 -6
  268. package/dist/sources/browser.d.ts +22 -6
  269. package/dist/sources/browser.js +4 -4
  270. package/dist/sources/browser.js.map +1 -1
  271. package/dist/sources/index.cjs +1318 -1083
  272. package/dist/sources/index.cjs.map +1 -1
  273. package/dist/sources/index.d.cts +4 -4
  274. package/dist/sources/index.d.ts +4 -4
  275. package/dist/sources/index.js +4 -4
  276. package/dist/sources/node.d.cts +3 -3
  277. package/dist/sources/node.d.ts +3 -3
  278. package/dist/storage/browser.cjs +16 -0
  279. package/dist/storage/browser.cjs.map +1 -1
  280. package/dist/storage/browser.js +3 -3
  281. package/dist/storage/index.cjs +16 -0
  282. package/dist/storage/index.cjs.map +1 -1
  283. package/dist/storage/index.d.cts +5 -4
  284. package/dist/storage/index.d.ts +5 -4
  285. package/dist/storage/index.js +6 -6
  286. package/dist/storage/node.cjs +16 -0
  287. package/dist/storage/node.cjs.map +1 -1
  288. package/dist/storage/node.js +3 -3
  289. package/dist/{store-C-joM4gh.d.ts → store-6_CHF6Ge.d.ts} +1 -1
  290. package/dist/{store-CNJwmT-h.d.cts → store-BljX8RkQ.d.cts} +1 -1
  291. package/dist/types-BAw2QVVE.d.cts +274 -0
  292. package/dist/types-BUbbbh4f.d.cts +34 -0
  293. package/dist/types-CMnzoL54.d.cts +457 -0
  294. package/dist/{types-CcPIn7sy.d.cts → types-CTN3XoMl.d.cts} +57 -108
  295. package/dist/types-CV_ohy5T.d.cts +357 -0
  296. package/dist/{types-BsJvElYZ.d.ts → types-DChxk1vK.d.ts} +57 -108
  297. package/dist/types-DRu7SnLV.d.ts +274 -0
  298. package/dist/types-DeID_FRl.d.ts +34 -0
  299. package/dist/types-IhKH0hGW.d.ts +357 -0
  300. package/dist/types-ePlD2uyT.d.ts +457 -0
  301. package/dist/{work-item-runtime-qaVgsL0T.d.cts → work-item-runtime-types-BTxLskN5.d.cts} +3 -93
  302. package/dist/{work-item-runtime-C3M79vE9.d.ts → work-item-runtime-types-DAsZbb2y.d.ts} +3 -93
  303. package/dist/work-queue/index.cjs +957 -953
  304. package/dist/work-queue/index.cjs.map +1 -1
  305. package/dist/work-queue/index.d.cts +9 -357
  306. package/dist/work-queue/index.d.ts +9 -357
  307. package/dist/work-queue/index.js +957 -953
  308. package/dist/work-queue/index.js.map +1 -1
  309. package/package.json +611 -513
  310. package/dist/chunk-3JR3EDB2.js.map +0 -1
  311. package/dist/chunk-4VLAQHZI.js.map +0 -1
  312. package/dist/chunk-6XAIOL3X.js +0 -2407
  313. package/dist/chunk-6XAIOL3X.js.map +0 -1
  314. package/dist/chunk-FBUU43PM.js.map +0 -1
  315. package/dist/chunk-HKK2JD7Z.js.map +0 -1
  316. package/dist/chunk-PC3BTTBE.js +0 -3217
  317. package/dist/chunk-PC3BTTBE.js.map +0 -1
  318. package/dist/chunk-QFY4AFY4.js.map +0 -1
  319. package/dist/chunk-SS2A464I.js.map +0 -1
  320. package/dist/chunk-V7CIJE4B.js.map +0 -1
  321. package/dist/chunk-XKXWK2KP.js.map +0 -1
  322. package/dist/chunk-YDSIVHRR.js.map +0 -1
  323. package/dist/chunk-YXMZ2N6J.js.map +0 -1
  324. /package/dist/{chunk-CZNV3VXM.js.map → chunk-3J7UPZL5.js.map} +0 -0
  325. /package/dist/{chunk-Z2ANQ6JW.js.map → chunk-4Q77MMJY.js.map} +0 -0
  326. /package/dist/{chunk-K3FXTC3I.js.map → chunk-HJACH5PU.js.map} +0 -0
  327. /package/dist/{chunk-GTPCOEOZ.js.map → chunk-IDMLXLLG.js.map} +0 -0
  328. /package/dist/{chunk-DKP56CSW.js.map → chunk-JKAYLDQV.js.map} +0 -0
  329. /package/dist/{chunk-43BKLFZU.js.map → chunk-KFURM6FM.js.map} +0 -0
  330. /package/dist/{chunk-2747WN4Y.js.map → chunk-PUSRRALM.js.map} +0 -0
  331. /package/dist/{chunk-VTHLCFN4.js.map → chunk-RAHNUYA5.js.map} +0 -0
  332. /package/dist/{chunk-IXZBUWSP.js.map → chunk-UEMN5URK.js.map} +0 -0
  333. /package/dist/{chunk-6PHB5CJS.js.map → chunk-ZLFRB6FI.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { BatchCtx } from './core/index.js';
2
- import { q as NodeVersionJson, B as Status, N as Node, m as NodeFn, D as Dispatcher, u as NodeVersioningPolicy, C as Ctx, n as NodeOptions, E as EnvironmentDrivers } from './types-BsJvElYZ.js';
2
+ import { q as NodeVersionJson, D as Dispatcher, u as NodeVersioningPolicy, E as EnvironmentDrivers, n as NodeOptions, N as Node, m as NodeFn, C as Ctx, B as Status } from './types-DChxk1vK.js';
3
3
  import { S as StrictJsonObject, b as StrictJsonValue } from './codec-BB7p8fJc.js';
4
- import { G as GraphTopologyEdge, e as GraphTopologySnapshot, b as DescribeOpts, c as DescribeSnapshot } from './describe-BpyJuWkw.js';
4
+ import { G as GraphTopologyEdge, e as GraphTopologySnapshot, b as DescribeOpts, c as DescribeSnapshot } from './describe-cYr_Z5zm.js';
5
5
  import { M as Message } from './messages-CAzUPPJM.js';
6
6
 
7
7
  /**
@@ -143,78 +143,43 @@ interface GraphCheckpoint {
143
143
  mounts?: GraphCheckpointMount[];
144
144
  }
145
145
 
146
- /**
147
- * observe / profile inspection shapes (R-observe, R-profile / D39).
148
- *
149
- * observe = a read-only enveloped EGRESS (not a graph node). profile = an opt-in
150
- * accumulated-counter snapshot backed by the dispatcher recorder (counters never live on
151
- * the thin node, R-node-thin). Per-language (D24, never in parity).
152
- */
153
-
154
- /** One item of an observe() stream. The envelope carries node identity + ordering. */
155
- interface ObserveEvent {
156
- /** Mount-aware `::` path of the emitting node (shared key with describe/profile). */
157
- path: string;
158
- /** The protocol message observed at that node. */
159
- msg: Message;
160
- /** messageTier(msg[0]). */
161
- tier: number;
162
- /** Graph-local monotonic sequence (D26) — orders events across nodes. */
163
- seq: number;
164
- }
165
- /** A read-only egress: subscribe to the live ObserveEvent stream; call the returned fn to stop. */
166
- interface ObserveStream {
167
- subscribe(sink: (e: ObserveEvent) => void): () => void;
168
- }
169
- type TopologyEventKind = "node-registered" | "deps-changed" | "node-released" | "mount-changed";
170
- interface TopologyEvent {
171
- /** D145 graph inspection/lifecycle event kind. Not a protocol message. */
172
- readonly kind: TopologyEventKind;
173
- /** Mount-aware `::` path of the affected registered node. */
174
- readonly path: string;
175
- /** Current dep ids after the event, matching describe().nodes[].deps. */
176
- readonly deps: readonly string[];
177
- /** Previous dep ids for deps-changed events. */
178
- readonly prevDeps?: readonly string[];
179
- /** Factory name for node-registered and node-released events. */
180
- readonly factory?: string;
181
- /** Graph-local monotonic sequence shared with observe() ordering. */
182
- readonly seq: number;
183
- }
184
- /** A read-only topology egress stream. It does not activate nodes or emit DATA. */
185
- interface TopologyStream {
186
- subscribe(sink: (e: TopologyEvent) => void): () => void;
187
- }
188
- /** Predicate used by filterObserve(). */
189
- type ObservePredicate = (event: ObserveEvent) => boolean;
190
- /** Equality used by coalesceObserve() for adjacent observe-event suppression. */
191
- type ObserveEventEquals = (prev: ObserveEvent, next: ObserveEvent) => boolean;
192
- /**
193
- * Filter a read-only observe egress stream without turning it into a graph node.
194
- *
195
- * The source stream owns ordering and lifecycle; this helper only decides whether to forward each
196
- * ObserveEvent and returns the source unsubscribe unchanged.
197
- */
198
- declare function filterObserve(stream: ObserveStream, predicate: ObservePredicate): ObserveStream;
199
- /**
200
- * Suppress adjacent duplicate ObserveEvents while preserving the source stream order.
201
- *
202
- * This is egress-side coalescing only: it does not batch, delay, reorder, alter seq values, or add
203
- * topology to describe(). Pass a custom equality when the caller wants a narrower or wider
204
- * definition of "duplicate".
205
- */
206
- declare function coalesceObserve(stream: ObserveStream, equals?: ObserveEventEquals): ObserveStream;
207
- /** Per-node profile counters (D39). invokes/duration are dispatcher-backed (R-profile). */
208
- interface NodeProfile {
209
- invokes: number;
210
- totalDurationNs: number;
211
- lastDurationNs: number;
212
- status: Status;
146
+ /** Map a tuple of Nodes to the tuple of their value types (typed value-level fn args). */
147
+ type DepValues<D extends readonly Node<unknown>[]> = {
148
+ [K in keyof D]: D[K] extends Node<infer V> ? V : never;
149
+ };
150
+ /** Value-level derived fn: receives dep values, returns the next value (undefined = no emit). */
151
+ type DerivedFn<D extends readonly Node<unknown>[], T> = (...values: DepValues<D>) => T | undefined;
152
+ /** Value-level effect fn: receives dep values, optionally returns a deactivation cleanup. */
153
+ type EffectFn<D extends readonly Node<unknown>[]> = (...values: DepValues<D>) => void | (() => void);
154
+ /** Sugar options node options minus graph-owned dispatcher plus naming/meta. */
155
+ interface SugarOpts<T = unknown> extends Omit<NodeOptions<T>, "dispatcher"> {
156
+ name?: string;
157
+ meta?: Record<string, unknown>;
158
+ /**
159
+ * D95: explicit restorable factory metadata. Static JSON-compatible config may live here;
160
+ * reactive options must remain graph deps. Without this, function-backed nodes are local-only.
161
+ */
162
+ restore?: {
163
+ ref: string;
164
+ config?: unknown;
165
+ configVersion?: unknown;
166
+ };
213
167
  }
214
- /** profile() snapshot. Shares the mount-aware `::` path key with describe/observe. */
215
- interface Profile {
216
- totalInvokes: number;
217
- nodes: Record<string, NodeProfile>;
168
+ interface GraphOptions {
169
+ name?: string;
170
+ /** Bind to a dispatcher (default = process-global, D26). */
171
+ dispatcher?: Dispatcher;
172
+ /** D109 default node runtime versioning policy for graph-owned nodes. Default is nodev0. */
173
+ versioning?: NodeVersioningPolicy;
174
+ /** Graph-owned environment drivers for source/adapter boundaries (D130/D131). */
175
+ environment?: EnvironmentDrivers;
176
+ /**
177
+ * Turn on the dispatcher profile recorder (D39 / F-PERF default off). NOTE: this
178
+ * switches recording on for the WHOLE bound dispatcher (the default is process-global,
179
+ * D26) — every graph sharing it then pays the recorder cost. For isolated profiling
180
+ * use a dedicated dispatcher: `graph({ dispatcher: new Dispatcher(), profile: true })`.
181
+ */
182
+ profile?: boolean;
218
183
  }
219
184
 
220
185
  interface GraphRestoreDefinition<S = never, T = unknown> {
@@ -335,19 +300,96 @@ declare function define<S, T>(ref: string, fn: (v: S) => T, opts?: DefineOpts):
335
300
  * any graph's index.
336
301
  */
337
302
  declare function initNode<TIn, TOut>(op: Operator<TIn, TOut>, deps: readonly Node<unknown>[], opts?: NodeOptions<TOut>): Node<TOut>;
338
- /** map: emit fn(value). A named {@link define} makes the map restorable via the map descriptor (D101). */
303
+ /**
304
+ * Transform each upstream DATA value with a synchronous mapping function.
305
+ *
306
+ * @param fn - Mapping function, or a named `define()` definition for checkpoint restoration.
307
+ * @returns An operator that emits `fn(value)` for each upstream value.
308
+ * @example
309
+ * ```ts
310
+ * import { graph, map } from "@graphrefly/ts";
311
+ *
312
+ * const g = graph();
313
+ * const count = g.state(1);
314
+ * const doubled = g.initNode(map((value: number) => value * 2), [count]);
315
+ * ```
316
+ * @remarks **Restorable maps:** Passing a named `define()` registers semantic restore metadata.
317
+ * @category operators
318
+ */
339
319
  declare function map<S, T>(fn: ((v: S) => T) | Definition<S, T>): Operator<S, T>;
340
- /** filter: emit value only when pred(value) (else skip the wave). */
320
+ /**
321
+ * Pass through upstream values that satisfy a predicate.
322
+ *
323
+ * @param pred - Predicate evaluated for each upstream DATA value.
324
+ * @returns An operator that emits matching values and stays quiet for non-matches.
325
+ * @example
326
+ * ```ts
327
+ * import { filter, graph } from "@graphrefly/ts";
328
+ *
329
+ * const g = graph();
330
+ * const count = g.state(0);
331
+ * const even = g.initNode(filter((value: number) => value % 2 === 0), [count]);
332
+ * ```
333
+ * @category operators
334
+ */
341
335
  declare function filter<S>(pred: (v: S) => boolean): Operator<S, S>;
342
- /** scan: stateful accumulator over the upstream (acc seeded once, kept in ctx.state). */
336
+ /**
337
+ * Accumulate upstream values and emit each intermediate accumulator.
338
+ *
339
+ * @param reducer - Reducer called with the previous accumulator and each upstream value.
340
+ * @param seed - Initial accumulator value.
341
+ * @returns An operator that emits the accumulator after every input value.
342
+ * @example
343
+ * ```ts
344
+ * import { graph, scan } from "@graphrefly/ts";
345
+ *
346
+ * const g = graph();
347
+ * const values = g.state(1);
348
+ * const total = g.initNode(scan((sum: number, value: number) => sum + value, 0), [values]);
349
+ * ```
350
+ * @category operators
351
+ */
343
352
  declare function scan<S, T>(reducer: (acc: T, v: S) => T, seed: T): Operator<S, T>;
344
- /** take: emit the first n values, then COMPLETE (terminal-is-forever). */
353
+ /**
354
+ * Emit the first `n` upstream values, then complete.
355
+ *
356
+ * @param n - Number of DATA values to pass before completion.
357
+ * @returns An operator that forwards at most `n` values and then emits COMPLETE.
358
+ * @example
359
+ * ```ts
360
+ * import { graph, take } from "@graphrefly/ts";
361
+ *
362
+ * const firstThree = graph().initNode(take<number>(3), [source]);
363
+ * ```
364
+ * @category operators
365
+ */
345
366
  declare function take<S>(n: number): Operator<S, S>;
346
- /** distinctUntilChanged: emit only when the value differs from the previous emit. */
367
+ /**
368
+ * Suppress consecutive duplicate values.
369
+ *
370
+ * @param eq - Equality predicate; defaults to `Object.is`.
371
+ * @returns An operator that emits only when the next value differs from the previous emitted value.
372
+ * @example
373
+ * ```ts
374
+ * import { distinctUntilChanged, graph } from "@graphrefly/ts";
375
+ *
376
+ * const stable = graph().initNode(distinctUntilChanged<number>(), [source]);
377
+ * ```
378
+ * @category operators
379
+ */
347
380
  declare function distinctUntilChanged<S>(eq?: (a: S, b: S) => boolean): Operator<S, S>;
348
381
  /**
349
382
  * merge: interleave several sources — emit each DATA from whichever dep fired. `partial:true`
350
383
  * (combine-family): fires on any single dep, not gated on all deps settling.
384
+ *
385
+ * @returns An operator that forwards DATA from any dependency.
386
+ * @example
387
+ * ```ts
388
+ * import { graph, merge } from "@graphrefly/ts";
389
+ *
390
+ * const merged = graph().initNode(merge<number>(), [left, right]);
391
+ * ```
392
+ * @category operators
351
393
  */
352
394
  declare function merge<T>(): Operator<T, T>;
353
395
  /**
@@ -356,6 +398,17 @@ declare function merge<T>(): Operator<T, T>;
356
398
  * source terminates. `completeWhenDepsComplete:false + terminalAsRealInput:true`: the fn fires on
357
399
  * the source COMPLETE (reading `terminal===true`) and emits the accumulator + COMPLETE. An empty
358
400
  * source emits the seed (RxJS parity). A source ERROR auto-forwards (errorWhenDepsError default).
401
+ *
402
+ * @param reducer - Reducer called with the accumulator and each upstream DATA value.
403
+ * @param seed - Initial accumulator value emitted if the source completes empty.
404
+ * @returns An operator that emits one accumulated value when the source completes.
405
+ * @example
406
+ * ```ts
407
+ * import { graph, reduce } from "@graphrefly/ts";
408
+ *
409
+ * const total = graph().initNode(reduce((sum: number, value: number) => sum + value, 0), [source]);
410
+ * ```
411
+ * @category operators
359
412
  */
360
413
  declare function reduce<S, T>(reducer: (acc: T, v: S) => T, seed: T): Operator<S, T>;
361
414
  /**
@@ -469,64 +522,6 @@ interface ValveOpts {
469
522
  */
470
523
  declare function valve<S>(opts?: ValveOpts): Operator<S, S>;
471
524
 
472
- /**
473
- * The Graph layer (CSP-2): convenience + inspection entry (D5 / R-graph-role).
474
- *
475
- * g.* sugar desugars to dispatcher.register + Node and auto-registers into the graph
476
- * inspection index (D27: sugar→ctx-fn conversion lives strictly here; the substrate node
477
- * only ever sees `(ctx)=>void`). The Graph owns naming, describe, mount, and the D30
478
- * value-level throw→ERROR boundary. The bare node()/dispatcher stay inspection-free
479
- * (R-node-thin).
480
- *
481
- * Canonical authority: ~/src/graphrefly — D3/D5/D27/D30/D36/D37/D39, R-graph-role,
482
- * R-describe, R-fn-contract, R-edges-derived, R-meta-presentation.
483
- */
484
-
485
- /** Map a tuple of Nodes to the tuple of their value types (typed value-level fn args). */
486
- type DepValues<D extends readonly Node<unknown>[]> = {
487
- [K in keyof D]: D[K] extends Node<infer V> ? V : never;
488
- };
489
- /** Value-level derived fn: receives dep values, returns the next value (undefined = no emit). */
490
- type DerivedFn<D extends readonly Node<unknown>[], T> = (...values: DepValues<D>) => T | undefined;
491
- /** Value-level effect fn: receives dep values, optionally returns a deactivation cleanup. */
492
- type EffectFn<D extends readonly Node<unknown>[]> = (...values: DepValues<D>) => void | (() => void);
493
- /** Sugar options — node options minus graph-owned dispatcher plus naming/meta. */
494
- interface SugarOpts<T = unknown> extends Omit<NodeOptions<T>, "dispatcher"> {
495
- name?: string;
496
- meta?: Record<string, unknown>;
497
- /**
498
- * D95: explicit restorable factory metadata. Static JSON-compatible config may live here;
499
- * reactive options must remain graph deps. Without this, function-backed nodes are local-only.
500
- */
501
- restore?: {
502
- ref: string;
503
- config?: unknown;
504
- configVersion?: unknown;
505
- };
506
- }
507
- interface GraphOptions {
508
- name?: string;
509
- /** Bind to a dispatcher (default = process-global, D26). */
510
- dispatcher?: Dispatcher;
511
- /** D109 default node runtime versioning policy for graph-owned nodes. Default is nodev0. */
512
- versioning?: NodeVersioningPolicy;
513
- /** Graph-owned environment drivers for source/adapter boundaries (D130/D131). */
514
- environment?: EnvironmentDrivers;
515
- /**
516
- * Turn on the dispatcher profile recorder (D39 / F-PERF default off). NOTE: this
517
- * switches recording on for the WHOLE bound dispatcher (the default is process-global,
518
- * D26) — every graph sharing it then pays the recorder cost. For isolated profiling
519
- * use a dedicated dispatcher: `graph({ dispatcher: new Dispatcher(), profile: true })`.
520
- */
521
- profile?: boolean;
522
- }
523
- /**
524
- * A state node (L4-Q1): a manual source whose `.set(v)` is `node.down([[DATA, v]])` sugar.
525
- * Extends the substrate Node so it is usable as a dep AND carries the graph-layer `.set`.
526
- */
527
- declare class StateNode<T> extends Node<T> {
528
- set(v: T): void;
529
- }
530
525
  interface TopologyGroupOptions {
531
526
  /** Optional inspection/release reason label for this graph-owned topology group. */
532
527
  name?: string;
@@ -552,6 +547,125 @@ interface TopologyGroup {
552
547
  initNode<TIn, TOut>(op: Operator<TIn, TOut>, deps: readonly Node<TIn>[], opts?: SugarOpts<TOut>): Node<TOut>;
553
548
  release(opts?: TopologyGroupReleaseOptions): void;
554
549
  }
550
+
551
+ /**
552
+ * observe / profile inspection shapes (R-observe, R-profile / D39).
553
+ *
554
+ * observe = a read-only enveloped EGRESS (not a graph node). profile = an opt-in
555
+ * accumulated-counter snapshot backed by the dispatcher recorder (counters never live on
556
+ * the thin node, R-node-thin). Per-language (D24, never in parity).
557
+ */
558
+
559
+ /** One item of an observe() stream. The envelope carries node identity + ordering. */
560
+ interface ObserveEvent {
561
+ /** Mount-aware `::` path of the emitting node (shared key with describe/profile). */
562
+ path: string;
563
+ /** The protocol message observed at that node. */
564
+ msg: Message;
565
+ /** messageTier(msg[0]). */
566
+ tier: number;
567
+ /** Graph-local monotonic sequence (D26) — orders events across nodes. */
568
+ seq: number;
569
+ }
570
+ /** A read-only egress: subscribe to the live ObserveEvent stream; call the returned fn to stop. */
571
+ interface ObserveStream {
572
+ subscribe(sink: (e: ObserveEvent) => void): () => void;
573
+ }
574
+ type TopologyEventKind = "node-registered" | "deps-changed" | "node-released" | "mount-changed";
575
+ interface TopologyEvent {
576
+ /** D145 graph inspection/lifecycle event kind. Not a protocol message. */
577
+ readonly kind: TopologyEventKind;
578
+ /** Mount-aware `::` path of the affected registered node. */
579
+ readonly path: string;
580
+ /** Current dep ids after the event, matching describe().nodes[].deps. */
581
+ readonly deps: readonly string[];
582
+ /** Previous dep ids for deps-changed events. */
583
+ readonly prevDeps?: readonly string[];
584
+ /** Factory name for node-registered and node-released events. */
585
+ readonly factory?: string;
586
+ /** Graph-local monotonic sequence shared with observe() ordering. */
587
+ readonly seq: number;
588
+ }
589
+ /** A read-only topology egress stream. It does not activate nodes or emit DATA. */
590
+ interface TopologyStream {
591
+ subscribe(sink: (e: TopologyEvent) => void): () => void;
592
+ }
593
+ /** Predicate used by filterObserve(). */
594
+ type ObservePredicate = (event: ObserveEvent) => boolean;
595
+ /** Equality used by coalesceObserve() for adjacent observe-event suppression. */
596
+ type ObserveEventEquals = (prev: ObserveEvent, next: ObserveEvent) => boolean;
597
+ /**
598
+ * Filter a read-only observe egress stream without turning it into a graph node.
599
+ *
600
+ * The source stream owns ordering and lifecycle; this helper only decides whether to forward each
601
+ * ObserveEvent and returns the source unsubscribe unchanged.
602
+ */
603
+ declare function filterObserve(stream: ObserveStream, predicate: ObservePredicate): ObserveStream;
604
+ /**
605
+ * Suppress adjacent duplicate ObserveEvents while preserving the source stream order.
606
+ *
607
+ * This is egress-side coalescing only: it does not batch, delay, reorder, alter seq values, or add
608
+ * topology to describe(). Pass a custom equality when the caller wants a narrower or wider
609
+ * definition of "duplicate".
610
+ */
611
+ declare function coalesceObserve(stream: ObserveStream, equals?: ObserveEventEquals): ObserveStream;
612
+ /** Per-node profile counters (D39). invokes/duration are dispatcher-backed (R-profile). */
613
+ interface NodeProfile {
614
+ invokes: number;
615
+ totalDurationNs: number;
616
+ lastDurationNs: number;
617
+ status: Status;
618
+ }
619
+ /** profile() snapshot. Shares the mount-aware `::` path key with describe/observe. */
620
+ interface Profile {
621
+ totalInvokes: number;
622
+ nodes: Record<string, NodeProfile>;
623
+ }
624
+
625
+ /**
626
+ * The Graph layer (CSP-2): convenience + inspection entry (D5 / R-graph-role).
627
+ *
628
+ * g.* sugar desugars to dispatcher.register + Node and auto-registers into the graph
629
+ * inspection index (D27: sugar→ctx-fn conversion lives strictly here; the substrate node
630
+ * only ever sees `(ctx)=>void`). The Graph owns naming, describe, mount, and the D30
631
+ * value-level throw→ERROR boundary. The bare node()/dispatcher stay inspection-free
632
+ * (R-node-thin).
633
+ *
634
+ * Canonical authority: ~/src/graphrefly — D3/D5/D27/D30/D36/D37/D39, R-graph-role,
635
+ * R-describe, R-fn-contract, R-edges-derived, R-meta-presentation.
636
+ */
637
+
638
+ /**
639
+ * A state node (L4-Q1): a manual source whose `.set(v)` is `node.down([[DATA, v]])` sugar.
640
+ * Extends the substrate Node so it is usable as a dep AND carries the graph-layer `.set`.
641
+ *
642
+ * @example
643
+ * ```ts
644
+ * import { graph } from "@graphrefly/ts";
645
+ *
646
+ * const count = graph().state(0);
647
+ * count.set(1);
648
+ * ```
649
+ * @category graph
650
+ */
651
+ declare class StateNode<T> extends Node<T> {
652
+ set(v: T): void;
653
+ }
654
+ /**
655
+ * Own a single graph-local topology, lifecycle, inspection index, and dispatcher boundary.
656
+ *
657
+ * @example
658
+ * ```ts
659
+ * import { graph } from "@graphrefly/ts";
660
+ *
661
+ * const g = graph({ name: "counter" });
662
+ * const count = g.state(0, { name: "count" });
663
+ * const doubled = g.derived([count], ([value]) => value * 2, { name: "doubled" });
664
+ * ```
665
+ * @remarks **Graph-local:** Cross-graph dependencies require a wire bridge; direct deps stay inside
666
+ * one graph ownership domain.
667
+ * @category graph
668
+ */
555
669
  declare class Graph {
556
670
  readonly name?: string;
557
671
  private readonly _dispatcher;
@@ -660,7 +774,22 @@ declare class Graph {
660
774
  private _checkpoint;
661
775
  private _checkpointNode;
662
776
  }
663
- /** Construct a Graph (default global dispatcher; L4-Q4). */
777
+ /**
778
+ * Construct a graph with graph-local topology, lifecycle, and inspection ownership.
779
+ *
780
+ * @param opts - Optional graph name, dispatcher, versioning policy, environment drivers, and
781
+ * profiling switch.
782
+ * @returns A `Graph` instance whose sugar methods create graph-registered nodes.
783
+ * @example
784
+ * ```ts
785
+ * import { graph } from "@graphrefly/ts";
786
+ *
787
+ * const g = graph({ name: "counter" });
788
+ * const count = g.state(0, { name: "count" });
789
+ * const doubled = g.derived([count], ([value]) => value * 2);
790
+ * ```
791
+ * @category graph
792
+ */
664
793
  declare function graph(opts?: GraphOptions): Graph;
665
794
 
666
795
  export { type ValveOpts as $, type GraphRestoreDescriptorContext as A, type GraphRestoreEntry as B, type GraphRestoreRegistry as C, type DefineOpts as D, type EffectFn as E, type NormalizedGraphTopologyNode as F, GRAPH_BLUEPRINT_VERSION as G, type NormalizedGraphTopologySnapshot as H, type ObserveEventEquals as I, type ObservePredicate as J, type ObserveStream as K, type Operator as L, type RestoreRegistryEntry as M, type NodeProfile as N, type ObserveEvent as O, type Profile as P, StateNode as Q, type RestoreGraphOptions as R, type SettleOpts as S, type SugarOpts as T, type TapObserver as U, type TopologyEvent as V, type TopologyEventKind as W, type TopologyGroup as X, type TopologyGroupOptions as Y, type TopologyGroupReleaseOptions as Z, type TopologyStream as _, type Definition as a, canonicalTopologyBytes as a0, canonicalTopologyJson as a1, catchError as a2, coalesceObserve as a3, defaultRestoreRegistry as a4, define as a5, distinctUntilChanged as a6, elementAt as a7, filter as a8, filterObserve as a9, valve as aA, withBlueprintHash as aB, withBlueprintProvenance as aC, find as aa, first as ab, graph as ac, graphBlueprintDiagnostics as ad, initNode as ae, last as af, map as ag, mapRestoreDescriptor as ah, merge as ai, normalizeTopology as aj, onFirstData as ak, pairwise as al, reduce as am, rescue as an, restoreGraph as ao, restoreRegistry as ap, scan as aq, settle as ar, skip as as, stateRestoreDescriptor as at, take as au, takeRestoreDescriptor as av, takeWhile as aw, tap as ax, tapFirst as ay, timerRestoreDescriptor as az, type DerivedFn as b, GRAPH_CHECKPOINT_VERSION as c, Graph as d, type GraphBlueprint as e, type GraphBlueprintDiagnosticCode as f, type GraphBlueprintDiagnosticIssue as g, type GraphBlueprintDiagnostics as h, type GraphBlueprintHash as i, type GraphBlueprintHashInput as j, type GraphBlueprintHashOptions as k, type GraphBlueprintJson as l, type GraphBlueprintOptions as m, type GraphBlueprintProvenance as n, type GraphCheckpoint as o, type GraphCheckpointEdge as p, type GraphCheckpointFactory as q, type GraphCheckpointJson as r, type GraphCheckpointMount as s, type GraphCheckpointNode as t, type GraphCheckpointTerminal as u, type GraphCheckpointValue as v, type GraphCheckpointVersion as w, type GraphOptions as x, type GraphRestoreDefinition as y, type GraphRestoreDescriptor as z };
@@ -1,5 +1,5 @@
1
- import { N as Node, n as NodeOptions, h as HttpResponse, g as HttpRequest, x as ProcessResult, z as SseEvent, A as SseRequest, J as WebSocketEvent, M as WebSocketRequest, X as WebhookEvent, Y as WebhookRegistration, w as ProcessCommand } from './types-CcPIn7sy.cjs';
2
- import { L as Operator } from './graph-DCEWh4T2.cjs';
1
+ import { N as Node, n as NodeOptions, h as HttpResponse, g as HttpRequest, x as ProcessResult, z as SseEvent, A as SseRequest, J as WebSocketEvent, M as WebSocketRequest, X as WebhookEvent, Y as WebhookRegistration, w as ProcessCommand } from './types-CTN3XoMl.cjs';
2
+ import { L as Operator } from './graph-C1C-wb0L.cjs';
3
3
 
4
4
  /**
5
5
  * Async + sync sources (binding-layer sugar, D43 / D40 / feedback_async_sources_binding_layer).
@@ -44,6 +44,16 @@ interface TimerSourceOpts extends AsyncSourceOpts {
44
44
  interface FromCronOptions extends AsyncSourceOpts {
45
45
  /** Cron matcher polling interval in milliseconds. Default: 60_000. */
46
46
  tickMs?: number;
47
+ /** IANA timezone used for wall-clock cron matching. Defaults to the host-local timezone. */
48
+ timezone?: string;
49
+ /**
50
+ * DST policy for timezone-aware matching. Current D484 defaults are explicit: nonexistent
51
+ * wall-clock minutes are skipped, and repeated wall-clock minutes fire at most once.
52
+ */
53
+ dst?: {
54
+ readonly nonexistent?: "skip";
55
+ readonly repeated?: "once";
56
+ };
47
57
  /**
48
58
  * Emitted value shape. `timestamp_ns` is a decimal string so it cannot lose precision as a
49
59
  * JavaScript number; use `timestamp_ms` when numeric millisecond precision is enough.
@@ -74,8 +84,12 @@ type PushUnsubscribe = () => void;
74
84
  type PushRegister<T> = (deliver: (payload: T) => void) => PushUnsubscribe | undefined;
75
85
  /** Parse a standard five-field cron expression. */
76
86
  declare function parseCron(expr: string): CronSchedule;
77
- /** Test whether a local Date matches a parsed cron schedule. */
78
- declare function matchesCron(schedule: CronSchedule, date: Date): boolean;
87
+ interface CronMatchOptions {
88
+ /** IANA timezone used for wall-clock projection. Defaults to the host-local timezone. */
89
+ timezone?: string;
90
+ }
91
+ /** Test whether a Date matches a parsed cron schedule in host-local time or an IANA timezone. */
92
+ declare function matchesCron(schedule: CronSchedule, date: Date, opts?: CronMatchOptions): boolean;
79
93
  declare function fromCron(expr: string, opts: FromCronOptions & {
80
94
  output: "date";
81
95
  }): Operator<never, Date>;
@@ -101,38 +115,165 @@ declare function fromWebhookWithOptions(registration: WebhookRegistration): Oper
101
115
  * Timer source: one-shot (first tick then COMPLETE) or periodic (`{period}` → 0, 1, 2, …).
102
116
  * sync pool + pausable:false (a timer keeps producing through PAUSE, R-pause-modes). Emits the
103
117
  * tick counter from 0; deactivation clears the timers.
118
+ *
119
+ * @param ms - Delay before the first tick in milliseconds.
120
+ * @param opts - Optional period and source options.
121
+ * @returns A source operator that emits tick counters.
122
+ * @example
123
+ * ```ts
124
+ * import { graph, timer } from "@graphrefly/ts";
125
+ *
126
+ * const tick = graph().initNode(timer(100), []);
127
+ * ```
128
+ * @category sources
104
129
  */
105
130
  declare function timer(ms: number, opts?: TimerSourceOpts): Operator<never, number>;
106
- /** Frozen pure-ts name for {@link timer}; preserves the real factory name in describe(). */
131
+ /**
132
+ * Create a timer source with the legacy `fromTimer` factory name.
133
+ *
134
+ * @param ms - Delay before the first tick in milliseconds.
135
+ * @param opts - Optional period and source options.
136
+ * @returns A source operator that emits tick counters.
137
+ * @example
138
+ * ```ts
139
+ * import { fromTimer, graph } from "@graphrefly/ts";
140
+ *
141
+ * const tick = graph().initNode(fromTimer(100), []);
142
+ * ```
143
+ * @remarks **Factory name:** This preserves the real `fromTimer` factory name in `describe()`.
144
+ * @category sources
145
+ */
107
146
  declare function fromTimer(ms: number, opts?: TimerSourceOpts): Operator<never, number>;
108
- /** interval: periodic ticks (0, 1, 2, …), first at `ms`, then every `ms` (RxJS semantics). */
147
+ /**
148
+ * Emit periodic tick counters.
149
+ *
150
+ * @param ms - Delay before the first tick and between later ticks in milliseconds.
151
+ * @returns A source operator that emits `0`, `1`, `2`, and so on.
152
+ * @example
153
+ * ```ts
154
+ * import { graph, interval } from "@graphrefly/ts";
155
+ *
156
+ * const ticks = graph().initNode(interval(1000), []);
157
+ * ```
158
+ * @category sources
159
+ */
109
160
  declare function interval(ms: number): Operator<never, number>;
110
161
  /**
111
162
  * Lift a Promise (or thenable) to a single-value stream: one DATA then COMPLETE, or ERROR on
112
163
  * rejection. async pool (default pausable → a paused source buffers its late emit). Optional
113
164
  * `signal` aborts to ERROR.
165
+ *
166
+ * @param p - Promise or thenable to lift into the graph.
167
+ * @param opts - Optional abort signal and async source options.
168
+ * @returns A source operator that emits one DATA value and COMPLETE, or ERROR on rejection/abort.
169
+ * @example
170
+ * ```ts
171
+ * import { fromPromise, graph } from "@graphrefly/ts";
172
+ *
173
+ * const user = graph().initNode(fromPromise(fetch("/user").then((res) => res.json())), []);
174
+ * ```
175
+ * @category sources
114
176
  */
115
177
  declare function fromPromise<T>(p: Promise<T> | PromiseLike<T>, opts?: AsyncSourceOpts): Operator<never, T>;
116
178
  /**
117
179
  * Read an async iterable: each value → DATA; COMPLETE when done; ERROR on failure. async pool.
118
180
  * Optional `signal` aborts the pump.
181
+ *
182
+ * @param iterable - Async iterable to pump into the graph.
183
+ * @param opts - Optional abort signal and async source options.
184
+ * @returns A source operator that emits every iterable value and then COMPLETE.
185
+ * @example
186
+ * ```ts
187
+ * import { fromAsyncIter, graph } from "@graphrefly/ts";
188
+ *
189
+ * const stream = graph().initNode(fromAsyncIter(events()), []);
190
+ * ```
191
+ * @category sources
119
192
  */
120
193
  declare function fromAsyncIter<T>(iterable: AsyncIterable<T>, opts?: AsyncSourceOpts): Operator<never, T>;
121
194
  /**
122
195
  * of: synchronous values — each argument as DATA, then COMPLETE. `of()` is the EMPTY source.
196
+ *
197
+ * @param values - Values to emit synchronously on activation.
198
+ * @returns A source operator that emits each value and then COMPLETE.
199
+ * @example
200
+ * ```ts
201
+ * import { graph, of } from "@graphrefly/ts";
202
+ *
203
+ * const values = graph().initNode(of(1, 2, 3), []);
204
+ * ```
205
+ * @category sources
123
206
  */
124
207
  declare function of<T = never>(...values: T[]): Operator<never, T>;
125
- /** fromIter: a sync iterable — each value → DATA (in order), then COMPLETE, on activation. */
208
+ /**
209
+ * Emit every value from a synchronous iterable.
210
+ *
211
+ * @param iterable - Iterable whose values are emitted in order.
212
+ * @returns A source operator that emits every iterable value and then COMPLETE.
213
+ * @example
214
+ * ```ts
215
+ * import { fromIter, graph } from "@graphrefly/ts";
216
+ *
217
+ * const values = graph().initNode(fromIter([1, 2, 3]), []);
218
+ * ```
219
+ * @category sources
220
+ */
126
221
  declare function fromIter<T>(iterable: Iterable<T>): Operator<never, T>;
127
- /** EMPTY analogue: complete immediately with no DATA. */
222
+ /**
223
+ * Complete immediately without emitting DATA.
224
+ *
225
+ * @returns A source operator that emits COMPLETE on activation.
226
+ * @example
227
+ * ```ts
228
+ * import { empty, graph } from "@graphrefly/ts";
229
+ *
230
+ * const done = graph().initNode(empty(), []);
231
+ * ```
232
+ * @category sources
233
+ */
128
234
  declare function empty<T = never>(): Operator<never, T>;
129
- /** NEVER analogue: activate and remain silent until deactivation. */
235
+ /**
236
+ * Activate and remain silent until deactivation.
237
+ *
238
+ * @returns A source operator that never emits DATA or terminal messages by itself.
239
+ * @example
240
+ * ```ts
241
+ * import { graph, never } from "@graphrefly/ts";
242
+ *
243
+ * const quiet = graph().initNode(never(), []);
244
+ * ```
245
+ * @category sources
246
+ */
130
247
  declare function never<T = never>(): Operator<never, T>;
131
- /** Error source: terminate with ERROR on activation, coercing invalid host-language payloads. */
248
+ /**
249
+ * Terminate with ERROR on activation.
250
+ *
251
+ * @param err - Host-language error payload to normalize into a protocol ERROR payload.
252
+ * @returns A source operator that emits ERROR.
253
+ * @example
254
+ * ```ts
255
+ * import { graph, throwError } from "@graphrefly/ts";
256
+ *
257
+ * const failed = graph().initNode(throwError(new Error("boom")), []);
258
+ * ```
259
+ * @category sources
260
+ */
132
261
  declare function throwError(err: unknown): Operator<never, never>;
133
262
  /**
134
263
  * Wrap a DOM-style event target. Each event becomes DATA; deactivation removes the listener.
135
264
  * External callbacks are source boundaries (D43), so no polling or operator-level async leaks in.
265
+ *
266
+ * @param target - Event target implementing `addEventListener` and `removeEventListener`.
267
+ * @param type - Event type to subscribe to.
268
+ * @param opts - Optional listener options and source options.
269
+ * @returns A source operator that emits each event as DATA.
270
+ * @example
271
+ * ```ts
272
+ * import { fromEvent, graph } from "@graphrefly/ts";
273
+ *
274
+ * const clicks = graph().initNode(fromEvent<MouseEvent>(button, "click"), []);
275
+ * ```
276
+ * @category sources
136
277
  */
137
278
  declare function fromEvent<T = unknown>(target: EventTargetLike, type: string, opts?: FromEventOptions): Operator<never, T>;
138
279
  /**