rivetkit 3.0.5 → 3.0.6

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 (107) hide show
  1. package/dist/browser/client.d.ts +34 -28
  2. package/dist/browser/client.js +2 -2
  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/{chunk-MVJLQPWC.js → chunk-5FQNTE3U.js} +2 -2
  7. package/dist/tsup/{chunk-NSDT2GWM.cjs → chunk-6EH5WPVT.cjs} +144 -144
  8. package/dist/tsup/chunk-6EH5WPVT.cjs.map +1 -0
  9. package/dist/tsup/{chunk-STFQQWYY.cjs → chunk-6HXQONU5.cjs} +4 -4
  10. package/dist/tsup/{chunk-STFQQWYY.cjs.map → chunk-6HXQONU5.cjs.map} +1 -1
  11. package/dist/tsup/{chunk-YPAJANQG.js → chunk-AETY7X4G.js} +2 -2
  12. package/dist/tsup/{chunk-VJROJMLX.js → chunk-CJSADDKT.js} +4 -4
  13. package/dist/tsup/{chunk-NNKSJSMR.js → chunk-FERZDKVR.js} +3 -3
  14. package/dist/tsup/{chunk-DL7PKMEP.cjs → chunk-JU6RP3LW.cjs} +3 -3
  15. package/dist/tsup/{chunk-DL7PKMEP.cjs.map → chunk-JU6RP3LW.cjs.map} +1 -1
  16. package/dist/tsup/{chunk-NHB4KDZL.cjs → chunk-NPA2A53S.cjs} +3 -3
  17. package/dist/tsup/{chunk-NHB4KDZL.cjs.map → chunk-NPA2A53S.cjs.map} +1 -1
  18. package/dist/tsup/{chunk-D3VCNACM.cjs → chunk-NUCUZGIV.cjs} +7 -7
  19. package/dist/tsup/{chunk-D3VCNACM.cjs.map → chunk-NUCUZGIV.cjs.map} +1 -1
  20. package/dist/tsup/{chunk-A7Q5DJ2P.js → chunk-PBIQPYE5.js} +12 -15
  21. package/dist/tsup/chunk-PBIQPYE5.js.map +1 -0
  22. package/dist/tsup/{chunk-EC72YM63.js → chunk-SAR7BMVU.js} +2 -2
  23. package/dist/tsup/{chunk-WNURZU2P.js → chunk-VNMBEXJH.js} +2 -2
  24. package/dist/tsup/{chunk-WIL6MWU4.cjs → chunk-WMAHPIFS.cjs} +10 -10
  25. package/dist/tsup/{chunk-WIL6MWU4.cjs.map → chunk-WMAHPIFS.cjs.map} +1 -1
  26. package/dist/tsup/{chunk-BY6YFH2K.cjs → chunk-YNVGOPSK.cjs} +2 -2
  27. package/dist/tsup/{chunk-BY6YFH2K.cjs.map → chunk-YNVGOPSK.cjs.map} +1 -1
  28. package/dist/tsup/{chunk-INFADXXI.cjs → chunk-YWWDUC6D.cjs} +12 -15
  29. package/dist/tsup/chunk-YWWDUC6D.cjs.map +1 -0
  30. package/dist/tsup/{chunk-XILB6EBK.js → chunk-ZJ2UXLEE.js} +4 -4
  31. package/dist/tsup/chunk-ZJ2UXLEE.js.map +1 -0
  32. package/dist/tsup/{chunk-4QY3LBN6.cjs → chunk-ZPTATOYB.cjs} +3 -3
  33. package/dist/tsup/{chunk-4QY3LBN6.cjs.map → chunk-ZPTATOYB.cjs.map} +1 -1
  34. package/dist/tsup/{chunk-NEGCEZM6.js → chunk-ZWNTOFM3.js} +2 -2
  35. package/dist/tsup/{chunk-NEGCEZM6.js.map → chunk-ZWNTOFM3.js.map} +1 -1
  36. package/dist/tsup/client/mod.cjs +5 -5
  37. package/dist/tsup/client/mod.d.cts +2 -2
  38. package/dist/tsup/client/mod.d.ts +2 -2
  39. package/dist/tsup/client/mod.js +4 -4
  40. package/dist/tsup/common/log.cjs +2 -2
  41. package/dist/tsup/common/log.js +1 -1
  42. package/dist/tsup/common/websocket.cjs +3 -3
  43. package/dist/tsup/common/websocket.js +2 -2
  44. package/dist/tsup/{config-CM_AlRlT.d.cts → config-BDJltifk.d.cts} +36 -32
  45. package/dist/tsup/{config-DcUqgwcz.d.ts → config-DXC7qzme.d.ts} +36 -32
  46. package/dist/tsup/{context-Bws3ikEx.d.ts → context-DgPsVbw6.d.ts} +4 -1
  47. package/dist/tsup/{context-1BFHhiTs.d.cts → context-osC4Q1ax.d.cts} +4 -1
  48. package/dist/tsup/db/drizzle.cjs +2 -2
  49. package/dist/tsup/db/drizzle.js +1 -1
  50. package/dist/tsup/db/mod.cjs +3 -3
  51. package/dist/tsup/db/mod.js +2 -2
  52. package/dist/tsup/dynamic/mod.cjs +2 -2
  53. package/dist/tsup/dynamic/mod.d.cts +1 -1
  54. package/dist/tsup/dynamic/mod.d.ts +1 -1
  55. package/dist/tsup/dynamic/mod.js +1 -1
  56. package/dist/tsup/inspector/mod.cjs +5 -5
  57. package/dist/tsup/inspector/mod.js +4 -4
  58. package/dist/tsup/inspector/workflow.cjs +4 -4
  59. package/dist/tsup/inspector/workflow.js +3 -3
  60. package/dist/tsup/inspector-tab/mod.cjs +2 -2
  61. package/dist/tsup/inspector-tab/mod.d.cts +2 -2
  62. package/dist/tsup/inspector-tab/mod.d.ts +2 -2
  63. package/dist/tsup/inspector-tab/mod.js +1 -1
  64. package/dist/tsup/mod.cjs +129 -134
  65. package/dist/tsup/mod.cjs.map +1 -1
  66. package/dist/tsup/mod.d.cts +5 -3
  67. package/dist/tsup/mod.d.ts +5 -3
  68. package/dist/tsup/mod.js +26 -31
  69. package/dist/tsup/mod.js.map +1 -1
  70. package/dist/tsup/test/mod.cjs +6 -6
  71. package/dist/tsup/test/mod.d.cts +1 -1
  72. package/dist/tsup/test/mod.d.ts +1 -1
  73. package/dist/tsup/test/mod.js +4 -4
  74. package/dist/tsup/utils.cjs +2 -2
  75. package/dist/tsup/utils.js +1 -1
  76. package/dist/tsup/workflow/mod.cjs +13 -10
  77. package/dist/tsup/workflow/mod.cjs.map +1 -1
  78. package/dist/tsup/workflow/mod.d.cts +3 -3
  79. package/dist/tsup/workflow/mod.d.ts +3 -3
  80. package/dist/tsup/workflow/mod.js +8 -5
  81. package/dist/tsup/workflow/mod.js.map +1 -1
  82. package/package.json +9 -9
  83. package/src/actor/config.ts +35 -37
  84. package/src/actor/contexts/index.ts +2 -0
  85. package/src/actor/definition.ts +33 -1
  86. package/src/actor/schema.ts +4 -0
  87. package/src/client/actor-common.ts +4 -0
  88. package/src/client/actor-conn.ts +2 -0
  89. package/src/client/actor-handle.ts +2 -0
  90. package/src/client/config.ts +1 -1
  91. package/src/client/queue.ts +2 -0
  92. package/src/registry/napi-runtime.ts +0 -4
  93. package/src/registry/native.ts +4 -11
  94. package/src/registry/runtime.ts +0 -8
  95. package/src/registry/wasm-runtime.ts +0 -14
  96. package/src/workflow/context.ts +3 -0
  97. package/dist/tsup/chunk-A7Q5DJ2P.js.map +0 -1
  98. package/dist/tsup/chunk-INFADXXI.cjs.map +0 -1
  99. package/dist/tsup/chunk-NSDT2GWM.cjs.map +0 -1
  100. package/dist/tsup/chunk-XILB6EBK.js.map +0 -1
  101. package/src/common/bare/generated/actor-runtime-socket-protocol/v1.ts +0 -848
  102. /package/dist/tsup/{chunk-MVJLQPWC.js.map → chunk-5FQNTE3U.js.map} +0 -0
  103. /package/dist/tsup/{chunk-YPAJANQG.js.map → chunk-AETY7X4G.js.map} +0 -0
  104. /package/dist/tsup/{chunk-VJROJMLX.js.map → chunk-CJSADDKT.js.map} +0 -0
  105. /package/dist/tsup/{chunk-NNKSJSMR.js.map → chunk-FERZDKVR.js.map} +0 -0
  106. /package/dist/tsup/{chunk-EC72YM63.js.map → chunk-SAR7BMVU.js.map} +0 -0
  107. /package/dist/tsup/{chunk-WNURZU2P.js.map → chunk-VNMBEXJH.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 _chunkSTFQQWYYcjs = require('./chunk-STFQQWYY.cjs');
3
+ var _chunk6HXQONU5cjs = require('./chunk-6HXQONU5.cjs');
4
4
 
5
5
 
6
6
 
@@ -17,7 +17,7 @@ var _chunkSTFQQWYYcjs = require('./chunk-STFQQWYY.cjs');
17
17
 
18
18
 
19
19
 
20
- var _chunkINFADXXIcjs = require('./chunk-INFADXXI.cjs');
20
+ var _chunkYWWDUC6Dcjs = require('./chunk-YWWDUC6D.cjs');
21
21
 
22
22
 
23
23
 
@@ -35,17 +35,17 @@ var _chunkINFADXXIcjs = require('./chunk-INFADXXI.cjs');
35
35
 
36
36
 
37
37
 
38
- var _chunkNSDT2GWMcjs = require('./chunk-NSDT2GWM.cjs');
38
+ var _chunk6EH5WPVTcjs = require('./chunk-6EH5WPVT.cjs');
39
39
 
40
40
 
41
41
 
42
42
  var _chunkRTWH3AX3cjs = require('./chunk-RTWH3AX3.cjs');
43
- require('./chunk-NHB4KDZL.cjs');
43
+ require('./chunk-NPA2A53S.cjs');
44
44
 
45
45
 
46
46
 
47
47
 
48
- var _chunkDL7PKMEPcjs = require('./chunk-DL7PKMEP.cjs');
48
+ var _chunkJU6RP3LWcjs = require('./chunk-JU6RP3LW.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 _chunkBY6YFH2Kcjs = require('./chunk-BY6YFH2K.cjs');
83
+ var _chunkYNVGOPSKcjs = require('./chunk-YNVGOPSK.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 _chunkBY6YFH2Kcjs.getLogger.call(void 0, "actor-runtime");
101
+ return _chunkYNVGOPSKcjs.getLogger.call(void 0, "actor-runtime");
102
102
  }
103
103
 
104
104
  // src/actor/definition.ts
@@ -116,11 +116,25 @@ function warnDeprecatedOptionKeys(options) {
116
116
  if (opts[key] !== void 0 && !warnedDeprecatedOptionKeys.has(key)) {
117
117
  warnedDeprecatedOptionKeys.add(key);
118
118
  loggerWithoutContext().warn({
119
- msg: `actor option \`${key}\` is deprecated and is now ignored. ${detail} Will be removed in 2.2.0.`
119
+ msg: `actor option \`${key}\` is deprecated and is now ignored. ${detail} Will be removed in 3.2.0.`
120
120
  });
121
121
  }
122
122
  }
123
123
  }
124
+ var warnedDeprecatedRun = false;
125
+ function warnDeprecatedRun(input) {
126
+ if (warnedDeprecatedRun || !input || typeof input !== "object") return;
127
+ const run = input.run;
128
+ if (run === void 0) return;
129
+ const runFunction = typeof run === "object" && run !== null ? run.run : run;
130
+ if (typeof runFunction === "function" && _chunkYWWDUC6Dcjs.getRunInspectorKind.call(void 0, runFunction) === "workflow") {
131
+ return;
132
+ }
133
+ warnedDeprecatedRun = true;
134
+ loggerWithoutContext().warn({
135
+ msg: "actor option `run` with a plain function was deprecated in 3.0 and will be removed in a future version. Start background work from `onWake` with `c.keepAwake` and track it in `c.vars`. `run: workflow(...)` is not deprecated. See https://rivet.dev/actors/docs/deprecated/run"
136
+ });
137
+ }
124
138
  var ActorDefinition = class {
125
139
  #config;
126
140
  constructor(config) {
@@ -138,10 +152,11 @@ function actor(input) {
138
152
  warnDeprecatedOptionKeys(
139
153
  input == null ? void 0 : input.options
140
154
  );
141
- const config = _chunkINFADXXIcjs.ActorConfigSchema.parse(input);
142
- _chunkINFADXXIcjs.flattenActionHandlers.call(void 0, config.actions);
143
- _chunkINFADXXIcjs.flattenActionInputSchemas.call(void 0, config.actions, config.actionInputSchemas);
144
- _chunkINFADXXIcjs.flattenActionTraceSamplers.call(void 0, config.actions, (_a = config.tracing) == null ? void 0 : _a.actions);
155
+ warnDeprecatedRun(input);
156
+ const config = _chunkYWWDUC6Dcjs.ActorConfigSchema.parse(input);
157
+ _chunkYWWDUC6Dcjs.flattenActionHandlers.call(void 0, config.actions);
158
+ _chunkYWWDUC6Dcjs.flattenActionInputSchemas.call(void 0, config.actions, config.actionInputSchemas);
159
+ _chunkYWWDUC6Dcjs.flattenActionTraceSamplers.call(void 0, config.actions, (_a = config.tracing) == null ? void 0 : _a.actions);
145
160
  return new ActorDefinition(config);
146
161
  }
147
162
  function isStaticActorDefinition(definition) {
@@ -240,7 +255,7 @@ function validateSchemaSync(schemas, key, data) {
240
255
  var _virtualwebsocket = require('@rivetkit/virtual-websocket');
241
256
  var _ws = require('hono/ws');
242
257
  function logger() {
243
- return _chunkBY6YFH2Kcjs.getLogger.call(void 0, "inline-websocket-adapter");
258
+ return _chunkYNVGOPSKcjs.getLogger.call(void 0, "inline-websocket-adapter");
244
259
  }
245
260
  var InlineWebSocketAdapter = class {
246
261
  #handler;
@@ -392,7 +407,7 @@ var InlineWebSocketAdapter = class {
392
407
 
393
408
  // src/registry/log.ts
394
409
  function logger2() {
395
- return _chunkBY6YFH2Kcjs.getLogger.call(void 0, "registry");
410
+ return _chunkYNVGOPSKcjs.getLogger.call(void 0, "registry");
396
411
  }
397
412
 
398
413
  // src/serverless/configure.ts
@@ -438,8 +453,8 @@ async function configureServerlessPool(config) {
438
453
  );
439
454
  }
440
455
  const customConfig = config.configurePool;
441
- const clientConfig = _chunkNSDT2GWMcjs.convertRegistryConfigToClientConfig.call(void 0, config);
442
- const dcsRes = await _chunkNSDT2GWMcjs.getDatacenters.call(void 0, clientConfig);
456
+ const clientConfig = _chunk6EH5WPVTcjs.convertRegistryConfigToClientConfig.call(void 0, config);
457
+ const dcsRes = await _chunk6EH5WPVTcjs.getDatacenters.call(void 0, clientConfig);
443
458
  const poolName = _nullishCoalesce(customConfig.name, () => ( "default"));
444
459
  const serverlessToken = _nullishCoalesce(config.token, () => ( config.publicToken));
445
460
  const headers = {
@@ -461,7 +476,7 @@ async function configureServerlessPool(config) {
461
476
  metadata: _nullishCoalesce(customConfig.metadata, () => ( {})),
462
477
  drain_on_version_upgrade: _nullishCoalesce(customConfig.drainOnVersionUpgrade, () => ( true))
463
478
  };
464
- await _chunkNSDT2GWMcjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
479
+ await _chunk6EH5WPVTcjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
465
480
  datacenters: Object.fromEntries(
466
481
  dcsRes.datacenters.map((dc) => [dc.name, serverlessConfig])
467
482
  )
@@ -478,7 +493,7 @@ async function configureServerlessPool(config) {
478
493
  logger2().warn({
479
494
  msg: "serverless pool configuration attempt failed",
480
495
  attempts,
481
- error: _chunkBY6YFH2Kcjs.stringifyError.call(void 0, error)
496
+ error: _chunkYNVGOPSKcjs.stringifyError.call(void 0, error)
482
497
  });
483
498
  await sleep(CONFIGURE_RETRY_DELAY_MS);
484
499
  }
@@ -486,7 +501,7 @@ async function configureServerlessPool(config) {
486
501
  logger2().error({
487
502
  msg: "failed to configure serverless pool, validate endpoint is configured correctly then restart this process",
488
503
  attempts,
489
- error: _chunkBY6YFH2Kcjs.stringifyError.call(void 0, lastError)
504
+ error: _chunkYNVGOPSKcjs.stringifyError.call(void 0, lastError)
490
505
  });
491
506
  throw lastError;
492
507
  }
@@ -497,10 +512,10 @@ var _zod = require('zod');
497
512
  // src/registry/config/envoy.ts
498
513
  var _v4 = require('zod/v4');
499
514
  var EnvoyConfigSchema = _v4.z.object({
500
- poolName: _v4.z.string().default(() => _nullishCoalesce(_chunkBY6YFH2Kcjs.getRivetPool.call(void 0, ), () => ( "default"))),
501
- version: _v4.z.number().default(() => _nullishCoalesce(_chunkBY6YFH2Kcjs.getRivetEnvoyVersion.call(void 0, ), () => ( 1))),
515
+ poolName: _v4.z.string().default(() => _nullishCoalesce(_chunkYNVGOPSKcjs.getRivetPool.call(void 0, ), () => ( "default"))),
516
+ version: _v4.z.number().default(() => _nullishCoalesce(_chunkYNVGOPSKcjs.getRivetEnvoyVersion.call(void 0, ), () => ( 1))),
502
517
  // Deprecated.
503
- totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunkBY6YFH2Kcjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
518
+ totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunkYNVGOPSKcjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
504
519
  nodeKey: _v4.z.string().optional()
505
520
  });
506
521
 
@@ -538,7 +553,7 @@ var ServerlessConfigSchema = _v4.z.object({
538
553
  *
539
554
  * Can also be set via RIVET_PUBLIC_ENDPOINT environment variable.
540
555
  */
541
- publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkBY6YFH2Kcjs.getRivetPublicEndpoint.call(void 0, )))),
556
+ publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkYNVGOPSKcjs.getRivetPublicEndpoint.call(void 0, )))),
542
557
  /**
543
558
  * Token that clients should use when connecting via the public endpoint.
544
559
  *
@@ -546,7 +561,7 @@ var ServerlessConfigSchema = _v4.z.object({
546
561
  *
547
562
  * Can also be specified in the publicEndpoint URL as `https://namespace:token@host`.
548
563
  */
549
- publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkBY6YFH2Kcjs.getRivetPublicToken.call(void 0, ))))
564
+ publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkYNVGOPSKcjs.getRivetPublicToken.call(void 0, ))))
550
565
  // There is no publicNamespace config option because the frontend and backend
