rivetkit 2.3.11-rc.2 → 2.3.11-rc.4

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 (79) hide show
  1. package/dist/browser/client.d.ts +17 -0
  2. package/dist/browser/client.js +20 -9
  3. package/dist/browser/client.js.map +1 -1
  4. package/dist/browser/inspector/client.js +1 -1
  5. package/dist/browser/inspector/client.js.map +1 -1
  6. package/dist/tsup/agent-os/index.cjs +1 -1
  7. package/dist/tsup/agent-os/index.cjs.map +1 -1
  8. package/dist/tsup/agent-os/index.d.cts +16 -0
  9. package/dist/tsup/agent-os/index.d.ts +16 -0
  10. package/dist/tsup/agent-os/index.js +1 -1
  11. package/dist/tsup/agent-os/index.js.map +1 -1
  12. package/dist/tsup/{chunk-3NPCXMJS.cjs → chunk-3BQTLF6T.cjs} +158 -147
  13. package/dist/tsup/chunk-3BQTLF6T.cjs.map +1 -0
  14. package/dist/tsup/{chunk-7TVKYMD3.cjs → chunk-3WCNDXDU.cjs} +4 -4
  15. package/dist/tsup/{chunk-7TVKYMD3.cjs.map → chunk-3WCNDXDU.cjs.map} +1 -1
  16. package/dist/tsup/{chunk-XR2KF2ZA.js → chunk-5KLTIO35.js} +25 -14
  17. package/dist/tsup/chunk-5KLTIO35.js.map +1 -0
  18. package/dist/tsup/{chunk-XWIXH7JF.js → chunk-7N4PSYCJ.js} +2 -2
  19. package/dist/tsup/{chunk-XWIXH7JF.js.map → chunk-7N4PSYCJ.js.map} +1 -1
  20. package/dist/tsup/{chunk-5SHK4JM5.cjs → chunk-DD4HSOMO.cjs} +2 -2
  21. package/dist/tsup/{chunk-5SHK4JM5.cjs.map → chunk-DD4HSOMO.cjs.map} +1 -1
  22. package/dist/tsup/{chunk-NRRWLN6D.cjs → chunk-G66RAENX.cjs} +3 -3
  23. package/dist/tsup/{chunk-NRRWLN6D.cjs.map → chunk-G66RAENX.cjs.map} +1 -1
  24. package/dist/tsup/{chunk-NLAW2MIM.js → chunk-I3OXZILZ.js} +2 -2
  25. package/dist/tsup/{chunk-J4RT6EFK.cjs → chunk-RRVTP46R.cjs} +9 -9
  26. package/dist/tsup/{chunk-J4RT6EFK.cjs.map → chunk-RRVTP46R.cjs.map} +1 -1
  27. package/dist/tsup/{chunk-RVJQMOAA.js → chunk-S26YGW4T.js} +2 -2
  28. package/dist/tsup/{chunk-75K5VACB.js → chunk-TP5MGPLS.js} +3 -3
  29. package/dist/tsup/{chunk-LPGJPAVY.cjs → chunk-VAG7L6N3.cjs} +7 -7
  30. package/dist/tsup/{chunk-LPGJPAVY.cjs.map → chunk-VAG7L6N3.cjs.map} +1 -1
  31. package/dist/tsup/{chunk-KHSNHG4G.js → chunk-ZI6TSSI4.js} +3 -3
  32. package/dist/tsup/client/mod.cjs +5 -5
  33. package/dist/tsup/client/mod.d.cts +2 -2
  34. package/dist/tsup/client/mod.d.ts +2 -2
  35. package/dist/tsup/client/mod.js +4 -4
  36. package/dist/tsup/common/log.cjs +2 -2
  37. package/dist/tsup/common/log.js +1 -1
  38. package/dist/tsup/common/websocket.cjs +3 -3
  39. package/dist/tsup/common/websocket.js +2 -2
  40. package/dist/tsup/{config-BKAMOHez.d.ts → config-CZcjyT5B.d.ts} +17 -0
  41. package/dist/tsup/{config-Caocy3Z9.d.cts → config-rGWrumlO.d.cts} +17 -0
  42. package/dist/tsup/{context-D1_m5x1D.d.cts → context-B8W8E8nW.d.cts} +1 -1
  43. package/dist/tsup/{context-AfCExwbr.d.ts → context-_UrDZhEh.d.ts} +1 -1
  44. package/dist/tsup/db/drizzle.cjs +2 -2
  45. package/dist/tsup/db/drizzle.js +1 -1
  46. package/dist/tsup/db/mod.cjs +2 -2
  47. package/dist/tsup/db/mod.js +1 -1
  48. package/dist/tsup/dynamic/mod.d.cts +1 -1
  49. package/dist/tsup/dynamic/mod.d.ts +1 -1
  50. package/dist/tsup/inspector/mod.cjs +4 -4
  51. package/dist/tsup/inspector/mod.js +3 -3
  52. package/dist/tsup/inspector-tab/mod.d.cts +2 -2
  53. package/dist/tsup/inspector-tab/mod.d.ts +2 -2
  54. package/dist/tsup/mod.cjs +65 -65
  55. package/dist/tsup/mod.d.cts +3 -3
  56. package/dist/tsup/mod.d.ts +3 -3
  57. package/dist/tsup/mod.js +4 -4
  58. package/dist/tsup/test/mod.cjs +6 -6
  59. package/dist/tsup/test/mod.d.cts +1 -1
  60. package/dist/tsup/test/mod.d.ts +1 -1
  61. package/dist/tsup/test/mod.js +4 -4
  62. package/dist/tsup/utils.cjs +2 -2
  63. package/dist/tsup/utils.js +1 -1
  64. package/dist/tsup/workflow/mod.cjs +6 -6
  65. package/dist/tsup/workflow/mod.d.cts +3 -3
  66. package/dist/tsup/workflow/mod.d.ts +3 -3
  67. package/dist/tsup/workflow/mod.js +3 -3
  68. package/package.json +8 -8
  69. package/src/client/client.ts +11 -0
  70. package/src/client/query.ts +2 -0
  71. package/src/client/resolve-gateway-target.ts +2 -0
  72. package/src/engine-client/driver.ts +4 -0
  73. package/src/engine-client/mod.ts +13 -4
  74. package/dist/tsup/chunk-3NPCXMJS.cjs.map +0 -1
  75. package/dist/tsup/chunk-XR2KF2ZA.js.map +0 -1
  76. /package/dist/tsup/{chunk-NLAW2MIM.js.map → chunk-I3OXZILZ.js.map} +0 -0
  77. /package/dist/tsup/{chunk-RVJQMOAA.js.map → chunk-S26YGW4T.js.map} +0 -0
  78. /package/dist/tsup/{chunk-75K5VACB.js.map → chunk-TP5MGPLS.js.map} +0 -0
  79. /package/dist/tsup/{chunk-KHSNHG4G.js.map → chunk-ZI6TSSI4.js.map} +0 -0
package/dist/tsup/mod.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } var _class; var _class2; var _class3;
2
2
 
3
- var _chunk7TVKYMD3cjs = require('./chunk-7TVKYMD3.cjs');
3
+ var _chunk3WCNDXDUcjs = require('./chunk-3WCNDXDU.cjs');
4
4
 
5
5
 
6
6
 
@@ -23,13 +23,13 @@ var _chunkHNHLBM3Ycjs = require('./chunk-HNHLBM3Y.cjs');
23
23
 
24
24
 
25
25
 
26
- var _chunk3NPCXMJScjs = require('./chunk-3NPCXMJS.cjs');
26
+ var _chunk3BQTLF6Tcjs = require('./chunk-3BQTLF6T.cjs');
27
27
 
28
28
 
29
29
 
30
30
  var _chunkMYWZCDMLcjs = require('./chunk-MYWZCDML.cjs');
31
+ require('./chunk-G66RAENX.cjs');
31
32
  require('./chunk-UEULFXUI.cjs');
