rivetkit 3.0.0-preview.1 → 3.0.0-preview.3

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 (61) hide show
  1. package/dist/browser/client.js +1 -1
  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-3MMTF3QA.js → chunk-2VXPVVNW.js} +3 -3
  6. package/dist/tsup/{chunk-IBEFA6CX.cjs → chunk-4WDX5ZI7.cjs} +2 -2
  7. package/dist/tsup/{chunk-IBEFA6CX.cjs.map → chunk-4WDX5ZI7.cjs.map} +1 -1
  8. package/dist/tsup/{chunk-HW2D5OFJ.cjs → chunk-7KES6QNE.cjs} +3 -3
  9. package/dist/tsup/{chunk-HW2D5OFJ.cjs.map → chunk-7KES6QNE.cjs.map} +1 -1
  10. package/dist/tsup/{chunk-3E2BPHQO.cjs → chunk-7Y4GHUAT.cjs} +10 -10
  11. package/dist/tsup/{chunk-3E2BPHQO.cjs.map → chunk-7Y4GHUAT.cjs.map} +1 -1
  12. package/dist/tsup/{chunk-DCDCHB5J.js → chunk-A447S5YG.js} +2 -2
  13. package/dist/tsup/{chunk-DQ6K3VVV.js → chunk-AGQNNAZ2.js} +3 -3
  14. package/dist/tsup/{chunk-VCVV726P.cjs → chunk-B6U5V6WE.cjs} +4 -4
  15. package/dist/tsup/{chunk-VCVV726P.cjs.map → chunk-B6U5V6WE.cjs.map} +1 -1
  16. package/dist/tsup/{chunk-CTQKKUZC.cjs → chunk-BCX5V7NI.cjs} +143 -143
  17. package/dist/tsup/{chunk-CTQKKUZC.cjs.map → chunk-BCX5V7NI.cjs.map} +1 -1
  18. package/dist/tsup/{chunk-KQ2WQDYT.js → chunk-HDQQVBOG.js} +2 -2
  19. package/dist/tsup/{chunk-6DDQSAAT.cjs → chunk-HRBZ4VW5.cjs} +7 -7
  20. package/dist/tsup/{chunk-6DDQSAAT.cjs.map → chunk-HRBZ4VW5.cjs.map} +1 -1
  21. package/dist/tsup/{chunk-TBJ4I3R3.js → chunk-IJGFSNGA.js} +4 -4
  22. package/dist/tsup/{chunk-SJPPKBT3.js → chunk-JWI6YJEA.js} +2 -2
  23. package/dist/tsup/{chunk-5OCN7VHH.js → chunk-JXO5QVDX.js} +2 -2
  24. package/dist/tsup/{chunk-5OCN7VHH.js.map → chunk-JXO5QVDX.js.map} +1 -1
  25. package/dist/tsup/{chunk-H6W37YLT.js → chunk-KCWRKXTY.js} +2 -2
  26. package/dist/tsup/{chunk-JLBPBEWC.cjs → chunk-KMYBA4P5.cjs} +3 -3
  27. package/dist/tsup/{chunk-JLBPBEWC.cjs.map → chunk-KMYBA4P5.cjs.map} +1 -1
  28. package/dist/tsup/{chunk-XUO6G4H6.cjs → chunk-PJ4PORWE.cjs} +3 -3
  29. package/dist/tsup/{chunk-XUO6G4H6.cjs.map → chunk-PJ4PORWE.cjs.map} +1 -1
  30. package/dist/tsup/client/mod.cjs +5 -5
  31. package/dist/tsup/client/mod.js +4 -4
  32. package/dist/tsup/common/log.cjs +2 -2
  33. package/dist/tsup/common/log.js +1 -1
  34. package/dist/tsup/common/websocket.cjs +3 -3
  35. package/dist/tsup/common/websocket.js +2 -2
  36. package/dist/tsup/db/drizzle.cjs +2 -2
  37. package/dist/tsup/db/drizzle.js +1 -1
  38. package/dist/tsup/db/mod.cjs +3 -3
  39. package/dist/tsup/db/mod.js +2 -2
  40. package/dist/tsup/inspector/mod.cjs +5 -5
  41. package/dist/tsup/inspector/mod.js +4 -4
  42. package/dist/tsup/inspector/workflow.cjs +4 -4
  43. package/dist/tsup/inspector/workflow.js +3 -3
  44. package/dist/tsup/mod.cjs +86 -86
  45. package/dist/tsup/mod.cjs.map +1 -1
  46. package/dist/tsup/mod.js +7 -7
  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.cjs.map +1 -1
  53. package/dist/tsup/workflow/mod.js +4 -4
  54. package/package.json +9 -9
  55. /package/dist/tsup/{chunk-3MMTF3QA.js.map → chunk-2VXPVVNW.js.map} +0 -0
  56. /package/dist/tsup/{chunk-DCDCHB5J.js.map → chunk-A447S5YG.js.map} +0 -0
  57. /package/dist/tsup/{chunk-DQ6K3VVV.js.map → chunk-AGQNNAZ2.js.map} +0 -0
  58. /package/dist/tsup/{chunk-KQ2WQDYT.js.map → chunk-HDQQVBOG.js.map} +0 -0
  59. /package/dist/tsup/{chunk-TBJ4I3R3.js.map → chunk-IJGFSNGA.js.map} +0 -0
  60. /package/dist/tsup/{chunk-SJPPKBT3.js.map → chunk-JWI6YJEA.js.map} +0 -0
  61. /package/dist/tsup/{chunk-H6W37YLT.js.map → chunk-KCWRKXTY.js.map} +0 -0
package/dist/tsup/mod.cjs CHANGED
@@ -1,6 +1,5 @@
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 _chunkVCVV726Pcjs = require('./chunk-VCVV726P.cjs');
4
3
 
5
4
 
6
5
 
@@ -15,9 +14,10 @@ var _chunkVCVV726Pcjs = require('./chunk-VCVV726P.cjs');
15
14
 
16
15
 
17
16
 
17
+ var _chunkHDVZ6YZGcjs = require('./chunk-HDVZ6YZG.cjs');
18
18
 