551
566
  // cannot use different namespaces. The namespace is extracted from the
552
567
  // publicEndpoint URL auth syntax if provided.
@@ -600,7 +615,7 @@ var RegistryConfigSchema = _zod.z.object({
600
615
  * Runtime binding to use for RivetKit core.
601
616
  * */
602
617
  runtime: RuntimeKindSchema.optional().transform((val, ctx) => {
603
- const rawRuntime = _nullishCoalesce(val, () => ( _chunkBY6YFH2Kcjs.getRivetkitRuntime.call(void 0, )));
618
+ const rawRuntime = _nullishCoalesce(val, () => ( _chunkYNVGOPSKcjs.getRivetkitRuntime.call(void 0, )));
604
619
  if (rawRuntime === void 0) {
605
620
  return "auto";
606
621
  }
@@ -637,7 +652,7 @@ var RegistryConfigSchema = _zod.z.object({
637
652
  * */
638
653
  logging: _zod.z.object({
639
654
  baseLogger: _zod.z.custom().optional(),
640
- level: _chunkBY6YFH2Kcjs.LogLevelSchema.optional()
655
+ level: _chunkYNVGOPSKcjs.LogLevelSchema.optional()
641
656
  }).optional().default(() => ({})),
642
657
  // MARK: Routing
643
658
  // // This is a function to allow for lazy configuration of upgradeWebSocket on the
@@ -655,9 +670,9 @@ var RegistryConfigSchema = _zod.z.object({
655
670
  *
656
671
  * Can also be set via RIVET_ENDPOINT environment variables.
657
672
  */
658
- endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunkBY6YFH2Kcjs.getRivetEngine.call(void 0, ))), () => ( _chunkBY6YFH2Kcjs.getRivetEndpoint.call(void 0, )))),
659
- token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkBY6YFH2Kcjs.getRivetToken.call(void 0, )))),
660
- namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkBY6YFH2Kcjs.getRivetNamespace.call(void 0, )))),
673
+ endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunkYNVGOPSKcjs.getRivetEngine.call(void 0, ))), () => ( _chunkYNVGOPSKcjs.getRivetEndpoint.call(void 0, )))),
674
+ token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkYNVGOPSKcjs.getRivetToken.call(void 0, )))),
675
+ namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkYNVGOPSKcjs.getRivetNamespace.call(void 0, )))),
661
676
  headers: _zod.z.record(_zod.z.string(), _zod.z.string()).optional().default({}),