32
- require('./chunk-NRRWLN6D.cjs');
33
33
 
34
34
 
35
35
 
@@ -62,7 +62,7 @@ require('./chunk-NRRWLN6D.cjs');
62
62
 
63
63
 
64
64
 
65
- var _chunk5SHK4JM5cjs = require('./chunk-5SHK4JM5.cjs');
65
+ var _chunkDD4HSOMOcjs = require('./chunk-DD4HSOMO.cjs');
66
66
 
67
67
 
68
68
 
@@ -78,7 +78,7 @@ var _chunk4FC7TVS6cjs = require('./chunk-4FC7TVS6.cjs');
78
78
 
79
79
  // src/actor/log.ts
80
80
  function loggerWithoutContext() {
81
- return _chunk5SHK4JM5cjs.getLogger.call(void 0, "actor-runtime");
81
+ return _chunkDD4HSOMOcjs.getLogger.call(void 0, "actor-runtime");
82
82
  }
83
83
 
84
84
  // src/actor/definition.ts
@@ -218,7 +218,7 @@ function validateSchemaSync(schemas, key, data) {
218
218
  var _virtualwebsocket = require('@rivetkit/virtual-websocket');
219
219
  var _ws = require('hono/ws');
220
220
  function logger() {
221
- return _chunk5SHK4JM5cjs.getLogger.call(void 0, "inline-websocket-adapter");
221
+ return _chunkDD4HSOMOcjs.getLogger.call(void 0, "inline-websocket-adapter");
222
222
  }
223
223
  var InlineWebSocketAdapter = class {
224
224
  #handler;
@@ -389,7 +389,7 @@ function isLocalEngineEndpoint(endpoint) {
389
389
 
390
390
  // src/registry/log.ts
391
391
  function logger2() {
392
- return _chunk5SHK4JM5cjs.getLogger.call(void 0, "registry");
392
+ return _chunkDD4HSOMOcjs.getLogger.call(void 0, "registry");
393
393
  }
394
394
 
395
395
  // src/serverless/configure.ts
@@ -435,8 +435,8 @@ async function configureServerlessPool(config) {
435
435
  );
436
436
  }
437
437
  const customConfig = config.configurePool;
438
- const clientConfig = _chunk3NPCXMJScjs.convertRegistryConfigToClientConfig.call(void 0, config);
439
- const dcsRes = await _chunk3NPCXMJScjs.getDatacenters.call(void 0, clientConfig);
438
+ const clientConfig = _chunk3BQTLF6Tcjs.convertRegistryConfigToClientConfig.call(void 0, config);
439
+ const dcsRes = await _chunk3BQTLF6Tcjs.getDatacenters.call(void 0, clientConfig);
440
440
  const poolName = _nullishCoalesce(customConfig.name, () => ( "default"));
441
441
  const serverlessToken = _nullishCoalesce(config.token, () => ( config.publicToken));
442
442
  const headers = {
@@ -458,7 +458,7 @@ async function configureServerlessPool(config) {
458
458
  metadata: _nullishCoalesce(customConfig.metadata, () => ( {})),
459
459
  drain_on_version_upgrade: _nullishCoalesce(customConfig.drainOnVersionUpgrade, () => ( true))
460
460
  };
461
- await _chunk3NPCXMJScjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
461
+ await _chunk3BQTLF6Tcjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
462
462
  datacenters: Object.fromEntries(
463
463
  dcsRes.datacenters.map((dc) => [dc.name, serverlessConfig])
464
464
  )
@@ -475,7 +475,7 @@ async function configureServerlessPool(config) {
475
475
  logger2().warn({
476
476
  msg: "serverless pool configuration attempt failed",
477
477
  attempts,
478
- error: _chunk5SHK4JM5cjs.stringifyError.call(void 0, error)
478
+ error: _chunkDD4HSOMOcjs.stringifyError.call(void 0, error)
479
479
  });
480
480
  await sleep(CONFIGURE_RETRY_DELAY_MS);
481
481
  }
@@ -483,7 +483,7 @@ async function configureServerlessPool(config) {
483
483
  logger2().error({
484
484
  msg: "failed to configure serverless pool, validate endpoint is configured correctly then restart this process",
485
485
  attempts,
486
- error: _chunk5SHK4JM5cjs.stringifyError.call(void 0, lastError)
486
+ error: _chunkDD4HSOMOcjs.stringifyError.call(void 0, lastError)
487
487
  });
488
488
  throw lastError;
489
489
  }
@@ -495,20 +495,20 @@ var _zod = require('zod');
495
495
  var _v4 = require('zod/v4');
496
496
  var warnedMissingVersion = false;
497
497
  var EnvoyConfigSchema = _v4.z.object({
498
- poolName: _v4.z.string().default(() => _nullishCoalesce(_chunk5SHK4JM5cjs.getRivetPool.call(void 0, ), () => ( "default"))),
498
+ poolName: _v4.z.string().default(() => _nullishCoalesce(_chunkDD4HSOMOcjs.getRivetPool.call(void 0, ), () => ( "default"))),
499
499
  version: _v4.z.number().default(() => {
500
- const version = _chunk5SHK4JM5cjs.getRivetEnvoyVersion.call(void 0, );
500
+ const version = _chunkDD4HSOMOcjs.getRivetEnvoyVersion.call(void 0, );
501
501
  if (version !== void 0) return version;
502
- if (_chunk5SHK4JM5cjs.getNodeEnv.call(void 0, ) === "production" && !warnedMissingVersion) {
502
+ if (_chunkDD4HSOMOcjs.getNodeEnv.call(void 0, ) === "production" && !warnedMissingVersion) {
503
503
  warnedMissingVersion = true;
504
- _chunk5SHK4JM5cjs.getLogger.call(void 0, "rivetkit").error(
504
+ _chunkDD4HSOMOcjs.getLogger.call(void 0, "rivetkit").error(
505
505
  "RIVET_ENVOY_VERSION is not set. Actors will not be versioned, which means they won't be drained on deploy. This is only needed when self-hosting or using a custom envoy (not needed for Rivet Compute). Set this as a build arg in your Dockerfile. See https://rivet.dev/docs/actors/versions"
506
506
  );
507
507
  }
508
508
  return 1;
509
509
  }),
510
510
  // Deprecated.
511
- totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunk5SHK4JM5cjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
511
+ totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunkDD4HSOMOcjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
512
512
  envoyKey: _v4.z.string().optional()
513
513
  });
514
514
 
@@ -546,7 +546,7 @@ var ServerlessConfigSchema = _v4.z.object({
546
546
  *
547
547
  * Can also be set via RIVET_PUBLIC_ENDPOINT environment variable.
548
548
  */
549
- publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk5SHK4JM5cjs.getRivetPublicEndpoint.call(void 0, )))),
549
+ publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkDD4HSOMOcjs.getRivetPublicEndpoint.call(void 0, )))),
550
550
  /**
551
551
  * Token that clients should use when connecting via the public endpoint.
552
552
  *
@@ -554,7 +554,7 @@ var ServerlessConfigSchema = _v4.z.object({
554
554
  *
555
555
  * Can also be specified in the publicEndpoint URL as `https://namespace:token@host`.
556
556
  */
557
- publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk5SHK4JM5cjs.getRivetPublicToken.call(void 0, ))))
557
+ publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkDD4HSOMOcjs.getRivetPublicToken.call(void 0, ))))
558
558
  // There is no publicNamespace config option because the frontend and backend
559
559
  // cannot use different namespaces. The namespace is extracted from the
560
560
  // publicEndpoint URL auth syntax if provided.
