@demlik/tea 0.12.0 → 0.14.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 (368) hide show
  1. package/README.md +11 -9
  2. package/dist/agent/index.d.ts +638 -45
  3. package/dist/agent/index.js +9 -19
  4. package/dist/{chunk-25LBDCBC.js → chunk-6IQPODUF.js} +2 -2
  5. package/dist/{chunk-25LBDCBC.js.map → chunk-6IQPODUF.js.map} +1 -1
  6. package/dist/chunk-AQ6ZIMEA.js +421 -0
  7. package/dist/chunk-AQ6ZIMEA.js.map +1 -0
  8. package/dist/{chunk-MUUROGIH.js → chunk-BLJ2JQSH.js} +62 -12
  9. package/dist/chunk-BLJ2JQSH.js.map +1 -0
  10. package/dist/{chunk-7SVIRMC6.js → chunk-F2US5BW6.js} +25 -5
  11. package/dist/chunk-F2US5BW6.js.map +1 -0
  12. package/dist/{batch-window/index.js → chunk-F7FMAWLA.js} +4 -8
  13. package/dist/chunk-F7FMAWLA.js.map +1 -0
  14. package/dist/{chunk-7V4EVLZA.js → chunk-HUKZQX6U.js} +20 -16
  15. package/dist/chunk-HUKZQX6U.js.map +1 -0
  16. package/dist/{chunk-EWJP3YYP.js → chunk-HWVW4AXC.js} +3 -3
  17. package/dist/chunk-HWVW4AXC.js.map +1 -0
  18. package/dist/{chunk-WLGO64WC.js → chunk-HYDWG35Q.js} +23 -6
  19. package/dist/chunk-HYDWG35Q.js.map +1 -0
  20. package/dist/{chunk-I5OV65MS.js → chunk-I5MQMJDW.js} +57 -7
  21. package/dist/chunk-I5MQMJDW.js.map +1 -0
  22. package/dist/{chunk-J6527VRQ.js → chunk-LFZUK6J2.js} +3 -3
  23. package/dist/chunk-LFZUK6J2.js.map +1 -0
  24. package/dist/{chunk-ZVJZ72HY.js → chunk-LYLTKJWM.js} +25 -11
  25. package/dist/chunk-LYLTKJWM.js.map +1 -0
  26. package/dist/{chunk-D736QUGF.js → chunk-MYXFNWAJ.js} +4 -5
  27. package/dist/chunk-MYXFNWAJ.js.map +1 -0
  28. package/dist/{chunk-K575PT4S.js → chunk-PR6TB3BL.js} +15 -4
  29. package/dist/chunk-PR6TB3BL.js.map +1 -0
  30. package/dist/chunk-RQULHGYH.js +1804 -0
  31. package/dist/chunk-RQULHGYH.js.map +1 -0
  32. package/dist/{chunk-FV3Z5MBE.js → chunk-TXN2KFHF.js} +14 -4
  33. package/dist/chunk-TXN2KFHF.js.map +1 -0
  34. package/dist/{chunk-Q2UM7BXU.js → chunk-VBDU4JL6.js} +2 -2
  35. package/dist/chunk-VBDU4JL6.js.map +1 -0
  36. package/dist/chunk-Z2L3LSNV.js +1470 -0
  37. package/dist/chunk-Z2L3LSNV.js.map +1 -0
  38. package/dist/core-CTzMJ82M.d.ts +562 -0
  39. package/dist/devtools/index.d.ts +2 -2
  40. package/dist/devtools/index.js +207 -2
  41. package/dist/devtools/index.js.map +1 -1
  42. package/dist/do/index.d.ts +48 -31
  43. package/dist/do/index.js +36 -25
  44. package/dist/do/index.js.map +1 -1
  45. package/dist/{durable-effects-D8SqU_if.d.ts → durable-effects-B0-qGQDy.d.ts} +2 -2
  46. package/dist/extension/index.d.ts +301 -3
  47. package/dist/extension/index.js +596 -5
  48. package/dist/extension/index.js.map +1 -1
  49. package/dist/flow/index.d.ts +1295 -0
  50. package/dist/flow/index.js +732 -0
  51. package/dist/flow/index.js.map +1 -0
  52. package/dist/idempotency/index.d.ts +90 -116
  53. package/dist/idempotency/index.js +4 -1
  54. package/dist/{batch-window/index.d.ts → index-4vZzljCD.d.ts} +7 -11
  55. package/dist/{fan-out/index.d.ts → index-6A7dB8f6.d.ts} +7 -8
  56. package/dist/index-B5BZ-_cT.d.ts +616 -0
  57. package/dist/index-Bc40JWVl.d.ts +131 -0
  58. package/dist/{debounce/index.d.ts → index-DHSUmQTR.d.ts} +7 -7
  59. package/dist/index-DJWIER_3.d.ts +69 -0
  60. package/dist/{snapshot/index.d.ts → index-DMCeMPMJ.d.ts} +15 -77
  61. package/dist/{monitored-run/index.d.ts → index-NjrT3fL2.d.ts} +37 -12
  62. package/dist/{recorder/index.d.ts → index-TvRb1KVf.d.ts} +4 -6
  63. package/dist/{deadline/index.d.ts → index-q0hXFeZ0.d.ts} +155 -8
  64. package/dist/index.d.ts +719 -6
  65. package/dist/index.js +1 -2
  66. package/dist/jev/index.d.ts +634 -0
  67. package/dist/jev/index.js +433 -0
  68. package/dist/jev/index.js.map +1 -0
  69. package/dist/machine-CdIcN2Xm.d.ts +1773 -0
  70. package/dist/machine-viz/index.d.ts +2 -1
  71. package/dist/machine-viz/index.js +12 -5
  72. package/dist/machine-viz/index.js.map +1 -1
  73. package/dist/mem/index.d.ts +19 -3
  74. package/dist/mem/index.js +22 -2
  75. package/dist/mem/index.js.map +1 -1
  76. package/dist/node/index.d.ts +130 -4
  77. package/dist/node/index.js +222 -10
  78. package/dist/node/index.js.map +1 -1
  79. package/dist/{paginator → paginate}/index.d.ts +151 -6
  80. package/dist/paginate/index.js +7 -0
  81. package/dist/parity/index.d.ts +5 -10
  82. package/dist/parity/index.js +4 -7
  83. package/dist/parity/index.js.map +1 -1
  84. package/dist/pbt/index.d.ts +248 -5
  85. package/dist/pbt/index.js +124 -5
  86. package/dist/pbt/index.js.map +1 -1
  87. package/dist/{trace-replay → persistence}/index.d.ts +7 -4
  88. package/dist/persistence/index.js +6 -0
  89. package/dist/react/index.d.ts +4 -3
  90. package/dist/react/index.js +1 -2
  91. package/dist/react/index.js.map +1 -1
  92. package/dist/resilience/index.d.ts +743 -0
  93. package/dist/resilience/index.js +657 -0
  94. package/dist/resilience/index.js.map +1 -0
  95. package/dist/retry-backoff/index.d.ts +3 -2
  96. package/dist/retry-backoff/index.js +1 -1
  97. package/dist/runtime-types-LWDoi943.d.ts +998 -0
  98. package/dist/testing/index.d.ts +3 -2
  99. package/dist/testing/index.js +1 -2
  100. package/dist/testing/index.js.map +1 -1
  101. package/dist/{throttled-input → timing}/index.d.ts +144 -12
  102. package/dist/{throttled-input → timing}/index.js +57 -12
  103. package/dist/timing/index.js.map +1 -0
  104. package/dist/{types-D7u9DkH7.d.ts → types-DP3f5NIl.d.ts} +1 -1
  105. package/dist/work-queue/index.d.ts +131 -54
  106. package/dist/work-queue/index.js +3 -2
  107. package/dist/work-queue/index.js.map +1 -1
  108. package/package.json +50 -216
  109. package/dist/authed-call/index.d.ts +0 -119
  110. package/dist/authed-call/index.js +0 -134
  111. package/dist/authed-call/index.js.map +0 -1
  112. package/dist/await-terminal/index.d.ts +0 -100
  113. package/dist/await-terminal/index.js +0 -76
  114. package/dist/await-terminal/index.js.map +0 -1
  115. package/dist/batch-window/index.js.map +0 -1
  116. package/dist/cache/index.d.ts +0 -151
  117. package/dist/cache/index.js +0 -8
  118. package/dist/chart/index.d.ts +0 -217
  119. package/dist/chart/index.js +0 -16
  120. package/dist/chart/index.js.map +0 -1
  121. package/dist/chart/inspect/index.d.ts +0 -85
  122. package/dist/chart/inspect/index.js +0 -5
  123. package/dist/chart/inspect/react.d.ts +0 -112
  124. package/dist/chart/inspect/react.js +0 -11
  125. package/dist/chart/inspect/react.js.map +0 -1
  126. package/dist/chart/inspect/styles.css +0 -286
  127. package/dist/chart/lane/index.d.ts +0 -361
  128. package/dist/chart/lane/index.js +0 -9
  129. package/dist/chart/lane/index.js.map +0 -1
  130. package/dist/chart/lane/react.d.ts +0 -83
  131. package/dist/chart/lane/react.js +0 -559
  132. package/dist/chart/lane/react.js.map +0 -1
  133. package/dist/chart/lane/server.d.ts +0 -148
  134. package/dist/chart/lane/server.js +0 -209
  135. package/dist/chart/lane/server.js.map +0 -1
  136. package/dist/chart/lane/styles.css +0 -498
  137. package/dist/chart/lane/viewer/assets/abnfDiagram-N423BO3Z-C729LI31.js +0 -1
  138. package/dist/chart/lane/viewer/assets/architectureDiagram-T3A2C74G-C729LI31.js +0 -1
  139. package/dist/chart/lane/viewer/assets/blockDiagram-VBNYF7ZC-C729LI31.js +0 -1
  140. package/dist/chart/lane/viewer/assets/c4Diagram-5PPSVZJV-C729LI31.js +0 -1
  141. package/dist/chart/lane/viewer/assets/chunk-2GRJ4B5K-HdDf8SI3.js +0 -1
  142. package/dist/chart/lane/viewer/assets/chunk-5RXB4S5H-CcNtpUd7.js +0 -231
  143. package/dist/chart/lane/viewer/assets/chunk-5VM5RSS4-BP4fRS_5.js +0 -15
  144. package/dist/chart/lane/viewer/assets/chunk-KBJHAD2P-DZOw7xU6.js +0 -1
  145. package/dist/chart/lane/viewer/assets/chunk-NSK5VX7P-CBCyTZMs.js +0 -128
  146. package/dist/chart/lane/viewer/assets/classDiagram-JCYQIIEL-C729LI31.js +0 -1
  147. package/dist/chart/lane/viewer/assets/classDiagram-v2-OCEON4UE-D4uAiFr8.js +0 -206
  148. package/dist/chart/lane/viewer/assets/cose-bilkent-JH36ORCC-DOwCrGXH.js +0 -1
  149. package/dist/chart/lane/viewer/assets/cynefinDiagram-MW4NZA55-C729LI31.js +0 -1
  150. package/dist/chart/lane/viewer/assets/dagre-K_PewWfS.js +0 -1
  151. package/dist/chart/lane/viewer/assets/dagre-VZM6K2ZE-831qZcA8.js +0 -4
  152. package/dist/chart/lane/viewer/assets/diagram-7IWD3JNH-C729LI31.js +0 -1
  153. package/dist/chart/lane/viewer/assets/diagram-B4RE2ZJO-C729LI31.js +0 -1
  154. package/dist/chart/lane/viewer/assets/diagram-LBJQPF4R-C729LI31.js +0 -1
  155. package/dist/chart/lane/viewer/assets/diagram-Q27KOJAE-C729LI31.js +0 -1
  156. package/dist/chart/lane/viewer/assets/diagram-UB23O5K3-C729LI31.js +0 -1
  157. package/dist/chart/lane/viewer/assets/ebnfDiagram-BXEA7PRR-C729LI31.js +0 -1
  158. package/dist/chart/lane/viewer/assets/erDiagram-JOGREHBK-C729LI31.js +0 -1
  159. package/dist/chart/lane/viewer/assets/flowDiagram-UKHOOZJN-C729LI31.js +0 -1
  160. package/dist/chart/lane/viewer/assets/ganttDiagram-PKOTCBZU-C729LI31.js +0 -1
  161. package/dist/chart/lane/viewer/assets/gitGraphDiagram-DS77QQ5N-C729LI31.js +0 -1
  162. package/dist/chart/lane/viewer/assets/index-9SkH5NA3.css +0 -1
  163. package/dist/chart/lane/viewer/assets/index-Bgt4sXpW.js +0 -195
  164. package/dist/chart/lane/viewer/assets/infoDiagram-6WML65LV-C729LI31.js +0 -1
  165. package/dist/chart/lane/viewer/assets/ishikawaDiagram-WSZJBQD7-C729LI31.js +0 -1
  166. package/dist/chart/lane/viewer/assets/journeyDiagram-NVQOT4AX-C729LI31.js +0 -1
  167. package/dist/chart/lane/viewer/assets/kanban-definition-27J2QSJJ-G7PaPzy-.js +0 -89
  168. package/dist/chart/lane/viewer/assets/katex-DOwCrGXH.js +0 -1
  169. package/dist/chart/lane/viewer/assets/mindmap-definition-FAOFIHXS-CGj9nrVk.js +0 -96
  170. package/dist/chart/lane/viewer/assets/path-fybaL0A-.js +0 -1
  171. package/dist/chart/lane/viewer/assets/pegDiagram-VL7TDLO6-C729LI31.js +0 -1
  172. package/dist/chart/lane/viewer/assets/pieDiagram-7S7Q4E2Y-C729LI31.js +0 -1
  173. package/dist/chart/lane/viewer/assets/quadrantDiagram-CIZ2JOQS-C729LI31.js +0 -1
  174. package/dist/chart/lane/viewer/assets/railroadDiagram-AXF67PYL-C729LI31.js +0 -1
  175. package/dist/chart/lane/viewer/assets/requirementDiagram-LRYGKXZP-C729LI31.js +0 -1
  176. package/dist/chart/lane/viewer/assets/sankeyDiagram-W5VNT64P-C729LI31.js +0 -1
  177. package/dist/chart/lane/viewer/assets/sequenceDiagram-SI44F4Z6-C729LI31.js +0 -1
  178. package/dist/chart/lane/viewer/assets/stateDiagram-OKZ733FA-B_88AzBS.js +0 -1
  179. package/dist/chart/lane/viewer/assets/stateDiagram-v2-UEYNNEHI-CR5gcgq6.js +0 -1
  180. package/dist/chart/lane/viewer/assets/swimlanes-SLNWSIFB-B4xK-rwg.js +0 -1
  181. package/dist/chart/lane/viewer/assets/swimlanesDiagram-ULZ7WXOC-C729LI31.js +0 -1
  182. package/dist/chart/lane/viewer/assets/timeline-definition-Z64GVDOM-CCv52MfY.js +0 -120
  183. package/dist/chart/lane/viewer/assets/vennDiagram-T6HMQDX7-C729LI31.js +0 -1
  184. package/dist/chart/lane/viewer/assets/wardleyDiagram-T6FBY63Y-C729LI31.js +0 -1
  185. package/dist/chart/lane/viewer/assets/xychartDiagram-ELKLHX3M-C729LI31.js +0 -1
  186. package/dist/chart/lane/viewer/index.html +0 -15
  187. package/dist/chart/report/index.d.ts +0 -116
  188. package/dist/chart/report/index.js +0 -32
  189. package/dist/chart/report/index.js.map +0 -1
  190. package/dist/chunk-2YFLOCWX.js +0 -15
  191. package/dist/chunk-2YFLOCWX.js.map +0 -1
  192. package/dist/chunk-3JU6657S.js +0 -372
  193. package/dist/chunk-3JU6657S.js.map +0 -1
  194. package/dist/chunk-4KTWLPL5.js +0 -33
  195. package/dist/chunk-4KTWLPL5.js.map +0 -1
  196. package/dist/chunk-5EHLEUTL.js +0 -686
  197. package/dist/chunk-5EHLEUTL.js.map +0 -1
  198. package/dist/chunk-5KJKJOFC.js +0 -758
  199. package/dist/chunk-5KJKJOFC.js.map +0 -1
  200. package/dist/chunk-7SVIRMC6.js.map +0 -1
  201. package/dist/chunk-7V4EVLZA.js.map +0 -1
  202. package/dist/chunk-A56OR5RF.js +0 -184
  203. package/dist/chunk-A56OR5RF.js.map +0 -1
  204. package/dist/chunk-AZZLE7XR.js +0 -62
  205. package/dist/chunk-AZZLE7XR.js.map +0 -1
  206. package/dist/chunk-B5VXOFMZ.js +0 -266
  207. package/dist/chunk-B5VXOFMZ.js.map +0 -1
  208. package/dist/chunk-BYQUGDD3.js +0 -16
  209. package/dist/chunk-BYQUGDD3.js.map +0 -1
  210. package/dist/chunk-D736QUGF.js.map +0 -1
  211. package/dist/chunk-E6GEDSF4.js +0 -307
  212. package/dist/chunk-E6GEDSF4.js.map +0 -1
  213. package/dist/chunk-EUF7XOEE.js +0 -223
  214. package/dist/chunk-EUF7XOEE.js.map +0 -1
  215. package/dist/chunk-EWJP3YYP.js.map +0 -1
  216. package/dist/chunk-FV3Z5MBE.js.map +0 -1
  217. package/dist/chunk-HCEVHFJ7.js +0 -54
  218. package/dist/chunk-HCEVHFJ7.js.map +0 -1
  219. package/dist/chunk-I5OV65MS.js.map +0 -1
  220. package/dist/chunk-J6527VRQ.js.map +0 -1
  221. package/dist/chunk-JELSZN25.js +0 -47
  222. package/dist/chunk-JELSZN25.js.map +0 -1
  223. package/dist/chunk-JER5O7PQ.js +0 -416
  224. package/dist/chunk-JER5O7PQ.js.map +0 -1
  225. package/dist/chunk-JGVL3WPL.js +0 -26
  226. package/dist/chunk-JGVL3WPL.js.map +0 -1
  227. package/dist/chunk-JP5D6GSL.js +0 -71
  228. package/dist/chunk-JP5D6GSL.js.map +0 -1
  229. package/dist/chunk-K575PT4S.js.map +0 -1
  230. package/dist/chunk-MU6MCIAC.js +0 -15
  231. package/dist/chunk-MU6MCIAC.js.map +0 -1
  232. package/dist/chunk-MUUROGIH.js.map +0 -1
  233. package/dist/chunk-ND3DH6KM.js +0 -88
  234. package/dist/chunk-ND3DH6KM.js.map +0 -1
  235. package/dist/chunk-Q2UM7BXU.js.map +0 -1
  236. package/dist/chunk-S2EGRPCM.js +0 -47
  237. package/dist/chunk-S2EGRPCM.js.map +0 -1
  238. package/dist/chunk-SINXE47Y.js +0 -55
  239. package/dist/chunk-SINXE47Y.js.map +0 -1
  240. package/dist/chunk-SUST46KO.js +0 -53
  241. package/dist/chunk-SUST46KO.js.map +0 -1
  242. package/dist/chunk-TP5UPGLY.js +0 -61
  243. package/dist/chunk-TP5UPGLY.js.map +0 -1
  244. package/dist/chunk-UF4MZSLT.js +0 -53
  245. package/dist/chunk-UF4MZSLT.js.map +0 -1
  246. package/dist/chunk-UOC2PL46.js +0 -13
  247. package/dist/chunk-UOC2PL46.js.map +0 -1
  248. package/dist/chunk-WLGO64WC.js.map +0 -1
  249. package/dist/chunk-WRAA7GVZ.js +0 -209
  250. package/dist/chunk-WRAA7GVZ.js.map +0 -1
  251. package/dist/chunk-ZCL7SCBK.js +0 -685
  252. package/dist/chunk-ZCL7SCBK.js.map +0 -1
  253. package/dist/chunk-ZD6PNZBK.js +0 -457
  254. package/dist/chunk-ZD6PNZBK.js.map +0 -1
  255. package/dist/chunk-ZF6WDK2D.js +0 -519
  256. package/dist/chunk-ZF6WDK2D.js.map +0 -1
  257. package/dist/chunk-ZJ5AOYBH.js +0 -8
  258. package/dist/chunk-ZJ5AOYBH.js.map +0 -1
  259. package/dist/chunk-ZVJZ72HY.js.map +0 -1
  260. package/dist/circuit-breaker/index.d.ts +0 -197
  261. package/dist/circuit-breaker/index.js +0 -3
  262. package/dist/circuit-breaker/index.js.map +0 -1
  263. package/dist/core-Bjc0bS8j.d.ts +0 -326
  264. package/dist/deadline/index.js +0 -6
  265. package/dist/deadline/index.js.map +0 -1
  266. package/dist/debounce/index.js +0 -3
  267. package/dist/debounce/index.js.map +0 -1
  268. package/dist/extension/react.d.ts +0 -121
  269. package/dist/extension/react.js +0 -75
  270. package/dist/extension/react.js.map +0 -1
  271. package/dist/extension/subs/index.d.ts +0 -44
  272. package/dist/extension/subs/index.js +0 -80
  273. package/dist/extension/subs/index.js.map +0 -1
  274. package/dist/extension/test-utils.d.ts +0 -128
  275. package/dist/extension/test-utils.js +0 -277
  276. package/dist/extension/test-utils.js.map +0 -1
  277. package/dist/fan-out/index.js +0 -5
  278. package/dist/fan-out/index.js.map +0 -1
  279. package/dist/fold-Blbhru48.d.ts +0 -435
  280. package/dist/graph-CcjWZVrd.d.ts +0 -923
  281. package/dist/idempotency/adapter.d.ts +0 -62
  282. package/dist/idempotency/adapter.js +0 -4
  283. package/dist/idempotency/adapter.js.map +0 -1
  284. package/dist/idempotent-intake/index.d.ts +0 -187
  285. package/dist/idempotent-intake/index.js +0 -7
  286. package/dist/idempotent-intake/index.js.map +0 -1
  287. package/dist/llm-call/index.d.ts +0 -310
  288. package/dist/llm-call/index.js +0 -16
  289. package/dist/llm-call/index.js.map +0 -1
  290. package/dist/machine-0OmPvsy_.d.ts +0 -804
  291. package/dist/monitored-run/index.js +0 -10
  292. package/dist/monitored-run/index.js.map +0 -1
  293. package/dist/paginated-walk/index.d.ts +0 -234
  294. package/dist/paginated-walk/index.js +0 -16
  295. package/dist/paginated-walk/index.js.map +0 -1
  296. package/dist/paginator/index.js +0 -3
  297. package/dist/paginator/index.js.map +0 -1
  298. package/dist/pbt/arbitraries/index.d.ts +0 -135
  299. package/dist/pbt/arbitraries/index.js +0 -3
  300. package/dist/pbt/arbitraries/index.js.map +0 -1
  301. package/dist/pbt/runners/index.d.ts +0 -117
  302. package/dist/pbt/runners/index.js +0 -5
  303. package/dist/pbt/runners/index.js.map +0 -1
  304. package/dist/poller/index.d.ts +0 -351
  305. package/dist/poller/index.js +0 -115
  306. package/dist/poller/index.js.map +0 -1
  307. package/dist/prediction/index.d.ts +0 -130
  308. package/dist/prediction/index.js +0 -4
  309. package/dist/prediction/index.js.map +0 -1
  310. package/dist/protocol-B5YmJr0d.d.ts +0 -45
  311. package/dist/pure/index.d.ts +0 -2
  312. package/dist/pure/index.js +0 -4
  313. package/dist/pure/index.js.map +0 -1
  314. package/dist/rate-limit/index.d.ts +0 -115
  315. package/dist/rate-limit/index.js +0 -3
  316. package/dist/rate-limit/index.js.map +0 -1
  317. package/dist/reconciler/index.d.ts +0 -192
  318. package/dist/reconciler/index.js +0 -164
  319. package/dist/reconciler/index.js.map +0 -1
  320. package/dist/recorder/index.js +0 -3
  321. package/dist/recorder/index.js.map +0 -1
  322. package/dist/reducer-BqyoVyBG.d.ts +0 -447
  323. package/dist/resilient-call/index.d.ts +0 -319
  324. package/dist/resilient-call/index.js +0 -14
  325. package/dist/resilient-call/index.js.map +0 -1
  326. package/dist/retry-to-success/index.d.ts +0 -109
  327. package/dist/retry-to-success/index.js +0 -37
  328. package/dist/retry-to-success/index.js.map +0 -1
  329. package/dist/run-BVeqJDBF.d.ts +0 -713
  330. package/dist/runtime-types-Bxc637bp.d.ts +0 -502
  331. package/dist/saga/index.d.ts +0 -240
  332. package/dist/saga/index.js +0 -150
  333. package/dist/saga/index.js.map +0 -1
  334. package/dist/samples-DCt6nF8H.d.ts +0 -59
  335. package/dist/snapshot/index.js +0 -5
  336. package/dist/snapshot/index.js.map +0 -1
  337. package/dist/subs/index.d.ts +0 -471
  338. package/dist/subs/index.js +0 -7
  339. package/dist/subs/index.js.map +0 -1
  340. package/dist/throttle/index.d.ts +0 -134
  341. package/dist/throttle/index.js +0 -3
  342. package/dist/throttle/index.js.map +0 -1
  343. package/dist/throttled-input/index.js.map +0 -1
  344. package/dist/token-refresh/index.d.ts +0 -215
  345. package/dist/token-refresh/index.js +0 -6
  346. package/dist/token-refresh/index.js.map +0 -1
  347. package/dist/trace-replay/index.js +0 -6
  348. package/dist/trace-replay/index.js.map +0 -1
  349. package/dist/with-deadline/index.d.ts +0 -196
  350. package/dist/with-deadline/index.js +0 -111
  351. package/dist/with-deadline/index.js.map +0 -1
  352. package/dist/with-resilience/index.d.ts +0 -224
  353. package/dist/with-resilience/index.js +0 -240
  354. package/dist/with-resilience/index.js.map +0 -1
  355. package/dist/with-telemetry/index.d.ts +0 -149
  356. package/dist/with-telemetry/index.js +0 -70
  357. package/dist/with-telemetry/index.js.map +0 -1
  358. package/dist/work-queue/adapter.d.ts +0 -83
  359. package/dist/work-queue/adapter.js +0 -4
  360. package/dist/work-queue/adapter.js.map +0 -1
  361. package/dist/work-queue/ops.d.ts +0 -70
  362. package/dist/work-queue/ops.js +0 -3
  363. package/dist/work-queue/ops.js.map +0 -1
  364. package/dist/workflow/index.d.ts +0 -484
  365. package/dist/workflow/index.js +0 -244
  366. package/dist/workflow/index.js.map +0 -1
  367. /package/dist/{cache → paginate}/index.js.map +0 -0
  368. /package/dist/{chart/inspect → persistence}/index.js.map +0 -0
