rivetkit 3.1.2-rc.4 → 3.1.2-rc.5

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 (65) hide show
  1. package/dist/browser/client.js +40 -18
  2. package/dist/browser/client.js.map +1 -1
  3. package/dist/browser/inspector/client.js +1 -1
  4. package/dist/browser/inspector/client.js.map +1 -1
  5. package/dist/tsup/{chunk-J6FABVZY.cjs → chunk-2BOGDAXY.cjs} +3 -3
  6. package/dist/tsup/{chunk-J6FABVZY.cjs.map → chunk-2BOGDAXY.cjs.map} +1 -1
  7. package/dist/tsup/{chunk-YJWR3YQX.js → chunk-2PPPGFWJ.js} +4 -4
  8. package/dist/tsup/{chunk-UWN46MY2.js → chunk-3T3EMLZW.js} +2 -2
  9. package/dist/tsup/{chunk-UWN46MY2.js.map → chunk-3T3EMLZW.js.map} +1 -1
  10. package/dist/tsup/{chunk-6476KISG.js → chunk-4M2YYW5C.js} +2 -2
  11. package/dist/tsup/{chunk-2NDVJNGH.cjs → chunk-62HCCSWY.cjs} +3 -3
  12. package/dist/tsup/{chunk-2NDVJNGH.cjs.map → chunk-62HCCSWY.cjs.map} +1 -1
  13. package/dist/tsup/{chunk-6AD2HIBH.cjs → chunk-6JRISJJK.cjs} +4 -4
  14. package/dist/tsup/{chunk-6AD2HIBH.cjs.map → chunk-6JRISJJK.cjs.map} +1 -1
  15. package/dist/tsup/{chunk-OS3NPWVL.js → chunk-6KETXN6K.js} +42 -20
  16. package/dist/tsup/chunk-6KETXN6K.js.map +1 -0
  17. package/dist/tsup/{chunk-VWIV375X.cjs → chunk-CKNOZ3G3.cjs} +2 -2
  18. package/dist/tsup/{chunk-VWIV375X.cjs.map → chunk-CKNOZ3G3.cjs.map} +1 -1
  19. package/dist/tsup/{chunk-QSO2JLX2.cjs → chunk-GSS3YRUD.cjs} +3 -3
  20. package/dist/tsup/{chunk-QSO2JLX2.cjs.map → chunk-GSS3YRUD.cjs.map} +1 -1
  21. package/dist/tsup/{chunk-P3P4I45V.cjs → chunk-ITW5YHD2.cjs} +7 -7
  22. package/dist/tsup/{chunk-P3P4I45V.cjs.map → chunk-ITW5YHD2.cjs.map} +1 -1
  23. package/dist/tsup/{chunk-OJ37CYEU.js → chunk-J7FZTBPN.js} +2 -2
  24. package/dist/tsup/{chunk-S26YAPYA.js → chunk-KRUDOIRE.js} +2 -2
  25. package/dist/tsup/{chunk-WJA6TRRE.cjs → chunk-MFJDJ2X6.cjs} +10 -10
  26. package/dist/tsup/{chunk-WJA6TRRE.cjs.map → chunk-MFJDJ2X6.cjs.map} +1 -1
  27. package/dist/tsup/{chunk-NSAMWM3A.js → chunk-OLOQ3NAM.js} +3 -3
  28. package/dist/tsup/{chunk-YCGI3WIV.js → chunk-URACKJQW.js} +2 -2
  29. package/dist/tsup/{chunk-Z367MDQC.cjs → chunk-W7R5OF2Y.cjs} +185 -163
  30. package/dist/tsup/chunk-W7R5OF2Y.cjs.map +1 -0
  31. package/dist/tsup/client/mod.cjs +5 -5
  32. package/dist/tsup/client/mod.js +4 -4
  33. package/dist/tsup/common/log.cjs +2 -2
  34. package/dist/tsup/common/log.js +1 -1
  35. package/dist/tsup/common/websocket.cjs +3 -3
  36. package/dist/tsup/common/websocket.js +2 -2
  37. package/dist/tsup/db/drizzle.cjs +2 -2
  38. package/dist/tsup/db/drizzle.js +1 -1
  39. package/dist/tsup/db/mod.cjs +3 -3
  40. package/dist/tsup/db/mod.js +2 -2
  41. package/dist/tsup/inspector/mod.cjs +5 -5
  42. package/dist/tsup/inspector/mod.js +4 -4
  43. package/dist/tsup/inspector/workflow.cjs +4 -4
  44. package/dist/tsup/inspector/workflow.js +3 -3
  45. package/dist/tsup/mod.cjs +86 -86
  46. package/dist/tsup/mod.js +5 -5
  47. package/dist/tsup/test/mod.cjs +6 -6
  48. package/dist/tsup/test/mod.js +4 -4
  49. package/dist/tsup/utils.cjs +2 -2
  50. package/dist/tsup/utils.js +1 -1
  51. package/dist/tsup/workflow/mod.cjs +7 -7
  52. package/dist/tsup/workflow/mod.js +4 -4
  53. package/package.json +9 -9
  54. package/src/client/actor-handle.ts +1 -0
  55. package/src/client/client.ts +4 -1
  56. package/src/client/lifecycle-errors.ts +22 -0
  57. package/src/client/resolve-gateway-target.ts +34 -15
  58. package/dist/tsup/chunk-OS3NPWVL.js.map +0 -1
  59. package/dist/tsup/chunk-Z367MDQC.cjs.map +0 -1
  60. /package/dist/tsup/{chunk-YJWR3YQX.js.map → chunk-2PPPGFWJ.js.map} +0 -0
  61. /package/dist/tsup/{chunk-6476KISG.js.map → chunk-4M2YYW5C.js.map} +0 -0
  62. /package/dist/tsup/{chunk-OJ37CYEU.js.map → chunk-J7FZTBPN.js.map} +0 -0
  63. /package/dist/tsup/{chunk-S26YAPYA.js.map → chunk-KRUDOIRE.js.map} +0 -0
  64. /package/dist/tsup/{chunk-NSAMWM3A.js.map → chunk-OLOQ3NAM.js.map} +0 -0
  65. /package/dist/tsup/{chunk-YCGI3WIV.js.map → chunk-URACKJQW.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 _chunk6AD2HIBHcjs = require('./chunk-6AD2HIBH.cjs');
3
+ var _chunk6JRISJJKcjs = require('./chunk-6JRISJJK.cjs');
4
4
 
5
5
 
6
6
 
@@ -35,7 +35,7 @@ var _chunkAQJFKHBKcjs = require('./chunk-AQJFKHBK.cjs');
35
35
 
36
36
 
37
37
 
38
- var _chunkZ367MDQCcjs = require('./chunk-Z367MDQC.cjs');
38
+ var _chunkW7R5OF2Ycjs = require('./chunk-W7R5OF2Y.cjs');
39
39
 
40
40
 
41
41
 
@@ -44,9 +44,9 @@ var _chunkRTWH3AX3cjs = require('./chunk-RTWH3AX3.cjs');
44
44
 
45
45
 
46
46
 
47
- var _chunk2NDVJNGHcjs = require('./chunk-2NDVJNGH.cjs');
47
+ var _chunk62HCCSWYcjs = require('./chunk-62HCCSWY.cjs');
48
48
  require('./chunk-KVFIONKQ.cjs');
49
- require('./chunk-QSO2JLX2.cjs');
49
+ require('./chunk-GSS3YRUD.cjs');
50
50
 
51
51
 
52
52
 
@@ -80,7 +80,7 @@ require('./chunk-QSO2JLX2.cjs');
80
80
 
81
81
 
82
82
 
83
- var _chunkVWIV375Xcjs = require('./chunk-VWIV375X.cjs');
83
+ var _chunkCKNOZ3G3cjs = require('./chunk-CKNOZ3G3.cjs');
84
84
 
85
85
 
86
86
 
@@ -98,7 +98,7 @@ var _chunkMGI2VVF6cjs = require('./chunk-MGI2VVF6.cjs');
98
98
 
99
99
  // src/actor/log.ts
100
100
  function loggerWithoutContext() {
101
- return _chunkVWIV375Xcjs.getLogger.call(void 0, "actor-runtime");
101
+ return _chunkCKNOZ3G3cjs.getLogger.call(void 0, "actor-runtime");
102
102
  }
103
103
 
104
104
  // src/actor/definition.ts
@@ -255,7 +255,7 @@ function validateSchemaSync(schemas, key, data) {
255
255
  var _virtualwebsocket = require('@rivetkit/virtual-websocket');
256
256
  var _ws = require('hono/ws');
257
257
  function logger() {
258
- return _chunkVWIV375Xcjs.getLogger.call(void 0, "inline-websocket-adapter");
258
+ return _chunkCKNOZ3G3cjs.getLogger.call(void 0, "inline-websocket-adapter");
259
259
  }
260
260
  var InlineWebSocketAdapter = class {
261
261
  #handler;
@@ -407,7 +407,7 @@ var InlineWebSocketAdapter = class {
407
407
 
408
408
  // src/registry/log.ts
409
409
  function logger2() {
410
- return _chunkVWIV375Xcjs.getLogger.call(void 0, "registry");
410
+ return _chunkCKNOZ3G3cjs.getLogger.call(void 0, "registry");
411
411
  }
412
412
 
413
413
  // src/serverless/configure.ts
@@ -453,8 +453,8 @@ async function configureServerlessPool(config) {
453
453
  );
454
454
  }
455
455
  const customConfig = config.configurePool;
456
- const clientConfig = _chunkZ367MDQCcjs.convertRegistryConfigToClientConfig.call(void 0, config);
457
- const dcsRes = await _chunkZ367MDQCcjs.getDatacenters.call(void 0, clientConfig);
456
+ const clientConfig = _chunkW7R5OF2Ycjs.convertRegistryConfigToClientConfig.call(void 0, config);
457
+ const dcsRes = await _chunkW7R5OF2Ycjs.getDatacenters.call(void 0, clientConfig);
458
458
  const poolName = _nullishCoalesce(customConfig.name, () => ( "default"));
459
459
  const serverlessToken = _nullishCoalesce(config.token, () => ( config.publicToken));
460
460
  const headers = {
@@ -476,7 +476,7 @@ async function configureServerlessPool(config) {
476
476
  metadata: _nullishCoalesce(customConfig.metadata, () => ( {})),
477
477
  drain_on_version_upgrade: _nullishCoalesce(customConfig.drainOnVersionUpgrade, () => ( true))
478
478
  };
479
- await _chunkZ367MDQCcjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
479
+ await _chunkW7R5OF2Ycjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
480
480
  datacenters: Object.fromEntries(
481
481
  dcsRes.datacenters.map((dc) => [dc.name, serverlessConfig])
482
482
  )
@@ -493,7 +493,7 @@ async function configureServerlessPool(config) {
493
493
  logger2().warn({
494
494
  msg: "serverless pool configuration attempt failed",
495
495
  attempts,
496
- error: _chunkVWIV375Xcjs.stringifyError.call(void 0, error)
496
+ error: _chunkCKNOZ3G3cjs.stringifyError.call(void 0, error)
497
497
  });
498
498
  await sleep(CONFIGURE_RETRY_DELAY_MS);
499
499
  }
@@ -501,7 +501,7 @@ async function configureServerlessPool(config) {
501
501
  logger2().error({
502
502
  msg: "failed to configure serverless pool, validate endpoint is configured correctly then restart this process",
503
503
  attempts,
504
- error: _chunkVWIV375Xcjs.stringifyError.call(void 0, lastError)
504
+ error: _chunkCKNOZ3G3cjs.stringifyError.call(void 0, lastError)
505
505
  });
506
506
  throw lastError;
507
507
  }
@@ -512,10 +512,10 @@ var _zod = require('zod');
512
512
  // src/registry/config/envoy.ts
513
513
  var _v4 = require('zod/v4');
514
514
  var EnvoyConfigSchema = _v4.z.object({
515
- poolName: _v4.z.string().default(() => _nullishCoalesce(_chunkVWIV375Xcjs.getRivetPool.call(void 0, ), () => ( "default"))),
516
- version: _v4.z.number().default(() => _nullishCoalesce(_chunkVWIV375Xcjs.getRivetEnvoyVersion.call(void 0, ), () => ( 1))),
515
+ poolName: _v4.z.string().default(() => _nullishCoalesce(_chunkCKNOZ3G3cjs.getRivetPool.call(void 0, ), () => ( "default"))),
516
+ version: _v4.z.number().default(() => _nullishCoalesce(_chunkCKNOZ3G3cjs.getRivetEnvoyVersion.call(void 0, ), () => ( 1))),
517
517
  // Deprecated.
518
- totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunkVWIV375Xcjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
518
+ totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunkCKNOZ3G3cjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
519
519
  nodeKey: _v4.z.string().optional()
520
520
  });
521
521
 
@@ -553,7 +553,7 @@ var ServerlessConfigSchema = _v4.z.object({
553
553
  *
554
554
  * Can also be set via RIVET_PUBLIC_ENDPOINT environment variable.
555
555
  */
556
- publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkVWIV375Xcjs.getRivetPublicEndpoint.call(void 0, )))),
556
+ publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkCKNOZ3G3cjs.getRivetPublicEndpoint.call(void 0, )))),
557
557
  /**
558
558
  * Token that clients should use when connecting via the public endpoint.
559
559
  *
@@ -561,7 +561,7 @@ var ServerlessConfigSchema = _v4.z.object({
561
561
  *
562
562
  * Can also be specified in the publicEndpoint URL as `https://namespace:token@host`.
563
563
  */
