@demlik/tea 0.13.0 → 0.15.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.
- package/README.md +11 -9
- package/dist/agent/index.d.ts +638 -45
- package/dist/agent/index.js +9 -19
- package/dist/{chunk-RH5EFRVJ.js → chunk-22POWGFA.js} +31 -5
- package/dist/chunk-22POWGFA.js.map +1 -0
- package/dist/{chunk-DMYGQB4O.js → chunk-3B5X7SBB.js} +23 -6
- package/dist/chunk-3B5X7SBB.js.map +1 -0
- package/dist/chunk-66PY5WYF.js +1816 -0
- package/dist/chunk-66PY5WYF.js.map +1 -0
- package/dist/{chunk-25LBDCBC.js → chunk-6IQPODUF.js} +2 -2
- package/dist/{chunk-25LBDCBC.js.map → chunk-6IQPODUF.js.map} +1 -1
- package/dist/chunk-AYS5N6WY.js +505 -0
- package/dist/chunk-AYS5N6WY.js.map +1 -0
- package/dist/{chunk-EWJP3YYP.js → chunk-HWVW4AXC.js} +3 -3
- package/dist/chunk-HWVW4AXC.js.map +1 -0
- package/dist/{chunk-O4MVQTEJ.js → chunk-L3TND7LA.js} +20 -16
- package/dist/chunk-L3TND7LA.js.map +1 -0
- package/dist/{chunk-J6527VRQ.js → chunk-LFZUK6J2.js} +3 -3
- package/dist/chunk-LFZUK6J2.js.map +1 -0
- package/dist/{chunk-D736QUGF.js → chunk-MYXFNWAJ.js} +4 -5
- package/dist/chunk-MYXFNWAJ.js.map +1 -0
- package/dist/{chunk-K575PT4S.js → chunk-PR6TB3BL.js} +15 -4
- package/dist/chunk-PR6TB3BL.js.map +1 -0
- package/dist/{chunk-YUXP55T2.js → chunk-Q5CQTBFA.js} +57 -7
- package/dist/chunk-Q5CQTBFA.js.map +1 -0
- package/dist/{batch-window/index.js → chunk-QPEVCJ5Q.js} +4 -8
- package/dist/chunk-QPEVCJ5Q.js.map +1 -0
- package/dist/chunk-TCLBCERH.js +1480 -0
- package/dist/chunk-TCLBCERH.js.map +1 -0
- package/dist/{chunk-FV3Z5MBE.js → chunk-TXN2KFHF.js} +14 -4
- package/dist/chunk-TXN2KFHF.js.map +1 -0
- package/dist/{chunk-MUUROGIH.js → chunk-V46HSVCK.js} +62 -12
- package/dist/chunk-V46HSVCK.js.map +1 -0
- package/dist/{chunk-Q2UM7BXU.js → chunk-VBDU4JL6.js} +2 -2
- package/dist/chunk-VBDU4JL6.js.map +1 -0
- package/dist/{chunk-ZVJZ72HY.js → chunk-VTQI2NHP.js} +25 -11
- package/dist/chunk-VTQI2NHP.js.map +1 -0
- package/dist/{core-Co0LWkIA.d.ts → core-DnzqWy6u.d.ts} +72 -23
- package/dist/devtools/index.d.ts +2 -2
- package/dist/devtools/index.js +207 -2
- package/dist/devtools/index.js.map +1 -1
- package/dist/do/index.d.ts +43 -29
- package/dist/do/index.js +36 -25
- package/dist/do/index.js.map +1 -1
- package/dist/{durable-effects-C6uwzjb5.d.ts → durable-effects-CWzA-o2B.d.ts} +2 -2
- package/dist/extension/index.d.ts +300 -3
- package/dist/extension/index.js +596 -5
- package/dist/extension/index.js.map +1 -1
- package/dist/flow/index.d.ts +1284 -0
- package/dist/flow/index.js +732 -0
- package/dist/flow/index.js.map +1 -0
- package/dist/idempotency/index.d.ts +90 -116
- package/dist/idempotency/index.js +4 -1
- package/dist/index-Bc40JWVl.d.ts +131 -0
- package/dist/{batch-window/index.d.ts → index-C2DwkjlP.d.ts} +7 -12
- package/dist/index-CA_7I5g9.d.ts +806 -0
- package/dist/index-CSyMYDAB.d.ts +69 -0
- package/dist/{fan-out/index.d.ts → index-CuNO9m8i.d.ts} +7 -9
- package/dist/{debounce/index.d.ts → index-DHSUmQTR.d.ts} +7 -7
- package/dist/{recorder/index.d.ts → index-DrIRb_Ch.d.ts} +4 -7
- package/dist/index-HSYgG2Yt.d.ts +380 -0
- package/dist/{monitored-run/index.d.ts → index-KXqTRJyb.d.ts} +37 -13
- package/dist/{snapshot/index.d.ts → index-ZCMhnVKN.d.ts} +15 -78
- package/dist/index.d.ts +771 -6
- package/dist/index.js +1 -2
- package/dist/jev/index.d.ts +646 -0
- package/dist/jev/index.js +485 -0
- package/dist/jev/index.js.map +1 -0
- package/dist/machine-DGlPWCWI.d.ts +1781 -0
- package/dist/machine-viz/index.d.ts +1 -1
- package/dist/machine-viz/index.js +12 -5
- package/dist/machine-viz/index.js.map +1 -1
- package/dist/mem/index.d.ts +18 -3
- package/dist/mem/index.js +22 -2
- package/dist/mem/index.js.map +1 -1
- package/dist/node/index.d.ts +104 -6
- package/dist/node/index.js +132 -9
- package/dist/node/index.js.map +1 -1
- package/dist/{paginator → paginate}/index.d.ts +140 -6
- package/dist/paginate/index.js +7 -0
- package/dist/parity/index.d.ts +4 -10
- package/dist/parity/index.js +4 -7
- package/dist/parity/index.js.map +1 -1
- package/dist/pbt/index.d.ts +247 -5
- package/dist/pbt/index.js +124 -5
- package/dist/pbt/index.js.map +1 -1
- package/dist/{trace-replay → persistence}/index.d.ts +7 -5
- package/dist/persistence/index.js +6 -0
- package/dist/{protocol-B5YmJr0d.d.ts → protocol-D8VbH-VH.d.ts} +10 -1
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +1 -2
- package/dist/react/index.js.map +1 -1
- package/dist/resilience/index.d.ts +744 -0
- package/dist/resilience/index.js +657 -0
- package/dist/resilience/index.js.map +1 -0
- package/dist/retry-backoff/index.d.ts +3 -2
- package/dist/retry-backoff/index.js +1 -1
- package/dist/runtime-types-CMF13BBh.d.ts +998 -0
- package/dist/testing/index.d.ts +147 -3
- package/dist/testing/index.js +95 -3
- package/dist/testing/index.js.map +1 -1
- package/dist/{throttled-input → timing}/index.d.ts +143 -12
- package/dist/{throttled-input → timing}/index.js +57 -12
- package/dist/timing/index.js.map +1 -0
- package/dist/{types-XS_miRnB.d.ts → types-BseNPIhr.d.ts} +1 -1
- package/dist/work-queue/index.d.ts +130 -54
- package/dist/work-queue/index.js +3 -2
- package/dist/work-queue/index.js.map +1 -1
- package/package.json +45 -218
- package/dist/authed-call/index.d.ts +0 -120
- package/dist/authed-call/index.js +0 -134
- package/dist/authed-call/index.js.map +0 -1
- package/dist/await-terminal/index.d.ts +0 -101
- package/dist/await-terminal/index.js +0 -76
- package/dist/await-terminal/index.js.map +0 -1
- package/dist/batch-window/index.js.map +0 -1
- package/dist/cache/index.d.ts +0 -152
- package/dist/cache/index.js +0 -8
- package/dist/chart/index.d.ts +0 -218
- package/dist/chart/index.js +0 -16
- package/dist/chart/index.js.map +0 -1
- package/dist/chart/inspect/index.d.ts +0 -86
- package/dist/chart/inspect/index.js +0 -5
- package/dist/chart/inspect/react.d.ts +0 -113
- package/dist/chart/inspect/react.js +0 -11
- package/dist/chart/inspect/react.js.map +0 -1
- package/dist/chart/inspect/styles.css +0 -286
- package/dist/chart/lane/index.d.ts +0 -362
- package/dist/chart/lane/index.js +0 -9
- package/dist/chart/lane/index.js.map +0 -1
- package/dist/chart/lane/react.d.ts +0 -84
- package/dist/chart/lane/react.js +0 -559
- package/dist/chart/lane/react.js.map +0 -1
- package/dist/chart/lane/server.d.ts +0 -148
- package/dist/chart/lane/server.js +0 -209
- package/dist/chart/lane/server.js.map +0 -1
- package/dist/chart/lane/styles.css +0 -498
- package/dist/chart/lane/viewer/assets/abnfDiagram-N423BO3Z-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/architectureDiagram-T3A2C74G-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/blockDiagram-VBNYF7ZC-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/c4Diagram-5PPSVZJV-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/chunk-2GRJ4B5K-HdDf8SI3.js +0 -1
- package/dist/chart/lane/viewer/assets/chunk-5RXB4S5H-CcNtpUd7.js +0 -231
- package/dist/chart/lane/viewer/assets/chunk-5VM5RSS4-BP4fRS_5.js +0 -15
- package/dist/chart/lane/viewer/assets/chunk-KBJHAD2P-DZOw7xU6.js +0 -1
- package/dist/chart/lane/viewer/assets/chunk-NSK5VX7P-CBCyTZMs.js +0 -128
- package/dist/chart/lane/viewer/assets/classDiagram-JCYQIIEL-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/classDiagram-v2-OCEON4UE-D4uAiFr8.js +0 -206
- package/dist/chart/lane/viewer/assets/cose-bilkent-JH36ORCC-DOwCrGXH.js +0 -1
- package/dist/chart/lane/viewer/assets/cynefinDiagram-MW4NZA55-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/dagre-K_PewWfS.js +0 -1
- package/dist/chart/lane/viewer/assets/dagre-VZM6K2ZE-831qZcA8.js +0 -4
- package/dist/chart/lane/viewer/assets/diagram-7IWD3JNH-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/diagram-B4RE2ZJO-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/diagram-LBJQPF4R-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/diagram-Q27KOJAE-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/diagram-UB23O5K3-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/ebnfDiagram-BXEA7PRR-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/erDiagram-JOGREHBK-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/flowDiagram-UKHOOZJN-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/ganttDiagram-PKOTCBZU-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/gitGraphDiagram-DS77QQ5N-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/index-9SkH5NA3.css +0 -1
- package/dist/chart/lane/viewer/assets/index-Bgt4sXpW.js +0 -195
- package/dist/chart/lane/viewer/assets/infoDiagram-6WML65LV-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/ishikawaDiagram-WSZJBQD7-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/journeyDiagram-NVQOT4AX-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/kanban-definition-27J2QSJJ-G7PaPzy-.js +0 -89
- package/dist/chart/lane/viewer/assets/katex-DOwCrGXH.js +0 -1
- package/dist/chart/lane/viewer/assets/mindmap-definition-FAOFIHXS-CGj9nrVk.js +0 -96
- package/dist/chart/lane/viewer/assets/path-fybaL0A-.js +0 -1
- package/dist/chart/lane/viewer/assets/pegDiagram-VL7TDLO6-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/pieDiagram-7S7Q4E2Y-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/quadrantDiagram-CIZ2JOQS-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/railroadDiagram-AXF67PYL-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/requirementDiagram-LRYGKXZP-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/sankeyDiagram-W5VNT64P-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/sequenceDiagram-SI44F4Z6-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/stateDiagram-OKZ733FA-B_88AzBS.js +0 -1
- package/dist/chart/lane/viewer/assets/stateDiagram-v2-UEYNNEHI-CR5gcgq6.js +0 -1
- package/dist/chart/lane/viewer/assets/swimlanes-SLNWSIFB-B4xK-rwg.js +0 -1
- package/dist/chart/lane/viewer/assets/swimlanesDiagram-ULZ7WXOC-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/timeline-definition-Z64GVDOM-CCv52MfY.js +0 -120
- package/dist/chart/lane/viewer/assets/vennDiagram-T6HMQDX7-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/wardleyDiagram-T6FBY63Y-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/assets/xychartDiagram-ELKLHX3M-C729LI31.js +0 -1
- package/dist/chart/lane/viewer/index.html +0 -15
- package/dist/chart/report/index.d.ts +0 -117
- package/dist/chart/report/index.js +0 -32
- package/dist/chart/report/index.js.map +0 -1
- package/dist/chunk-2YFLOCWX.js +0 -15
- package/dist/chunk-2YFLOCWX.js.map +0 -1
- package/dist/chunk-3I52QZZ5.js +0 -519
- package/dist/chunk-3I52QZZ5.js.map +0 -1
- package/dist/chunk-3ZAFFRRB.js +0 -457
- package/dist/chunk-3ZAFFRRB.js.map +0 -1
- package/dist/chunk-4EQZ76JC.js +0 -33
- package/dist/chunk-4EQZ76JC.js.map +0 -1
- package/dist/chunk-4KLG43GY.js +0 -223
- package/dist/chunk-4KLG43GY.js.map +0 -1
- package/dist/chunk-7FRZ2CT2.js +0 -424
- package/dist/chunk-7FRZ2CT2.js.map +0 -1
- package/dist/chunk-AZZLE7XR.js +0 -62
- package/dist/chunk-AZZLE7XR.js.map +0 -1
- package/dist/chunk-BYQUGDD3.js +0 -16
- package/dist/chunk-BYQUGDD3.js.map +0 -1
- package/dist/chunk-CIQG5L42.js +0 -685
- package/dist/chunk-CIQG5L42.js.map +0 -1
- package/dist/chunk-CLM6ERNO.js +0 -61
- package/dist/chunk-CLM6ERNO.js.map +0 -1
- package/dist/chunk-COS5MSTO.js +0 -88
- package/dist/chunk-COS5MSTO.js.map +0 -1
- package/dist/chunk-CRPZJVD2.js +0 -71
- package/dist/chunk-CRPZJVD2.js.map +0 -1
- package/dist/chunk-D62FDQKE.js +0 -53
- package/dist/chunk-D62FDQKE.js.map +0 -1
- package/dist/chunk-D736QUGF.js.map +0 -1
- package/dist/chunk-DGE4PV4A.js +0 -26
- package/dist/chunk-DGE4PV4A.js.map +0 -1
- package/dist/chunk-DMYGQB4O.js.map +0 -1
- package/dist/chunk-EWJP3YYP.js.map +0 -1
- package/dist/chunk-FV3Z5MBE.js.map +0 -1
- package/dist/chunk-HCEVHFJ7.js +0 -54
- package/dist/chunk-HCEVHFJ7.js.map +0 -1
- package/dist/chunk-J6527VRQ.js.map +0 -1
- package/dist/chunk-JELSZN25.js +0 -47
- package/dist/chunk-JELSZN25.js.map +0 -1
- package/dist/chunk-K575PT4S.js.map +0 -1
- package/dist/chunk-L57ZOT5K.js +0 -184
- package/dist/chunk-L57ZOT5K.js.map +0 -1
- package/dist/chunk-MU6MCIAC.js +0 -15
- package/dist/chunk-MU6MCIAC.js.map +0 -1
- package/dist/chunk-MUUROGIH.js.map +0 -1
- package/dist/chunk-NR7BU22N.js +0 -758
- package/dist/chunk-NR7BU22N.js.map +0 -1
- package/dist/chunk-O4MVQTEJ.js.map +0 -1
- package/dist/chunk-OOYD44JI.js +0 -317
- package/dist/chunk-OOYD44JI.js.map +0 -1
- package/dist/chunk-Q2UM7BXU.js.map +0 -1
- package/dist/chunk-RH5EFRVJ.js.map +0 -1
- package/dist/chunk-S2EGRPCM.js +0 -47
- package/dist/chunk-S2EGRPCM.js.map +0 -1
- package/dist/chunk-SINXE47Y.js +0 -55
- package/dist/chunk-SINXE47Y.js.map +0 -1
- package/dist/chunk-UF4MZSLT.js +0 -53
- package/dist/chunk-UF4MZSLT.js.map +0 -1
- package/dist/chunk-UOC2PL46.js +0 -13
- package/dist/chunk-UOC2PL46.js.map +0 -1
- package/dist/chunk-VYFAZN3F.js +0 -372
- package/dist/chunk-VYFAZN3F.js.map +0 -1
- package/dist/chunk-WRAA7GVZ.js +0 -209
- package/dist/chunk-WRAA7GVZ.js.map +0 -1
- package/dist/chunk-XGELA764.js +0 -163
- package/dist/chunk-XGELA764.js.map +0 -1
- package/dist/chunk-YUXP55T2.js.map +0 -1
- package/dist/chunk-YWIKDKHY.js +0 -307
- package/dist/chunk-YWIKDKHY.js.map +0 -1
- package/dist/chunk-ZJ5AOYBH.js +0 -8
- package/dist/chunk-ZJ5AOYBH.js.map +0 -1
- package/dist/chunk-ZSUUOEPL.js +0 -731
- package/dist/chunk-ZSUUOEPL.js.map +0 -1
- package/dist/chunk-ZVJZ72HY.js.map +0 -1
- package/dist/circuit-breaker/index.d.ts +0 -197
- package/dist/circuit-breaker/index.js +0 -3
- package/dist/circuit-breaker/index.js.map +0 -1
- package/dist/deadline/index.d.ts +0 -199
- package/dist/deadline/index.js +0 -6
- package/dist/deadline/index.js.map +0 -1
- package/dist/debounce/index.js +0 -3
- package/dist/debounce/index.js.map +0 -1
- package/dist/extension/react.d.ts +0 -121
- package/dist/extension/react.js +0 -75
- package/dist/extension/react.js.map +0 -1
- package/dist/extension/subs/index.d.ts +0 -45
- package/dist/extension/subs/index.js +0 -80
- package/dist/extension/subs/index.js.map +0 -1
- package/dist/extension/test-utils.d.ts +0 -128
- package/dist/extension/test-utils.js +0 -277
- package/dist/extension/test-utils.js.map +0 -1
- package/dist/fan-out/index.js +0 -5
- package/dist/fan-out/index.js.map +0 -1
- package/dist/fold-BJPdjc9w.d.ts +0 -435
- package/dist/graph-B3L5e0N1.d.ts +0 -923
- package/dist/idempotency/adapter.d.ts +0 -62
- package/dist/idempotency/adapter.js +0 -4
- package/dist/idempotency/adapter.js.map +0 -1
- package/dist/idempotent-intake/index.d.ts +0 -188
- package/dist/idempotent-intake/index.js +0 -7
- package/dist/idempotent-intake/index.js.map +0 -1
- package/dist/journal/index.d.ts +0 -373
- package/dist/journal/index.js +0 -3
- package/dist/journal/index.js.map +0 -1
- package/dist/llm-call/index.d.ts +0 -311
- package/dist/llm-call/index.js +0 -16
- package/dist/llm-call/index.js.map +0 -1
- package/dist/machine-BtFWQmmq.d.ts +0 -804
- package/dist/monitored-run/index.js +0 -10
- package/dist/monitored-run/index.js.map +0 -1
- package/dist/paginated-walk/index.d.ts +0 -235
- package/dist/paginated-walk/index.js +0 -16
- package/dist/paginated-walk/index.js.map +0 -1
- package/dist/paginator/index.js +0 -3
- package/dist/paginator/index.js.map +0 -1
- package/dist/pbt/arbitraries/index.d.ts +0 -136
- package/dist/pbt/arbitraries/index.js +0 -3
- package/dist/pbt/arbitraries/index.js.map +0 -1
- package/dist/pbt/runners/index.d.ts +0 -118
- package/dist/pbt/runners/index.js +0 -5
- package/dist/pbt/runners/index.js.map +0 -1
- package/dist/poller/index.d.ts +0 -352
- package/dist/poller/index.js +0 -115
- package/dist/poller/index.js.map +0 -1
- package/dist/prediction/index.d.ts +0 -131
- package/dist/prediction/index.js +0 -4
- package/dist/prediction/index.js.map +0 -1
- package/dist/pure/index.d.ts +0 -3
- package/dist/pure/index.js +0 -4
- package/dist/pure/index.js.map +0 -1
- package/dist/rate-limit/index.d.ts +0 -115
- package/dist/rate-limit/index.js +0 -3
- package/dist/rate-limit/index.js.map +0 -1
- package/dist/reconciler/index.d.ts +0 -193
- package/dist/reconciler/index.js +0 -164
- package/dist/reconciler/index.js.map +0 -1
- package/dist/recorder/index.js +0 -3
- package/dist/recorder/index.js.map +0 -1
- package/dist/reducer-4GNR6b8B.d.ts +0 -447
- package/dist/resilient-call/index.d.ts +0 -320
- package/dist/resilient-call/index.js +0 -14
- package/dist/resilient-call/index.js.map +0 -1
- package/dist/retry-to-success/index.d.ts +0 -109
- package/dist/retry-to-success/index.js +0 -37
- package/dist/retry-to-success/index.js.map +0 -1
- package/dist/run-pAcmBpah.d.ts +0 -713
- package/dist/runtime-types-CNLmhWif.d.ts +0 -517
- package/dist/saga/index.d.ts +0 -241
- package/dist/saga/index.js +0 -150
- package/dist/saga/index.js.map +0 -1
- package/dist/samples-B3My5oh2.d.ts +0 -59
- package/dist/snapshot/index.js +0 -5
- package/dist/snapshot/index.js.map +0 -1
- package/dist/subs/index.d.ts +0 -472
- package/dist/subs/index.js +0 -7
- package/dist/subs/index.js.map +0 -1
- package/dist/throttle/index.d.ts +0 -134
- package/dist/throttle/index.js +0 -3
- package/dist/throttle/index.js.map +0 -1
- package/dist/throttled-input/index.js.map +0 -1
- package/dist/token-refresh/index.d.ts +0 -216
- package/dist/token-refresh/index.js +0 -6
- package/dist/token-refresh/index.js.map +0 -1
- package/dist/trace-replay/index.js +0 -6
- package/dist/trace-replay/index.js.map +0 -1
- package/dist/with-deadline/index.d.ts +0 -197
- package/dist/with-deadline/index.js +0 -111
- package/dist/with-deadline/index.js.map +0 -1
- package/dist/with-resilience/index.d.ts +0 -225
- package/dist/with-resilience/index.js +0 -240
- package/dist/with-resilience/index.js.map +0 -1
- package/dist/with-telemetry/index.d.ts +0 -150
- package/dist/with-telemetry/index.js +0 -70
- package/dist/with-telemetry/index.js.map +0 -1
- package/dist/work-queue/adapter.d.ts +0 -84
- package/dist/work-queue/adapter.js +0 -4
- package/dist/work-queue/adapter.js.map +0 -1
- package/dist/work-queue/ops.d.ts +0 -71
- package/dist/work-queue/ops.js +0 -3
- package/dist/work-queue/ops.js.map +0 -1
- package/dist/workflow/index.d.ts +0 -485
- package/dist/workflow/index.js +0 -244
- package/dist/workflow/index.js.map +0 -1
- /package/dist/{cache → paginate}/index.js.map +0 -0
- /package/dist/{chart/inspect → persistence}/index.js.map +0 -0
package/dist/do/index.d.ts
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
import { S as Store, R as Runtime, B as BootingRuntime } from '../runtime-types-
|
|
2
|
-
import { P as PendingEffectsRecorder, b as EffectOwed, a as EffectConfirmed } from '../durable-effects-
|
|
3
|
-
export { D as DeliveryId, E as EffectLedgerEvent, O as OwedEffect, c as PendingEffectsLedger, d as applyEffectEvent, e as emptyLedger, f as foldLedger, i as isOwed, p as pendingEffectsLedger, s as survivingEffects } from '../durable-effects-
|
|
1
|
+
import { S as Store, R as Runtime, B as BootingRuntime, F as FencedStore } from '../runtime-types-CMF13BBh.js';
|
|
2
|
+
import { P as PendingEffectsRecorder, b as EffectOwed, a as EffectConfirmed } from '../durable-effects-CWzA-o2B.js';
|
|
3
|
+
export { D as DeliveryId, E as EffectLedgerEvent, O as OwedEffect, c as PendingEffectsLedger, d as applyEffectEvent, e as emptyLedger, f as foldLedger, i as isOwed, p as pendingEffectsLedger, s as survivingEffects } from '../durable-effects-CWzA-o2B.js';
|
|
4
4
|
import { RetryPolicy, Rng } from '../retry-backoff/index.js';
|
|
5
|
-
import { C as Cmd, S as Sub, M as Machine, R as RequiredCtx } from '../core-
|
|
6
|
-
import {
|
|
5
|
+
import { C as Cmd, S as Sub, M as Machine, R as RequiredCtx } from '../core-DnzqWy6u.js';
|
|
6
|
+
import { g as AgentEvent, b as AgentTurn, c as AgentState, i as AgentMachineMsg, D as AgentStatus } from '../machine-DGlPWCWI.js';
|
|
7
7
|
import 'better-result';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import '../
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
12
|
-
import '../types-
|
|
13
|
-
import '../
|
|
14
|
-
import '../
|
|
15
|
-
import '../protocol-
|
|
16
|
-
import '../
|
|
17
|
-
import '../monitored-run/index.js';
|
|
18
|
-
import '../snapshot/index.js';
|
|
19
|
-
import '../work-queue/index.js';
|
|
20
|
-
import '../fan-out/index.js';
|
|
9
|
+
import '../index-KXqTRJyb.js';
|
|
10
|
+
import '../index-ZCMhnVKN.js';
|
|
11
|
+
import '../index-HSYgG2Yt.js';
|
|
12
|
+
import '../types-BseNPIhr.js';
|
|
13
|
+
import '../index-CSyMYDAB.js';
|
|
14
|
+
import '../index-CA_7I5g9.js';
|
|
15
|
+
import '../protocol-D8VbH-VH.js';
|
|
16
|
+
import '../index-CuNO9m8i.js';
|
|
21
17
|
|
|
22
18
|
/**
|
|
23
19
|
* @demlik/tea/do — `stepHost`, the HTTP-PULL control carrier (#92).
|
|
@@ -1016,7 +1012,7 @@ declare function sseProjection<Model, Msg extends {
|
|
|
1016
1012
|
key?: string;
|
|
1017
1013
|
}): Projection<Model, Msg, E | null>;
|
|
1018
1014
|
/**
|
|
1019
|
-
* Wire an {@link SseHub} to a runtime's semantic {@link AgentEvent} stream
|
|
1015
|
+
* Wire an {@link SseHub} to a runtime's semantic {@link AgentEvent} stream.
|
|
1020
1016
|
* For each event `type` the runtime can emit, subscribes via `runtime.on` and
|
|
1021
1017
|
* pushes `toFrame(event)` at the hub (returning `null` skips that event). The
|
|
1022
1018
|
* runtime MUST have been built with `run(machine, { events: agentEvents() })`,
|
|
@@ -1088,7 +1084,7 @@ interface AgentHostConfig<Stage, P extends string, O extends Record<P, AgentTurn
|
|
|
1088
1084
|
readonly now?: () => number;
|
|
1089
1085
|
}
|
|
1090
1086
|
/**
|
|
1091
|
-
* The assembled host: the runtime
|
|
1087
|
+
* The assembled host: the runtime handle + the SSE hub + the framework test seam,
|
|
1092
1088
|
* owned ONCE. A DO holds one `AgentHost` and delegates to it; its own surface
|
|
1093
1089
|
* shrinks to the domain (the gateway, the WS bridge, the command-send mapping).
|
|
1094
1090
|
*
|
|
@@ -1111,7 +1107,9 @@ interface AgentHost<Stage, P extends string, O extends Record<P, AgentTurn>, R,
|
|
|
1111
1107
|
* The agent's lifecycle status (#49) — the ONE typed channel a consumer reads
|
|
1112
1108
|
* instead of re-deriving `run.phase` / `awaiting` by hand. Ensures the runtime
|
|
1113
1109
|
* is built + boot-reconciled first. Replaces the per-consumer `isSuspended` /
|
|
1114
|
-
* `runPhase` test methods (read `status().kind`
|
|
1110
|
+
* `runPhase` test methods (read `status().kind`: `idle` / `running` /
|
|
1111
|
+
* `suspended` / `done` / `failed`). A hydrated DO that has not yet seen
|
|
1112
|
+
* `agent_start` reads `idle`, not `running` (#92).
|
|
1115
1113
|
*/
|
|
1116
1114
|
status(): Promise<AgentStatus<Stage>>;
|
|
1117
1115
|
/**
|
|
@@ -1352,7 +1350,7 @@ declare function durableCommandCarrier<R>(inner: DeferredGateway<R>, recorder: P
|
|
|
1352
1350
|
|
|
1353
1351
|
/**
|
|
1354
1352
|
* The typed cold-wake resume port `bootResume` fires through — the agent's
|
|
1355
|
-
* `AgentBootPort
|
|
1353
|
+
* `AgentBootPort`, generalized to any DO-hosted machine.
|
|
1356
1354
|
*
|
|
1357
1355
|
* - `isResumable(state)` — true iff the rehydrated State is mid-loop and needs a
|
|
1358
1356
|
* resume dispatch. False on a fresh boot, which makes `bootResume` a no-op.
|
|
@@ -1395,10 +1393,10 @@ declare function bootResume<S, M extends {
|
|
|
1395
1393
|
*/
|
|
1396
1394
|
declare function agentIsResumable<Stage, P extends string, O extends Record<P, unknown>, R>(state: AgentState<Stage, P, O, R>): boolean;
|
|
1397
1395
|
/**
|
|
1398
|
-
* The AGENT specialization of {@link bootResume}
|
|
1396
|
+
* The AGENT specialization of {@link bootResume}: after
|
|
1399
1397
|
* `runtime.ready`, self-dispatch `agent_boot` iff the rehydrated slice is
|
|
1400
1398
|
* resumable, a no-op on a fresh DO. Wires the agent slice's `agentIsResumable`
|
|
1401
|
-
* predicate + the agent-owned `agentBootMsg` typed port
|
|
1399
|
+
* predicate + the agent-owned `agentBootMsg` typed port into the
|
|
1402
1400
|
* generalized helper, so the resume dispatch lives in ONE place — see
|
|
1403
1401
|
* `bootResume`'s docblock for the boot-gate / init-purity rationale.
|
|
1404
1402
|
*
|
|
@@ -1408,8 +1406,9 @@ declare function autoBoot<Stage, P extends string, O extends Record<P, unknown>,
|
|
|
1408
1406
|
type: string;
|
|
1409
1407
|
} = never>(booting: BootingRuntime<AgentState<Stage, P, O, R>, AgentMachineMsg<P, O, R>, E>, now?: () => number): Promise<void>;
|
|
1410
1408
|
/**
|
|
1411
|
-
*
|
|
1412
|
-
* recorder was rehydrated from the persisted ledger
|
|
1409
|
+
* Re-fire every round-trip a rehydrated actor still owes, on wake. Given a
|
|
1410
|
+
* durable carrier whose recorder was rehydrated from the persisted ledger
|
|
1411
|
+
* events (e.g.
|
|
1413
1412
|
* `durableCommandCarrier(deferredGateway(), pendingEffectsLedger({ events }),
|
|
1414
1413
|
* …)` on a wake), re-fire every owed-but-unconfirmed round-trip via
|
|
1415
1414
|
* `reissue(callId)` — the consumer's "re-send the command frame for this
|
|
@@ -1531,7 +1530,8 @@ interface EffectForgotten extends Cmd<"effect_forgotten"> {
|
|
|
1531
1530
|
type AppliedEffectsEvent = EffectApplied | EffectForgotten;
|
|
1532
1531
|
/** The set of keys whose effect has been applied. A pure fold result. */
|
|
1533
1532
|
type AppliedEffects = ReadonlySet<EffectKey>;
|
|
1534
|
-
/** The empty applied set — the fold's
|
|
1533
|
+
/** The empty applied set — the fold's starting value (a fresh actor has
|
|
1534
|
+
* applied nothing). */
|
|
1535
1535
|
declare function emptyApplied(): AppliedEffects;
|
|
1536
1536
|
/**
|
|
1537
1537
|
* Apply ONE event — the reducer at the heart of the fold.
|
|
@@ -1563,7 +1563,7 @@ interface IdempotentEffect<A> {
|
|
|
1563
1563
|
readonly fn: () => Promise<A> | A;
|
|
1564
1564
|
}
|
|
1565
1565
|
/**
|
|
1566
|
-
* Pair a durable `key` with an external effect `fn` —
|
|
1566
|
+
* Pair a durable `key` with an external effect `fn` — this module's primary
|
|
1567
1567
|
* surface. Run it through {@link appliedEffects}'s guard; a re-fire whose key is
|
|
1568
1568
|
* already applied is a proven no-op (`fn` is not invoked a second time).
|
|
1569
1569
|
*/
|
|
@@ -1703,7 +1703,7 @@ interface BroadcastReport {
|
|
|
1703
1703
|
readonly sent: number;
|
|
1704
1704
|
readonly skipped: number;
|
|
1705
1705
|
}
|
|
1706
|
-
/** Optional
|
|
1706
|
+
/** Optional settings for {@link broadcastFrame}. */
|
|
1707
1707
|
interface BroadcastOptions<S extends PresenceSocket> {
|
|
1708
1708
|
/**
|
|
1709
1709
|
* A socket to exclude from the fan-out — typically the sender, so a collab /
|
|
@@ -1734,7 +1734,8 @@ interface BroadcastOptions<S extends PresenceSocket> {
|
|
|
1734
1734
|
* not silence.
|
|
1735
1735
|
*/
|
|
1736
1736
|
declare function broadcastFrame<S extends PresenceSocket>(sockets: Iterable<S>, frame: unknown, options?: BroadcastOptions<S>): BroadcastReport;
|
|
1737
|
-
/** Optional
|
|
1737
|
+
/** Optional settings for {@link registerHibernatableSocket} /
|
|
1738
|
+
* {@link acceptPresenceSocket}. */
|
|
1738
1739
|
interface RegisterOptions<A> {
|
|
1739
1740
|
/**
|
|
1740
1741
|
* Hibernation tags for the socket — the same strings `ctx.getWebSockets(tag)`
|
|
@@ -1870,6 +1871,16 @@ interface DoStoreOptions<S> {
|
|
|
1870
1871
|
* accept whatever `serialize` produces.
|
|
1871
1872
|
*/
|
|
1872
1873
|
readonly serialize?: (state: S) => unknown;
|
|
1874
|
+
/**
|
|
1875
|
+
* Refuse a second live writer (#143). With `{ fenced: true }` the returned
|
|
1876
|
+
* store is a `FencedStore<S>`: the version lives in its own storage cell
|
|
1877
|
+
* (`<key>@@version`) and the compare-and-swap runs inside
|
|
1878
|
+
* `storage.transaction`, so the read, the compare and the two writes are one
|
|
1879
|
+
* atomic unit. Inside a single DO the platform already guarantees one writer;
|
|
1880
|
+
* fencing is what refuses a SECOND grain — a stale zombie isolate mid-migration,
|
|
1881
|
+
* or a second DO id pointed at the same state by a routing bug.
|
|
1882
|
+
*/
|
|
1883
|
+
readonly fenced?: true;
|
|
1873
1884
|
}
|
|
1874
1885
|
/**
|
|
1875
1886
|
* `Store<S>` over `DurableObjectStorage`.
|
|
@@ -1910,6 +1921,9 @@ interface DoStoreOptions<S> {
|
|
|
1910
1921
|
* defaults to `@@state`) or a {@link DoStoreOptions} bag carrying `key`
|
|
1911
1922
|
* and/or the `serialize` hook. A bare string is treated as `{ key }`.
|
|
1912
1923
|
*/
|
|
1924
|
+
declare function doStore<S>(storage: DurableObjectStorage, parse: (raw: unknown) => S | null, keyOrOptions: DoStoreOptions<S> & {
|
|
1925
|
+
readonly fenced: true;
|
|
1926
|
+
}): FencedStore<S>;
|
|
1913
1927
|
declare function doStore<S>(storage: DurableObjectStorage, parse: (raw: unknown) => S | null, keyOrOptions?: string | DoStoreOptions<S>): Store<S>;
|
|
1914
1928
|
|
|
1915
1929
|
export { type AgentHost, type AgentHostConfig, type AlarmStorage, type AppliedEffects, type AppliedEffectsEvent, type AppliedEffectsGuard, type AttachableSocket, type BroadcastOptions, type BroadcastReport, type DeferResumeHook, type DeferStepHostConfig, type DeferredGateway, type DeferredStepOutcome, type DeferredStepResponse, type DoStoreOptions, type DurableCommandCarrier, type DurableTimer, type DurableTimerConfig, type EffectApplied, EffectConfirmed, type EffectForgotten, type EffectKey, EffectOwed, type EventLogRange, type EventSourcedOptions, type EventSourcedStore, type ExecuteStep, type HibernatableCtx, type IdempotentEffect, type IdempotentOutcome, type NextStep, PendingEffectsRecorder, type PersistedEvent, type PresenceCtx, type PresenceSocket, type PresenceUpgrade, type Projection, type ProjectionErrorContext, type ProjectionId, type ProjectionOnError, type ProjectionRegistry, type ProjectionRunner, type ProjectionUpdate, type RegisterOptions, type ResumePort, type RunStepLoopConfig, type SseHub, type StepCtx, type StepEngine, type StepHostConfig, type StepLoopOutcome, type StepOutcome, type StepRequest, type StepResponse, type StepResult, type StepTransport, type StepWorking, WS_READY_STATE_OPEN, acceptCommandSocket, acceptDurableCommandSocket, acceptPresenceSocket, agentIsResumable, appliedEffects, applyAppliedEvent, autoBoot, bootResume, broadcast, broadcastFrame, broadcastHibernatable, constantTimeEqual, createAgentHost, deferredGateway, doEventSourcedStore, doStore, driveProjections, durableCommandCarrier, durableDeferredGateway, durableTimer, emptyApplied, foldApplied, idempotentEffect, isApplied, mintRunToken, presenceCount, projectionIdString, projectionRegistry, rebuildProjection, registerHibernatableSocket, reissueSurvivingEffects, runProjection, runStepLoop, sseFromAgentEvents, sseHub, sseProjection, stepHost };
|
package/dist/do/index.js
CHANGED
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
import { status, agentBootMsg, agentEvents } from '../chunk-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import { defaultRetryPolicy, initRetry, recordFailure, shouldRetry, nextDelayMs } from '../chunk-Q2UM7BXU.js';
|
|
13
|
-
import '../chunk-S2EGRPCM.js';
|
|
14
|
-
import '../chunk-BYQUGDD3.js';
|
|
15
|
-
import '../chunk-K575PT4S.js';
|
|
16
|
-
import '../chunk-UF4MZSLT.js';
|
|
1
|
+
import { status, agentBootMsg, agentEvents } from '../chunk-TCLBCERH.js';
|
|
2
|
+
import { createIntake } from '../chunk-VTQI2NHP.js';
|
|
3
|
+
export { applyEffectEvent, emptyLedger, foldLedger, isOwed, pendingEffectsLedger, survivingEffects } from '../chunk-6IQPODUF.js';
|
|
4
|
+
import '../chunk-3B5X7SBB.js';
|
|
5
|
+
import '../chunk-MYXFNWAJ.js';
|
|
6
|
+
import '../chunk-PR6TB3BL.js';
|
|
7
|
+
import '../chunk-TXN2KFHF.js';
|
|
8
|
+
import '../chunk-L3TND7LA.js';
|
|
9
|
+
import '../chunk-AYS5N6WY.js';
|
|
10
|
+
import { defaultRetryPolicy, initRetry, recordFailure, shouldRetry, nextDelayMs } from '../chunk-VBDU4JL6.js';
|
|
11
|
+
import '../chunk-22POWGFA.js';
|
|
17
12
|
import '../chunk-G5E74IJB.js';
|
|
18
|
-
import '../chunk-
|
|
19
|
-
import '../chunk-FV3Z5MBE.js';
|
|
20
|
-
import '../chunk-VYFAZN3F.js';
|
|
21
|
-
import '../chunk-2YFLOCWX.js';
|
|
22
|
-
import '../chunk-ZJ5AOYBH.js';
|
|
23
|
-
import { replay, run } from '../chunk-ZSUUOEPL.js';
|
|
24
|
-
import '../chunk-OOYD44JI.js';
|
|
13
|
+
import { StoreConflictError, replay, run } from '../chunk-66PY5WYF.js';
|
|
25
14
|
|
|
26
15
|
// src/do/durable-timer.ts
|
|
27
16
|
function durableTimer(config) {
|
|
@@ -255,7 +244,7 @@ function sseFromAgentEvents(runtime, hub, toFrame) {
|
|
|
255
244
|
function createAgentHost(config) {
|
|
256
245
|
const sse = sseHub();
|
|
257
246
|
const now = config.now ?? Date.now;
|
|
258
|
-
const isTerminal = config.terminal ?? ((s) => s.run.phase === "done" || s.run.phase === "failed");
|
|
247
|
+
const isTerminal = config.terminal ?? ((s) => s.run.phase === "done" || s.run.phase === "failed" || s.run.phase === "cancelled");
|
|
259
248
|
let cached = null;
|
|
260
249
|
async function build() {
|
|
261
250
|
const booting = run(config.buildMachine(), {
|
|
@@ -706,7 +695,8 @@ function doStore(storage, parse, keyOrOptions = DEFAULT_STATE_KEY) {
|
|
|
706
695
|
const options = typeof keyOrOptions === "string" ? { key: keyOrOptions } : keyOrOptions;
|
|
707
696
|
const key = options.key ?? DEFAULT_STATE_KEY;
|
|
708
697
|
const serialize = options.serialize ?? ((state) => state);
|
|
709
|
-
|
|
698
|
+
const versionKey = `${key}@@version`;
|
|
699
|
+
const base = {
|
|
710
700
|
async load() {
|
|
711
701
|
const raw = await storage.get(key);
|
|
712
702
|
if (raw === void 0 || raw === null) return null;
|
|
@@ -719,6 +709,27 @@ function doStore(storage, parse, keyOrOptions = DEFAULT_STATE_KEY) {
|
|
|
719
709
|
return parse(raw);
|
|
720
710
|
}
|
|
721
711
|
};
|
|
712
|
+
if (options.fenced !== true) return base;
|
|
713
|
+
return {
|
|
714
|
+
...base,
|
|
715
|
+
fenced: true,
|
|
716
|
+
async loadFenced() {
|
|
717
|
+
const stored = await storage.get(versionKey);
|
|
718
|
+
return { raw: await base.load(), version: stored ?? 0 };
|
|
719
|
+
},
|
|
720
|
+
async saveFenced(state, expectedVersion) {
|
|
721
|
+
return await storage.transaction(async (txn) => {
|
|
722
|
+
const actual = await txn.get(versionKey) ?? 0;
|
|
723
|
+
if (actual !== expectedVersion) {
|
|
724
|
+
throw new StoreConflictError(expectedVersion, actual);
|
|
725
|
+
}
|
|
726
|
+
const next = expectedVersion + 1;
|
|
727
|
+
await txn.put(key, JSON.stringify(serialize(state)));
|
|
728
|
+
await txn.put(versionKey, next);
|
|
729
|
+
return next;
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
};
|
|
722
733
|
}
|
|
723
734
|
|
|
724
735
|
export { WS_READY_STATE_OPEN, acceptCommandSocket, acceptDurableCommandSocket, acceptPresenceSocket, agentIsResumable, appliedEffects, applyAppliedEvent, autoBoot, bootResume, broadcast, broadcastFrame, broadcastHibernatable, constantTimeEqual, createAgentHost, deferredGateway, doEventSourcedStore, doStore, driveProjections, durableCommandCarrier, durableDeferredGateway, durableTimer, emptyApplied, foldApplied, idempotentEffect, isApplied, mintRunToken, presenceCount, projectionIdString, projectionRegistry, rebuildProjection, registerHibernatableSocket, reissueSurvivingEffects, runProjection, runStepLoop, sseFromAgentEvents, sseHub, sseProjection, stepHost };
|