19
19
 
20
- var _chunkHDVZ6YZGcjs = require('./chunk-HDVZ6YZG.cjs');
20
+ var _chunkB6U5V6WEcjs = require('./chunk-B6U5V6WE.cjs');
21
21
 
22
22
 
23
23
 
@@ -35,17 +35,17 @@ var _chunkHDVZ6YZGcjs = require('./chunk-HDVZ6YZG.cjs');
35
35
 
36
36
 
37
37
 
38
- var _chunkCTQKKUZCcjs = require('./chunk-CTQKKUZC.cjs');
38
+ var _chunkBCX5V7NIcjs = require('./chunk-BCX5V7NI.cjs');
39
39
 
40
40
 
41
41
 
42
42
  var _chunkRTWH3AX3cjs = require('./chunk-RTWH3AX3.cjs');
43
- require('./chunk-HW2D5OFJ.cjs');
43
+ require('./chunk-7KES6QNE.cjs');
44
44
 
45
45
 
46
46
 
47
47
 
48
- var _chunkJLBPBEWCcjs = require('./chunk-JLBPBEWC.cjs');
48
+ var _chunkKMYBA4P5cjs = require('./chunk-KMYBA4P5.cjs');
49
49
  require('./chunk-KVFIONKQ.cjs');
50
50
 
51
51
 
@@ -80,7 +80,7 @@ require('./chunk-KVFIONKQ.cjs');
80
80
 
81
81
 
82
82
 
83
- var _chunkIBEFA6CXcjs = require('./chunk-IBEFA6CX.cjs');
83
+ var _chunk4WDX5ZI7cjs = require('./chunk-4WDX5ZI7.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 _chunkIBEFA6CXcjs.getLogger.call(void 0, "actor-runtime");
101
+ return _chunk4WDX5ZI7cjs.getLogger.call(void 0, "actor-runtime");
102
102
  }
103
103
 
104
104
  // src/actor/definition.ts
@@ -240,7 +240,7 @@ function validateSchemaSync(schemas, key, data) {
240
240
  var _virtualwebsocket = require('@rivetkit/virtual-websocket');
241
241
  var _ws = require('hono/ws');
242
242
  function logger() {
243
- return _chunkIBEFA6CXcjs.getLogger.call(void 0, "inline-websocket-adapter");
243
+ return _chunk4WDX5ZI7cjs.getLogger.call(void 0, "inline-websocket-adapter");
244
244
  }
245
245
  var InlineWebSocketAdapter = class {
246
246
  #handler;
@@ -392,7 +392,7 @@ var InlineWebSocketAdapter = class {
392
392
 
393
393
  // src/registry/log.ts
394
394
  function logger2() {
395
- return _chunkIBEFA6CXcjs.getLogger.call(void 0, "registry");
395
+ return _chunk4WDX5ZI7cjs.getLogger.call(void 0, "registry");
396
396
  }
397
397
 
398
398
  // src/serverless/configure.ts
@@ -438,8 +438,8 @@ async function configureServerlessPool(config) {
438
438
  );
439
439
  }
440
440
  const customConfig = config.configurePool;
441
- const clientConfig = _chunkCTQKKUZCcjs.convertRegistryConfigToClientConfig.call(void 0, config);
442
- const dcsRes = await _chunkCTQKKUZCcjs.getDatacenters.call(void 0, clientConfig);
441
+ const clientConfig = _chunkBCX5V7NIcjs.convertRegistryConfigToClientConfig.call(void 0, config);
442
+ const dcsRes = await _chunkBCX5V7NIcjs.getDatacenters.call(void 0, clientConfig);
443
443
  const poolName = _nullishCoalesce(customConfig.name, () => ( "default"));
444
444
  const serverlessToken = _nullishCoalesce(config.token, () => ( config.publicToken));
445
445
  const headers = {
@@ -461,7 +461,7 @@ async function configureServerlessPool(config) {
461
461
  metadata: _nullishCoalesce(customConfig.metadata, () => ( {})),
462
462
  drain_on_version_upgrade: _nullishCoalesce(customConfig.drainOnVersionUpgrade, () => ( true))
463
463
  };
464
- await _chunkCTQKKUZCcjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
464
+ await _chunkBCX5V7NIcjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
465
465
  datacenters: Object.fromEntries(
466
466
  dcsRes.datacenters.map((dc) => [dc.name, serverlessConfig])
467
467
  )
@@ -478,7 +478,7 @@ async function configureServerlessPool(config) {
478
478
  logger2().warn({
479
479
  msg: "serverless pool configuration attempt failed",
480
480
  attempts,
481
- error: _chunkIBEFA6CXcjs.stringifyError.call(void 0, error)
481
+ error: _chunk4WDX5ZI7cjs.stringifyError.call(void 0, error)
482
482
  });
483
483
  await sleep(CONFIGURE_RETRY_DELAY_MS);
484
484
  }
@@ -486,7 +486,7 @@ async function configureServerlessPool(config) {
486
486
  logger2().error({
487
487
  msg: "failed to configure serverless pool, validate endpoint is configured correctly then restart this process",
488
488
  attempts,
489
- error: _chunkIBEFA6CXcjs.stringifyError.call(void 0, lastError)
489
+ error: _chunk4WDX5ZI7cjs.stringifyError.call(void 0, lastError)
490
490
  });
491
491
  throw lastError;
492
492
  }
@@ -497,10 +497,10 @@ var _zod = require('zod');
497
497
  // src/registry/config/envoy.ts
498
498
  var _v4 = require('zod/v4');
499
499
  var EnvoyConfigSchema = _v4.z.object({
500
- poolName: _v4.z.string().default(() => _nullishCoalesce(_chunkIBEFA6CXcjs.getRivetPool.call(void 0, ), () => ( "default"))),
501
- version: _v4.z.number().default(() => _nullishCoalesce(_chunkIBEFA6CXcjs.getRivetEnvoyVersion.call(void 0, ), () => ( 1))),
500
+ poolName: _v4.z.string().default(() => _nullishCoalesce(_chunk4WDX5ZI7cjs.getRivetPool.call(void 0, ), () => ( "default"))),
501
+ version: _v4.z.number().default(() => _nullishCoalesce(_chunk4WDX5ZI7cjs.getRivetEnvoyVersion.call(void 0, ), () => ( 1))),
502
502
  // Deprecated.
503
- totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunkIBEFA6CXcjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
503
+ totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunk4WDX5ZI7cjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
504
504
  nodeKey: _v4.z.string().optional()
505
505
  });
506
506
 
@@ -538,7 +538,7 @@ var ServerlessConfigSchema = _v4.z.object({
538
538
  *
539
539
  * Can also be set via RIVET_PUBLIC_ENDPOINT environment variable.
540
540
  */
541
- publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkIBEFA6CXcjs.getRivetPublicEndpoint.call(void 0, )))),
541
+ publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk4WDX5ZI7cjs.getRivetPublicEndpoint.call(void 0, )))),
542
542
  /**
543
543
  * Token that clients should use when connecting via the public endpoint.
544
544
  *
@@ -546,7 +546,7 @@ var ServerlessConfigSchema = _v4.z.object({
546
546
  *
547
547
  * Can also be specified in the publicEndpoint URL as `https://namespace:token@host`.
548
548
  */