564
- publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkVWIV375Xcjs.getRivetPublicToken.call(void 0, ))))
564
+ publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkCKNOZ3G3cjs.getRivetPublicToken.call(void 0, ))))
565
565
  // There is no publicNamespace config option because the frontend and backend
566
566
  // cannot use different namespaces. The namespace is extracted from the
567
567
  // publicEndpoint URL auth syntax if provided.
@@ -615,7 +615,7 @@ var RegistryConfigSchema = _zod.z.object({
615
615
  * Runtime binding to use for RivetKit core.
616
616
  * */
617
617
  runtime: RuntimeKindSchema.optional().transform((val, ctx) => {
618
- const rawRuntime = _nullishCoalesce(val, () => ( _chunkVWIV375Xcjs.getRivetkitRuntime.call(void 0, )));
618
+ const rawRuntime = _nullishCoalesce(val, () => ( _chunkCKNOZ3G3cjs.getRivetkitRuntime.call(void 0, )));
619
619
  if (rawRuntime === void 0) {
620
620
  return "auto";
621
621
  }
@@ -652,7 +652,7 @@ var RegistryConfigSchema = _zod.z.object({
652
652
  * */
653
653
  logging: _zod.z.object({
654
654
  baseLogger: _zod.z.custom().optional(),
655
- level: _chunkVWIV375Xcjs.LogLevelSchema.optional()
655
+ level: _chunkCKNOZ3G3cjs.LogLevelSchema.optional()
656
656
  }).optional().default(() => ({})),
657
657
  // MARK: Routing
658
658
  // // This is a function to allow for lazy configuration of upgradeWebSocket on the
@@ -670,9 +670,9 @@ var RegistryConfigSchema = _zod.z.object({
670
670
  *
671
671
  * Can also be set via RIVET_ENDPOINT environment variables.
672
672
  */
673
- endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunkVWIV375Xcjs.getRivetEngine.call(void 0, ))), () => ( _chunkVWIV375Xcjs.getRivetEndpoint.call(void 0, )))),
674
- token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkVWIV375Xcjs.getRivetToken.call(void 0, )))),
675
- namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkVWIV375Xcjs.getRivetNamespace.call(void 0, )))),
673
+ endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunkCKNOZ3G3cjs.getRivetEngine.call(void 0, ))), () => ( _chunkCKNOZ3G3cjs.getRivetEndpoint.call(void 0, )))),
674
+ token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkCKNOZ3G3cjs.getRivetToken.call(void 0, )))),
675
+ namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkCKNOZ3G3cjs.getRivetNamespace.call(void 0, )))),
676
676
  headers: _zod.z.record(_zod.z.string(), _zod.z.string()).optional().default({}),