662
677
  // MARK: Client
663
678
  // TODO:
@@ -697,21 +712,21 @@ var RegistryConfigSchema = _zod.z.object({
697
712
  *
698
713
  * Starts the full Rust engine process locally.
699
714
  */
700
- startEngine: _zod.z.boolean().default(() => _chunkBY6YFH2Kcjs.getRivetRunEngine.call(void 0, )),
715
+ startEngine: _zod.z.boolean().default(() => _chunkYNVGOPSKcjs.getRivetRunEngine.call(void 0, )),
701
716
  /**
702
717
  * @experimental
703
718
  *
704
719
  * Host to bind the spawned local engine process to.
705
720
  */
706
- engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkBY6YFH2Kcjs.getRivetRunEngineHost.call(void 0, ), () => ( _chunkNSDT2GWMcjs.ENGINE_HOST))),
721
+ engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkYNVGOPSKcjs.getRivetRunEngineHost.call(void 0, ), () => ( _chunk6EH5WPVTcjs.ENGINE_HOST))),
707
722
  /**
708
723
  * @experimental
709
724
  *
710
725
  * Port to bind the spawned local engine process to.
711
726
  */
712
- enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunkBY6YFH2Kcjs.getRivetRunEnginePort.call(void 0, ), () => ( _chunkNSDT2GWMcjs.ENGINE_PORT))),
727
+ enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunkYNVGOPSKcjs.getRivetRunEnginePort.call(void 0, ), () => ( _chunk6EH5WPVTcjs.ENGINE_PORT))),
713
728
  /** @experimental */
