@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,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,361 +0,0 @@
1
- import { g as EventPreview, d as ChartRefusal, I as InspectOptions, U as Unanswerable } from '../../reducer-BqyoVyBG.js';
2
- import { P as PhaseStanding, I as ImportedLane, L as LogEntry, T as TaskState } from '../../fold-Blbhru48.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-BVeqJDBF.js';
4
- import '../../graph-CcjWZVrd.js';
5
- import '../../core-Bjc0bS8j.js';
6
- import '../../samples-DCt6nF8H.js';
7
- import '../index.js';
8
-
9
- /** Why a task cannot move. `null` when it can. */
10
- type StuckReason = {
11
- /** It reached an error final: as finished as a shipped task, and lost. */
12
- readonly kind: "tripped";
13
- readonly state: string;
14
- } | {
15
- /**
16
- * A non-final state that routes NOTHING. The chart's totality means this
17
- * cannot happen on a chart that compiled — it is reported rather than
18
- * swallowed because reaching it means a document declared a dead end, and
19
- * a lane parked there will sit forever with no one to say why.
20
- */
21
- readonly kind: "dead-end";
22
- readonly state: string;
23
- } | {
24
- /** The retry budget is spent: the next guarded event is a one-way door. */
25
- readonly kind: "budget-spent";
26
- readonly state: string;
27
- readonly event: string;
28
- readonly landsOn: string;
29
- } | {
30
- /**
31
- * Every event this state routes comes from the OUTSIDE WORLD — no `cmd`
32
- * result and no `sub` will ever arrive here, so the lane advances only
33
- * when a person acts.
34
- *
35
- * This is the fourth kind, and it was missing until a real epic was
36
- * rendered and looked at: a task parked at a human approval reported
37
- * "nothing is stuck — every task can still move", which is true of the
38
- * machine and false of the day. Nothing will happen until someone does
39
- * something, which is precisely what a stuck list is for.
40
- *
41
- * Derived from `from`, never from a state name: `roles` carries the
42
- * consumer's own words for who is owed, in declaration order.
43
- */
44
- readonly kind: "awaiting-world";
45
- readonly state: string;
46
- readonly roles: readonly string[];
47
- readonly events: readonly string[];
48
- };
49
- /** One task of a lane, inspected. */
50
- interface LaneTaskInspection {
51
- readonly task: string;
52
- readonly phase: string;
53
- /** The leaf it is in right now, out of the fold. */
54
- readonly state: string;
55
- /** `false` still running, `true` a success final, `"error"` tripped. */
56
- readonly endPolarity: false | true | "error";
57
- /** The state it will resume to, while it is parked. `undefined` otherwise. */
58
- readonly was?: string;
59
- readonly retries: number;
60
- readonly maxRetries: number;
61
- /**
62
- * The events this state routes, grouped by who sends them — {@link waitingOn},
63
- * read rather than recomputed. `null` at a final. On a lane imported without
64
- * a provenance map it degrades to the events alone, and says so.
65
- */
66
- readonly waitingOn: string | null;
67
- readonly stuck: StuckReason | null;
68
- /** Every event of this task's alphabet, legal or refused, with the reason. */
69
- readonly events: readonly EventPreview[];
70
- /** The refused half of {@link LaneTaskInspection.events}, pulled out. */
71
- readonly refusals: readonly ChartRefusal[];
72
- /** The legal half, as names — the button row. */
73
- readonly legal: readonly string[];
74
- }
75
- /** One phase of a lane, inspected. */
76
- interface LanePhaseInspection {
77
- readonly name: string;
78
- readonly index: number;
79
- readonly standing: PhaseStanding;
80
- /** The phase's tasks, each inspected — running concurrently, all of them. */
81
- readonly tasks: readonly LaneTaskInspection[];
82
- /** The tasks in this phase sitting on an error final. */
83
- readonly tripped: readonly string[];
84
- }
85
- /** A whole lane, as data a UI can build itself from. */
86
- interface LaneInspection {
87
- readonly id?: string;
88
- readonly status: "active" | "done";
89
- /** The terminal it landed on, or `null` while it is still running. */
90
- readonly terminal: string | null;
91
- /** The phase running right now, or `null` once the lane has ended. */
92
- readonly activePhase: string | null;
93
- readonly phases: readonly LanePhaseInspection[];
94
- /** Every task on an error final, lane-wide — fabrika's `context.errors`. */
95
- readonly tripped: readonly string[];
96
- /** Every task that cannot move, and why. The list a human is paged on. */
97
- readonly stuck: readonly {
98
- readonly task: string;
99
- readonly reason: StuckReason;
100
- }[];
101
- }
102
- /**
103
- * A whole lane, inspected at the state its log folds to.
104
- *
105
- * ```ts
106
- * const lane = chartFromWorkflow(JSON.parse(workflowJson));
107
- * const view = inspectLane(lane, parseEventsJsonl(eventsJsonl));
108
- * view.activePhase; // "phase2"
109
- * view.phases[1]?.tasks[0]; // state, waiting-on, legal events, refusals
110
- * view.stuck; // what a human has to go and do
111
- * ```
112
- *
113
- * Takes the LOG rather than a folded state, deliberately: the fold is pure over
114
- * a prefix, so `inspectLane(lane, entries.slice(0, k))` is the exact view at
115
- * step k and time travel costs a `slice`.
116
- */
117
- declare function inspectLane(lane: ImportedLane, entries: readonly LogEntry[], optsFor?: (taskId: string) => InspectOptions): LaneInspection;
118
- /**
119
- * The same view, from the LEAVES rather than from a log.
120
- *
121
- * The two callers differ in exactly one thing and it is which of these doors
122
- * they come through. A reader holding `workflow.json` + `events.jsonl` has no
123
- * states, so it folds — {@link inspectLane}. A reader watching a lane RUN has
124
- * the states and no log worth folding: `runLane` boots each region where its
125
- * sub-issue actually is, so re-deriving the leaves from a log that starts at
126
- * every chart's `initial: true` would answer a different question than the one
127
- * on screen. It hands the leaves it has.
128
- *
129
- * @param optsFor per-task {@link InspectOptions} — the `parts` bag and the
130
- * sample payloads, which only the LIVE door has. Omit it and every preview
131
- * degrades honestly, exactly as `inspectState` does with no bag at all.
132
- */
133
- declare function inspectLaneStates(lane: ImportedLane, states: Readonly<Record<string, TaskState>>, optsFor?: (taskId: string) => InspectOptions): LaneInspection;
134
-
135
- /** A task's retry bookkeeping, when the source carries it. */
136
- interface RetryBudget {
137
- readonly retries: number;
138
- readonly maxRetries: number;
139
- }
140
- /**
141
- * One event control, for one task.
142
- *
143
- * `send` is where the two sources part company, and it is a VALUE rather than a
144
- * flag: the answer to "what would clicking this dispatch" is the msg itself, so
145
- * a source that can answer it answers with the msg, and a source that cannot
146
- * holds the reason. There is no third state and no boolean to get backwards.
147
- */
148
- interface LaneControl {
149
- readonly task: string;
150
- readonly event: string;
151
- /** `"legal"`, or the refusal's kind — the CSS hook, as in `<ChartInspector>`. */
152
- readonly kind: string;
153
- readonly refused: boolean;
154
- /** The refusal's one-line explanation. Present iff refused. */
155
- readonly why?: string;
156
- /** Where this would land and what it would fire — the DECLARED answer. */
157
- readonly outcome: string;
158
- /** The msg a click dispatches, or why this source cannot offer one. */
159
- readonly send: {
160
- readonly type: string;
161
- } | Unanswerable<"dispatch">;
162
- }
163
- /** One task of the lane, at the scrubbed moment. */
164
- interface LaneTaskView {
165
- readonly task: string;
166
- readonly phase: string;
167
- readonly state: string;
168
- readonly endPolarity: false | true | "error";
169
- /**
170
- * The state it resumes to — present ONLY while the task is actually parked.
171
- * A region keeps `was` after it leaves the park, and rendering that made a
172
- * finished task claim a return it cannot make.
173
- */
174
- readonly was?: string;
175
- /** Grouped by who sends them — `report.ts`'s own derivation. `null` at a final. */
176
- readonly waitingOn: string | null;
177
- readonly stuck: StuckReason | null;
178
- /**
179
- * `false` while the task still sits at its chart's entry state.
180
- *
181
- * The editorial rule's input: a task that has not moved has a story one line
182
- * long, and six of them side by side are six copies of one picture.
183
- */
184
- readonly moved: boolean;
185
- readonly budget: RetryBudget | Unanswerable<"retries">;
186
- readonly controls: readonly LaneControl[];
187
- /** This region, drawn at this moment. See {@link draw}. */
188
- readonly diagram: string;
189
- }
190
- /** One phase of the lane, at the scrubbed moment. */
191
- interface LanePhaseView {
192
- readonly name: string;
193
- readonly index: number;
194
- readonly standing: PhaseStanding;
195
- readonly tasks: readonly LaneTaskView[];
196
- /** The tasks in this phase sitting on an error final. */
197
- readonly tripped: readonly string[];
198
- /**
199
- * The tasks worth showing in full, by id — `report.ts`'s rule, applied.
200
- *
201
- * Only the ACTIVE phase expands anything: a finished phase's story is which
202
- * ending each of its tasks reached, and a phase that never started has no
203
- * story at all. Within the active phase, a task that has moved is expanded and
204
- * a task still at its entry state is not — unless NOTHING in the phase has
205
- * moved, in which case the first is the representative, because collapsing
206
- * every task would leave the reader with no picture at all.
207
- */
208
- readonly expanded: readonly string[];
209
- }
210
- /** One step of the run, as the timeline table draws it. */
211
- interface LaneStepView {
212
- readonly index: number;
213
- readonly task: string;
214
- /** The event VERBATIM — the source's own spelling. */
215
- readonly event: string;
216
- readonly from: string;
217
- readonly to: string;
218
- /** The edge that fired, keyed as the drawing keys it. */
219
- readonly edge: string;
220
- /**
221
- * The msg arrived and NOTHING happened — the chart routes no such edge here.
222
- *
223
- * A total chart answers every msg, so a refused one is still a line in the
224
- * log and still a step of the tape; it is just not a WALK. Left unmarked it
225
- * reads as a real transition that happened to land where it started
226
- * (`issue_1 DONE review → review`), which is the one row on the timeline a
227
- * reader would take at face value and be wrong about.
228
- */
229
- readonly refused: boolean;
230
- }
231
- /** A whole lane, at one moment, ready to render. */
232
- interface LaneViewModel {
233
- readonly source: "replay" | "live";
234
- readonly title: string;
235
- readonly status: "active" | "done";
236
- /** The terminal it landed on, or `null` while it is still running. */
237
- readonly terminal: string | null;
238
- readonly activePhase: string | null;
239
- /** Every task on an error final, lane-wide. */
240
- readonly tripped: readonly string[];
241
- /**
242
- * WHICH OF TWELVE THINGS IS STUCK — the reader's first question, answered
243
- * first. `inspectLane`'s own list, with the phase attached so the answer names
244
- * a place as well as a task.
245
- */
246
- readonly stuck: readonly {
247
- readonly task: string;
248
- readonly phase: string;
249
- readonly reason: StuckReason;
250
- }[];
251
- readonly phases: readonly LanePhaseView[];
252
- /** Every step up to the cursor. */
253
- readonly steps: readonly LaneStepView[];
254
- /**
255
- * When each step happened, indexed by step — or why this source cannot say.
256
- *
257
- * A fabrika log stamps every line. A recorded tape carries ORDER and nothing
258
- * else, so the live source answers this with the reason rather than with a
259
- * column of invented times.
260
- */
261
- readonly clock: readonly string[] | Unanswerable<"clock">;
262
- readonly cursor: number;
263
- readonly total: number;
264
- /** `true` while the cursor is behind the present. */
265
- readonly scrubbed: boolean;
266
- /**
267
- * Why THIS SOURCE can dispatch nothing at all — absent on a source that can.
268
- *
269
- * A fact about the source, so it is stated once by the source rather than
270
- * scraped back off whichever control still happens to carry it. Scraping is
271
- * what it used to be, and it went silent on exactly the lane that needed it
272
- * most: on a finished lane every control is refused BY THE CHART, so the one
273
- * sentence explaining why the whole page is dead had nowhere left to live.
274
- */
275
- readonly noDispatch?: Unanswerable<"dispatch">;
276
- }
277
- /** Every region's leaf, keyed by task. */
278
- type LaneLeaves = Readonly<Record<string, TaskState>>;
279
- /**
280
- * What a lane view is fed. Two implementations, {@link replayFeed} and
281
- * {@link liveFeed}, and the component branches on none of it.
282
- */
283
- interface LaneFeed {
284
- readonly kind: "replay" | "live";
285
- readonly lane: ImportedLane;
286
- /** How many steps have happened — the scrubber's extent. */
287
- readonly total: number;
288
- /** Every region's leaf after the first `n` steps. EXACT, on both sides. */
289
- readonly leavesAt: (n: number) => LaneLeaves;
290
- /** The steps, in order. */
291
- readonly steps: readonly LaneStepView[];
292
- /** {@link LaneViewModel.clock}. */
293
- readonly clock: readonly string[] | Unanswerable<"clock">;
294
- /** The retry budget, or why this source cannot state it. */
295
- readonly budget: (task: string, leaves: LaneLeaves) => RetryBudget | Unanswerable<"retries">;
296
- /** The `parts` bag and samples, per task. Absent where there are none. */
297
- readonly optsFor?: (task: string) => InspectOptions;
298
- /**
299
- * What a click dispatches — or why this source offers no click.
300
- *
301
- * The task is a parameter because a lane's dispatch surface is addressed:
302
- * `compile(chart, parts, taskId)` keys the table `${task}.${event}`, so the
303
- * msg a control sends is the region's event WEARING its task. The preview's
304
- * own `msg` is the bare one; namespacing it is the feed's job, once.
305
- */
306
- readonly send: (task: string, preview: EventPreview) => LaneControl["send"];
307
- /** {@link LaneViewModel.noDispatch} — set it iff NO control of this source can be sent. */
308
- readonly noDispatch?: Unanswerable<"dispatch">;
309
- }
310
- /**
311
- * THE FABRIKA CASE: a lane plus the log it actually produced.
312
- *
313
- * Every field is the report module's own function. The scrubber is
314
- * `foldLane(lane, entries.slice(0, n))`, which is not an approximation of the
315
- * state at step n — it is the definition of it.
316
- */
317
- declare function replayFeed(lane: ImportedLane, entries: readonly LogEntry[]): LaneFeed;
318
- /** A running region's leaf: a state name, plus whatever ctx that chart keeps. */
319
- type RunningLeaf = {
320
- readonly type: string;
321
- } & Readonly<Record<string, unknown>>;
322
- /** What {@link liveFeed} needs from the runtime it is watching. */
323
- interface LiveFeedInput {
324
- /**
325
- * The regions after the first `n` recorded msgs, by PURE replay — `init` +
326
- * `update` only, exactly as `<ChartInspector>`'s scrubber does it.
327
- */
328
- readonly regionsAt: (n: number) => Readonly<Record<string, RunningLeaf>>;
329
- /** The recorded tape: `${task}.${event}` per step, in order. */
330
- readonly msgs: readonly {
331
- readonly type: string;
332
- }[];
333
- /** The `parts` bag and samples, per task — the hands the run was given. */
334
- readonly optsFor?: (task: string) => InspectOptions;
335
- }
336
- /**
337
- * THE RUNNING CASE: a lane under `runLane`, watched.
338
- *
339
- * The leaves come off the RUNTIME rather than off a fold, and that distinction
340
- * is load-bearing: `runLane` boots each region where its sub-issue actually is,
341
- * so a fold that started every task at its chart's `initial: true` would draw a
342
- * different lane than the one running.
343
- *
344
- * The steps are derived from the same replay: `from` is the leaf before the msg
345
- * and `to` is the leaf after, both exact, and the edge they walked is
346
- * {@link walkedEdgeKey} — the fold's own answer, so the live drawing thickens
347
- * the same edges the markdown would.
348
- */
349
- declare function liveFeed(lane: ImportedLane, input: LiveFeedInput): LaneFeed;
350
- /**
351
- * The lane at step `cursor`, as one value a view renders straight.
352
- *
353
- * ```ts
354
- * const feed = replayFeed(chartFromWorkflow(document), parseEventsJsonl(log));
355
- * const view = laneView(feed, feed.total); // now
356
- * const then = laneView(feed, 3); // exactly after three events
357
- * ```
358
- */
359
- declare function laneView(feed: LaneFeed, cursor: number, title?: string): LaneViewModel;
360
-
361
- 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-ZCL7SCBK.js';
2
- import '../../chunk-ZD6PNZBK.js';
3
- import '../../chunk-5KJKJOFC.js';
4
- import '../../chunk-E6GEDSF4.js';
5
- import '../../chunk-UOC2PL46.js';
6
- import '../../chunk-5EHLEUTL.js';
7
- import '../../chunk-B5VXOFMZ.js';
8
- //# sourceMappingURL=index.js.map
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}