rivetkit 2.1.4 → 2.1.6-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/browser/client.d.ts +593 -588
- package/dist/browser/client.js +215 -35
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.js +109 -10
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/inspector.tar.gz +0 -0
- package/dist/tsup/actor/errors.cjs +2 -2
- package/dist/tsup/actor/errors.js +1 -1
- package/dist/tsup/{actor-router-consts-D29T1Z-K.d.cts → actor-router-consts-DU-1IdQj.d.cts} +1 -1
- package/dist/tsup/{actor-router-consts-D29T1Z-K.d.ts → actor-router-consts-DU-1IdQj.d.ts} +1 -1
- package/dist/tsup/chunk-2ELYUO6C.cjs +112 -0
- package/dist/tsup/chunk-2ELYUO6C.cjs.map +1 -0
- package/dist/tsup/chunk-2LY7RW3Y.cjs +2316 -0
- package/dist/tsup/chunk-2LY7RW3Y.cjs.map +1 -0
- package/dist/tsup/{chunk-L47L3ZWJ.cjs → chunk-6G7ZNM27.cjs} +11 -6
- package/dist/tsup/chunk-6G7ZNM27.cjs.map +1 -0
- package/dist/tsup/{chunk-LK36OGGO.cjs → chunk-A4KEUCB6.cjs} +84 -34
- package/dist/tsup/chunk-A4KEUCB6.cjs.map +1 -0
- package/dist/tsup/{chunk-7HTNH26M.js → chunk-AKUJ5OTO.js} +11 -6
- package/dist/tsup/chunk-AKUJ5OTO.js.map +1 -0
- package/dist/tsup/{chunk-ANKZ2FS6.js → chunk-C22JYHVT.js} +77 -27
- package/dist/tsup/chunk-C22JYHVT.js.map +1 -0
- package/dist/tsup/chunk-C4EB42ET.js +1459 -0
- package/dist/tsup/chunk-C4EB42ET.js.map +1 -0
- package/dist/tsup/chunk-CGGGBIDP.cjs +1459 -0
- package/dist/tsup/chunk-CGGGBIDP.cjs.map +1 -0
- package/dist/tsup/chunk-CMQPDBBR.cjs +1486 -0
- package/dist/tsup/chunk-CMQPDBBR.cjs.map +1 -0
- package/dist/tsup/{chunk-AQD4CBZ2.cjs → chunk-DH6UINWA.cjs} +4 -4
- package/dist/tsup/{chunk-AQD4CBZ2.cjs.map → chunk-DH6UINWA.cjs.map} +1 -1
- package/dist/tsup/chunk-DK46YYCJ.js +1486 -0
- package/dist/tsup/chunk-DK46YYCJ.js.map +1 -0
- package/dist/tsup/chunk-EGWXXBZV.js +2316 -0
- package/dist/tsup/chunk-EGWXXBZV.js.map +1 -0
- package/dist/tsup/{chunk-HBYEYBIC.js → chunk-EONWXYMN.js} +2 -2
- package/dist/tsup/{chunk-N4KRDJ56.js → chunk-GFGRBYO2.js} +35 -6
- package/dist/tsup/chunk-GFGRBYO2.js.map +1 -0
- package/dist/tsup/{chunk-TEUL4UYN.cjs → chunk-GUHXWPGB.cjs} +1515 -1479
- package/dist/tsup/chunk-GUHXWPGB.cjs.map +1 -0
- package/dist/tsup/{chunk-3B6PCYJB.cjs → chunk-HNE2AK6C.cjs} +2375 -3713
- package/dist/tsup/chunk-HNE2AK6C.cjs.map +1 -0
- package/dist/tsup/{chunk-5UEFNG7P.js → chunk-I5I6OALK.js} +2 -2
- package/dist/tsup/chunk-IHQAF2HV.cjs +23 -0
- package/dist/tsup/chunk-IHQAF2HV.cjs.map +1 -0
- package/dist/tsup/{chunk-UWAGLDT6.cjs → chunk-JJNZQDUN.cjs} +667 -2517
- package/dist/tsup/chunk-JJNZQDUN.cjs.map +1 -0
- package/dist/tsup/{chunk-M6H4XIF4.js → chunk-JJSPHLJN.js} +219 -287
- package/dist/tsup/chunk-JJSPHLJN.js.map +1 -0
- package/dist/tsup/chunk-JRKPV5NJ.js +481 -0
- package/dist/tsup/chunk-JRKPV5NJ.js.map +1 -0
- package/dist/tsup/{chunk-VKVNIQRQ.js → chunk-K7MVU5SI.js} +36 -41
- package/dist/tsup/chunk-K7MVU5SI.js.map +1 -0
- package/dist/tsup/{chunk-KJSYAUOM.js → chunk-MLK3GY6P.js} +43 -27
- package/dist/tsup/chunk-MLK3GY6P.js.map +1 -0
- package/dist/tsup/{chunk-4KSHPFXF.cjs → chunk-MPLMTJY5.cjs} +123 -23
- package/dist/tsup/chunk-MPLMTJY5.cjs.map +1 -0
- package/dist/tsup/{chunk-UDMRZR6A.js → chunk-PQWI44WD.js} +1755 -3093
- package/dist/tsup/chunk-PQWI44WD.js.map +1 -0
- package/dist/tsup/{chunk-SR3KQE7Q.cjs → chunk-SQFCIDCG.cjs} +35 -6
- package/dist/tsup/chunk-SQFCIDCG.cjs.map +1 -0
- package/dist/tsup/{chunk-3GTO6H3E.js → chunk-SVHJSM2E.js} +110 -24
- package/dist/tsup/chunk-SVHJSM2E.js.map +1 -0
- package/dist/tsup/chunk-T5KYKM6R.js +49 -0
- package/dist/tsup/chunk-T5KYKM6R.js.map +1 -0
- package/dist/tsup/{chunk-GXRVSSVD.cjs → chunk-TJ7DKW6F.cjs} +123 -37
- package/dist/tsup/chunk-TJ7DKW6F.cjs.map +1 -0
- package/dist/tsup/chunk-UQZRMTM3.js +23 -0
- package/dist/tsup/chunk-UQZRMTM3.js.map +1 -0
- package/dist/tsup/{chunk-QPADHLDU.cjs → chunk-V3JSZR5P.cjs} +3 -3
- package/dist/tsup/{chunk-QPADHLDU.cjs.map → chunk-V3JSZR5P.cjs.map} +1 -1
- package/dist/tsup/{chunk-HKOSZKKZ.cjs → chunk-VBR35EQF.cjs} +271 -339
- package/dist/tsup/chunk-VBR35EQF.cjs.map +1 -0
- package/dist/tsup/{chunk-DZXDUGLL.js → chunk-VWYO36X4.js} +117 -17
- package/dist/tsup/chunk-VWYO36X4.js.map +1 -0
- package/dist/tsup/{chunk-I6PL6QIY.js → chunk-WW27B6DM.js} +1452 -1416
- package/dist/tsup/chunk-WW27B6DM.js.map +1 -0
- package/dist/tsup/chunk-YAE3MEJM.cjs +49 -0
- package/dist/tsup/chunk-YAE3MEJM.cjs.map +1 -0
- package/dist/tsup/{chunk-KTWY3K6Z.js → chunk-YGYGANCA.js} +473 -2323
- package/dist/tsup/chunk-YGYGANCA.js.map +1 -0
- package/dist/tsup/chunk-YZJWZBY5.cjs +481 -0
- package/dist/tsup/chunk-YZJWZBY5.cjs.map +1 -0
- package/dist/tsup/{chunk-ZFY5J2EP.cjs → chunk-ZZLJ5TSM.cjs} +39 -44
- package/dist/tsup/chunk-ZZLJ5TSM.cjs.map +1 -0
- package/dist/tsup/client/mod.cjs +10 -7
- package/dist/tsup/client/mod.cjs.map +1 -1
- package/dist/tsup/client/mod.d.cts +6 -6
- package/dist/tsup/client/mod.d.ts +6 -6
- package/dist/tsup/client/mod.js +11 -8
- package/dist/tsup/common/log.cjs +3 -3
- package/dist/tsup/common/log.js +2 -2
- package/dist/tsup/common/websocket.cjs +4 -4
- package/dist/tsup/common/websocket.js +3 -3
- package/dist/tsup/{config-Qj-zLJPc.d.ts → config-C2Wwnc69.d.ts} +142 -208
- package/dist/tsup/{config-BiNoIHRs.d.ts → config-DROwzBLT.d.cts} +82 -6
- package/dist/tsup/{config-BiNoIHRs.d.cts → config-DROwzBLT.d.ts} +82 -6
- package/dist/tsup/{config-iPj5l1bL.d.cts → config-ehT-_3BB.d.cts} +142 -208
- package/dist/tsup/{context-DzvH1PBK.d.cts → context-DGMJuAyc.d.ts} +16 -3
- package/dist/tsup/{context-CQCMuHND.d.ts → context-Dpp2RJbW.d.cts} +16 -3
- package/dist/tsup/db/drizzle/mod.cjs +3 -3
- package/dist/tsup/db/drizzle/mod.d.cts +1 -1
- package/dist/tsup/db/drizzle/mod.d.ts +1 -1
- package/dist/tsup/db/drizzle/mod.js +2 -2
- package/dist/tsup/db/mod.cjs +3 -3
- package/dist/tsup/db/mod.d.cts +1 -1
- package/dist/tsup/db/mod.d.ts +1 -1
- package/dist/tsup/db/mod.js +2 -2
- package/dist/tsup/{driver-Jo8v-kbU.d.ts → driver-CYZP9QYo.d.ts} +1 -1
- package/dist/tsup/{driver-iV8J-WMv.d.cts → driver-CoTFpipv.d.cts} +1 -1
- package/dist/tsup/driver-helpers/mod.cjs +7 -5
- package/dist/tsup/driver-helpers/mod.cjs.map +1 -1
- package/dist/tsup/driver-helpers/mod.d.cts +17 -18
- package/dist/tsup/driver-helpers/mod.d.ts +17 -18
- package/dist/tsup/driver-helpers/mod.js +11 -9
- package/dist/tsup/driver-test-suite/mod.cjs +1275 -228
- package/dist/tsup/driver-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/driver-test-suite/mod.d.cts +6 -5
- package/dist/tsup/driver-test-suite/mod.d.ts +6 -5
- package/dist/tsup/driver-test-suite/mod.js +1581 -534
- package/dist/tsup/driver-test-suite/mod.js.map +1 -1
- package/dist/tsup/inspector/mod.cjs +4 -4
- package/dist/tsup/inspector/mod.js +3 -3
- package/dist/tsup/mod.cjs +15 -9
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +9 -9
- package/dist/tsup/mod.d.ts +9 -9
- package/dist/tsup/mod.js +19 -13
- package/dist/tsup/sandbox/client.cjs +28 -0
- package/dist/tsup/sandbox/client.cjs.map +1 -0
- package/dist/tsup/sandbox/client.d.cts +88 -0
- package/dist/tsup/sandbox/client.d.ts +88 -0
- package/dist/tsup/sandbox/client.js +28 -0
- package/dist/tsup/sandbox/client.js.map +1 -0
- package/dist/tsup/sandbox/index.cjs +761 -0
- package/dist/tsup/sandbox/index.cjs.map +1 -0
- package/dist/tsup/sandbox/index.d.cts +120 -0
- package/dist/tsup/sandbox/index.d.ts +120 -0
- package/dist/tsup/sandbox/index.js +761 -0
- package/dist/tsup/sandbox/index.js.map +1 -0
- package/dist/tsup/sandbox/providers/computesdk.cjs +3 -0
- package/dist/tsup/sandbox/providers/computesdk.cjs.map +1 -0
- package/dist/tsup/sandbox/providers/computesdk.d.cts +7 -0
- package/dist/tsup/sandbox/providers/computesdk.d.ts +7 -0
- package/dist/tsup/sandbox/providers/computesdk.js +3 -0
- package/dist/tsup/sandbox/providers/computesdk.js.map +1 -0
- package/dist/tsup/sandbox/providers/daytona.cjs +3 -0
- package/dist/tsup/sandbox/providers/daytona.cjs.map +1 -0
- package/dist/tsup/sandbox/providers/daytona.d.cts +1 -0
- package/dist/tsup/sandbox/providers/daytona.d.ts +1 -0
- package/dist/tsup/sandbox/providers/daytona.js +3 -0
- package/dist/tsup/sandbox/providers/daytona.js.map +1 -0
- package/dist/tsup/sandbox/providers/docker.cjs +3 -0
- package/dist/tsup/sandbox/providers/docker.cjs.map +1 -0
- package/dist/tsup/sandbox/providers/docker.d.cts +1 -0
- package/dist/tsup/sandbox/providers/docker.d.ts +1 -0
- package/dist/tsup/sandbox/providers/docker.js +3 -0
- package/dist/tsup/sandbox/providers/docker.js.map +1 -0
- package/dist/tsup/sandbox/providers/e2b.cjs +3 -0
- package/dist/tsup/sandbox/providers/e2b.cjs.map +1 -0
- package/dist/tsup/sandbox/providers/e2b.d.cts +1 -0
- package/dist/tsup/sandbox/providers/e2b.d.ts +1 -0
- package/dist/tsup/sandbox/providers/e2b.js +3 -0
- package/dist/tsup/sandbox/providers/e2b.js.map +1 -0
- package/dist/tsup/sandbox/providers/local.cjs +3 -0
- package/dist/tsup/sandbox/providers/local.cjs.map +1 -0
- package/dist/tsup/sandbox/providers/local.d.cts +1 -0
- package/dist/tsup/sandbox/providers/local.d.ts +1 -0
- package/dist/tsup/sandbox/providers/local.js +3 -0
- package/dist/tsup/sandbox/providers/local.js.map +1 -0
- package/dist/tsup/sandbox/providers/modal.cjs +3 -0
- package/dist/tsup/sandbox/providers/modal.cjs.map +1 -0
- package/dist/tsup/sandbox/providers/modal.d.cts +1 -0
- package/dist/tsup/sandbox/providers/modal.d.ts +1 -0
- package/dist/tsup/sandbox/providers/modal.js +3 -0
- package/dist/tsup/sandbox/providers/modal.js.map +1 -0
- package/dist/tsup/sandbox/providers/vercel.cjs +3 -0
- package/dist/tsup/sandbox/providers/vercel.cjs.map +1 -0
- package/dist/tsup/sandbox/providers/vercel.d.cts +1 -0
- package/dist/tsup/sandbox/providers/vercel.d.ts +1 -0
- package/dist/tsup/sandbox/providers/vercel.js +3 -0
- package/dist/tsup/sandbox/providers/vercel.js.map +1 -0
- package/dist/tsup/serve-test-suite/mod.cjs +451 -327
- package/dist/tsup/serve-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/serve-test-suite/mod.js +362 -238
- package/dist/tsup/serve-test-suite/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +17 -14
- package/dist/tsup/test/mod.cjs.map +1 -1
- package/dist/tsup/test/mod.d.cts +4 -4
- package/dist/tsup/test/mod.d.ts +4 -4
- package/dist/tsup/test/mod.js +14 -11
- package/dist/tsup/test/mod.js.map +1 -1
- package/dist/tsup/utils.cjs +3 -3
- package/dist/tsup/utils.js +2 -2
- package/dist/tsup/workflow/mod.cjs +6 -6
- package/dist/tsup/workflow/mod.d.cts +13 -9
- package/dist/tsup/workflow/mod.d.ts +13 -9
- package/dist/tsup/workflow/mod.js +5 -5
- package/package.json +113 -14
- package/src/actor/config.ts +94 -88
- package/src/actor/conn/drivers/websocket.ts +2 -1
- package/src/actor/contexts/base/actor.ts +27 -4
- package/src/actor/database.ts +6 -1
- package/src/actor/driver.ts +27 -8
- package/src/actor/errors.ts +10 -5
- package/src/actor/instance/connection-manager.ts +4 -3
- package/src/actor/instance/kv.ts +52 -9
- package/src/actor/instance/mod.ts +135 -84
- package/src/actor/instance/queue-manager.ts +2 -5
- package/src/actor/instance/queue.ts +31 -29
- package/src/actor/instance/state-manager.ts +7 -1
- package/src/actor/instance/traces-driver.ts +34 -36
- package/src/actor/metrics.ts +137 -0
- package/src/actor/protocol/old.ts +9 -12
- package/src/actor/router-websocket-endpoints.ts +12 -6
- package/src/actor/router.ts +46 -9
- package/src/actor/schema.ts +14 -22
- package/src/client/actor-common.ts +65 -0
- package/src/client/actor-conn.ts +71 -9
- package/src/client/actor-handle.ts +22 -5
- package/src/client/client.ts +32 -6
- package/src/client/config.ts +18 -21
- package/src/client/mod.ts +1 -0
- package/src/client/queue.ts +8 -6
- package/src/common/inline-websocket-adapter.ts +8 -2
- package/src/common/router.ts +1 -4
- package/src/common/utils.ts +2 -5
- package/src/db/config.ts +10 -5
- package/src/db/drizzle/mod.ts +51 -41
- package/src/db/mod.ts +54 -29
- package/src/db/shared.ts +42 -8
- package/src/driver-helpers/mod.ts +2 -1
- package/src/driver-helpers/sqlite-pool.ts +42 -0
- package/src/driver-helpers/utils.ts +0 -20
- package/src/driver-test-suite/mod.ts +11 -1
- package/src/driver-test-suite/tests/access-control.ts +19 -12
- package/src/driver-test-suite/tests/action-features.ts +20 -8
- package/src/driver-test-suite/tests/actor-conn.ts +94 -8
- package/src/driver-test-suite/tests/actor-db-kv-stats.ts +282 -0
- package/src/driver-test-suite/tests/actor-db-raw.ts +6 -2
- package/src/driver-test-suite/tests/actor-db.ts +101 -31
- package/src/driver-test-suite/tests/actor-inspector.ts +174 -32
- package/src/driver-test-suite/tests/actor-kv.ts +79 -33
- package/src/driver-test-suite/tests/actor-lifecycle.ts +4 -12
- package/src/driver-test-suite/tests/actor-queue.ts +125 -17
- package/src/driver-test-suite/tests/actor-run.ts +59 -55
- package/src/driver-test-suite/tests/actor-sandbox.ts +78 -0
- package/src/driver-test-suite/tests/actor-schedule.ts +1 -4
- package/src/driver-test-suite/tests/actor-sleep.ts +111 -0
- package/src/driver-test-suite/tests/actor-workflow.ts +387 -3
- package/src/driver-test-suite/tests/conn-error-serialization.ts +3 -1
- package/src/driver-test-suite/tests/raw-websocket.ts +5 -1
- package/src/drivers/default.ts +1 -3
- package/src/drivers/engine/actor-driver.ts +94 -21
- package/src/drivers/engine/config.ts +4 -12
- package/src/drivers/engine/mod.ts +1 -5
- package/src/drivers/file-system/actor.ts +43 -8
- package/src/drivers/file-system/global-state.ts +180 -64
- package/src/drivers/file-system/kv-limits.ts +1 -1
- package/src/drivers/file-system/sqlite-runtime.ts +13 -4
- package/src/engine-process/mod.ts +5 -1
- package/src/inspector/actor-inspector.ts +47 -21
- package/src/inspector/config.ts +1 -4
- package/src/inspector/mod.browser.ts +2 -2
- package/src/inspector/mod.ts +4 -1
- package/src/inspector/serve-ui.ts +0 -1
- package/src/inspector/workflow-history-json.ts +309 -0
- package/src/manager/gateway.ts +6 -2
- package/src/manager/router.ts +3 -3
- package/src/registry/config/index.ts +65 -12
- package/src/registry/config/runner.ts +19 -4
- package/src/registry/index.ts +42 -89
- package/src/sandbox/actor/db.ts +36 -0
- package/src/sandbox/actor/index.ts +476 -0
- package/src/sandbox/actor/session.ts +350 -0
- package/src/sandbox/actor.test.ts +36 -0
- package/src/sandbox/client.test.ts +484 -0
- package/src/sandbox/client.ts +707 -0
- package/src/sandbox/config.ts +151 -0
- package/src/sandbox/index.ts +41 -0
- package/src/sandbox/providers/computesdk.ts +1 -0
- package/src/sandbox/providers/daytona.ts +1 -0
- package/src/sandbox/providers/docker.ts +1 -0
- package/src/sandbox/providers/e2b.ts +1 -0
- package/src/sandbox/providers/local.ts +1 -0
- package/src/sandbox/providers/modal.ts +1 -0
- package/src/sandbox/providers/vercel.ts +1 -0
- package/src/sandbox/session-persist-driver.ts +180 -0
- package/src/sandbox/types.ts +138 -0
- package/src/serverless/configure.ts +5 -3
- package/src/serverless/router.test.ts +17 -9
- package/src/serverless/router.ts +20 -13
- package/src/test/mod.ts +3 -4
- package/src/utils/endpoint-parser.test.ts +6 -2
- package/src/utils/endpoint-parser.ts +6 -2
- package/src/utils/env-vars.ts +0 -2
- package/src/utils/node.ts +1 -1
- package/src/utils/serve.ts +10 -5
- package/src/utils.ts +6 -1
- package/src/workflow/constants.ts +1 -2
- package/src/workflow/context.ts +42 -9
- package/src/workflow/driver.ts +57 -23
- package/src/workflow/inspector.ts +7 -13
- package/src/workflow/mod.ts +91 -4
- package/dist/tsup/chunk-3B6PCYJB.cjs.map +0 -1
- package/dist/tsup/chunk-3GTO6H3E.js.map +0 -1
- package/dist/tsup/chunk-4KSHPFXF.cjs.map +0 -1
- package/dist/tsup/chunk-6LJAZ5R4.cjs +0 -96
- package/dist/tsup/chunk-6LJAZ5R4.cjs.map +0 -1
- package/dist/tsup/chunk-7HTNH26M.js.map +0 -1
- package/dist/tsup/chunk-ANKZ2FS6.js.map +0 -1
- package/dist/tsup/chunk-DZXDUGLL.js.map +0 -1
- package/dist/tsup/chunk-GXRVSSVD.cjs.map +0 -1
- package/dist/tsup/chunk-H5TSEPN4.cjs +0 -645
- package/dist/tsup/chunk-H5TSEPN4.cjs.map +0 -1
- package/dist/tsup/chunk-HKOSZKKZ.cjs.map +0 -1
- package/dist/tsup/chunk-I6PL6QIY.js.map +0 -1
- package/dist/tsup/chunk-KJSYAUOM.js.map +0 -1
- package/dist/tsup/chunk-KTWY3K6Z.js.map +0 -1
- package/dist/tsup/chunk-L47L3ZWJ.cjs.map +0 -1
- package/dist/tsup/chunk-LK36OGGO.cjs.map +0 -1
- package/dist/tsup/chunk-M6H4XIF4.js.map +0 -1
- package/dist/tsup/chunk-N4KRDJ56.js.map +0 -1
- package/dist/tsup/chunk-SR3KQE7Q.cjs.map +0 -1
- package/dist/tsup/chunk-TEFYRRAK.js +0 -645
- package/dist/tsup/chunk-TEFYRRAK.js.map +0 -1
- package/dist/tsup/chunk-TEUL4UYN.cjs.map +0 -1
- package/dist/tsup/chunk-UDMRZR6A.js.map +0 -1
- package/dist/tsup/chunk-UWAGLDT6.cjs.map +0 -1
- package/dist/tsup/chunk-VKVNIQRQ.js.map +0 -1
- package/dist/tsup/chunk-ZFY5J2EP.cjs.map +0 -1
- package/src/db/sqlite-vfs.ts +0 -12
- /package/dist/tsup/{chunk-HBYEYBIC.js.map → chunk-EONWXYMN.js.map} +0 -0
- /package/dist/tsup/{chunk-5UEFNG7P.js.map → chunk-I5I6OALK.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkDH6UINWAcjs = require('../chunk-DH6UINWA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -79,8 +79,8 @@ var _chunkAQD4CBZ2cjs = require('../chunk-AQD4CBZ2.cjs');
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
var _chunkNIYZDWMWcjs = require('../chunk-NIYZDWMW.cjs');
|
|
82
|
-
require('../chunk-
|
|
83
|
-
require('../chunk-
|
|
82
|
+
require('../chunk-MPLMTJY5.cjs');
|
|
83
|
+
require('../chunk-6G7ZNM27.cjs');
|
|
84
84
|
require('../chunk-HDQ2JUQT.cjs');
|
|
85
85
|
|
|
86
86
|
|
|
@@ -160,5 +160,5 @@ require('../chunk-HDQ2JUQT.cjs');
|
|
|
160
160
|
|
|
161
161
|
|
|
162
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 =
|
|
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 = _chunkDH6UINWAcjs.decodeWorkflowHistoryTransport; exports.encodeToClient = _chunkNIYZDWMWcjs.encodeToClient; exports.encodeToServer = _chunkNIYZDWMWcjs.encodeToServer; exports.encodeWorkflowHistoryTransport = _chunkDH6UINWAcjs.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;
|
|
164
164
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decodeWorkflowHistoryTransport,
|
|
3
3
|
encodeWorkflowHistoryTransport
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-EONWXYMN.js";
|
|
5
5
|
import {
|
|
6
6
|
CURRENT_VERSION,
|
|
7
7
|
TO_CLIENT_VERSIONED,
|
|
@@ -79,8 +79,8 @@ import {
|
|
|
79
79
|
writeWorkflowHistoryResponse,
|
|
80
80
|
writeWorkflowHistoryUpdated
|
|
81
81
|
} from "../chunk-LXUQ667X.js";
|
|
82
|
-
import "../chunk-
|
|
83
|
-
import "../chunk-
|
|
82
|
+
import "../chunk-VWYO36X4.js";
|
|
83
|
+
import "../chunk-AKUJ5OTO.js";
|
|
84
84
|
import "../chunk-424PT5DM.js";
|
|
85
85
|
export {
|
|
86
86
|
CURRENT_VERSION,
|
package/dist/tsup/mod.cjs
CHANGED
|
@@ -2,23 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
var _chunkVBR35EQFcjs = require('./chunk-VBR35EQF.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
var _chunkHKOSZKKZcjs = require('./chunk-HKOSZKKZ.cjs');
|
|
9
9
|
|
|
10
|
+
var _chunkIHQAF2HVcjs = require('./chunk-IHQAF2HV.cjs');
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
15
|
+
var _chunk2LY7RW3Ycjs = require('./chunk-2LY7RW3Y.cjs');
|
|
14
16
|
|
|
15
|
-
var _chunkUWAGLDT6cjs = require('./chunk-UWAGLDT6.cjs');
|
|
16
17
|
|
|
17
18
|
|
|
18
|
-
var
|
|
19
|
-
require('./chunk-
|
|
19
|
+
var _chunkJJNZQDUNcjs = require('./chunk-JJNZQDUN.cjs');
|
|
20
|
+
require('./chunk-DH6UINWA.cjs');
|
|
20
21
|
|
|
21
22
|
|
|
23
|
+
var _chunkGUHXWPGBcjs = require('./chunk-GUHXWPGB.cjs');
|
|
24
|
+
require('./chunk-V3JSZR5P.cjs');
|
|
25
|
+
require('./chunk-CGGGBIDP.cjs');
|
|
22
26
|
|
|
23
27
|
|
|
24
28
|
|
|
@@ -32,19 +36,21 @@ require('./chunk-QPADHLDU.cjs');
|
|
|
32
36
|
|
|
33
37
|
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
var _chunkHNE2AK6Ccjs = require('./chunk-HNE2AK6C.cjs');
|
|
36
42
|
require('./chunk-NIYZDWMW.cjs');
|
|
37
43
|
|
|
38
44
|
|
|
39
45
|
|
|
40
|
-
var
|
|
46
|
+
var _chunkA4KEUCB6cjs = require('./chunk-A4KEUCB6.cjs');
|
|
41
47
|
|
|
42
48
|
|
|
43
49
|
|
|
44
|
-
var
|
|
50
|
+
var _chunkMPLMTJY5cjs = require('./chunk-MPLMTJY5.cjs');
|
|
45
51
|
|
|
46
52
|
|
|
47
|
-
var
|
|
53
|
+
var _chunk6G7ZNM27cjs = require('./chunk-6G7ZNM27.cjs');
|
|
48
54
|
require('./chunk-HDQ2JUQT.cjs');
|
|
49
55
|
|
|
50
56
|
|
|
@@ -78,5 +84,5 @@ require('./chunk-HDQ2JUQT.cjs');
|
|
|
78
84
|
|
|
79
85
|
|
|
80
86
|
|
|
81
|
-
exports.ALLOWED_PUBLIC_HEADERS =
|
|
87
|
+
exports.ALLOWED_PUBLIC_HEADERS = _chunkHNE2AK6Ccjs.ALLOWED_PUBLIC_HEADERS; exports.ActorKv = _chunkA4KEUCB6cjs.ActorKv; exports.ActorsSchema = _chunkHNE2AK6Ccjs.ActorsSchema; exports.DocConfigureRunnerPoolSchema = _chunkHNE2AK6Ccjs.DocConfigureRunnerPoolSchema; exports.DocInspectorConfigSchema = _chunkHNE2AK6Ccjs.DocInspectorConfigSchema; exports.DocRegistryConfigSchema = _chunkHNE2AK6Ccjs.DocRegistryConfigSchema; exports.DocRunnerConfigSchema = _chunkHNE2AK6Ccjs.DocRunnerConfigSchema; exports.DocServerlessConfigSchema = _chunkHNE2AK6Ccjs.DocServerlessConfigSchema; exports.DriverConfigSchema = _chunkHNE2AK6Ccjs.DriverConfigSchema; exports.InlineWebSocketAdapter = _chunk2LY7RW3Ycjs.InlineWebSocketAdapter; exports.KV_KEYS = _chunkA4KEUCB6cjs.KEYS; exports.PATH_CONNECT = _chunkHNE2AK6Ccjs.PATH_CONNECT; exports.PATH_WEBSOCKET_PREFIX = _chunkHNE2AK6Ccjs.PATH_WEBSOCKET_PREFIX; exports.Registry = _chunkVBR35EQFcjs.Registry; exports.RegistryConfigSchema = _chunkHNE2AK6Ccjs.RegistryConfigSchema; exports.TestConfigSchema = _chunkHNE2AK6Ccjs.TestConfigSchema; exports.UserError = _chunk6G7ZNM27cjs.UserError; exports.actor = _chunkIHQAF2HVcjs.actor; exports.buildActorNames = _chunkHNE2AK6Ccjs.buildActorNames; exports.createActorRouter = _chunkJJNZQDUNcjs.createActorRouter; exports.createClientWithDriver = _chunkGUHXWPGBcjs.createClientWithDriver; exports.createEngineDriver = _chunkVBR35EQFcjs.createEngineDriver; exports.createFileSystemDriver = _chunk2LY7RW3Ycjs.createFileSystemDriver; exports.createMemoryDriver = _chunk2LY7RW3Ycjs.createMemoryDriver; exports.event = _chunkIHQAF2HVcjs.event; exports.lookupInRegistry = _chunkJJNZQDUNcjs.lookupInRegistry; exports.noopNext = _chunkMPLMTJY5cjs.noopNext; exports.queue = _chunkIHQAF2HVcjs.queue; exports.routeWebSocket = _chunkHNE2AK6Ccjs.routeWebSocket; exports.setup = _chunkVBR35EQFcjs.setup; exports.toUint8Array = _chunkMPLMTJY5cjs.toUint8Array;
|
|
82
88
|
//# sourceMappingURL=mod.cjs.map
|
package/dist/tsup/mod.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/mod.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;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;AACF,u3DAAC","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/mod.cjs"}
|
package/dist/tsup/mod.d.cts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { A as AnyDatabaseProvider } from './config-
|
|
4
|
-
export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-
|
|
1
|
+
import { N as RegistryConfig, P as ActorDriver, a4 as AnyConn, V as AnyActorInstance, E as Encoding, a as EventSchemaConfig, Q as QueueSchemaConfig, a3 as Actions, a5 as ActorConfigInput, d as ActorDefinition, a6 as event$1, a7 as queue$1 } from './config-ehT-_3BB.cjs';
|
|
2
|
+
export { a0 as ActionContext, a8 as ActionContextOf, a9 as ActorConfig, aa as ActorConfigSchema, a2 as ActorContext, ab as ActorContextOf, ac as ActorKey, ad as ActorKv, ae as ActorQuery, af as ActorTypes, ag as ActorsSchema, c as AnyActorDefinition, ah as AnyClient, ai as AuthIntent, aj as BeforeActionResponseContext, ak as BeforeActionResponseContextOf, a1 as BeforeConnectContext, al as BeforeConnectContextOf, C as Client, am as Conn, an as ConnContext, ao as ConnContextOf, ap as ConnInitContext, aq as ConnInitContextOf, ar as ConnectContext, as as ConnectContextOf, at as CreateConnStateContext, au as CreateConnStateContextOf, av as CreateContext, aw as CreateContextOf, ax as CreateVarsContext, ay as CreateVarsContextOf, az as DestroyContext, aA as DestroyContextOf, aB as DisconnectContext, aC as DisconnectContextOf, aD as DocActorConfigSchema, aE as DocActorOptionsSchema, aF as DocConfigureRunnerPoolSchema, aG as DocInspectorConfigSchema, aH as DocRegistryConfigSchema, aI as DocRunnerConfigSchema, aJ as DocServerlessConfigSchema, aK as FetchHandler, aL as InspectorUnsubscribe, aM as RUN_FUNCTION_CONFIG_SYMBOL, R as Registry, aN as RegistryActors, aO as RegistryConfigInput, aP as RegistryConfigSchema, aQ as RequestContext, aR as RequestContextOf, aS as RunConfig, aT as RunConfigSchema, b as RunContext, aU as RunContextOf, aV as RunInspectorConfig, aW as ServerlessHandler, aX as SleepContext, aY as SleepContextOf, aZ as StateChangeContext, a_ as StateChangeContextOf, a$ as TestConfig, b0 as TestConfigSchema, b1 as Type, b2 as WakeContext, b3 as WakeContextOf, b4 as WebSocketContext, b5 as WebSocketContextOf, b6 as WorkflowInspectorConfig, b7 as buildActorNames, b8 as createClientWithDriver, b9 as getRunFunction, ba as getRunInspectorConfig, bb as getRunMetadata, bc as lookupInRegistry, bd as setup, be as test } from './config-ehT-_3BB.cjs';
|
|
3
|
+
import { A as AnyDatabaseProvider } from './config-DROwzBLT.cjs';
|
|
4
|
+
export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-Dpp2RJbW.cjs';
|
|
5
5
|
import { WSContext } from 'hono/ws';
|
|
6
6
|
import { UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
7
7
|
export { RivetCloseEvent, RivetEvent, RivetMessageEvent, UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
8
8
|
export { n as noopNext } from './utils-fwx3o3K9.cjs';
|
|
9
|
-
import { D as DriverConfig } from './driver-
|
|
10
|
-
export { a as DriverConfigSchema } from './driver-
|
|
9
|
+
import { D as DriverConfig } from './driver-CoTFpipv.cjs';
|
|
10
|
+
export { a as DriverConfigSchema } from './driver-CoTFpipv.cjs';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
import { GetUpgradeWebSocket } from './utils.cjs';
|
|
13
13
|
export { toUint8Array } from './utils.cjs';
|
|
14
|
-
export { A as ALLOWED_PUBLIC_HEADERS, P as PATH_CONNECT,
|
|
14
|
+
export { A as ALLOWED_PUBLIC_HEADERS, P as PATH_CONNECT, g as PATH_WEBSOCKET_PREFIX } from './actor-router-consts-DU-1IdQj.cjs';
|
|
15
15
|
import { Hono } from 'hono';
|
|
16
16
|
export { K as KV_KEYS } from './keys-CydblqMh.cjs';
|
|
17
17
|
export { UserError, UserErrorOptions } from './actor/errors.cjs';
|
|
18
18
|
import 'zod/v4';
|
|
19
19
|
import '@rivetkit/traces';
|
|
20
20
|
import 'vbare';
|
|
21
|
-
import '
|
|
21
|
+
import '@standard-schema/spec';
|
|
22
22
|
import '@rivetkit/sqlite-vfs';
|
|
23
23
|
import 'drizzle-orm/sqlite-core';
|
|
24
|
-
import '
|
|
24
|
+
import 'pino';
|
|
25
25
|
import 'nanoevents';
|
|
26
26
|
import './v3-DnYObHH3.cjs';
|
|
27
27
|
import '@rivetkit/bare-ts';
|
package/dist/tsup/mod.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { A as AnyDatabaseProvider } from './config-
|
|
4
|
-
export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-
|
|
1
|
+
import { N as RegistryConfig, P as ActorDriver, a4 as AnyConn, V as AnyActorInstance, E as Encoding, a as EventSchemaConfig, Q as QueueSchemaConfig, a3 as Actions, a5 as ActorConfigInput, d as ActorDefinition, a6 as event$1, a7 as queue$1 } from './config-C2Wwnc69.js';
|
|
2
|
+
export { a0 as ActionContext, a8 as ActionContextOf, a9 as ActorConfig, aa as ActorConfigSchema, a2 as ActorContext, ab as ActorContextOf, ac as ActorKey, ad as ActorKv, ae as ActorQuery, af as ActorTypes, ag as ActorsSchema, c as AnyActorDefinition, ah as AnyClient, ai as AuthIntent, aj as BeforeActionResponseContext, ak as BeforeActionResponseContextOf, a1 as BeforeConnectContext, al as BeforeConnectContextOf, C as Client, am as Conn, an as ConnContext, ao as ConnContextOf, ap as ConnInitContext, aq as ConnInitContextOf, ar as ConnectContext, as as ConnectContextOf, at as CreateConnStateContext, au as CreateConnStateContextOf, av as CreateContext, aw as CreateContextOf, ax as CreateVarsContext, ay as CreateVarsContextOf, az as DestroyContext, aA as DestroyContextOf, aB as DisconnectContext, aC as DisconnectContextOf, aD as DocActorConfigSchema, aE as DocActorOptionsSchema, aF as DocConfigureRunnerPoolSchema, aG as DocInspectorConfigSchema, aH as DocRegistryConfigSchema, aI as DocRunnerConfigSchema, aJ as DocServerlessConfigSchema, aK as FetchHandler, aL as InspectorUnsubscribe, aM as RUN_FUNCTION_CONFIG_SYMBOL, R as Registry, aN as RegistryActors, aO as RegistryConfigInput, aP as RegistryConfigSchema, aQ as RequestContext, aR as RequestContextOf, aS as RunConfig, aT as RunConfigSchema, b as RunContext, aU as RunContextOf, aV as RunInspectorConfig, aW as ServerlessHandler, aX as SleepContext, aY as SleepContextOf, aZ as StateChangeContext, a_ as StateChangeContextOf, a$ as TestConfig, b0 as TestConfigSchema, b1 as Type, b2 as WakeContext, b3 as WakeContextOf, b4 as WebSocketContext, b5 as WebSocketContextOf, b6 as WorkflowInspectorConfig, b7 as buildActorNames, b8 as createClientWithDriver, b9 as getRunFunction, ba as getRunInspectorConfig, bb as getRunMetadata, bc as lookupInRegistry, bd as setup, be as test } from './config-C2Wwnc69.js';
|
|
3
|
+
import { A as AnyDatabaseProvider } from './config-DROwzBLT.js';
|
|
4
|
+
export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-DGMJuAyc.js';
|
|
5
5
|
import { WSContext } from 'hono/ws';
|
|
6
6
|
import { UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
7
7
|
export { RivetCloseEvent, RivetEvent, RivetMessageEvent, UniversalWebSocket } from '@rivetkit/virtual-websocket';
|
|
8
8
|
export { n as noopNext } from './utils-fwx3o3K9.js';
|
|
9
|
-
import { D as DriverConfig } from './driver-
|
|
10
|
-
export { a as DriverConfigSchema } from './driver-
|
|
9
|
+
import { D as DriverConfig } from './driver-CYZP9QYo.js';
|
|
10
|
+
export { a as DriverConfigSchema } from './driver-CYZP9QYo.js';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
import { GetUpgradeWebSocket } from './utils.js';
|
|
13
13
|
export { toUint8Array } from './utils.js';
|
|
14
|
-
export { A as ALLOWED_PUBLIC_HEADERS, P as PATH_CONNECT,
|
|
14
|
+
export { A as ALLOWED_PUBLIC_HEADERS, P as PATH_CONNECT, g as PATH_WEBSOCKET_PREFIX } from './actor-router-consts-DU-1IdQj.js';
|
|
15
15
|
import { Hono } from 'hono';
|
|
16
16
|
export { K as KV_KEYS } from './keys-CydblqMh.js';
|
|
17
17
|
export { UserError, UserErrorOptions } from './actor/errors.js';
|
|
18
18
|
import 'zod/v4';
|
|
19
19
|
import '@rivetkit/traces';
|
|
20
20
|
import 'vbare';
|
|
21
|
-
import '
|
|
21
|
+
import '@standard-schema/spec';
|
|
22
22
|
import '@rivetkit/sqlite-vfs';
|
|
23
23
|
import 'drizzle-orm/sqlite-core';
|
|
24
|
-
import '
|
|
24
|
+
import 'pino';
|
|
25
25
|
import 'nanoevents';
|
|
26
26
|
import './v3-DnYObHH3.js';
|
|
27
27
|
import '@rivetkit/bare-ts';
|
package/dist/tsup/mod.js
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Registry,
|
|
3
|
-
actor,
|
|
4
3
|
createEngineDriver,
|
|
5
|
-
event,
|
|
6
|
-
queue,
|
|
7
4
|
setup
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JJSPHLJN.js";
|
|
6
|
+
import {
|
|
7
|
+
actor,
|
|
8
|
+
event,
|
|
9
|
+
queue
|
|
10
|
+
} from "./chunk-UQZRMTM3.js";
|
|
9
11
|
import {
|
|
10
12
|
InlineWebSocketAdapter,
|
|
11
|
-
createActorRouter,
|
|
12
13
|
createFileSystemDriver,
|
|
13
|
-
createMemoryDriver
|
|
14
|
+
createMemoryDriver
|
|
15
|
+
} from "./chunk-EGWXXBZV.js";
|
|
16
|
+
import {
|
|
17
|
+
createActorRouter,
|
|
14
18
|
lookupInRegistry
|
|
15
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YGYGANCA.js";
|
|
20
|
+
import "./chunk-EONWXYMN.js";
|
|
16
21
|
import {
|
|
17
22
|
createClientWithDriver
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-WW27B6DM.js";
|
|
24
|
+
import "./chunk-I5I6OALK.js";
|
|
25
|
+
import "./chunk-C4EB42ET.js";
|
|
20
26
|
import {
|
|
21
27
|
ALLOWED_PUBLIC_HEADERS,
|
|
22
28
|
ActorsSchema,
|
|
@@ -32,19 +38,19 @@ import {
|
|
|
32
38
|
TestConfigSchema,
|
|
33
39
|
buildActorNames,
|
|
34
40
|
routeWebSocket
|
|
35
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-PQWI44WD.js";
|
|
36
42
|
import "./chunk-LXUQ667X.js";
|
|
37
43
|
import {
|
|
38
44
|
ActorKv,
|
|
39
45
|
KEYS
|
|
40
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-C22JYHVT.js";
|
|
41
47
|
import {
|
|
42
48
|
noopNext,
|
|
43
49
|
toUint8Array
|
|
44
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-VWYO36X4.js";
|
|
45
51
|
import {
|
|
46
52
|
UserError
|
|
47
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-AKUJ5OTO.js";
|
|
48
54
|
import "./chunk-424PT5DM.js";
|
|
49
55
|
export {
|
|
50
56
|
ALLOWED_PUBLIC_HEADERS,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkYZJWZBY5cjs = require('../chunk-YZJWZBY5.cjs');
|
|
14
|
+
require('../chunk-HDQ2JUQT.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
exports.buildTerminalWebSocketUrl = _chunkYZJWZBY5cjs.buildTerminalWebSocketUrl; exports.connectTerminal = _chunkYZJWZBY5cjs.connectTerminal; exports.deleteFile = _chunkYZJWZBY5cjs.deleteFile; exports.downloadFile = _chunkYZJWZBY5cjs.downloadFile; exports.followProcessLogs = _chunkYZJWZBY5cjs.followProcessLogs; exports.listFiles = _chunkYZJWZBY5cjs.listFiles; exports.mkdirFs = _chunkYZJWZBY5cjs.mkdirFs; exports.moveFile = _chunkYZJWZBY5cjs.moveFile; exports.statFile = _chunkYZJWZBY5cjs.statFile; exports.uploadBatch = _chunkYZJWZBY5cjs.uploadBatch; exports.uploadFile = _chunkYZJWZBY5cjs.uploadFile;
|
|
28
|
+
//# sourceMappingURL=client.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/sandbox/client.cjs"],"names":[],"mappings":"AAAA;AACE;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;AACF,4lBAAC","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/sandbox/client.cjs"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client-side helpers for direct operations against a sandbox-agent server.
|
|
3
|
+
*
|
|
4
|
+
* The sandbox actor proxies all sandbox-agent SDK methods as Rivet Actor
|
|
5
|
+
* actions, which use JSON-based RPC serialization. This works well for
|
|
6
|
+
* structured data (sessions, processes, MCP config), but three categories of
|
|
7
|
+
* operations do not fit through JSON actions:
|
|
8
|
+
*
|
|
9
|
+
* 1. Binary filesystem I/O (readFsFile, writeFsFile, uploadFsBatch): raw
|
|
10
|
+
* binary payloads would require base64 encoding with ~33% size overhead.
|
|
11
|
+
* 2. WebSocket terminals (connectProcessTerminal,
|
|
12
|
+
* connectProcessTerminalWebSocket): bidirectional binary streams cannot be
|
|
13
|
+
* serialized through request-response JSON.
|
|
14
|
+
* 3. SSE log streaming (followProcessLogs): continuous event streams with
|
|
15
|
+
* callbacks cannot be proxied through one-shot JSON actions.
|
|
16
|
+
*
|
|
17
|
+
* These helpers let the client talk directly to the sandbox-agent HTTP API,
|
|
18
|
+
* bypassing the actor's JSON action layer. The sandbox URL is obtained via
|
|
19
|
+
* the actor's `getSandboxUrl` action. Sandbox providers already secure the
|
|
20
|
+
* connection between client and sandbox, so no additional authentication is
|
|
21
|
+
* needed on these direct endpoints.
|
|
22
|
+
*/
|
|
23
|
+
type FetchBody = Blob | ArrayBuffer | Uint8Array | ReadableStream | string;
|
|
24
|
+
type TerminalInput = string | ArrayBuffer | ArrayBufferView;
|
|
25
|
+
type WebSocketConstructor = typeof WebSocket;
|
|
26
|
+
type ProcessLogStream = "stdout" | "stderr" | "combined" | "pty";
|
|
27
|
+
interface FsEntry {
|
|
28
|
+
entryType: "file" | "directory";
|
|
29
|
+
modified?: string | null;
|
|
30
|
+
name: string;
|
|
31
|
+
path: string;
|
|
32
|
+
size: number;
|
|
33
|
+
}
|
|
34
|
+
interface FsStat {
|
|
35
|
+
entryType: "file" | "directory";
|
|
36
|
+
modified?: string | null;
|
|
37
|
+
path: string;
|
|
38
|
+
size: number;
|
|
39
|
+
}
|
|
40
|
+
interface UploadBatchResponse {
|
|
41
|
+
paths: string[];
|
|
42
|
+
truncated: boolean;
|
|
43
|
+
}
|
|
44
|
+
interface ProcessLogEntry {
|
|
45
|
+
data: string;
|
|
46
|
+
encoding: string;
|
|
47
|
+
sequence: number;
|
|
48
|
+
stream: ProcessLogStream;
|
|
49
|
+
timestampMs: number;
|
|
50
|
+
}
|
|
51
|
+
interface FollowProcessLogsOptions {
|
|
52
|
+
stream?: ProcessLogStream;
|
|
53
|
+
tail?: number;
|
|
54
|
+
since?: number;
|
|
55
|
+
}
|
|
56
|
+
interface TerminalExitStatus {
|
|
57
|
+
exitCode: number | null;
|
|
58
|
+
}
|
|
59
|
+
interface TerminalConnectOptions {
|
|
60
|
+
protocols?: string | string[];
|
|
61
|
+
WebSocket?: WebSocketConstructor;
|
|
62
|
+
}
|
|
63
|
+
interface TerminalSession {
|
|
64
|
+
onData(listener: (data: Uint8Array) => void): () => void;
|
|
65
|
+
onExit(listener: (status: TerminalExitStatus) => void): () => void;
|
|
66
|
+
onError(listener: (error: Error) => void): () => void;
|
|
67
|
+
onClose(listener: () => void): () => void;
|
|
68
|
+
sendInput(data: TerminalInput): void;
|
|
69
|
+
resize(cols: number, rows: number): void;
|
|
70
|
+
close(): void;
|
|
71
|
+
socket: WebSocket;
|
|
72
|
+
}
|
|
73
|
+
declare function uploadFile(sandboxUrl: string, path: string, data: FetchBody): Promise<void>;
|
|
74
|
+
declare function downloadFile(sandboxUrl: string, path: string): Promise<ArrayBuffer>;
|
|
75
|
+
declare function uploadBatch(sandboxUrl: string, destinationPath: string, tarData: Blob | ArrayBuffer | Uint8Array): Promise<UploadBatchResponse>;
|
|
76
|
+
declare function listFiles(sandboxUrl: string, path: string): Promise<FsEntry[]>;
|
|
77
|
+
declare function statFile(sandboxUrl: string, path: string): Promise<FsStat>;
|
|
78
|
+
declare function deleteFile(sandboxUrl: string, path: string): Promise<void>;
|
|
79
|
+
declare function mkdirFs(sandboxUrl: string, path: string): Promise<void>;
|
|
80
|
+
declare function moveFile(sandboxUrl: string, from: string, to: string, overwrite?: boolean): Promise<void>;
|
|
81
|
+
declare function buildTerminalWebSocketUrl(sandboxUrl: string, processId: string): string;
|
|
82
|
+
declare function connectTerminal(sandboxUrl: string, processId: string, options?: TerminalConnectOptions): TerminalSession;
|
|
83
|
+
declare function followProcessLogs(sandboxUrl: string, processId: string, listener: (entry: ProcessLogEntry) => void, options?: FollowProcessLogsOptions): Promise<{
|
|
84
|
+
close: () => void;
|
|
85
|
+
closed: Promise<void>;
|
|
86
|
+
}>;
|
|
87
|
+
|
|
88
|
+
export { type FollowProcessLogsOptions, type FsEntry, type FsStat, type ProcessLogEntry, type TerminalConnectOptions, type TerminalExitStatus, type TerminalSession, type UploadBatchResponse, buildTerminalWebSocketUrl, connectTerminal, deleteFile, downloadFile, followProcessLogs, listFiles, mkdirFs, moveFile, statFile, uploadBatch, uploadFile };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client-side helpers for direct operations against a sandbox-agent server.
|
|
3
|
+
*
|
|
4
|
+
* The sandbox actor proxies all sandbox-agent SDK methods as Rivet Actor
|
|
5
|
+
* actions, which use JSON-based RPC serialization. This works well for
|
|
6
|
+
* structured data (sessions, processes, MCP config), but three categories of
|
|
7
|
+
* operations do not fit through JSON actions:
|
|
8
|
+
*
|
|
9
|
+
* 1. Binary filesystem I/O (readFsFile, writeFsFile, uploadFsBatch): raw
|
|
10
|
+
* binary payloads would require base64 encoding with ~33% size overhead.
|
|
11
|
+
* 2. WebSocket terminals (connectProcessTerminal,
|
|
12
|
+
* connectProcessTerminalWebSocket): bidirectional binary streams cannot be
|
|
13
|
+
* serialized through request-response JSON.
|
|
14
|
+
* 3. SSE log streaming (followProcessLogs): continuous event streams with
|
|
15
|
+
* callbacks cannot be proxied through one-shot JSON actions.
|
|
16
|
+
*
|
|
17
|
+
* These helpers let the client talk directly to the sandbox-agent HTTP API,
|
|
18
|
+
* bypassing the actor's JSON action layer. The sandbox URL is obtained via
|
|
19
|
+
* the actor's `getSandboxUrl` action. Sandbox providers already secure the
|
|
20
|
+
* connection between client and sandbox, so no additional authentication is
|
|
21
|
+
* needed on these direct endpoints.
|
|
22
|
+
*/
|
|
23
|
+
type FetchBody = Blob | ArrayBuffer | Uint8Array | ReadableStream | string;
|
|
24
|
+
type TerminalInput = string | ArrayBuffer | ArrayBufferView;
|
|
25
|
+
type WebSocketConstructor = typeof WebSocket;
|
|
26
|
+
type ProcessLogStream = "stdout" | "stderr" | "combined" | "pty";
|
|
27
|
+
interface FsEntry {
|
|
28
|
+
entryType: "file" | "directory";
|
|
29
|
+
modified?: string | null;
|
|
30
|
+
name: string;
|
|
31
|
+
path: string;
|
|
32
|
+
size: number;
|
|
33
|
+
}
|
|
34
|
+
interface FsStat {
|
|
35
|
+
entryType: "file" | "directory";
|
|
36
|
+
modified?: string | null;
|
|
37
|
+
path: string;
|
|
38
|
+
size: number;
|
|
39
|
+
}
|
|
40
|
+
interface UploadBatchResponse {
|
|
41
|
+
paths: string[];
|
|
42
|
+
truncated: boolean;
|
|
43
|
+
}
|
|
44
|
+
interface ProcessLogEntry {
|
|
45
|
+
data: string;
|
|
46
|
+
encoding: string;
|
|
47
|
+
sequence: number;
|
|
48
|
+
stream: ProcessLogStream;
|
|
49
|
+
timestampMs: number;
|
|
50
|
+
}
|
|
51
|
+
interface FollowProcessLogsOptions {
|
|
52
|
+
stream?: ProcessLogStream;
|
|
53
|
+
tail?: number;
|
|
54
|
+
since?: number;
|
|
55
|
+
}
|
|
56
|
+
interface TerminalExitStatus {
|
|
57
|
+
exitCode: number | null;
|
|
58
|
+
}
|
|
59
|
+
interface TerminalConnectOptions {
|
|
60
|
+
protocols?: string | string[];
|
|
61
|
+
WebSocket?: WebSocketConstructor;
|
|
62
|
+
}
|
|
63
|
+
interface TerminalSession {
|
|
64
|
+
onData(listener: (data: Uint8Array) => void): () => void;
|
|
65
|
+
onExit(listener: (status: TerminalExitStatus) => void): () => void;
|
|
66
|
+
onError(listener: (error: Error) => void): () => void;
|
|
67
|
+
onClose(listener: () => void): () => void;
|
|
68
|
+
sendInput(data: TerminalInput): void;
|
|
69
|
+
resize(cols: number, rows: number): void;
|
|
70
|
+
close(): void;
|
|
71
|
+
socket: WebSocket;
|
|
72
|
+
}
|
|
73
|
+
declare function uploadFile(sandboxUrl: string, path: string, data: FetchBody): Promise<void>;
|
|
74
|
+
declare function downloadFile(sandboxUrl: string, path: string): Promise<ArrayBuffer>;
|
|
75
|
+
declare function uploadBatch(sandboxUrl: string, destinationPath: string, tarData: Blob | ArrayBuffer | Uint8Array): Promise<UploadBatchResponse>;
|
|
76
|
+
declare function listFiles(sandboxUrl: string, path: string): Promise<FsEntry[]>;
|
|
77
|
+
declare function statFile(sandboxUrl: string, path: string): Promise<FsStat>;
|
|
78
|
+
declare function deleteFile(sandboxUrl: string, path: string): Promise<void>;
|
|
79
|
+
declare function mkdirFs(sandboxUrl: string, path: string): Promise<void>;
|
|
80
|
+
declare function moveFile(sandboxUrl: string, from: string, to: string, overwrite?: boolean): Promise<void>;
|
|
81
|
+
declare function buildTerminalWebSocketUrl(sandboxUrl: string, processId: string): string;
|
|
82
|
+
declare function connectTerminal(sandboxUrl: string, processId: string, options?: TerminalConnectOptions): TerminalSession;
|
|
83
|
+
declare function followProcessLogs(sandboxUrl: string, processId: string, listener: (entry: ProcessLogEntry) => void, options?: FollowProcessLogsOptions): Promise<{
|
|
84
|
+
close: () => void;
|
|
85
|
+
closed: Promise<void>;
|
|
86
|
+
}>;
|
|
87
|
+
|
|
88
|
+
export { type FollowProcessLogsOptions, type FsEntry, type FsStat, type ProcessLogEntry, type TerminalConnectOptions, type TerminalExitStatus, type TerminalSession, type UploadBatchResponse, buildTerminalWebSocketUrl, connectTerminal, deleteFile, downloadFile, followProcessLogs, listFiles, mkdirFs, moveFile, statFile, uploadBatch, uploadFile };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildTerminalWebSocketUrl,
|
|
3
|
+
connectTerminal,
|
|
4
|
+
deleteFile,
|
|
5
|
+
downloadFile,
|
|
6
|
+
followProcessLogs,
|
|
7
|
+
listFiles,
|
|
8
|
+
mkdirFs,
|
|
9
|
+
moveFile,
|
|
10
|
+
statFile,
|
|
11
|
+
uploadBatch,
|
|
12
|
+
uploadFile
|
|
13
|
+
} from "../chunk-JRKPV5NJ.js";
|
|
14
|
+
import "../chunk-424PT5DM.js";
|
|
15
|
+
export {
|
|
16
|
+
buildTerminalWebSocketUrl,
|
|
17
|
+
connectTerminal,
|
|
18
|
+
deleteFile,
|
|
19
|
+
downloadFile,
|
|
20
|
+
followProcessLogs,
|
|
21
|
+
listFiles,
|
|
22
|
+
mkdirFs,
|
|
23
|
+
moveFile,
|
|
24
|
+
statFile,
|
|
25
|
+
uploadBatch,
|
|
26
|
+
uploadFile
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|