714
- engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkBY6YFH2Kcjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunkBY6YFH2Kcjs.VERSION))),
729
+ engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkYNVGOPSKcjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunkYNVGOPSKcjs.VERSION))),
715
730
  /**
716
731
  * Starts the first-party Services actor host when RivetKit manages
717
732
  * a local engine. Enabled by default for a managed local Engine. Set
@@ -768,7 +783,7 @@ var RegistryConfigSchema = _zod.z.object({
768
783
  }))
769
784
  }).transform((config, ctx) => {
770
785
  var _a, _b, _c;
771
- const isDevEnv = _chunkBY6YFH2Kcjs.isDev.call(void 0, );
786
+ const isDevEnv = _chunkYNVGOPSKcjs.isDev.call(void 0, );
772
787
  const sqliteBackend = _nullishCoalesce(((_a = config.sqlite) == null ? void 0 : _a.backend), () => ( ((_b = config.test) == null ? void 0 : _b.sqliteBackend)));
773
788
  if (config.runtime === "wasm" && sqliteBackend === "local") {
774
789
  ctx.addIssue({
@@ -778,7 +793,7 @@ var RegistryConfigSchema = _zod.z.object({
778
793
  });
779
794
  }
780
795
  const sqlite = config.runtime === "wasm" && config.sqlite === void 0 ? { backend: "remote" } : config.sqlite;
781
- const parsedEndpoint = config.endpoint ? _chunkNSDT2GWMcjs.tryParseEndpoint.call(void 0, ctx, {
796
+ const parsedEndpoint = config.endpoint ? _chunk6EH5WPVTcjs.tryParseEndpoint.call(void 0, ctx, {
782
797
  endpoint: config.endpoint,
783
798
  path: ["endpoint"],
784
799
  namespace: config.namespace,
@@ -797,19 +812,19 @@ var RegistryConfigSchema = _zod.z.object({
797
812
  path: ["configurePool"]
798
813
  });
799
814
  }
800
- const localEngineEndpoint = _chunkNSDT2GWMcjs.buildEngineEndpoint.call(void 0,
815
+ const localEngineEndpoint = _chunk6EH5WPVTcjs.buildEngineEndpoint.call(void 0,
801
816
  config.engineHost,
802
817
  config.enginePort
803
818
  );
804
819
  const endpoint = config.startEngine ? localEngineEndpoint : _nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.endpoint), () => ( (isDevEnv ? localEngineEndpoint : void 0)));
805
820
  const engineSpawn = !parsedEndpoint && Boolean(endpoint);
806
- const startServices = _nullishCoalesce(_nullishCoalesce(config.startServices, () => ( _chunkBY6YFH2Kcjs.getRivetRunServices.call(void 0, ))), () => ( engineSpawn));
821
+ const startServices = _nullishCoalesce(_nullishCoalesce(config.startServices, () => ( _chunkYNVGOPSKcjs.getRivetRunServices.call(void 0, ))), () => ( engineSpawn));
807
822
  const validateServerlessEndpoint = Boolean(
808
823
  config.startEngine || parsedEndpoint
809
824
  );
810
825
  const namespace = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.namespace), () => ( config.namespace)), () => ( "default"));
811
- const token = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token)), () => ( (endpoint && _chunkNSDT2GWMcjs.isLocalEngineEndpoint.call(void 0, endpoint) ? "default" : void 0)));
812
- const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunkNSDT2GWMcjs.tryParseEndpoint.call(void 0, ctx, {
826
+ const token = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token)), () => ( (endpoint && _chunk6EH5WPVTcjs.isLocalEngineEndpoint.call(void 0, endpoint) ? "default" : void 0)));
827
+ const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunk6EH5WPVTcjs.tryParseEndpoint.call(void 0, ctx, {
813
828
  endpoint: config.serverless.publicEndpoint,
814
829
  path: ["serverless", "publicEndpoint"]
815
830
  }) : void 0;
@@ -846,7 +861,7 @@ function buildActorNames(config) {
846
861
  Object.keys(config.use).map((actorName) => {
847
862
  const definition = config.use[actorName];
848
863
  const options = _nullishCoalesce(definition.config.options, () => ( {}));
849
- const runMeta = _chunkINFADXXIcjs.getRunMetadata.call(void 0, definition.config.run);
864
+ const runMeta = _chunkYWWDUC6Dcjs.getRunMetadata.call(void 0, definition.config.run);
850
865
  const metadata = {};
851
866
  metadata.icon = _nullishCoalesce(options.icon, () => ( runMeta.icon));
852
867
  metadata.name = _nullishCoalesce(options.name, () => ( runMeta.name));
@@ -914,7 +929,7 @@ var DocRegistryConfigSchema = _zod.z.object({
914
929
  noWelcome: _zod.z.boolean().optional().describe("Disable the welcome message on startup. Default: false"),
915
930
  sqlite: DocSqliteConfigSchema,
916
931
  logging: _zod.z.object({
917
- level: _chunkBY6YFH2Kcjs.LogLevelSchema.optional().describe(
932
+ level: _chunkYNVGOPSKcjs.LogLevelSchema.optional().describe(
918
933
  "Log level for RivetKit. Default: 'warn'"
919
934
  )
920
935
  }).optional().describe("Logging configuration."),
@@ -1554,7 +1569,7 @@ var NapiCoreRuntime = (_class = class {
1554
1569
  if (!(active == null ? void 0 : active.sameActorInstance(ownerCtx))) {
1555
1570
  return ownerCtx;
1556
1571
  }
1557
- const applicationSpan = _chunkNSDT2GWMcjs.readActiveTraceHeaders.call(void 0, );
1572
+ const applicationSpan = _chunk6EH5WPVTcjs.readActiveTraceHeaders.call(void 0, );
1558
1573
  if (!applicationSpan) {
1559
1574
  return active;
1560
1575
  }
@@ -1767,7 +1782,7 @@ var NapiCoreRuntime = (_class = class {
1767
1782
  const span = (_a = nativeCtx.invocationTraceContext()) == null ? void 0 : _a.span;
1768
1783
  return this.#invocationContext.run(
1769
1784
  nativeCtx,
1770
- () => _chunkNSDT2GWMcjs.runWithActorInvocationSpan.call(void 0, span, run)
1785
+ () => _chunk6EH5WPVTcjs.runWithActorInvocationSpan.call(void 0, span, run)
1771
1786
  );
1772
1787
  }
1773
1788
  actorInvocationTraceContext(ctx) {
@@ -1985,9 +2000,6 @@ var NapiCoreRuntime = (_class = class {
1985
2000
  }
1986
2001
  await nativeCtx.sql().close();
1987
2002
  }
1988
- async actorRuntimeSocketProvision(ctx) {
1989
- return await asNativeActorContext(ctx).provisionActorRuntimeSocket();
1990
- }
1991
2003
  async actorQueueSend(ctx, name, body) {
1992
2004
  return toNapiQueueMessage(
1993
2005
  await this.#actorContextForOperation(ctx).queue().send(name, toNapiBuffer(body))
@@ -2142,8 +2154,8 @@ function runtimeBytesToArrayBuffer(value) {
2142
2154
  function buildNativeHttpRequest(init) {
2143
2155
  var _a;
2144
2156
  const headers = new Headers(init.headers);
2145
- const originalUrl = headers.get(_chunkNSDT2GWMcjs.HEADER_ORIGINAL_REQUEST_URL);
2146
- headers.delete(_chunkNSDT2GWMcjs.HEADER_ORIGINAL_REQUEST_URL);
2157
+ const originalUrl = headers.get(_chunk6EH5WPVTcjs.HEADER_ORIGINAL_REQUEST_URL);
2158
+ headers.delete(_chunk6EH5WPVTcjs.HEADER_ORIGINAL_REQUEST_URL);
2147
2159
  const url = _nullishCoalesce(originalUrl, () => ( (init.uri.startsWith("http") ? init.uri : new URL(init.uri, "http://127.0.0.1").toString())));
2148
2160
  const method2 = init.method.toUpperCase();
2149
2161
  const bodyForbidden = method2 === "GET" || method2 === "HEAD";
@@ -2222,7 +2234,7 @@ async function pumpResponseBody(reader, stream) {
2222
2234
  }
2223
2235
  } catch (error) {
2224
2236
  try {
2225
- await stream.error(_chunkBY6YFH2Kcjs.stringifyError.call(void 0, error));
2237
+ await stream.error(_chunkYNVGOPSKcjs.stringifyError.call(void 0, error));
2226
2238
  } catch (streamError) {
2227
2239
  logger2().debug({
2228
2240
  msg: "failed to report native http response stream error",
@@ -2390,7 +2402,7 @@ var RunHandlerCoordinator = class {
2390
2402
  this.#run = run;
2391
2403
  }
2392
2404
  get inspectorKind() {
2393
- return _chunkINFADXXIcjs.getRunInspectorKind.call(void 0, this.#run);
2405
+ return _chunkYWWDUC6Dcjs.getRunInspectorKind.call(void 0, this.#run);
2394
2406
  }
2395
2407
  async run(actorId, restart, callback) {
2396
2408
  const state = this.#getOrCreate(actorId);
@@ -2498,7 +2510,7 @@ var RunHandlerCoordinator = class {
2498
2510
  }
2499
2511
  #initializeInspector(actorId, state) {
2500
2512
  if (state.inspectorInitialized) return;
2501
- const inspector = _chunkINFADXXIcjs.createRunInspector.call(void 0, this.#run, {
2513
+ const inspector = _chunkYWWDUC6Dcjs.createRunInspector.call(void 0, this.#run, {
2502
2514
  actorId,
2503
2515
  control: this.#control(actorId, state)
2504
2516
  });
@@ -3070,17 +3082,6 @@ var WasmCoreRuntime = (_class2 = class {
3070
3082
  this.#sql.delete(wasmCtx);
3071
3083
  await callWasm(() => database.close());
3072
3084
  }
3073
- async actorRuntimeSocketProvision(_ctx) {
3074
- throw new (0, _chunkMGI2VVF6cjs.RivetError)(
3075
- "actor_runtime_socket",
3076
- "unsupported",
3077
- "Actor Runtime Socket is only available on Unix native runtimes.",
3078
- {
3079
- public: true,
3080
- metadata: { runtime: "wasm" }
3081
- }
3082
- );
3083
- }
3084
3085
  async actorQueueSend(ctx, name, body) {
3085
3086
  const queue2 = childHandle(asWasmActorContext(ctx), "queue");
3086
3087
  return normalizeQueueMessage(
@@ -3461,7 +3462,7 @@ async function loadAutoRuntime(config, loaders = defaultRuntimeLoaders) {
3461
3462
  nativeError = error;
3462
3463
  logger2().warn({
3463
3464
  msg: "native runtime failed to load; falling back to wasm",
3464
- error: _chunkBY6YFH2Kcjs.stringifyError.call(void 0, error)
3465
+ error: _chunkYNVGOPSKcjs.stringifyError.call(void 0, error)
3465
3466
  });
3466
3467
  }
3467
3468
  try {
@@ -3470,7 +3471,7 @@ async function loadAutoRuntime(config, loaders = defaultRuntimeLoaders) {
3470
3471
  throw new (0, _chunkMGI2VVF6cjs.RivetError)(
3471
3472
  "config",
3472
3473
  "runtime_unavailable",
3473
- `RivetKit could not load a core runtime. Native runtime: ${_chunkBY6YFH2Kcjs.stringifyError.call(void 0, nativeError)} Wasm runtime: ${_chunkBY6YFH2Kcjs.stringifyError.call(void 0, wasmError)}`,
3474
+ `RivetKit could not load a core runtime. Native runtime: ${_chunkYNVGOPSKcjs.stringifyError.call(void 0, nativeError)} Wasm runtime: ${_chunkYNVGOPSKcjs.stringifyError.call(void 0, wasmError)}`,
3474
3475
  {
3475
3476
  public: true,
3476
3477
  statusCode: 500
@@ -3678,7 +3679,7 @@ async function cleanupNativeSleepRuntimeState(runtime, ctx, afterTrackedWorkDrai
3678
3679
  }).catch((error) => {
3679
3680
  logger2().warn({
3680
3681
  msg: "deferred native sleep cleanup failed",
3681
- error: _chunkBY6YFH2Kcjs.stringifyError.call(void 0, error)
3682
+ error: _chunkYNVGOPSKcjs.stringifyError.call(void 0, error)
3682
3683
  });
3683
3684
  });
3684
3685
  return;
@@ -3850,10 +3851,10 @@ function decodeValue(value) {
3850
3851
  if (!value || value.length === 0) {
3851
3852
  return void 0;
3852
3853
  }
3853
- return _chunkBY6YFH2Kcjs.decodeCborCompat.call(void 0, value);
3854
+ return _chunkYNVGOPSKcjs.decodeCborCompat.call(void 0, value);
3854
3855
  }
3855
3856
  function encodeValue(value) {
3856
- return _chunkBY6YFH2Kcjs.encodeCborCompat.call(void 0, value);
3857
+ return _chunkYNVGOPSKcjs.encodeCborCompat.call(void 0, value);
3857
3858
  }
3858
3859
  function normalizeArgs(value) {
3859
3860
  return Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value];
@@ -3889,7 +3890,7 @@ function isStructuredBridgeError(error) {
3889
3890
  return _chunkMGI2VVF6cjs.isRivetErrorLike.call(void 0, error) && "__type" in error && (error.__type === "RivetError" || error.__type === "ActorError");
3890
3891
  }
3891
3892
  function encodeNativeCallbackError(error) {
3892
- const structuredError = isStructuredBridgeError(error) ? error : _chunkBY6YFH2Kcjs.deconstructError.call(void 0, error, true);
3893
+ const structuredError = isStructuredBridgeError(error) ? error : _chunkYNVGOPSKcjs.deconstructError.call(void 0, error, true);
3893
3894
  const { encoded, droppedMetadataCause } = _chunkMGI2VVF6cjs.encodeBridgeRivetError.call(void 0, structuredError);
3894
3895
  if (droppedMetadataCause !== void 0) {
3895
3896
  logger2().warn(
@@ -3951,7 +3952,7 @@ function decodeWorkflowCbor(data) {
3951
3952
  return null;
3952
3953
  }
3953
3954
  try {
3954
- return _chunkBY6YFH2Kcjs.decodeCborCompat.call(void 0, new Uint8Array(data));
3955
+ return _chunkYNVGOPSKcjs.decodeCborCompat.call(void 0, new Uint8Array(data));
3955
3956
  } catch (e3) {
3956
3957
  return null;
3957
3958
  }
@@ -4064,7 +4065,7 @@ function serializeWorkflowHistoryForJson(data) {
4064
4065
  if (data === null) {
4065
4066
  return null;
4066
4067
  }
4067
- const history = _chunkSTFQQWYYcjs.decodeWorkflowHistoryTransport.call(void 0, data);
4068
+ const history = _chunk6HXQONU5cjs.decodeWorkflowHistoryTransport.call(void 0, data);
4068
4069
  return jsonSafe({
4069
4070
  nameRegistry: [...history.nameRegistry],
4070
4071
  entries: history.entries.map((entry) => ({
@@ -4163,7 +4164,7 @@ var NativeConnAdapter = class {
4163
4164
  this.#ctx = ctx;
4164
4165
  this.#queueHibernationRemoval = queueHibernationRemoval;
4165
4166
  this.#assertCanMutateState = assertCanMutateState;
4166
- this[_chunkINFADXXIcjs.CONN_STATE_MANAGER_SYMBOL] = {
4167
+ this[_chunkYWWDUC6Dcjs.CONN_STATE_MANAGER_SYMBOL] = {
4167
4168
  stateEnabled: true,
4168
4169
  get state() {
4169
4170
  return thisConn.state;
@@ -4180,7 +4181,7 @@ var NativeConnAdapter = class {
4180
4181
  decodeValue(this.#runtime.connParams(this.#conn))
4181
4182
  );
4182
4183
  }
4183
- [_chunkINFADXXIcjs.RAW_STATE_SYMBOL]() {
4184
+ [_chunkYWWDUC6Dcjs.RAW_STATE_SYMBOL]() {
4184
4185
  return this.#readState();
4185
4186
  }
4186
4187
  get state() {
@@ -4210,7 +4211,7 @@ var NativeConnAdapter = class {
4210
4211
  },
4211
4212
  (newValue) => {
4212
4213
  assertCurrentState();
4213
- _chunkBY6YFH2Kcjs.assertJsonCompatValue.call(void 0, newValue);
4214
+ _chunkYNVGOPSKcjs.assertJsonCompatValue.call(void 0, newValue);
4214
4215
  }
4215
4216
  );
4216
4217
  }
@@ -4218,7 +4219,7 @@ var NativeConnAdapter = class {
4218
4219
  var _a;
4219
4220
  (_a = this.#assertCanMutateState) == null ? void 0 : _a.call(this);
4220
4221
  const nextValue = unwrapWriteThroughProxy(value);
4221
- _chunkBY6YFH2Kcjs.assertJsonCompatValue.call(void 0, nextValue);
4222
+ _chunkYNVGOPSKcjs.assertJsonCompatValue.call(void 0, nextValue);
4222
4223
  this.#writeState(nextValue, { writeNative: true });
4223
4224
  }
4224
4225
  initializeState(value) {
@@ -5237,7 +5238,7 @@ var ActorContextHandleAdapter = class {
5237
5238
  this.#databaseProvider = databaseProvider;
5238
5239
  }
5239
5240
  this.#request = request;
5240
- this[_chunkINFADXXIcjs.ACTOR_CONTEXT_INTERNAL_SYMBOL] = new NativeWorkflowRuntimeAdapter(
5241
+ this[_chunkYWWDUC6Dcjs.ACTOR_CONTEXT_INTERNAL_SYMBOL] = new NativeWorkflowRuntimeAdapter(
5241
5242
  this,
5242
5243
  () => this.#logByInvocationScope.delete(
5243
5244
  _nullishCoalesce(this.#runtime.currentInvocationScope(), () => ( NO_INVOCATION_SCOPE))
@@ -5250,11 +5251,6 @@ var ActorContextHandleAdapter = class {
5250
5251
  }
5251
5252
  return this.#kv;
5252
5253
  }
5253
- async actorRuntimeSocket() {
5254
- return await callNative(
5255
- () => this.#runtime.actorRuntimeSocketProvision(this.#ctx)
5256
- );
5257
- }
5258
5254
  get db() {
5259
5255
  if (!this.#databaseProvider) {
5260
5256
  throw databaseNotConfiguredError();
@@ -5270,7 +5266,7 @@ var ActorContextHandleAdapter = class {
5270
5266
  }
5271
5267
  throw databaseClientNotReadyError();
5272
5268
  }
5273
- [_chunkINFADXXIcjs.RAW_STATE_SYMBOL]() {
5269
+ [_chunkYWWDUC6Dcjs.RAW_STATE_SYMBOL]() {
5274
5270
  if (!this.#stateEnabled) {
5275
5271
  throw stateNotEnabledError();
5276
5272
  }
@@ -5297,7 +5293,7 @@ var ActorContextHandleAdapter = class {
5297
5293
  },
5298
5294
  (newValue) => {
5299
5295
  assertCurrentState();
5300
- _chunkBY6YFH2Kcjs.assertJsonCompatValue.call(void 0, newValue);
5296
+ _chunkYNVGOPSKcjs.assertJsonCompatValue.call(void 0, newValue);
5301
5297
  }
5302
5298
  );
5303
5299
  }
@@ -5309,7 +5305,7 @@ var ActorContextHandleAdapter = class {
5309
5305
  }
5310
5306
  this.#assertCanMutateState();
5311
5307
  const nextValue = unwrapWriteThroughProxy(value);
5312
- _chunkBY6YFH2Kcjs.assertJsonCompatValue.call(void 0, nextValue);
5308
+ _chunkYNVGOPSKcjs.assertJsonCompatValue.call(void 0, nextValue);
5313
5309
  this.#writeState(nextValue, { scheduleSave: true });
5314
5310
  }
5315
5311
  initializeState(value) {
@@ -5523,7 +5519,7 @@ var ActorContextHandleAdapter = class {
5523
5519
  log: {
5524
5520
  debug: (obj) => logger2().debug(obj)
5525
5521
  },
5526
- nativeDatabaseProvider: _chunkDL7PKMEPcjs.registerNativeStateTransactionOpener.call(void 0,
5522
+ nativeDatabaseProvider: _chunkJU6RP3LWcjs.registerNativeStateTransactionOpener.call(void 0,
5527
5523
  {
5528
5524
  open: async (requestedActorId) => {
5529
5525
  void requestedActorId;
@@ -5546,7 +5542,7 @@ var ActorContextHandleAdapter = class {
5546
5542
  return this.#db;
5547
5543
  }
5548
5544
  #bindDatabaseClient(client) {
5549
- return _chunkDL7PKMEPcjs.bindNativeStateTransactionContext.call(void 0, client, {
5545
+ return _chunkJU6RP3LWcjs.bindNativeStateTransactionContext.call(void 0, client, {
5550
5546
  enter: async () => await this.#enterStateTransaction(),
5551
5547
  exit: (scope) => this.#exitStateTransaction(
5552
5548
  scope
@@ -5750,7 +5746,7 @@ var ActorContextHandleAdapter = class {
5750
5746
  const trackedPromise = Promise.resolve(promise).catch((error) => {
5751
5747
  logger2().warn({
5752
5748
  msg: "keepAwake promise rejected",
5753
- error: _chunkBY6YFH2Kcjs.stringifyError.call(void 0, error)
5749
+ error: _chunkYNVGOPSKcjs.stringifyError.call(void 0, error)
5754
5750
  });
5755
5751
  }).then(() => null);
5756
5752
  try {
@@ -5811,16 +5807,16 @@ var ActorContextHandleAdapter = class {
5811
5807
  // need to keep an actor awake should use `keepAwake(promise)` or
5812
5808
  // `waitUntil(promise)` so the native counter machinery in rivetkit-core
5813
5809
  // owns the lifecycle.
5814
- /** @deprecated Use `keepAwake(promise)` or `waitUntil(promise)` instead. */
5810
+ /** @deprecated `setPreventSleep` was deprecated in 3.0 and will be removed in a future version. It is a no-op. Use `c.keepAwake(promise)` or `c.waitUntil(promise)`. See https://rivet.dev/actors/docs/deprecated/prevent-sleep */
5815
5811
  setPreventSleep(_preventSleep) {
5816
5812
  logger2().warn({
5817
- msg: "setPreventSleep is deprecated and is a no-op; use keepAwake(promise) or waitUntil(promise) instead"
5813
+ msg: "setPreventSleep was deprecated in 3.0 and will be removed in a future version. It is a no-op; use keepAwake(promise) or waitUntil(promise) instead. See https://rivet.dev/actors/docs/deprecated/prevent-sleep"
5818
5814
  });
5819
5815
  }