677
677
  // MARK: Client
678
678
  // TODO:
@@ -712,21 +712,21 @@ var RegistryConfigSchema = _zod.z.object({
712
712
  *
713
713
  * Starts the full Rust engine process locally.
714
714
  */
715
- startEngine: _zod.z.boolean().default(() => _chunkVWIV375Xcjs.getRivetRunEngine.call(void 0, )),
715
+ startEngine: _zod.z.boolean().default(() => _chunkCKNOZ3G3cjs.getRivetRunEngine.call(void 0, )),
716
716
  /**
717
717
  * @experimental
718
718
  *
719
719
  * Host to bind the spawned local engine process to.
720
720
  */
721
- engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkVWIV375Xcjs.getRivetRunEngineHost.call(void 0, ), () => ( _chunkZ367MDQCcjs.ENGINE_HOST))),
721
+ engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkCKNOZ3G3cjs.getRivetRunEngineHost.call(void 0, ), () => ( _chunkW7R5OF2Ycjs.ENGINE_HOST))),
722
722
  /**
723
723
  * @experimental
724
724
  *
725
725
  * Port to bind the spawned local engine process to.
726
726
  */
727
- enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunkVWIV375Xcjs.getRivetRunEnginePort.call(void 0, ), () => ( _chunkZ367MDQCcjs.ENGINE_PORT))),
727
+ enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunkCKNOZ3G3cjs.getRivetRunEnginePort.call(void 0, ), () => ( _chunkW7R5OF2Ycjs.ENGINE_PORT))),
728
728
  /** @experimental */