@@ -608,7 +608,7 @@ var RegistryConfigSchema = _zod.z.object({
608
608
  * Runtime binding to use for RivetKit core.
609
609
  * */
610
610
  runtime: RuntimeKindSchema.optional().transform((val, ctx) => {
611
- const rawRuntime = _nullishCoalesce(val, () => ( _chunk5SHK4JM5cjs.getRivetkitRuntime.call(void 0, )));
611
+ const rawRuntime = _nullishCoalesce(val, () => ( _chunkDD4HSOMOcjs.getRivetkitRuntime.call(void 0, )));
612
612
  if (rawRuntime === void 0) {
613
613
  return "auto";
614
614
  }
@@ -645,7 +645,7 @@ var RegistryConfigSchema = _zod.z.object({
645
645
  * */
646
646
  logging: _zod.z.object({
647
647
  baseLogger: _zod.z.custom().optional(),
648
- level: _chunk5SHK4JM5cjs.LogLevelSchema.optional()
648
+ level: _chunkDD4HSOMOcjs.LogLevelSchema.optional()
649
649
  }).optional().default(() => ({})),
650
650
  // MARK: Routing
651
651
  // // This is a function to allow for lazy configuration of upgradeWebSocket on the
@@ -663,9 +663,9 @@ var RegistryConfigSchema = _zod.z.object({
663
663
  *
664
664
  * Can also be set via RIVET_ENDPOINT environment variables.
665
665
  */
666
- endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunk5SHK4JM5cjs.getRivetEngine.call(void 0, ))), () => ( _chunk5SHK4JM5cjs.getRivetEndpoint.call(void 0, )))),
667
- token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk5SHK4JM5cjs.getRivetToken.call(void 0, )))),
668
- namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk5SHK4JM5cjs.getRivetNamespace.call(void 0, )))),
666
+ endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunkDD4HSOMOcjs.getRivetEngine.call(void 0, ))), () => ( _chunkDD4HSOMOcjs.getRivetEndpoint.call(void 0, )))),
667
+ token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkDD4HSOMOcjs.getRivetToken.call(void 0, )))),
668
+ namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkDD4HSOMOcjs.getRivetNamespace.call(void 0, )))),
669
669
  headers: _zod.z.record(_zod.z.string(), _zod.z.string()).optional().default({}),
670
670
  // MARK: Client
671
671
  // TODO:
@@ -705,21 +705,21 @@ var RegistryConfigSchema = _zod.z.object({
705
705
  *
706
706
  * Starts the full Rust engine process locally.
707
707
  */
708
- startEngine: _zod.z.boolean().default(() => _chunk5SHK4JM5cjs.getRivetRunEngine.call(void 0, )),
708
+ startEngine: _zod.z.boolean().default(() => _chunkDD4HSOMOcjs.getRivetRunEngine.call(void 0, )),
709
709
  /**
710
710
  * @experimental
711
711
  *
712
712
  * Host to bind the spawned local engine process to.
713
713
  */
714
- engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunk5SHK4JM5cjs.getRivetRunEngineHost.call(void 0, ), () => ( ENGINE_HOST))),
714
+ engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkDD4HSOMOcjs.getRivetRunEngineHost.call(void 0, ), () => ( ENGINE_HOST))),
715
715
  /**
716
716
  * @experimental
717
717
  *
718
718
  * Port to bind the spawned local engine process to.
719
719
  */
720
- enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunk5SHK4JM5cjs.getRivetRunEnginePort.call(void 0, ), () => ( ENGINE_PORT))),
720
+ enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunkDD4HSOMOcjs.getRivetRunEnginePort.call(void 0, ), () => ( ENGINE_PORT))),
721
721
  /** @experimental */