5820
- /** @deprecated Use `keepAwake(promise)` or `waitUntil(promise)` instead. */
5816
+ /** @deprecated `preventSleep` was deprecated in 3.0 and will be removed in a future version. It is a no-op that always returns `false`. Use `c.keepAwake(promise)` or `c.waitUntil(promise)`. See https://rivet.dev/actors/docs/deprecated/prevent-sleep */
5821
5817
  get preventSleep() {
5822
5818
  logger2().warn({
5823
- msg: "preventSleep is deprecated and always returns false; use keepAwake(promise) or waitUntil(promise) instead"
5819
+ msg: "preventSleep was deprecated in 3.0 and will be removed in a future version. It always returns false; use keepAwake(promise) or waitUntil(promise) instead. See https://rivet.dev/actors/docs/deprecated/prevent-sleep"
5824
5820
  });
5825
5821
  return false;
5826
5822
  }
@@ -6130,7 +6126,7 @@ function buildActorTracingConfig(actions, tracing) {
6130
6126
  if (tracing === void 0) return void 0;
6131
6127
  return {
6132
6128
  sampler: tracing.sampler,
6133
- actions: _chunkINFADXXIcjs.flattenActionTraceSamplers.call(void 0, actions, tracing.actions)
6129
+ actions: _chunkYWWDUC6Dcjs.flattenActionTraceSamplers.call(void 0, actions, tracing.actions)
6134
6130
  };
6135
6131
  }