729
- engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkVWIV375Xcjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunkVWIV375Xcjs.VERSION))),
729
+ engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkCKNOZ3G3cjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunkCKNOZ3G3cjs.VERSION))),
730
730
  /**
731
731
  * Starts the first-party Services actor host when RivetKit manages
732
732
  * a local engine. Enabled by default for a managed local Engine. Set
@@ -785,7 +785,7 @@ var RegistryConfigSchema = _zod.z.object({
785
785
  }))
786
786
  }).transform((config, ctx) => {
787
787
  var _a, _b, _c;
788
- const isDevEnv = _chunkVWIV375Xcjs.isDev.call(void 0, );
788
+ const isDevEnv = _chunkCKNOZ3G3cjs.isDev.call(void 0, );
789
789
  const sqliteBackend = _nullishCoalesce(((_a = config.sqlite) == null ? void 0 : _a.backend), () => ( ((_b = config.test) == null ? void 0 : _b.sqliteBackend)));
790
790
  if (config.runtime === "wasm" && sqliteBackend === "local") {
791
791
  ctx.addIssue({
@@ -795,7 +795,7 @@ var RegistryConfigSchema = _zod.z.object({
795
795
  });
796
796
  }
797
797
  const sqlite = config.runtime === "wasm" && config.sqlite === void 0 ? { backend: "remote" } : config.sqlite;
798
- const parsedEndpoint = config.endpoint ? _chunkZ367MDQCcjs.tryParseEndpoint.call(void 0, ctx, {
798
+ const parsedEndpoint = config.endpoint ? _chunkW7R5OF2Ycjs.tryParseEndpoint.call(void 0, ctx, {
799
799
  endpoint: config.endpoint,
800
800
  path: ["endpoint"],
801
801
  namespace: config.namespace,
@@ -814,19 +814,19 @@ var RegistryConfigSchema = _zod.z.object({
814
814
  path: ["configurePool"]
815
815
  });
816
816
  }
817
- const localEngineEndpoint = _chunkZ367MDQCcjs.buildEngineEndpoint.call(void 0,
817
+ const localEngineEndpoint = _chunkW7R5OF2Ycjs.buildEngineEndpoint.call(void 0,
818
818
  config.engineHost,
819
819
  config.enginePort
820
820
  );
821
821
  const endpoint = config.startEngine ? localEngineEndpoint : _nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.endpoint), () => ( (isDevEnv ? localEngineEndpoint : void 0)));
822
822
  const engineSpawn = !parsedEndpoint && Boolean(endpoint);
823
- const startServices = _nullishCoalesce(_nullishCoalesce(config.startServices, () => ( _chunkVWIV375Xcjs.getRivetRunServices.call(void 0, ))), () => ( engineSpawn));
823
+ const startServices = _nullishCoalesce(_nullishCoalesce(config.startServices, () => ( _chunkCKNOZ3G3cjs.getRivetRunServices.call(void 0, ))), () => ( engineSpawn));
824
824
  const validateServerlessEndpoint = Boolean(
825
825
  config.startEngine || parsedEndpoint
826
826
  );
827
827
  const namespace = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.namespace), () => ( config.namespace)), () => ( "default"));
828
- const token = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token)), () => ( (endpoint && _chunkZ367MDQCcjs.isLocalEngineEndpoint.call(void 0, endpoint) ? "default" : void 0)));
829
- const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunkZ367MDQCcjs.tryParseEndpoint.call(void 0, ctx, {
828
+ const token = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token)), () => ( (endpoint && _chunkW7R5OF2Ycjs.isLocalEngineEndpoint.call(void 0, endpoint) ? "default" : void 0)));
829
+ const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunkW7R5OF2Ycjs.tryParseEndpoint.call(void 0, ctx, {
830
830
  endpoint: config.serverless.publicEndpoint,
831
831
  path: ["serverless", "publicEndpoint"]
832
832
  }) : void 0;
@@ -931,7 +931,7 @@ var DocRegistryConfigSchema = _zod.z.object({
931
931
  noWelcome: _zod.z.boolean().optional().describe("Disable the welcome message on startup. Default: false"),
932
932
  sqlite: DocSqliteConfigSchema,
933
933
  logging: _zod.z.object({
934
- level: _chunkVWIV375Xcjs.LogLevelSchema.optional().describe(
934
+ level: _chunkCKNOZ3G3cjs.LogLevelSchema.optional().describe(
935
935
  "Log level for RivetKit. Default: 'warn'"
936
936
  )
937
937
  }).optional().describe("Logging configuration."),
@@ -1576,7 +1576,7 @@ var NapiCoreRuntime = (_class = class {
1576
1576
  if (!(active == null ? void 0 : active.sameActorInstance(ownerCtx))) {
1577
1577
  return ownerCtx;
1578
1578
  }
1579
- const applicationSpan = _chunkZ367MDQCcjs.readActiveTraceHeaders.call(void 0, );
1579
+ const applicationSpan = _chunkW7R5OF2Ycjs.readActiveTraceHeaders.call(void 0, );
1580
1580
  if (!applicationSpan) {
1581
1581
  return active;
1582
1582
  }
@@ -1789,7 +1789,7 @@ var NapiCoreRuntime = (_class = class {
1789
1789
  const span = (_a = nativeCtx.invocationTraceContext()) == null ? void 0 : _a.span;
1790
1790
  return this.#invocationContext.run(
1791
1791
  nativeCtx,
1792
- () => _chunkZ367MDQCcjs.runWithActorInvocationSpan.call(void 0, span, run)
1792
+ () => _chunkW7R5OF2Ycjs.runWithActorInvocationSpan.call(void 0, span, run)
1793
1793
  );
1794
1794
  }
1795
1795
  actorInvocationTraceContext(ctx) {
@@ -2168,8 +2168,8 @@ function runtimeBytesToArrayBuffer(value) {
2168
2168
  function buildNativeHttpRequest(init) {
2169
2169
  var _a;
2170
2170
  const headers = new Headers(init.headers);
2171
- const originalUrl = headers.get(_chunkZ367MDQCcjs.HEADER_ORIGINAL_REQUEST_URL);
2172
- headers.delete(_chunkZ367MDQCcjs.HEADER_ORIGINAL_REQUEST_URL);
2171
+ const originalUrl = headers.get(_chunkW7R5OF2Ycjs.HEADER_ORIGINAL_REQUEST_URL);
2172
+ headers.delete(_chunkW7R5OF2Ycjs.HEADER_ORIGINAL_REQUEST_URL);
2173
2173
  const url = _nullishCoalesce(originalUrl, () => ( (init.uri.startsWith("http") ? init.uri : new URL(init.uri, "http://127.0.0.1").toString())));
2174
2174
  const method2 = init.method.toUpperCase();
2175
2175
  const bodyForbidden = method2 === "GET" || method2 === "HEAD";
@@ -2248,7 +2248,7 @@ async function pumpResponseBody(reader, stream) {
2248
2248
  }
2249
2249
  } catch (error) {
2250
2250
  try {
2251
- await stream.error(_chunkVWIV375Xcjs.stringifyError.call(void 0, error));
2251
+ await stream.error(_chunkCKNOZ3G3cjs.stringifyError.call(void 0, error));
2252
2252
  } catch (streamError) {
2253
2253
  logger2().debug({
2254
2254
  msg: "failed to report native http response stream error",
@@ -3482,7 +3482,7 @@ async function loadAutoRuntime(config, loaders = defaultRuntimeLoaders) {
3482
3482
  nativeError = error;
3483
3483
  logger2().warn({
3484
3484
  msg: "native runtime failed to load; falling back to wasm",
3485
- error: _chunkVWIV375Xcjs.stringifyError.call(void 0, error)
3485
+ error: _chunkCKNOZ3G3cjs.stringifyError.call(void 0, error)
3486
3486
  });
3487
3487
  }
3488
3488
  try {
@@ -3491,7 +3491,7 @@ async function loadAutoRuntime(config, loaders = defaultRuntimeLoaders) {
3491
3491
  throw new (0, _chunkMGI2VVF6cjs.RivetError)(
3492
3492
  "config",
3493
3493
  "runtime_unavailable",
3494
- `RivetKit could not load a core runtime. Native runtime: ${_chunkVWIV375Xcjs.stringifyError.call(void 0, nativeError)} Wasm runtime: ${_chunkVWIV375Xcjs.stringifyError.call(void 0, wasmError)}`,
3494
+ `RivetKit could not load a core runtime. Native runtime: ${_chunkCKNOZ3G3cjs.stringifyError.call(void 0, nativeError)} Wasm runtime: ${_chunkCKNOZ3G3cjs.stringifyError.call(void 0, wasmError)}`,
3495
3495
  {
3496
3496
  public: true,
3497
3497
  statusCode: 500
@@ -3699,7 +3699,7 @@ async function cleanupNativeSleepRuntimeState(runtime, ctx, afterTrackedWorkDrai
3699
3699
  }).catch((error) => {
3700
3700
  logger2().warn({
3701
3701
  msg: "deferred native sleep cleanup failed",
3702
- error: _chunkVWIV375Xcjs.stringifyError.call(void 0, error)
3702
+ error: _chunkCKNOZ3G3cjs.stringifyError.call(void 0, error)
3703
3703
  });
3704
3704
  });
3705
3705
  return;
@@ -3872,10 +3872,10 @@ function decodeValue(value) {
3872
3872
  if (!value || value.length === 0) {
3873
3873
  return void 0;
3874
3874
  }
3875
- return _chunkVWIV375Xcjs.decodeCborCompat.call(void 0, value);
3875
+ return _chunkCKNOZ3G3cjs.decodeCborCompat.call(void 0, value);
3876
3876
  }
3877
3877
  function encodeValue(value) {
3878
- return _chunkVWIV375Xcjs.encodeCborCompat.call(void 0, value);
3878
+ return _chunkCKNOZ3G3cjs.encodeCborCompat.call(void 0, value);
3879
3879
  }
3880
3880
  function normalizeArgs(value) {
3881
3881
  return Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value];
@@ -3911,7 +3911,7 @@ function isStructuredBridgeError(error) {
3911
3911
  return _chunkMGI2VVF6cjs.isRivetErrorLike.call(void 0, error) && "__type" in error && (error.__type === "RivetError" || error.__type === "ActorError");
3912
3912
  }
3913
3913
  function encodeNativeCallbackError(error) {
3914
- const structuredError = isStructuredBridgeError(error) ? error : _chunkVWIV375Xcjs.deconstructError.call(void 0, error, true);
3914
+ const structuredError = isStructuredBridgeError(error) ? error : _chunkCKNOZ3G3cjs.deconstructError.call(void 0, error, true);
3915
3915
  const { encoded, droppedMetadataCause } = _chunkMGI2VVF6cjs.encodeBridgeRivetError.call(void 0, structuredError);
3916
3916
  if (droppedMetadataCause !== void 0) {
3917
3917
  logger2().warn(
@@ -3973,7 +3973,7 @@ function decodeWorkflowCbor(data) {
3973
3973
  return null;
3974
3974
  }
3975
3975
  try {
3976
- return _chunkVWIV375Xcjs.decodeCborCompat.call(void 0, new Uint8Array(data));
3976
+ return _chunkCKNOZ3G3cjs.decodeCborCompat.call(void 0, new Uint8Array(data));
3977
3977
  } catch (e3) {
3978
3978
  return null;
3979
3979
  }
@@ -4086,7 +4086,7 @@ function serializeWorkflowHistoryForJson(data) {
4086
4086
  if (data === null) {
4087
4087
  return null;
4088
4088
  }
4089
- const history = _chunk6AD2HIBHcjs.decodeWorkflowHistoryTransport.call(void 0, data);
4089
+ const history = _chunk6JRISJJKcjs.decodeWorkflowHistoryTransport.call(void 0, data);
4090
4090
  return jsonSafe({
4091
4091
  nameRegistry: [...history.nameRegistry],
4092
4092
  entries: history.entries.map((entry) => ({
@@ -4232,7 +4232,7 @@ var NativeConnAdapter = class {
4232
4232
  },
4233
4233
  (newValue) => {
4234
4234
  assertCurrentState();
4235
- _chunkVWIV375Xcjs.assertJsonCompatValue.call(void 0, newValue);
4235
+ _chunkCKNOZ3G3cjs.assertJsonCompatValue.call(void 0, newValue);
4236
4236
  }
4237
4237
  );
4238
4238
  }
@@ -4240,7 +4240,7 @@ var NativeConnAdapter = class {
4240
4240
  var _a;
4241
4241
  (_a = this.#assertCanMutateState) == null ? void 0 : _a.call(this);
4242
4242
  const nextValue = unwrapWriteThroughProxy(value);
4243
- _chunkVWIV375Xcjs.assertJsonCompatValue.call(void 0, nextValue);
4243
+ _chunkCKNOZ3G3cjs.assertJsonCompatValue.call(void 0, nextValue);
4244
4244
  this.#writeState(nextValue, { writeNative: true });
4245
4245
  }
4246
4246
  initializeState(value) {
@@ -5314,7 +5314,7 @@ var ActorContextHandleAdapter = class {
5314
5314
  },
5315
5315
  (newValue) => {
5316
5316
  assertCurrentState();
5317
- _chunkVWIV375Xcjs.assertJsonCompatValue.call(void 0, newValue);
5317
+ _chunkCKNOZ3G3cjs.assertJsonCompatValue.call(void 0, newValue);
5318
5318
  }
5319
5319
  );
5320
5320
  }
@@ -5326,7 +5326,7 @@ var ActorContextHandleAdapter = class {
5326
5326
  }
5327
5327
  this.#assertCanMutateState();
5328
5328
  const nextValue = unwrapWriteThroughProxy(value);
5329
- _chunkVWIV375Xcjs.assertJsonCompatValue.call(void 0, nextValue);
5329
+ _chunkCKNOZ3G3cjs.assertJsonCompatValue.call(void 0, nextValue);
5330
5330
  this.#writeState(nextValue, { scheduleSave: true });
5331
5331
  }
5332
5332
  initializeState(value) {
@@ -5552,7 +5552,7 @@ var ActorContextHandleAdapter = class {
5552
5552
  log: {
5553
5553
  debug: (obj) => logger2().debug(obj)
5554
5554
  },
5555
- nativeDatabaseProvider: _chunk2NDVJNGHcjs.registerNativeStateTransactionOpener.call(void 0,
5555
+ nativeDatabaseProvider: _chunk62HCCSWYcjs.registerNativeStateTransactionOpener.call(void 0,
5556
5556
  {
5557
5557
  open: async (requestedActorId) => {
5558
5558
  void requestedActorId;
@@ -5575,7 +5575,7 @@ var ActorContextHandleAdapter = class {
5575
5575
  return this.#db;
5576
5576
  }
5577
5577
  #bindDatabaseClient(client) {
5578
- return _chunk2NDVJNGHcjs.bindNativeStateTransactionContext.call(void 0, client, {
5578
+ return _chunk62HCCSWYcjs.bindNativeStateTransactionContext.call(void 0, client, {
5579
5579
  enter: async () => await this.#enterStateTransaction(),
5580
5580
  exit: (scope) => this.#exitStateTransaction(
5581
5581
  scope
@@ -5779,7 +5779,7 @@ var ActorContextHandleAdapter = class {
5779
5779
  const trackedPromise = Promise.resolve(promise).catch((error) => {
5780
5780
  logger2().warn({
5781
5781
  msg: "keepAwake promise rejected",
5782
- error: _chunkVWIV375Xcjs.stringifyError.call(void 0, error)
5782
+ error: _chunkCKNOZ3G3cjs.stringifyError.call(void 0, error)
5783
5783
  });
5784
5784
  }).then(() => null);
5785
5785
  try {
@@ -6276,7 +6276,7 @@ function validateInspectorTabSource(tabId, resolved) {
6276
6276
  function buildNativeFactory(runtime, registryConfig, definition) {
6277
6277
  var _a;
6278
6278
  const config = definition.config;
6279
- const databaseProvider = _nullishCoalesce(config.db, () => ( _chunk2NDVJNGHcjs.db.call(void 0, )));
6279
+ const databaseProvider = _nullishCoalesce(config.db, () => ( _chunk62HCCSWYcjs.db.call(void 0, )));
6280
6280
  const actionHandlers = _chunkAQJFKHBKcjs.flattenActionHandlers.call(void 0, config.actions);
6281
6281
  const schemaConfig = {
6282
6282
  actionInputSchemas: _chunkAQJFKHBKcjs.flattenActionInputSchemas.call(void 0,
@@ -6287,9 +6287,9 @@ function buildNativeFactory(runtime, registryConfig, definition) {
6287
6287
  events: config.events,
6288
6288
  queues: config.queues
6289
6289
  };
6290
- const createClient = (ctx) => _chunkZ367MDQCcjs.createClientWithDriver.call(void 0,
6291
- new (0, _chunkZ367MDQCcjs.RemoteEngineControlClient)(
6292
- _chunkZ367MDQCcjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
6290
+ const createClient = (ctx) => _chunkW7R5OF2Ycjs.createClientWithDriver.call(void 0,
6291
+ new (0, _chunkW7R5OF2Ycjs.RemoteEngineControlClient)(
6292
+ _chunkW7R5OF2Ycjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
6293
6293
  ),
6294
6294
  {
6295
6295
  encoding: "bare",
@@ -6481,7 +6481,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
6481
6481
  400
6482
6482
  );
6483
6483
  }
6484
- const cbor = _chunkVWIV375Xcjs.encodeCborCompat.call(void 0,
6484
+ const cbor = _chunkCKNOZ3G3cjs.encodeCborCompat.call(void 0,
6485
6485
  _nullishCoalesce(body.body, () => ( null))
6486
6486
  );
6487
6487
  const message = await runtime.actorQueueSend(ctx, name, cbor);
@@ -7097,7 +7097,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7097
7097
  ...request,
7098
7098
  abortController: requestAbortController
7099
7099
  });
7100
- const rawConnParams = handlerRequest.headers.get(_chunkZ367MDQCcjs.HEADER_CONN_PARAMS);
7100
+ const rawConnParams = handlerRequest.headers.get(_chunkW7R5OF2Ycjs.HEADER_CONN_PARAMS);
7101
7101
  let requestCtx;
7102
7102
  let conn;
7103
7103
  let removeRequestAbortListener;
@@ -7154,7 +7154,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7154
7154
  requestCtx,
7155
7155
  handlerRequest
7156
7156
  );
7157
- if (!_chunkZ367MDQCcjs.isResponseLike.call(void 0, response)) {
7157
+ if (!_chunkW7R5OF2Ycjs.isResponseLike.call(void 0, response)) {
7158
7158
  throw new Error(
7159
7159
  "onRequest handler must return a Response"
7160
7160
  );
@@ -7249,7 +7249,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7249
7249
  var _a2;
7250
7250
  const { ctx } = unwrapTsfnPayload(error, payload);
7251
7251
  const history = (_a2 = getNativeWorkflowInspector(ctx)) == null ? void 0 : _a2.getHistory();
7252
- return history == null ? void 0 : _chunkVWIV375Xcjs.toUint8Array.call(void 0, history);
7252
+ return history == null ? void 0 : _chunkCKNOZ3G3cjs.toUint8Array.call(void 0, history);
7253
7253
  }
7254
7254
  ) : void 0,
7255
7255
  replayWorkflow: _chunkAQJFKHBKcjs.hasRunInspectorConfig.call(void 0, config.run) ? wrapNativeCallback(
@@ -7263,7 +7263,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7263
7263
  return void 0;
7264
7264
  }
7265
7265
  const history = await _asyncNullishCoalesce(await workflowInspector.replayFromStep(entryId), async () => ( null));
7266
- return history == null ? void 0 : _chunkVWIV375Xcjs.toUint8Array.call(void 0, history);
7266
+ return history == null ? void 0 : _chunkCKNOZ3G3cjs.toUint8Array.call(void 0, history);
7267
7267
  }
7268
7268
  ) : void 0,
7269
7269
  actions: Object.fromEntries(
@@ -7405,7 +7405,7 @@ async function buildServeConfig(config, resolveNativeBinaries = true) {
7405
7405
  startServices: resolveNativeBinaries && config.startServices,
7406
7406
  handleInspectorHttpInRuntime: true,
7407
7407
  serverlessBasePath: config.serverless.basePath,
7408
- serverlessPackageVersion: _chunkVWIV375Xcjs.VERSION,
7408
+ serverlessPackageVersion: _chunkCKNOZ3G3cjs.VERSION,
7409
7409
  serverlessClientEndpoint: config.publicEndpoint,
7410
7410
  serverlessClientNamespace: config.publicNamespace,
7411
7411
  serverlessClientToken: config.publicToken,
@@ -7419,12 +7419,12 @@ async function buildServeConfig(config, resolveNativeBinaries = true) {
7419
7419
  } catch (error) {
7420
7420
  logger2().warn({
7421
7421
  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",
7422
- error: _chunkVWIV375Xcjs.stringifyError.call(void 0, error)
7422
+ error: _chunkCKNOZ3G3cjs.stringifyError.call(void 0, error)
7423
7423
  });
7424
7424
  }
7425
7425
  }
7426
7426
  if (resolveNativeBinaries && config.startServices) {
7427
- const servicesBinary = _chunkVWIV375Xcjs.getEnvUniversal.call(void 0, "RIVET_SERVICES_BINARY");
7427
+ const servicesBinary = _chunkCKNOZ3G3cjs.getEnvUniversal.call(void 0, "RIVET_SERVICES_BINARY");
7428
7428
  if (servicesBinary) {
7429
7429
  serveConfig.servicesBinaryPath = servicesBinary;
7430
7430
  } else {
@@ -7439,13 +7439,13 @@ async function buildServeConfig(config, resolveNativeBinaries = true) {
7439
7439
  serveConfig.engineHost = config.engineHost;
7440
7440
  serveConfig.enginePort = config.enginePort;
7441
7441
  if ((_a = config.test) == null ? void 0 : _a.enabled) {
7442
- serveConfig.inspectorTestToken = _nullishCoalesce(_chunkVWIV375Xcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
7442
+ serveConfig.inspectorTestToken = _nullishCoalesce(_chunkCKNOZ3G3cjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
7443
7443
  }
7444
7444
  return serveConfig;
7445
7445
  }
7446
7446
  async function buildRegistryWithRuntime(config, runtime) {
7447
7447
  var _a;
7448
- if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunkVWIV375Xcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
7448
+ if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunkCKNOZ3G3cjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
7449
7449
  trySetProcessEnv("_RIVET_TEST_INSPECTOR_TOKEN", "token");
7450
7450
  }
7451
7451
  if (runtime.kind === "napi") {
@@ -7518,7 +7518,7 @@ function createApplicationFetch(application, runtime) {
7518
7518
  signal: abortController.signal
7519
7519
  })
7520
7520
  );
7521
- if (!_chunkZ367MDQCcjs.isResponseLike.call(void 0, response)) {
7521
+ if (!_chunkW7R5OF2Ycjs.isResponseLike.call(void 0, response)) {
7522
7522
  throw new TypeError(
7523
7523
  "registry.listen() application fetch must return a Response"
7524
7524
  );
@@ -7573,7 +7573,7 @@ var Registry = class {
7573
7573
  var _a;
7574
7574
  this.#config = config;
7575
7575
  if ((_a = config.logging) == null ? void 0 : _a.baseLogger) {
7576
- _chunkVWIV375Xcjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
7576
+ _chunkCKNOZ3G3cjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
7577
7577
  }
7578
7578
  this.#buildConfiguredRegistry = _nullishCoalesce((deps == null ? void 0 : deps.buildConfiguredRegistry), () => ( buildConfiguredRegistry));
7579
7579
  this.routes = {
@@ -7805,10 +7805,10 @@ var Registry = class {
7805
7805
  if (!opts.application) {
7806
7806
  rejectServerless();
7807
7807
  }
7808
- const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunkVWIV375Xcjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
7809
- const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunkVWIV375Xcjs.getRivetkitPublicDir.call(void 0, )));
7808
+ const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunkCKNOZ3G3cjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
7809
+ const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunkCKNOZ3G3cjs.getRivetkitPublicDir.call(void 0, )));
7810
7810
  const config = this.parseConfig();
7811
- if (opts.application && _chunkVWIV375Xcjs.getRivetkitRuntimeMode.call(void 0, ) !== "serverless") {
7811
+ if (opts.application && _chunkCKNOZ3G3cjs.getRivetkitRuntimeMode.call(void 0, ) !== "serverless") {
7812
7812
  if (config.runtime === "wasm") {
7813
7813
  throw new Error(
7814
7814
  "registry.listen() requires the native runtime; use an application-owned HTTP server with WebAssembly"
@@ -7884,7 +7884,7 @@ var Registry = class {
7884
7884
  return jsonRouteResponse(503, {
7885
7885
  status: "not_started",
7886
7886
  runtime: "rivetkit",
7887
- version: _chunkVWIV375Xcjs.VERSION
7887
+ version: _chunkCKNOZ3G3cjs.VERSION
7888
7888
  });
7889
7889
  }
7890
7890
  const { runtime, registry } = configured;
@@ -7892,7 +7892,7 @@ var Registry = class {
7892
7892
  return jsonRouteResponse(501, {
7893
7893
  status: "unsupported",
7894
7894
  runtime: "rivetkit",
7895
- version: _chunkVWIV375Xcjs.VERSION
7895
+ version: _chunkCKNOZ3G3cjs.VERSION
7896
7896
  });
7897
7897
  }
7898
7898
  const response = await runtime.registryHealth(registry);
@@ -7967,14 +7967,14 @@ var Registry = class {
7967
7967
  var _a;
7968
7968
  if (!this.#runtimeServePromise) {
7969
7969
  const configuredEnvoyVersion = (_a = this.#config.node) == null ? void 0 : _a.version;
7970
- const envoyVersionSource = configuredEnvoyVersion !== void 0 ? "config" : _chunkVWIV375Xcjs.getRivetEnvoyVersion.call(void 0, ) !== void 0 ? "environment" : "default";
7970
+ const envoyVersionSource = configuredEnvoyVersion !== void 0 ? "config" : _chunkCKNOZ3G3cjs.getRivetEnvoyVersion.call(void 0, ) !== void 0 ? "environment" : "default";
7971
7971
  logger2().info({
7972
7972
  msg: "starting rivetkit envoy",
7973
- rivetkitVersion: _chunkVWIV375Xcjs.VERSION,
7973
+ rivetkitVersion: _chunkCKNOZ3G3cjs.VERSION,
7974
7974
  envoyVersion: config.node.version,
7975
7975
  envoyVersionSource
7976
7976
  });
7977
- if (envoyVersionSource === "default" && _chunkVWIV375Xcjs.getNodeEnv.call(void 0, ) === "production") {
7977
+ if (envoyVersionSource === "default" && _chunkCKNOZ3G3cjs.getNodeEnv.call(void 0, ) === "production") {
7978
7978
  logger2().error({
7979
7979
  msg: "node version defaulted because neither config.node.version nor RIVET_NODE_VERSION is set; actors will not drain automatically across deploys. See https://rivet.dev/docs/actors/versions",
7980
7980
  envoyVersion: config.node.version,
@@ -8078,7 +8078,7 @@ var Registry = class {
8078
8078
  const modeAPromise = this.#runtimeServeConfiguredPromise;
8079
8079
  const modeBPromise = this.#runtimeServerlessPromise;
8080
8080
  const runtimes = /* @__PURE__ */ new Set();
