@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
package/README.md CHANGED
@@ -1,135 +1,215 @@
1
1
  # @graphrefly/ts
2
2
 
3
- Clean-slate TypeScript implementation of GraphReFly: substrate, graph, operators,
4
- sources, storage, messaging, work queues, orchestration, CQRS, render, and tests.
3
+ Clean-slate TypeScript implementation of GraphReFly.
5
4
 
6
- The graph core is synchronous. Async work should live at source, adapter, executor,
7
- worker, or wire-bridge boundaries and return to the graph as visible facts or
8
- commands.
5
+ GraphReFly is a synchronous reactive graph runtime. You compose nodes, push data
6
+ through explicit messages, inspect the live graph, and keep async work at clear
7
+ source/adapter/executor boundaries.
9
8
 
10
- ## Concurrent WorkQueue Workers
9
+ ```bash
10
+ npm install @graphrefly/ts
11
+ ```
12
+
13
+ ## Quick Start
14
+
15
+ ```ts
16
+ import { graph } from "@graphrefly/ts";
17
+
18
+ const g = graph({ name: "example" });
19
+
20
+ const count = g.state(0, { name: "count" });
21
+ const doubled = g.derived([count], (n) => n * 2, { name: "doubled" });
22
+
23
+ doubled.subscribe((msg) => {
24
+ if (msg[0] === "DATA") console.log("doubled", msg[1]);
25
+ });
26
+
27
+ count.set(3);
28
+ ```
29
+
30
+ The graph can also describe itself:
31
+
32
+ ```ts
33
+ console.log(g.topology());
34
+ console.log(g.describe());
35
+ ```
11
36
 
12
- `workQueue` supports parallel workers by separating queue lifecycle from async
13
- execution:
37
+ ## Core Ideas
14
38
 
15
- 1. The queue emits graph-visible `work-admitted` and `work-claimed` records.
16
- 2. A boundary runner observes claimed work and starts async tasks.
17
- 3. The runner reports results through the queue command front door:
18
- `complete`, `fail`, or `release`.
39
+ - `state` is the sanctioned external input boundary.
40
+ - `derived` computes from declared dependencies.
41
+ - `producer` and source factories create graph-visible input streams.
42
+ - `effect` performs side effects from graph-visible values.
43
+ - Operators are node factories, not a second runtime.
44
+ - `describe()`, `topology()`, `observe()`, and `profile()` are read-only
45
+ inspection surfaces.
19
46
 
20
- Do not keep a node `ctx` and call `ctx.down(...)` from a later promise callback.
21
- Promise callbacks are fine in the boundary runner; the important part is that
22
- their results re-enter the graph as explicit queue commands or outcome facts.
47
+ The wave core is synchronous. Promises, timers, fetches, subprocesses, workers,
48
+ and remote bridges belong at source, adapter, executor, worker, or wire-bridge
49
+ boundaries. Results re-enter the graph as facts, commands, or messages.
50
+
51
+ ## Common Imports
52
+
53
+ ```ts
54
+ import { graph } from "@graphrefly/ts/graph";
55
+ import { map, filter, scan, switchMap } from "@graphrefly/ts/operators";
56
+ import { fromPromise, fromEvent, timer } from "@graphrefly/ts/sources";
57
+ import { memoryKv } from "@graphrefly/ts/storage";
58
+ import { describeToMermaid } from "@graphrefly/ts/render";
59
+ ```
23
60
 
24
- The smallest concurrent HTTP worker looks like this:
61
+ The package also exports the common surface from the root:
25
62
 