6136
6132
  function buildActorConfig(definition, registryConfig, runtimeKind) {
@@ -6150,7 +6146,6 @@ function buildActorConfig(definition, registryConfig, runtimeKind) {
6150
6146
  definition.config.actions,
6151
6147
  definition.config.tracing
6152
6148
  ),
6153
- enableActorRuntimeSocket: options.enableActorRuntimeSocket === true,
6154
6149
  hasState: config.state !== void 0 || typeof config.createState === "function",
6155
6150
  canHibernateWebsocket: typeof canHibernate === "boolean" ? canHibernate : void 0,
6156
6151
  stateSaveIntervalMs: options.stateSaveInterval,
@@ -6172,7 +6167,7 @@ function buildActorConfig(definition, registryConfig, runtimeKind) {
6172
6167
  maxOutgoingMessageSize: registryConfig.maxOutgoingMessageSize,
6173
6168
  preloadMaxWorkflowBytes: options.preloadMaxWorkflowBytes,
6174
6169
  preloadMaxConnectionsBytes: options.preloadMaxConnectionsBytes,
6175
- actions: Object.keys(_chunkINFADXXIcjs.flattenActionHandlers.call(void 0, config.actions)).sort().map((name) => ({ name })),
6170
+ actions: Object.keys(_chunkYWWDUC6Dcjs.flattenActionHandlers.call(void 0, config.actions)).sort().map((name) => ({ name })),
6176
6171
  inspectorTabs: buildInspectorTabs(config.inspector, runtimeKind)
6177
6172
  };
6178
6173
  }
@@ -6248,10 +6243,10 @@ function validateInspectorTabSource(tabId, resolved) {
6248
6243
  function buildNativeFactory(runtime, registryConfig, definition) {
6249
6244
  var _a;
6250
6245
  const config = definition.config;
6251
- const databaseProvider = _nullishCoalesce(config.db, () => ( _chunkDL7PKMEPcjs.db.call(void 0, )));
6252
- const actionHandlers = _chunkINFADXXIcjs.flattenActionHandlers.call(void 0, config.actions);
6246
+ const databaseProvider = _nullishCoalesce(config.db, () => ( _chunkJU6RP3LWcjs.db.call(void 0, )));
6247
+ const actionHandlers = _chunkYWWDUC6Dcjs.flattenActionHandlers.call(void 0, config.actions);
6253
6248
  const schemaConfig = {
6254
- actionInputSchemas: _chunkINFADXXIcjs.flattenActionInputSchemas.call(void 0,
6249
+ actionInputSchemas: _chunkYWWDUC6Dcjs.flattenActionInputSchemas.call(void 0,
6255
6250
  config.actions,
6256
6251
  config.actionInputSchemas
6257
6252
  ),
@@ -6259,9 +6254,9 @@ function buildNativeFactory(runtime, registryConfig, definition) {
6259
6254
  events: config.events,
6260
6255
  queues: config.queues
6261
6256
  };
6262
- const createClient = (ctx) => _chunkNSDT2GWMcjs.createClientWithDriver.call(void 0,
6263
- new (0, _chunkNSDT2GWMcjs.RemoteEngineControlClient)(
6264
- _chunkNSDT2GWMcjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
6257
+ const createClient = (ctx) => _chunk6EH5WPVTcjs.createClientWithDriver.call(void 0,
6258
+ new (0, _chunk6EH5WPVTcjs.RemoteEngineControlClient)(
6259
+ _chunk6EH5WPVTcjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
6265
6260
  ),
6266
6261
  {
6267
6262
  encoding: "bare",
@@ -6273,13 +6268,13 @@ function buildNativeFactory(runtime, registryConfig, definition) {
6273
6268
  )
6274
6269
  }
6275
6270
  );
6276
- const run = _chunkINFADXXIcjs.getRunFunction.call(void 0, config.run);
6277
- const runHandlerCoordinator = _chunkINFADXXIcjs.getRunInspectorKind.call(void 0, config.run) === "workflow" ? new RunHandlerCoordinator(config.run) : void 0;
6271
+ const run = _chunkYWWDUC6Dcjs.getRunFunction.call(void 0, config.run);
6272
+ const runHandlerCoordinator = _chunkYWWDUC6Dcjs.getRunInspectorKind.call(void 0, config.run) === "workflow" ? new RunHandlerCoordinator(config.run) : void 0;
6278
6273
  const getNativeWorkflowInspector = (ctx) => {
6279
6274
  var _a2, _b;
6280
6275
  const actorId = callNativeSync(() => runtime.actorId(ctx));
6281
6276
  const restart = () => callNativeSync(() => runtime.actorRestartRunHandler(ctx));
6282
- return _nullishCoalesce(((_a2 = runHandlerCoordinator == null ? void 0 : runHandlerCoordinator.getInspector(actorId, restart)) == null ? void 0 : _a2.workflow), () => ( ((_b = _chunkINFADXXIcjs.getRunInspectorConfig.call(void 0, config.run, actorId)) == null ? void 0 : _b.workflow)));
6277
+ return _nullishCoalesce(((_a2 = runHandlerCoordinator == null ? void 0 : runHandlerCoordinator.getInspector(actorId, restart)) == null ? void 0 : _a2.workflow), () => ( ((_b = _chunkYWWDUC6Dcjs.getRunInspectorConfig.call(void 0, config.run, actorId)) == null ? void 0 : _b.workflow)));
6283
6278
  };
6284
6279
  const onStateChange = typeof config.onStateChange === "function" ? (actorCtx, nextState) => {
6285
6280
  config.onStateChange(actorCtx, nextState);
@@ -6453,7 +6448,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
6453
6448
  400
6454
6449
  );
6455
6450
  }
6456
- const cbor = _chunkBY6YFH2Kcjs.encodeCborCompat.call(void 0,
6451
+ const cbor = _chunkYNVGOPSKcjs.encodeCborCompat.call(void 0,
6457
6452
  _nullishCoalesce(body.body, () => ( null))
6458
6453
  );
6459
6454
  const message = await runtime.actorQueueSend(ctx, name, cbor);
@@ -6821,7 +6816,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
6821
6816
  );
6822
6817
  } finally {
6823
6818
  runHandlerCoordinator == null ? void 0 : runHandlerCoordinator.destroy(actorId);
6824
- _chunkINFADXXIcjs.disposeRunInspector.call(void 0, config.run, actorId);
6819
+ _chunkYWWDUC6Dcjs.disposeRunInspector.call(void 0, config.run, actorId);
6825
6820
  await actorCtx.dispose();
6826
6821
  }
6827
6822
  }
@@ -6833,7 +6828,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
6833
6828
  const actorCtx = makeActorCtx(ctx);
6834
6829
  const actorId = callNativeSync(() => runtime.actorId(ctx));
6835
6830
  runHandlerCoordinator == null ? void 0 : runHandlerCoordinator.destroy(actorId);
6836
- _chunkINFADXXIcjs.disposeRunInspector.call(void 0, config.run, actorId);
6831
+ _chunkYWWDUC6Dcjs.disposeRunInspector.call(void 0, config.run, actorId);
6837
6832
  try {
6838
6833
  if (typeof config.onDestroy === "function") {
6839
6834
  await config.onDestroy(actorCtx);
@@ -7050,7 +7045,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7050
7045
  ...request,
7051
7046
  abortController: requestAbortController
7052
7047
  });
7053
- const rawConnParams = handlerRequest.headers.get(_chunkNSDT2GWMcjs.HEADER_CONN_PARAMS);
7048
+ const rawConnParams = handlerRequest.headers.get(_chunk6EH5WPVTcjs.HEADER_CONN_PARAMS);
7054
7049
  let requestCtx;
7055
7050
  let conn;
7056
7051
  let removeRequestAbortListener;
@@ -7107,7 +7102,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7107
7102
  requestCtx,
7108
7103
  handlerRequest
7109
7104
  );
7110
- if (!_chunkNSDT2GWMcjs.isResponseLike.call(void 0, response)) {
7105
+ if (!_chunk6EH5WPVTcjs.isResponseLike.call(void 0, response)) {
7111
7106
  throw new Error(
7112
7107
  "onRequest handler must return a Response"
7113
7108
  );
@@ -7197,15 +7192,15 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7197
7192
  }
7198
7193
  );
7199
7194
  })(),