549
- publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkIBEFA6CXcjs.getRivetPublicToken.call(void 0, ))))
549
+ publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk4WDX5ZI7cjs.getRivetPublicToken.call(void 0, ))))
550
550
  // There is no publicNamespace config option because the frontend and backend
551
551
  // cannot use different namespaces. The namespace is extracted from the
552
552
  // publicEndpoint URL auth syntax if provided.
@@ -600,7 +600,7 @@ var RegistryConfigSchema = _zod.z.object({
600
600
  * Runtime binding to use for RivetKit core.
601
601
  * */
602
602
  runtime: RuntimeKindSchema.optional().transform((val, ctx) => {
603
- const rawRuntime = _nullishCoalesce(val, () => ( _chunkIBEFA6CXcjs.getRivetkitRuntime.call(void 0, )));
603
+ const rawRuntime = _nullishCoalesce(val, () => ( _chunk4WDX5ZI7cjs.getRivetkitRuntime.call(void 0, )));
604
604
  if (rawRuntime === void 0) {
605
605
  return "auto";
606
606
  }
@@ -637,7 +637,7 @@ var RegistryConfigSchema = _zod.z.object({
637
637
  * */
638
638
  logging: _zod.z.object({
639
639
  baseLogger: _zod.z.custom().optional(),
640
- level: _chunkIBEFA6CXcjs.LogLevelSchema.optional()
640
+ level: _chunk4WDX5ZI7cjs.LogLevelSchema.optional()
641
641
  }).optional().default(() => ({})),
642
642
  // MARK: Routing
643
643
  // // This is a function to allow for lazy configuration of upgradeWebSocket on the
@@ -655,9 +655,9 @@ var RegistryConfigSchema = _zod.z.object({
655
655
  *
656
656
  * Can also be set via RIVET_ENDPOINT environment variables.
657
657
  */
658
- endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunkIBEFA6CXcjs.getRivetEngine.call(void 0, ))), () => ( _chunkIBEFA6CXcjs.getRivetEndpoint.call(void 0, )))),
659
- token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkIBEFA6CXcjs.getRivetToken.call(void 0, )))),
660
- namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkIBEFA6CXcjs.getRivetNamespace.call(void 0, )))),
658
+ endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunk4WDX5ZI7cjs.getRivetEngine.call(void 0, ))), () => ( _chunk4WDX5ZI7cjs.getRivetEndpoint.call(void 0, )))),
659
+ token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk4WDX5ZI7cjs.getRivetToken.call(void 0, )))),
660
+ namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk4WDX5ZI7cjs.getRivetNamespace.call(void 0, )))),
661
661
  headers: _zod.z.record(_zod.z.string(), _zod.z.string()).optional().default({}),
662
662
  // MARK: Client
663
663
  // TODO:
@@ -697,21 +697,21 @@ var RegistryConfigSchema = _zod.z.object({
697
697
  *
698
698
  * Starts the full Rust engine process locally.
699
699
  */
700
- startEngine: _zod.z.boolean().default(() => _chunkIBEFA6CXcjs.getRivetRunEngine.call(void 0, )),
700
+ startEngine: _zod.z.boolean().default(() => _chunk4WDX5ZI7cjs.getRivetRunEngine.call(void 0, )),
701
701
  /**
702
702
  * @experimental
703
703
  *
704
704
  * Host to bind the spawned local engine process to.
705
705
  */
706
- engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkIBEFA6CXcjs.getRivetRunEngineHost.call(void 0, ), () => ( _chunkCTQKKUZCcjs.ENGINE_HOST))),
706
+ engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunk4WDX5ZI7cjs.getRivetRunEngineHost.call(void 0, ), () => ( _chunkBCX5V7NIcjs.ENGINE_HOST))),
707
707
  /**
708
708
  * @experimental
709
709
  *
710
710
  * Port to bind the spawned local engine process to.
711
711
  */
712
- enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunkIBEFA6CXcjs.getRivetRunEnginePort.call(void 0, ), () => ( _chunkCTQKKUZCcjs.ENGINE_PORT))),
712
+ enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunk4WDX5ZI7cjs.getRivetRunEnginePort.call(void 0, ), () => ( _chunkBCX5V7NIcjs.ENGINE_PORT))),
713
713
  /** @experimental */