26
63
  ```ts
27
- import {
28
- graph,
29
- messageBus,
30
- workQueue,
31
- type WorkQueue,
32
- type WorkQueueRecord,
33
- } from "@graphrefly/ts";
34
-
35
- type HttpTask = {
36
- readonly url: string;
37
- };
38
-
39
- const g = graph({ name: "http-work" });
40
- const bus = messageBus(g, { topics: ["http-work"] });
41
- const queue = workQueue<HttpTask>(g, {
42
- queueId: "http",
43
- bus,
44
- topic: "http-work",
45
- subscriptionId: "http-worker-input",
64
+ import { graph, map, timer, memoryKv } from "@graphrefly/ts";
65
+ ```
66
+
67
+ ## Operators
68
+
69
+ ```ts
70
+ import { graph, map, scan } from "@graphrefly/ts";
71
+
72
+ const g = graph({ name: "counter" });
73
+ const count = g.state(0, { name: "count" });
74
+
75
+ const doubled = g.initNode(map((n: number) => n * 2), [count], { name: "doubled" });
76
+ const total = g.initNode(scan((acc: number, n: number) => acc + n, 0), [doubled], {
77
+ name: "total",
46
78
  });
47
79
 
48
- queue.submit({ url: "https://example.com/a.json" }, { workId: "url-1" });
49
- queue.submit({ url: "https://example.com/b.json" }, { workId: "url-2" });
50
-
51
- function startHttpWorker(
52
- queue: WorkQueue<HttpTask>,
53
- opts: { readonly workerId: string; readonly concurrency: number },
54
- ): () => void {
55
- const payloads = new Map<string, HttpTask>();
56
- const inFlight = new Set<string>();
57
-
58
- const refill = () => {
59
- const availableSlots = opts.concurrency - inFlight.size;
60
- if (availableSlots > 0) {
61
- queue.claim({ workerId: opts.workerId, limit: availableSlots });
62
- }
63
- };
64
-
65
- const unsubscribe = queue.records.subscribe((msg) => {
66
- if (msg[0] !== "DATA") return;
67
- const record = msg[1] as WorkQueueRecord<HttpTask>;
68
-
69
- if (record.kind === "work-admitted") {
70
- payloads.set(record.workId, record.payload);
71
- refill();
72
- return;
73
- }
74
-
75
- if (record.kind !== "work-claimed" || record.workerId !== opts.workerId) return;
76
- const task = payloads.get(record.workId);
77
- if (task === undefined) {
78
- queue.release({
79
- workId: record.workId,
80
- leaseId: record.leaseId,
81
- attempt: record.attempt,
82
- workerId: opts.workerId,
83
- reason: "missing-payload",
84
- });
85
- return;
86
- }
87
-
88
- inFlight.add(record.workId);
89
- void fetch(task.url)
90
- .then(async (response) => {
91
- if (!response.ok) throw new Error(`HTTP ${response.status}`);
92
- return response.json() as Promise<unknown>;
93
- })
94
- .then((result) => {
95
- queue.complete({
96
- workId: record.workId,
97
- leaseId: record.leaseId,
98
- attempt: record.attempt,
99
- workerId: opts.workerId,
100
- result,
101
- });
102
- })
103
- .catch((error) => {
104
- queue.fail({
105
- workId: record.workId,
106
- leaseId: record.leaseId,
107
- attempt: record.attempt,
108
- workerId: opts.workerId,
109
- error,
110
- retryable: true,
111
- });
112
- })
113
- .finally(() => {
114
- inFlight.delete(record.workId);
115
- refill();
116
- });
117
- });
118
-
119
- refill();
120
- return unsubscribe;
80
+ count.set(1);
81
+ count.set(2);
82
+ ```
83
+
84
+ Available operator families include transform, filter, accumulation, combine,
85
+ buffer, higher-order, time, control, and error handling operators.
86
+
87
+ ## Sources
88
+
89
+ ```ts
90
+ import { graph, timer } from "@graphrefly/ts";
91
+
92
+ const g = graph({ name: "clock" });
93
+ const tick = g.initNode(timer(1000), [], { name: "tick" });
94
+
95
+ tick.subscribe((msg) => {
96
+ if (msg[0] === "DATA") console.log(msg[1]);
97
+ });
98
+ ```
99
+
100
+ Sources include scalar values, sync and async iterables, promises, timers,
101
+ events, push notifications, HTTP/SSE/WebSocket driver boundaries, webhooks, and
102
+ cron-like schedules. Node-only process and filesystem helpers live under
103
+ `@graphrefly/ts/sources/node`.
104
+
105
+ ## Inspection And Rendering
106
+
107
+ ```ts
108
+ import { describeToMermaid, graph } from "@graphrefly/ts";
109
+
110
+ const g = graph({ name: "pricing" });
111
+ const price = g.state(100, { name: "price" });
112
+ const tax = g.derived([price], (p) => p * 0.0825, { name: "tax" });
113
+ g.derived([price, tax], (p, t) => p + t, { name: "total" });
114
+
115
+ const topology = g.topology();
116
+ const snapshot = g.describe();
117
+ const mermaid = describeToMermaid(snapshot);
118
+ const stop = g.observe().subscribe((event) => console.log(event));
119
+ ```
120
+
121
+ Use `topology()` for pure structure, `describe()` for richer developer
122
+ inspection, `observe()` for message egress, and render helpers for Mermaid, D2,
123
+ ASCII, JSON, and pretty text.
124
+
125
+ ## Storage And Restore
126
+
127
+ Storage helpers are passive. They store facts, frames, snapshots, checkpoints,
128
+ and event logs, but they do not own graph hydration.
129
+
130
+ ```ts
131
+ import { defaultRestoreRegistry, graph, memoryKv, restoreGraph } from "@graphrefly/ts";
132
+
133
+ const g = graph({ name: "counter" });
134
+ const count = g.state(1, { name: "count", restore: { ref: "state" } });
135
+ count.set(2);
136
+
137
+ const checkpoint = g.checkpoint();
138
+ const kv = memoryKv();
139
+ await kv.put("checkpoint:counter", checkpoint);
140
+
141
+ const saved = await kv.get("checkpoint:counter");
142
+ if (saved !== undefined) {
143
+ const restored = restoreGraph(saved, { registry: defaultRestoreRegistry });
121
144
  }
145
+ ```
146
+
147
+ ## Reactive Collections
148
+
149
+ ```ts
150
+ import { graph, reactiveMap } from "@graphrefly/ts";
122
151
 
123
- const stopWorker = startHttpWorker(queue, { workerId: "http-worker-1", concurrency: 2 });
152
+ const g = graph({ name: "inventory" });
153
+ const items = reactiveMap<string, { stock: number }>();
154
+
155
+ items.set("sku-1", { stock: 3 });
156
+
157
+ g.effect([items.snapshot], (snapshot) => {
158
+ console.log(snapshot.get("sku-1"));
159
+ });
160
+ ```
161
+
162
+ The package includes `reactiveMap`, `reactiveList`, `reactiveLog`,
163
+ `reactiveIndex`, collection persistence helpers, views, and cascading cache.
164
+
165
+ ## Framework And Runtime Adapters
166
+
167
+ Focused adapter subpaths keep framework/runtime ownership explicit:
168
+
169
+ ```ts
170
+ import { useNodeValue as useReactNodeValue } from "@graphrefly/ts/adapters/react";
171
+ import { useNodeValue as useVueNodeValue } from "@graphrefly/ts/adapters/vue";
172
+ import { nodeReadable } from "@graphrefly/ts/adapters/svelte";
173
+ import { createNodeValue } from "@graphrefly/ts/adapters/solid";
124
174
  ```