722
- engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunk5SHK4JM5cjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunk5SHK4JM5cjs.VERSION))),
722
+ engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkDD4HSOMOcjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunkDD4HSOMOcjs.VERSION))),
723
723
  /**
724
724
  * @experimental
725
725
  *
@@ -767,7 +767,7 @@ var RegistryConfigSchema = _zod.z.object({
767
767
  }))
768
768
  }).transform((config, ctx) => {
769
769
  var _a, _b, _c;
770
- const isDevEnv = _chunk5SHK4JM5cjs.isDev.call(void 0, );
770
+ const isDevEnv = _chunkDD4HSOMOcjs.isDev.call(void 0, );
771
771
  const sqliteBackend = _nullishCoalesce(((_a = config.sqlite) == null ? void 0 : _a.backend), () => ( ((_b = config.test) == null ? void 0 : _b.sqliteBackend)));
772
772
  if (config.runtime === "wasm" && sqliteBackend === "local") {
773
773
  ctx.addIssue({
@@ -777,7 +777,7 @@ var RegistryConfigSchema = _zod.z.object({
777
777
  });
778
778
  }
779
779
  const sqlite = config.runtime === "wasm" && config.sqlite === void 0 ? { backend: "remote" } : config.sqlite;
780
- const parsedEndpoint = config.endpoint ? _chunk3NPCXMJScjs.tryParseEndpoint.call(void 0, ctx, {
780
+ const parsedEndpoint = config.endpoint ? _chunk3BQTLF6Tcjs.tryParseEndpoint.call(void 0, ctx, {
781
781
  endpoint: config.endpoint,
782
782
  path: ["endpoint"],
783
783
  namespace: config.namespace,
@@ -805,7 +805,7 @@ var RegistryConfigSchema = _zod.z.object({
805
805
  );
806
806
  const namespace = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.namespace), () => ( config.namespace)), () => ( "default"));
807
807
  const token = _nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token));
808
- const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunk3NPCXMJScjs.tryParseEndpoint.call(void 0, ctx, {
808
+ const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunk3BQTLF6Tcjs.tryParseEndpoint.call(void 0, ctx, {
809
809
  endpoint: config.serverless.publicEndpoint,
810
810
  path: ["serverless", "publicEndpoint"]
811
811
  }) : void 0;
@@ -908,7 +908,7 @@ var DocRegistryConfigSchema = _zod.z.object({
908
908
  noWelcome: _zod.z.boolean().optional().describe("Disable the welcome message on startup. Default: false"),
909
909
  sqlite: DocSqliteConfigSchema,
910
910
  logging: _zod.z.object({
911
- level: _chunk5SHK4JM5cjs.LogLevelSchema.optional().describe(
911
+ level: _chunkDD4HSOMOcjs.LogLevelSchema.optional().describe(
912
912
  "Log level for RivetKit. Default: 'warn'"
913
913
  )
914
914
  }).optional().describe("Logging configuration."),
@@ -3019,7 +3019,7 @@ async function cleanupNativeSleepRuntimeState(runtime, ctx, afterTrackedWorkDrai
3019
3019
  }).catch((error) => {
3020
3020
  logger2().warn({
3021
3021
  msg: "deferred native sleep cleanup failed",
3022
- error: _chunk5SHK4JM5cjs.stringifyError.call(void 0, error)
3022
+ error: _chunkDD4HSOMOcjs.stringifyError.call(void 0, error)
3023
3023
  });
3024
3024
  });
3025
3025
  return;
@@ -3146,10 +3146,10 @@ function decodeValue(value) {
3146
3146
  if (!value || value.length === 0) {
3147
3147
  return void 0;
3148
3148
  }
3149
- return _chunk5SHK4JM5cjs.decodeCborCompat.call(void 0, value);
3149
+ return _chunkDD4HSOMOcjs.decodeCborCompat.call(void 0, value);
3150
3150
  }
3151
3151
  function encodeValue(value) {
3152
- return _chunk5SHK4JM5cjs.encodeCborCompat.call(void 0, value);
3152
+ return _chunkDD4HSOMOcjs.encodeCborCompat.call(void 0, value);
3153
3153
  }
3154
3154
  function normalizeArgs(value) {
3155
3155
  return Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value];
@@ -3185,7 +3185,7 @@ function isStructuredBridgeError(error) {
3185
3185
  return _chunk4FC7TVS6cjs.isRivetErrorLike.call(void 0, error) && "__type" in error && (error.__type === "RivetError" || error.__type === "ActorError");
3186
3186
  }
3187
3187
  function encodeNativeCallbackError(error) {
3188
- const structuredError = isStructuredBridgeError(error) ? error : _chunk5SHK4JM5cjs.deconstructError.call(void 0, error, true);
3188
+ const structuredError = isStructuredBridgeError(error) ? error : _chunkDD4HSOMOcjs.deconstructError.call(void 0, error, true);
3189
3189
  const bridgeError = new Error(_chunk4FC7TVS6cjs.encodeBridgeRivetError.call(void 0, structuredError), {
3190
3190
  cause: error instanceof Error ? error : void 0
3191
3191
  });
@@ -3235,7 +3235,7 @@ function decodeWorkflowCbor(data) {
3235
3235
  return null;
3236
3236
  }
3237
3237
  try {
3238
- return _chunk5SHK4JM5cjs.decodeCborCompat.call(void 0, new Uint8Array(data));
3238
+ return _chunkDD4HSOMOcjs.decodeCborCompat.call(void 0, new Uint8Array(data));
3239
3239
  } catch (e5) {
3240
3240
  return null;
3241
3241
  }
@@ -3348,7 +3348,7 @@ function serializeWorkflowHistoryForJson(data) {
3348
3348
  if (data === null) {
3349
3349
  return null;
3350
3350
  }
3351
- const history = _chunk7TVKYMD3cjs.decodeWorkflowHistoryTransport.call(void 0, data);
3351
+ const history = _chunk3WCNDXDUcjs.decodeWorkflowHistoryTransport.call(void 0, data);
3352
3352
  return jsonSafe({
3353
3353
  nameRegistry: [...history.nameRegistry],
3354
3354
  entries: history.entries.map((entry) => ({
@@ -3489,12 +3489,12 @@ var NativeConnAdapter = class {
3489
3489
  this.#writeState(nextValue, { writeNative: true });
3490
3490
  },
3491
3491
  (newValue) => {
3492
- _chunk5SHK4JM5cjs.assertJsonCompatValue.call(void 0, newValue);
3492
+ _chunkDD4HSOMOcjs.assertJsonCompatValue.call(void 0, newValue);
3493
3493
  }
3494
3494
  );
3495
3495
  }
3496
3496
  set state(value) {
3497
- _chunk5SHK4JM5cjs.assertJsonCompatValue.call(void 0, value);
3497
+ _chunkDD4HSOMOcjs.assertJsonCompatValue.call(void 0, value);
3498
3498
  this.#writeState(value, { writeNative: true });
3499
3499
  }
3500
3500
  initializeState(value) {
@@ -4540,7 +4540,7 @@ var ActorContextHandleAdapter = class {
4540
4540
  },
4541
4541
  (newValue) => {
4542
4542
  this.#assertCanMutateState();
4543
- _chunk5SHK4JM5cjs.assertJsonCompatValue.call(void 0, newValue);
4543
+ _chunkDD4HSOMOcjs.assertJsonCompatValue.call(void 0, newValue);
4544
4544
  }
4545
4545
  );
4546
4546
  }
@@ -4551,7 +4551,7 @@ var ActorContextHandleAdapter = class {
4551
4551
  throw stateNotEnabledError();
4552
4552
  }
4553
4553
  this.#assertCanMutateState();
4554
- _chunk5SHK4JM5cjs.assertJsonCompatValue.call(void 0, value);
4554
+ _chunkDD4HSOMOcjs.assertJsonCompatValue.call(void 0, value);
4555
4555
  this.#writeState(value, { scheduleSave: true });
4556
4556
  }
4557
4557
  initializeState(value) {
@@ -4827,7 +4827,7 @@ var ActorContextHandleAdapter = class {
4827
4827
  const trackedPromise = Promise.resolve(promise).catch((error) => {
4828
4828
  logger2().warn({
4829
4829
  msg: "keepAwake promise rejected",
4830
- error: _chunk5SHK4JM5cjs.stringifyError.call(void 0, error)
4830
+ error: _chunkDD4HSOMOcjs.stringifyError.call(void 0, error)
4831
4831
  });
4832
4832
  }).then(() => null);
4833
4833
  try {
@@ -5289,9 +5289,9 @@ function buildNativeFactory(runtime, registryConfig, definition) {
5289
5289
  events: config.events,
5290
5290
  queues: config.queues
5291
5291
  };
5292
- const createClient = () => _chunk3NPCXMJScjs.createClientWithDriver.call(void 0,
5293
- new (0, _chunk3NPCXMJScjs.RemoteEngineControlClient)(
5294
- _chunk3NPCXMJScjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
5292
+ const createClient = () => _chunk3BQTLF6Tcjs.createClientWithDriver.call(void 0,
5293
+ new (0, _chunk3BQTLF6Tcjs.RemoteEngineControlClient)(
5294
+ _chunk3BQTLF6Tcjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
5295
5295
  ),
5296
5296
  { encoding: "bare" }
5297
5297
  );
@@ -5474,7 +5474,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
5474
5474
  400
5475
5475
  );
5476
5476
  }
5477
- const cbor = _chunk5SHK4JM5cjs.encodeCborCompat.call(void 0,
5477
+ const cbor = _chunkDD4HSOMOcjs.encodeCborCompat.call(void 0,
5478
5478
  _nullishCoalesce(body.body, () => ( null))
5479
5479
  );
5480
5480
  const message = await runtime.actorQueueSend(ctx, name, cbor);
@@ -6056,7 +6056,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
6056
6056
  new Response(null, { status: 404 })
6057
6057
  );
6058
6058
  }
6059
- const rawConnParams = jsRequest.headers.get(_chunk3NPCXMJScjs.HEADER_CONN_PARAMS);
6059
+ const rawConnParams = jsRequest.headers.get(_chunk3BQTLF6Tcjs.HEADER_CONN_PARAMS);
6060
6060
  let requestCtx;
6061
6061
  let conn;
6062
6062
  try {
@@ -6081,7 +6081,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
6081
6081
  requestCtx,
6082
6082
  jsRequest
6083
6083
  );
6084
- if (!_chunk3NPCXMJScjs.isResponseLike.call(void 0, response)) {
6084
+ if (!_chunk3BQTLF6Tcjs.isResponseLike.call(void 0, response)) {
6085
6085
  throw new Error(
6086
6086
  "onRequest handler must return a Response"
6087
6087
  );
@@ -6284,7 +6284,7 @@ async function buildServeConfig(config) {
6284
6284
  poolName: config.envoy.poolName,
6285
6285
  handleInspectorHttpInRuntime: true,
6286
6286
  serverlessBasePath: config.serverless.basePath,
6287
- serverlessPackageVersion: _chunk5SHK4JM5cjs.VERSION,
6287
+ serverlessPackageVersion: _chunkDD4HSOMOcjs.VERSION,
6288
6288
  serverlessClientEndpoint: config.publicEndpoint,
6289
6289
  serverlessClientNamespace: config.publicNamespace,
6290
6290
  serverlessClientToken: config.publicToken,
@@ -6297,19 +6297,19 @@ async function buildServeConfig(config) {
6297
6297
  } catch (error) {
6298
6298
  logger2().warn({
6299
6299
  msg: "could not resolve a local engine binary; if a local engine must be spawned it will fail with engine.binary_unavailable \u2014 set RIVET_ENGINE_BINARY_PATH or install the @rivetkit/engine-cli platform package",
6300
- error: _chunk5SHK4JM5cjs.stringifyError.call(void 0, error)
6300
+ error: _chunkDD4HSOMOcjs.stringifyError.call(void 0, error)
6301
6301
  });
6302
6302
  }
6303
6303
  serveConfig.engineHost = config.engineHost;
6304
6304
  serveConfig.enginePort = config.enginePort;
6305
6305
  if ((_a = config.test) == null ? void 0 : _a.enabled) {
6306
- serveConfig.inspectorTestToken = _nullishCoalesce(_chunk5SHK4JM5cjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
6306
+ serveConfig.inspectorTestToken = _nullishCoalesce(_chunkDD4HSOMOcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
6307
6307
  }
6308
6308
  return serveConfig;
6309
6309
  }
6310
6310
  async function buildRegistryWithRuntime(config, runtime) {
6311
6311
  var _a;
6312
- if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunk5SHK4JM5cjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
6312
+ if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunkDD4HSOMOcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
6313
6313
  trySetProcessEnv("_RIVET_TEST_INSPECTOR_TOKEN", "token");
6314
6314
  }
6315
6315
  if (runtime.kind === "napi") {
@@ -6364,7 +6364,7 @@ function createApplicationFetch(application) {
6364
6364
  body
6365
6365
  })
6366
6366
  );
6367
- if (!_chunk3NPCXMJScjs.isResponseLike.call(void 0, response)) {
6367
+ if (!_chunk3BQTLF6Tcjs.isResponseLike.call(void 0, response)) {
6368
6368
  throw new TypeError(
6369
6369
  "registry.listen() application fetch must return a Response"
6370
6370
  );
@@ -6401,7 +6401,7 @@ var Registry = class {
6401
6401
  var _a;
6402
6402
  this.#config = config;
6403
6403
  if ((_a = config.logging) == null ? void 0 : _a.baseLogger) {
6404
- _chunk5SHK4JM5cjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
6404
+ _chunkDD4HSOMOcjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
6405
6405
  }
6406
6406
  this.#buildConfiguredRegistry = _nullishCoalesce((deps == null ? void 0 : deps.buildConfiguredRegistry), () => ( buildConfiguredRegistry));
6407
6407
  this.routes = {
@@ -6627,11 +6627,11 @@ var Registry = class {
6627
6627
  * ```
6628
6628
  */