714
- engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkIBEFA6CXcjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunkIBEFA6CXcjs.VERSION))),
714
+ engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunk4WDX5ZI7cjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunk4WDX5ZI7cjs.VERSION))),
715
715
  /**
716
716
  * Starts the first-party Services actor host when RivetKit manages
717
717
  * a local engine. Disabled by default. Set RIVET_RUN_SERVICES=1
@@ -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 = _chunkIBEFA6CXcjs.isDev.call(void 0, );
770
+ const isDevEnv = _chunk4WDX5ZI7cjs.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 ? _chunkCTQKKUZCcjs.tryParseEndpoint.call(void 0, ctx, {
780
+ const parsedEndpoint = config.endpoint ? _chunkBCX5V7NIcjs.tryParseEndpoint.call(void 0, ctx, {
781
781
  endpoint: config.endpoint,
782
782
  path: ["endpoint"],
783
783
  namespace: config.namespace,
@@ -796,18 +796,18 @@ var RegistryConfigSchema = _zod.z.object({
796
796
  path: ["configurePool"]
797
797
  });
798
798
  }
799
- const localEngineEndpoint = _chunkCTQKKUZCcjs.buildEngineEndpoint.call(void 0,
799
+ const localEngineEndpoint = _chunkBCX5V7NIcjs.buildEngineEndpoint.call(void 0,
800
800
  config.engineHost,
801
801
  config.enginePort
802
802
  );
803
803
  const endpoint = config.startEngine ? localEngineEndpoint : _nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.endpoint), () => ( (isDevEnv ? localEngineEndpoint : void 0)));
804
- const startServices = _nullishCoalesce(config.startServices, () => ( _chunkIBEFA6CXcjs.getRivetRunServices.call(void 0, )));
804
+ const startServices = _nullishCoalesce(config.startServices, () => ( _chunk4WDX5ZI7cjs.getRivetRunServices.call(void 0, )));
805
805
  const validateServerlessEndpoint = Boolean(
806
806
  config.startEngine || parsedEndpoint
807
807
  );
808
808
  const namespace = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.namespace), () => ( config.namespace)), () => ( "default"));
809
- const token = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token)), () => ( (endpoint && _chunkCTQKKUZCcjs.isLocalEngineEndpoint.call(void 0, endpoint) ? "default" : void 0)));
810
- const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunkCTQKKUZCcjs.tryParseEndpoint.call(void 0, ctx, {
809
+ const token = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token)), () => ( (endpoint && _chunkBCX5V7NIcjs.isLocalEngineEndpoint.call(void 0, endpoint) ? "default" : void 0)));
810
+ const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunkBCX5V7NIcjs.tryParseEndpoint.call(void 0, ctx, {
811
811
  endpoint: config.serverless.publicEndpoint,
812
812
  path: ["serverless", "publicEndpoint"]
813
813
  }) : void 0;
@@ -912,7 +912,7 @@ var DocRegistryConfigSchema = _zod.z.object({
912
912
  noWelcome: _zod.z.boolean().optional().describe("Disable the welcome message on startup. Default: false"),
913
913
  sqlite: DocSqliteConfigSchema,
914
914
  logging: _zod.z.object({
915
- level: _chunkIBEFA6CXcjs.LogLevelSchema.optional().describe(
915
+ level: _chunk4WDX5ZI7cjs.LogLevelSchema.optional().describe(
916
916
  "Log level for RivetKit. Default: 'warn'"
917
917
  )
918
918
  }).optional().describe("Logging configuration."),
@@ -1552,7 +1552,7 @@ var NapiCoreRuntime = (_class = class {
1552
1552
  if (!(active == null ? void 0 : active.sameActorInstance(ownerCtx))) {
1553
1553
  return ownerCtx;
1554
1554
  }
1555
- const applicationSpan = _chunkCTQKKUZCcjs.readActiveTraceHeaders.call(void 0, );
1555
+ const applicationSpan = _chunkBCX5V7NIcjs.readActiveTraceHeaders.call(void 0, );
1556
1556
  if (!applicationSpan) {
1557
1557
  return active;
1558
1558
  }
@@ -1756,7 +1756,7 @@ var NapiCoreRuntime = (_class = class {
1756
1756
  const span = (_a = nativeCtx.invocationTraceContext()) == null ? void 0 : _a.span;
1757
1757
  return this.#invocationContext.run(
1758
1758
  nativeCtx,
1759
- () => _chunkCTQKKUZCcjs.runWithActorInvocationSpan.call(void 0, span, run)
1759
+ () => _chunkBCX5V7NIcjs.runWithActorInvocationSpan.call(void 0, span, run)
1760
1760
  );
1761
1761
  }
1762
1762
  actorInvocationTraceContext(ctx) {
@@ -2131,8 +2131,8 @@ function runtimeBytesToArrayBuffer(value) {
2131
2131
  function buildNativeHttpRequest(init) {
2132
2132
  var _a;
2133
2133
  const headers = new Headers(init.headers);
2134
- const originalUrl = headers.get(_chunkCTQKKUZCcjs.HEADER_ORIGINAL_REQUEST_URL);
2135
- headers.delete(_chunkCTQKKUZCcjs.HEADER_ORIGINAL_REQUEST_URL);
2134
+ const originalUrl = headers.get(_chunkBCX5V7NIcjs.HEADER_ORIGINAL_REQUEST_URL);
2135
+ headers.delete(_chunkBCX5V7NIcjs.HEADER_ORIGINAL_REQUEST_URL);
2136
2136
  const url = _nullishCoalesce(originalUrl, () => ( (init.uri.startsWith("http") ? init.uri : new URL(init.uri, "http://127.0.0.1").toString())));
2137
2137
  const method2 = init.method.toUpperCase();
2138
2138
  const bodyForbidden = method2 === "GET" || method2 === "HEAD";
@@ -2211,7 +2211,7 @@ async function pumpResponseBody(reader, stream) {
2211
2211
  }
2212
2212
  } catch (error) {
2213
2213
  try {
2214
- await stream.error(_chunkIBEFA6CXcjs.stringifyError.call(void 0, error));
2214
+ await stream.error(_chunk4WDX5ZI7cjs.stringifyError.call(void 0, error));
2215
2215
  } catch (streamError) {
2216
2216
  logger2().debug({
2217
2217
  msg: "failed to report native http response stream error",
@@ -3450,7 +3450,7 @@ async function loadAutoRuntime(config, loaders = defaultRuntimeLoaders) {
3450
3450
  nativeError = error;
3451
3451
  logger2().warn({
3452
3452
  msg: "native runtime failed to load; falling back to wasm",
3453
- error: _chunkIBEFA6CXcjs.stringifyError.call(void 0, error)
3453
+ error: _chunk4WDX5ZI7cjs.stringifyError.call(void 0, error)
3454
3454
  });
3455
3455
  }
3456
3456
  try {
@@ -3459,7 +3459,7 @@ async function loadAutoRuntime(config, loaders = defaultRuntimeLoaders) {
3459
3459
  throw new (0, _chunkMGI2VVF6cjs.RivetError)(
3460
3460
  "config",
3461
3461
  "runtime_unavailable",
3462
- `RivetKit could not load a core runtime. Native runtime: ${_chunkIBEFA6CXcjs.stringifyError.call(void 0, nativeError)} Wasm runtime: ${_chunkIBEFA6CXcjs.stringifyError.call(void 0, wasmError)}`,
3462
+ `RivetKit could not load a core runtime. Native runtime: ${_chunk4WDX5ZI7cjs.stringifyError.call(void 0, nativeError)} Wasm runtime: ${_chunk4WDX5ZI7cjs.stringifyError.call(void 0, wasmError)}`,
3463
3463
  {
3464
3464
  public: true,
3465
3465
  statusCode: 500
@@ -3667,7 +3667,7 @@ async function cleanupNativeSleepRuntimeState(runtime, ctx, afterTrackedWorkDrai
3667
3667
  }).catch((error) => {
3668
3668
  logger2().warn({
3669
3669
  msg: "deferred native sleep cleanup failed",
3670
- error: _chunkIBEFA6CXcjs.stringifyError.call(void 0, error)
3670
+ error: _chunk4WDX5ZI7cjs.stringifyError.call(void 0, error)
3671
3671
  });
3672
3672
  });
3673
3673
  return;
@@ -3839,10 +3839,10 @@ function decodeValue(value) {
3839
3839
  if (!value || value.length === 0) {
3840
3840
  return void 0;
3841
3841
  }
3842
- return _chunkIBEFA6CXcjs.decodeCborCompat.call(void 0, value);
3842
+ return _chunk4WDX5ZI7cjs.decodeCborCompat.call(void 0, value);
3843
3843
  }
3844
3844
  function encodeValue(value) {
3845
- return _chunkIBEFA6CXcjs.encodeCborCompat.call(void 0, value);
3845
+ return _chunk4WDX5ZI7cjs.encodeCborCompat.call(void 0, value);
3846
3846
  }
3847
3847
  function normalizeArgs(value) {
3848
3848
  return Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value];
@@ -3878,7 +3878,7 @@ function isStructuredBridgeError(error) {
3878
3878
  return _chunkMGI2VVF6cjs.isRivetErrorLike.call(void 0, error) && "__type" in error && (error.__type === "RivetError" || error.__type === "ActorError");
3879
3879
  }
3880
3880
  function encodeNativeCallbackError(error) {
3881
- const structuredError = isStructuredBridgeError(error) ? error : _chunkIBEFA6CXcjs.deconstructError.call(void 0, error, true);
3881
+ const structuredError = isStructuredBridgeError(error) ? error : _chunk4WDX5ZI7cjs.deconstructError.call(void 0, error, true);
3882
3882
  const { encoded, droppedMetadataCause } = _chunkMGI2VVF6cjs.encodeBridgeRivetError.call(void 0, structuredError);
3883
3883
  if (droppedMetadataCause !== void 0) {
3884
3884
  logger2().warn(
@@ -3940,7 +3940,7 @@ function decodeWorkflowCbor(data) {
3940
3940
  return null;
3941
3941
  }
3942
3942
  try {
3943
- return _chunkIBEFA6CXcjs.decodeCborCompat.call(void 0, new Uint8Array(data));
3943
+ return _chunk4WDX5ZI7cjs.decodeCborCompat.call(void 0, new Uint8Array(data));
3944
3944
  } catch (e3) {
3945
3945
  return null;
3946
3946
  }
@@ -4053,7 +4053,7 @@ function serializeWorkflowHistoryForJson(data) {
4053
4053
  if (data === null) {
4054
4054
  return null;
4055
4055
  }
4056
- const history = _chunkVCVV726Pcjs.decodeWorkflowHistoryTransport.call(void 0, data);
4056
+ const history = _chunkB6U5V6WEcjs.decodeWorkflowHistoryTransport.call(void 0, data);
4057
4057
  return jsonSafe({
4058
4058
  nameRegistry: [...history.nameRegistry],
4059
4059
  entries: history.entries.map((entry) => ({
@@ -4199,7 +4199,7 @@ var NativeConnAdapter = class {
4199
4199
  },
4200
4200
  (newValue) => {
4201
4201
  assertCurrentState();
4202
- _chunkIBEFA6CXcjs.assertJsonCompatValue.call(void 0, newValue);
4202
+ _chunk4WDX5ZI7cjs.assertJsonCompatValue.call(void 0, newValue);
4203
4203
  }
4204
4204
  );
4205
4205
  }
@@ -4207,7 +4207,7 @@ var NativeConnAdapter = class {
4207
4207
  var _a;
4208
4208
  (_a = this.#assertCanMutateState) == null ? void 0 : _a.call(this);
4209
4209
  const nextValue = unwrapWriteThroughProxy(value);
4210
- _chunkIBEFA6CXcjs.assertJsonCompatValue.call(void 0, nextValue);
4210
+ _chunk4WDX5ZI7cjs.assertJsonCompatValue.call(void 0, nextValue);
4211
4211
  this.#writeState(nextValue, { writeNative: true });
4212
4212
  }
4213
4213
  initializeState(value) {
@@ -5286,7 +5286,7 @@ var ActorContextHandleAdapter = class {
5286
5286
  },
5287
5287
  (newValue) => {
5288
5288
  assertCurrentState();
5289
- _chunkIBEFA6CXcjs.assertJsonCompatValue.call(void 0, newValue);
5289
+ _chunk4WDX5ZI7cjs.assertJsonCompatValue.call(void 0, newValue);
5290
5290
  }
5291
5291
  );
5292
5292
  }
@@ -5298,7 +5298,7 @@ var ActorContextHandleAdapter = class {
5298
5298
  }
5299
5299
  this.#assertCanMutateState();
5300
5300
  const nextValue = unwrapWriteThroughProxy(value);
5301
- _chunkIBEFA6CXcjs.assertJsonCompatValue.call(void 0, nextValue);
5301
+ _chunk4WDX5ZI7cjs.assertJsonCompatValue.call(void 0, nextValue);
5302
5302
  this.#writeState(nextValue, { scheduleSave: true });
5303
5303
  }
5304
5304
  initializeState(value) {
@@ -5512,7 +5512,7 @@ var ActorContextHandleAdapter = class {
5512
5512
  log: {
5513
5513
  debug: (obj) => logger2().debug(obj)
5514
5514
  },
5515
- nativeDatabaseProvider: _chunkJLBPBEWCcjs.registerNativeStateTransactionOpener.call(void 0,
5515
+ nativeDatabaseProvider: _chunkKMYBA4P5cjs.registerNativeStateTransactionOpener.call(void 0,
5516
5516
  {
5517
5517
  open: async (requestedActorId) => {
5518
5518
  void requestedActorId;
@@ -5535,7 +5535,7 @@ var ActorContextHandleAdapter = class {
5535
5535
  return this.#db;
5536
5536
  }
5537
5537
  #bindDatabaseClient(client) {
5538
- return _chunkJLBPBEWCcjs.bindNativeStateTransactionContext.call(void 0, client, {
5538
+ return _chunkKMYBA4P5cjs.bindNativeStateTransactionContext.call(void 0, client, {
5539
5539
  enter: async () => await this.#enterStateTransaction(),
5540
5540
  exit: (scope) => this.#exitStateTransaction(
5541
5541
  scope
@@ -5739,7 +5739,7 @@ var ActorContextHandleAdapter = class {
5739
5739
  const trackedPromise = Promise.resolve(promise).catch((error) => {
5740
5740
  logger2().warn({
5741
5741
  msg: "keepAwake promise rejected",
5742
- error: _chunkIBEFA6CXcjs.stringifyError.call(void 0, error)
5742
+ error: _chunk4WDX5ZI7cjs.stringifyError.call(void 0, error)
5743
5743
  });
5744
5744
  }).then(() => null);
5745
5745
  try {
@@ -6237,7 +6237,7 @@ function validateInspectorTabSource(tabId, resolved) {
6237
6237
  function buildNativeFactory(runtime, registryConfig, definition) {
6238
6238
  var _a;
6239
6239
  const config = definition.config;
6240
- const databaseProvider = _nullishCoalesce(config.db, () => ( _chunkJLBPBEWCcjs.db.call(void 0, )));
6240
+ const databaseProvider = _nullishCoalesce(config.db, () => ( _chunkKMYBA4P5cjs.db.call(void 0, )));
6241
6241
  const actionHandlers = _chunkHDVZ6YZGcjs.flattenActionHandlers.call(void 0, config.actions);
6242
6242
  const schemaConfig = {
6243
6243
  actionInputSchemas: _chunkHDVZ6YZGcjs.flattenActionInputSchemas.call(void 0,
@@ -6248,9 +6248,9 @@ function buildNativeFactory(runtime, registryConfig, definition) {
6248
6248
  events: config.events,
6249
6249
  queues: config.queues
6250
6250
  };
6251
- const createClient = (ctx) => _chunkCTQKKUZCcjs.createClientWithDriver.call(void 0,
6252
- new (0, _chunkCTQKKUZCcjs.RemoteEngineControlClient)(
6253
- _chunkCTQKKUZCcjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
6251
+ const createClient = (ctx) => _chunkBCX5V7NIcjs.createClientWithDriver.call(void 0,
6252
+ new (0, _chunkBCX5V7NIcjs.RemoteEngineControlClient)(
6253
+ _chunkBCX5V7NIcjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
6254
6254
  ),
6255
6255
  {
6256
6256
  encoding: "bare",
@@ -6442,7 +6442,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
6442
6442
  400
6443
6443
  );
6444
6444
  }
6445
- const cbor = _chunkIBEFA6CXcjs.encodeCborCompat.call(void 0,
6445
+ const cbor = _chunk4WDX5ZI7cjs.encodeCborCompat.call(void 0,
6446
6446
  _nullishCoalesce(body.body, () => ( null))
6447
6447
  );
6448
6448
  const message = await runtime.actorQueueSend(ctx, name, cbor);
@@ -7039,7 +7039,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7039
7039
  ...request,
7040
7040
  abortController: requestAbortController
7041
7041
  });
7042
- const rawConnParams = handlerRequest.headers.get(_chunkCTQKKUZCcjs.HEADER_CONN_PARAMS);
7042
+ const rawConnParams = handlerRequest.headers.get(_chunkBCX5V7NIcjs.HEADER_CONN_PARAMS);
7043
7043
  let requestCtx;
7044
7044
  let conn;
7045
7045
  let removeRequestAbortListener;
@@ -7096,7 +7096,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7096
7096
  requestCtx,
7097
7097
  handlerRequest
7098
7098
  );
7099
- if (!_chunkCTQKKUZCcjs.isResponseLike.call(void 0, response)) {
7099
+ if (!_chunkBCX5V7NIcjs.isResponseLike.call(void 0, response)) {
7100
7100
  throw new Error(
7101
7101
  "onRequest handler must return a Response"
7102
7102
  );
@@ -7191,7 +7191,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7191
7191
  var _a2;
7192
7192
  const { ctx } = unwrapTsfnPayload(error, payload);
7193
7193
  const history = (_a2 = getNativeWorkflowInspector(ctx)) == null ? void 0 : _a2.getHistory();
7194
- return history == null ? void 0 : _chunkIBEFA6CXcjs.toUint8Array.call(void 0, history);
7194
+ return history == null ? void 0 : _chunk4WDX5ZI7cjs.toUint8Array.call(void 0, history);
7195
7195
  }
7196
7196
  ) : void 0,
7197
7197
  replayWorkflow: _chunkHDVZ6YZGcjs.hasRunInspectorConfig.call(void 0, config.run) ? wrapNativeCallback(
@@ -7205,7 +7205,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7205
7205
  return void 0;
7206
7206
  }
7207
7207
  const history = await _asyncNullishCoalesce(await workflowInspector.replayFromStep(entryId), async () => ( null));
7208
- return history == null ? void 0 : _chunkIBEFA6CXcjs.toUint8Array.call(void 0, history);
7208
+ return history == null ? void 0 : _chunk4WDX5ZI7cjs.toUint8Array.call(void 0, history);
7209
7209
  }
7210
7210
  ) : void 0,
7211
7211
  actions: Object.fromEntries(
@@ -7342,7 +7342,7 @@ async function buildServeConfig(config, resolveServicesBinary = true) {
7342
7342
  startServices: resolveServicesBinary && config.startServices,
7343
7343
  handleInspectorHttpInRuntime: true,
7344
7344
  serverlessBasePath: config.serverless.basePath,
7345
- serverlessPackageVersion: _chunkIBEFA6CXcjs.VERSION,
7345
+ serverlessPackageVersion: _chunk4WDX5ZI7cjs.VERSION,
7346
7346
  serverlessClientEndpoint: config.publicEndpoint,
7347
7347
  serverlessClientNamespace: config.publicNamespace,
7348
7348
  serverlessClientToken: config.publicToken,
@@ -7355,11 +7355,11 @@ async function buildServeConfig(config, resolveServicesBinary = true) {
7355
7355
  } catch (error) {
7356
7356
  logger2().warn({
7357
7357
  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",
7358
- error: _chunkIBEFA6CXcjs.stringifyError.call(void 0, error)
7358
+ error: _chunk4WDX5ZI7cjs.stringifyError.call(void 0, error)
7359
7359
  });
7360
7360
  }
7361
7361
  if (resolveServicesBinary && config.startServices) {
7362
- const servicesBinary = _chunkIBEFA6CXcjs.getEnvUniversal.call(void 0, "RIVET_SERVICES_BINARY");
7362
+ const servicesBinary = _chunk4WDX5ZI7cjs.getEnvUniversal.call(void 0, "RIVET_SERVICES_BINARY");
7363
7363
  if (servicesBinary) {
7364
7364
  serveConfig.servicesBinaryPath = servicesBinary;
7365
7365
  } else {
@@ -7374,13 +7374,13 @@ async function buildServeConfig(config, resolveServicesBinary = true) {
7374
7374
  serveConfig.engineHost = config.engineHost;
7375
7375
  serveConfig.enginePort = config.enginePort;
7376
7376
  if ((_a = config.test) == null ? void 0 : _a.enabled) {
7377
- serveConfig.inspectorTestToken = _nullishCoalesce(_chunkIBEFA6CXcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
7377
+ serveConfig.inspectorTestToken = _nullishCoalesce(_chunk4WDX5ZI7cjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
7378
7378
  }
7379
7379
  return serveConfig;
7380
7380
  }
7381
7381
  async function buildRegistryWithRuntime(config, runtime) {
7382
7382
  var _a;
7383
- if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunkIBEFA6CXcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
7383
+ if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunk4WDX5ZI7cjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
7384
7384
  trySetProcessEnv("_RIVET_TEST_INSPECTOR_TOKEN", "token");
7385
7385
  }
7386
7386
  if (runtime.kind === "napi") {
@@ -7450,7 +7450,7 @@ function createApplicationFetch(application, runtime) {
7450
7450
  signal: abortController.signal
7451
7451
  })
7452
7452
  );
7453
- if (!_chunkCTQKKUZCcjs.isResponseLike.call(void 0, response)) {
7453
+ if (!_chunkBCX5V7NIcjs.isResponseLike.call(void 0, response)) {
7454
7454
  throw new TypeError(
7455
7455
  "registry.listen() application fetch must return a Response"
7456
7456
  );
@@ -7500,7 +7500,7 @@ var Registry = class {
7500
7500
  var _a;
7501
7501
  this.#config = config;
7502
7502
  if ((_a = config.logging) == null ? void 0 : _a.baseLogger) {
7503
- _chunkIBEFA6CXcjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
7503
+ _chunk4WDX5ZI7cjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
7504
7504
  }
7505
7505
  this.#buildConfiguredRegistry = _nullishCoalesce((deps == null ? void 0 : deps.buildConfiguredRegistry), () => ( buildConfiguredRegistry));
7506
7506
  this.routes = {
@@ -7732,10 +7732,10 @@ var Registry = class {
7732
7732
  if (!opts.application) {
7733
7733
  rejectServerless();
7734
7734
  }
7735
- const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunkIBEFA6CXcjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
7736
- const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunkIBEFA6CXcjs.getRivetkitPublicDir.call(void 0, )));
7735
+ const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunk4WDX5ZI7cjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
7736
+ const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunk4WDX5ZI7cjs.getRivetkitPublicDir.call(void 0, )));
7737
7737
  const config = this.parseConfig();
7738
- if (opts.application && _chunkIBEFA6CXcjs.getRivetkitRuntimeMode.call(void 0, ) !== "serverless") {
7738
+ if (opts.application && _chunk4WDX5ZI7cjs.getRivetkitRuntimeMode.call(void 0, ) !== "serverless") {
7739
7739
  if (config.runtime === "wasm") {
7740
7740
  throw new Error(
7741
7741
  "registry.listen() requires the native runtime; use an application-owned HTTP server with WebAssembly"
@@ -7811,7 +7811,7 @@ var Registry = class {
7811
7811
  return jsonRouteResponse(503, {
7812
7812
  status: "not_started",
7813
7813
  runtime: "rivetkit",
7814
- version: _chunkIBEFA6CXcjs.VERSION
7814
+ version: _chunk4WDX5ZI7cjs.VERSION
7815
7815
  });
7816
7816
  }
7817
7817
  const { runtime, registry } = configured;
@@ -7819,7 +7819,7 @@ var Registry = class {
7819
7819
  return jsonRouteResponse(501, {
7820
7820
  status: "unsupported",
7821
7821
  runtime: "rivetkit",
7822
- version: _chunkIBEFA6CXcjs.VERSION
7822
+ version: _chunk4WDX5ZI7cjs.VERSION
7823
7823
  });
7824
7824
  }
7825
7825
  const response = await runtime.registryHealth(registry);
@@ -7894,14 +7894,14 @@ var Registry = class {
7894
7894
  var _a;
7895
7895
  if (!this.#runtimeServePromise) {
7896
7896
  const configuredEnvoyVersion = (_a = this.#config.node) == null ? void 0 : _a.version;
7897
- const envoyVersionSource = configuredEnvoyVersion !== void 0 ? "config" : _chunkIBEFA6CXcjs.getRivetEnvoyVersion.call(void 0, ) !== void 0 ? "environment" : "default";
7897
+ const envoyVersionSource = configuredEnvoyVersion !== void 0 ? "config" : _chunk4WDX5ZI7cjs.getRivetEnvoyVersion.call(void 0, ) !== void 0 ? "environment" : "default";
7898
7898
  logger2().info({
7899
7899
  msg: "starting rivetkit envoy",
7900
- rivetkitVersion: _chunkIBEFA6CXcjs.VERSION,
7900
+ rivetkitVersion: _chunk4WDX5ZI7cjs.VERSION,
7901
7901
  envoyVersion: config.node.version,
7902
7902
  envoyVersionSource
7903
7903
  });
7904
- if (envoyVersionSource === "default" && _chunkIBEFA6CXcjs.getNodeEnv.call(void 0, ) === "production") {
7904
+ if (envoyVersionSource === "default" && _chunk4WDX5ZI7cjs.getNodeEnv.call(void 0, ) === "production") {
7905
7905
  logger2().error({
7906
7906
  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",
7907
7907
  envoyVersion: config.node.version,
@@ -7990,7 +7990,7 @@ var Registry = class {
7990
7990
  const modeAPromise = this.#runtimeServeConfiguredPromise;
7991
7991
  const modeBPromise = this.#runtimeServerlessPromise;
7992
7992
  const runtimes = /* @__PURE__ */ new Set();