8081
- const localDevSignal = signalDriven && _chunkVWIV375Xcjs.getNodeEnv.call(void 0, ) !== "production" && config.engineSpawn && config.endpoint !== void 0 && _chunkZ367MDQCcjs.isLocalEngineEndpoint.call(void 0, config.endpoint);
8081
+ const localDevSignal = signalDriven && _chunkCKNOZ3G3cjs.getNodeEnv.call(void 0, ) !== "production" && config.engineSpawn && config.endpoint !== void 0 && _chunkW7R5OF2Ycjs.isLocalEngineEndpoint.call(void 0, config.endpoint);
8082
8082
  let gracePeriodMs = (_a = config.shutdown) == null ? void 0 : _a.gracePeriodMs;
8083
8083
  if (gracePeriodMs === void 0) {
8084
8084
  gracePeriodMs = localDevSignal ? LOCAL_DEV_SHUTDOWN_GRACE_PERIOD_MS : await _asyncNullishCoalesce(await this.#shutdownBudgetMs(
@@ -8190,7 +8190,7 @@ var Registry = class {
8190
8190
  }
8191
8191
  if (this.#runtimeReadyPromise) return this.#runtimeReadyPromise;
8192
8192
  try {
8193
- if (_chunkVWIV375Xcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8193
+ if (_chunkCKNOZ3G3cjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8194
8194
  return Promise.reject(
8195
8195
  new Error(
8196
8196
  "registry.startAndWait() requires envoy runtime mode; serverless registries become ready per request"
@@ -8214,7 +8214,7 @@ var Registry = class {
8214
8214
  if (!configuredRegistryPromise || !serveLifecyclePromise) {
8215
8215
  throw new Error("registry envoy startup did not initialize");
8216
8216
  }
8217
- const readyTimeoutMs = config.engineSpawn && config.endpoint !== void 0 && _chunkZ367MDQCcjs.isLocalEngineEndpoint.call(void 0, config.endpoint) ? LOCAL_ENGINE_READY_TIMEOUT_MS : REGISTRY_READY_TIMEOUT_MS;
8217
+ const readyTimeoutMs = config.engineSpawn && config.endpoint !== void 0 && _chunkW7R5OF2Ycjs.isLocalEngineEndpoint.call(void 0, config.endpoint) ? LOCAL_ENGINE_READY_TIMEOUT_MS : REGISTRY_READY_TIMEOUT_MS;
8218
8218
  let timeout;
8219
8219
  const timeoutPromise = new Promise((_resolve, reject) => {
8220
8220
  var _a;
@@ -8264,8 +8264,8 @@ var Registry = class {
8264
8264
  * ```
8265
8265
  */
8266
8266
  start() {
8267
- if (_chunkVWIV375Xcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8268
- const publicDir = _nullishCoalesce(_chunkVWIV375Xcjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
8267
+ if (_chunkCKNOZ3G3cjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8268
+ const publicDir = _nullishCoalesce(_chunkCKNOZ3G3cjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
8269
8269
  this.listen({ publicDir }).catch((error) => {
8270
8270
  logger2().error({ error }, "auto-listen failed; exiting");
8271
8271
  if (typeof process !== "undefined" && typeof process.exit === "function") {
@@ -8381,13 +8381,13 @@ var Registry = class {
8381
8381
  };
8382
8382
  console.log();
8383
8383
  console.log(
8384
- ` RivetKit ${_chunkVWIV375Xcjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
8384
+ ` RivetKit ${_chunkCKNOZ3G3cjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
8385
8385
  );
8386
8386
  if (config.namespace !== "default") {
8387
8387
  logLine("Namespace", config.namespace);
8388
8388
  }
8389
8389
  if (config.endpoint) {
8390
- const endpointType = config.startEngine || _chunkZ367MDQCcjs.isLocalEngineEndpoint.call(void 0, config.endpoint) ? "local native" : "remote";
8390
+ const endpointType = config.startEngine || _chunkW7R5OF2Ycjs.isLocalEngineEndpoint.call(void 0, config.endpoint) ? "local native" : "remote";
8391
8391
  logLine("Endpoint", `${config.endpoint} (${endpointType})`);
8392
8392
  }
8393
8393
  if (kind === "serverless" && config.publicEndpoint) {
@@ -8457,5 +8457,5 @@ function setup(input) {
8457
8457
 
8458
8458
 
8459
8459
 
8460
- exports.ALLOWED_PUBLIC_HEADERS = _chunkZ367MDQCcjs.ALLOWED_PUBLIC_HEADERS; exports.ActorDefinition = ActorDefinition; exports.ActorError = _chunkMGI2VVF6cjs.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 = _chunkMGI2VVF6cjs.RivetError; exports.RuntimeKindSchema = RuntimeKindSchema; exports.SqliteBackendSchema = SqliteBackendSchema; exports.SqliteConfigSchema = SqliteConfigSchema; exports.TestConfigSchema = TestConfigSchema; exports.UserError = _chunkMGI2VVF6cjs.UserError; exports.WasmRuntimeConfigSchema = WasmRuntimeConfigSchema; exports.actor = actor; exports.buildActorNames = buildActorNames; exports.createClientWithDriver = _chunkZ367MDQCcjs.createClientWithDriver; exports.defineRunHandler = _chunkAQJFKHBKcjs.defineRunHandler; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunkVWIV375Xcjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunkVWIV375Xcjs.toUint8Array;
8460
+ exports.ALLOWED_PUBLIC_HEADERS = _chunkW7R5OF2Ycjs.ALLOWED_PUBLIC_HEADERS; exports.ActorDefinition = ActorDefinition; exports.ActorError = _chunkMGI2VVF6cjs.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 = _chunkMGI2VVF6cjs.RivetError; exports.RuntimeKindSchema = RuntimeKindSchema; exports.SqliteBackendSchema = SqliteBackendSchema; exports.SqliteConfigSchema = SqliteConfigSchema; exports.TestConfigSchema = TestConfigSchema; exports.UserError = _chunkMGI2VVF6cjs.UserError; exports.WasmRuntimeConfigSchema = WasmRuntimeConfigSchema; exports.actor = actor; exports.buildActorNames = buildActorNames; exports.createClientWithDriver = _chunkW7R5OF2Ycjs.createClientWithDriver; exports.defineRunHandler = _chunkAQJFKHBKcjs.defineRunHandler; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunkCKNOZ3G3cjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunkCKNOZ3G3cjs.toUint8Array;
8461
8461
  //# sourceMappingURL=mod.cjs.map