@demlik/tea 0.13.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 (372) hide show
  1. package/README.md +11 -9
  2. package/dist/agent/index.d.ts +637 -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-RH5EFRVJ.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-O4MVQTEJ.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-DMYGQB4O.js → chunk-HYDWG35Q.js} +23 -6
  19. package/dist/chunk-HYDWG35Q.js.map +1 -0
  20. package/dist/{chunk-YUXP55T2.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-Co0LWkIA.d.ts → core-CTzMJ82M.d.ts} +72 -23
  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 +42 -29
  43. package/dist/do/index.js +36 -25
  44. package/dist/do/index.js.map +1 -1
  45. package/dist/{durable-effects-C6uwzjb5.d.ts → durable-effects-B0-qGQDy.d.ts} +2 -2
  46. package/dist/extension/index.d.ts +300 -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 -12
  55. package/dist/{fan-out/index.d.ts → index-6A7dB8f6.d.ts} +7 -9
  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 -78
  61. package/dist/{monitored-run/index.d.ts → index-NjrT3fL2.d.ts} +37 -13
  62. package/dist/{recorder/index.d.ts → index-TvRb1KVf.d.ts} +4 -7
  63. package/dist/{deadline/index.d.ts → index-q0hXFeZ0.d.ts} +155 -9
  64. package/dist/index.d.ts +711 -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 +1 -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 +18 -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 +104 -6
  77. package/dist/node/index.js +132 -9
  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 +4 -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 +247 -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 -5
  88. package/dist/persistence/index.js +6 -0
  89. package/dist/react/index.d.ts +2 -2
  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 +2 -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 +143 -12
  102. package/dist/{throttled-input → timing}/index.js +57 -12
  103. package/dist/timing/index.js.map +1 -0
  104. package/dist/{types-XS_miRnB.d.ts → types-DP3f5NIl.d.ts} +1 -1
  105. package/dist/work-queue/index.d.ts +130 -54
  106. package/dist/work-queue/index.js +3 -2
  107. package/dist/work-queue/index.js.map +1 -1
  108. package/package.json +45 -218
  109. package/dist/authed-call/index.d.ts +0 -120
  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 -101
  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 -152
  117. package/dist/cache/index.js +0 -8
  118. package/dist/chart/index.d.ts +0 -218
  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 -86
  122. package/dist/chart/inspect/index.js +0 -5
  123. package/dist/chart/inspect/react.d.ts +0 -113
  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 -362
  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 -84
  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 -117
  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-3I52QZZ5.js +0 -519
  193. package/dist/chunk-3I52QZZ5.js.map +0 -1
  194. package/dist/chunk-3ZAFFRRB.js +0 -457
  195. package/dist/chunk-3ZAFFRRB.js.map +0 -1
  196. package/dist/chunk-4EQZ76JC.js +0 -33
  197. package/dist/chunk-4EQZ76JC.js.map +0 -1
  198. package/dist/chunk-4KLG43GY.js +0 -223
  199. package/dist/chunk-4KLG43GY.js.map +0 -1
  200. package/dist/chunk-7FRZ2CT2.js +0 -424
  201. package/dist/chunk-7FRZ2CT2.js.map +0 -1
  202. package/dist/chunk-AZZLE7XR.js +0 -62
  203. package/dist/chunk-AZZLE7XR.js.map +0 -1
  204. package/dist/chunk-BYQUGDD3.js +0 -16
  205. package/dist/chunk-BYQUGDD3.js.map +0 -1
  206. package/dist/chunk-CIQG5L42.js +0 -685
  207. package/dist/chunk-CIQG5L42.js.map +0 -1
  208. package/dist/chunk-CLM6ERNO.js +0 -61
  209. package/dist/chunk-CLM6ERNO.js.map +0 -1
  210. package/dist/chunk-COS5MSTO.js +0 -88
  211. package/dist/chunk-COS5MSTO.js.map +0 -1
  212. package/dist/chunk-CRPZJVD2.js +0 -71
  213. package/dist/chunk-CRPZJVD2.js.map +0 -1
  214. package/dist/chunk-D62FDQKE.js +0 -53
  215. package/dist/chunk-D62FDQKE.js.map +0 -1
  216. package/dist/chunk-D736QUGF.js.map +0 -1
  217. package/dist/chunk-DGE4PV4A.js +0 -26
  218. package/dist/chunk-DGE4PV4A.js.map +0 -1
  219. package/dist/chunk-DMYGQB4O.js.map +0 -1
  220. package/dist/chunk-EWJP3YYP.js.map +0 -1
  221. package/dist/chunk-FV3Z5MBE.js.map +0 -1
  222. package/dist/chunk-HCEVHFJ7.js +0 -54
  223. package/dist/chunk-HCEVHFJ7.js.map +0 -1
  224. package/dist/chunk-J6527VRQ.js.map +0 -1
  225. package/dist/chunk-JELSZN25.js +0 -47
  226. package/dist/chunk-JELSZN25.js.map +0 -1
  227. package/dist/chunk-K575PT4S.js.map +0 -1
  228. package/dist/chunk-L57ZOT5K.js +0 -184
  229. package/dist/chunk-L57ZOT5K.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-NR7BU22N.js +0 -758
  234. package/dist/chunk-NR7BU22N.js.map +0 -1
  235. package/dist/chunk-O4MVQTEJ.js.map +0 -1
  236. package/dist/chunk-OOYD44JI.js +0 -317
  237. package/dist/chunk-OOYD44JI.js.map +0 -1
  238. package/dist/chunk-Q2UM7BXU.js.map +0 -1
  239. package/dist/chunk-RH5EFRVJ.js.map +0 -1
  240. package/dist/chunk-S2EGRPCM.js +0 -47
  241. package/dist/chunk-S2EGRPCM.js.map +0 -1
  242. package/dist/chunk-SINXE47Y.js +0 -55
  243. package/dist/chunk-SINXE47Y.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-VYFAZN3F.js +0 -372
  249. package/dist/chunk-VYFAZN3F.js.map +0 -1
  250. package/dist/chunk-WRAA7GVZ.js +0 -209
  251. package/dist/chunk-WRAA7GVZ.js.map +0 -1
  252. package/dist/chunk-XGELA764.js +0 -163
  253. package/dist/chunk-XGELA764.js.map +0 -1
  254. package/dist/chunk-YUXP55T2.js.map +0 -1
  255. package/dist/chunk-YWIKDKHY.js +0 -307
  256. package/dist/chunk-YWIKDKHY.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-ZSUUOEPL.js +0 -731
  260. package/dist/chunk-ZSUUOEPL.js.map +0 -1
  261. package/dist/chunk-ZVJZ72HY.js.map +0 -1
  262. package/dist/circuit-breaker/index.d.ts +0 -197
  263. package/dist/circuit-breaker/index.js +0 -3
  264. package/dist/circuit-breaker/index.js.map +0 -1
  265. package/dist/deadline/index.js +0 -6
  266. package/dist/deadline/index.js.map +0 -1
  267. package/dist/debounce/index.js +0 -3
  268. package/dist/debounce/index.js.map +0 -1
  269. package/dist/extension/react.d.ts +0 -121
  270. package/dist/extension/react.js +0 -75
  271. package/dist/extension/react.js.map +0 -1
  272. package/dist/extension/subs/index.d.ts +0 -45
  273. package/dist/extension/subs/index.js +0 -80
  274. package/dist/extension/subs/index.js.map +0 -1
  275. package/dist/extension/test-utils.d.ts +0 -128
  276. package/dist/extension/test-utils.js +0 -277
  277. package/dist/extension/test-utils.js.map +0 -1
  278. package/dist/fan-out/index.js +0 -5
  279. package/dist/fan-out/index.js.map +0 -1
  280. package/dist/fold-BJPdjc9w.d.ts +0 -435
  281. package/dist/graph-B3L5e0N1.d.ts +0 -923
  282. package/dist/idempotency/adapter.d.ts +0 -62
  283. package/dist/idempotency/adapter.js +0 -4
  284. package/dist/idempotency/adapter.js.map +0 -1
  285. package/dist/idempotent-intake/index.d.ts +0 -188
  286. package/dist/idempotent-intake/index.js +0 -7
  287. package/dist/idempotent-intake/index.js.map +0 -1
  288. package/dist/journal/index.d.ts +0 -373
  289. package/dist/journal/index.js +0 -3
  290. package/dist/journal/index.js.map +0 -1
  291. package/dist/llm-call/index.d.ts +0 -311
  292. package/dist/llm-call/index.js +0 -16
  293. package/dist/llm-call/index.js.map +0 -1
  294. package/dist/machine-BtFWQmmq.d.ts +0 -804
  295. package/dist/monitored-run/index.js +0 -10
  296. package/dist/monitored-run/index.js.map +0 -1
  297. package/dist/paginated-walk/index.d.ts +0 -235
  298. package/dist/paginated-walk/index.js +0 -16
  299. package/dist/paginated-walk/index.js.map +0 -1
  300. package/dist/paginator/index.js +0 -3
  301. package/dist/paginator/index.js.map +0 -1
  302. package/dist/pbt/arbitraries/index.d.ts +0 -136
  303. package/dist/pbt/arbitraries/index.js +0 -3
  304. package/dist/pbt/arbitraries/index.js.map +0 -1
  305. package/dist/pbt/runners/index.d.ts +0 -118
  306. package/dist/pbt/runners/index.js +0 -5
  307. package/dist/pbt/runners/index.js.map +0 -1
  308. package/dist/poller/index.d.ts +0 -352
  309. package/dist/poller/index.js +0 -115
  310. package/dist/poller/index.js.map +0 -1
  311. package/dist/prediction/index.d.ts +0 -131
  312. package/dist/prediction/index.js +0 -4
  313. package/dist/prediction/index.js.map +0 -1
  314. package/dist/protocol-B5YmJr0d.d.ts +0 -45
  315. package/dist/pure/index.d.ts +0 -3
  316. package/dist/pure/index.js +0 -4
  317. package/dist/pure/index.js.map +0 -1
  318. package/dist/rate-limit/index.d.ts +0 -115
  319. package/dist/rate-limit/index.js +0 -3
  320. package/dist/rate-limit/index.js.map +0 -1
  321. package/dist/reconciler/index.d.ts +0 -193
  322. package/dist/reconciler/index.js +0 -164
  323. package/dist/reconciler/index.js.map +0 -1
  324. package/dist/recorder/index.js +0 -3
  325. package/dist/recorder/index.js.map +0 -1
  326. package/dist/reducer-4GNR6b8B.d.ts +0 -447
  327. package/dist/resilient-call/index.d.ts +0 -320
  328. package/dist/resilient-call/index.js +0 -14
  329. package/dist/resilient-call/index.js.map +0 -1
  330. package/dist/retry-to-success/index.d.ts +0 -109
  331. package/dist/retry-to-success/index.js +0 -37
  332. package/dist/retry-to-success/index.js.map +0 -1
  333. package/dist/run-pAcmBpah.d.ts +0 -713
  334. package/dist/runtime-types-CNLmhWif.d.ts +0 -517
  335. package/dist/saga/index.d.ts +0 -241
  336. package/dist/saga/index.js +0 -150
  337. package/dist/saga/index.js.map +0 -1
  338. package/dist/samples-B3My5oh2.d.ts +0 -59
  339. package/dist/snapshot/index.js +0 -5
  340. package/dist/snapshot/index.js.map +0 -1
  341. package/dist/subs/index.d.ts +0 -472
  342. package/dist/subs/index.js +0 -7
  343. package/dist/subs/index.js.map +0 -1
  344. package/dist/throttle/index.d.ts +0 -134
  345. package/dist/throttle/index.js +0 -3
  346. package/dist/throttle/index.js.map +0 -1
  347. package/dist/throttled-input/index.js.map +0 -1
  348. package/dist/token-refresh/index.d.ts +0 -216
  349. package/dist/token-refresh/index.js +0 -6
  350. package/dist/token-refresh/index.js.map +0 -1
  351. package/dist/trace-replay/index.js +0 -6
  352. package/dist/trace-replay/index.js.map +0 -1
  353. package/dist/with-deadline/index.d.ts +0 -197
  354. package/dist/with-deadline/index.js +0 -111
  355. package/dist/with-deadline/index.js.map +0 -1
  356. package/dist/with-resilience/index.d.ts +0 -225
  357. package/dist/with-resilience/index.js +0 -240
  358. package/dist/with-resilience/index.js.map +0 -1
  359. package/dist/with-telemetry/index.d.ts +0 -150
  360. package/dist/with-telemetry/index.js +0 -70
  361. package/dist/with-telemetry/index.js.map +0 -1
  362. package/dist/work-queue/adapter.d.ts +0 -84
  363. package/dist/work-queue/adapter.js +0 -4
  364. package/dist/work-queue/adapter.js.map +0 -1
  365. package/dist/work-queue/ops.d.ts +0 -71
  366. package/dist/work-queue/ops.js +0 -3
  367. package/dist/work-queue/ops.js.map +0 -1
  368. package/dist/workflow/index.d.ts +0 -485
  369. package/dist/workflow/index.js +0 -244
  370. package/dist/workflow/index.js.map +0 -1
  371. /package/dist/{cache → paginate}/index.js.map +0 -0
  372. /package/dist/{chart/inspect → persistence}/index.js.map +0 -0