7200
- getWorkflowHistory: _chunkINFADXXIcjs.hasRunInspectorConfig.call(void 0, config.run) ? wrapNativeCallback(
7195
+ getWorkflowHistory: _chunkYWWDUC6Dcjs.hasRunInspectorConfig.call(void 0, config.run) ? wrapNativeCallback(
7201
7196
  async (error, payload) => {
7202
7197
  var _a2;
7203
7198
  const { ctx } = unwrapTsfnPayload(error, payload);
7204
7199
  const history = (_a2 = getNativeWorkflowInspector(ctx)) == null ? void 0 : _a2.getHistory();
7205
- return history == null ? void 0 : _chunkBY6YFH2Kcjs.toUint8Array.call(void 0, history);
7200
+ return history == null ? void 0 : _chunkYNVGOPSKcjs.toUint8Array.call(void 0, history);
7206
7201
  }
7207
7202
  ) : void 0,
7208
- replayWorkflow: _chunkINFADXXIcjs.hasRunInspectorConfig.call(void 0, config.run) ? wrapNativeCallback(
7203
+ replayWorkflow: _chunkYWWDUC6Dcjs.hasRunInspectorConfig.call(void 0, config.run) ? wrapNativeCallback(
7209
7204
  async (error, payload) => {
7210
7205
  const { ctx, entryId } = unwrapTsfnPayload(
7211
7206
  error,
@@ -7216,7 +7211,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
7216
7211
  return void 0;
7217
7212
  }
7218
7213
  const history = await _asyncNullishCoalesce(await workflowInspector.replayFromStep(entryId), async () => ( null));
7219
- return history == null ? void 0 : _chunkBY6YFH2Kcjs.toUint8Array.call(void 0, history);
7214
+ return history == null ? void 0 : _chunkYNVGOPSKcjs.toUint8Array.call(void 0, history);
7220
7215
  }
7221
7216
  ) : void 0,
7222
7217
  actions: Object.fromEntries(
@@ -7358,7 +7353,7 @@ async function buildServeConfig(config, resolveNativeBinaries = true) {
7358
7353
  startServices: resolveNativeBinaries && config.startServices,
7359
7354
  handleInspectorHttpInRuntime: true,
7360
7355
  serverlessBasePath: config.serverless.basePath,
7361
- serverlessPackageVersion: _chunkBY6YFH2Kcjs.VERSION,
7356
+ serverlessPackageVersion: _chunkYNVGOPSKcjs.VERSION,
7362
7357
  serverlessClientEndpoint: config.publicEndpoint,
7363
7358
  serverlessClientNamespace: config.publicNamespace,
7364
7359
  serverlessClientToken: config.publicToken,
@@ -7372,12 +7367,12 @@ async function buildServeConfig(config, resolveNativeBinaries = true) {
7372
7367
  } catch (error) {
7373
7368
  logger2().warn({
7374
7369
  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",
7375
- error: _chunkBY6YFH2Kcjs.stringifyError.call(void 0, error)
7370
+ error: _chunkYNVGOPSKcjs.stringifyError.call(void 0, error)
7376
7371
  });
7377
7372
  }
7378
7373
  }
7379
7374
  if (resolveNativeBinaries && config.startServices) {
7380
- const servicesBinary = _chunkBY6YFH2Kcjs.getEnvUniversal.call(void 0, "RIVET_SERVICES_BINARY");
7375
+ const servicesBinary = _chunkYNVGOPSKcjs.getEnvUniversal.call(void 0, "RIVET_SERVICES_BINARY");
7381
7376
  if (servicesBinary) {
7382
7377
  serveConfig.servicesBinaryPath = servicesBinary;
7383
7378
  } else {
@@ -7392,13 +7387,13 @@ async function buildServeConfig(config, resolveNativeBinaries = true) {
7392
7387
  serveConfig.engineHost = config.engineHost;
7393
7388
  serveConfig.enginePort = config.enginePort;
7394
7389
  if ((_a = config.test) == null ? void 0 : _a.enabled) {
7395
- serveConfig.inspectorTestToken = _nullishCoalesce(_chunkBY6YFH2Kcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
7390
+ serveConfig.inspectorTestToken = _nullishCoalesce(_chunkYNVGOPSKcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
7396
7391
  }
7397
7392
  return serveConfig;
7398
7393
  }
7399
7394
  async function buildRegistryWithRuntime(config, runtime) {
7400
7395
  var _a;
7401
- if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunkBY6YFH2Kcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
7396
+ if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunkYNVGOPSKcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
7402
7397
  trySetProcessEnv("_RIVET_TEST_INSPECTOR_TOKEN", "token");
7403
7398
  }
7404
7399
  if (runtime.kind === "napi") {
@@ -7471,7 +7466,7 @@ function createApplicationFetch(application, runtime) {
7471
7466
  signal: abortController.signal
7472
7467
  })
7473
7468
  );
7474
- if (!_chunkNSDT2GWMcjs.isResponseLike.call(void 0, response)) {
7469
+ if (!_chunk6EH5WPVTcjs.isResponseLike.call(void 0, response)) {
7475
7470
  throw new TypeError(
7476
7471
  "registry.listen() application fetch must return a Response"
7477
7472
  );
@@ -7526,7 +7521,7 @@ var Registry = class {
7526
7521
  var _a;
7527
7522
  this.#config = config;
7528
7523
  if ((_a = config.logging) == null ? void 0 : _a.baseLogger) {
7529
- _chunkBY6YFH2Kcjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
7524
+ _chunkYNVGOPSKcjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
7530
7525
  }
7531
7526
  this.#buildConfiguredRegistry = _nullishCoalesce((deps == null ? void 0 : deps.buildConfiguredRegistry), () => ( buildConfiguredRegistry));
7532
7527
  this.routes = {
@@ -7758,10 +7753,10 @@ var Registry = class {
7758
7753
  if (!opts.application) {
7759
7754
  rejectServerless();
7760
7755
  }
7761
- const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunkBY6YFH2Kcjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
7762
- const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunkBY6YFH2Kcjs.getRivetkitPublicDir.call(void 0, )));
7756
+ const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunkYNVGOPSKcjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
7757
+ const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunkYNVGOPSKcjs.getRivetkitPublicDir.call(void 0, )));
7763
7758
  const config = this.parseConfig();
7764
- if (opts.application && _chunkBY6YFH2Kcjs.getRivetkitRuntimeMode.call(void 0, ) !== "serverless") {
7759
+ if (opts.application && _chunkYNVGOPSKcjs.getRivetkitRuntimeMode.call(void 0, ) !== "serverless") {
7765
7760
  if (config.runtime === "wasm") {
7766
7761
  throw new Error(
7767
7762
  "registry.listen() requires the native runtime; use an application-owned HTTP server with WebAssembly"
@@ -7837,7 +7832,7 @@ var Registry = class {
7837
7832
  return jsonRouteResponse(503, {
7838
7833
  status: "not_started",
7839
7834
  runtime: "rivetkit",
7840
- version: _chunkBY6YFH2Kcjs.VERSION
7835
+ version: _chunkYNVGOPSKcjs.VERSION
7841
7836
  });
7842
7837
  }
7843
7838
  const { runtime, registry } = configured;
@@ -7845,7 +7840,7 @@ var Registry = class {
7845
7840
  return jsonRouteResponse(501, {
7846
7841
  status: "unsupported",
7847
7842
  runtime: "rivetkit",
7848
- version: _chunkBY6YFH2Kcjs.VERSION
7843
+ version: _chunkYNVGOPSKcjs.VERSION
7849
7844
  });
7850
7845
  }
7851
7846
  const response = await runtime.registryHealth(registry);
@@ -7920,14 +7915,14 @@ var Registry = class {
7920
7915
  var _a;
7921
7916
  if (!this.#runtimeServePromise) {
7922
7917
  const configuredEnvoyVersion = (_a = this.#config.node) == null ? void 0 : _a.version;
7923
- const envoyVersionSource = configuredEnvoyVersion !== void 0 ? "config" : _chunkBY6YFH2Kcjs.getRivetEnvoyVersion.call(void 0, ) !== void 0 ? "environment" : "default";
7918
+ const envoyVersionSource = configuredEnvoyVersion !== void 0 ? "config" : _chunkYNVGOPSKcjs.getRivetEnvoyVersion.call(void 0, ) !== void 0 ? "environment" : "default";
7924
7919
  logger2().info({
7925
7920
  msg: "starting rivetkit envoy",
7926
- rivetkitVersion: _chunkBY6YFH2Kcjs.VERSION,
7921
+ rivetkitVersion: _chunkYNVGOPSKcjs.VERSION,
7927
7922
  envoyVersion: config.node.version,
7928
7923
  envoyVersionSource
7929
7924
  });
7930
- if (envoyVersionSource === "default" && _chunkBY6YFH2Kcjs.getNodeEnv.call(void 0, ) === "production") {
7925
+ if (envoyVersionSource === "default" && _chunkYNVGOPSKcjs.getNodeEnv.call(void 0, ) === "production") {
7931
7926
  logger2().error({
7932
7927
  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",
7933
7928
  envoyVersion: config.node.version,
@@ -8031,7 +8026,7 @@ var Registry = class {
8031
8026
  const modeAPromise = this.#runtimeServeConfiguredPromise;
8032
8027
  const modeBPromise = this.#runtimeServerlessPromise;
8033
8028
  const runtimes = /* @__PURE__ */ new Set();
8034
- const localDevSignal = signalDriven && _chunkBY6YFH2Kcjs.getNodeEnv.call(void 0, ) !== "production" && config.engineSpawn && config.endpoint !== void 0 && _chunkNSDT2GWMcjs.isLocalEngineEndpoint.call(void 0, config.endpoint);
8029
+ const localDevSignal = signalDriven && _chunkYNVGOPSKcjs.getNodeEnv.call(void 0, ) !== "production" && config.engineSpawn && config.endpoint !== void 0 && _chunk6EH5WPVTcjs.isLocalEngineEndpoint.call(void 0, config.endpoint);
8035
8030
  let gracePeriodMs = (_a = config.shutdown) == null ? void 0 : _a.gracePeriodMs;
8036
8031
  if (gracePeriodMs === void 0) {
8037
8032
  gracePeriodMs = localDevSignal ? LOCAL_DEV_SHUTDOWN_GRACE_PERIOD_MS : await _asyncNullishCoalesce(await this.#actorStopThresholdMs(
@@ -8143,7 +8138,7 @@ var Registry = class {
8143
8138
  }
8144
8139
  if (this.#runtimeReadyPromise) return this.#runtimeReadyPromise;
8145
8140
  try {
8146
- if (_chunkBY6YFH2Kcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8141
+ if (_chunkYNVGOPSKcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8147
8142
  return Promise.reject(
8148
8143
  new Error(
8149
8144
  "registry.startAndWait() requires envoy runtime mode; serverless registries become ready per request"
@@ -8167,7 +8162,7 @@ var Registry = class {
8167
8162
  if (!configuredRegistryPromise || !serveLifecyclePromise) {
8168
8163
  throw new Error("registry envoy startup did not initialize");
8169
8164
  }
8170
- const readyTimeoutMs = config.engineSpawn && config.endpoint !== void 0 && _chunkNSDT2GWMcjs.isLocalEngineEndpoint.call(void 0, config.endpoint) ? LOCAL_ENGINE_READY_TIMEOUT_MS : REGISTRY_READY_TIMEOUT_MS;
8165
+ const readyTimeoutMs = config.engineSpawn && config.endpoint !== void 0 && _chunk6EH5WPVTcjs.isLocalEngineEndpoint.call(void 0, config.endpoint) ? LOCAL_ENGINE_READY_TIMEOUT_MS : REGISTRY_READY_TIMEOUT_MS;
8171
8166
  let timeout;
8172
8167
  const timeoutPromise = new Promise((_resolve, reject) => {
8173
8168
  var _a;
@@ -8217,8 +8212,8 @@ var Registry = class {
8217
8212
  * ```
8218
8213
  */
8219
8214
  start() {
8220
- if (_chunkBY6YFH2Kcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8221
- const publicDir = _nullishCoalesce(_chunkBY6YFH2Kcjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
8215
+ if (_chunkYNVGOPSKcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
8216
+ const publicDir = _nullishCoalesce(_chunkYNVGOPSKcjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
8222
8217
  this.listen({ publicDir }).catch((error) => {
8223
8218
  logger2().error({ error }, "auto-listen failed; exiting");
8224
8219
  if (typeof process !== "undefined" && typeof process.exit === "function") {
@@ -8334,13 +8329,13 @@ var Registry = class {
8334
8329
  };
8335
8330
  console.log();
8336
8331
  console.log(
8337
- ` RivetKit ${_chunkBY6YFH2Kcjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
8332
+ ` RivetKit ${_chunkYNVGOPSKcjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
8338
8333
  );
8339
8334
  if (config.namespace !== "default") {
8340
8335
  logLine("Namespace", config.namespace);
8341
8336
  }
8342
8337
  if (config.endpoint) {
8343
- const endpointType = config.startEngine || _chunkNSDT2GWMcjs.isLocalEngineEndpoint.call(void 0, config.endpoint) ? "local native" : "remote";
8338
+ const endpointType = config.startEngine || _chunk6EH5WPVTcjs.isLocalEngineEndpoint.call(void 0, config.endpoint) ? "local native" : "remote";
8344
8339
  logLine("Endpoint", `${config.endpoint} (${endpointType})`);
8345
8340
  }
8346
8341
  if (kind === "serverless" && config.publicEndpoint) {
@@ -8410,5 +8405,5 @@ function setup(input) {
8410
8405
 
8411
8406
 
8412
8407
 
8413
- exports.ALLOWED_PUBLIC_HEADERS = _chunkNSDT2GWMcjs.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 = _chunkNSDT2GWMcjs.createClientWithDriver; exports.defineRunHandler = _chunkINFADXXIcjs.defineRunHandler; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunkBY6YFH2Kcjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunkBY6YFH2Kcjs.toUint8Array;
8408
+ exports.ALLOWED_PUBLIC_HEADERS = _chunk6EH5WPVTcjs.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 = _chunk6EH5WPVTcjs.createClientWithDriver; exports.defineRunHandler = _chunkYWWDUC6Dcjs.defineRunHandler; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunkYNVGOPSKcjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunkYNVGOPSKcjs.toUint8Array;
8414
8409
  //# sourceMappingURL=mod.cjs.map