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.
Files changed (333) hide show
  1. package/dist/browser/client.d.ts +593 -588
  2. package/dist/browser/client.js +215 -35
  3. package/dist/browser/client.js.map +1 -1
  4. package/dist/browser/inspector/client.js +109 -10
  5. package/dist/browser/inspector/client.js.map +1 -1
  6. package/dist/inspector.tar.gz +0 -0
  7. package/dist/tsup/actor/errors.cjs +2 -2
  8. package/dist/tsup/actor/errors.js +1 -1
  9. package/dist/tsup/{actor-router-consts-D29T1Z-K.d.cts → actor-router-consts-DU-1IdQj.d.cts} +1 -1
  10. package/dist/tsup/{actor-router-consts-D29T1Z-K.d.ts → actor-router-consts-DU-1IdQj.d.ts} +1 -1
  11. package/dist/tsup/chunk-2ELYUO6C.cjs +112 -0
  12. package/dist/tsup/chunk-2ELYUO6C.cjs.map +1 -0
  13. package/dist/tsup/chunk-2LY7RW3Y.cjs +2316 -0
  14. package/dist/tsup/chunk-2LY7RW3Y.cjs.map +1 -0
  15. package/dist/tsup/{chunk-L47L3ZWJ.cjs → chunk-6G7ZNM27.cjs} +11 -6
  16. package/dist/tsup/chunk-6G7ZNM27.cjs.map +1 -0
  17. package/dist/tsup/{chunk-LK36OGGO.cjs → chunk-A4KEUCB6.cjs} +84 -34
  18. package/dist/tsup/chunk-A4KEUCB6.cjs.map +1 -0
  19. package/dist/tsup/{chunk-7HTNH26M.js → chunk-AKUJ5OTO.js} +11 -6
  20. package/dist/tsup/chunk-AKUJ5OTO.js.map +1 -0
  21. package/dist/tsup/{chunk-ANKZ2FS6.js → chunk-C22JYHVT.js} +77 -27
  22. package/dist/tsup/chunk-C22JYHVT.js.map +1 -0
  23. package/dist/tsup/chunk-C4EB42ET.js +1459 -0
  24. package/dist/tsup/chunk-C4EB42ET.js.map +1 -0
  25. package/dist/tsup/chunk-CGGGBIDP.cjs +1459 -0
  26. package/dist/tsup/chunk-CGGGBIDP.cjs.map +1 -0
  27. package/dist/tsup/chunk-CMQPDBBR.cjs +1486 -0
  28. package/dist/tsup/chunk-CMQPDBBR.cjs.map +1 -0
  29. package/dist/tsup/{chunk-AQD4CBZ2.cjs → chunk-DH6UINWA.cjs} +4 -4
  30. package/dist/tsup/{chunk-AQD4CBZ2.cjs.map → chunk-DH6UINWA.cjs.map} +1 -1
  31. package/dist/tsup/chunk-DK46YYCJ.js +1486 -0
  32. package/dist/tsup/chunk-DK46YYCJ.js.map +1 -0
  33. package/dist/tsup/chunk-EGWXXBZV.js +2316 -0
  34. package/dist/tsup/chunk-EGWXXBZV.js.map +1 -0
  35. package/dist/tsup/{chunk-HBYEYBIC.js → chunk-EONWXYMN.js} +2 -2
  36. package/dist/tsup/{chunk-N4KRDJ56.js → chunk-GFGRBYO2.js} +35 -6
  37. package/dist/tsup/chunk-GFGRBYO2.js.map +1 -0
  38. package/dist/tsup/{chunk-TEUL4UYN.cjs → chunk-GUHXWPGB.cjs} +1515 -1479
  39. package/dist/tsup/chunk-GUHXWPGB.cjs.map +1 -0
  40. package/dist/tsup/{chunk-3B6PCYJB.cjs → chunk-HNE2AK6C.cjs} +2375 -3713
  41. package/dist/tsup/chunk-HNE2AK6C.cjs.map +1 -0
  42. package/dist/tsup/{chunk-5UEFNG7P.js → chunk-I5I6OALK.js} +2 -2
  43. package/dist/tsup/chunk-IHQAF2HV.cjs +23 -0
  44. package/dist/tsup/chunk-IHQAF2HV.cjs.map +1 -0
  45. package/dist/tsup/{chunk-UWAGLDT6.cjs → chunk-JJNZQDUN.cjs} +667 -2517
  46. package/dist/tsup/chunk-JJNZQDUN.cjs.map +1 -0
  47. package/dist/tsup/{chunk-M6H4XIF4.js → chunk-JJSPHLJN.js} +219 -287
  48. package/dist/tsup/chunk-JJSPHLJN.js.map +1 -0
  49. package/dist/tsup/chunk-JRKPV5NJ.js +481 -0
  50. package/dist/tsup/chunk-JRKPV5NJ.js.map +1 -0
  51. package/dist/tsup/{chunk-VKVNIQRQ.js → chunk-K7MVU5SI.js} +36 -41
  52. package/dist/tsup/chunk-K7MVU5SI.js.map +1 -0
  53. package/dist/tsup/{chunk-KJSYAUOM.js → chunk-MLK3GY6P.js} +43 -27
  54. package/dist/tsup/chunk-MLK3GY6P.js.map +1 -0
  55. package/dist/tsup/{chunk-4KSHPFXF.cjs → chunk-MPLMTJY5.cjs} +123 -23
  56. package/dist/tsup/chunk-MPLMTJY5.cjs.map +1 -0
  57. package/dist/tsup/{chunk-UDMRZR6A.js → chunk-PQWI44WD.js} +1755 -3093
  58. package/dist/tsup/chunk-PQWI44WD.js.map +1 -0
  59. package/dist/tsup/{chunk-SR3KQE7Q.cjs → chunk-SQFCIDCG.cjs} +35 -6
  60. package/dist/tsup/chunk-SQFCIDCG.cjs.map +1 -0
  61. package/dist/tsup/{chunk-3GTO6H3E.js → chunk-SVHJSM2E.js} +110 -24
  62. package/dist/tsup/chunk-SVHJSM2E.js.map +1 -0
  63. package/dist/tsup/chunk-T5KYKM6R.js +49 -0
  64. package/dist/tsup/chunk-T5KYKM6R.js.map +1 -0
  65. package/dist/tsup/{chunk-GXRVSSVD.cjs → chunk-TJ7DKW6F.cjs} +123 -37
  66. package/dist/tsup/chunk-TJ7DKW6F.cjs.map +1 -0
  67. package/dist/tsup/chunk-UQZRMTM3.js +23 -0
  68. package/dist/tsup/chunk-UQZRMTM3.js.map +1 -0
  69. package/dist/tsup/{chunk-QPADHLDU.cjs → chunk-V3JSZR5P.cjs} +3 -3
  70. package/dist/tsup/{chunk-QPADHLDU.cjs.map → chunk-V3JSZR5P.cjs.map} +1 -1
  71. package/dist/tsup/{chunk-HKOSZKKZ.cjs → chunk-VBR35EQF.cjs} +271 -339
  72. package/dist/tsup/chunk-VBR35EQF.cjs.map +1 -0
  73. package/dist/tsup/{chunk-DZXDUGLL.js → chunk-VWYO36X4.js} +117 -17
  74. package/dist/tsup/chunk-VWYO36X4.js.map +1 -0
  75. package/dist/tsup/{chunk-I6PL6QIY.js → chunk-WW27B6DM.js} +1452 -1416
  76. package/dist/tsup/chunk-WW27B6DM.js.map +1 -0
  77. package/dist/tsup/chunk-YAE3MEJM.cjs +49 -0
  78. package/dist/tsup/chunk-YAE3MEJM.cjs.map +1 -0
  79. package/dist/tsup/{chunk-KTWY3K6Z.js → chunk-YGYGANCA.js} +473 -2323
  80. package/dist/tsup/chunk-YGYGANCA.js.map +1 -0
  81. package/dist/tsup/chunk-YZJWZBY5.cjs +481 -0
  82. package/dist/tsup/chunk-YZJWZBY5.cjs.map +1 -0
  83. package/dist/tsup/{chunk-ZFY5J2EP.cjs → chunk-ZZLJ5TSM.cjs} +39 -44
  84. package/dist/tsup/chunk-ZZLJ5TSM.cjs.map +1 -0
  85. package/dist/tsup/client/mod.cjs +10 -7
  86. package/dist/tsup/client/mod.cjs.map +1 -1
  87. package/dist/tsup/client/mod.d.cts +6 -6
  88. package/dist/tsup/client/mod.d.ts +6 -6
  89. package/dist/tsup/client/mod.js +11 -8
  90. package/dist/tsup/common/log.cjs +3 -3
  91. package/dist/tsup/common/log.js +2 -2
  92. package/dist/tsup/common/websocket.cjs +4 -4
  93. package/dist/tsup/common/websocket.js +3 -3
  94. package/dist/tsup/{config-Qj-zLJPc.d.ts → config-C2Wwnc69.d.ts} +142 -208
  95. package/dist/tsup/{config-BiNoIHRs.d.ts → config-DROwzBLT.d.cts} +82 -6
  96. package/dist/tsup/{config-BiNoIHRs.d.cts → config-DROwzBLT.d.ts} +82 -6
  97. package/dist/tsup/{config-iPj5l1bL.d.cts → config-ehT-_3BB.d.cts} +142 -208
  98. package/dist/tsup/{context-DzvH1PBK.d.cts → context-DGMJuAyc.d.ts} +16 -3
  99. package/dist/tsup/{context-CQCMuHND.d.ts → context-Dpp2RJbW.d.cts} +16 -3
  100. package/dist/tsup/db/drizzle/mod.cjs +3 -3
  101. package/dist/tsup/db/drizzle/mod.d.cts +1 -1
  102. package/dist/tsup/db/drizzle/mod.d.ts +1 -1
  103. package/dist/tsup/db/drizzle/mod.js +2 -2
  104. package/dist/tsup/db/mod.cjs +3 -3
  105. package/dist/tsup/db/mod.d.cts +1 -1
  106. package/dist/tsup/db/mod.d.ts +1 -1
  107. package/dist/tsup/db/mod.js +2 -2
  108. package/dist/tsup/{driver-Jo8v-kbU.d.ts → driver-CYZP9QYo.d.ts} +1 -1
  109. package/dist/tsup/{driver-iV8J-WMv.d.cts → driver-CoTFpipv.d.cts} +1 -1
  110. package/dist/tsup/driver-helpers/mod.cjs +7 -5
  111. package/dist/tsup/driver-helpers/mod.cjs.map +1 -1
  112. package/dist/tsup/driver-helpers/mod.d.cts +17 -18
  113. package/dist/tsup/driver-helpers/mod.d.ts +17 -18
  114. package/dist/tsup/driver-helpers/mod.js +11 -9
  115. package/dist/tsup/driver-test-suite/mod.cjs +1275 -228
  116. package/dist/tsup/driver-test-suite/mod.cjs.map +1 -1
  117. package/dist/tsup/driver-test-suite/mod.d.cts +6 -5
  118. package/dist/tsup/driver-test-suite/mod.d.ts +6 -5
  119. package/dist/tsup/driver-test-suite/mod.js +1581 -534
  120. package/dist/tsup/driver-test-suite/mod.js.map +1 -1
  121. package/dist/tsup/inspector/mod.cjs +4 -4
  122. package/dist/tsup/inspector/mod.js +3 -3
  123. package/dist/tsup/mod.cjs +15 -9
  124. package/dist/tsup/mod.cjs.map +1 -1
  125. package/dist/tsup/mod.d.cts +9 -9
  126. package/dist/tsup/mod.d.ts +9 -9
  127. package/dist/tsup/mod.js +19 -13
  128. package/dist/tsup/sandbox/client.cjs +28 -0
  129. package/dist/tsup/sandbox/client.cjs.map +1 -0
  130. package/dist/tsup/sandbox/client.d.cts +88 -0
  131. package/dist/tsup/sandbox/client.d.ts +88 -0
  132. package/dist/tsup/sandbox/client.js +28 -0
  133. package/dist/tsup/sandbox/client.js.map +1 -0
  134. package/dist/tsup/sandbox/index.cjs +761 -0
  135. package/dist/tsup/sandbox/index.cjs.map +1 -0
  136. package/dist/tsup/sandbox/index.d.cts +120 -0
  137. package/dist/tsup/sandbox/index.d.ts +120 -0
  138. package/dist/tsup/sandbox/index.js +761 -0
  139. package/dist/tsup/sandbox/index.js.map +1 -0
  140. package/dist/tsup/sandbox/providers/computesdk.cjs +3 -0
  141. package/dist/tsup/sandbox/providers/computesdk.cjs.map +1 -0
  142. package/dist/tsup/sandbox/providers/computesdk.d.cts +7 -0
  143. package/dist/tsup/sandbox/providers/computesdk.d.ts +7 -0
  144. package/dist/tsup/sandbox/providers/computesdk.js +3 -0
  145. package/dist/tsup/sandbox/providers/computesdk.js.map +1 -0
  146. package/dist/tsup/sandbox/providers/daytona.cjs +3 -0
  147. package/dist/tsup/sandbox/providers/daytona.cjs.map +1 -0
  148. package/dist/tsup/sandbox/providers/daytona.d.cts +1 -0
  149. package/dist/tsup/sandbox/providers/daytona.d.ts +1 -0
  150. package/dist/tsup/sandbox/providers/daytona.js +3 -0
  151. package/dist/tsup/sandbox/providers/daytona.js.map +1 -0
  152. package/dist/tsup/sandbox/providers/docker.cjs +3 -0
  153. package/dist/tsup/sandbox/providers/docker.cjs.map +1 -0
  154. package/dist/tsup/sandbox/providers/docker.d.cts +1 -0
  155. package/dist/tsup/sandbox/providers/docker.d.ts +1 -0
  156. package/dist/tsup/sandbox/providers/docker.js +3 -0
  157. package/dist/tsup/sandbox/providers/docker.js.map +1 -0
  158. package/dist/tsup/sandbox/providers/e2b.cjs +3 -0
  159. package/dist/tsup/sandbox/providers/e2b.cjs.map +1 -0
  160. package/dist/tsup/sandbox/providers/e2b.d.cts +1 -0
  161. package/dist/tsup/sandbox/providers/e2b.d.ts +1 -0
  162. package/dist/tsup/sandbox/providers/e2b.js +3 -0
  163. package/dist/tsup/sandbox/providers/e2b.js.map +1 -0
  164. package/dist/tsup/sandbox/providers/local.cjs +3 -0
  165. package/dist/tsup/sandbox/providers/local.cjs.map +1 -0
  166. package/dist/tsup/sandbox/providers/local.d.cts +1 -0
  167. package/dist/tsup/sandbox/providers/local.d.ts +1 -0
  168. package/dist/tsup/sandbox/providers/local.js +3 -0
  169. package/dist/tsup/sandbox/providers/local.js.map +1 -0
  170. package/dist/tsup/sandbox/providers/modal.cjs +3 -0
  171. package/dist/tsup/sandbox/providers/modal.cjs.map +1 -0
  172. package/dist/tsup/sandbox/providers/modal.d.cts +1 -0
  173. package/dist/tsup/sandbox/providers/modal.d.ts +1 -0
  174. package/dist/tsup/sandbox/providers/modal.js +3 -0
  175. package/dist/tsup/sandbox/providers/modal.js.map +1 -0
  176. package/dist/tsup/sandbox/providers/vercel.cjs +3 -0
  177. package/dist/tsup/sandbox/providers/vercel.cjs.map +1 -0
  178. package/dist/tsup/sandbox/providers/vercel.d.cts +1 -0
  179. package/dist/tsup/sandbox/providers/vercel.d.ts +1 -0
  180. package/dist/tsup/sandbox/providers/vercel.js +3 -0
  181. package/dist/tsup/sandbox/providers/vercel.js.map +1 -0
  182. package/dist/tsup/serve-test-suite/mod.cjs +451 -327
  183. package/dist/tsup/serve-test-suite/mod.cjs.map +1 -1
  184. package/dist/tsup/serve-test-suite/mod.js +362 -238
  185. package/dist/tsup/serve-test-suite/mod.js.map +1 -1
  186. package/dist/tsup/test/mod.cjs +17 -14
  187. package/dist/tsup/test/mod.cjs.map +1 -1
  188. package/dist/tsup/test/mod.d.cts +4 -4
  189. package/dist/tsup/test/mod.d.ts +4 -4
  190. package/dist/tsup/test/mod.js +14 -11
  191. package/dist/tsup/test/mod.js.map +1 -1
  192. package/dist/tsup/utils.cjs +3 -3
  193. package/dist/tsup/utils.js +2 -2
  194. package/dist/tsup/workflow/mod.cjs +6 -6
  195. package/dist/tsup/workflow/mod.d.cts +13 -9
  196. package/dist/tsup/workflow/mod.d.ts +13 -9
  197. package/dist/tsup/workflow/mod.js +5 -5
  198. package/package.json +113 -14
  199. package/src/actor/config.ts +94 -88
  200. package/src/actor/conn/drivers/websocket.ts +2 -1
  201. package/src/actor/contexts/base/actor.ts +27 -4
  202. package/src/actor/database.ts +6 -1
  203. package/src/actor/driver.ts +27 -8
  204. package/src/actor/errors.ts +10 -5
  205. package/src/actor/instance/connection-manager.ts +4 -3
  206. package/src/actor/instance/kv.ts +52 -9
  207. package/src/actor/instance/mod.ts +135 -84
  208. package/src/actor/instance/queue-manager.ts +2 -5
  209. package/src/actor/instance/queue.ts +31 -29
  210. package/src/actor/instance/state-manager.ts +7 -1
  211. package/src/actor/instance/traces-driver.ts +34 -36
  212. package/src/actor/metrics.ts +137 -0
  213. package/src/actor/protocol/old.ts +9 -12
  214. package/src/actor/router-websocket-endpoints.ts +12 -6
  215. package/src/actor/router.ts +46 -9
  216. package/src/actor/schema.ts +14 -22
  217. package/src/client/actor-common.ts +65 -0
  218. package/src/client/actor-conn.ts +71 -9
  219. package/src/client/actor-handle.ts +22 -5
  220. package/src/client/client.ts +32 -6
  221. package/src/client/config.ts +18 -21
  222. package/src/client/mod.ts +1 -0
  223. package/src/client/queue.ts +8 -6
  224. package/src/common/inline-websocket-adapter.ts +8 -2
  225. package/src/common/router.ts +1 -4
  226. package/src/common/utils.ts +2 -5
  227. package/src/db/config.ts +10 -5
  228. package/src/db/drizzle/mod.ts +51 -41
  229. package/src/db/mod.ts +54 -29
  230. package/src/db/shared.ts +42 -8
  231. package/src/driver-helpers/mod.ts +2 -1
  232. package/src/driver-helpers/sqlite-pool.ts +42 -0
  233. package/src/driver-helpers/utils.ts +0 -20
  234. package/src/driver-test-suite/mod.ts +11 -1
  235. package/src/driver-test-suite/tests/access-control.ts +19 -12
  236. package/src/driver-test-suite/tests/action-features.ts +20 -8
  237. package/src/driver-test-suite/tests/actor-conn.ts +94 -8
  238. package/src/driver-test-suite/tests/actor-db-kv-stats.ts +282 -0
  239. package/src/driver-test-suite/tests/actor-db-raw.ts +6 -2
  240. package/src/driver-test-suite/tests/actor-db.ts +101 -31
  241. package/src/driver-test-suite/tests/actor-inspector.ts +174 -32
  242. package/src/driver-test-suite/tests/actor-kv.ts +79 -33
  243. package/src/driver-test-suite/tests/actor-lifecycle.ts +4 -12
  244. package/src/driver-test-suite/tests/actor-queue.ts +125 -17
  245. package/src/driver-test-suite/tests/actor-run.ts +59 -55
  246. package/src/driver-test-suite/tests/actor-sandbox.ts +78 -0
  247. package/src/driver-test-suite/tests/actor-schedule.ts +1 -4
  248. package/src/driver-test-suite/tests/actor-sleep.ts +111 -0
  249. package/src/driver-test-suite/tests/actor-workflow.ts +387 -3
  250. package/src/driver-test-suite/tests/conn-error-serialization.ts +3 -1
  251. package/src/driver-test-suite/tests/raw-websocket.ts +5 -1
  252. package/src/drivers/default.ts +1 -3
  253. package/src/drivers/engine/actor-driver.ts +94 -21
  254. package/src/drivers/engine/config.ts +4 -12
  255. package/src/drivers/engine/mod.ts +1 -5
  256. package/src/drivers/file-system/actor.ts +43 -8
  257. package/src/drivers/file-system/global-state.ts +180 -64
  258. package/src/drivers/file-system/kv-limits.ts +1 -1
  259. package/src/drivers/file-system/sqlite-runtime.ts +13 -4
  260. package/src/engine-process/mod.ts +5 -1
  261. package/src/inspector/actor-inspector.ts +47 -21
  262. package/src/inspector/config.ts +1 -4
  263. package/src/inspector/mod.browser.ts +2 -2
  264. package/src/inspector/mod.ts +4 -1
  265. package/src/inspector/serve-ui.ts +0 -1
  266. package/src/inspector/workflow-history-json.ts +309 -0
  267. package/src/manager/gateway.ts +6 -2
  268. package/src/manager/router.ts +3 -3
  269. package/src/registry/config/index.ts +65 -12
  270. package/src/registry/config/runner.ts +19 -4
  271. package/src/registry/index.ts +42 -89
  272. package/src/sandbox/actor/db.ts +36 -0
  273. package/src/sandbox/actor/index.ts +476 -0
  274. package/src/sandbox/actor/session.ts +350 -0
  275. package/src/sandbox/actor.test.ts +36 -0
  276. package/src/sandbox/client.test.ts +484 -0
  277. package/src/sandbox/client.ts +707 -0
  278. package/src/sandbox/config.ts +151 -0
  279. package/src/sandbox/index.ts +41 -0
  280. package/src/sandbox/providers/computesdk.ts +1 -0
  281. package/src/sandbox/providers/daytona.ts +1 -0
  282. package/src/sandbox/providers/docker.ts +1 -0
  283. package/src/sandbox/providers/e2b.ts +1 -0
  284. package/src/sandbox/providers/local.ts +1 -0
  285. package/src/sandbox/providers/modal.ts +1 -0
  286. package/src/sandbox/providers/vercel.ts +1 -0
  287. package/src/sandbox/session-persist-driver.ts +180 -0
  288. package/src/sandbox/types.ts +138 -0
  289. package/src/serverless/configure.ts +5 -3
  290. package/src/serverless/router.test.ts +17 -9
  291. package/src/serverless/router.ts +20 -13
  292. package/src/test/mod.ts +3 -4
  293. package/src/utils/endpoint-parser.test.ts +6 -2
  294. package/src/utils/endpoint-parser.ts +6 -2
  295. package/src/utils/env-vars.ts +0 -2
  296. package/src/utils/node.ts +1 -1
  297. package/src/utils/serve.ts +10 -5
  298. package/src/utils.ts +6 -1
  299. package/src/workflow/constants.ts +1 -2
  300. package/src/workflow/context.ts +42 -9
  301. package/src/workflow/driver.ts +57 -23
  302. package/src/workflow/inspector.ts +7 -13
  303. package/src/workflow/mod.ts +91 -4
  304. package/dist/tsup/chunk-3B6PCYJB.cjs.map +0 -1
  305. package/dist/tsup/chunk-3GTO6H3E.js.map +0 -1
  306. package/dist/tsup/chunk-4KSHPFXF.cjs.map +0 -1
  307. package/dist/tsup/chunk-6LJAZ5R4.cjs +0 -96
  308. package/dist/tsup/chunk-6LJAZ5R4.cjs.map +0 -1
  309. package/dist/tsup/chunk-7HTNH26M.js.map +0 -1
  310. package/dist/tsup/chunk-ANKZ2FS6.js.map +0 -1
  311. package/dist/tsup/chunk-DZXDUGLL.js.map +0 -1
  312. package/dist/tsup/chunk-GXRVSSVD.cjs.map +0 -1
  313. package/dist/tsup/chunk-H5TSEPN4.cjs +0 -645
  314. package/dist/tsup/chunk-H5TSEPN4.cjs.map +0 -1
  315. package/dist/tsup/chunk-HKOSZKKZ.cjs.map +0 -1
  316. package/dist/tsup/chunk-I6PL6QIY.js.map +0 -1
  317. package/dist/tsup/chunk-KJSYAUOM.js.map +0 -1
  318. package/dist/tsup/chunk-KTWY3K6Z.js.map +0 -1
  319. package/dist/tsup/chunk-L47L3ZWJ.cjs.map +0 -1
  320. package/dist/tsup/chunk-LK36OGGO.cjs.map +0 -1
  321. package/dist/tsup/chunk-M6H4XIF4.js.map +0 -1
  322. package/dist/tsup/chunk-N4KRDJ56.js.map +0 -1
  323. package/dist/tsup/chunk-SR3KQE7Q.cjs.map +0 -1
  324. package/dist/tsup/chunk-TEFYRRAK.js +0 -645
  325. package/dist/tsup/chunk-TEFYRRAK.js.map +0 -1
  326. package/dist/tsup/chunk-TEUL4UYN.cjs.map +0 -1
  327. package/dist/tsup/chunk-UDMRZR6A.js.map +0 -1
  328. package/dist/tsup/chunk-UWAGLDT6.cjs.map +0 -1
  329. package/dist/tsup/chunk-VKVNIQRQ.js.map +0 -1
  330. package/dist/tsup/chunk-ZFY5J2EP.cjs.map +0 -1
  331. package/src/db/sqlite-vfs.ts +0 -12
  332. /package/dist/tsup/{chunk-HBYEYBIC.js.map → chunk-EONWXYMN.js.map} +0 -0
  333. /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 _chunkAQD4CBZ2cjs = require('../chunk-AQD4CBZ2.cjs');
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-4KSHPFXF.cjs');
83
- require('../chunk-L47L3ZWJ.cjs');
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 = _chunkAQD4CBZ2cjs.decodeWorkflowHistoryTransport; exports.encodeToClient = _chunkNIYZDWMWcjs.encodeToClient; exports.encodeToServer = _chunkNIYZDWMWcjs.encodeToServer; exports.encodeWorkflowHistoryTransport = _chunkAQD4CBZ2cjs.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;
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-HBYEYBIC.js";
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-DZXDUGLL.js";
83
- import "../chunk-7HTNH26M.js";
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 _chunkTEUL4UYNcjs = require('./chunk-TEUL4UYN.cjs');
19
- require('./chunk-QPADHLDU.cjs');
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
- var _chunk3B6PCYJBcjs = require('./chunk-3B6PCYJB.cjs');
39
+
40
+
41
+ var _chunkHNE2AK6Ccjs = require('./chunk-HNE2AK6C.cjs');
36
42
  require('./chunk-NIYZDWMW.cjs');