@@ -1,286 +0,0 @@
1
- /*
2
- * @demlik/tea/chart/inspect — visual defaults for <ChartInspector>.
3
- *
4
- * Same strategy as `@demlik/tea/devtools/styles.css`, deliberately: every class
5
- * is prefixed (here `.tea-ci-*`) so it cannot collide with host styles, and
6
- * every colour is a consumer design token (shadcn slots + Radix accents) so the
7
- * inspector inherits whatever theme is active. Override by re-declaring the
8
- * --tea-ci-* vars on .tea-ci, or pass your own `className`.
9
- *
10
- * The state / log / diff panels are devtools components, so this sheet is a
11
- * COMPANION to devtools' — import both.
12
- *
13
- * Refusal palette — the one thing this sheet says that devtools' does not.
14
- * A refused event is drawn, not hidden, and WHY it is refused is a colour:
15
- * end → --crimson-11 (this state is over)
16
- * out-of-scope → --muted-foreground (not addressed here — the quietest)
17
- * ignored → --amber-11 (addressed here, and deliberately dropped)
18
- * undeclared → --crimson-11 (the totality bypass; should never appear)
19
- */
20
-
21
- .tea-ci {
22
- --tea-ci-fg: var(--foreground);
23
- --tea-ci-muted: var(--muted-foreground);
24
- --tea-ci-border: var(--border);
25
- --tea-ci-accent: var(--teal-11);
26
- --tea-ci-warn: var(--amber-11);
27
- --tea-ci-bad: var(--crimson-11);
28
-
29
- font-family: var(
30
- --font-mono,
31
- "JetBrains Mono",
32
- ui-monospace,
33
- "SF Mono",
34
- Menlo,
35
- Consolas,
36
- monospace
37
- );
38
- font-size: 12px;
39
- color: var(--tea-ci-fg);
40
- display: flex;
41
- flex-direction: column;
42
- gap: 12px;
43
- }
44
-
45
- .tea-ci-boot {
46
- color: var(--tea-ci-muted);
47
- font-style: italic;
48
- padding: 16px;
49
- }
50
-
51
- .tea-ci-head {
52
- display: flex;
53
- align-items: baseline;
54
- gap: 12px;
55
- flex-wrap: wrap;
56
- border-bottom: 1px solid var(--tea-ci-border);
57
- padding-bottom: 8px;
58
- }
59
- .tea-ci-title {
60
- font-weight: 600;
61
- }
62
- .tea-ci-now {
63
- display: inline-flex;
64
- gap: 6px;
65
- align-items: baseline;
66
- }
67
- .tea-ci-phase {
68
- color: var(--tea-ci-muted);
69
- }
70
- .tea-ci-phase::after {
71
- content: " /";
72
- }
73
- .tea-ci-state {
74
- color: var(--tea-ci-accent);
75
- font-weight: 600;
76
- }
77
- .tea-ci-tag {
78
- border: 1px solid var(--tea-ci-border);
79
- border-radius: var(--radius, 0.25rem);
80
- padding: 0 4px;
81
- color: var(--tea-ci-muted);
82
- font-size: 10.5px;
83
- }
84
- .tea-ci-warn {
85
- color: var(--tea-ci-warn);
86
- }
87
-
88
- .tea-ci-panel {
89
- border: 1px solid var(--tea-ci-border);
90
- border-radius: var(--radius, 0.25rem);
91
- padding: 12px 14px;
92
- background: transparent;
93
- min-width: 0;
94
- }
95
- .tea-ci-h {
96
- margin: 0 0 6px;
97
- font-size: 10.5px;
98
- font-weight: 600;
99
- letter-spacing: 0.08em;
100
- text-transform: uppercase;
101
- color: var(--tea-ci-muted);
102
- }
103
-
104
- .tea-ci-cols {
105
- display: grid;
106
- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
107
- gap: 12px;
108
- }
109
-
110
- /* ── the button row ─────────────────────────────────────────────────────── */
111
- .tea-ci-events {
112
- display: grid;
113
- grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
114
- gap: 8px;
115
- }
116
- .tea-ci-ev {
117
- display: flex;
118
- flex-direction: column;
119
- gap: 3px;
120
- min-width: 0;
121
- }
122
- /* THE THING YOU CAN CLICK LOOKS LIKE THE THING YOU CAN CLICK.
123
- *
124
- * This read backwards: a pressable event was plain text on a transparent
125
- * ground while every REFUSED one wore a dashed or dotted box, so on a state
126
- * accepting two of six events the only two you could click were the only two
127
- * that looked like labels. The chrome belongs to the affordance — a button
128
- * raised while it can be pressed, and flat when it cannot. The refusal keeps
129
- * its colour and its reason, which is what says WHY; it just stops being the
130
- * loudest thing in the row. */
131
- .tea-ci-btn {
132
- font: inherit;
133
- text-align: left;
134
- padding: 4px 8px;
135
- border: 1px solid var(--tea-ci-border);
136
- border-radius: var(--radius, 0.25rem);
137
- background: var(--tea-ci-raised, rgba(127, 127, 127, 0.14));
138
- color: var(--tea-ci-fg);
139
- cursor: pointer;
140
- }
141
- .tea-ci-btn:hover:not(:disabled) {
142
- border-color: var(--tea-ci-accent);
143
- color: var(--tea-ci-accent);
144
- }
145
- .tea-ci-btn:disabled {
146
- cursor: not-allowed;
147
- border-color: transparent;
148
- background: transparent;
149
- padding-left: 0;
150
- }
151
- .tea-ci-to {
152
- color: var(--tea-ci-muted);
153
- }
154
- .tea-ci-why {
155
- color: var(--tea-ci-muted);
156
- font-style: italic;
157
- }
158
- /* The sample is a PAYLOAD and payloads wrap. On one line with no wrap and no
159
- * scroll cue, `{"at":3,"reason":"review` was the whole of what a reader could
160
- * see of it — the rest was not hidden, it was invisible. */
161
- .tea-ci-sample {
162
- font: inherit;
163
- resize: vertical;
164
- border: 1px dashed var(--tea-ci-border);
165
- border-radius: var(--radius, 0.25rem);
166
- background: transparent;
167
- color: var(--tea-ci-fg);
168
- padding: 2px 6px;
169
- min-width: 0;
170
- white-space: pre-wrap;
171
- overflow-wrap: anywhere;
172
- overflow-x: auto;
173
- max-height: 8lh;
174
- }
175
-
176
- /* A refused control keeps its NAME and loses its chrome — the reason beneath it
177
- * is the content, the colour is only the cue. */
178
- .tea-ci-ev-end .tea-ci-btn,
179
- .tea-ci-ev-undeclared .tea-ci-btn,
180
- .tea-ci-ev-no-edge .tea-ci-btn {
181
- color: var(--tea-ci-bad);
182
- text-decoration: line-through;
183
- }
184
- .tea-ci-ev-ignored .tea-ci-btn {
185
- color: var(--tea-ci-warn);
186
- text-decoration: line-through;
187
- }
188
- .tea-ci-ev-out-of-scope .tea-ci-btn {
189
- color: var(--tea-ci-muted);
190
- }
191
- .tea-ci-ev-end .tea-ci-why,
192
- .tea-ci-ev-undeclared .tea-ci-why,
193
- .tea-ci-ev-no-edge .tea-ci-why {
194
- color: var(--tea-ci-bad);
195
- }
196
- .tea-ci-ev-ignored .tea-ci-why {
197
- color: var(--tea-ci-warn);
198
- }
199
-
200
- /* ── the diagram ────────────────────────────────────────────────────────── */
201
- .tea-ci-mermaid {
202
- margin: 0;
203
- overflow-x: auto;
204
- white-space: pre;
205
- color: var(--tea-ci-muted);
206
- line-height: 1.5;
207
- }
208
-
209
- /* ── cmds fired ─────────────────────────────────────────────────────────────
210
- * The AFTER panel. The button row above says what an edge DECLARES it would
211
- * fire; this says what the run did fire, so a step that emitted nothing reads
212
- * as a dash rather than as a missing row. The step on the scrubber is the one
213
- * highlighted, because the two are indexed by the same cursor. */
214
- .tea-ci-firelog {
215
- list-style: none;
216
- margin: 0;
217
- padding: 0;
218
- display: flex;
219
- flex-direction: column;
220
- gap: 2px;
221
- max-height: 220px;
222
- overflow-y: auto;
223
- }
224
- .tea-ci-fire {
225
- display: flex;
226
- gap: 10px;
227
- align-items: baseline;
228
- padding: 1px 4px;
229
- border-left: 2px solid transparent;
230
- }
231
- .tea-ci-fire-now {
232
- border-left-color: var(--tea-ci-accent);
233
- }
234
- .tea-ci-fire-by {
235
- color: var(--tea-ci-muted);
236
- min-width: 9em;
237
- }
238
- .tea-ci-fire[data-fired="0"] .tea-ci-fire-cmds {
239
- color: var(--tea-ci-muted);
240
- }
241
- .tea-ci-fire-cmds {
242
- color: var(--tea-ci-accent);
243
- }
244
-
245
- /* ── what this chart form cannot answer ─────────────────────────────────────
246
- * Named, never silently absent: an empty refusal list would read as "nothing is
247
- * refused", which is the one wrong answer worth going out of the way to avoid. */
248
- .tea-ci-omits ul {
249
- margin: 0;
250
- padding-left: 1.1em;
251
- color: var(--tea-ci-muted);
252
- }
253
- .tea-ci-omits b {
254
- color: var(--tea-ci-fg);
255
- }
256
-
257
- /* ── time travel ────────────────────────────────────────────────────────── */
258
- .tea-ci-scrub {
259
- display: flex;
260
- align-items: center;
261
- gap: 10px;
262
- margin-bottom: 10px;
263
- flex-wrap: wrap;
264
- }
265
- .tea-ci-scrub input[type="range"] {
266
- flex: 1 1 160px;
267
- min-width: 120px;
268
- accent-color: var(--tea-ci-accent);
269
- }
270
- .tea-ci-step {
271
- color: var(--tea-ci-muted);
272
- white-space: nowrap;
273
- }
274
- .tea-ci-scrub button {
275
- font: inherit;
276
- padding: 2px 10px;
277
- border: 1px solid var(--tea-ci-border);
278
- border-radius: var(--radius, 0.25rem);
279
- background: transparent;
280
- color: var(--tea-ci-fg);
281
- cursor: pointer;
282
- }
283
- .tea-ci-scrub button:disabled {
284
- cursor: not-allowed;
285
- opacity: 0.5;
286
- }
@@ -1,362 +0,0 @@
1
- import { g as EventPreview, d as ChartRefusal, I as InspectOptions, U as Unanswerable } from '../../reducer-4GNR6b8B.js';
2
- import { P as PhaseStanding, I as ImportedLane, L as LogEntry, T as TaskState } from '../../fold-BJPdjc9w.js';
3
- export { c as Lane, d as LaneChecks, e as LaneCmd, f as LaneErrorFinals, g as LaneHand, h as LaneHands, b as LaneHandsOf, i as LaneInitial, j as LaneMsg, k as LaneOf, l as LanePhaseName, m as LanePhaseOf, n as LanePhaseShape, o as LaneRegion, p as LaneRegions, q as LaneRunChecks, r as LaneRunMsg, s as LaneRunState, t as LaneRuntime, u as LaneShape, v as LaneShapeError, w as LaneSiblings, x as LaneSpec, y as LaneState, z as LaneSuccessFinals, a as LaneTaskChart, L as LaneTaskId, A as LaneTaskShape, B as LaneTasksIn, C as LaneTerminal, P as PhaseAtRest, D as defineLane, E as laneShape, F as runLane } from '../../run-pAcmBpah.js';
4
- import '../../graph-B3L5e0N1.js';
5
- import '../../core-Co0LWkIA.js';
6
- import 'zod';
7
- import '../../samples-B3My5oh2.js';
8
- import '../index.js';
9
-
10
- /** Why a task cannot move. `null` when it can. */
11
- type StuckReason = {
12
- /** It reached an error final: as finished as a shipped task, and lost. */
13
- readonly kind: "tripped";
14
- readonly state: string;
15
- } | {
16
- /**
17
- * A non-final state that routes NOTHING. The chart's totality means this
18
- * cannot happen on a chart that compiled — it is reported rather than
19
- * swallowed because reaching it means a document declared a dead end, and
20
- * a lane parked there will sit forever with no one to say why.
21
- */
22
- readonly kind: "dead-end";
23
- readonly state: string;
24
- } | {
25
- /** The retry budget is spent: the next guarded event is a one-way door. */
26
- readonly kind: "budget-spent";
27
- readonly state: string;
28
- readonly event: string;
29
- readonly landsOn: string;
30
- } | {
31
- /**
32
- * Every event this state routes comes from the OUTSIDE WORLD — no `cmd`
33
- * result and no `sub` will ever arrive here, so the lane advances only
34
- * when a person acts.
35
- *
36
- * This is the fourth kind, and it was missing until a real epic was
37
- * rendered and looked at: a task parked at a human approval reported
38
- * "nothing is stuck — every task can still move", which is true of the
39
- * machine and false of the day. Nothing will happen until someone does
40
- * something, which is precisely what a stuck list is for.
41
- *
42
- * Derived from `from`, never from a state name: `roles` carries the
43
- * consumer's own words for who is owed, in declaration order.
44
- */
45
- readonly kind: "awaiting-world";
46
- readonly state: string;
47
- readonly roles: readonly string[];
48
- readonly events: readonly string[];
49
- };
50
- /** One task of a lane, inspected. */
51
- interface LaneTaskInspection {
52
- readonly task: string;
53
- readonly phase: string;
54
- /** The leaf it is in right now, out of the fold. */
55
- readonly state: string;
56
- /** `false` still running, `true` a success final, `"error"` tripped. */
57
- readonly endPolarity: false | true | "error";
58
- /** The state it will resume to, while it is parked. `undefined` otherwise. */
59
- readonly was?: string;
60
- readonly retries: number;
61
- readonly maxRetries: number;
62
- /**
63
- * The events this state routes, grouped by who sends them — {@link waitingOn},
64
- * read rather than recomputed. `null` at a final. On a lane imported without
65
- * a provenance map it degrades to the events alone, and says so.
66
- */
67
- readonly waitingOn: string | null;
68
- readonly stuck: StuckReason | null;
69
- /** Every event of this task's alphabet, legal or refused, with the reason. */
70
- readonly events: readonly EventPreview[];
71
- /** The refused half of {@link LaneTaskInspection.events}, pulled out. */
72
- readonly refusals: readonly ChartRefusal[];
73
- /** The legal half, as names — the button row. */
74
- readonly legal: readonly string[];
75
- }
76
- /** One phase of a lane, inspected. */
77
- interface LanePhaseInspection {
78
- readonly name: string;
79
- readonly index: number;
80
- readonly standing: PhaseStanding;
81
- /** The phase's tasks, each inspected — running concurrently, all of them. */
82
- readonly tasks: readonly LaneTaskInspection[];
83
- /** The tasks in this phase sitting on an error final. */
84
- readonly tripped: readonly string[];
85
- }
86
- /** A whole lane, as data a UI can build itself from. */
87
- interface LaneInspection {
88
- readonly id?: string;
89
- readonly status: "active" | "done";
90
- /** The terminal it landed on, or `null` while it is still running. */
91
- readonly terminal: string | null;
92
- /** The phase running right now, or `null` once the lane has ended. */
93
- readonly activePhase: string | null;
94
- readonly phases: readonly LanePhaseInspection[];
95
- /** Every task on an error final, lane-wide — fabrika's `context.errors`. */
96
- readonly tripped: readonly string[];
97
- /** Every task that cannot move, and why. The list a human is paged on. */
98
- readonly stuck: readonly {
99
- readonly task: string;
100
- readonly reason: StuckReason;
101
- }[];
102
- }
103
- /**
104
- * A whole lane, inspected at the state its log folds to.
105
- *
106
- * ```ts
107
- * const lane = chartFromWorkflow(JSON.parse(workflowJson));
108
- * const view = inspectLane(lane, parseEventsJsonl(eventsJsonl));
109
- * view.activePhase; // "phase2"
110
- * view.phases[1]?.tasks[0]; // state, waiting-on, legal events, refusals
111
- * view.stuck; // what a human has to go and do
112
- * ```
113
- *
114
- * Takes the LOG rather than a folded state, deliberately: the fold is pure over
115
- * a prefix, so `inspectLane(lane, entries.slice(0, k))` is the exact view at
116
- * step k and time travel costs a `slice`.
117
- */
118
- declare function inspectLane(lane: ImportedLane, entries: readonly LogEntry[], optsFor?: (taskId: string) => InspectOptions): LaneInspection;
119
- /**
120
- * The same view, from the LEAVES rather than from a log.
121
- *
122
- * The two callers differ in exactly one thing and it is which of these doors
123
- * they come through. A reader holding `workflow.json` + `events.jsonl` has no
124
- * states, so it folds — {@link inspectLane}. A reader watching a lane RUN has
125
- * the states and no log worth folding: `runLane` boots each region where its
126
- * sub-issue actually is, so re-deriving the leaves from a log that starts at
127
- * every chart's `initial: true` would answer a different question than the one
128
- * on screen. It hands the leaves it has.
129
- *
130
- * @param optsFor per-task {@link InspectOptions} — the `parts` bag and the
131
- * sample payloads, which only the LIVE door has. Omit it and every preview
132
- * degrades honestly, exactly as `inspectState` does with no bag at all.
133
- */
134
- declare function inspectLaneStates(lane: ImportedLane, states: Readonly<Record<string, TaskState>>, optsFor?: (taskId: string) => InspectOptions): LaneInspection;
135
-
136
- /** A task's retry bookkeeping, when the source carries it. */
137
- interface RetryBudget {
138
- readonly retries: number;
139
- readonly maxRetries: number;
140
- }
141
- /**
142
- * One event control, for one task.
143
- *
144
- * `send` is where the two sources part company, and it is a VALUE rather than a
145
- * flag: the answer to "what would clicking this dispatch" is the msg itself, so
146
- * a source that can answer it answers with the msg, and a source that cannot
147
- * holds the reason. There is no third state and no boolean to get backwards.
148
- */
149
- interface LaneControl {
150
- readonly task: string;
151
- readonly event: string;
152
- /** `"legal"`, or the refusal's kind — the CSS hook, as in `<ChartInspector>`. */
153
- readonly kind: string;
154
- readonly refused: boolean;
155
- /** The refusal's one-line explanation. Present iff refused. */
156
- readonly why?: string;
157
- /** Where this would land and what it would fire — the DECLARED answer. */
158
- readonly outcome: string;
159
- /** The msg a click dispatches, or why this source cannot offer one. */
160
- readonly send: {
161
- readonly type: string;
162
- } | Unanswerable<"dispatch">;
163
- }
164
- /** One task of the lane, at the scrubbed moment. */
165
- interface LaneTaskView {
166
- readonly task: string;
167
- readonly phase: string;
168
- readonly state: string;
169
- readonly endPolarity: false | true | "error";
170
- /**
171
- * The state it resumes to — present ONLY while the task is actually parked.
172
- * A region keeps `was` after it leaves the park, and rendering that made a
173
- * finished task claim a return it cannot make.
174
- */
175
- readonly was?: string;
176
- /** Grouped by who sends them — `report.ts`'s own derivation. `null` at a final. */
177
- readonly waitingOn: string | null;
178
- readonly stuck: StuckReason | null;
179
- /**
180
- * `false` while the task still sits at its chart's entry state.
181
- *
182
- * The editorial rule's input: a task that has not moved has a story one line
183
- * long, and six of them side by side are six copies of one picture.
184
- */
185
- readonly moved: boolean;
186
- readonly budget: RetryBudget | Unanswerable<"retries">;
187
- readonly controls: readonly LaneControl[];
188
- /** This region, drawn at this moment. See {@link draw}. */
189
- readonly diagram: string;
190
- }
191
- /** One phase of the lane, at the scrubbed moment. */
192
- interface LanePhaseView {
193
- readonly name: string;
194
- readonly index: number;
195
- readonly standing: PhaseStanding;
196
- readonly tasks: readonly LaneTaskView[];
197
- /** The tasks in this phase sitting on an error final. */
198
- readonly tripped: readonly string[];
199
- /**
200
- * The tasks worth showing in full, by id — `report.ts`'s rule, applied.
201
- *
202
- * Only the ACTIVE phase expands anything: a finished phase's story is which
203
- * ending each of its tasks reached, and a phase that never started has no
204
- * story at all. Within the active phase, a task that has moved is expanded and
205
- * a task still at its entry state is not — unless NOTHING in the phase has
206
- * moved, in which case the first is the representative, because collapsing
207
- * every task would leave the reader with no picture at all.
208
- */
209
- readonly expanded: readonly string[];
210
- }
211
- /** One step of the run, as the timeline table draws it. */
212
- interface LaneStepView {
213
- readonly index: number;
214
- readonly task: string;
215
- /** The event VERBATIM — the source's own spelling. */
216
- readonly event: string;
217
- readonly from: string;
218
- readonly to: string;
219
- /** The edge that fired, keyed as the drawing keys it. */
220
- readonly edge: string;
221
- /**
222
- * The msg arrived and NOTHING happened — the chart routes no such edge here.
223
- *
224
- * A total chart answers every msg, so a refused one is still a line in the
225
- * log and still a step of the tape; it is just not a WALK. Left unmarked it
226
- * reads as a real transition that happened to land where it started
227
- * (`issue_1 DONE review → review`), which is the one row on the timeline a
228
- * reader would take at face value and be wrong about.
229
- */
230
- readonly refused: boolean;
231
- }
232
- /** A whole lane, at one moment, ready to render. */
233
- interface LaneViewModel {
234
- readonly source: "replay" | "live";
235
- readonly title: string;
236
- readonly status: "active" | "done";
237
- /** The terminal it landed on, or `null` while it is still running. */
238
- readonly terminal: string | null;
239
- readonly activePhase: string | null;
240
- /** Every task on an error final, lane-wide. */
241
- readonly tripped: readonly string[];
242
- /**
243
- * WHICH OF TWELVE THINGS IS STUCK — the reader's first question, answered
244
- * first. `inspectLane`'s own list, with the phase attached so the answer names
245
- * a place as well as a task.
246
- */
247
- readonly stuck: readonly {
248
- readonly task: string;
249
- readonly phase: string;
250
- readonly reason: StuckReason;
251
- }[];
252
- readonly phases: readonly LanePhaseView[];
253
- /** Every step up to the cursor. */
254
- readonly steps: readonly LaneStepView[];
255
- /**
256
- * When each step happened, indexed by step — or why this source cannot say.
257
- *
258
- * A fabrika log stamps every line. A recorded tape carries ORDER and nothing
259
- * else, so the live source answers this with the reason rather than with a
260
- * column of invented times.
261
- */
262
- readonly clock: readonly string[] | Unanswerable<"clock">;
263
- readonly cursor: number;
264
- readonly total: number;
265
- /** `true` while the cursor is behind the present. */
266
- readonly scrubbed: boolean;
267
- /**
268
- * Why THIS SOURCE can dispatch nothing at all — absent on a source that can.
269
- *
270
- * A fact about the source, so it is stated once by the source rather than
271
- * scraped back off whichever control still happens to carry it. Scraping is
272
- * what it used to be, and it went silent on exactly the lane that needed it
273
- * most: on a finished lane every control is refused BY THE CHART, so the one
274
- * sentence explaining why the whole page is dead had nowhere left to live.
275
- */
276
- readonly noDispatch?: Unanswerable<"dispatch">;
277
- }
278
- /** Every region's leaf, keyed by task. */
279
- type LaneLeaves = Readonly<Record<string, TaskState>>;
280
- /**
281
- * What a lane view is fed. Two implementations, {@link replayFeed} and
282
- * {@link liveFeed}, and the component branches on none of it.
283
- */
284
- interface LaneFeed {
285
- readonly kind: "replay" | "live";
286
- readonly lane: ImportedLane;
287
- /** How many steps have happened — the scrubber's extent. */
288
- readonly total: number;
289
- /** Every region's leaf after the first `n` steps. EXACT, on both sides. */
290
- readonly leavesAt: (n: number) => LaneLeaves;
291
- /** The steps, in order. */
292
- readonly steps: readonly LaneStepView[];
293
- /** {@link LaneViewModel.clock}. */
294
- readonly clock: readonly string[] | Unanswerable<"clock">;
295
- /** The retry budget, or why this source cannot state it. */
296
- readonly budget: (task: string, leaves: LaneLeaves) => RetryBudget | Unanswerable<"retries">;
297
- /** The `parts` bag and samples, per task. Absent where there are none. */
298
- readonly optsFor?: (task: string) => InspectOptions;
299
- /**
300
- * What a click dispatches — or why this source offers no click.
301
- *
302
- * The task is a parameter because a lane's dispatch surface is addressed:
303
- * `compile(chart, parts, taskId)` keys the table `${task}.${event}`, so the
304
- * msg a control sends is the region's event WEARING its task. The preview's
305
- * own `msg` is the bare one; namespacing it is the feed's job, once.
306
- */
307
- readonly send: (task: string, preview: EventPreview) => LaneControl["send"];
308
- /** {@link LaneViewModel.noDispatch} — set it iff NO control of this source can be sent. */
309
- readonly noDispatch?: Unanswerable<"dispatch">;
310
- }
311
- /**
312
- * THE FABRIKA CASE: a lane plus the log it actually produced.
313
- *
314
- * Every field is the report module's own function. The scrubber is
315
- * `foldLane(lane, entries.slice(0, n))`, which is not an approximation of the
316
- * state at step n — it is the definition of it.
317
- */
318
- declare function replayFeed(lane: ImportedLane, entries: readonly LogEntry[]): LaneFeed;
319
- /** A running region's leaf: a state name, plus whatever ctx that chart keeps. */
320
- type RunningLeaf = {
321
- readonly type: string;
322
- } & Readonly<Record<string, unknown>>;
323
- /** What {@link liveFeed} needs from the runtime it is watching. */
324
- interface LiveFeedInput {
325
- /**
326
- * The regions after the first `n` recorded msgs, by PURE replay — `init` +
327
- * `update` only, exactly as `<ChartInspector>`'s scrubber does it.
328
- */
329
- readonly regionsAt: (n: number) => Readonly<Record<string, RunningLeaf>>;
330
- /** The recorded tape: `${task}.${event}` per step, in order. */
331
- readonly msgs: readonly {
332
- readonly type: string;
333
- }[];
334
- /** The `parts` bag and samples, per task — the hands the run was given. */
335
- readonly optsFor?: (task: string) => InspectOptions;
336
- }
337
- /**
338
- * THE RUNNING CASE: a lane under `runLane`, watched.
339
- *
340
- * The leaves come off the RUNTIME rather than off a fold, and that distinction
341
- * is load-bearing: `runLane` boots each region where its sub-issue actually is,
342
- * so a fold that started every task at its chart's `initial: true` would draw a
343
- * different lane than the one running.
344
- *
345
- * The steps are derived from the same replay: `from` is the leaf before the msg
346
- * and `to` is the leaf after, both exact, and the edge they walked is
347
- * {@link walkedEdgeKey} — the fold's own answer, so the live drawing thickens
348
- * the same edges the markdown would.
349
- */
350
- declare function liveFeed(lane: ImportedLane, input: LiveFeedInput): LaneFeed;
351
- /**
352
- * The lane at step `cursor`, as one value a view renders straight.
353
- *
354
- * ```ts
355
- * const feed = replayFeed(chartFromWorkflow(document), parseEventsJsonl(log));
356
- * const view = laneView(feed, feed.total); // now
357
- * const then = laneView(feed, 3); // exactly after three events
358
- * ```
359
- */
360
- declare function laneView(feed: LaneFeed, cursor: number, title?: string): LaneViewModel;
361
-
362
- export { type LaneControl, type LaneFeed, type LaneInspection, type LaneLeaves, type LanePhaseInspection, type LanePhaseView, type LaneStepView, type LaneTaskInspection, type LaneTaskView, type LaneViewModel, type LiveFeedInput, type RetryBudget, type RunningLeaf, type StuckReason, inspectLane, inspectLaneStates, laneView, liveFeed, replayFeed };
@@ -1,9 +0,0 @@
1
- export { LaneShapeError, defineLane, inspectLane, inspectLaneStates, laneShape, laneView, liveFeed, replayFeed, runLane } from '../../chunk-CIQG5L42.js';
2
- import '../../chunk-3ZAFFRRB.js';
3
- import '../../chunk-NR7BU22N.js';
4
- import '../../chunk-YWIKDKHY.js';
5
- import '../../chunk-UOC2PL46.js';
6
- import '../../chunk-ZSUUOEPL.js';
7
- import '../../chunk-OOYD44JI.js';
8
- //# sourceMappingURL=index.js.map
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}