7993
- const localDevSignal = signalDriven && _chunkIBEFA6CXcjs.getNodeEnv.call(void 0, ) !== "production" && config.engineSpawn && config.endpoint !== void 0 && _chunkCTQKKUZCcjs.isLocalEngineEndpoint.call(void 0, config.endpoint);
7993
+ const localDevSignal = signalDriven && _chunk4WDX5ZI7cjs.getNodeEnv.call(void 0, ) !== "production" && config.engineSpawn && config.endpoint !== void 0 && _chunkBCX5V7NIcjs.isLocalEngineEndpoint.call(void 0, config.endpoint);
7994
7994
  let gracePeriodMs = (_a = config.shutdown) == null ? void 0 : _a.gracePeriodMs;
7995
7995
  if (gracePeriodMs === void 0) {
7996
7996
  gracePeriodMs = localDevSignal ? 1e3 : await _asyncNullishCoalesce(await this.#actorStopThresholdMs(
@@ -8102,7 +8102,7 @@ var Registry = class {
8102
8102
  }
8103
8103
  if (this.#runtimeReadyPromise) return this.#runtimeReadyPromise;
8104
8104
  try {
8105
- if (_chunkIBEFA6CXcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8105
+ if (_chunk4WDX5ZI7cjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8106
8106
  return Promise.reject(
8107
8107
  new Error(
8108
8108
  "registry.startAndWait() requires envoy runtime mode; serverless registries become ready per request"
@@ -8175,8 +8175,8 @@ var Registry = class {
8175
8175
  * ```
8176
8176
  */
8177
8177
  start() {
8178
- if (_chunkIBEFA6CXcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8179
- const publicDir = _nullishCoalesce(_chunkIBEFA6CXcjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
8178
+ if (_chunk4WDX5ZI7cjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8179
+ const publicDir = _nullishCoalesce(_chunk4WDX5ZI7cjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
8180
8180
  this.listen({ publicDir }).catch((error) => {
8181
8181
  logger2().error({ error }, "auto-listen failed; exiting");
8182
8182
  if (typeof process !== "undefined" && typeof process.exit === "function") {
@@ -8197,13 +8197,13 @@ var Registry = class {
8197
8197
  };
8198
8198
  console.log();
8199
8199
  console.log(
8200
- ` RivetKit ${_chunkIBEFA6CXcjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
8200
+ ` RivetKit ${_chunk4WDX5ZI7cjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
8201
8201
  );
8202
8202
  if (config.namespace !== "default") {
8203
8203
  logLine("Namespace", config.namespace);
8204
8204
  }
8205
8205
  if (config.endpoint) {
8206
- const endpointType = config.startEngine || _chunkCTQKKUZCcjs.isLocalEngineEndpoint.call(void 0, config.endpoint) ? "local native" : "remote";
8206
+ const endpointType = config.startEngine || _chunkBCX5V7NIcjs.isLocalEngineEndpoint.call(void 0, config.endpoint) ? "local native" : "remote";
8207
8207
  logLine("Endpoint", `${config.endpoint} (${endpointType})`);
8208
8208
  }
8209
8209
  if (kind === "serverless" && config.publicEndpoint) {
@@ -8273,5 +8273,5 @@ function setup(input) {
8273
8273
 
8274
8274
 
8275
8275
 
8276
- exports.ALLOWED_PUBLIC_HEADERS = _chunkCTQKKUZCcjs.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 = _chunkCTQKKUZCcjs.createClientWithDriver; exports.defineRunHandler = _chunkHDVZ6YZGcjs.defineRunHandler; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunkIBEFA6CXcjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunkIBEFA6CXcjs.toUint8Array;
8276
+ exports.ALLOWED_PUBLIC_HEADERS = _chunkBCX5V7NIcjs.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 = _chunkBCX5V7NIcjs.createClientWithDriver; exports.defineRunHandler = _chunkHDVZ6YZGcjs.defineRunHandler; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunk4WDX5ZI7cjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunk4WDX5ZI7cjs.toUint8Array;
8277
8277
  //# sourceMappingURL=mod.cjs.map