@@ -1,447 +0,0 @@
1
- import { k as EventOrigin, C as Chart, R as ReducerChart } from './graph-CcjWZVrd.js';
2
- import { R as RtSamples } from './samples-DCt6nF8H.js';
3
-
4
- /**
5
- * WHY a (state, event) pair is refused. The chart's three refusal mechanisms,
6
- * each carrying the evidence that produced it, so a UI can say *"`WIP` is not
7
- * addressed to `blocked` — its scope is `edges`"* rather than "disabled".
8
- *
9
- * `undeclared` is the fourth case the type layer forbids: a pair that is live,
10
- * unhandled and unrefused. It cannot occur on a chart that compiled through
11
- * `defineChart`, and it is reported rather than swallowed because reaching it
12
- * means the types were bypassed with a cast — which is precisely when a
13
- * debugger should say so instead of drawing a well-behaved button.
14
- */
15
- type RefusalReason = {
16
- readonly kind: "end";
17
- /** Terminal state: it accepts nothing, by declaration. */
18
- readonly state: string;
19
- } | {
20
- readonly kind: "out-of-scope";
21
- /** The event's declared `scope`, flattened to its members. */
22
- readonly scope: readonly string[];
23
- /** The phase this state lives in — the one that is not in `scope`. */
24
- readonly phase: string;
25
- } | {
26
- /**
27
- * `scope: "edges"` — the event is live exactly where an edge declares it,
28
- * and this state declares none.
29
- *
30
- * SPLIT OUT OF `out-of-scope` because the phase has nothing to do with it.
31
- * `"edges"` is not a phase name, so the phase test could never pass and
32
- * the refusal came back naming a phase the reader then went looking for:
33
- * *"`DONE` is not addressed to phase `working` (scope: edges)"* — three
34
- * pieces of vocabulary for one fact, and the fact is not in there. The
35
- * default scope is `edges`, so this was most refusals on most charts.
36
- */
37
- readonly kind: "no-edge";
38
- readonly state: string;
39
- } | {
40
- readonly kind: "ignored";
41
- /** The event is live here and this state refuses it BY NAME. */
42
- readonly state: string;
43
- } | {
44
- readonly kind: "undeclared";
45
- };
46
- /** A one-line, human-readable rendering of a {@link RefusalReason}. */
47
- declare function explainRefusal(event: string, reason: RefusalReason): string;
48
- /** What kind of transition an edge declares. */
49
- type EdgeKind = "plain" | "guarded" | "cell" | "resume";
50
- /** One declared edge — a `(state, event)` pair the chart routes. */
51
- interface ChartEdge {
52
- readonly from: string;
53
- readonly event: string;
54
- /** `"${from}.${event}"` — the site key guards/cmds/cells are indexed by. */
55
- readonly at: string;
56
- readonly kind: EdgeKind;
57
- /**
58
- * Every state this edge can land on, in declaration order. A guarded edge
59
- * contributes both arms; a cell edge contributes its whole declared `to`.
60
- * For a resume edge this is the fallback alone — the real target is
61
- * `state.was`, which is a property of the LIVE state, not of the chart.
62
- */
63
- readonly targets: readonly string[];
64
- /** The guard's name, on a guarded edge. */
65
- readonly guard?: string;
66
- /** The target taken when the guard HOLDS. */
67
- readonly then?: string;
68
- /** The target taken when the guard FAILS. */
69
- readonly otherwise?: string;
70
- /** The cell's name, on a `{ to, cell }` edge. */
71
- readonly cell?: string;
72
- /** The declared fallback, on a `resume` edge. */
73
- readonly fallback?: string;
74
- /** Cmds fired when the edge fires (the guard's `then` arm, if guarded). */
75
- readonly cmds: readonly string[];
76
- /** Cmds fired when the guard FAILS. Empty unless the edge is guarded. */
77
- readonly otherwiseCmds: readonly string[];
78
- }
79
- /** A (state, event) pair the chart explicitly refuses, and why. */
80
- interface ChartRefusal {
81
- readonly from: string;
82
- readonly event: string;
83
- readonly reason: RefusalReason;
84
- }
85
- /** One state, with the facts the chart declares about it. */
86
- interface ChartStateInfo {
87
- readonly name: string;
88
- /** The phase it was declared under. */
89
- readonly phase: string;
90
- /** `initial: true` — the entry state. Exactly one per machine-bearing chart. */
91
- readonly initial: boolean;
92
- /**
93
- * Terminal by DECLARATION, not by "has no outgoing edges" — `true` for both
94
- * polarities, because both accept nothing and both owe nothing.
95
- */
96
- readonly end: boolean;
97
- /**
98
- * WHICH ending. `true` a success final, `"error"` the failure terminal,
99
- * `false` not a final at all.
100
- *
101
- * `end` answers "does this accept anything"; this answers "did the machine
102
- * win or lose". A lane needs both and they are not the same question —
103
- * `shipped` and `frozen` are equally terminal and are not the same outcome.
104
- */
105
- readonly endPolarity: false | true | "error";
106
- /** Carries a `resume` edge out of it, so the compiler injects `was` here. */
107
- readonly parking: boolean;
108
- }
109
- /** One event of the alphabet. */
110
- interface ChartEventInfo {
111
- readonly name: string;
112
- /** The declared `scope`, flattened: `"edges"`, `"all"`, or phase names. */
113
- readonly scope: readonly string[];
114
- /** `foreign: true` — the name belongs to someone else and stays bare. */
115
- readonly foreign: boolean;
116
- /**
117
- * WHERE THIS EVENT COMES FROM — `from`, read back off the chart.
118
- *
119
- * `undefined` means the chart does not say, which is a fact of its own and
120
- * never a default: a UI that groups its button row by sender must render the
121
- * undeclared ones as undeclared rather than filing them under a guess.
122
- */
123
- readonly from?: EventOrigin;
124
- /**
125
- * Whether the event DECLARED a payload (`data: ty<…>()`).
126
- *
127
- * `ty<T>()` is `{}` at runtime, so `T` is unreadable — but the `data` KEY is
128
- * right there in the literal, so "does this event carry a payload at all" IS
129
- * a runtime fact. It is what decides whether a sample is required.
130
- */
131
- readonly hasPayload: boolean;
132
- }
133
- /**
134
- * A whole chart, as data a UI can build itself from. Nothing here is supplied
135
- * by the caller; every field is read off the one chart value.
136
- */
137
- interface ChartDescription {
138
- /** The phases, in declaration order, each with its member states. */
139
- readonly phases: readonly {
140
- readonly name: string;
141
- readonly states: readonly string[];
142
- }[];
143
- readonly states: readonly ChartStateInfo[];
144
- /** The state marked `initial: true`, or `undefined` on a chart with none. */
145
- readonly initial: string | undefined;
146
- readonly events: readonly ChartEventInfo[];
147
- /** Every cmd DECLARED in the `cmds` section — the effect alphabet. */
148
- readonly cmds: readonly string[];
149
- /** Every guard name any edge references. */
150
- readonly guards: readonly string[];
151
- /** Every cell name any `{ to, cell }` edge references. */
152
- readonly cells: readonly string[];
153
- readonly edges: readonly ChartEdge[];
154
- readonly refusals: readonly ChartRefusal[];
155
- }
156
- /**
157
- * A read edge MINUS the state it leaves — everything about an edge that is a
158
- * fact of the edge itself rather than of the grid it sits in.
159
- *
160
- * The reducer form has no state dimension (`src/chart/inspect/reducer.ts`), so
161
- * its edges are exactly this: same kinds, same targets, same guard/cell/cmd
162
- * fields, with `from` unrepresentable rather than blank.
163
- */
164
- type EdgeCore = Omit<ChartEdge, "from">;
165
- /**
166
- * Read a chart into its {@link ChartDescription}.
167
- *
168
- * Pure, total, and allocation-only — it never executes a guard, a cell or a
169
- * payload builder, so it is safe on a chart whose parts do not exist yet.
170
- */
171
- declare function describeChart<const C extends Chart<C>>(chart: C): ChartDescription;
172
- /** The declared edge out of `state` on `event`, or `undefined`. */
173
- declare function edgeAt(desc: ChartDescription, state: string, event: string): ChartEdge | undefined;
174
- /** Why `state` refuses `event`, or `undefined` when it does not. */
175
- declare function refusalAtState(desc: ChartDescription, state: string, event: string): RefusalReason | undefined;
176
- /** The record for `state`, or `undefined` when the chart has no such state. */
177
- declare function stateInfo(desc: ChartDescription, state: string): ChartStateInfo | undefined;
178
-
179
- /** Any guard, however narrowly its use sites typed it. */
180
- type AnyGuard = (...args: never[]) => boolean;
181
- /** Any cell, in either the single-body or the per-site form. */
182
- type AnyCell = ((...args: never[]) => readonly [{
183
- readonly type: string;
184
- }, unknown]) | Readonly<Record<string, unknown>>;
185
- /**
186
- * The code parts a preview may consult — the SAME bag `compile` receives, so
187
- * an author passes the one they already built rather than a second copy.
188
- * Every field is optional: the preview degrades where a part is absent.
189
- */
190
- interface InspectParts {
191
- readonly guards?: Readonly<Record<string, AnyGuard | undefined>>;
192
- readonly cells?: Readonly<Record<string, AnyCell | undefined>>;
193
- }
194
- /** Everything a live preview may consult, beyond the state itself. */
195
- interface InspectOptions {
196
- /** The parts bag `compile` was given. Guards/cells are read from it. */
197
- readonly parts?: InspectParts;
198
- /** Sample payload per event — see `./samples`. */
199
- readonly samples?: RtSamples;
200
- }
201
- /** Why a guard could not be evaluated. Each is a fact, not a guess. */
202
- type GuardUnknown = "no-guard-bag" | "no-implementation" | "no-sample" | "threw";
203
- /**
204
- * Which branch a guarded edge would take right now.
205
- *
206
- * `then` / `else` are ANSWERS — the guard ran, on this state, with this msg.
207
- * `unknown` is the honest non-answer, carrying the reason and (for a throwing
208
- * guard) the message, so a UI shows "cannot evaluate: no sample for FAIL"
209
- * rather than a confidently wrong arrow.
210
- */
211
- type GuardPreview = {
212
- readonly guard: string;
213
- readonly branch: "then" | "else";
214
- /** The state that branch lands on. */
215
- readonly target: string;
216
- /** The cmds that branch fires. */
217
- readonly cmds: readonly string[];
218
- } | {
219
- readonly guard: string;
220
- readonly branch: "unknown";
221
- readonly why: GuardUnknown;
222
- /** The thrown error's message, when `why` is `"threw"`. */
223
- readonly error?: string;
224
- };
225
- /** How a single target was determined, when one could be. */
226
- type ResolvedBy = "declared" | "guard" | "resume" | "cell";
227
- /**
228
- * What would happen if `event` were dispatched at the current state.
229
- *
230
- * A refusal is FIRST-CLASS: it carries the reason and a rendered explanation,
231
- * so a UI draws it as visibly refused rather than omitting the control. That
232
- * is the totality property paying rent — the chart knows the difference
233
- * between "not routed here", "deliberately dropped here" and "this state is
234
- * over", and a debugger that hides all three behind a missing button throws
235
- * away the one thing this substrate knows and others do not.
236
- */
237
- interface EventPreview {
238
- readonly event: string;
239
- readonly status: "legal" | "refused";
240
- /**
241
- * Who would send this — the event's declared `from`, carried through rather
242
- * than recomputed, so a button row can be grouped by sender with the same
243
- * answer the report's "waiting on" line gives. `undefined` when the chart
244
- * does not say.
245
- */
246
- readonly from?: EventOrigin;
247
- /** Present iff `status` is `"refused"`. */
248
- readonly reason?: RefusalReason;
249
- /** A one-line rendering of `reason`. Present iff refused. */
250
- readonly why?: string;
251
- /** The declared edge. Present iff legal. */
252
- readonly edge?: ChartEdge;
253
- /** Present iff the edge is guarded. */
254
- readonly guard?: GuardPreview;
255
- /**
256
- * The cmds that WOULD fire — read off the edge's declaration. For a guarded
257
- * edge whose branch resolved, the cmds of THAT arm; for one that did not, the
258
- * `then` arm's (the declared happy path) — `guard.branch === "unknown"` is
259
- * what says so.
260
- *
261
- * This is the BEFORE question, and a `{ to, cell }` edge answers it with an
262
- * empty list BY DECLARATION: the cell builds its cmds inside its body, so the
263
- * chart has none to declare. For what actually fired, ask the after question
264
- * — `captureCmds` in `./captured`, which reads the emitted cmds off the
265
- * machine's own output.
266
- */
267
- readonly cmds: readonly string[];
268
- /** Every state the edge declares it can reach. */
269
- readonly targets: readonly string[];
270
- /** The single target, when one is determined. */
271
- readonly resolved?: string;
272
- /** How {@link EventPreview.resolved} was determined. */
273
- readonly resolvedBy?: ResolvedBy;
274
- /**
275
- * The msg this preview used — the sample plus the chart's `type`. `undefined`
276
- * when the event declares a payload and no sample was supplied, which is
277
- * also why a guard or cell may have come back `unknown`.
278
- */
279
- readonly msg?: {
280
- readonly type: string;
281
- };
282
- }
283
- /**
284
- * Preview one event against a live state.
285
- *
286
- * @param desc the chart's {@link ChartDescription}.
287
- * @param state the live state — anything with a `type` (and `was`, on a
288
- * parking state, which is what makes a resume target resolvable).
289
- */
290
- declare function previewEvent<S extends {
291
- readonly type: string;
292
- }>(desc: ChartDescription, state: S, event: string, opts?: InspectOptions): EventPreview;
293
- /**
294
- * Preview EVERY event of the alphabet against a live state, in the chart's
295
- * declaration order.
296
- *
297
- * This is the button row: one entry per declared event, each either legal
298
- * (with its branch, targets and cmds) or refused (with its reason). Nothing is
299
- * filtered out — a refused event is a control the UI draws, not one it lacks.
300
- */
301
- declare function inspectState<S extends {
302
- readonly type: string;
303
- }>(desc: ChartDescription, state: S, opts?: InspectOptions): readonly EventPreview[];
304
- /**
305
- * {@link inspectState}, plus the two roll-ups a caller almost always wants
306
- * next: the legal event names and the refused ones.
307
- *
308
- * The whole verdict list is still there — the split is a convenience, not a
309
- * filter, and `events` remains the surface a UI renders so a refusal keeps its
310
- * reason.
311
- */
312
- declare function inspectStateSummary<S extends {
313
- readonly type: string;
314
- }>(desc: ChartDescription, state: S, opts?: InspectOptions): {
315
- readonly state: S;
316
- readonly events: readonly EventPreview[];
317
- readonly legal: readonly string[];
318
- readonly refused: readonly string[];
319
- };
320
-
321
- /**
322
- * A QUESTION THIS FORM CANNOT ANSWER, carried in the slot where the grid form
323
- * carries the answer.
324
- *
325
- * `answerable: false` is the whole type: there is no `true` member, because a
326
- * question this form CAN answer is answered with the answer. So `desc.refusals`
327
- * on a reducer description is not an empty list a UI silently renders — it is a
328
- * value whose only shape says why the list is not there, and code written
329
- * against the grid form's array fails to compile against it.
330
- */
331
- interface Unanswerable<Q extends string> {
332
- readonly answerable: false;
333
- /** Which question — the grid-form field this stands in for. */
334
- readonly question: Q;
335
- /** One line, ready to render. */
336
- readonly why: string;
337
- }
338
- /** One edge of a reducer chart — an edge with no state to leave from. */
339
- type ReducerEdge = EdgeCore;
340
- /** One event of a reducer chart's alphabet. `scope` has no counterpart here. */
341
- interface ReducerEventInfo {
342
- readonly name: string;
343
- /** `foreign: true` — the name belongs to someone else and stays bare. */
344
- readonly foreign: boolean;
345
- /** WHO SENDS THIS. `undefined` means the chart does not say — never a guess. */
346
- readonly from?: EventOrigin;
347
- /** Whether the event declared a payload (`data: ty<…>()`). */
348
- readonly hasPayload: boolean;
349
- /** `false` iff the chart declares this event and routes it nowhere. */
350
- readonly routed: boolean;
351
- }
352
- /**
353
- * A reducer-form chart, as data a UI can build itself from — the same contract
354
- * as {@link import("./describe").ChartDescription}, over the facts this form
355
- * actually has.
356
- */
357
- interface ReducerChartDescription {
358
- /** The declared state names, in declaration order. Flat: there are no groups. */
359
- readonly states: readonly string[];
360
- /** The entry state — the chart's `initial` field, not a marked node. */
361
- readonly initial: string;
362
- readonly events: readonly ReducerEventInfo[];
363
- /** Every cmd DECLARED in the `cmds` section — the effect alphabet. */
364
- readonly cmds: readonly string[];
365
- readonly guards: readonly string[];
366
- readonly cells: readonly string[];
367
- /** One edge per routed event, in the alphabet's declaration order. */
368
- readonly edges: readonly ReducerEdge[];
369
- /**
370
- * TOTALITY, read back off the value: `true` iff every declared event owes and
371
- * has an edge. Through the typed door this is always `true` — `on` is a
372
- * required mapped type — so a `false` here means the types were bypassed with
373
- * a cast, exactly as `refusals`' `undeclared` kind does in the grid form.
374
- */
375
- readonly total: boolean;
376
- /** The declared events with no edge. Empty through the typed door. */
377
- readonly missing: readonly string[];
378
- /** NOT AVAILABLE — see {@link Unanswerable}. */
379
- readonly phases: Unanswerable<"phases">;
380
- /** NOT AVAILABLE — see {@link Unanswerable}. */
381
- readonly refusals: Unanswerable<"refusals">;
382
- /** NOT AVAILABLE — see {@link Unanswerable}. */
383
- readonly scope: Unanswerable<"scope">;
384
- }
385
- /**
386
- * Read a reducer-form chart into its {@link ReducerChartDescription}.
387
- *
388
- * Pure, total and allocation-only, exactly as `describeChart` is: it never runs
389
- * a guard, a cell or a payload builder, so it is safe on a chart whose parts do
390
- * not exist yet.
391
- */
392
- declare function describeReducerChart<const C extends ReducerChart<C>>(chart: C): ReducerChartDescription;
393
- /** The edge that routes `event`, or `undefined` when the chart routes it nowhere. */
394
- declare function reducerEdgeAt(desc: ReducerChartDescription, event: string): ReducerEdge | undefined;
395
- /**
396
- * What would happen if `event` were dispatched at the current state.
397
- *
398
- * There is NO `status` field, and its absence is the honest part: this form
399
- * cannot refuse an event — `on` is total over the alphabet and there is no
400
- * state dimension to refuse from — so a "legal" tag would be a distinction
401
- * without a second case. Everything a grid preview can still say here it says:
402
- * the edge, the guard's branch, the declared fan-out, the target a cell picks.
403
- *
404
- * The cmds are the DECLARED ones — the before question. For what actually
405
- * fired, see `captureCmds` in `./captured`.
406
- */
407
- interface ReducerEventPreview {
408
- readonly event: string;
409
- /** The event's declared `from`, carried through rather than recomputed. */
410
- readonly from?: EventOrigin;
411
- /** The declared edge. `undefined` only when the chart routes the event nowhere. */
412
- readonly edge?: ReducerEdge;
413
- /** Present iff the edge is guarded. */
414
- readonly guard?: GuardPreview;
415
- /** The cmds the edge DECLARES for the arm that resolved. */
416
- readonly cmds: readonly string[];
417
- /** Every state the edge declares it can reach. */
418
- readonly targets: readonly string[];
419
- /** The single target, when one is determined. */
420
- readonly resolved?: string;
421
- /** How {@link ReducerEventPreview.resolved} was determined. */
422
- readonly resolvedBy?: ResolvedBy;
423
- /** The msg this preview used, or `undefined` when no sample was supplied. */
424
- readonly msg?: {
425
- readonly type: string;
426
- };
427
- }
428
- /**
429
- * Preview one event of a reducer chart against a live state.
430
- *
431
- * The guard and cell previews are the SAME functions the grid form uses — a
432
- * guard is pure and a cell is pure in both forms, and the only difference is
433
- * that `at` is the bare event name.
434
- */
435
- declare function previewReducerEvent<S extends {
436
- readonly type: string;
437
- }>(desc: ReducerChartDescription, state: S, event: string, opts?: InspectOptions): ReducerEventPreview;
438
- /**
439
- * Preview EVERY event of a reducer chart's alphabet against a live state, in
440
- * declaration order. The button row — and here every control is live, because
441
- * this form has nothing with which to refuse one.
442
- */
443
- declare function inspectReducerState<S extends {
444
- readonly type: string;
445
- }>(desc: ReducerChartDescription, state: S, opts?: InspectOptions): readonly ReducerEventPreview[];
446
-
447
- export { type AnyCell as A, type ChartDescription as C, type EdgeCore as E, type GuardPreview as G, type InspectOptions as I, type ReducerChartDescription as R, type Unanswerable as U, type AnyGuard as a, type ChartEdge as b, type ChartEventInfo as c, type ChartRefusal as d, type ChartStateInfo as e, type EdgeKind as f, type EventPreview as g, type GuardUnknown as h, type InspectParts as i, type ReducerEdge as j, type ReducerEventInfo as k, type ReducerEventPreview as l, type RefusalReason as m, type ResolvedBy as n, describeChart as o, describeReducerChart as p, edgeAt as q, explainRefusal as r, inspectReducerState as s, inspectState as t, inspectStateSummary as u, previewEvent as v, previewReducerEvent as w, reducerEdgeAt as x, refusalAtState as y, stateInfo as z };