37
43
 
38
44
 
39
45
 
40
- var _chunkLK36OGGOcjs = require('./chunk-LK36OGGO.cjs');
46
+ var _chunkA4KEUCB6cjs = require('./chunk-A4KEUCB6.cjs');
41
47
 
42
48
 
43
49
 
44
- var _chunk4KSHPFXFcjs = require('./chunk-4KSHPFXF.cjs');
50
+ var _chunkMPLMTJY5cjs = require('./chunk-MPLMTJY5.cjs');
45
51
 
46
52
 
47
- var _chunkL47L3ZWJcjs = require('./chunk-L47L3ZWJ.cjs');
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 = _chunk3B6PCYJBcjs.ALLOWED_PUBLIC_HEADERS; exports.ActorKv = _chunkLK36OGGOcjs.ActorKv; exports.ActorsSchema = _chunk3B6PCYJBcjs.ActorsSchema; exports.DocConfigureRunnerPoolSchema = _chunk3B6PCYJBcjs.DocConfigureRunnerPoolSchema; exports.DocInspectorConfigSchema = _chunk3B6PCYJBcjs.DocInspectorConfigSchema; exports.DocRegistryConfigSchema = _chunk3B6PCYJBcjs.DocRegistryConfigSchema; exports.DocRunnerConfigSchema = _chunk3B6PCYJBcjs.DocRunnerConfigSchema; exports.DocServerlessConfigSchema = _chunk3B6PCYJBcjs.DocServerlessConfigSchema; exports.DriverConfigSchema = _chunk3B6PCYJBcjs.DriverConfigSchema; exports.InlineWebSocketAdapter = _chunkUWAGLDT6cjs.InlineWebSocketAdapter; exports.KV_KEYS = _chunkLK36OGGOcjs.KEYS; exports.PATH_CONNECT = _chunk3B6PCYJBcjs.PATH_CONNECT; exports.PATH_WEBSOCKET_PREFIX = _chunk3B6PCYJBcjs.PATH_WEBSOCKET_PREFIX; exports.Registry = _chunkHKOSZKKZcjs.Registry; exports.RegistryConfigSchema = _chunk3B6PCYJBcjs.RegistryConfigSchema; exports.TestConfigSchema = _chunk3B6PCYJBcjs.TestConfigSchema; exports.UserError = _chunkL47L3ZWJcjs.UserError; exports.actor = _chunkHKOSZKKZcjs.actor; exports.buildActorNames = _chunk3B6PCYJBcjs.buildActorNames; exports.createActorRouter = _chunkUWAGLDT6cjs.createActorRouter; exports.createClientWithDriver = _chunkTEUL4UYNcjs.createClientWithDriver; exports.createEngineDriver = _chunkHKOSZKKZcjs.createEngineDriver; exports.createFileSystemDriver = _chunkUWAGLDT6cjs.createFileSystemDriver; exports.createMemoryDriver = _chunkUWAGLDT6cjs.createMemoryDriver; exports.event = _chunkHKOSZKKZcjs.event; exports.lookupInRegistry = _chunkUWAGLDT6cjs.lookupInRegistry; exports.noopNext = _chunk4KSHPFXFcjs.noopNext; exports.queue = _chunkHKOSZKKZcjs.queue; exports.routeWebSocket = _chunk3B6PCYJBcjs.routeWebSocket; exports.setup = _chunkHKOSZKKZcjs.setup; exports.toUint8Array = _chunk4KSHPFXFcjs.toUint8Array;
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
@@ -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;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;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"}
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"}
@@ -1,27 +1,27 @@
1
- import { R as RegistryConfig, A as ActorDriver, a as AnyConn, b as AnyActorInstance, E as Encoding, c as EventSchemaConfig, Q as QueueSchemaConfig, d as Actions, e as ActorConfigInput, f as ActorDefinition, g as event$1, q as queue$1 } from './config-iPj5l1bL.cjs';
2
- export { h as ActionContext, i as ActionContextOf, j as ActorConfig, k as ActorConfigSchema, l as ActorContext, m as ActorContextOf, n as ActorKey, o as ActorKv, p as ActorQuery, r as ActorTypes, s as ActorsSchema, t as AnyActorDefinition, u as AnyClient, v as AuthIntent, B as BeforeActionResponseContext, w as BeforeActionResponseContextOf, x as BeforeConnectContext, y as BeforeConnectContextOf, C as Client, z as Conn, D as ConnContext, F as ConnContextOf, G as ConnInitContext, H as ConnInitContextOf, I as ConnectContext, J as ConnectContextOf, K as CreateConnStateContext, L as CreateConnStateContextOf, M as CreateContext, N as CreateContextOf, O as CreateVarsContext, P as CreateVarsContextOf, S as DestroyContext, T as DestroyContextOf, U as DisconnectContext, V as DisconnectContextOf, W as DocActorConfigSchema, X as DocActorOptionsSchema, Y as DocConfigureRunnerPoolSchema, Z as DocInspectorConfigSchema, _ as DocRegistryConfigSchema, $ as DocRunnerConfigSchema, a0 as DocServerlessConfigSchema, a1 as FetchHandler, a2 as InspectorUnsubscribe, a3 as LegacyStartServerOutput, a4 as RUN_FUNCTION_CONFIG_SYMBOL, a5 as Registry, a6 as RegistryActors, a7 as RegistryConfigInput, a8 as RegistryConfigSchema, a9 as RequestContext, aa as RequestContextOf, ab as RunConfig, ac as RunConfigSchema, ad as RunContext, ae as RunContextOf, af as RunInspectorConfig, ag as ServerlessHandler, ah as SleepContext, ai as SleepContextOf, aj as StateChangeContext, ak as StateChangeContextOf, al as TestConfig, am as TestConfigSchema, an as Type, ao as WakeContext, ap as WakeContextOf, aq as WebSocketContext, ar as WebSocketContextOf, as as WorkflowInspectorConfig, at as buildActorNames, au as createClientWithDriver, av as getRunFunction, aw as getRunInspectorConfig, ax as getRunMetadata, ay as lookupInRegistry, az as setup, aA as test } from './config-iPj5l1bL.cjs';
3
- import { A as AnyDatabaseProvider } from './config-BiNoIHRs.cjs';
4
- export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-DzvH1PBK.cjs';
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-iV8J-WMv.cjs';
10
- export { a as DriverConfigSchema } from './driver-iV8J-WMv.cjs';
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, a as PATH_WEBSOCKET_PREFIX } from './actor-router-consts-D29T1Z-K.cjs';
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 'pino';
21
+ import '@standard-schema/spec';
22
22
  import '@rivetkit/sqlite-vfs';
