rivetkit 2.0.42 → 2.1.0-rc.1
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/dist/{tsup/config-CLnylLYY.d.ts → browser/client.d.ts} +2127 -1910
- package/dist/browser/client.js +5182 -0
- package/dist/browser/client.js.map +1 -0
- package/dist/browser/inspector/client.d.ts +130 -0
- package/dist/browser/inspector/client.js +2854 -0
- package/dist/browser/inspector/client.js.map +1 -0
- package/dist/browser/v3-DnYObHH3.d.ts +279 -0
- package/dist/schemas/actor-inspector/v2.ts +796 -0
- package/dist/schemas/actor-inspector/v3.ts +899 -0
- package/dist/schemas/actor-persist/v4.ts +406 -0
- package/dist/schemas/client-protocol/v3.ts +554 -0
- package/dist/schemas/persist/v1.ts +781 -0
- package/dist/schemas/transport/v1.ts +697 -0
- package/dist/tsup/actor/errors.cjs +27 -3
- package/dist/tsup/actor/errors.cjs.map +1 -1
- package/dist/tsup/actor/errors.d.cts +37 -1
- package/dist/tsup/actor/errors.d.ts +37 -1
- package/dist/tsup/actor/errors.js +26 -1
- package/dist/tsup/{actor-router-consts-DzI2szci.d.cts → actor-router-consts-D29T1Z-K.d.cts} +1 -1
- package/dist/tsup/{actor-router-consts-DzI2szci.d.ts → actor-router-consts-D29T1Z-K.d.ts} +1 -1
- package/dist/tsup/chunk-424PT5DM.js +23 -0
- package/dist/tsup/chunk-424PT5DM.js.map +1 -0
- package/dist/tsup/{chunk-JDAD2YFA.js → chunk-5ESWDTHJ.js} +148 -273
- package/dist/tsup/chunk-5ESWDTHJ.js.map +1 -0
- package/dist/tsup/{chunk-FJ3KTN4V.js → chunk-6LIBPELE.js} +119 -11
- package/dist/tsup/chunk-6LIBPELE.js.map +1 -0
- package/dist/tsup/chunk-6LJAZ5R4.cjs +96 -0
- package/dist/tsup/chunk-6LJAZ5R4.cjs.map +1 -0
- package/dist/tsup/{chunk-LFVF5SCU.js → chunk-7HTNH26M.js} +126 -1
- package/dist/tsup/chunk-7HTNH26M.js.map +1 -0
- package/dist/tsup/chunk-7K4CYDGD.js +630 -0
- package/dist/tsup/chunk-7K4CYDGD.js.map +1 -0
- package/dist/tsup/{chunk-XXGJCOL6.js → chunk-A6YIZWTK.js} +2 -2
- package/dist/tsup/chunk-AIYEYMX5.cjs +630 -0
- package/dist/tsup/chunk-AIYEYMX5.cjs.map +1 -0
- package/dist/tsup/{chunk-Q6W7RJJP.js → chunk-DIGBC2VI.js} +211 -2316
- package/dist/tsup/chunk-DIGBC2VI.js.map +1 -0
- package/dist/tsup/{chunk-RZW2DNND.cjs → chunk-F6JYU5IK.cjs} +1957 -1039
- package/dist/tsup/chunk-F6JYU5IK.cjs.map +1 -0
- package/dist/tsup/chunk-HAZL2EPK.cjs +534 -0
- package/dist/tsup/chunk-HAZL2EPK.cjs.map +1 -0
- package/dist/tsup/chunk-HDQ2JUQT.cjs +23 -0
- package/dist/tsup/chunk-HDQ2JUQT.cjs.map +1 -0
- package/dist/tsup/chunk-HIDX4C5Y.cjs +1036 -0
- package/dist/tsup/chunk-HIDX4C5Y.cjs.map +1 -0
- package/dist/tsup/chunk-IVG73YCW.js +534 -0
- package/dist/tsup/chunk-IVG73YCW.js.map +1 -0
- package/dist/tsup/chunk-KJSYAUOM.js +96 -0
- package/dist/tsup/chunk-KJSYAUOM.js.map +1 -0
- package/dist/tsup/{chunk-2XQS746M.cjs → chunk-L47L3ZWJ.cjs} +127 -2
- package/dist/tsup/chunk-L47L3ZWJ.cjs.map +1 -0
- package/dist/tsup/{chunk-H4TB4X25.cjs → chunk-LW6KLR7A.cjs} +126 -18
- package/dist/tsup/chunk-LW6KLR7A.cjs.map +1 -0
- package/dist/tsup/chunk-LXUQ667X.js +2006 -0
- package/dist/tsup/chunk-LXUQ667X.js.map +1 -0
- package/dist/tsup/{chunk-GMAVRZSF.js → chunk-M2T62AZQ.js} +1790 -872
- package/dist/tsup/chunk-M2T62AZQ.js.map +1 -0
- package/dist/tsup/chunk-MZ37VV3P.js +5974 -0
- package/dist/tsup/chunk-MZ37VV3P.js.map +1 -0
- package/dist/tsup/chunk-N4KRDJ56.js +72 -0
- package/dist/tsup/chunk-N4KRDJ56.js.map +1 -0
- package/dist/tsup/chunk-NIYZDWMW.cjs +2006 -0
- package/dist/tsup/chunk-NIYZDWMW.cjs.map +1 -0
- package/dist/tsup/chunk-OMEPCQK2.js +649 -0
- package/dist/tsup/chunk-OMEPCQK2.js.map +1 -0
- package/dist/tsup/chunk-SR3KQE7Q.cjs +72 -0
- package/dist/tsup/chunk-SR3KQE7Q.cjs.map +1 -0
- package/dist/tsup/chunk-SSEP6DHP.cjs +2657 -0
- package/dist/tsup/chunk-SSEP6DHP.cjs.map +1 -0
- package/dist/tsup/chunk-T5YCUGVS.js +1036 -0
- package/dist/tsup/chunk-T5YCUGVS.js.map +1 -0
- package/dist/tsup/{chunk-EJVBH5VF.cjs → chunk-TPGXWFQT.cjs} +3 -3
- package/dist/tsup/{chunk-EJVBH5VF.cjs.map → chunk-TPGXWFQT.cjs.map} +1 -1
- package/dist/tsup/{chunk-X35U3YNX.cjs → chunk-TYLXNCA5.cjs} +214 -339
- package/dist/tsup/chunk-TYLXNCA5.cjs.map +1 -0
- package/dist/tsup/chunk-VKVNIQRQ.js +257 -0
- package/dist/tsup/chunk-VKVNIQRQ.js.map +1 -0
- package/dist/tsup/chunk-XWBAQO5H.cjs +649 -0
- package/dist/tsup/chunk-XWBAQO5H.cjs.map +1 -0
- package/dist/tsup/chunk-YQ4LDVD6.cjs +5974 -0
- package/dist/tsup/chunk-YQ4LDVD6.cjs.map +1 -0
- package/dist/tsup/chunk-ZFY5J2EP.cjs +257 -0
- package/dist/tsup/chunk-ZFY5J2EP.cjs.map +1 -0
- package/dist/tsup/client/mod.cjs +9 -10
- package/dist/tsup/client/mod.cjs.map +1 -1
- package/dist/tsup/client/mod.d.cts +11 -5
- package/dist/tsup/client/mod.d.ts +11 -5
- package/dist/tsup/client/mod.js +8 -8
- package/dist/tsup/common/log.cjs +4 -4
- package/dist/tsup/common/log.d.cts +2 -2
- package/dist/tsup/common/log.d.ts +2 -2
- package/dist/tsup/common/log.js +3 -2
- package/dist/tsup/common/websocket.cjs +5 -5
- package/dist/tsup/common/websocket.js +4 -3
- package/dist/tsup/config-BFqid9Gr.d.ts +2574 -0
- package/dist/tsup/config-BiNoIHRs.d.cts +80 -0
- package/dist/tsup/config-BiNoIHRs.d.ts +80 -0
- package/dist/tsup/{config-CZB2-W8x.d.cts → config-CAZphOS1.d.cts} +681 -355
- package/dist/tsup/db/drizzle/mod.cjs +49 -0
- package/dist/tsup/db/drizzle/mod.cjs.map +1 -0
- package/dist/tsup/db/drizzle/mod.d.cts +17 -0
- package/dist/tsup/db/drizzle/mod.d.ts +17 -0
- package/dist/tsup/db/drizzle/mod.js +49 -0
- package/dist/tsup/db/drizzle/mod.js.map +1 -0
- package/dist/tsup/db/mod.cjs +9 -0
- package/dist/tsup/db/mod.cjs.map +1 -0
- package/dist/tsup/db/mod.d.cts +9 -0
- package/dist/tsup/db/mod.d.ts +9 -0
- package/dist/tsup/db/mod.js +9 -0
- package/dist/tsup/db/mod.js.map +1 -0
- package/dist/tsup/{driver-D0QX9M11.d.ts → driver-Bxv62E2p.d.ts} +2 -2
- package/dist/tsup/{driver-q-zqG7fc.d.cts → driver-DYXwJR5D.d.cts} +2 -2
- package/dist/tsup/driver-helpers/mod.cjs +12 -6
- package/dist/tsup/driver-helpers/mod.cjs.map +1 -1
- package/dist/tsup/driver-helpers/mod.d.cts +12 -5
- package/dist/tsup/driver-helpers/mod.d.ts +12 -5
- package/dist/tsup/driver-helpers/mod.js +12 -5
- package/dist/tsup/driver-test-suite/mod.cjs +1370 -116
- package/dist/tsup/driver-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/driver-test-suite/mod.d.cts +10 -4
- package/dist/tsup/driver-test-suite/mod.d.ts +10 -4
- package/dist/tsup/driver-test-suite/mod.js +2093 -838
- package/dist/tsup/driver-test-suite/mod.js.map +1 -1
- package/dist/tsup/inspector/mod.cjs +29 -3
- package/dist/tsup/inspector/mod.cjs.map +1 -1
- package/dist/tsup/inspector/mod.d.cts +124 -3
- package/dist/tsup/inspector/mod.d.ts +124 -3
- package/dist/tsup/inspector/mod.js +72 -45
- package/dist/tsup/keys-CydblqMh.d.cts +13 -0
- package/dist/tsup/keys-CydblqMh.d.ts +13 -0
- package/dist/tsup/mod.cjs +16 -10
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +26 -14
- package/dist/tsup/mod.d.ts +26 -14
- package/dist/tsup/mod.js +20 -13
- package/dist/tsup/serve-test-suite/mod.cjs +1165 -83
- package/dist/tsup/serve-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/serve-test-suite/mod.js +1114 -29
- package/dist/tsup/serve-test-suite/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +84 -11
- package/dist/tsup/test/mod.cjs.map +1 -1
- package/dist/tsup/test/mod.d.cts +10 -5
- package/dist/tsup/test/mod.d.ts +10 -5
- package/dist/tsup/test/mod.js +85 -11
- package/dist/tsup/test/mod.js.map +1 -1
- package/dist/tsup/utils.cjs +10 -4
- package/dist/tsup/utils.cjs.map +1 -1
- package/dist/tsup/utils.d.cts +72 -2
- package/dist/tsup/utils.d.ts +72 -2
- package/dist/tsup/utils.js +9 -2
- package/dist/tsup/v3-DnYObHH3.d.cts +279 -0
- package/dist/tsup/v3-DnYObHH3.d.ts +279 -0
- package/dist/tsup/workflow/mod.cjs +16 -0
- package/dist/tsup/workflow/mod.cjs.map +1 -0
- package/dist/tsup/workflow/mod.d.cts +83 -0
- package/dist/tsup/workflow/mod.d.ts +83 -0
- package/dist/tsup/workflow/mod.js +16 -0
- package/dist/tsup/workflow/mod.js.map +1 -0
- package/package.json +62 -5
- package/src/actor/config.ts +478 -68
- package/src/actor/conn/mod.ts +68 -16
- package/src/actor/conn/state-manager.ts +2 -2
- package/src/actor/contexts/action.ts +20 -12
- package/src/actor/contexts/base/actor.ts +137 -7
- package/src/actor/contexts/base/conn-init.ts +27 -7
- package/src/actor/contexts/base/conn.ts +27 -18
- package/src/actor/contexts/before-action-response.ts +9 -2
- package/src/actor/contexts/before-connect.ts +7 -2
- package/src/actor/contexts/connect.ts +9 -2
- package/src/actor/contexts/create-conn-state.ts +7 -2
- package/src/actor/contexts/create-vars.ts +16 -3
- package/src/actor/contexts/create.ts +16 -3
- package/src/actor/contexts/destroy.ts +9 -3
- package/src/actor/contexts/disconnect.ts +10 -4
- package/src/actor/contexts/index.ts +4 -3
- package/src/actor/contexts/request.ts +23 -6
- package/src/actor/contexts/run.ts +47 -0
- package/src/actor/contexts/sleep.ts +9 -3
- package/src/actor/contexts/state-change.ts +9 -3
- package/src/actor/contexts/wake.ts +9 -3
- package/src/actor/contexts/websocket.ts +23 -6
- package/src/actor/database.ts +8 -18
- package/src/actor/definition.ts +20 -6
- package/src/actor/driver.ts +32 -3
- package/src/actor/errors.ts +127 -0
- package/src/actor/instance/connection-manager.ts +183 -80
- package/src/actor/instance/event-manager.ts +26 -15
- package/src/actor/instance/keys.ts +117 -0
- package/src/actor/instance/mod.ts +784 -174
- package/src/actor/instance/queue-manager.ts +603 -0
- package/src/actor/instance/queue.ts +287 -0
- package/src/actor/instance/schedule-manager.ts +49 -7
- package/src/actor/instance/state-manager.ts +35 -11
- package/src/actor/instance/traces-driver.ts +128 -0
- package/src/actor/mod.ts +26 -2
- package/src/actor/protocol/old.ts +28 -13
- package/src/actor/protocol/serde.ts +1 -1
- package/src/actor/router-endpoints.ts +177 -21
- package/src/actor/router-websocket-endpoints.ts +18 -29
- package/src/actor/router.ts +177 -0
- package/src/actor/schema.ts +291 -0
- package/src/actor/utils.ts +40 -0
- package/src/client/actor-common.ts +1 -1
- package/src/client/actor-conn.ts +100 -33
- package/src/client/actor-handle.ts +61 -33
- package/src/client/client.ts +2 -4
- package/src/client/config.ts +1 -1
- package/src/client/mod.browser.ts +2 -0
- package/src/client/mod.ts +1 -4
- package/src/client/queue.ts +146 -0
- package/src/client/utils.ts +1 -1
- package/src/common/log.ts +1 -1
- package/src/common/utils.ts +3 -3
- package/src/db/config.ts +100 -0
- package/src/db/drizzle/mod.ts +226 -0
- package/src/db/drizzle/sqlite-core.ts +22 -0
- package/src/db/mod.ts +125 -0
- package/src/db/shared.ts +92 -0
- package/src/db/sqlite-vfs.ts +12 -0
- package/src/driver-helpers/mod.ts +1 -0
- package/src/driver-test-suite/mod.ts +69 -43
- package/src/driver-test-suite/tests/access-control.ts +218 -0
- package/src/driver-test-suite/tests/actor-db-raw.ts +73 -0
- package/src/driver-test-suite/tests/actor-db.ts +394 -0
- package/src/driver-test-suite/tests/actor-inspector.ts +259 -358
- package/src/driver-test-suite/tests/actor-kv.ts +41 -20
- package/src/driver-test-suite/tests/actor-queue.ts +324 -0
- package/src/driver-test-suite/tests/actor-run.ts +181 -0
- package/src/driver-test-suite/tests/actor-schedule.ts +5 -2
- package/src/driver-test-suite/tests/actor-sleep.ts +3 -3
- package/src/driver-test-suite/tests/actor-stateless.ts +70 -0
- package/src/driver-test-suite/tests/actor-workflow.ts +108 -0
- package/src/driver-test-suite/tests/manager-driver.ts +11 -0
- package/src/driver-test-suite/tests/raw-http-request-properties.ts +1 -1
- package/src/driver-test-suite/tests/raw-websocket.ts +12 -12
- package/src/drivers/default.ts +7 -2
- package/src/drivers/engine/actor-driver.ts +45 -37
- package/src/drivers/engine/config.ts +1 -1
- package/src/drivers/file-system/actor.ts +20 -2
- package/src/drivers/file-system/global-state.ts +569 -258
- package/src/drivers/file-system/kv-limits.ts +70 -0
- package/src/drivers/file-system/manager.ts +22 -6
- package/src/drivers/file-system/mod.ts +39 -16
- package/src/drivers/file-system/sqlite-runtime.ts +210 -0
- package/src/inspector/actor-inspector.ts +224 -102
- package/src/inspector/config.ts +1 -1
- package/src/inspector/handler.ts +102 -20
- package/src/inspector/mod.browser.ts +8 -0
- package/src/inspector/mod.ts +2 -0
- package/src/inspector/serve-ui.ts +40 -0
- package/src/inspector/transport.ts +18 -0
- package/src/inspector/utils.ts +5 -39
- package/src/manager/gateway.ts +1 -1
- package/src/manager/protocol/mod.ts +1 -1
- package/src/manager/protocol/query.ts +1 -1
- package/src/manager/router-schema.ts +1 -1
- package/src/manager/router.ts +38 -12
- package/src/manager-api/actors.ts +1 -1
- package/src/manager-api/common.ts +1 -1
- package/src/registry/config/driver.ts +1 -1
- package/src/registry/config/index.ts +212 -43
- package/src/registry/config/legacy-runner.ts +1 -1
- package/src/registry/config/runner.ts +1 -1
- package/src/registry/config/serverless.ts +1 -1
- package/src/registry/index.ts +7 -5
- package/src/remote-manager-driver/api-utils.ts +1 -1
- package/src/schemas/actor-inspector/mod.ts +1 -1
- package/src/schemas/actor-inspector/versioned.ts +195 -8
- package/src/schemas/actor-persist/versioned.ts +87 -7
- package/src/schemas/client-protocol/mod.ts +1 -1
- package/src/schemas/client-protocol/versioned.ts +127 -11
- package/src/schemas/client-protocol-zod/mod.ts +16 -1
- package/src/schemas/persist/mod.ts +1 -0
- package/src/schemas/transport/mod.ts +1 -0
- package/src/serde.ts +1 -1
- package/src/serve-test-suite/mod.ts +10 -9
- package/src/test/mod.ts +15 -56
- package/src/utils/endpoint-parser.test.ts +1 -1
- package/src/utils/endpoint-parser.ts +1 -1
- package/src/utils/env-vars.ts +12 -1
- package/src/utils/node.ts +15 -2
- package/src/utils.test.ts +34 -0
- package/src/utils.ts +140 -6
- package/src/workflow/constants.ts +2 -0
- package/src/workflow/context.ts +532 -0
- package/src/workflow/driver.ts +191 -0
- package/src/workflow/inspector.ts +268 -0
- package/src/workflow/mod.ts +122 -0
- package/dist/tsup/chunk-2IJTYN6K.cjs +0 -278
- package/dist/tsup/chunk-2IJTYN6K.cjs.map +0 -1
- package/dist/tsup/chunk-2XQS746M.cjs.map +0 -1
- package/dist/tsup/chunk-3VP5CSHV.cjs +0 -114
- package/dist/tsup/chunk-3VP5CSHV.cjs.map +0 -1
- package/dist/tsup/chunk-AQFSQMBG.js +0 -114
- package/dist/tsup/chunk-AQFSQMBG.js.map +0 -1
- package/dist/tsup/chunk-E6ZE2YEA.js +0 -664
- package/dist/tsup/chunk-E6ZE2YEA.js.map +0 -1
- package/dist/tsup/chunk-FJ3KTN4V.js.map +0 -1
- package/dist/tsup/chunk-GBENOENJ.cjs +0 -8
- package/dist/tsup/chunk-GBENOENJ.cjs.map +0 -1
- package/dist/tsup/chunk-GD7UXGOE.cjs +0 -4762
- package/dist/tsup/chunk-GD7UXGOE.cjs.map +0 -1
- package/dist/tsup/chunk-GMAVRZSF.js.map +0 -1
- package/dist/tsup/chunk-H4TB4X25.cjs.map +0 -1
- package/dist/tsup/chunk-JDAD2YFA.js.map +0 -1
- package/dist/tsup/chunk-KCOVZOPS.js +0 -1946
- package/dist/tsup/chunk-KCOVZOPS.js.map +0 -1
- package/dist/tsup/chunk-KDFWJKMJ.cjs +0 -664
- package/dist/tsup/chunk-KDFWJKMJ.cjs.map +0 -1
- package/dist/tsup/chunk-LFVF5SCU.js.map +0 -1
- package/dist/tsup/chunk-Q6W7RJJP.js.map +0 -1
- package/dist/tsup/chunk-RUW5CZ5Z.cjs +0 -1949
- package/dist/tsup/chunk-RUW5CZ5Z.cjs.map +0 -1
- package/dist/tsup/chunk-RZW2DNND.cjs.map +0 -1
- package/dist/tsup/chunk-TCOEBUUE.js +0 -278
- package/dist/tsup/chunk-TCOEBUUE.js.map +0 -1
- package/dist/tsup/chunk-X35U3YNX.cjs.map +0 -1
- package/dist/tsup/keys-Chhy4ylv.d.cts +0 -8
- package/dist/tsup/keys-Chhy4ylv.d.ts +0 -8
- package/dist/tsup/v1-Gq4avTK3.d.cts +0 -240
- package/dist/tsup/v1-Gq4avTK3.d.ts +0 -240
- /package/dist/tsup/{chunk-XXGJCOL6.js.map → chunk-A6YIZWTK.js.map} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _chunkHAZL2EPKcjs = require('../chunk-HAZL2EPK.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
@@ -65,8 +66,6 @@
|
|
|
65
66
|
|
|
66
67
|
|
|
67
68
|
|
|
68
|
-
var _chunkKDFWJKMJcjs = require('../chunk-KDFWJKMJ.cjs');
|
|
69
|
-
require('../chunk-GBENOENJ.cjs');
|
|
70
69
|
|
|
71
70
|
|
|
72
71
|
|
|
@@ -79,6 +78,10 @@ require('../chunk-GBENOENJ.cjs');
|
|
|
79
78
|
|
|
80
79
|
|
|
81
80
|
|
|
81
|
+
var _chunkNIYZDWMWcjs = require('../chunk-NIYZDWMW.cjs');
|
|
82
|
+
require('../chunk-LW6KLR7A.cjs');
|
|
83
|
+
require('../chunk-L47L3ZWJ.cjs');
|
|
84
|
+
require('../chunk-HDQ2JUQT.cjs');
|
|
82
85
|
|
|
83
86
|
|
|
84
87
|
|
|
@@ -134,5 +137,28 @@ require('../chunk-GBENOENJ.cjs');
|
|
|
134
137
|
|
|
135
138
|
|
|
136
139
|
|
|
137
|
-
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
exports.CURRENT_VERSION = _chunkNIYZDWMWcjs.CURRENT_VERSION; exports.TO_CLIENT_VERSIONED = _chunkNIYZDWMWcjs.TO_CLIENT_VERSIONED; exports.TO_SERVER_VERSIONED = _chunkNIYZDWMWcjs.TO_SERVER_VERSIONED; exports.decodeToClient = _chunkNIYZDWMWcjs.decodeToClient; exports.decodeToServer = _chunkNIYZDWMWcjs.decodeToServer; exports.decodeWorkflowHistoryTransport = _chunkHAZL2EPKcjs.decodeWorkflowHistoryTransport; exports.encodeToClient = _chunkNIYZDWMWcjs.encodeToClient; exports.encodeToServer = _chunkNIYZDWMWcjs.encodeToServer; exports.encodeWorkflowHistoryTransport = _chunkHAZL2EPKcjs.encodeWorkflowHistoryTransport; exports.readActionRequest = _chunkNIYZDWMWcjs.readActionRequest; exports.readActionResponse = _chunkNIYZDWMWcjs.readActionResponse; exports.readConnection = _chunkNIYZDWMWcjs.readConnection; exports.readConnectionsRequest = _chunkNIYZDWMWcjs.readConnectionsRequest; exports.readConnectionsResponse = _chunkNIYZDWMWcjs.readConnectionsResponse; exports.readConnectionsUpdated = _chunkNIYZDWMWcjs.readConnectionsUpdated; exports.readDatabaseSchemaRequest = _chunkNIYZDWMWcjs.readDatabaseSchemaRequest; exports.readDatabaseSchemaResponse = _chunkNIYZDWMWcjs.readDatabaseSchemaResponse; exports.readDatabaseTableRowsRequest = _chunkNIYZDWMWcjs.readDatabaseTableRowsRequest; exports.readDatabaseTableRowsResponse = _chunkNIYZDWMWcjs.readDatabaseTableRowsResponse; exports.readError = _chunkNIYZDWMWcjs.readError; exports.readInit = _chunkNIYZDWMWcjs.readInit; exports.readPatchStateRequest = _chunkNIYZDWMWcjs.readPatchStateRequest; exports.readQueueMessageSummary = _chunkNIYZDWMWcjs.readQueueMessageSummary; exports.readQueueRequest = _chunkNIYZDWMWcjs.readQueueRequest; exports.readQueueResponse = _chunkNIYZDWMWcjs.readQueueResponse; exports.readQueueStatus = _chunkNIYZDWMWcjs.readQueueStatus; exports.readQueueUpdated = _chunkNIYZDWMWcjs.readQueueUpdated; exports.readRpcsListRequest = _chunkNIYZDWMWcjs.readRpcsListRequest; exports.readRpcsListResponse = _chunkNIYZDWMWcjs.readRpcsListResponse; exports.readState = _chunkNIYZDWMWcjs.readState; exports.readStateRequest = _chunkNIYZDWMWcjs.readStateRequest; exports.readStateResponse = _chunkNIYZDWMWcjs.readStateResponse; exports.readStateUpdated = _chunkNIYZDWMWcjs.readStateUpdated; exports.readToClient = _chunkNIYZDWMWcjs.readToClient; exports.readToClientBody = _chunkNIYZDWMWcjs.readToClientBody; exports.readToServer = _chunkNIYZDWMWcjs.readToServer; exports.readToServerBody = _chunkNIYZDWMWcjs.readToServerBody; exports.readTraceQueryRequest = _chunkNIYZDWMWcjs.readTraceQueryRequest; exports.readTraceQueryResponse = _chunkNIYZDWMWcjs.readTraceQueryResponse; exports.readWorkflowHistory = _chunkNIYZDWMWcjs.readWorkflowHistory; exports.readWorkflowHistoryRequest = _chunkNIYZDWMWcjs.readWorkflowHistoryRequest; exports.readWorkflowHistoryResponse = _chunkNIYZDWMWcjs.readWorkflowHistoryResponse; exports.readWorkflowHistoryUpdated = _chunkNIYZDWMWcjs.readWorkflowHistoryUpdated; exports.writeActionRequest = _chunkNIYZDWMWcjs.writeActionRequest; exports.writeActionResponse = _chunkNIYZDWMWcjs.writeActionResponse; exports.writeConnection = _chunkNIYZDWMWcjs.writeConnection; exports.writeConnectionsRequest = _chunkNIYZDWMWcjs.writeConnectionsRequest; exports.writeConnectionsResponse = _chunkNIYZDWMWcjs.writeConnectionsResponse; exports.writeConnectionsUpdated = _chunkNIYZDWMWcjs.writeConnectionsUpdated; exports.writeDatabaseSchemaRequest = _chunkNIYZDWMWcjs.writeDatabaseSchemaRequest; exports.writeDatabaseSchemaResponse = _chunkNIYZDWMWcjs.writeDatabaseSchemaResponse; exports.writeDatabaseTableRowsRequest = _chunkNIYZDWMWcjs.writeDatabaseTableRowsRequest; exports.writeDatabaseTableRowsResponse = _chunkNIYZDWMWcjs.writeDatabaseTableRowsResponse; exports.writeError = _chunkNIYZDWMWcjs.writeError; exports.writeInit = _chunkNIYZDWMWcjs.writeInit; exports.writePatchStateRequest = _chunkNIYZDWMWcjs.writePatchStateRequest; exports.writeQueueMessageSummary = _chunkNIYZDWMWcjs.writeQueueMessageSummary; exports.writeQueueRequest = _chunkNIYZDWMWcjs.writeQueueRequest; exports.writeQueueResponse = _chunkNIYZDWMWcjs.writeQueueResponse; exports.writeQueueStatus = _chunkNIYZDWMWcjs.writeQueueStatus; exports.writeQueueUpdated = _chunkNIYZDWMWcjs.writeQueueUpdated; exports.writeRpcsListRequest = _chunkNIYZDWMWcjs.writeRpcsListRequest; exports.writeRpcsListResponse = _chunkNIYZDWMWcjs.writeRpcsListResponse; exports.writeState = _chunkNIYZDWMWcjs.writeState; exports.writeStateRequest = _chunkNIYZDWMWcjs.writeStateRequest; exports.writeStateResponse = _chunkNIYZDWMWcjs.writeStateResponse; exports.writeStateUpdated = _chunkNIYZDWMWcjs.writeStateUpdated; exports.writeToClient = _chunkNIYZDWMWcjs.writeToClient; exports.writeToClientBody = _chunkNIYZDWMWcjs.writeToClientBody; exports.writeToServer = _chunkNIYZDWMWcjs.writeToServer; exports.writeToServerBody = _chunkNIYZDWMWcjs.writeToServerBody; exports.writeTraceQueryRequest = _chunkNIYZDWMWcjs.writeTraceQueryRequest; exports.writeTraceQueryResponse = _chunkNIYZDWMWcjs.writeTraceQueryResponse; exports.writeWorkflowHistory = _chunkNIYZDWMWcjs.writeWorkflowHistory; exports.writeWorkflowHistoryRequest = _chunkNIYZDWMWcjs.writeWorkflowHistoryRequest; exports.writeWorkflowHistoryResponse = _chunkNIYZDWMWcjs.writeWorkflowHistoryResponse; exports.writeWorkflowHistoryUpdated = _chunkNIYZDWMWcjs.writeWorkflowHistoryUpdated;
|
|
138
164
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/inspector/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/inspector/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,ovKAAC","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/inspector/mod.cjs"}
|
|
@@ -1,9 +1,130 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
export {
|
|
1
|
+
import { T as ToClient, a as ToServer } from '../v3-DnYObHH3.cjs';
|
|
2
|
+
export { A as ActionRequest, b as ActionResponse, C as Connection, c as ConnectionsRequest, d as ConnectionsResponse, e as ConnectionsUpdated, D as DatabaseSchemaRequest, f as DatabaseSchemaResponse, g as DatabaseTableRowsRequest, h as DatabaseTableRowsResponse, E as Error, I as Init, P as PatchStateRequest, Q as QueueMessageSummary, i as QueueRequest, j as QueueResponse, k as QueueStatus, l as QueueUpdated, R as RpcsListRequest, m as RpcsListResponse, S as State, n as StateRequest, o as StateResponse, p as StateUpdated, q as ToClientBody, r as ToServerBody, s as TraceQueryRequest, t as TraceQueryResponse, W as WorkflowHistory, u as WorkflowHistoryRequest, v as WorkflowHistoryResponse, w as WorkflowHistoryUpdated, x as decodeToClient, y as decodeToServer, z as encodeToClient, B as encodeToServer, F as readActionRequest, G as readActionResponse, H as readConnection, J as readConnectionsRequest, K as readConnectionsResponse, L as readConnectionsUpdated, M as readDatabaseSchemaRequest, N as readDatabaseSchemaResponse, O as readDatabaseTableRowsRequest, U as readDatabaseTableRowsResponse, V as readError, X as readInit, Y as readPatchStateRequest, Z as readQueueMessageSummary, _ as readQueueRequest, $ as readQueueResponse, a0 as readQueueStatus, a1 as readQueueUpdated, a2 as readRpcsListRequest, a3 as readRpcsListResponse, a4 as readState, a5 as readStateRequest, a6 as readStateResponse, a7 as readStateUpdated, a8 as readToClient, a9 as readToClientBody, aa as readToServer, ab as readToServerBody, ac as readTraceQueryRequest, ad as readTraceQueryResponse, ae as readWorkflowHistory, af as readWorkflowHistoryRequest, ag as readWorkflowHistoryResponse, ah as readWorkflowHistoryUpdated, ai as uint, aj as writeActionRequest, ak as writeActionResponse, al as writeConnection, am as writeConnectionsRequest, an as writeConnectionsResponse, ao as writeConnectionsUpdated, ap as writeDatabaseSchemaRequest, aq as writeDatabaseSchemaResponse, ar as writeDatabaseTableRowsRequest, as as writeDatabaseTableRowsResponse, at as writeError, au as writeInit, av as writePatchStateRequest, aw as writeQueueMessageSummary, ax as writeQueueRequest, ay as writeQueueResponse, az as writeQueueStatus, aA as writeQueueUpdated, aB as writeRpcsListRequest, aC as writeRpcsListResponse, aD as writeState, aE as writeStateRequest, aF as writeStateResponse, aG as writeStateUpdated, aH as writeToClient, aI as writeToClientBody, aJ as writeToServer, aK as writeToServerBody, aL as writeTraceQueryRequest, aM as writeTraceQueryResponse, aN as writeWorkflowHistory, aO as writeWorkflowHistoryRequest, aP as writeWorkflowHistoryResponse, aQ as writeWorkflowHistoryUpdated } from '../v3-DnYObHH3.cjs';
|
|
3
3
|
import * as vbare from 'vbare';
|
|
4
4
|
import '@rivetkit/bare-ts';
|
|
5
5
|
|
|
6
|
+
declare const CURRENT_VERSION = 3;
|
|
6
7
|
declare const TO_SERVER_VERSIONED: vbare.VersionedDataHandler<ToServer>;
|
|
7
8
|
declare const TO_CLIENT_VERSIONED: vbare.VersionedDataHandler<ToClient>;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
type u32 = number;
|
|
11
|
+
type u64 = bigint;
|
|
12
|
+
type WorkflowCbor = ArrayBuffer;
|
|
13
|
+
type WorkflowNameIndex = u32;
|
|
14
|
+
type WorkflowLoopIterationMarker = {
|
|
15
|
+
readonly loop: WorkflowNameIndex;
|
|
16
|
+
readonly iteration: u32;
|
|
17
|
+
};
|
|
18
|
+
type WorkflowPathSegment = {
|
|
19
|
+
readonly tag: "WorkflowNameIndex";
|
|
20
|
+
readonly val: WorkflowNameIndex;
|
|
21
|
+
} | {
|
|
22
|
+
readonly tag: "WorkflowLoopIterationMarker";
|
|
23
|
+
readonly val: WorkflowLoopIterationMarker;
|
|
24
|
+
};
|
|
25
|
+
type WorkflowLocation = readonly WorkflowPathSegment[];
|
|
26
|
+
declare enum WorkflowEntryStatus {
|
|
27
|
+
PENDING = "PENDING",
|
|
28
|
+
RUNNING = "RUNNING",
|
|
29
|
+
COMPLETED = "COMPLETED",
|
|
30
|
+
FAILED = "FAILED",
|
|
31
|
+
EXHAUSTED = "EXHAUSTED"
|
|
32
|
+
}
|
|
33
|
+
declare enum WorkflowSleepState {
|
|
34
|
+
PENDING = "PENDING",
|
|
35
|
+
COMPLETED = "COMPLETED",
|
|
36
|
+
INTERRUPTED = "INTERRUPTED"
|
|
37
|
+
}
|
|
38
|
+
declare enum WorkflowBranchStatusType {
|
|
39
|
+
PENDING = "PENDING",
|
|
40
|
+
RUNNING = "RUNNING",
|
|
41
|
+
COMPLETED = "COMPLETED",
|
|
42
|
+
FAILED = "FAILED",
|
|
43
|
+
CANCELLED = "CANCELLED"
|
|
44
|
+
}
|
|
45
|
+
type WorkflowStepEntry = {
|
|
46
|
+
readonly output: WorkflowCbor | null;
|
|
47
|
+
readonly error: string | null;
|
|
48
|
+
};
|
|
49
|
+
type WorkflowLoopEntry = {
|
|
50
|
+
readonly state: WorkflowCbor;
|
|
51
|
+
readonly iteration: u32;
|
|
52
|
+
readonly output: WorkflowCbor | null;
|
|
53
|
+
};
|
|
54
|
+
type WorkflowSleepEntry = {
|
|
55
|
+
readonly deadline: u64;
|
|
56
|
+
readonly state: WorkflowSleepState;
|
|
57
|
+
};
|
|
58
|
+
type WorkflowMessageEntry = {
|
|
59
|
+
readonly name: string;
|
|
60
|
+
readonly messageData: WorkflowCbor;
|
|
61
|
+
};
|
|
62
|
+
type WorkflowRollbackCheckpointEntry = {
|
|
63
|
+
readonly name: string;
|
|
64
|
+
};
|
|
65
|
+
type WorkflowBranchStatus = {
|
|
66
|
+
readonly status: WorkflowBranchStatusType;
|
|
67
|
+
readonly output: WorkflowCbor | null;
|
|
68
|
+
readonly error: string | null;
|
|
69
|
+
};
|
|
70
|
+
type WorkflowJoinEntry = {
|
|
71
|
+
readonly branches: ReadonlyMap<string, WorkflowBranchStatus>;
|
|
72
|
+
};
|
|
73
|
+
type WorkflowRaceEntry = {
|
|
74
|
+
readonly winner: string | null;
|
|
75
|
+
readonly branches: ReadonlyMap<string, WorkflowBranchStatus>;
|
|
76
|
+
};
|
|
77
|
+
type WorkflowRemovedEntry = {
|
|
78
|
+
readonly originalType: string;
|
|
79
|
+
readonly originalName: string | null;
|
|
80
|
+
};
|
|
81
|
+
type WorkflowEntryKind = {
|
|
82
|
+
readonly tag: "WorkflowStepEntry";
|
|
83
|
+
readonly val: WorkflowStepEntry;
|
|
84
|
+
} | {
|
|
85
|
+
readonly tag: "WorkflowLoopEntry";
|
|
86
|
+
readonly val: WorkflowLoopEntry;
|
|
87
|
+
} | {
|
|
88
|
+
readonly tag: "WorkflowSleepEntry";
|
|
89
|
+
readonly val: WorkflowSleepEntry;
|
|
90
|
+
} | {
|
|
91
|
+
readonly tag: "WorkflowMessageEntry";
|
|
92
|
+
readonly val: WorkflowMessageEntry;
|
|
93
|
+
} | {
|
|
94
|
+
readonly tag: "WorkflowRollbackCheckpointEntry";
|
|
95
|
+
readonly val: WorkflowRollbackCheckpointEntry;
|
|
96
|
+
} | {
|
|
97
|
+
readonly tag: "WorkflowJoinEntry";
|
|
98
|
+
readonly val: WorkflowJoinEntry;
|
|
99
|
+
} | {
|
|
100
|
+
readonly tag: "WorkflowRaceEntry";
|
|
101
|
+
readonly val: WorkflowRaceEntry;
|
|
102
|
+
} | {
|
|
103
|
+
readonly tag: "WorkflowRemovedEntry";
|
|
104
|
+
readonly val: WorkflowRemovedEntry;
|
|
105
|
+
};
|
|
106
|
+
type WorkflowEntry = {
|
|
107
|
+
readonly id: string;
|
|
108
|
+
readonly location: WorkflowLocation;
|
|
109
|
+
readonly kind: WorkflowEntryKind;
|
|
110
|
+
};
|
|
111
|
+
type WorkflowEntryMetadata = {
|
|
112
|
+
readonly status: WorkflowEntryStatus;
|
|
113
|
+
readonly error: string | null;
|
|
114
|
+
readonly attempts: u32;
|
|
115
|
+
readonly lastAttemptAt: u64;
|
|
116
|
+
readonly createdAt: u64;
|
|
117
|
+
readonly completedAt: u64 | null;
|
|
118
|
+
readonly rollbackCompletedAt: u64 | null;
|
|
119
|
+
readonly rollbackError: string | null;
|
|
120
|
+
};
|
|
121
|
+
type WorkflowHistory = {
|
|
122
|
+
readonly nameRegistry: readonly string[];
|
|
123
|
+
readonly entries: readonly WorkflowEntry[];
|
|
124
|
+
readonly entryMetadata: ReadonlyMap<string, WorkflowEntryMetadata>;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
declare function encodeWorkflowHistoryTransport(history: WorkflowHistory): ArrayBuffer;
|
|
128
|
+
declare function decodeWorkflowHistoryTransport(data: ArrayBuffer | ArrayBufferView): WorkflowHistory;
|
|
129
|
+
|
|
130
|
+
export { CURRENT_VERSION, TO_CLIENT_VERSIONED, TO_SERVER_VERSIONED, ToClient, ToServer, type WorkflowHistory as TransportWorkflowHistory, decodeWorkflowHistoryTransport, encodeWorkflowHistoryTransport };
|
|
@@ -1,9 +1,130 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
export {
|
|
1
|
+
import { T as ToClient, a as ToServer } from '../v3-DnYObHH3.js';
|
|
2
|
+
export { A as ActionRequest, b as ActionResponse, C as Connection, c as ConnectionsRequest, d as ConnectionsResponse, e as ConnectionsUpdated, D as DatabaseSchemaRequest, f as DatabaseSchemaResponse, g as DatabaseTableRowsRequest, h as DatabaseTableRowsResponse, E as Error, I as Init, P as PatchStateRequest, Q as QueueMessageSummary, i as QueueRequest, j as QueueResponse, k as QueueStatus, l as QueueUpdated, R as RpcsListRequest, m as RpcsListResponse, S as State, n as StateRequest, o as StateResponse, p as StateUpdated, q as ToClientBody, r as ToServerBody, s as TraceQueryRequest, t as TraceQueryResponse, W as WorkflowHistory, u as WorkflowHistoryRequest, v as WorkflowHistoryResponse, w as WorkflowHistoryUpdated, x as decodeToClient, y as decodeToServer, z as encodeToClient, B as encodeToServer, F as readActionRequest, G as readActionResponse, H as readConnection, J as readConnectionsRequest, K as readConnectionsResponse, L as readConnectionsUpdated, M as readDatabaseSchemaRequest, N as readDatabaseSchemaResponse, O as readDatabaseTableRowsRequest, U as readDatabaseTableRowsResponse, V as readError, X as readInit, Y as readPatchStateRequest, Z as readQueueMessageSummary, _ as readQueueRequest, $ as readQueueResponse, a0 as readQueueStatus, a1 as readQueueUpdated, a2 as readRpcsListRequest, a3 as readRpcsListResponse, a4 as readState, a5 as readStateRequest, a6 as readStateResponse, a7 as readStateUpdated, a8 as readToClient, a9 as readToClientBody, aa as readToServer, ab as readToServerBody, ac as readTraceQueryRequest, ad as readTraceQueryResponse, ae as readWorkflowHistory, af as readWorkflowHistoryRequest, ag as readWorkflowHistoryResponse, ah as readWorkflowHistoryUpdated, ai as uint, aj as writeActionRequest, ak as writeActionResponse, al as writeConnection, am as writeConnectionsRequest, an as writeConnectionsResponse, ao as writeConnectionsUpdated, ap as writeDatabaseSchemaRequest, aq as writeDatabaseSchemaResponse, ar as writeDatabaseTableRowsRequest, as as writeDatabaseTableRowsResponse, at as writeError, au as writeInit, av as writePatchStateRequest, aw as writeQueueMessageSummary, ax as writeQueueRequest, ay as writeQueueResponse, az as writeQueueStatus, aA as writeQueueUpdated, aB as writeRpcsListRequest, aC as writeRpcsListResponse, aD as writeState, aE as writeStateRequest, aF as writeStateResponse, aG as writeStateUpdated, aH as writeToClient, aI as writeToClientBody, aJ as writeToServer, aK as writeToServerBody, aL as writeTraceQueryRequest, aM as writeTraceQueryResponse, aN as writeWorkflowHistory, aO as writeWorkflowHistoryRequest, aP as writeWorkflowHistoryResponse, aQ as writeWorkflowHistoryUpdated } from '../v3-DnYObHH3.js';
|
|
3
3
|
import * as vbare from 'vbare';
|
|
4
4
|
import '@rivetkit/bare-ts';
|
|
5
5
|
|
|
6
|
+
declare const CURRENT_VERSION = 3;
|
|
6
7
|
declare const TO_SERVER_VERSIONED: vbare.VersionedDataHandler<ToServer>;
|
|
7
8
|
declare const TO_CLIENT_VERSIONED: vbare.VersionedDataHandler<ToClient>;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
type u32 = number;
|
|
11
|
+
type u64 = bigint;
|
|
12
|
+
type WorkflowCbor = ArrayBuffer;
|
|
13
|
+
type WorkflowNameIndex = u32;
|
|
14
|
+
type WorkflowLoopIterationMarker = {
|
|
15
|
+
readonly loop: WorkflowNameIndex;
|
|
16
|
+
readonly iteration: u32;
|
|
17
|
+
};
|
|
18
|
+
type WorkflowPathSegment = {
|
|
19
|
+
readonly tag: "WorkflowNameIndex";
|
|
20
|
+
readonly val: WorkflowNameIndex;
|
|
21
|
+
} | {
|
|
22
|
+
readonly tag: "WorkflowLoopIterationMarker";
|
|
23
|
+
readonly val: WorkflowLoopIterationMarker;
|
|
24
|
+
};
|
|
25
|
+
type WorkflowLocation = readonly WorkflowPathSegment[];
|
|
26
|
+
declare enum WorkflowEntryStatus {
|
|
27
|
+
PENDING = "PENDING",
|
|
28
|
+
RUNNING = "RUNNING",
|
|
29
|
+
COMPLETED = "COMPLETED",
|
|
30
|
+
FAILED = "FAILED",
|
|
31
|
+
EXHAUSTED = "EXHAUSTED"
|
|
32
|
+
}
|
|
33
|
+
declare enum WorkflowSleepState {
|
|
34
|
+
PENDING = "PENDING",
|
|
35
|
+
COMPLETED = "COMPLETED",
|
|
36
|
+
INTERRUPTED = "INTERRUPTED"
|
|
37
|
+
}
|
|
38
|
+
declare enum WorkflowBranchStatusType {
|
|
39
|
+
PENDING = "PENDING",
|
|
40
|
+
RUNNING = "RUNNING",
|
|
41
|
+
COMPLETED = "COMPLETED",
|
|
42
|
+
FAILED = "FAILED",
|
|
43
|
+
CANCELLED = "CANCELLED"
|
|
44
|
+
}
|
|
45
|
+
type WorkflowStepEntry = {
|
|
46
|
+
readonly output: WorkflowCbor | null;
|
|
47
|
+
readonly error: string | null;
|
|
48
|
+
};
|
|
49
|
+
type WorkflowLoopEntry = {
|
|
50
|
+
readonly state: WorkflowCbor;
|
|
51
|
+
readonly iteration: u32;
|
|
52
|
+
readonly output: WorkflowCbor | null;
|
|
53
|
+
};
|
|
54
|
+
type WorkflowSleepEntry = {
|
|
55
|
+
readonly deadline: u64;
|
|
56
|
+
readonly state: WorkflowSleepState;
|
|
57
|
+
};
|
|
58
|
+
type WorkflowMessageEntry = {
|
|
59
|
+
readonly name: string;
|
|
60
|
+
readonly messageData: WorkflowCbor;
|
|
61
|
+
};
|
|
62
|
+
type WorkflowRollbackCheckpointEntry = {
|
|
63
|
+
readonly name: string;
|
|
64
|
+
};
|
|
65
|
+
type WorkflowBranchStatus = {
|
|
66
|
+
readonly status: WorkflowBranchStatusType;
|
|
67
|
+
readonly output: WorkflowCbor | null;
|
|
68
|
+
readonly error: string | null;
|
|
69
|
+
};
|
|
70
|
+
type WorkflowJoinEntry = {
|
|
71
|
+
readonly branches: ReadonlyMap<string, WorkflowBranchStatus>;
|
|
72
|
+
};
|
|
73
|
+
type WorkflowRaceEntry = {
|
|
74
|
+
readonly winner: string | null;
|
|
75
|
+
readonly branches: ReadonlyMap<string, WorkflowBranchStatus>;
|
|
76
|
+
};
|
|
77
|
+
type WorkflowRemovedEntry = {
|
|
78
|
+
readonly originalType: string;
|
|
79
|
+
readonly originalName: string | null;
|
|
80
|
+
};
|
|
81
|
+
type WorkflowEntryKind = {
|
|
82
|
+
readonly tag: "WorkflowStepEntry";
|
|
83
|
+
readonly val: WorkflowStepEntry;
|
|
84
|
+
} | {
|
|
85
|
+
readonly tag: "WorkflowLoopEntry";
|
|
86
|
+
readonly val: WorkflowLoopEntry;
|
|
87
|
+
} | {
|
|
88
|
+
readonly tag: "WorkflowSleepEntry";
|
|
89
|
+
readonly val: WorkflowSleepEntry;
|
|
90
|
+
} | {
|
|
91
|
+
readonly tag: "WorkflowMessageEntry";
|
|
92
|
+
readonly val: WorkflowMessageEntry;
|
|
93
|
+
} | {
|
|
94
|
+
readonly tag: "WorkflowRollbackCheckpointEntry";
|
|
95
|
+
readonly val: WorkflowRollbackCheckpointEntry;
|
|
96
|
+
} | {
|
|
97
|
+
readonly tag: "WorkflowJoinEntry";
|
|
98
|
+
readonly val: WorkflowJoinEntry;
|
|
99
|
+
} | {
|
|
100
|
+
readonly tag: "WorkflowRaceEntry";
|
|
101
|
+
readonly val: WorkflowRaceEntry;
|
|
102
|
+
} | {
|
|
103
|
+
readonly tag: "WorkflowRemovedEntry";
|
|
104
|
+
readonly val: WorkflowRemovedEntry;
|
|
105
|
+
};
|
|
106
|
+
type WorkflowEntry = {
|
|
107
|
+
readonly id: string;
|
|
108
|
+
readonly location: WorkflowLocation;
|
|
109
|
+
readonly kind: WorkflowEntryKind;
|
|
110
|
+
};
|
|
111
|
+
type WorkflowEntryMetadata = {
|
|
112
|
+
readonly status: WorkflowEntryStatus;
|
|
113
|
+
readonly error: string | null;
|
|
114
|
+
readonly attempts: u32;
|
|
115
|
+
readonly lastAttemptAt: u64;
|
|
116
|
+
readonly createdAt: u64;
|
|
117
|
+
readonly completedAt: u64 | null;
|
|
118
|
+
readonly rollbackCompletedAt: u64 | null;
|
|
119
|
+
readonly rollbackError: string | null;
|
|
120
|
+
};
|
|
121
|
+
type WorkflowHistory = {
|
|
122
|
+
readonly nameRegistry: readonly string[];
|
|
123
|
+
readonly entries: readonly WorkflowEntry[];
|
|
124
|
+
readonly entryMetadata: ReadonlyMap<string, WorkflowEntryMetadata>;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
declare function encodeWorkflowHistoryTransport(history: WorkflowHistory): ArrayBuffer;
|
|
128
|
+
declare function decodeWorkflowHistoryTransport(data: ArrayBuffer | ArrayBufferView): WorkflowHistory;
|
|
129
|
+
|
|
130
|
+
export { CURRENT_VERSION, TO_CLIENT_VERSIONED, TO_SERVER_VERSIONED, ToClient, ToServer, type WorkflowHistory as TransportWorkflowHistory, decodeWorkflowHistoryTransport, encodeWorkflowHistoryTransport };
|
|
@@ -1,137 +1,164 @@
|
|
|
1
1
|
import {
|
|
2
|
+
decodeWorkflowHistoryTransport,
|
|
3
|
+
encodeWorkflowHistoryTransport
|
|
4
|
+
} from "../chunk-IVG73YCW.js";
|
|
5
|
+
import {
|
|
6
|
+
CURRENT_VERSION,
|
|
2
7
|
TO_CLIENT_VERSIONED,
|
|
3
8
|
TO_SERVER_VERSIONED,
|
|
4
9
|
decodeToClient,
|
|
5
10
|
decodeToServer,
|
|
6
11
|
encodeToClient,
|
|
7
12
|
encodeToServer,
|
|
8
|
-
readActionEvent,
|
|
9
13
|
readActionRequest,
|
|
10
14
|
readActionResponse,
|
|
11
|
-
readBroadcastEvent,
|
|
12
|
-
readClearEventsRequest,
|
|
13
15
|
readConnection,
|
|
14
16
|
readConnectionsRequest,
|
|
15
17
|
readConnectionsResponse,
|
|
16
18
|
readConnectionsUpdated,
|
|
19
|
+
readDatabaseSchemaRequest,
|
|
20
|
+
readDatabaseSchemaResponse,
|
|
21
|
+
readDatabaseTableRowsRequest,
|
|
22
|
+
readDatabaseTableRowsResponse,
|
|
17
23
|
readError,
|
|
18
|
-
readEvent,
|
|
19
|
-
readEventBody,
|
|
20
|
-
readEventsRequest,
|
|
21
|
-
readEventsResponse,
|
|
22
|
-
readEventsUpdated,
|
|
23
|
-
readFiredEvent,
|
|
24
24
|
readInit,
|
|
25
25
|
readPatchStateRequest,
|
|
26
|
+
readQueueMessageSummary,
|
|
27
|
+
readQueueRequest,
|
|
28
|
+
readQueueResponse,
|
|
29
|
+
readQueueStatus,
|
|
30
|
+
readQueueUpdated,
|
|
26
31
|
readRpcsListRequest,
|
|
27
32
|
readRpcsListResponse,
|
|
28
33
|
readState,
|
|
29
34
|
readStateRequest,
|
|
30
35
|
readStateResponse,
|
|
31
36
|
readStateUpdated,
|
|
32
|
-
readSubscribeEvent,
|
|
33
37
|
readToClient,
|
|
34
38
|
readToClientBody,
|
|
35
39
|
readToServer,
|
|
36
40
|
readToServerBody,
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
readTraceQueryRequest,
|
|
42
|
+
readTraceQueryResponse,
|
|
43
|
+
readWorkflowHistory,
|
|
44
|
+
readWorkflowHistoryRequest,
|
|
45
|
+
readWorkflowHistoryResponse,
|
|
46
|
+
readWorkflowHistoryUpdated,
|
|
39
47
|
writeActionRequest,
|
|
40
48
|
writeActionResponse,
|
|
41
|
-
writeBroadcastEvent,
|
|
42
|
-
writeClearEventsRequest,
|
|
43
49
|
writeConnection,
|
|
44
50
|
writeConnectionsRequest,
|
|
45
51
|
writeConnectionsResponse,
|
|
46
52
|
writeConnectionsUpdated,
|
|
53
|
+
writeDatabaseSchemaRequest,
|
|
54
|
+
writeDatabaseSchemaResponse,
|
|
55
|
+
writeDatabaseTableRowsRequest,
|
|
56
|
+
writeDatabaseTableRowsResponse,
|
|
47
57
|
writeError,
|
|
48
|
-
writeEvent,
|
|
49
|
-
writeEventBody,
|
|
50
|
-
writeEventsRequest,
|
|
51
|
-
writeEventsResponse,
|
|
52
|
-
writeEventsUpdated,
|
|
53
|
-
writeFiredEvent,
|
|
54
58
|
writeInit,
|
|
55
59
|
writePatchStateRequest,
|
|
60
|
+
writeQueueMessageSummary,
|
|
61
|
+
writeQueueRequest,
|
|
62
|
+
writeQueueResponse,
|
|
63
|
+
writeQueueStatus,
|
|
64
|
+
writeQueueUpdated,
|
|
56
65
|
writeRpcsListRequest,
|
|
57
66
|
writeRpcsListResponse,
|
|
58
67
|
writeState,
|
|
59
68
|
writeStateRequest,
|
|
60
69
|
writeStateResponse,
|
|
61
70
|
writeStateUpdated,
|
|
62
|
-
writeSubscribeEvent,
|
|
63
71
|
writeToClient,
|
|
64
72
|
writeToClientBody,
|
|
65
73
|
writeToServer,
|
|
66
74
|
writeToServerBody,
|
|
67
|
-
|
|
68
|
-
|
|
75
|
+
writeTraceQueryRequest,
|
|
76
|
+
writeTraceQueryResponse,
|
|
77
|
+
writeWorkflowHistory,
|
|
78
|
+
writeWorkflowHistoryRequest,
|
|
79
|
+
writeWorkflowHistoryResponse,
|
|
80
|
+
writeWorkflowHistoryUpdated
|
|
81
|
+
} from "../chunk-LXUQ667X.js";
|
|
82
|
+
import "../chunk-6LIBPELE.js";
|
|
83
|
+
import "../chunk-7HTNH26M.js";
|
|
84
|
+
import "../chunk-424PT5DM.js";
|
|
69
85
|
export {
|
|
86
|
+
CURRENT_VERSION,
|
|
70
87
|
TO_CLIENT_VERSIONED,
|
|
71
88
|
TO_SERVER_VERSIONED,
|
|
72
89
|
decodeToClient,
|
|
73
90
|
decodeToServer,
|
|
91
|
+
decodeWorkflowHistoryTransport,
|
|
74
92
|
encodeToClient,
|
|
75
93
|
encodeToServer,
|
|
76
|
-
|
|
94
|
+
encodeWorkflowHistoryTransport,
|
|
77
95
|
readActionRequest,
|
|
78
96
|
readActionResponse,
|
|
79
|
-
readBroadcastEvent,
|
|
80
|
-
readClearEventsRequest,
|
|
81
97
|
readConnection,
|
|
82
98
|
readConnectionsRequest,
|
|
83
99
|
readConnectionsResponse,
|
|
84
100
|
readConnectionsUpdated,
|
|
101
|
+
readDatabaseSchemaRequest,
|
|
102
|
+
readDatabaseSchemaResponse,
|
|
103
|
+
readDatabaseTableRowsRequest,
|
|
104
|
+
readDatabaseTableRowsResponse,
|
|
85
105
|
readError,
|
|
86
|
-
readEvent,
|
|
87
|
-
readEventBody,
|
|
88
|
-
readEventsRequest,
|
|
89
|
-
readEventsResponse,
|
|
90
|
-
readEventsUpdated,
|
|
91
|
-
readFiredEvent,
|
|
92
106
|
readInit,
|
|
93
107
|
readPatchStateRequest,
|
|
108
|
+
readQueueMessageSummary,
|
|
109
|
+
readQueueRequest,
|
|
110
|
+
readQueueResponse,
|
|
111
|
+
readQueueStatus,
|
|
112
|
+
readQueueUpdated,
|
|
94
113
|
readRpcsListRequest,
|
|
95
114
|
readRpcsListResponse,
|
|
96
115
|
readState,
|
|
97
116
|
readStateRequest,
|
|
98
117
|
readStateResponse,
|
|
99
118
|
readStateUpdated,
|
|
100
|
-
readSubscribeEvent,
|
|
101
119
|
readToClient,
|
|
102
120
|
readToClientBody,
|
|
103
121
|
readToServer,
|
|
104
122
|
readToServerBody,
|
|
105
|
-
|
|
106
|
-
|
|
123
|
+
readTraceQueryRequest,
|
|
124
|
+
readTraceQueryResponse,
|
|
125
|
+
readWorkflowHistory,
|
|
126
|
+
readWorkflowHistoryRequest,
|
|
127
|
+
readWorkflowHistoryResponse,
|
|
128
|
+
readWorkflowHistoryUpdated,
|
|
107
129
|
writeActionRequest,
|
|
108
130
|
writeActionResponse,
|
|
109
|
-
writeBroadcastEvent,
|
|
110
|
-
writeClearEventsRequest,
|
|
111
131
|
writeConnection,
|
|
112
132
|
writeConnectionsRequest,
|
|
113
133
|
writeConnectionsResponse,
|
|
114
134
|
writeConnectionsUpdated,
|
|
135
|
+
writeDatabaseSchemaRequest,
|
|
136
|
+
writeDatabaseSchemaResponse,
|
|
137
|
+
writeDatabaseTableRowsRequest,
|
|
138
|
+
writeDatabaseTableRowsResponse,
|
|
115
139
|
writeError,
|
|
116
|
-
writeEvent,
|
|
117
|
-
writeEventBody,
|
|
118
|
-
writeEventsRequest,
|
|
119
|
-
writeEventsResponse,
|
|
120
|
-
writeEventsUpdated,
|
|
121
|
-
writeFiredEvent,
|
|
122
140
|
writeInit,
|
|
123
141
|
writePatchStateRequest,
|
|
142
|
+
writeQueueMessageSummary,
|
|
143
|
+
writeQueueRequest,
|
|
144
|
+
writeQueueResponse,
|
|
145
|
+
writeQueueStatus,
|
|
146
|
+
writeQueueUpdated,
|
|
124
147
|
writeRpcsListRequest,
|
|
125
148
|
writeRpcsListResponse,
|
|
126
149
|
writeState,
|
|
127
150
|
writeStateRequest,
|
|
128
151
|
writeStateResponse,
|
|
129
152
|
writeStateUpdated,
|
|
130
|
-
writeSubscribeEvent,
|
|
131
153
|
writeToClient,
|
|
132
154
|
writeToClientBody,
|
|
133
155
|
writeToServer,
|
|
134
156
|
writeToServerBody,
|
|
135
|
-
|
|
157
|
+
writeTraceQueryRequest,
|
|
158
|
+
writeTraceQueryResponse,
|
|
159
|
+
writeWorkflowHistory,
|
|
160
|
+
writeWorkflowHistoryRequest,
|
|
161
|
+
writeWorkflowHistoryResponse,
|
|
162
|
+
writeWorkflowHistoryUpdated
|
|
136
163
|
};
|
|
137
164
|
//# sourceMappingURL=mod.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const KEYS: {
|
|
2
|
+
PERSIST_DATA: Uint8Array<ArrayBuffer>;
|
|
3
|
+
CONN_PREFIX: Uint8Array<ArrayBuffer>;
|
|
4
|
+
INSPECTOR_TOKEN: Uint8Array<ArrayBuffer>;
|
|
5
|
+
KV: Uint8Array<ArrayBuffer>;
|
|
6
|
+
QUEUE_PREFIX: Uint8Array<ArrayBuffer>;
|
|
7
|
+
WORKFLOW_PREFIX: Uint8Array<ArrayBuffer>;
|
|
8
|
+
TRACES_PREFIX: Uint8Array<ArrayBuffer>;
|
|
9
|
+
SQLITE_PREFIX: Uint8Array<ArrayBuffer>;
|
|
10
|
+
};
|
|
11
|
+
declare function makeConnKey(connId: string): Uint8Array;
|
|
12
|
+
|
|
13
|
+
export { KEYS as K, makeConnKey as m };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const KEYS: {
|
|
2
|
+
PERSIST_DATA: Uint8Array<ArrayBuffer>;
|
|
3
|
+
CONN_PREFIX: Uint8Array<ArrayBuffer>;
|
|
4
|
+
INSPECTOR_TOKEN: Uint8Array<ArrayBuffer>;
|
|
5
|
+
KV: Uint8Array<ArrayBuffer>;
|
|
6
|
+
QUEUE_PREFIX: Uint8Array<ArrayBuffer>;
|
|
7
|
+
WORKFLOW_PREFIX: Uint8Array<ArrayBuffer>;
|
|
8
|
+
TRACES_PREFIX: Uint8Array<ArrayBuffer>;
|
|
9
|
+
SQLITE_PREFIX: Uint8Array<ArrayBuffer>;
|
|
10
|
+
};
|
|
11
|
+
declare function makeConnKey(connId: string): Uint8Array;
|
|
12
|
+
|
|
13
|
+
export { KEYS as K, makeConnKey as m };
|