@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,311 +0,0 @@
1
- import { C as Cmd } from '../core-Co0LWkIA.js';
2
- import { RunCmd, SucceedMsg, FailMsg, ResilientState } from '../resilient-call/index.js';
3
- import { RetryPolicy } from '../retry-backoff/index.js';
4
- import { DeadlineExceeded, DeadlineSub } from '../deadline/index.js';
5
- export { deadlineSub, subscribeDeadline } from '../deadline/index.js';
6
- import 'zod';
7
- import '../cache/index.js';
8
- import '../types-XS_miRnB.js';
9
- import '../circuit-breaker/index.js';
10
- import '../protocol-B5YmJr0d.js';
11
- import '../rate-limit/index.js';
12
-
13
- /**
14
- * @packageDocumentation
15
- * @demlik/tea/llm-call — `resilient-call` + structured-output parse + a typed
16
- * failure variant, around a purpose-discriminated LLM invocation.
17
- *
18
- * This is the ~60-line `call_llm` handler from the audit-agent seed
19
- * (`interpret.ts` / `effects.ts`) collapsed into the uniform L2 knob: a config
20
- * object, the resilient-call slice it inherits, and one interpret handler that
21
- * assembles messages, binds the structured-output schema for the call's
22
- * `purpose`, invokes the model (retry composed from `../resilient-call`, NOT
23
- * reinvented), parses the output, and RETURNS the enriched resilient settle Msg
24
- * (`resilient_ok` / `resilient_err`) so it re-enters the host reducer and drives
25
- * the inherited succeed/fail → backoff → onTimer loop.
26
- *
27
- * ## What it adds over `../resilient-call`
28
- *
29
- * - **Two DI ports** (the seed's two seams):
30
- * 1. `model: (modelId) => LLM` — the model factory. Tests pass a fake so
31
- * the handler runs end-to-end without touching a real provider; the
32
- * production worker wires `createChatModel(env, …)`.
33
- * 2. `loadMessages: Loader` — the SDK / message loader. The seed lazy-
34
- * imports `@langchain/core/messages` (a top-level `import type` blows
35
- * up the workers test runner); the loader keeps that import lazy and
36
- * stubbable. It produces the `BaseMessage[]` for a given call.
37
- * - **Structured-output parse** — each `purpose` maps to a `Schema` in
38
- * `config.schemas`. The handler binds `model.withStructuredOutput(schema)`
39
- * so the invoke resolves to a typed object; a `Schema.parse` that throws
40
- * becomes a `resilient_err` carrying an `LlmErr` (a parse failure is a
41
- * failure, not a stall — "errors are data"). `withStructuredOutput` is the
42
- * seed's brain-only path; the fake model in tests returns the typed object
43
- * directly.
44
- * - **A typed failure variant** — every failure (model throw, timeout-via-
45
- * retry-exhaustion, schema parse) is surfaced as the `LlmErr` carried on the
46
- * enriched `resilient_err` settle Msg, tagged with the `purpose` so the
47
- * consumer's reducer routes per-stage. The seed dispatched
48
- * `llm_failed{purpose}`; the consumer rebuilds that shape in its reducer arm
49
- * from `m.error: LlmErr`.
50
- *
51
- * ## Inheriting resilient-call by composition (not reinvention)
52
- *
53
- * The retry / backoff lives in `../resilient-call`: `createLlmCall` builds a
54
- * `createResilientCall` knob over the model-invoke port and DELEGATES `init`,
55
- * `attempt`, `succeed`, `fail`, `onTimer`, `subs` to it verbatim — the slice is
56
- * literally resilient-call's slice (the spec's "retry lives here"). There is no
57
- * second backoff implementation here. The handler runs the invoke through the
58
- * resilient-call handler so a transient model failure backs off exactly as a
59
- * resilient HTTP call would; the `purpose`-branch + structured parse wrap the
60
- * port the resilient handler drives.
61
- *
62
- * ## The two non-negotiables (canon, inherited)
63
- *
64
- * - **Durable** — the slice is resilient-call's plain-data slice (a Model
65
- * field). Input carried on the `resilient_run` Cmd is the plain
66
- * `LlmCall` request (purpose + modelId + payload) — no closures.
67
- * - **Replayable** — every transition is a resilient-call verb; the handler
68
- * is the only impurity, and the one clock read is `Date.now()` at the
69
- * effect boundary (inside the handler), exactly as the seed stamped its
70
- * `llm_responded` / `llm_failed` Msgs.
71
- *
72
- * ## Typical wiring
73
- *
74
- * const llm = createLlmCall<MyPurpose, MyOutputs>({
75
- * model: (id) => createChatModel(env, id),
76
- * schemas: { plan: planSchema, report: reportSchema },
77
- * retry: defaultRetryPolicy,
78
- * loadMessages: defaultMessagesLoader,
79
- * });
80
- *
81
- * // in the machine:
82
- * init: () => [{ resilience: llm.init() }, []],
83
- * update: {
84
- * call_llm: (s, m) => lift(s, llm.attempt(s.resilience, m.input, m.at)),
85
- * // `resilient_ok` / `resilient_err` RE-ENTER from `handlers` (the settle
86
- * // Msg the interpret handler returns). Run the inherited verb FIRST so the
87
- * // succeed/fail → backoff → onTimer loop advances, THEN fold the enriched
88
- * // payload (`m.result: LlmOk` / `m.error: LlmErr`) into the host's own
89
- * // state — the enrichment lives in the reducer arm, not the handler.
90
- * resilient_ok: (s, m) => {
91
- * const [slice, cmds] = llm.succeed(s.resilience, m.key, m);
92
- * return [{ ...s, resilience: slice, output: m.result.output }, cmds];
93
- * },
94
- * resilient_err: (s, m) => {
95
- * const [slice, cmds] = llm.fail(s.resilience, m.key, m);
96
- * return [{ ...s, resilience: slice, failure: m.error }, cmds];
97
- * },
98
- * deadline_exceeded: (s, m) => lift(s, llm.onTimer(s.resilience, m)),
99
- * },
100
- * subscriptions: (s) => llm.subs(s.resilience),
101
- * subscribe: { deadline: subscribeDeadline },
102
- * interpret: llm.handlers(),
103
- */
104
-
105
- /**
106
- * The minimal structured-output schema contract: `parse(unknown) => T`, the
107
- * zod-style call the handler uses to validate the model's output before it
108
- * settles `resilient_ok`. A throwing `parse` (the zod contract on invalid
109
- * input) propagates out of `invokeOne` and is caught by the resilient handler,
110
- * which settles `resilient_err` (enriched to `LlmErr`) — a parse failure is a
111
- * failure, never a silent pass. Structural so a real `z.ZodType<T>` satisfies
112
- * it without an import.
113
- */
114
- interface Schema<T> {
115
- /** Validate + narrow `value` to `T`, or throw on mismatch (the zod contract). */
116
- parse(value: unknown): T;
117
- }
118
- /**
119
- * The minimal chat-model contract every model the handler talks to must
120
- * satisfy — the seed's `InjectableChatModel`, trimmed to the one operation
121
- * llm-call drives for brain-only stages:
122
- *
123
- * `withStructuredOutput(schema)` → a runnable whose `invoke(messages)`
124
- * resolves to a typed object matching `schema`.
125
- *
126
- * `BaseChatModel` from `@langchain/core` is the runtime type; this surface
127
- * names only what llm-call calls so a test fake can ignore the rest. Generic
128
- * over the message shape `Msg` so a consumer's loader and model agree on it
129
- * without llm-call inspecting messages.
130
- */
131
- interface Llm<Msg> {
132
- withStructuredOutput<T>(schema: Schema<T>): {
133
- invoke(messages: readonly Msg[]): Promise<T>;
134
- };
135
- }
136
- /**
137
- * Build the `Msg[]` the handler hands to the bound model for a given call. The
138
- * SDK / message-assembly seam — the seed's `buildBaseMessages` + the lazy
139
- * `loadMessages` loader rolled into one injected port. Async because the seed
140
- * lazy-imports the SDK (a top-level `import type` of the langchain messages
141
- * package explodes the workers test runner). Receives the full `LlmCall` so it
142
- * can branch on `purpose` exactly as the seed's `buildBaseMessages` did.
143
- */
144
- type MessageLoader<P extends string, Msg> = (call: LlmCall<P>) => Promise<readonly Msg[]>;
145
- /**
146
- * The model factory — the first DI port. `(modelId) => Llm`. Tests pass a fake
147
- * builder; production wires `createChatModel(env, getModelConfig(id))`. `null`
148
- * means "the host's default model" (the seed's `string | null`).
149
- */
150
- type ModelFactory<Msg> = (modelId: string | null) => Llm<Msg>;
151
- /**
152
- * The llm-call knob. `model` and `schemas` are the load-bearing pair — the
153
- * model factory DI port and the per-purpose structured-output targets; the
154
- * rest is optional, exactly the resilient-call "omit a brick → omit its gate"
155
- * story for `retry`:
156
- *
157
- * - `model` — DI port 1: the model factory.
158
- * - `schemas` — one `Schema` per `Purpose`. The handler binds
159
- * `schemas[call.purpose]` as the structured-output target.
160
- * - `retry` — backoff policy, composed straight into `../resilient-
161
- * call`. Omit it and a model failure is terminal (no
162
- * backoff), exactly as resilient-call with no retry brick.
163
- * - `loadMessages` — DI port 2: the SDK / message loader. Omit it and the
164
- * handler invokes the bound model with `[]` (a degenerate
165
- * but valid call) — provide it to assemble real messages.
166
- *
167
- * `P` is the purpose union (e.g. `"plan" | "report"`); `O` maps each purpose to
168
- * its parsed output type; `Msg` is the model's message shape (threaded through
169
- * the loader + model so llm-call never inspects a message).
170
- */
171
- interface LlmCallConfig<P extends string, O extends Record<P, unknown>, Msg = unknown> {
172
- /** DI port 1 — the model factory. `(modelId) => Llm`. */
173
- readonly model: ModelFactory<Msg>;
174
- /** One structured-output schema per purpose; the parse target the handler binds. */
175
- readonly schemas: {
176
- readonly [K in P]: Schema<O[K]>;
177
- };
178
- /** Backoff policy, composed into `../resilient-call`. Omit → no backoff. */
179
- readonly retry?: RetryPolicy;
180
- /** DI port 2 — the SDK / message loader. Omit → the handler invokes with `[]`. */
181
- readonly loadMessages?: MessageLoader<P, Msg>;
182
- }
183
- /**
184
- * One LLM call request — the resilient-call `input` for this knob, carried on
185
- * the `resilient_run` Cmd as plain data (no closures, invariant 3). Mirrors the
186
- * seed's purpose-discriminated `CallLlmCmd`: a `purpose` selecting the schema +
187
- * prompt assembly, the `model` id, and the opaque per-purpose `payload` the
188
- * loader consumes.
189
- *
190
- * `key` defaults to `purpose` when the consumer calls `attempt(s, purpose, …)`,
191
- * so one in-flight call per purpose is tracked under the resilient-call slice —
192
- * the common single-call-per-stage shape. A consumer that fans out many calls
193
- * of one purpose passes a distinct `key`.
194
- */
195
- interface LlmCall<P extends string> {
196
- /** The stage / schema selector — drives both `schemas[purpose]` and message assembly. */
197
- readonly purpose: P;
198
- /** The model id to invoke; `null` = the host's default model. */
199
- readonly model: string | null;
200
- /** The per-purpose prompt payload the `MessageLoader` consumes. Opaque to the knob. */
201
- readonly payload: unknown;
202
- }
203
- /** The parsed, typed success carried on the `resilient_ok` settle Msg, tagged with its purpose. */
204
- interface LlmOk<P extends string, O extends Record<P, unknown>> {
205
- readonly key: string;
206
- readonly purpose: P;
207
- readonly output: O[P];
208
- }
209
- /** The typed failure variant — every failure path surfaces this, tagged by purpose. */
210
- interface LlmErr<P extends string> {
211
- readonly key: string;
212
- readonly purpose: P;
213
- /** A human-readable cause (model throw, retry-exhaustion, or schema parse). */
214
- readonly reason: string;
215
- /** The original error, carried untouched for the consumer to inspect. */
216
- readonly error: unknown;
217
- }
218
- /**
219
- * The settle Msgs llm-call's handler RETURNS from `interpret` so the substrate
220
- * enqueues them as follow-up Msgs (re-entry) into the host reducer — exactly as
221
- * `../resilient-call` does. They are the resilient-call settle Msgs with the
222
- * payloads ENRICHED to llm-call's typed variants: `result` is the parsed,
223
- * purpose-tagged `LlmOk`; `error` is the typed `LlmErr` (purpose + reason +
224
- * raw). The host wires `resilient_ok` → `succeed` and `resilient_err` → `fail`
225
- * reducer arms (the doc-comment wiring), and folds the enriched payload into its
226
- * own state there — llm-call never forces a Msg vocabulary on the host, and the
227
- * settle Msg drives the inherited succeed/fail → backoff → onTimer loop instead
228
- * of bypassing it.
229
- */
230
- type LlmSucceedMsg<P extends string, O extends Record<P, unknown>> = SucceedMsg<LlmOk<P, O>>;
231
- type LlmFailMsg<P extends string> = Omit<FailMsg, "error"> & {
232
- readonly error: LlmErr<P>;
233
- };
234
- /** The retry / deadline timer Msg — `DeadlineExceeded`, inherited from resilient-call. */
235
- type LlmTimerMsg = DeadlineExceeded;
236
- /**
237
- * The ports the LEGACY detached `handlers(ports)` form takes. Two outbound Msg
238
- * builders the handler hands the typed Ok / Err; the consumer returns its own
239
- * Msg (or `undefined`). KEPT only for `../agent`, which still inherits the
240
- * detached shape; that path does NOT drive the retry loop (it dispatches the
241
- * consumer's Msg directly and never re-enters the resilient settle Msg). New
242
- * consumers use the no-arg `handlers()` form, which RETURNS the settle Msg for
243
- * re-entry and drives the inherited succeed/fail → backoff → onTimer loop.
244
- * `../agent` carries the same retry-loop gap and is fixed separately.
245
- *
246
- * The builders return `M | undefined` — `undefined` is the "dispatch nothing"
247
- * sentinel the detached form checks (`!== undefined`), spelled as `undefined`
248
- * rather than `void` so the union is unambiguous (a `void` member of a union is
249
- * confusing and reads as "may return anything").
250
- */
251
- interface LlmCallPorts<P extends string, O extends Record<P, unknown>, M> {
252
- /** Build the Msg dispatched on a parsed success. Return `undefined` to dispatch nothing. */
253
- readonly onOk: (ok: LlmOk<P, O>) => M | undefined;
254
- /** Build the Msg dispatched on any failure (throw / retry-exhausted / parse). */
255
- readonly onErr: (err: LlmErr<P>) => M | undefined;
256
- }
257
- /**
258
- * The effect Cmd the knob emits: run the LLM call for `key` with `input`. The
259
- * `input` is the plain `LlmCall` request — the handler reads `purpose` /
260
- * `model` / `payload` off it (invariant 3: Cmds are data).
261
- *
262
- * It is `../resilient-call`'s `RunCmd` specialized to the `LlmCall` input — NOT a
263
- * re-declared shape — so the resilient verbs' return tuples (`[State, RunCmd[]]`)
264
- * are this exact type and thread through `attempt` / `succeed` / `fail` /
265
- * `onTimer` with no cast.
266
- */
267
- type LlmRunCmd<P extends string> = RunCmd<LlmCall<P>>;
268
- /**
269
- * Build an llm-call knob from `config`. `rng` is injected for the inherited
270
- * retry jitter (pass a fixed `() => 0.5` in tests to pin backoff; defaults to
271
- * `Math.random`, read only at the resilient-call verb boundary).
272
- *
273
- * Returns the uniform L2 knob contract. The slice + verbs (`init`, `attempt`,
274
- * `succeed`, `fail`, `onTimer`, `subs`) are DELEGATED to a `../resilient-call`
275
- * knob built over the structured-output model-invoke port — no second backoff
276
- * here. `handlers` is the one new piece: the purpose-branching, schema-parsing
277
- * wrapper that returns the enriched resilient settle Msg for re-entry.
278
- *
279
- * `P` is the purpose union, `O` the purpose→output map, `Msg` the model's
280
- * message shape.
281
- */
282
- declare function createLlmCall<P extends string, O extends Record<P, unknown>, Msg = unknown>(config: LlmCallConfig<P, O, Msg>, rng?: () => number): {
283
- init: () => ResilientState<LlmCall<P>, LlmOk<P, O>>;
284
- attempt: (s: ResilientState<LlmCall<P>, LlmOk<P, O>>, input: LlmCall<P>, at: number, key?: string) => readonly [ResilientState<LlmCall<P>, LlmOk<P, O>>, readonly LlmRunCmd<P>[]];
285
- succeed: (s: ResilientState<LlmCall<P>, LlmOk<P, O>>, key: string, msg: LlmSucceedMsg<P, O>) => readonly [ResilientState<LlmCall<P>, LlmOk<P, O>>, readonly LlmRunCmd<P>[]];
286
- fail: (s: ResilientState<LlmCall<P>, LlmOk<P, O>>, key: string, msg: LlmFailMsg<P>) => readonly [ResilientState<LlmCall<P>, LlmOk<P, O>>, readonly LlmRunCmd<P>[]];
287
- onTimer: (s: ResilientState<LlmCall<P>, LlmOk<P, O>>, msg: LlmTimerMsg) => readonly [ResilientState<LlmCall<P>, LlmOk<P, O>>, readonly LlmRunCmd<P>[]];
288
- subs: (s: ResilientState<LlmCall<P>, LlmOk<P, O>>) => readonly DeadlineSub[];
289
- handlers: {
290
- (): {
291
- resilient_run: (cmd: LlmRunCmd<P>) => Promise<LlmSucceedMsg<P, O> | LlmFailMsg<P>>;
292
- };
293
- <M>(ports: LlmCallPorts<P, O, M>): {
294
- resilient_run: (cmd: LlmRunCmd<P>, ctx: {
295
- waitUntil(p: Promise<unknown>): void;
296
- dispatch(msg: M): unknown;
297
- }) => void;
298
- };
299
- };
300
- invokeOne: (input: LlmCall<P>) => Promise<LlmOk<P, O>>;
301
- };
302
- /**
303
- * Lift a knob result `[slice, cmds]` into a host `[State, cmds]` where the
304
- * slice lives at `state.resilience` — the same convenience `../resilient-call`
305
- * ships, re-typed for the llm-call slice so consumers wire one import. Pure.
306
- */
307
- declare function liftLlmCall<S extends {
308
- resilience: ResilientState<LlmCall<P>, LlmOk<P, O>>;
309
- }, P extends string, O extends Record<P, unknown>, C extends Cmd>(state: S, result: readonly [ResilientState<LlmCall<P>, LlmOk<P, O>>, readonly C[]]): readonly [S, readonly C[]];
310
-
311
- export { DeadlineExceeded, DeadlineSub, type Llm, type LlmCall, type LlmCallConfig, type LlmCallPorts, type LlmErr, type LlmFailMsg, type LlmOk, type LlmRunCmd, type LlmSucceedMsg, type LlmTimerMsg, type MessageLoader, type ModelFactory, ResilientState, type Schema, createLlmCall, liftLlmCall };
@@ -1,16 +0,0 @@
1
- export { createLlmCall, liftLlmCall } from '../chunk-COS5MSTO.js';
2
- import '../chunk-4KLG43GY.js';
3
- import '../chunk-JELSZN25.js';
4
- import '../chunk-RH5EFRVJ.js';
5
- export { deadlineSub, subscribeDeadline } from '../chunk-DGE4PV4A.js';
6
- import '../chunk-Q2UM7BXU.js';
7
- import '../chunk-S2EGRPCM.js';
8
- import '../chunk-UF4MZSLT.js';
9
- import '../chunk-G5E74IJB.js';
10
- import '../chunk-VYFAZN3F.js';
11
- import '../chunk-2YFLOCWX.js';
12
- import '../chunk-ZJ5AOYBH.js';
13
- import '../chunk-ZSUUOEPL.js';
14
- import '../chunk-OOYD44JI.js';
15
- //# sourceMappingURL=index.js.map
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}