23
23
  import 'drizzle-orm/sqlite-core';
24
- import '@standard-schema/spec';
24
+ import 'pino';
25
25
  import 'nanoevents';
26
26
  import './v3-DnYObHH3.cjs';
27
27
  import '@rivetkit/bare-ts';
@@ -1,27 +1,27 @@
1
- import { R as RegistryConfig, A as ActorDriver, a as AnyConn, b as AnyActorInstance, E as Encoding, c as EventSchemaConfig, Q as QueueSchemaConfig, d as Actions, e as ActorConfigInput, f as ActorDefinition, g as event$1, q as queue$1 } from './config-Qj-zLJPc.js';
2
- export { h as ActionContext, i as ActionContextOf, j as ActorConfig, k as ActorConfigSchema, l as ActorContext, m as ActorContextOf, n as ActorKey, o as ActorKv, p as ActorQuery, r as ActorTypes, s as ActorsSchema, t as AnyActorDefinition, u as AnyClient, v as AuthIntent, B as BeforeActionResponseContext, w as BeforeActionResponseContextOf, x as BeforeConnectContext, y as BeforeConnectContextOf, C as Client, z as Conn, D as ConnContext, F as ConnContextOf, G as ConnInitContext, H as ConnInitContextOf, I as ConnectContext, J as ConnectContextOf, K as CreateConnStateContext, L as CreateConnStateContextOf, M as CreateContext, N as CreateContextOf, O as CreateVarsContext, P as CreateVarsContextOf, S as DestroyContext, T as DestroyContextOf, U as DisconnectContext, V as DisconnectContextOf, W as DocActorConfigSchema, X as DocActorOptionsSchema, Y as DocConfigureRunnerPoolSchema, Z as DocInspectorConfigSchema, _ as DocRegistryConfigSchema, $ as DocRunnerConfigSchema, a0 as DocServerlessConfigSchema, a1 as FetchHandler, a2 as InspectorUnsubscribe, a3 as LegacyStartServerOutput, a4 as RUN_FUNCTION_CONFIG_SYMBOL, a5 as Registry, a6 as RegistryActors, a7 as RegistryConfigInput, a8 as RegistryConfigSchema, a9 as RequestContext, aa as RequestContextOf, ab as RunConfig, ac as RunConfigSchema, ad as RunContext, ae as RunContextOf, af as RunInspectorConfig, ag as ServerlessHandler, ah as SleepContext, ai as SleepContextOf, aj as StateChangeContext, ak as StateChangeContextOf, al as TestConfig, am as TestConfigSchema, an as Type, ao as WakeContext, ap as WakeContextOf, aq as WebSocketContext, ar as WebSocketContextOf, as as WorkflowInspectorConfig, at as buildActorNames, au as createClientWithDriver, av as getRunFunction, aw as getRunInspectorConfig, ax as getRunMetadata, ay as lookupInRegistry, az as setup, aA as test } from './config-Qj-zLJPc.js';
3
- import { A as AnyDatabaseProvider } from './config-BiNoIHRs.js';
4
- export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-CQCMuHND.js';
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-Jo8v-kbU.js';
10
- export { a as DriverConfigSchema } from './driver-Jo8v-kbU.js';
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, a as PATH_WEBSOCKET_PREFIX } from './actor-router-consts-D29T1Z-K.js';
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 'pino';
21
+ import '@standard-schema/spec';
22
22
  import '@rivetkit/sqlite-vfs';
23
23
  import 'drizzle-orm/sqlite-core';
24
- import '@standard-schema/spec';
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-M6H4XIF4.js";
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-KTWY3K6Z.js";
19
+ } from "./chunk-YGYGANCA.js";
20
+ import "./chunk-EONWXYMN.js";
16
21
  import {
17
22
  createClientWithDriver
18
- } from "./chunk-I6PL6QIY.js";
19
- import "./chunk-5UEFNG7P.js";
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-UDMRZR6A.js";
41
+ } from "./chunk-PQWI44WD.js";
36
42
  import "./chunk-LXUQ667X.js";
37
43
  import {
38
44
  ActorKv,
39
45
  KEYS
40
- } from "./chunk-ANKZ2FS6.js";
46
+ } from "./chunk-C22JYHVT.js";
41
47
  import {
42
48
  noopNext,
43
49
  toUint8Array
44
- } from "./chunk-DZXDUGLL.js";
50
+ } from "./chunk-VWYO36X4.js";
45
51
  import {
46
52
  UserError
47
- } from "./chunk-7HTNH26M.js";
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":[]}