6629
6629
  async listen(opts = {}) {
6630
- const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunk5SHK4JM5cjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
6631
- const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunk5SHK4JM5cjs.getRivetkitPublicDir.call(void 0, )));
6630
+ const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunkDD4HSOMOcjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
6631
+ const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunkDD4HSOMOcjs.getRivetkitPublicDir.call(void 0, )));
6632
6632
  const config = this.parseConfig();
6633
6633
  const application = opts.application ? createApplicationFetch(opts.application) : void 0;
6634
- if (application && _chunk5SHK4JM5cjs.getRivetkitRuntimeMode.call(void 0, ) !== "serverless") {
6634
+ if (application && _chunkDD4HSOMOcjs.getRivetkitRuntimeMode.call(void 0, ) !== "serverless") {
6635
6635
  if (config.runtime === "wasm") {
6636
6636
  throw new Error(
6637
6637
  "registry.listen() requires the native runtime; use an application-owned HTTP server with WebAssembly"
@@ -6705,7 +6705,7 @@ var Registry = class {
6705
6705
  return jsonRouteResponse(503, {
6706
6706
  status: "not_started",
6707
6707
  runtime: "rivetkit",
6708
- version: _chunk5SHK4JM5cjs.VERSION
6708
+ version: _chunkDD4HSOMOcjs.VERSION
6709
6709
  });
6710
6710
  }
6711
6711
  const { runtime, registry } = configured;
@@ -6713,7 +6713,7 @@ var Registry = class {
6713
6713
  return jsonRouteResponse(501, {
6714
6714
  status: "unsupported",
6715
6715
  runtime: "rivetkit",
6716
- version: _chunk5SHK4JM5cjs.VERSION
6716
+ version: _chunkDD4HSOMOcjs.VERSION
6717
6717
  });
6718
6718
  }
6719
6719
  const response = await runtime.registryHealth(registry);
@@ -6960,7 +6960,7 @@ var Registry = class {
6960
6960
  );
6961
6961
  }
6962
6962
  if (this.#runtimeReadyPromise) return this.#runtimeReadyPromise;
6963
- if (_chunk5SHK4JM5cjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
6963
+ if (_chunkDD4HSOMOcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
6964
6964
  return Promise.reject(
6965
6965
  new Error(
6966
6966
  "registry.startAndWait() requires envoy runtime mode; serverless registries become ready per request"
@@ -7030,8 +7030,8 @@ var Registry = class {
7030
7030
  * ```
7031
7031
  */
7032
7032
  start() {
7033
- if (_chunk5SHK4JM5cjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
7034
- const publicDir = _nullishCoalesce(_chunk5SHK4JM5cjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
7033
+ if (_chunkDD4HSOMOcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
7034
+ const publicDir = _nullishCoalesce(_chunkDD4HSOMOcjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
7035
7035
  this.listen({ publicDir }).catch((error) => {
7036
7036
  logger2().error({ error }, "auto-listen failed; exiting");
7037
7037
  if (typeof process !== "undefined" && typeof process.exit === "function") {
@@ -7052,7 +7052,7 @@ var Registry = class {
7052
7052
  };
7053
7053
  console.log();
7054
7054
  console.log(
7055
- ` RivetKit ${_chunk5SHK4JM5cjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
7055
+ ` RivetKit ${_chunkDD4HSOMOcjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
7056
7056
  );
7057
7057
  if (config.namespace !== "default") {
7058
7058
  logLine("Namespace", config.namespace);
@@ -7127,5 +7127,5 @@ function setup(input) {
7127
7127
 
7128
7128
 
7129
7129
 
7130
- exports.ALLOWED_PUBLIC_HEADERS = _chunk3NPCXMJScjs.ALLOWED_PUBLIC_HEADERS; exports.ActorDefinition = ActorDefinition; exports.ActorError = _chunk4FC7TVS6cjs.RivetError; exports.ActorsSchema = ActorsSchema; exports.DocConfigurePoolSchema = DocConfigurePoolSchema; exports.DocEnvoyConfigSchema = DocEnvoyConfigSchema; exports.DocRegistryConfigSchema = DocRegistryConfigSchema; exports.DocServerlessConfigSchema = DocServerlessConfigSchema; exports.DocSqliteConfigSchema = DocSqliteConfigSchema; exports.InlineWebSocketAdapter = InlineWebSocketAdapter; exports.Registry = Registry; exports.RegistryConfigSchema = RegistryConfigSchema; exports.RivetError = _chunk4FC7TVS6cjs.RivetError; exports.RuntimeKindSchema = RuntimeKindSchema; exports.SqliteBackendSchema = SqliteBackendSchema; exports.SqliteConfigSchema = SqliteConfigSchema; exports.TestConfigSchema = TestConfigSchema; exports.UserError = _chunk4FC7TVS6cjs.UserError; exports.WasmRuntimeConfigSchema = WasmRuntimeConfigSchema; exports.actor = actor; exports.buildActorNames = buildActorNames; exports.createClientWithDriver = _chunk3NPCXMJScjs.createClientWithDriver; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunk5SHK4JM5cjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunk5SHK4JM5cjs.toUint8Array;
7130
+ exports.ALLOWED_PUBLIC_HEADERS = _chunk3BQTLF6Tcjs.ALLOWED_PUBLIC_HEADERS; exports.ActorDefinition = ActorDefinition; exports.ActorError = _chunk4FC7TVS6cjs.RivetError; exports.ActorsSchema = ActorsSchema; exports.DocConfigurePoolSchema = DocConfigurePoolSchema; exports.DocEnvoyConfigSchema = DocEnvoyConfigSchema; exports.DocRegistryConfigSchema = DocRegistryConfigSchema; exports.DocServerlessConfigSchema = DocServerlessConfigSchema; exports.DocSqliteConfigSchema = DocSqliteConfigSchema; exports.InlineWebSocketAdapter = InlineWebSocketAdapter; exports.Registry = Registry; exports.RegistryConfigSchema = RegistryConfigSchema; exports.RivetError = _chunk4FC7TVS6cjs.RivetError; exports.RuntimeKindSchema = RuntimeKindSchema; exports.SqliteBackendSchema = SqliteBackendSchema; exports.SqliteConfigSchema = SqliteConfigSchema; exports.TestConfigSchema = TestConfigSchema; exports.UserError = _chunk4FC7TVS6cjs.UserError; exports.WasmRuntimeConfigSchema = WasmRuntimeConfigSchema; exports.actor = actor; exports.buildActorNames = buildActorNames; exports.createClientWithDriver = _chunk3BQTLF6Tcjs.createClientWithDriver; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunkDD4HSOMOcjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunkDD4HSOMOcjs.toUint8Array;
7131
7131
  //# sourceMappingURL=mod.cjs.map
@@ -1,12 +1,12 @@
1
- import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, a as ActionContext, b as BeforeActionResponseContext, c as BeforeConnectContext, C as ConnectContext, d as CreateConnStateContext, e as CreateContext, f as CreateVarsContext, D as DestroyContext, g as DisconnectContext, M as MigrateContext, R as RequestContext, h as RunContext, S as SleepContext, i as StateChangeContext, W as WakeContext, j as WebSocketContext } from './config-Caocy3Z9.cjs';
2
- export { k as ACTOR_CONTEXT_INTERNAL_SYMBOL, l as ActionInputSchemas, m as Actions, n as ActorConfig, o as ActorConfigInput, p as ActorConfigSchema, q as ActorContext, r as ActorContextOf, s as ActorCron, t as ActorCronEveryOptions, u as ActorCronSetOptions, v as ActorDefinition, w as ActorInspectorConfig, x as ActorInspectorConfigSchema, y as ActorKey, z as ActorKv, F as ActorLogger, G as ActorOptions, H as ActorOptionsInput, I as ActorOptionsSchema, J as ActorQuery, K as ActorQueue, L as ActorSchedule, N as ActorTypes, O as ActorsSchema, P as AnyActorInstance, T as AnyClient, U as AnyConn, V as AnyStaticActorDefinition, X as AnyStaticActorInstance, Y as AuthIntent, Z as BUILTIN_INSPECTOR_TAB_IDS, _ as BaseActorInstance, $ as BuiltinInspectorTabIdSchema, a0 as CONN_DRIVER_SYMBOL, a1 as CONN_STATE_MANAGER_SYMBOL, a2 as Client, a3 as Conn, a4 as CronFire, a5 as CronJobInfo, a6 as CustomInspectorTabEntrySchema, a7 as DEFAULT_SLEEP_GRACE_PERIOD, a8 as DocActorConfigSchema, a9 as DocActorOptionsSchema, aa as DocConfigurePoolSchema, ab as DocEnvoyConfigSchema, ac as DocRegistryConfigSchema, ad as DocServerlessConfigSchema, ae as DocSqliteConfigSchema, af as FetchHandler, ag as GlobalActorOptions, ah as GlobalActorOptionsInput, ai as GlobalActorOptionsSchema, aj as HideInspectorTabEntrySchema, ak as InspectorTabEntrySchema, al as InspectorUnsubscribe, am as InstanceActorOptions, an as InstanceActorOptionsInput, ao as InstanceActorOptionsSchema, ap as QueueEnqueueAndWaitOptions, aq as QueueFilterName, ar as QueueIterOptions, as as QueueMessageOf, at as QueueName, au as QueueNextBatchOptions, av as QueueNextOptions, aw as QueueResultMessageForName, ax as QueueTryNextBatchOptions, ay as QueueTryNextOptions, az as QueueWaitOptions, aA as RAW_STATE_SYMBOL, aB as RUN_FUNCTION_CONFIG_SYMBOL, aC as Registry, aD as RegistryActors, aE as RegistryApplication, aF as RegistryConfig, aG as RegistryConfigInput, aH as RegistryConfigSchema, aI as RegistryDeps, aJ as RegistryListenOptions, aK as RegistryRoutes, aL as RunConfig, aM as RunConfigSchema, aN as RunInspectorConfig, aO as RuntimeKind, aP as RuntimeKindSchema, aQ as ScheduledEventInfo, aR as ScheduledFireInfo, aS as ServerlessHandler, aT as SqliteBackend, aU as SqliteBackendSchema, aV as SqliteConfig, aW as SqliteConfigSchema, aX as TestConfig, aY as TestConfigSchema, aZ as Type, a_ as WasmRuntimeBindings, a$ as WasmRuntimeConfig, b0 as WasmRuntimeConfigSchema, b1 as WasmRuntimeInitInput, b2 as WorkflowInspectorConfig, b3 as actor, b4 as buildActorNames, b5 as createClientWithDriver, b6 as disposeRunInspector, b7 as event, b8 as getRunFunction, b9 as getRunInspectorConfig, ba as getRunMetadata, bb as isStaticActorDefinition, bc as isStaticActorInstance, bd as lookupInRegistry, be as queue, bf as setup, bg as test } from './config-Caocy3Z9.cjs';
1
+ import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, a as ActionContext, b as BeforeActionResponseContext, c as BeforeConnectContext, C as ConnectContext, d as CreateConnStateContext, e as CreateContext, f as CreateVarsContext, D as DestroyContext, g as DisconnectContext, M as MigrateContext, R as RequestContext, h as RunContext, S as SleepContext, i as StateChangeContext, W as WakeContext, j as WebSocketContext } from './config-rGWrumlO.cjs';
2
+ export { k as ACTOR_CONTEXT_INTERNAL_SYMBOL, l as ActionInputSchemas, m as Actions, n as ActorConfig, o as ActorConfigInput, p as ActorConfigSchema, q as ActorContext, r as ActorContextOf, s as ActorCron, t as ActorCronEveryOptions, u as ActorCronSetOptions, v as ActorDefinition, w as ActorInspectorConfig, x as ActorInspectorConfigSchema, y as ActorKey, z as ActorKv, F as ActorLogger, G as ActorOptions, H as ActorOptionsInput, I as ActorOptionsSchema, J as ActorQuery, K as ActorQueue, L as ActorSchedule, N as ActorTypes, O as ActorsSchema, P as AnyActorInstance, T as AnyClient, U as AnyConn, V as AnyStaticActorDefinition, X as AnyStaticActorInstance, Y as AuthIntent, Z as BUILTIN_INSPECTOR_TAB_IDS, _ as BaseActorInstance, $ as BuiltinInspectorTabIdSchema, a0 as CONN_DRIVER_SYMBOL, a1 as CONN_STATE_MANAGER_SYMBOL, a2 as Client, a3 as Conn, a4 as CronFire, a5 as CronJobInfo, a6 as CustomInspectorTabEntrySchema, a7 as DEFAULT_SLEEP_GRACE_PERIOD, a8 as DocActorConfigSchema, a9 as DocActorOptionsSchema, aa as DocConfigurePoolSchema, ab as DocEnvoyConfigSchema, ac as DocRegistryConfigSchema, ad as DocServerlessConfigSchema, ae as DocSqliteConfigSchema, af as FetchHandler, ag as GlobalActorOptions, ah as GlobalActorOptionsInput, ai as GlobalActorOptionsSchema, aj as HideInspectorTabEntrySchema, ak as InspectorTabEntrySchema, al as InspectorUnsubscribe, am as InstanceActorOptions, an as InstanceActorOptionsInput, ao as InstanceActorOptionsSchema, ap as QueueEnqueueAndWaitOptions, aq as QueueFilterName, ar as QueueIterOptions, as as QueueMessageOf, at as QueueName, au as QueueNextBatchOptions, av as QueueNextOptions, aw as QueueResultMessageForName, ax as QueueTryNextBatchOptions, ay as QueueTryNextOptions, az as QueueWaitOptions, aA as RAW_STATE_SYMBOL, aB as RUN_FUNCTION_CONFIG_SYMBOL, aC as Registry, aD as RegistryActors, aE as RegistryApplication, aF as RegistryConfig, aG as RegistryConfigInput, aH as RegistryConfigSchema, aI as RegistryDeps, aJ as RegistryListenOptions, aK as RegistryRoutes, aL as RunConfig, aM as RunConfigSchema, aN as RunInspectorConfig, aO as RuntimeKind, aP as RuntimeKindSchema, aQ as ScheduledEventInfo, aR as ScheduledFireInfo, aS as ServerlessHandler, aT as SqliteBackend, aU as SqliteBackendSchema, aV as SqliteConfig, aW as SqliteConfigSchema, aX as TestConfig, aY as TestConfigSchema, aZ as Type, a_ as WasmRuntimeBindings, a$ as WasmRuntimeConfig, b0 as WasmRuntimeConfigSchema, b1 as WasmRuntimeInitInput, b2 as WorkflowInspectorConfig, b3 as actor, b4 as buildActorNames, b5 as createClientWithDriver, b6 as disposeRunInspector, b7 as event, b8 as getRunFunction, b9 as getRunInspectorConfig, ba as getRunMetadata, bb as isStaticActorDefinition, bc as isStaticActorInstance, bd as lookupInRegistry, be as queue, bf as setup, bg as test } from './config-rGWrumlO.cjs';
3
3
  export { E as Encoding, t as toUint8Array } from './utils-DQDCphrl.cjs';
4
4
  import { UniversalWebSocket } from '@rivetkit/virtual-websocket';
5
5
  export { RivetCloseEvent, RivetEvent, RivetMessageEvent, UniversalWebSocket } from '@rivetkit/virtual-websocket';
6
6
  import { A as AnyDatabaseProvider } from './config-BxOimoGX.cjs';
7
7
  export { R as ActorError, R as RivetError, a as RivetErrorLike, b as RivetErrorOptions, U as UserError, c as UserErrorOptions, n as noopNext } from './utils-CqDnC_PS.cjs';
8
8
  import { WSContext } from 'hono/ws';
9
- export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-D1_m5x1D.cjs';
9
+ export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-B8W8E8nW.cjs';
10
10
  import 'zod/v4';
11
11
  import '@rivetkit/rivetkit-wasm';
12
12
  import 'zod';
@@ -1,12 +1,12 @@
1
- import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, a as ActionContext, b as BeforeActionResponseContext, c as BeforeConnectContext, C as ConnectContext, d as CreateConnStateContext, e as CreateContext, f as CreateVarsContext, D as DestroyContext, g as DisconnectContext, M as MigrateContext, R as RequestContext, h as RunContext, S as SleepContext, i as StateChangeContext, W as WakeContext, j as WebSocketContext } from './config-BKAMOHez.js';
2
- export { k as ACTOR_CONTEXT_INTERNAL_SYMBOL, l as ActionInputSchemas, m as Actions, n as ActorConfig, o as ActorConfigInput, p as ActorConfigSchema, q as ActorContext, r as ActorContextOf, s as ActorCron, t as ActorCronEveryOptions, u as ActorCronSetOptions, v as ActorDefinition, w as ActorInspectorConfig, x as ActorInspectorConfigSchema, y as ActorKey, z as ActorKv, F as ActorLogger, G as ActorOptions, H as ActorOptionsInput, I as ActorOptionsSchema, J as ActorQuery, K as ActorQueue, L as ActorSchedule, N as ActorTypes, O as ActorsSchema, P as AnyActorInstance, T as AnyClient, U as AnyConn, V as AnyStaticActorDefinition, X as AnyStaticActorInstance, Y as AuthIntent, Z as BUILTIN_INSPECTOR_TAB_IDS, _ as BaseActorInstance, $ as BuiltinInspectorTabIdSchema, a0 as CONN_DRIVER_SYMBOL, a1 as CONN_STATE_MANAGER_SYMBOL, a2 as Client, a3 as Conn, a4 as CronFire, a5 as CronJobInfo, a6 as CustomInspectorTabEntrySchema, a7 as DEFAULT_SLEEP_GRACE_PERIOD, a8 as DocActorConfigSchema, a9 as DocActorOptionsSchema, aa as DocConfigurePoolSchema, ab as DocEnvoyConfigSchema, ac as DocRegistryConfigSchema, ad as DocServerlessConfigSchema, ae as DocSqliteConfigSchema, af as FetchHandler, ag as GlobalActorOptions, ah as GlobalActorOptionsInput, ai as GlobalActorOptionsSchema, aj as HideInspectorTabEntrySchema, ak as InspectorTabEntrySchema, al as InspectorUnsubscribe, am as InstanceActorOptions, an as InstanceActorOptionsInput, ao as InstanceActorOptionsSchema, ap as QueueEnqueueAndWaitOptions, aq as QueueFilterName, ar as QueueIterOptions, as as QueueMessageOf, at as QueueName, au as QueueNextBatchOptions, av as QueueNextOptions, aw as QueueResultMessageForName, ax as QueueTryNextBatchOptions, ay as QueueTryNextOptions, az as QueueWaitOptions, aA as RAW_STATE_SYMBOL, aB as RUN_FUNCTION_CONFIG_SYMBOL, aC as Registry, aD as RegistryActors, aE as RegistryApplication, aF as RegistryConfig, aG as RegistryConfigInput, aH as RegistryConfigSchema, aI as RegistryDeps, aJ as RegistryListenOptions, aK as RegistryRoutes, aL as RunConfig, aM as RunConfigSchema, aN as RunInspectorConfig, aO as RuntimeKind, aP as RuntimeKindSchema, aQ as ScheduledEventInfo, aR as ScheduledFireInfo, aS as ServerlessHandler, aT as SqliteBackend, aU as SqliteBackendSchema, aV as SqliteConfig, aW as SqliteConfigSchema, aX as TestConfig, aY as TestConfigSchema, aZ as Type, a_ as WasmRuntimeBindings, a$ as WasmRuntimeConfig, b0 as WasmRuntimeConfigSchema, b1 as WasmRuntimeInitInput, b2 as WorkflowInspectorConfig, b3 as actor, b4 as buildActorNames, b5 as createClientWithDriver, b6 as disposeRunInspector, b7 as event, b8 as getRunFunction, b9 as getRunInspectorConfig, ba as getRunMetadata, bb as isStaticActorDefinition, bc as isStaticActorInstance, bd as lookupInRegistry, be as queue, bf as setup, bg as test } from './config-BKAMOHez.js';
1
+ import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, a as ActionContext, b as BeforeActionResponseContext, c as BeforeConnectContext, C as ConnectContext, d as CreateConnStateContext, e as CreateContext, f as CreateVarsContext, D as DestroyContext, g as DisconnectContext, M as MigrateContext, R as RequestContext, h as RunContext, S as SleepContext, i as StateChangeContext, W as WakeContext, j as WebSocketContext } from './config-CZcjyT5B.js';
2
+ export { k as ACTOR_CONTEXT_INTERNAL_SYMBOL, l as ActionInputSchemas, m as Actions, n as ActorConfig, o as ActorConfigInput, p as ActorConfigSchema, q as ActorContext, r as ActorContextOf, s as ActorCron, t as ActorCronEveryOptions, u as ActorCronSetOptions, v as ActorDefinition, w as ActorInspectorConfig, x as ActorInspectorConfigSchema, y as ActorKey, z as ActorKv, F as ActorLogger, G as ActorOptions, H as ActorOptionsInput, I as ActorOptionsSchema, J as ActorQuery, K as ActorQueue, L as ActorSchedule, N as ActorTypes, O as ActorsSchema, P as AnyActorInstance, T as AnyClient, U as AnyConn, V as AnyStaticActorDefinition, X as AnyStaticActorInstance, Y as AuthIntent, Z as BUILTIN_INSPECTOR_TAB_IDS, _ as BaseActorInstance, $ as BuiltinInspectorTabIdSchema, a0 as CONN_DRIVER_SYMBOL, a1 as CONN_STATE_MANAGER_SYMBOL, a2 as Client, a3 as Conn, a4 as CronFire, a5 as CronJobInfo, a6 as CustomInspectorTabEntrySchema, a7 as DEFAULT_SLEEP_GRACE_PERIOD, a8 as DocActorConfigSchema, a9 as DocActorOptionsSchema, aa as DocConfigurePoolSchema, ab as DocEnvoyConfigSchema, ac as DocRegistryConfigSchema, ad as DocServerlessConfigSchema, ae as DocSqliteConfigSchema, af as FetchHandler, ag as GlobalActorOptions, ah as GlobalActorOptionsInput, ai as GlobalActorOptionsSchema, aj as HideInspectorTabEntrySchema, ak as InspectorTabEntrySchema, al as InspectorUnsubscribe, am as InstanceActorOptions, an as InstanceActorOptionsInput, ao as InstanceActorOptionsSchema, ap as QueueEnqueueAndWaitOptions, aq as QueueFilterName, ar as QueueIterOptions, as as QueueMessageOf, at as QueueName, au as QueueNextBatchOptions, av as QueueNextOptions, aw as QueueResultMessageForName, ax as QueueTryNextBatchOptions, ay as QueueTryNextOptions, az as QueueWaitOptions, aA as RAW_STATE_SYMBOL, aB as RUN_FUNCTION_CONFIG_SYMBOL, aC as Registry, aD as RegistryActors, aE as RegistryApplication, aF as RegistryConfig, aG as RegistryConfigInput, aH as RegistryConfigSchema, aI as RegistryDeps, aJ as RegistryListenOptions, aK as RegistryRoutes, aL as RunConfig, aM as RunConfigSchema, aN as RunInspectorConfig, aO as RuntimeKind, aP as RuntimeKindSchema, aQ as ScheduledEventInfo, aR as ScheduledFireInfo, aS as ServerlessHandler, aT as SqliteBackend, aU as SqliteBackendSchema, aV as SqliteConfig, aW as SqliteConfigSchema, aX as TestConfig, aY as TestConfigSchema, aZ as Type, a_ as WasmRuntimeBindings, a$ as WasmRuntimeConfig, b0 as WasmRuntimeConfigSchema, b1 as WasmRuntimeInitInput, b2 as WorkflowInspectorConfig, b3 as actor, b4 as buildActorNames, b5 as createClientWithDriver, b6 as disposeRunInspector, b7 as event, b8 as getRunFunction, b9 as getRunInspectorConfig, ba as getRunMetadata, bb as isStaticActorDefinition, bc as isStaticActorInstance, bd as lookupInRegistry, be as queue, bf as setup, bg as test } from './config-CZcjyT5B.js';
3
3
  export { E as Encoding, t as toUint8Array } from './utils-CV0akuDD.js';
4
4
  import { UniversalWebSocket } from '@rivetkit/virtual-websocket';
5
5
  export { RivetCloseEvent, RivetEvent, RivetMessageEvent, UniversalWebSocket } from '@rivetkit/virtual-websocket';
6
6
  import { A as AnyDatabaseProvider } from './config-BxOimoGX.js';
7
7
  export { R as ActorError, R as RivetError, a as RivetErrorLike, b as RivetErrorOptions, U as UserError, c as UserErrorOptions, n as noopNext } from './utils-CqDnC_PS.js';
8
8
  import { WSContext } from 'hono/ws';
9
- export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-AfCExwbr.js';
9
+ export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-_UrDZhEh.js';
10
10
  import 'zod/v4';
11
11
  import '@rivetkit/rivetkit-wasm';
12
12
  import 'zod';
package/dist/tsup/mod.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  decodeWorkflowHistoryTransport
3
- } from "./chunk-NLAW2MIM.js";
3
+ } from "./chunk-I3OXZILZ.js";
4
4
  import {
5
5
  ACTOR_CONTEXT_INTERNAL_SYMBOL,
6
6
  ActorConfigSchema,
@@ -23,13 +23,13 @@ import {
23
23
  isResponseLike,
24
24
  tryParseEndpoint,
25
25
  updateRunnerConfig
26
- } from "./chunk-XR2KF2ZA.js";
26
+ } from "./chunk-5KLTIO35.js";
27
27
  import {
28
28
  makePrefixedKey,
29
29
  removePrefixFromKey
30
30
  } from "./chunk-JI6GZ2C2.js";
31
+ import "./chunk-S26YGW4T.js";
31
32
  import "./chunk-7AFZMFPQ.js";
32
- import "./chunk-RVJQMOAA.js";
33
33
  import {
34
34
  LogLevelSchema,
35
35
  VERSION,
@@ -62,7 +62,7 @@ import {
62
62
  parsePortEnv,
63
63
  stringifyError,
64
64
  toUint8Array
65
- } from "./chunk-XWIXH7JF.js";
65
+ } from "./chunk-7N4PSYCJ.js";
66
66
  import {
67
67
  INTERNAL_ERROR_CODE,
68
68
  RivetError,
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkLPGJPAVYcjs = require('../chunk-LPGJPAVY.cjs');
3
+ var _chunkVAG7L6N3cjs = require('../chunk-VAG7L6N3.cjs');
4
4
 
5
5
 
6
- var _chunk3NPCXMJScjs = require('../chunk-3NPCXMJS.cjs');
6
+ var _chunk3BQTLF6Tcjs = require('../chunk-3BQTLF6T.cjs');
7
7
  require('../chunk-MYWZCDML.cjs');
8
+ require('../chunk-G66RAENX.cjs');
8
9
  require('../chunk-UEULFXUI.cjs');
9
- require('../chunk-NRRWLN6D.cjs');
10
- require('../chunk-5SHK4JM5.cjs');
10
+ require('../chunk-DD4HSOMO.cjs');
11
11
  require('../chunk-4FC7TVS6.cjs');
12
12
 
13
13
  // src/test/ready.ts
@@ -36,8 +36,8 @@ async function setupTest(c, registry) {
36
36
  registry.config.noWelcome = true;
37
37
  registry.start();
38
38
  await waitForRegistryReady(registry);
39
- const client = _chunkLPGJPAVYcjs.createClient.call(void 0, {
40
- ..._chunk3NPCXMJScjs.convertRegistryConfigToClientConfig.call(void 0, registry.parseConfig()),
39
+ const client = _chunkVAG7L6N3cjs.createClient.call(void 0, {
40
+ ..._chunk3BQTLF6Tcjs.convertRegistryConfigToClientConfig.call(void 0, registry.parseConfig()),
41
41
  disableMetadataLookup: false
42
42
  });
43
43
  c.onTestFinished(async () => {
@@ -1,5 +1,5 @@
1
1
  import { TestContext } from 'vitest';
2
- import { aC as Registry, a2 as Client } from '../config-Caocy3Z9.cjs';
2
+ import { aC as Registry, a2 as Client } from '../config-rGWrumlO.cjs';
3
3
  import 'zod/v4';
4
4
  import '../config-BxOimoGX.cjs';
5
5
  import '@rivetkit/rivetkit-wasm';
@@ -1,5 +1,5 @@
1
1
  import { TestContext } from 'vitest';
2
- import { aC as Registry, a2 as Client } from '../config-BKAMOHez.js';
2
+ import { aC as Registry, a2 as Client } from '../config-CZcjyT5B.js';
3
3
  import 'zod/v4';
4
4
  import '../config-BxOimoGX.js';
5
5
  import '@rivetkit/rivetkit-wasm';
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createClient
3
- } from "../chunk-KHSNHG4G.js";
3
+ } from "../chunk-ZI6TSSI4.js";
4
4
  import {
5
5
  convertRegistryConfigToClientConfig
6
- } from "../chunk-XR2KF2ZA.js";
6
+ } from "../chunk-5KLTIO35.js";
7
7
  import "../chunk-JI6GZ2C2.js";
8
+ import "../chunk-S26YGW4T.js";
8
9
  import "../chunk-7AFZMFPQ.js";
9
- import "../chunk-RVJQMOAA.js";
10
- import "../chunk-XWIXH7JF.js";
10
+ import "../chunk-7N4PSYCJ.js";
11
11
  import "../chunk-ZZ3WBRPD.js";
12
12
 
13
13
  // src/test/ready.ts