125
175
 
126
- This uses one worker identity, but it can keep multiple leases in flight. The
127
- queue remains responsible for claim/lease/retry/dead-letter facts; the runner is
128
- responsible for ordinary JavaScript concurrency.
176
+ Other focused surfaces include:
129
177
 
130
- For orchestration and CQRS recipes, keep the same boundary:
178
+ - `@graphrefly/ts/adapters/nestjs`
179
+ - `@graphrefly/ts/adapters/observe-storage`
180
+ - `@graphrefly/ts/messaging`
181
+ - `@graphrefly/ts/work-queue`
182
+ - `@graphrefly/ts/orchestration`
183
+ - `@graphrefly/ts/cqrs`
184
+ - `@graphrefly/ts/executors/tool-provider`
185
+ - `@graphrefly/ts/executors/tool-provider-runtime`
186
+ - `@graphrefly/ts/executors/tool-provider-adapters`
187
+ - `@graphrefly/ts/solutions/reactive-layout`
188
+ - `@graphrefly/ts/solutions/work-item/actions`
189
+ - `@graphrefly/ts/solutions/work-item/scheduling`
131
190
 
132
- - orchestration work produces effect/request/evidence/status facts;
133
- - CQRS work produces command/status/event/error facts;
134
- - worker results return through explicit outcome facts or queue disposition
135
- commands, not through a stale graph `ctx`.
191
+ ## Package Status
192
+
193
+ This is the current TypeScript package. The old `@graphrefly/graphrefly` and
194
+ `@graphrefly/pure-ts` packages are retired and deprecated. New code should use
195
+ `@graphrefly/ts` and its focused subpaths.
196
+
197
+ `@graphrefly/ts` is pre-1.0. The package favors clean-slate correctness over
198
+ backward compatibility with retired APIs.
199
+
200
+ ## Development
201
+
202
+ ```bash
203
+ pnpm --filter @graphrefly/ts test
204
+ pnpm --filter @graphrefly/ts build
205
+ pnpm run lint
206
+ ```
207
+
208
+ Before publishing:
209
+
210
+ ```bash
211
+ pnpm test
212
+ pnpm run lint
213
+ pnpm run build
214
+ pnpm --filter @graphrefly/ts pack --pack-destination /tmp
215
+ ```