rivetkit 2.0.26 → 2.0.27

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 (92) hide show
  1. package/dist/tsup/{chunk-EX6XY7A4.js → chunk-2NNICHGY.js} +2 -2
  2. package/dist/tsup/{chunk-CFMLY3P6.cjs → chunk-2TZH6VO6.cjs} +25 -32
  3. package/dist/tsup/chunk-2TZH6VO6.cjs.map +1 -0
  4. package/dist/tsup/{chunk-SWFPKHMT.cjs → chunk-4GJQDTAG.cjs} +192 -193
  5. package/dist/tsup/chunk-4GJQDTAG.cjs.map +1 -0
  6. package/dist/tsup/{chunk-NFQAYLE5.js → chunk-5YDKTW6Y.js} +11 -18
  7. package/dist/tsup/chunk-5YDKTW6Y.js.map +1 -0
  8. package/dist/tsup/{chunk-GMQ44WPZ.js → chunk-6F2NCX7R.js} +2 -2
  9. package/dist/tsup/{chunk-K5JMIH4N.js → chunk-BBTOBXEO.js} +8 -18
  10. package/dist/tsup/chunk-BBTOBXEO.js.map +1 -0
  11. package/dist/tsup/{chunk-ZX3AUO3B.js → chunk-C3UREFUI.js} +2 -2
  12. package/dist/tsup/{chunk-AYDCXNX6.js → chunk-D7A47BVR.js} +2 -2
  13. package/dist/tsup/{chunk-ZIAFEFUK.cjs → chunk-DRJCTDDT.cjs} +6 -6
  14. package/dist/tsup/{chunk-ZIAFEFUK.cjs.map → chunk-DRJCTDDT.cjs.map} +1 -1
  15. package/dist/tsup/{chunk-77UIPJTD.cjs → chunk-F3SQLO3X.cjs} +5 -5
  16. package/dist/tsup/{chunk-77UIPJTD.cjs.map → chunk-F3SQLO3X.cjs.map} +1 -1
  17. package/dist/tsup/{chunk-Z2YB6STQ.cjs → chunk-FYZLEH57.cjs} +15 -18
  18. package/dist/tsup/chunk-FYZLEH57.cjs.map +1 -0
  19. package/dist/tsup/{chunk-UORP3ABY.cjs → chunk-G7YZSSWV.cjs} +6 -6
  20. package/dist/tsup/{chunk-UORP3ABY.cjs.map → chunk-G7YZSSWV.cjs.map} +1 -1
  21. package/dist/tsup/{chunk-E6MTJS4R.js → chunk-GUH2PNPG.js} +3 -3
  22. package/dist/tsup/{chunk-3ZTRZIA5.js → chunk-KSQQU7NC.js} +5 -5
  23. package/dist/tsup/chunk-KSQQU7NC.js.map +1 -0
  24. package/dist/tsup/{chunk-N6VIFATJ.cjs → chunk-LZADH4QA.cjs} +10 -10
  25. package/dist/tsup/{chunk-N6VIFATJ.cjs.map → chunk-LZADH4QA.cjs.map} +1 -1
  26. package/dist/tsup/{chunk-X4OVVIPR.cjs → chunk-QC4AE54W.cjs} +3 -3
  27. package/dist/tsup/{chunk-X4OVVIPR.cjs.map → chunk-QC4AE54W.cjs.map} +1 -1
  28. package/dist/tsup/{chunk-WJKKE5CN.cjs → chunk-TJ2PJ5C7.cjs} +3 -3
  29. package/dist/tsup/{chunk-WJKKE5CN.cjs.map → chunk-TJ2PJ5C7.cjs.map} +1 -1
  30. package/dist/tsup/{chunk-6ZAGP4Y3.js → chunk-VRZNWBDK.js} +8 -11
  31. package/dist/tsup/{chunk-6ZAGP4Y3.js.map → chunk-VRZNWBDK.js.map} +1 -1
  32. package/dist/tsup/{chunk-NEM3XQSZ.cjs → chunk-XNKWXMIT.cjs} +199 -209
  33. package/dist/tsup/chunk-XNKWXMIT.cjs.map +1 -0
  34. package/dist/tsup/{chunk-WIFZEE5R.js → chunk-XU4GGB6J.js} +30 -31
  35. package/dist/tsup/chunk-XU4GGB6J.js.map +1 -0
  36. package/dist/tsup/client/mod.cjs +8 -8
  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 +7 -7
  40. package/dist/tsup/common/log.cjs +2 -2
  41. package/dist/tsup/common/log.d.cts +1 -9
  42. package/dist/tsup/common/log.d.ts +1 -9
  43. package/dist/tsup/common/log.js +1 -1
  44. package/dist/tsup/common/websocket.cjs +3 -3
  45. package/dist/tsup/common/websocket.js +2 -2
  46. package/dist/tsup/{config-DdCBN35E.d.cts → config-BRDYDraU.d.cts} +880 -295
  47. package/dist/tsup/{config-B7x9hjVu.d.ts → config-Bo-blHpJ.d.ts} +880 -295
  48. package/dist/tsup/driver-helpers/mod.cjs +4 -4
  49. package/dist/tsup/driver-helpers/mod.d.cts +1 -1
  50. package/dist/tsup/driver-helpers/mod.d.ts +1 -1
  51. package/dist/tsup/driver-helpers/mod.js +3 -3
  52. package/dist/tsup/driver-test-suite/mod.cjs +71 -71
  53. package/dist/tsup/driver-test-suite/mod.d.cts +1 -1
  54. package/dist/tsup/driver-test-suite/mod.d.ts +1 -1
  55. package/dist/tsup/driver-test-suite/mod.js +10 -10
  56. package/dist/tsup/inspector/mod.cjs +5 -5
  57. package/dist/tsup/inspector/mod.d.cts +4 -4
  58. package/dist/tsup/inspector/mod.d.ts +4 -4
  59. package/dist/tsup/inspector/mod.js +4 -4
  60. package/dist/tsup/mod.cjs +9 -9
  61. package/dist/tsup/mod.d.cts +2 -2
  62. package/dist/tsup/mod.d.ts +2 -2
  63. package/dist/tsup/mod.js +8 -8
  64. package/dist/tsup/test/mod.cjs +10 -10
  65. package/dist/tsup/test/mod.d.cts +1 -1
  66. package/dist/tsup/test/mod.d.ts +1 -1
  67. package/dist/tsup/test/mod.js +9 -9
  68. package/dist/tsup/utils.cjs +2 -2
  69. package/dist/tsup/utils.js +1 -1
  70. package/package.json +5 -5
  71. package/src/actor/config.ts +20 -21
  72. package/src/actor/instance/state-manager.ts +2 -12
  73. package/src/client/config.ts +1 -1
  74. package/src/drivers/engine/config.ts +3 -6
  75. package/src/inspector/config.ts +2 -1
  76. package/src/manager/router-schema.ts +7 -7
  77. package/src/registry/run-config.ts +5 -9
  78. package/src/remote-manager-driver/actor-http-client.ts +1 -1
  79. package/src/test/config.ts +12 -13
  80. package/dist/tsup/chunk-3ZTRZIA5.js.map +0 -1
  81. package/dist/tsup/chunk-CFMLY3P6.cjs.map +0 -1
  82. package/dist/tsup/chunk-K5JMIH4N.js.map +0 -1
  83. package/dist/tsup/chunk-NEM3XQSZ.cjs.map +0 -1
  84. package/dist/tsup/chunk-NFQAYLE5.js.map +0 -1
  85. package/dist/tsup/chunk-SWFPKHMT.cjs.map +0 -1
  86. package/dist/tsup/chunk-WIFZEE5R.js.map +0 -1
  87. package/dist/tsup/chunk-Z2YB6STQ.cjs.map +0 -1
  88. /package/dist/tsup/{chunk-EX6XY7A4.js.map → chunk-2NNICHGY.js.map} +0 -0
  89. /package/dist/tsup/{chunk-GMQ44WPZ.js.map → chunk-6F2NCX7R.js.map} +0 -0
  90. /package/dist/tsup/{chunk-ZX3AUO3B.js.map → chunk-C3UREFUI.js.map} +0 -0
  91. /package/dist/tsup/{chunk-AYDCXNX6.js.map → chunk-D7A47BVR.js.map} +0 -0
  92. /package/dist/tsup/{chunk-E6MTJS4R.js.map → chunk-GUH2PNPG.js.map} +0 -0
@@ -3,18 +3,18 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkN6VIFATJcjs = require('./chunk-N6VIFATJ.cjs');
6
+ var _chunkLZADH4QAcjs = require('./chunk-LZADH4QA.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkWJKKE5CNcjs = require('./chunk-WJKKE5CN.cjs');
10
+ var _chunkTJ2PJ5C7cjs = require('./chunk-TJ2PJ5C7.cjs');
11
11
 
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
- var _chunkCFMLY3P6cjs = require('./chunk-CFMLY3P6.cjs');
17
+ var _chunk2TZH6VO6cjs = require('./chunk-2TZH6VO6.cjs');
18
18
 
19
19
 
20
20
 
@@ -37,7 +37,7 @@ var _chunkCFMLY3P6cjs = require('./chunk-CFMLY3P6.cjs');
37
37
 
38
38
 
39
39
 
40
- var _chunkZIAFEFUKcjs = require('./chunk-ZIAFEFUK.cjs');
40
+ var _chunkDRJCTDDTcjs = require('./chunk-DRJCTDDT.cjs');
41
41
 
42
42
 
43
43
 
@@ -55,7 +55,7 @@ var _chunkZIAFEFUKcjs = require('./chunk-ZIAFEFUK.cjs');
55
55
 
56
56
 
57
57
 
58
- var _chunk77UIPJTDcjs = require('./chunk-77UIPJTD.cjs');
58
+ var _chunkF3SQLO3Xcjs = require('./chunk-F3SQLO3X.cjs');
59
59
 
60
60
 
61
61
 
@@ -102,7 +102,7 @@ function createActorInspectorRouter() {
102
102
  "/state",
103
103
  _standardvalidator.sValidator.call(void 0,
104
104
  "json",
105
- _v42.default.object({ patch: _chunkN6VIFATJcjs.PatchSchema }).or(_v42.default.object({ replace: _v42.default.any() }))
105
+ _v42.default.object({ patch: _chunkLZADH4QAcjs.PatchSchema }).or(_v42.default.object({ replace: _v42.default.any() }))
106
106
  ),
107
107
  async (c) => {
108
108
  if (!await c.var.inspector.accessors.isStateEnabled()) {
@@ -152,7 +152,7 @@ function createActorInspectorRouter() {
152
152
  });
153
153
  }
154
154
  );
155
- const { promise } = _chunk77UIPJTDcjs.promiseWithResolvers.call(void 0, );
155
+ const { promise } = _chunkF3SQLO3Xcjs.promiseWithResolvers.call(void 0, );
156
156
  return promise;
157
157
  },
158
158
  async () => {
@@ -180,7 +180,7 @@ function createActorInspectorRouter() {
180
180
  });
181
181
  }
182
182
  );
183
- const { promise } = _chunk77UIPJTDcjs.promiseWithResolvers.call(void 0, );
183
+ const { promise } = _chunkF3SQLO3Xcjs.promiseWithResolvers.call(void 0, );
184
184
  return promise;
185
185
  },
186
186
  async () => {
@@ -208,7 +208,7 @@ function createActorInspectorRouter() {
208
208
  id: String(id++)
209
209
  });
210
210
  });
211
- const { promise } = _chunk77UIPJTDcjs.promiseWithResolvers.call(void 0, );
211
+ const { promise } = _chunkF3SQLO3Xcjs.promiseWithResolvers.call(void 0, );
212
212
  return promise;
213
213
  },
214
214
  async () => {
@@ -224,7 +224,7 @@ function createActorInspectorRouter() {
224
224
  }
225
225
  const db = await c.var.inspector.accessors.getDb();
226
226
  const rows = await db.execute(`PRAGMA table_list`);
227
- const tables = _chunkN6VIFATJcjs.TablesSchema.parse(rows).filter(
227
+ const tables = _chunkLZADH4QAcjs.TablesSchema.parse(rows).filter(
228
228
  (table) => table.schema !== "temp" && !table.name.startsWith("sqlite_")
229
229
  );
230
230
  const tablesInfo = await Promise.all(
@@ -232,14 +232,14 @@ function createActorInspectorRouter() {
232
232
  (table) => db.execute(`PRAGMA table_info(${table.name})`)
233
233
  )
234
234
  );
235
- const columns = tablesInfo.map((def) => _chunkN6VIFATJcjs.ColumnsSchema.parse(def));
235
+ const columns = tablesInfo.map((def) => _chunkLZADH4QAcjs.ColumnsSchema.parse(def));
236
236
  const foreignKeysList = await Promise.all(
237
237
  tables.map(
238
238
  (table) => db.execute(`PRAGMA foreign_key_list(${table.name})`)
239
239
  )
240
240
  );
241
241
  const foreignKeys = foreignKeysList.map(
242
- (def) => _chunkN6VIFATJcjs.ForeignKeysSchema.parse(def)
242
+ (def) => _chunkLZADH4QAcjs.ForeignKeysSchema.parse(def)
243
243
  );
244
244
  const countInfo = await Promise.all(
245
245
  tables.map(
@@ -672,43 +672,43 @@ migrations.set(1, (v1Data) => {
672
672
  }
673
673
  return v1Data;
674
674
  });
675
- var TO_SERVER_VERSIONED = _chunkCFMLY3P6cjs.createVersionedDataHandler.call(void 0, {
675
+ var TO_SERVER_VERSIONED = _chunk2TZH6VO6cjs.createVersionedDataHandler.call(void 0, {
676
676
  currentVersion: CURRENT_VERSION,
677
677
  migrations,
678
678
  serializeVersion: (data) => encodeToServer(data),
679
679
  deserializeVersion: (bytes) => decodeToServer(bytes)
680
680
  });
681
- var TO_CLIENT_VERSIONED = _chunkCFMLY3P6cjs.createVersionedDataHandler.call(void 0, {
681
+ var TO_CLIENT_VERSIONED = _chunk2TZH6VO6cjs.createVersionedDataHandler.call(void 0, {
682
682
  currentVersion: CURRENT_VERSION,
683
683
  migrations,
684
684
  serializeVersion: (data) => encodeToClient(data),
685
685
  deserializeVersion: (bytes) => decodeToClient(bytes)
686
686
  });
687
- var HTTP_ACTION_REQUEST_VERSIONED = _chunkCFMLY3P6cjs.createVersionedDataHandler.call(void 0, {
687
+ var HTTP_ACTION_REQUEST_VERSIONED = _chunk2TZH6VO6cjs.createVersionedDataHandler.call(void 0, {
688
688
  currentVersion: CURRENT_VERSION,
689
689
  migrations,
690
690
  serializeVersion: (data) => encodeHttpActionRequest(data),
691
691
  deserializeVersion: (bytes) => decodeHttpActionRequest(bytes)
692
692
  });
693
- var HTTP_ACTION_RESPONSE_VERSIONED = _chunkCFMLY3P6cjs.createVersionedDataHandler.call(void 0, {
693
+ var HTTP_ACTION_RESPONSE_VERSIONED = _chunk2TZH6VO6cjs.createVersionedDataHandler.call(void 0, {
694
694
  currentVersion: CURRENT_VERSION,
695
695
  migrations,
696
696
  serializeVersion: (data) => encodeHttpActionResponse(data),
697
697
  deserializeVersion: (bytes) => decodeHttpActionResponse(bytes)
698
698
  });
699
- var HTTP_RESPONSE_ERROR_VERSIONED = _chunkCFMLY3P6cjs.createVersionedDataHandler.call(void 0, {
699
+ var HTTP_RESPONSE_ERROR_VERSIONED = _chunk2TZH6VO6cjs.createVersionedDataHandler.call(void 0, {
700
700
  currentVersion: CURRENT_VERSION,
701
701
  migrations,
702
702
  serializeVersion: (data) => encodeHttpResponseError(data),
703
703
  deserializeVersion: (bytes) => decodeHttpResponseError(bytes)
704
704
  });
705
- var HTTP_RESOLVE_REQUEST_VERSIONED = _chunkCFMLY3P6cjs.createVersionedDataHandler.call(void 0, {
705
+ var HTTP_RESOLVE_REQUEST_VERSIONED = _chunk2TZH6VO6cjs.createVersionedDataHandler.call(void 0, {
706
706
  currentVersion: CURRENT_VERSION,
707
707
  migrations,
708
708
  serializeVersion: (_) => new Uint8Array(),
709
709
  deserializeVersion: (bytes) => null
710
710
  });
711
- var HTTP_RESOLVE_RESPONSE_VERSIONED = _chunkCFMLY3P6cjs.createVersionedDataHandler.call(void 0, {
711
+ var HTTP_RESOLVE_RESPONSE_VERSIONED = _chunk2TZH6VO6cjs.createVersionedDataHandler.call(void 0, {
712
712
  currentVersion: CURRENT_VERSION,
713
713
  migrations,
714
714
  serializeVersion: (data) => encodeHttpResolveResponse(data),
@@ -812,7 +812,7 @@ var StateManager = class {
812
812
  hibernatable: { data: persist, dataRaw: persistRaw }
813
813
  };
814
814
  } else {
815
- _chunkZIAFEFUKcjs.assertUnreachable.call(void 0, data);
815
+ _chunkDRJCTDDTcjs.assertUnreachable.call(void 0, data);
816
816
  }
817
817
  }
818
818
  /**
@@ -827,7 +827,7 @@ var StateManager = class {
827
827
  } else if ("ephemeral" in this.#data) {
828
828
  return this.#data.ephemeral.data;
829
829
  } else {
830
- return _chunkZIAFEFUKcjs.assertUnreachable.call(void 0, this.#data);
830
+ return _chunkDRJCTDDTcjs.assertUnreachable.call(void 0, this.#data);
831
831
  }
832
832
  }
833
833
  get hibernatableData() {
@@ -870,7 +870,7 @@ var StateManager = class {
870
870
  #handleChange(path, value) {
871
871
  if (path.startsWith("state")) {
872
872
  let invalidPath = "";
873
- if (!_chunk77UIPJTDcjs.isCborSerializable.call(void 0,
873
+ if (!_chunkF3SQLO3Xcjs.isCborSerializable.call(void 0,
874
874
  value,
875
875
  (invalidPathPart) => {
876
876
  invalidPath = invalidPathPart;
@@ -1041,7 +1041,7 @@ var Conn = (_class2 = class {
1041
1041
  });
1042
1042
  const eventData = { name: eventName, args };
1043
1043
  this[CONN_SEND_MESSAGE_SYMBOL](
1044
- new (0, _chunkZIAFEFUKcjs.CachedSerializer)(
1044
+ new (0, _chunkDRJCTDDTcjs.CachedSerializer)(
1045
1045
  eventData,
1046
1046
  TO_CLIENT_VERSIONED,
1047
1047
  ToClientSchema,
@@ -1061,7 +1061,7 @@ var Conn = (_class2 = class {
1061
1061
  tag: "Event",
1062
1062
  val: {
1063
1063
  name: value.name,
1064
- args: _chunk77UIPJTDcjs.bufferToArrayBuffer.call(void 0, cbor.encode(value.args))
1064
+ args: _chunkF3SQLO3Xcjs.bufferToArrayBuffer.call(void 0, cbor.encode(value.args))
1065
1065
  }
1066
1066
  }
1067
1067
  })
@@ -1100,8 +1100,8 @@ var Conn = (_class2 = class {
1100
1100
  function convertConnToBarePersistedConn(persist) {
1101
1101
  return {
1102
1102
  id: persist.id,
1103
- parameters: _chunk77UIPJTDcjs.bufferToArrayBuffer.call(void 0, cbor2.encode(persist.parameters)),
1104
- state: _chunk77UIPJTDcjs.bufferToArrayBuffer.call(void 0, cbor2.encode(persist.state)),
1103
+ parameters: _chunkF3SQLO3Xcjs.bufferToArrayBuffer.call(void 0, cbor2.encode(persist.parameters)),
1104
+ state: _chunkF3SQLO3Xcjs.bufferToArrayBuffer.call(void 0, cbor2.encode(persist.state)),
1105
1105
  subscriptions: persist.subscriptions.map((sub) => ({
1106
1106
  eventName: sub.eventName
1107
1107
  })),
@@ -1370,7 +1370,7 @@ function getValueLength(value) {
1370
1370
  } else if (value instanceof ArrayBuffer || value instanceof SharedArrayBuffer || value instanceof Uint8Array) {
1371
1371
  return value.byteLength;
1372
1372
  } else {
1373
- _chunk77UIPJTDcjs.assertUnreachable.call(void 0, value);
1373
+ _chunkF3SQLO3Xcjs.assertUnreachable.call(void 0, value);
1374
1374
  }
1375
1375
  }
1376
1376
  async function inputDataToBuffer(data) {
@@ -1396,7 +1396,7 @@ async function parseMessage(value, opts) {
1396
1396
  if (buffer instanceof Buffer) {
1397
1397
  buffer = new Uint8Array(buffer);
1398
1398
  }
1399
- return _chunkZIAFEFUKcjs.deserializeWithEncoding.call(void 0,
1399
+ return _chunkDRJCTDDTcjs.deserializeWithEncoding.call(void 0,
1400
1400
  opts.encoding,
1401
1401
  buffer,
1402
1402
  TO_SERVER_VERSIONED,
@@ -1454,7 +1454,7 @@ async function processMessage(message, actor, conn, handler) {
1454
1454
  isPromise: output instanceof Promise
1455
1455
  });
1456
1456
  conn[CONN_SEND_MESSAGE_SYMBOL](
1457
- new (0, _chunkZIAFEFUKcjs.CachedSerializer)(
1457
+ new (0, _chunkDRJCTDDTcjs.CachedSerializer)(
1458
1458
  output,
1459
1459
  TO_CLIENT_VERSIONED,
1460
1460
  ToClientSchema,
@@ -1474,7 +1474,7 @@ async function processMessage(message, actor, conn, handler) {
1474
1474
  tag: "ActionResponse",
1475
1475
  val: {
1476
1476
  id,
1477
- output: _chunk77UIPJTDcjs.bufferToArrayBuffer.call(void 0, cbor3.encode(value))
1477
+ output: _chunkF3SQLO3Xcjs.bufferToArrayBuffer.call(void 0, cbor3.encode(value))
1478
1478
  }
1479
1479
  }
1480
1480
  })
@@ -1502,10 +1502,10 @@ async function processMessage(message, actor, conn, handler) {
1502
1502
  subscribe
1503
1503
  });
1504
1504
  } else {
1505
- _chunk77UIPJTDcjs.assertUnreachable.call(void 0, message.body);
1505
+ _chunkF3SQLO3Xcjs.assertUnreachable.call(void 0, message.body);
1506
1506
  }
1507
1507
  } catch (error) {
1508
- const { group, code, message: message2, metadata } = _chunk77UIPJTDcjs.deconstructError.call(void 0,
1508
+ const { group, code, message: message2, metadata } = _chunkF3SQLO3Xcjs.deconstructError.call(void 0,
1509
1509
  error,
1510
1510
  actor.rLog,
1511
1511
  {
@@ -1523,7 +1523,7 @@ async function processMessage(message, actor, conn, handler) {
1523
1523
  });
1524
1524
  const errorData = { group, code, message: message2, metadata, actionId };
1525
1525
  conn[CONN_SEND_MESSAGE_SYMBOL](
1526
- new (0, _chunkZIAFEFUKcjs.CachedSerializer)(
1526
+ new (0, _chunkDRJCTDDTcjs.CachedSerializer)(
1527
1527
  errorData,
1528
1528
  TO_CLIENT_VERSIONED,
1529
1529
  ToClientSchema,
@@ -1554,7 +1554,7 @@ async function processMessage(message, actor, conn, handler) {
1554
1554
  group: value.group,
1555
1555
  code: value.code,
1556
1556
  message: value.message,
1557
- metadata: value.metadata ? _chunk77UIPJTDcjs.bufferToArrayBuffer.call(void 0,
1557
+ metadata: value.metadata ? _chunkF3SQLO3Xcjs.bufferToArrayBuffer.call(void 0,
1558
1558
  cbor3.encode(value.metadata)
1559
1559
  ) : null,
1560
1560
  actionId: value.actionId !== void 0 ? value.actionId : null
@@ -1724,7 +1724,7 @@ var ConnectionManager = class {
1724
1724
  if (conn[CONN_SPEAKS_RIVETKIT_SYMBOL]) {
1725
1725
  const initData = { actorId: this.#actor.id, connectionId: conn.id };
1726
1726
  conn[CONN_SEND_MESSAGE_SYMBOL](
1727
- new (0, _chunkZIAFEFUKcjs.CachedSerializer)(
1727
+ new (0, _chunkDRJCTDDTcjs.CachedSerializer)(
1728
1728
  initData,
1729
1729
  TO_CLIENT_VERSIONED,
1730
1730
  ToClientSchema,
@@ -1805,20 +1805,20 @@ var ConnectionManager = class {
1805
1805
  result.catch((error) => {
1806
1806
  this.#actor.rLog.error({
1807
1807
  msg: "error in `onDisconnect`",
1808
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
1808
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
1809
1809
  });
1810
1810
  });
1811
1811
  }
1812
1812
  } catch (error) {
1813
1813
  this.#actor.rLog.error({
1814
1814
  msg: "error in `onDisconnect`",
1815
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
1815
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
1816
1816
  });
1817
1817
  }
1818
1818
  }
1819
1819
  this.#connsWithPersistChanged.delete(conn.id);
1820
1820
  if (conn.isHibernatable) {
1821
- const key = _chunkCFMLY3P6cjs.makeConnKey.call(void 0, conn.id);
1821
+ const key = _chunk2TZH6VO6cjs.makeConnKey.call(void 0, conn.id);
1822
1822
  try {
1823
1823
  await this.#actor.driver.kvBatchDelete(this.#actor.id, [key]);
1824
1824
  this.#actor.rLog.debug({
@@ -1828,7 +1828,7 @@ var ConnectionManager = class {
1828
1828
  } catch (err) {
1829
1829
  this.#actor.rLog.error({
1830
1830
  msg: "kvBatchDelete failed for conn",
1831
- err: _chunk77UIPJTDcjs.stringifyError.call(void 0, err)
1831
+ err: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, err)
1832
1832
  });
1833
1833
  }
1834
1834
  }
@@ -1876,7 +1876,7 @@ var ConnectionManager = class {
1876
1876
  return Array.from(this.#connections.values()).find((conn) => {
1877
1877
  const connStateManager = conn[CONN_STATE_MANAGER_SYMBOL];
1878
1878
  const h = connStateManager.hibernatableDataRaw;
1879
- return h && _chunk77UIPJTDcjs.arrayBuffersEqual.call(void 0, h.gatewayId, gatewayIdBuf) && _chunk77UIPJTDcjs.arrayBuffersEqual.call(void 0, h.requestId, requestIdBuf);
1879
+ return h && _chunkF3SQLO3Xcjs.arrayBuffersEqual.call(void 0, h.gatewayId, gatewayIdBuf) && _chunkF3SQLO3Xcjs.arrayBuffersEqual.call(void 0, h.requestId, requestIdBuf);
1880
1880
  });
1881
1881
  }
1882
1882
  async #createConnState(params, request) {
@@ -1887,7 +1887,7 @@ var ConnectionManager = class {
1887
1887
  params
1888
1888
  );
1889
1889
  if (dataOrPromise instanceof Promise) {
1890
- return await _chunkZIAFEFUKcjs.deadline.call(void 0,
1890
+ return await _chunkDRJCTDDTcjs.deadline.call(void 0,
1891
1891
  dataOrPromise,
1892
1892
  this.#actor.config.options.createConnStateTimeout
1893
1893
  );
@@ -1906,7 +1906,7 @@ var ConnectionManager = class {
1906
1906
  const ctx = new OnConnectContext(this.#actor, conn);
1907
1907
  const result = this.#actor.config.onConnect(ctx, conn);
1908
1908
  if (result instanceof Promise) {
1909
- _chunkZIAFEFUKcjs.deadline.call(void 0,
1909
+ _chunkDRJCTDDTcjs.deadline.call(void 0,
1910
1910
  result,
1911
1911
  this.#actor.config.options.onConnectTimeout
1912
1912
  ).catch((error) => {
@@ -1920,7 +1920,7 @@ var ConnectionManager = class {
1920
1920
  } catch (error) {
1921
1921
  this.#actor.rLog.error({
1922
1922
  msg: "error in `onConnect`",
1923
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
1923
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
1924
1924
  });
1925
1925
  conn == null ? void 0 : conn.disconnect("`onConnect` failed");
1926
1926
  }
@@ -2037,7 +2037,7 @@ var EventManager = class {
2037
2037
  return;
2038
2038
  }
2039
2039
  const eventData = { name, args };
2040
- const toClientSerializer = new (0, _chunkZIAFEFUKcjs.CachedSerializer)(
2040
+ const toClientSerializer = new (0, _chunkDRJCTDDTcjs.CachedSerializer)(
2041
2041
  eventData,
2042
2042
  TO_CLIENT_VERSIONED,
2043
2043
  ToClientSchema,
@@ -2057,7 +2057,7 @@ var EventManager = class {
2057
2057
  tag: "Event",
2058
2058
  val: {
2059
2059
  name: value.name,
2060
- args: _chunk77UIPJTDcjs.bufferToArrayBuffer.call(void 0, cbor4.encode(value.args))
2060
+ args: _chunkF3SQLO3Xcjs.bufferToArrayBuffer.call(void 0, cbor4.encode(value.args))
2061
2061
  }
2062
2062
  }
2063
2063
  })
@@ -2149,9 +2149,9 @@ var EventManager = class {
2149
2149
 
2150
2150
  function convertActorToBarePersisted(persist) {
2151
2151
  return {
2152
- input: persist.input !== void 0 ? _chunk77UIPJTDcjs.bufferToArrayBuffer.call(void 0, cbor5.encode(persist.input)) : null,
2152
+ input: persist.input !== void 0 ? _chunkF3SQLO3Xcjs.bufferToArrayBuffer.call(void 0, cbor5.encode(persist.input)) : null,
2153
2153
  hasInitialized: persist.hasInitialized,
2154
- state: _chunk77UIPJTDcjs.bufferToArrayBuffer.call(void 0, cbor5.encode(persist.state)),
2154
+ state: _chunkF3SQLO3Xcjs.bufferToArrayBuffer.call(void 0, cbor5.encode(persist.state)),
2155
2155
  scheduledEvents: persist.scheduledEvents.map((event) => ({
2156
2156
  eventId: event.eventId,
2157
2157
  timestamp: BigInt(event.timestamp),
@@ -2179,7 +2179,7 @@ function convertActorFromBarePersisted(bareData) {
2179
2179
  var ScheduleManager = class {
2180
2180
  #actor;
2181
2181
  #actorDriver;
2182
- #alarmWriteQueue = new (0, _chunk77UIPJTDcjs.SinglePromiseQueue)();
2182
+ #alarmWriteQueue = new (0, _chunkF3SQLO3Xcjs.SinglePromiseQueue)();
2183
2183
  #config;
2184
2184
  // ActorConfig type
2185
2185
  #persist;
@@ -2209,7 +2209,7 @@ var ScheduleManager = class {
2209
2209
  eventId: crypto.randomUUID(),
2210
2210
  timestamp,
2211
2211
  action,
2212
- args: _chunk77UIPJTDcjs.bufferToArrayBuffer.call(void 0, cbor6.encode(args))
2212
+ args: _chunkF3SQLO3Xcjs.bufferToArrayBuffer.call(void 0, cbor6.encode(args))
2213
2213
  };
2214
2214
  await this.#scheduleEventInner(newEvent);
2215
2215
  }
@@ -2401,7 +2401,7 @@ var ScheduleManager = class {
2401
2401
  } catch (error) {
2402
2402
  this.#actor.log.error({
2403
2403
  msg: "error executing scheduled event",
2404
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error),
2404
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error),
2405
2405
  eventId: event.eventId,
2406
2406
  timestamp: event.timestamp,
2407
2407
  action: event.action
@@ -2456,7 +2456,7 @@ var StateManager2 = class {
2456
2456
  #persistChanged = false;
2457
2457
  #isInOnStateChange = false;
2458
2458
  // Save management
2459
- #persistWriteQueue = new (0, _chunk77UIPJTDcjs.SinglePromiseQueue)();
2459
+ #persistWriteQueue = new (0, _chunkF3SQLO3Xcjs.SinglePromiseQueue)();
2460
2460
  #lastSaveTime = 0;
2461
2461
  #pendingSaveTimeout;
2462
2462
  #pendingSaveScheduledTimestamp;
@@ -2521,8 +2521,8 @@ var StateManager2 = class {
2521
2521
  const bareData = convertActorToBarePersisted(persistData);
2522
2522
  await this.#actorDriver.kvBatchPut(this.#actor.id, [
2523
2523
  [
2524
- _chunkCFMLY3P6cjs.KEYS.PERSIST_DATA,
2525
- _chunkCFMLY3P6cjs.ACTOR_VERSIONED.serializeWithEmbeddedVersion(bareData)
2524
+ _chunk2TZH6VO6cjs.KEYS.PERSIST_DATA,
2525
+ _chunk2TZH6VO6cjs.ACTOR_VERSIONED.serializeWithEmbeddedVersion(bareData)
2526
2526
  ]
2527
2527
  ]);
2528
2528
  }
@@ -2535,7 +2535,7 @@ var StateManager2 = class {
2535
2535
  this.#persistRaw = target;
2536
2536
  if (target === null || typeof target !== "object") {
2537
2537
  let invalidPath = "";
2538
- if (!_chunk77UIPJTDcjs.isCborSerializable.call(void 0,
2538
+ if (!_chunkF3SQLO3Xcjs.isCborSerializable.call(void 0,
2539
2539
  target,
2540
2540
  (path) => {
2541
2541
  invalidPath = path;
@@ -2569,7 +2569,7 @@ var StateManager2 = class {
2569
2569
  await this.#savePersistInner();
2570
2570
  } else {
2571
2571
  if (!this.#onPersistSavedPromise) {
2572
- this.#onPersistSavedPromise = _chunk77UIPJTDcjs.promiseWithResolvers.call(void 0, );
2572
+ this.#onPersistSavedPromise = _chunkF3SQLO3Xcjs.promiseWithResolvers.call(void 0, );
2573
2573
  }
2574
2574
  this.savePersistThrottled(opts.maxWait);
2575
2575
  await ((_a = this.#onPersistSavedPromise) == null ? void 0 : _a.promise);
@@ -2607,20 +2607,10 @@ var StateManager2 = class {
2607
2607
  this.#pendingSaveTimeout = setTimeout(() => {
2608
2608
  this.#pendingSaveTimeout = void 0;
2609
2609
  this.#pendingSaveScheduledTimestamp = void 0;
2610
- this.#savePersistInner().catch((error) => {
2611
- this.#actor.rLog.error({
2612
- msg: "error saving persist data in scheduled save",
2613
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
2614
- });
2615
- });
2610
+ this.#savePersistInner();
2616
2611
  }, saveDelay);
2617
2612
  } else {
2618
- this.#savePersistInner().catch((error) => {
2619
- this.#actor.rLog.error({
2620
- msg: "error saving persist data immediately",
2621
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
2622
- });
2623
- });
2613
+ this.#savePersistInner();
2624
2614
  }
2625
2615
  }
2626
2616
  /**
@@ -2648,11 +2638,11 @@ var StateManager2 = class {
2648
2638
  }
2649
2639
  }
2650
2640
  #handleStateChange(path, value) {
2651
- const actorStatePath = _chunkZIAFEFUKcjs.isStatePath.call(void 0, path);
2652
- const connStatePath = _chunkZIAFEFUKcjs.isConnStatePath.call(void 0, path);
2641
+ const actorStatePath = _chunkDRJCTDDTcjs.isStatePath.call(void 0, path);
2642
+ const connStatePath = _chunkDRJCTDDTcjs.isConnStatePath.call(void 0, path);
2653
2643
  if (actorStatePath || connStatePath) {
2654
2644
  let invalidPath = "";
2655
- if (!_chunk77UIPJTDcjs.isCborSerializable.call(void 0,
2645
+ if (!_chunkF3SQLO3Xcjs.isCborSerializable.call(void 0,
2656
2646
  value,
2657
2647
  (invalidPathPart) => {
2658
2648
  invalidPath = invalidPathPart;
@@ -2685,7 +2675,7 @@ var StateManager2 = class {
2685
2675
  } catch (error) {
2686
2676
  this.#actor.rLog.error({
2687
2677
  msg: "error in `_onStateChange`",
2688
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
2678
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
2689
2679
  });
2690
2680
  } finally {
2691
2681
  this.#isInOnStateChange = false;
@@ -2719,8 +2709,8 @@ var StateManager2 = class {
2719
2709
  this.#persistRaw
2720
2710
  );
2721
2711
  entries.push([
2722
- _chunkCFMLY3P6cjs.KEYS.PERSIST_DATA,
2723
- _chunkCFMLY3P6cjs.ACTOR_VERSIONED.serializeWithEmbeddedVersion(
2712
+ _chunk2TZH6VO6cjs.KEYS.PERSIST_DATA,
2713
+ _chunk2TZH6VO6cjs.ACTOR_VERSIONED.serializeWithEmbeddedVersion(
2724
2714
  bareData
2725
2715
  )
2726
2716
  ]);
@@ -2756,10 +2746,10 @@ var StateManager2 = class {
2756
2746
  const bareData = convertConnToBarePersistedConn(
2757
2747
  hibernatableDataRaw
2758
2748
  );
2759
- const connData = _chunkCFMLY3P6cjs.CONN_VERSIONED.serializeWithEmbeddedVersion(
2749
+ const connData = _chunk2TZH6VO6cjs.CONN_VERSIONED.serializeWithEmbeddedVersion(
2760
2750
  bareData
2761
2751
  );
2762
- entries.push([_chunkCFMLY3P6cjs.makeConnKey.call(void 0, connId), connData]);
2752
+ entries.push([_chunk2TZH6VO6cjs.makeConnKey.call(void 0, connId), connData]);
2763
2753
  connections.push(conn);
2764
2754
  }
2765
2755
  this.#actor.rLog.info({
@@ -2799,7 +2789,7 @@ var StateManager2 = class {
2799
2789
  } catch (error) {
2800
2790
  this.#actor.rLog.error({
2801
2791
  msg: "error saving persist",
2802
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
2792
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
2803
2793
  });
2804
2794
  (_b = this.#onPersistSavedPromise) == null ? void 0 : _b.reject(error);
2805
2795
  throw error;
@@ -3078,7 +3068,7 @@ var ActorInstance = class {
3078
3068
  } else if (mode === "destroy") {
3079
3069
  await this.#callOnDestroy();
3080
3070
  } else {
3081
- _chunkZIAFEFUKcjs.assertUnreachable.call(void 0, mode);
3071
+ _chunkDRJCTDDTcjs.assertUnreachable.call(void 0, mode);
3082
3072
  }
3083
3073
  await this.#disconnectConnections();
3084
3074
  await this.#waitBackgroundPromises(
@@ -3153,7 +3143,7 @@ var ActorInstance = class {
3153
3143
  this.#activeHonoHttpRequests = 0;
3154
3144
  this.#rLog.warn({
3155
3145
  msg: "active hono requests went below 0, this is a RivetKit bug",
3156
- ..._chunk77UIPJTDcjs.EXTRA_ERROR_LOG
3146
+ ..._chunkF3SQLO3Xcjs.EXTRA_ERROR_LOG
3157
3147
  });
3158
3148
  }
3159
3149
  this.resetSleepTimer();
@@ -3217,7 +3207,7 @@ var ActorInstance = class {
3217
3207
  );
3218
3208
  let output;
3219
3209
  if (outputOrPromise instanceof Promise) {
3220
- output = await _chunkZIAFEFUKcjs.deadline.call(void 0,
3210
+ output = await _chunkDRJCTDDTcjs.deadline.call(void 0,
3221
3211
  outputOrPromise,
3222
3212
  this.#config.options.actionTimeout
3223
3213
  );
@@ -3240,19 +3230,19 @@ var ActorInstance = class {
3240
3230
  } catch (error) {
3241
3231
  this.#rLog.error({
3242
3232
  msg: "error in `onBeforeActionResponse`",
3243
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
3233
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
3244
3234
  });
3245
3235
  }
3246
3236
  }
3247
3237
  return output;
3248
3238
  } catch (error) {
3249
- if (error instanceof _chunkZIAFEFUKcjs.DeadlineError) {
3239
+ if (error instanceof _chunkDRJCTDDTcjs.DeadlineError) {
3250
3240
  throw new (0, _chunkXJMYGATEcjs.ActionTimedOut)();
3251
3241
  }
3252
3242
  this.#rLog.error({
3253
3243
  msg: "action error",
3254
3244
  actionName,
3255
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
3245
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
3256
3246
  });
3257
3247
  throw error;
3258
3248
  } finally {
@@ -3275,7 +3265,7 @@ var ActorInstance = class {
3275
3265
  } catch (error) {
3276
3266
  this.#rLog.error({
3277
3267
  msg: "onRequest error",
3278
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
3268
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
3279
3269
  });
3280
3270
  throw error;
3281
3271
  } finally {
@@ -3301,7 +3291,7 @@ var ActorInstance = class {
3301
3291
  } catch (error) {
3302
3292
  this.#rLog.error({
3303
3293
  msg: "onWebSocket error",
3304
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
3294
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
3305
3295
  });
3306
3296
  throw error;
3307
3297
  }
@@ -3322,7 +3312,7 @@ var ActorInstance = class {
3322
3312
  }).catch((error) => {
3323
3313
  this.#rLog.error({
3324
3314
  msg: "wait until promise failed",
3325
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
3315
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
3326
3316
  });
3327
3317
  });
3328
3318
  this.#backgroundPromises.push(nonfailablePromise);
@@ -3337,15 +3327,15 @@ var ActorInstance = class {
3337
3327
  };
3338
3328
  const extraLogParams = (_b = (_a = this.driver).getExtraActorLogParams) == null ? void 0 : _b.call(_a);
3339
3329
  if (extraLogParams) Object.assign(logParams, extraLogParams);
3340
- this.#log = _chunk77UIPJTDcjs.getBaseLogger.call(void 0, ).child(
3330
+ this.#log = _chunkF3SQLO3Xcjs.getBaseLogger.call(void 0, ).child(
3341
3331
  Object.assign(
3342
- _chunk77UIPJTDcjs.getIncludeTarget.call(void 0, ) ? { target: "actor" } : {},
3332
+ _chunkF3SQLO3Xcjs.getIncludeTarget.call(void 0, ) ? { target: "actor" } : {},
3343
3333
  logParams
3344
3334
  )
3345
3335
  );
3346
- this.#rLog = _chunk77UIPJTDcjs.getBaseLogger.call(void 0, ).child(
3336
+ this.#rLog = _chunkF3SQLO3Xcjs.getBaseLogger.call(void 0, ).child(
3347
3337
  Object.assign(
3348
- _chunk77UIPJTDcjs.getIncludeTarget.call(void 0, ) ? { target: "actor-runtime" } : {},
3338
+ _chunkF3SQLO3Xcjs.getIncludeTarget.call(void 0, ) ? { target: "actor-runtime" } : {},
3349
3339
  logParams
3350
3340
  )
3351
3341
  );
@@ -3353,13 +3343,13 @@ var ActorInstance = class {
3353
3343
  async #loadState() {
3354
3344
  const [persistDataBuffer] = await this.driver.kvBatchGet(
3355
3345
  this.#actorId,
3356
- [_chunkCFMLY3P6cjs.KEYS.PERSIST_DATA]
3346
+ [_chunk2TZH6VO6cjs.KEYS.PERSIST_DATA]
3357
3347
  );
3358
3348
  _invariant2.default.call(void 0,
3359
3349
  persistDataBuffer !== null,
3360
3350
  "persist data has not been set, it should be set when initialized"
3361
3351
  );
3362
- const bareData = _chunkCFMLY3P6cjs.ACTOR_VERSIONED.deserializeWithEmbeddedVersion(persistDataBuffer);
3352
+ const bareData = _chunk2TZH6VO6cjs.ACTOR_VERSIONED.deserializeWithEmbeddedVersion(persistDataBuffer);
3363
3353
  const persistData = convertActorFromBarePersisted(bareData);
3364
3354
  if (persistData.hasInitialized) {
3365
3355
  await this.#restoreExistingActor(persistData);
@@ -3378,12 +3368,12 @@ var ActorInstance = class {
3378
3368
  async #restoreExistingActor(persistData) {
3379
3369
  const connEntries = await this.driver.kvListPrefix(
3380
3370
  this.#actorId,
3381
- _chunkCFMLY3P6cjs.KEYS.CONN_PREFIX
3371
+ _chunk2TZH6VO6cjs.KEYS.CONN_PREFIX
3382
3372
  );
3383
3373
  const connections = [];
3384
3374
  for (const [_key, value] of connEntries) {
3385
3375
  try {
3386
- const bareData = _chunkCFMLY3P6cjs.CONN_VERSIONED.deserializeWithEmbeddedVersion(
3376
+ const bareData = _chunk2TZH6VO6cjs.CONN_VERSIONED.deserializeWithEmbeddedVersion(
3387
3377
  new Uint8Array(value)
3388
3378
  );
3389
3379
  const conn = convertConnFromBarePersistedConn(bareData);
@@ -3391,7 +3381,7 @@ var ActorInstance = class {
3391
3381
  } catch (error) {
3392
3382
  this.#rLog.error({
3393
3383
  msg: "failed to decode connection",
3394
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
3384
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
3395
3385
  });
3396
3386
  }
3397
3387
  }
@@ -3404,17 +3394,17 @@ var ActorInstance = class {
3404
3394
  }
3405
3395
  async #initializeInspectorToken() {
3406
3396
  const [tokenBuffer] = await this.driver.kvBatchGet(this.#actorId, [
3407
- _chunkCFMLY3P6cjs.KEYS.INSPECTOR_TOKEN
3397
+ _chunk2TZH6VO6cjs.KEYS.INSPECTOR_TOKEN
3408
3398
  ]);
3409
3399
  if (tokenBuffer !== null) {
3410
3400
  const decoder = new TextDecoder();
3411
3401
  this.#inspectorToken = decoder.decode(tokenBuffer);
3412
3402
  this.#rLog.debug({ msg: "loaded existing inspector token" });
3413
3403
  } else {
3414
- this.#inspectorToken = _chunkZIAFEFUKcjs.generateSecureToken.call(void 0, );
3404
+ this.#inspectorToken = _chunkDRJCTDDTcjs.generateSecureToken.call(void 0, );
3415
3405
  const tokenBytes = new TextEncoder().encode(this.#inspectorToken);
3416
3406
  await this.driver.kvBatchPut(this.#actorId, [
3417
- [_chunkCFMLY3P6cjs.KEYS.INSPECTOR_TOKEN, tokenBytes]
3407
+ [_chunk2TZH6VO6cjs.KEYS.INSPECTOR_TOKEN, tokenBytes]
3418
3408
  ]);
3419
3409
  this.#rLog.debug({ msg: "generated new inspector token" });
3420
3410
  }
@@ -3427,7 +3417,7 @@ var ActorInstance = class {
3427
3417
  this.driver.getContext(this.#actorId)
3428
3418
  );
3429
3419
  if (dataOrPromise instanceof Promise) {
3430
- vars = await _chunkZIAFEFUKcjs.deadline.call(void 0,
3420
+ vars = await _chunkDRJCTDDTcjs.deadline.call(void 0,
3431
3421
  dataOrPromise,
3432
3422
  this.#config.options.createVarsTimeout
3433
3423
  );
@@ -3458,16 +3448,16 @@ var ActorInstance = class {
3458
3448
  this.#rLog.debug({ msg: "calling onSleep" });
3459
3449
  const result = this.#config.onSleep(this.actorContext);
3460
3450
  if (result instanceof Promise) {
3461
- await _chunkZIAFEFUKcjs.deadline.call(void 0, result, this.#config.options.onSleepTimeout);
3451
+ await _chunkDRJCTDDTcjs.deadline.call(void 0, result, this.#config.options.onSleepTimeout);
3462
3452
  }
3463
3453
  this.#rLog.debug({ msg: "onSleep completed" });
3464
3454
  } catch (error) {
3465
- if (error instanceof _chunkZIAFEFUKcjs.DeadlineError) {
3455
+ if (error instanceof _chunkDRJCTDDTcjs.DeadlineError) {
3466
3456
  this.#rLog.error({ msg: "onSleep timed out" });
3467
3457
  } else {
3468
3458
  this.#rLog.error({
3469
3459
  msg: "error in onSleep",
3470
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
3460
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
3471
3461
  });
3472
3462
  }
3473
3463
  }
@@ -3479,19 +3469,19 @@ var ActorInstance = class {
3479
3469
  this.#rLog.debug({ msg: "calling onDestroy" });
3480
3470
  const result = this.#config.onDestroy(this.actorContext);
3481
3471
  if (result instanceof Promise) {
3482
- await _chunkZIAFEFUKcjs.deadline.call(void 0,
3472
+ await _chunkDRJCTDDTcjs.deadline.call(void 0,
3483
3473
  result,
3484
3474
  this.#config.options.onDestroyTimeout
3485
3475
  );
3486
3476
  }
3487
3477
  this.#rLog.debug({ msg: "onDestroy completed" });
3488
3478
  } catch (error) {
3489
- if (error instanceof _chunkZIAFEFUKcjs.DeadlineError) {
3479
+ if (error instanceof _chunkDRJCTDDTcjs.DeadlineError) {
3490
3480
  this.#rLog.error({ msg: "onDestroy timed out" });
3491
3481
  } else {
3492
3482
  this.#rLog.error({
3493
3483
  msg: "error in onDestroy",
3494
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
3484
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
3495
3485
  });
3496
3486
  }
3497
3487
  }
@@ -3673,7 +3663,7 @@ var _pretry = require('p-retry'); var _pretry2 = _interopRequireDefault(_pretry)
3673
3663
 
3674
3664
  // src/client/actor-query.ts
3675
3665
  async function queryActor(c, query, managerDriver) {
3676
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({ msg: "querying actor", query: JSON.stringify(query) });
3666
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({ msg: "querying actor", query: JSON.stringify(query) });
3677
3667
  let actorOutput;
3678
3668
  if ("getForId" in query) {
3679
3669
  const output = await managerDriver.getForId({
@@ -3720,7 +3710,7 @@ async function queryActor(c, query, managerDriver) {
3720
3710
  } else {
3721
3711
  throw new (0, _chunkXJMYGATEcjs.InvalidRequest)("Invalid query format");
3722
3712
  }
3723
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({ msg: "actor query result", actorId: actorOutput.actorId });
3713
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({ msg: "actor query result", actorId: actorOutput.actorId });
3724
3714
  return { actorId: actorOutput.actorId };
3725
3715
  }
3726
3716
 
@@ -3770,13 +3760,13 @@ async function rawHttpFetch(driver, actorQuery, params, input, init) {
3770
3760
  }
3771
3761
  try {
3772
3762
  const { actorId } = await queryActor(void 0, actorQuery, driver);
3773
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({ msg: "found actor for raw http", actorId });
3763
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({ msg: "found actor for raw http", actorId });
3774
3764
  _invariant2.default.call(void 0, actorId, "Missing actor ID");
3775
3765
  const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
3776
3766
  const url = new URL(`http://actor/request/${normalizedPath}`);
3777
3767
  const proxyRequestHeaders = new Headers(mergedInit.headers);
3778
3768
  if (params) {
3779
- proxyRequestHeaders.set(_chunkZIAFEFUKcjs.HEADER_CONN_PARAMS, JSON.stringify(params));
3769
+ proxyRequestHeaders.set(_chunkDRJCTDDTcjs.HEADER_CONN_PARAMS, JSON.stringify(params));
3780
3770
  }
3781
3771
  const proxyRequest = new Request(url, {
3782
3772
  ...mergedInit,
@@ -3784,9 +3774,9 @@ async function rawHttpFetch(driver, actorQuery, params, input, init) {
3784
3774
  });
3785
3775
  return driver.sendRequest(actorId, proxyRequest);
3786
3776
  } catch (err) {
3787
- const { group, code, message, metadata } = _chunk77UIPJTDcjs.deconstructError.call(void 0,
3777
+ const { group, code, message, metadata } = _chunkF3SQLO3Xcjs.deconstructError.call(void 0,
3788
3778
  err,
3789
- _chunkWJKKE5CNcjs.logger.call(void 0, ),
3779
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ),
3790
3780
  {},
3791
3781
  true
3792
3782
  );
@@ -3796,7 +3786,7 @@ async function rawHttpFetch(driver, actorQuery, params, input, init) {
3796
3786
  async function rawWebSocket(driver, actorQuery, params, path, protocols) {
3797
3787
  const encoding = "bare";
3798
3788
  const { actorId } = await queryActor(void 0, actorQuery, driver);
3799
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({ msg: "found actor for action", actorId });
3789
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({ msg: "found actor for action", actorId });
3800
3790
  _invariant2.default.call(void 0, actorId, "Missing actor ID");
3801
3791
  let pathPortion = "";
3802
3792
  let queryPortion = "";
@@ -3812,8 +3802,8 @@ async function rawWebSocket(driver, actorQuery, params, path, protocols) {
3812
3802
  pathPortion = pathPortion.slice(1);
3813
3803
  }
3814
3804
  }
3815
- const fullPath = `${_chunkZIAFEFUKcjs.PATH_WEBSOCKET_PREFIX}${pathPortion}${queryPortion}`;
3816
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
3805
+ const fullPath = `${_chunkDRJCTDDTcjs.PATH_WEBSOCKET_PREFIX}${pathPortion}${queryPortion}`;
3806
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
3817
3807
  msg: "opening websocket",
3818
3808
  actorId,
3819
3809
  encoding,
@@ -3839,10 +3829,10 @@ function messageLength(message) {
3839
3829
  if (typeof message === "string") {
3840
3830
  return message.length;
3841
3831
  }
3842
- _chunk77UIPJTDcjs.assertUnreachable.call(void 0, message);
3832
+ _chunkF3SQLO3Xcjs.assertUnreachable.call(void 0, message);
3843
3833
  }
3844
3834
  async function sendHttpRequest(opts) {
3845
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
3835
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
3846
3836
  msg: "sending http request",
3847
3837
  url: opts.url,
3848
3838
  encoding: opts.encoding
@@ -3851,8 +3841,8 @@ async function sendHttpRequest(opts) {
3851
3841
  let bodyData;
3852
3842
  if (opts.method === "POST" || opts.method === "PUT") {
3853
3843
  _invariant2.default.call(void 0, opts.body !== void 0, "missing body");
3854
- contentType = _chunkZIAFEFUKcjs.contentTypeForEncoding.call(void 0, opts.encoding);
3855
- bodyData = _chunkZIAFEFUKcjs.serializeWithEncoding.call(void 0,
3844
+ contentType = _chunkDRJCTDDTcjs.contentTypeForEncoding.call(void 0, opts.encoding);
3845
+ bodyData = _chunkDRJCTDDTcjs.serializeWithEncoding.call(void 0,
3856
3846
  opts.encoding,
3857
3847
  opts.body,
3858
3848
  opts.requestVersionedDataHandler,
@@ -3871,7 +3861,7 @@ async function sendHttpRequest(opts) {
3871
3861
  ...contentType ? {
3872
3862
  "Content-Type": contentType
3873
3863
  } : {},
3874
- "User-Agent": _chunk77UIPJTDcjs.httpUserAgent.call(void 0, )
3864
+ "User-Agent": _chunkF3SQLO3Xcjs.httpUserAgent.call(void 0, )
3875
3865
  },
3876
3866
  body: bodyData,
3877
3867
  credentials: "include",
@@ -3889,7 +3879,7 @@ async function sendHttpRequest(opts) {
3889
3879
  const rayId = response.headers.get("x-rivet-ray-id");
3890
3880
  const encoding = (contentType2 == null ? void 0 : contentType2.includes("application/json")) ? "json" : opts.encoding;
3891
3881
  try {
3892
- const responseData = _chunkZIAFEFUKcjs.deserializeWithEncoding.call(void 0,
3882
+ const responseData = _chunkDRJCTDDTcjs.deserializeWithEncoding.call(void 0,
3893
3883
  encoding,
3894
3884
  new Uint8Array(bufferResponse),
3895
3885
  HTTP_RESPONSE_ERROR_VERSIONED,
@@ -3935,7 +3925,7 @@ ${textResponse}`
3935
3925
  }
3936
3926
  try {
3937
3927
  const buffer = new Uint8Array(await response.arrayBuffer());
3938
- return _chunkZIAFEFUKcjs.deserializeWithEncoding.call(void 0,
3928
+ return _chunkDRJCTDDTcjs.deserializeWithEncoding.call(void 0,
3939
3929
  opts.encoding,
3940
3930
  buffer,
3941
3931
  opts.responseVersionedDataHandler,
@@ -3985,9 +3975,9 @@ var ActorHandleRaw = class {
3985
3975
  this.#actorQuery,
3986
3976
  this.#driver
3987
3977
  );
3988
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({ msg: "found actor for action", actorId });
3978
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({ msg: "found actor for action", actorId });
3989
3979
  _invariant2.default.call(void 0, actorId, "Missing actor ID");
3990
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
3980
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
3991
3981
  msg: "handling action",
3992
3982
  name: opts.name,
3993
3983
  encoding: this.#encoding
@@ -3996,8 +3986,8 @@ var ActorHandleRaw = class {
3996
3986
  url: `http://actor/action/${encodeURIComponent(opts.name)}`,
3997
3987
  method: "POST",
3998
3988
  headers: {
3999
- [_chunkZIAFEFUKcjs.HEADER_ENCODING]: this.#encoding,
4000
- ...this.#params !== void 0 ? { [_chunkZIAFEFUKcjs.HEADER_CONN_PARAMS]: JSON.stringify(this.#params) } : {}
3989
+ [_chunkDRJCTDDTcjs.HEADER_ENCODING]: this.#encoding,
3990
+ ...this.#params !== void 0 ? { [_chunkDRJCTDDTcjs.HEADER_CONN_PARAMS]: JSON.stringify(this.#params) } : {}
4001
3991
  },
4002
3992
  body: opts.args,
4003
3993
  encoding: this.#encoding,
@@ -4016,7 +4006,7 @@ var ActorHandleRaw = class {
4016
4006
  }),
4017
4007
  // BARE Request: args needs to be CBOR-encoded
4018
4008
  requestToBare: (args) => ({
4019
- args: _chunk77UIPJTDcjs.bufferToArrayBuffer.call(void 0, cbor8.encode(args))
4009
+ args: _chunkF3SQLO3Xcjs.bufferToArrayBuffer.call(void 0, cbor8.encode(args))
4020
4010
  }),
4021
4011
  // JSON Response: output is the raw value
4022
4012
  responseFromJson: (json) => json.output,
@@ -4025,9 +4015,9 @@ var ActorHandleRaw = class {
4025
4015
  });
4026
4016
  return responseData;
4027
4017
  } catch (err) {
4028
- const { group, code, message, metadata } = _chunk77UIPJTDcjs.deconstructError.call(void 0,
4018
+ const { group, code, message, metadata } = _chunkF3SQLO3Xcjs.deconstructError.call(void 0,
4029
4019
  err,
4030
- _chunkWJKKE5CNcjs.logger.call(void 0, ),
4020
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ),
4031
4021
  {},
4032
4022
  true
4033
4023
  );
@@ -4041,7 +4031,7 @@ var ActorHandleRaw = class {
4041
4031
  * @returns {ActorConn<AD>} A connection to the actor.
4042
4032
  */
4043
4033
  connect() {
4044
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4034
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4045
4035
  msg: "establishing connection from handle",
4046
4036
  query: this.#actorQuery
4047
4037
  });
@@ -4101,7 +4091,7 @@ var ActorHandleRaw = class {
4101
4091
  } else if ("getOrCreateForKey" in this.#actorQuery) {
4102
4092
  name = this.#actorQuery.getOrCreateForKey.name;
4103
4093
  } else {
4104
- _chunkZIAFEFUKcjs.assertUnreachable.call(void 0, this.#actorQuery);
4094
+ _chunkDRJCTDDTcjs.assertUnreachable.call(void 0, this.#actorQuery);
4105
4095
  }
4106
4096
  const { actorId } = await queryActor(
4107
4097
  void 0,
@@ -4115,7 +4105,7 @@ var ActorHandleRaw = class {
4115
4105
  } else if ("create" in this.#actorQuery) {
4116
4106
  _invariant2.default.call(void 0, false, "actorQuery cannot be create");
4117
4107
  } else {
4118
- _chunkZIAFEFUKcjs.assertUnreachable.call(void 0, this.#actorQuery);
4108
+ _chunkDRJCTDDTcjs.assertUnreachable.call(void 0, this.#actorQuery);
4119
4109
  }
4120
4110
  }
4121
4111
  };
@@ -4145,7 +4135,7 @@ var ClientRaw = (_class4 = class {
4145
4135
  * @returns {ActorHandle<AD>} - A handle to the actor.
4146
4136
  */
4147
4137
  getForId(name, actorId, opts) {
4148
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4138
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4149
4139
  msg: "get handle to actor with id",
4150
4140
  name,
4151
4141
  actorId,
@@ -4171,7 +4161,7 @@ var ClientRaw = (_class4 = class {
4171
4161
  */
4172
4162
  get(name, key, opts) {
4173
4163
  const keyArray = typeof key === "string" ? [key] : key || [];
4174
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4164
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4175
4165
  msg: "get handle to actor",
4176
4166
  name,
4177
4167
  key: keyArray,
@@ -4197,7 +4187,7 @@ var ClientRaw = (_class4 = class {
4197
4187
  */
4198
4188
  getOrCreate(name, key, opts) {
4199
4189
  const keyArray = typeof key === "string" ? [key] : key || [];
4200
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4190
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4201
4191
  msg: "get or create handle to actor",
4202
4192
  name,
4203
4193
  key: keyArray,
@@ -4235,7 +4225,7 @@ var ClientRaw = (_class4 = class {
4235
4225
  key: keyArray
4236
4226
  }
4237
4227
  };
4238
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4228
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4239
4229
  msg: "create actor handle",
4240
4230
  name,
4241
4231
  key: keyArray,
@@ -4247,7 +4237,7 @@ var ClientRaw = (_class4 = class {
4247
4237
  createQuery,
4248
4238
  this.#driver
4249
4239
  );
4250
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4240
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4251
4241
  msg: "created actor with ID",
4252
4242
  name,
4253
4243
  key: keyArray,
@@ -4284,11 +4274,11 @@ var ClientRaw = (_class4 = class {
4284
4274
  */
4285
4275
  async dispose() {
4286
4276
  if (this.#disposed) {
4287
- _chunkWJKKE5CNcjs.logger.call(void 0, ).warn({ msg: "client already disconnected" });
4277
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).warn({ msg: "client already disconnected" });
4288
4278
  return;
4289
4279
  }
4290
4280
  this.#disposed = true;
4291
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({ msg: "disposing client" });
4281
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({ msg: "disposing client" });
4292
4282
  const disposePromises = [];
4293
4283
  for (const conn of this[ACTOR_CONNS_SYMBOL].values()) {
4294
4284
  disposePromises.push(conn.dispose());
@@ -4445,16 +4435,16 @@ var ActorConnRaw = class {
4445
4435
  * @returns {Promise<Response>} - A promise that resolves to the response of the action function.
4446
4436
  */
4447
4437
  async action(opts) {
4448
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({ msg: "action", name: opts.name, args: opts.args });
4438
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({ msg: "action", name: opts.name, args: opts.args });
4449
4439
  const actionId = this.#actionIdCounter;
4450
4440
  this.#actionIdCounter += 1;
4451
- const { promise, resolve, reject } = _chunk77UIPJTDcjs.promiseWithResolvers.call(void 0, );
4441
+ const { promise, resolve, reject } = _chunkF3SQLO3Xcjs.promiseWithResolvers.call(void 0, );
4452
4442
  this.#actionsInFlight.set(actionId, {
4453
4443
  name: opts.name,
4454
4444
  resolve,
4455
4445
  reject
4456
4446
  });
4457
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4447
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4458
4448
  msg: "added action to in-flight map",
4459
4449
  actionId,
4460
4450
  actionName: opts.name,
@@ -4495,10 +4485,10 @@ var ActorConnRaw = class {
4495
4485
  minTimeout: 250,
4496
4486
  maxTimeout: 3e4,
4497
4487
  onFailedAttempt: (error) => {
4498
- _chunkWJKKE5CNcjs.logger.call(void 0, ).warn({
4488
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).warn({
4499
4489
  msg: "failed to reconnect",
4500
4490
  attempt: error.attemptNumber,
4501
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
4491
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
4502
4492
  });
4503
4493
  },
4504
4494
  // Cancel retry if aborted
@@ -4506,7 +4496,7 @@ var ActorConnRaw = class {
4506
4496
  });
4507
4497
  } catch (err) {
4508
4498
  if (err.name === "AbortError") {
4509
- _chunkWJKKE5CNcjs.logger.call(void 0, ).info({ msg: "connection retry aborted" });
4499
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).info({ msg: "connection retry aborted" });
4510
4500
  return;
4511
4501
  } else {
4512
4502
  throw err;
@@ -4518,7 +4508,7 @@ var ActorConnRaw = class {
4518
4508
  try {
4519
4509
  if (this.#onOpenPromise)
4520
4510
  throw new Error("#onOpenPromise already defined");
4521
- this.#onOpenPromise = _chunk77UIPJTDcjs.promiseWithResolvers.call(void 0, );
4511
+ this.#onOpenPromise = _chunkF3SQLO3Xcjs.promiseWithResolvers.call(void 0, );
4522
4512
  await this.#connectWebSocket();
4523
4513
  await this.#onOpenPromise.promise;
4524
4514
  } finally {
@@ -4532,12 +4522,12 @@ var ActorConnRaw = class {
4532
4522
  this.#driver
4533
4523
  );
4534
4524
  const ws = await this.#driver.openWebSocket(
4535
- _chunkZIAFEFUKcjs.PATH_CONNECT,
4525
+ _chunkDRJCTDDTcjs.PATH_CONNECT,
4536
4526
  actorId,
4537
4527
  this.#encoding,
4538
4528
  this.#params
4539
4529
  );
4540
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4530
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4541
4531
  msg: "opened websocket",
4542
4532
  connectionId: this.#connectionId,
4543
4533
  readyState: ws.readyState,
@@ -4545,7 +4535,7 @@ var ActorConnRaw = class {
4545
4535
  });
4546
4536
  this.#websocket = ws;
4547
4537
  ws.addEventListener("open", () => {
4548
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4538
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4549
4539
  msg: "client websocket open",
4550
4540
  connectionId: this.#connectionId
4551
4541
  });
@@ -4554,9 +4544,9 @@ var ActorConnRaw = class {
4554
4544
  try {
4555
4545
  await this.#handleOnMessage(ev.data);
4556
4546
  } catch (err) {
4557
- _chunkWJKKE5CNcjs.logger.call(void 0, ).error({
4547
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).error({
4558
4548
  msg: "error in websocket message handler",
4559
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, err)
4549
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, err)
4560
4550
  });
4561
4551
  }
4562
4552
  });
@@ -4564,9 +4554,9 @@ var ActorConnRaw = class {
4564
4554
  try {
4565
4555
  this.#handleOnClose(ev);
4566
4556
  } catch (err) {
4567
- _chunkWJKKE5CNcjs.logger.call(void 0, ).error({
4557
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).error({
4568
4558
  msg: "error in websocket close handler",
4569
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, err)
4559
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, err)
4570
4560
  });
4571
4561
  }
4572
4562
  });
@@ -4574,16 +4564,16 @@ var ActorConnRaw = class {
4574
4564
  try {
4575
4565
  this.#handleOnError();
4576
4566
  } catch (err) {
4577
- _chunkWJKKE5CNcjs.logger.call(void 0, ).error({
4567
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).error({
4578
4568
  msg: "error in websocket error handler",
4579
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, err)
4569
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, err)
4580
4570
  });
4581
4571
  }
4582
4572
  });
4583
4573
  }
4584
4574
  /** Called by the onopen event from drivers. */
4585
4575
  #handleOnOpen() {
4586
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4576
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4587
4577
  msg: "socket open",
4588
4578
  messageQueueLength: this.#messageQueue.length,
4589
4579
  connectionId: this.#connectionId
@@ -4591,14 +4581,14 @@ var ActorConnRaw = class {
4591
4581
  if (this.#onOpenPromise) {
4592
4582
  this.#onOpenPromise.resolve(void 0);
4593
4583
  } else {
4594
- _chunkWJKKE5CNcjs.logger.call(void 0, ).warn({ msg: "#onOpenPromise is undefined" });
4584
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).warn({ msg: "#onOpenPromise is undefined" });
4595
4585
  }
4596
4586
  for (const eventName of this.#eventSubscriptions.keys()) {
4597
4587
  this.#sendSubscription(eventName, true);
4598
4588
  }
4599
4589
  const queue = this.#messageQueue;
4600
4590
  this.#messageQueue = [];
4601
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4591
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4602
4592
  msg: "flushing message queue",
4603
4593
  queueLength: queue.length
4604
4594
  });
@@ -4608,23 +4598,23 @@ var ActorConnRaw = class {
4608
4598
  }
4609
4599
  /** Called by the onmessage event from drivers. */
4610
4600
  async #handleOnMessage(data) {
4611
- _chunkWJKKE5CNcjs.logger.call(void 0, ).trace({
4601
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).trace({
4612
4602
  msg: "received message",
4613
4603
  dataType: typeof data,
4614
4604
  isBlob: data instanceof Blob,
4615
4605
  isArrayBuffer: data instanceof ArrayBuffer
4616
4606
  });
4617
4607
  const response = await this.#parseMessage(data);
4618
- _chunkWJKKE5CNcjs.logger.call(void 0, ).trace(
4619
- _chunk77UIPJTDcjs.getEnvUniversal.call(void 0, "_RIVETKIT_LOG_MESSAGE") ? {
4608
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).trace(
4609
+ _chunkF3SQLO3Xcjs.getEnvUniversal.call(void 0, "_RIVETKIT_LOG_MESSAGE") ? {
4620
4610
  msg: "parsed message",
4621
- message: _chunkZIAFEFUKcjs.jsonStringifyCompat.call(void 0, response).substring(0, 100) + "..."
4611
+ message: _chunkDRJCTDDTcjs.jsonStringifyCompat.call(void 0, response).substring(0, 100) + "..."
4622
4612
  } : { msg: "parsed message" }
4623
4613
  );
4624
4614
  if (response.body.tag === "Init") {
4625
4615
  this.#actorId = response.body.val.actorId;
4626
4616
  this.#connectionId = response.body.val.connectionId;
4627
- _chunkWJKKE5CNcjs.logger.call(void 0, ).trace({
4617
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).trace({
4628
4618
  msg: "received init message",
4629
4619
  actorId: this.#actorId,
4630
4620
  connectionId: this.#connectionId
@@ -4634,7 +4624,7 @@ var ActorConnRaw = class {
4634
4624
  const { group, code, message, metadata, actionId } = response.body.val;
4635
4625
  if (actionId) {
4636
4626
  const inFlight = this.#takeActionInFlight(Number(actionId));
4637
- _chunkWJKKE5CNcjs.logger.call(void 0, ).warn({
4627
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).warn({
4638
4628
  msg: "action error",
4639
4629
  actionId,
4640
4630
  actionName: inFlight == null ? void 0 : inFlight.name,
@@ -4647,7 +4637,7 @@ var ActorConnRaw = class {
4647
4637
  new ActorError(group, code, message, metadata)
4648
4638
  );
4649
4639
  } else {
4650
- _chunkWJKKE5CNcjs.logger.call(void 0, ).warn({
4640
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).warn({
4651
4641
  msg: "connection error",
4652
4642
  group,
4653
4643
  code,
@@ -4671,27 +4661,27 @@ var ActorConnRaw = class {
4671
4661
  }
4672
4662
  } else if (response.body.tag === "ActionResponse") {
4673
4663
  const { id: actionId } = response.body.val;
4674
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4664
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4675
4665
  msg: "received action response",
4676
4666
  actionId: Number(actionId),
4677
4667
  inFlightCount: this.#actionsInFlight.size,
4678
4668
  inFlightIds: Array.from(this.#actionsInFlight.keys())
4679
4669
  });
4680
4670
  const inFlight = this.#takeActionInFlight(Number(actionId));
4681
- _chunkWJKKE5CNcjs.logger.call(void 0, ).trace({
4671
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).trace({
4682
4672
  msg: "resolving action promise",
4683
4673
  actionId,
4684
4674
  actionName: inFlight == null ? void 0 : inFlight.name
4685
4675
  });
4686
4676
  inFlight.resolve(response.body.val);
4687
4677
  } else if (response.body.tag === "Event") {
4688
- _chunkWJKKE5CNcjs.logger.call(void 0, ).trace({
4678
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).trace({
4689
4679
  msg: "received event",
4690
4680
  name: response.body.val.name
4691
4681
  });
4692
4682
  this.#dispatchEvent(response.body.val);
4693
4683
  } else {
4694
- _chunk77UIPJTDcjs.assertUnreachable.call(void 0, response.body);
4684
+ _chunkF3SQLO3Xcjs.assertUnreachable.call(void 0, response.body);
4695
4685
  }
4696
4686
  }
4697
4687
  /** Called by the onclose event from drivers. */
@@ -4705,7 +4695,7 @@ var ActorConnRaw = class {
4705
4695
  )
4706
4696
  );
4707
4697
  }
4708
- _chunkWJKKE5CNcjs.logger.call(void 0, ).info({
4698
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).info({
4709
4699
  msg: "socket closed",
4710
4700
  code: closeEvent.code,
4711
4701
  reason: closeEvent.reason,
@@ -4715,7 +4705,7 @@ var ActorConnRaw = class {
4715
4705
  actionsInFlight: this.#actionsInFlight.size
4716
4706
  });
4717
4707
  if (this.#actionsInFlight.size > 0) {
4718
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4708
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4719
4709
  msg: "rejecting in-flight actions after disconnect",
4720
4710
  count: this.#actionsInFlight.size,
4721
4711
  connectionId: this.#connectionId,
@@ -4731,7 +4721,7 @@ var ActorConnRaw = class {
4731
4721
  }
4732
4722
  this.#websocket = void 0;
4733
4723
  if (!this.#disposed && !this.#connecting) {
4734
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4724
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4735
4725
  msg: "triggering reconnect",
4736
4726
  connectionId: this.#connectionId,
4737
4727
  messageQueueLength: this.#messageQueue.length
@@ -4742,12 +4732,12 @@ var ActorConnRaw = class {
4742
4732
  /** Called by the onerror event from drivers. */
4743
4733
  #handleOnError() {
4744
4734
  if (this.#disposed) return;
4745
- _chunkWJKKE5CNcjs.logger.call(void 0, ).warn("socket error");
4735
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).warn("socket error");
4746
4736
  }
4747
4737
  #takeActionInFlight(id) {
4748
4738
  const inFlight = this.#actionsInFlight.get(id);
4749
4739
  if (!inFlight) {
4750
- _chunkWJKKE5CNcjs.logger.call(void 0, ).error({
4740
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).error({
4751
4741
  msg: "action not found in in-flight map",
4752
4742
  lookupId: id,
4753
4743
  inFlightCount: this.#actionsInFlight.size,
@@ -4762,7 +4752,7 @@ var ActorConnRaw = class {
4762
4752
  throw new InternalError2(`No in flight response for ${id}`);
4763
4753
  }
4764
4754
  this.#actionsInFlight.delete(id);
4765
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4755
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4766
4756
  msg: "removed action from in-flight map",
4767
4757
  actionId: id,
4768
4758
  actionName: inFlight.name,
@@ -4789,9 +4779,9 @@ var ActorConnRaw = class {
4789
4779
  try {
4790
4780
  handler(error);
4791
4781
  } catch (err) {
4792
- _chunkWJKKE5CNcjs.logger.call(void 0, ).error({
4782
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).error({
4793
4783
  msg: "error in connection error handler",
4794
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, err)
4784
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, err)
4795
4785
  });
4796
4786
  }
4797
4787
  }
@@ -4863,7 +4853,7 @@ var ActorConnRaw = class {
4863
4853
  let queueMessage = false;
4864
4854
  if (this.#websocket) {
4865
4855
  const readyState = this.#websocket.readyState;
4866
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4856
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4867
4857
  msg: "websocket send attempt",
4868
4858
  readyState,
4869
4859
  readyStateString: readyState === 0 ? "CONNECTING" : readyState === 1 ? "OPEN" : readyState === 2 ? "CLOSING" : "CLOSED",
@@ -4873,7 +4863,7 @@ var ActorConnRaw = class {
4873
4863
  });
4874
4864
  if (readyState === 1) {
4875
4865
  try {
4876
- const messageSerialized = _chunkZIAFEFUKcjs.serializeWithEncoding.call(void 0,
4866
+ const messageSerialized = _chunkDRJCTDDTcjs.serializeWithEncoding.call(void 0,
4877
4867
  this.#encoding,
4878
4868
  message,
4879
4869
  TO_SERVER_VERSIONED,
@@ -4889,7 +4879,7 @@ var ActorConnRaw = class {
4889
4879
  val: {
4890
4880
  id: msg.body.val.id,
4891
4881
  name: msg.body.val.name,
4892
- args: _chunk77UIPJTDcjs.bufferToArrayBuffer.call(void 0,
4882
+ args: _chunkF3SQLO3Xcjs.bufferToArrayBuffer.call(void 0,
4893
4883
  cbor9.encode(msg.body.val.args)
4894
4884
  )
4895
4885
  }
@@ -4901,12 +4891,12 @@ var ActorConnRaw = class {
4901
4891
  }
4902
4892
  );
4903
4893
  this.#websocket.send(messageSerialized);
4904
- _chunkWJKKE5CNcjs.logger.call(void 0, ).trace({
4894
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).trace({
4905
4895
  msg: "sent websocket message",
4906
4896
  len: messageLength(messageSerialized)
4907
4897
  });
4908
4898
  } catch (error) {
4909
- _chunkWJKKE5CNcjs.logger.call(void 0, ).warn({
4899
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).warn({
4910
4900
  msg: "failed to send message, added to queue",
4911
4901
  error,
4912
4902
  connectionId: this.#connectionId
@@ -4914,19 +4904,19 @@ var ActorConnRaw = class {
4914
4904
  queueMessage = true;
4915
4905
  }
4916
4906
  } else {
4917
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4907
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4918
4908
  msg: "websocket not open, queueing message",
4919
4909
  readyState
4920
4910
  });
4921
4911
  queueMessage = true;
4922
4912
  }
4923
4913
  } else {
4924
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({ msg: "no websocket, queueing message" });
4914
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({ msg: "no websocket, queueing message" });
4925
4915
  queueMessage = true;
4926
4916
  }
4927
4917
  if (!(opts == null ? void 0 : opts.ephemeral) && queueMessage) {
4928
4918
  this.#messageQueue.push(message);
4929
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({
4919
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({
4930
4920
  msg: "queued connection message",
4931
4921
  queueLength: this.#messageQueue.length,
4932
4922
  connectionId: this.#connectionId,
@@ -4938,7 +4928,7 @@ var ActorConnRaw = class {
4938
4928
  async #parseMessage(data) {
4939
4929
  _invariant2.default.call(void 0, this.#websocket, "websocket must be defined");
4940
4930
  const buffer = await inputDataToBuffer(data);
4941
- return _chunkZIAFEFUKcjs.deserializeWithEncoding.call(void 0,
4931
+ return _chunkDRJCTDDTcjs.deserializeWithEncoding.call(void 0,
4942
4932
  this.#encoding,
4943
4933
  buffer,
4944
4934
  TO_CLIENT_VERSIONED,
@@ -5015,23 +5005,23 @@ var ActorConnRaw = class {
5015
5005
  */
5016
5006
  async dispose() {
5017
5007
  if (this.#disposed) {
5018
- _chunkWJKKE5CNcjs.logger.call(void 0, ).warn({ msg: "connection already disconnected" });
5008
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).warn({ msg: "connection already disconnected" });
5019
5009
  return;
5020
5010
  }
5021
5011
  this.#disposed = true;
5022
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({ msg: "disposing actor conn" });
5012
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({ msg: "disposing actor conn" });
5023
5013
  clearInterval(this.#keepNodeAliveInterval);
5024
5014
  this.#abortController.abort();
5025
5015
  this.#client[ACTOR_CONNS_SYMBOL].delete(this);
5026
5016
  if (this.#websocket) {
5027
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug("closing ws");
5017
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug("closing ws");
5028
5018
  const ws = this.#websocket;
5029
5019
  if (ws.readyState === 2 || ws.readyState === 3) {
5030
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({ msg: "ws already closed or closing" });
5020
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({ msg: "ws already closed or closing" });
5031
5021
  } else {
5032
- const { promise, resolve } = _chunk77UIPJTDcjs.promiseWithResolvers.call(void 0, );
5022
+ const { promise, resolve } = _chunkF3SQLO3Xcjs.promiseWithResolvers.call(void 0, );
5033
5023
  ws.addEventListener("close", () => {
5034
- _chunkWJKKE5CNcjs.logger.call(void 0, ).debug({ msg: "ws closed" });
5024
+ _chunkTJ2PJ5C7cjs.logger.call(void 0, ).debug({ msg: "ws closed" });
5035
5025
  resolve(void 0);
5036
5026
  });
5037
5027
  ws.close(1e3, "Normal closure");
@@ -5065,7 +5055,7 @@ var ActorConnRaw = class {
5065
5055
 
5066
5056
  // src/remote-manager-driver/log.ts
5067
5057
  function logger2() {
5068
- return _chunk77UIPJTDcjs.getLogger.call(void 0, "remote-manager-driver");
5058
+ return _chunkF3SQLO3Xcjs.getLogger.call(void 0, "remote-manager-driver");
5069
5059
  }
5070
5060
 
5071
5061
  // src/remote-manager-driver/api-utils.ts
@@ -5082,7 +5072,7 @@ function getEndpoint(config2) {
5082
5072
  }
5083
5073
  async function apiCall(config2, method, path, body) {
5084
5074
  const endpoint = getEndpoint(config2);
5085
- const url = _chunk77UIPJTDcjs.combineUrlPath.call(void 0, endpoint, path, {
5075
+ const url = _chunkF3SQLO3Xcjs.combineUrlPath.call(void 0, endpoint, path, {
5086
5076
  namespace: config2.namespace
5087
5077
  });
5088
5078
  logger2().debug({ msg: "making api call", method, url });
@@ -5115,7 +5105,7 @@ async function apiCall(config2, method, path, body) {
5115
5105
  async function sendHttpRequestToActor(runConfig, actorId, actorRequest) {
5116
5106
  const url = new URL(actorRequest.url);
5117
5107
  const endpoint = getEndpoint(runConfig);
5118
- const guardUrl = _chunk77UIPJTDcjs.combineUrlPath.call(void 0,
5108
+ const guardUrl = _chunkF3SQLO3Xcjs.combineUrlPath.call(void 0,
5119
5109
  endpoint,
5120
5110
  `/gateway/${actorId}${url.pathname}${url.search}`
5121
5111
  );
@@ -5156,16 +5146,16 @@ function buildGuardHeadersForHttp(runConfig, actorRequest, actorId) {
5156
5146
  headers.set(key, value);
5157
5147
  }
5158
5148
  if (runConfig.token) {
5159
- headers.set(_chunkZIAFEFUKcjs.HEADER_RIVET_TOKEN, runConfig.token);
5149
+ headers.set(_chunkDRJCTDDTcjs.HEADER_RIVET_TOKEN, runConfig.token);
5160
5150
  }
5161
5151
  return headers;
5162
5152
  }
5163
5153
 
5164
5154
  // src/remote-manager-driver/actor-websocket-client.ts
5165
5155
  async function openWebSocketToActor(runConfig, path, actorId, encoding, params) {
5166
- const WebSocket2 = await _chunkWJKKE5CNcjs.importWebSocket.call(void 0, );
5156
+ const WebSocket2 = await _chunkTJ2PJ5C7cjs.importWebSocket.call(void 0, );
5167
5157
  const endpoint = getEndpoint(runConfig);
5168
- const guardUrl = _chunk77UIPJTDcjs.combineUrlPath.call(void 0, endpoint, `/gateway/${actorId}${path}`);
5158
+ const guardUrl = _chunkF3SQLO3Xcjs.combineUrlPath.call(void 0, endpoint, `/gateway/${actorId}${path}`);
5169
5159
  logger2().debug({
5170
5160
  msg: "opening websocket to actor via guard",
5171
5161
  actorId,
@@ -5182,11 +5172,11 @@ async function openWebSocketToActor(runConfig, path, actorId, encoding, params)
5182
5172
  }
5183
5173
  function buildWebSocketProtocols(runConfig, encoding, params) {
5184
5174
  const protocols = [];
5185
- protocols.push(_chunkZIAFEFUKcjs.WS_PROTOCOL_STANDARD);
5186
- protocols.push(`${_chunkZIAFEFUKcjs.WS_PROTOCOL_ENCODING}${encoding}`);
5175
+ protocols.push(_chunkDRJCTDDTcjs.WS_PROTOCOL_STANDARD);
5176
+ protocols.push(`${_chunkDRJCTDDTcjs.WS_PROTOCOL_ENCODING}${encoding}`);
5187
5177
  if (params) {
5188
5178
  protocols.push(
5189
- `${_chunkZIAFEFUKcjs.WS_PROTOCOL_CONN_PARAMS}${encodeURIComponent(JSON.stringify(params))}`
5179
+ `${_chunkDRJCTDDTcjs.WS_PROTOCOL_CONN_PARAMS}${encodeURIComponent(JSON.stringify(params))}`
5190
5180
  );
5191
5181
  }
5192
5182
  return protocols;
@@ -5285,7 +5275,7 @@ async function lookupMetadataCached(config2) {
5285
5275
  msg: "failed to fetch metadata, retrying",
5286
5276
  endpoint,
5287
5277
  attempt: error.attemptNumber,
5288
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
5278
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
5289
5279
  });
5290
5280
  }
5291
5281
  }
@@ -5296,7 +5286,7 @@ async function lookupMetadataCached(config2) {
5296
5286
 
5297
5287
  // src/remote-manager-driver/ws-proxy.ts
5298
5288
  async function createWebSocketProxy(c, targetUrl, protocols) {
5299
- const WebSocket2 = await _chunkWJKKE5CNcjs.importWebSocket.call(void 0, );
5289
+ const WebSocket2 = await _chunkTJ2PJ5C7cjs.importWebSocket.call(void 0, );
5300
5290
  const state = {};
5301
5291
  return {
5302
5292
  onOpen: async (event, clientWs) => {
@@ -5359,7 +5349,7 @@ async function createWebSocketProxy(c, targetUrl, protocols) {
5359
5349
  logger2().error({
5360
5350
  msg: "target websocket error",
5361
5351
  targetUrl,
5362
- error: _chunk77UIPJTDcjs.stringifyError.call(void 0, error)
5352
+ error: _chunkF3SQLO3Xcjs.stringifyError.call(void 0, error)
5363
5353
  });
5364
5354
  closeWebSocketIfOpen(clientWs, 1011, "Target WebSocket error");
5365
5355
  });
@@ -5438,7 +5428,7 @@ var RemoteManagerDriver = class {
5438
5428
  #config;
5439
5429
  #metadataPromise;
5440
5430
  constructor(runConfig) {
5441
- if (_chunk77UIPJTDcjs.getEnvUniversal.call(void 0, "NEXT_PHASE") === "phase-production-build") {
5431
+ if (_chunkF3SQLO3Xcjs.getEnvUniversal.call(void 0, "NEXT_PHASE") === "phase-production-build") {
5442
5432
  logger2().info(
5443
5433
  "detected next.js build phase, disabling health check"
5444
5434
  );
@@ -5541,7 +5531,7 @@ var RemoteManagerDriver = class {
5541
5531
  name,
5542
5532
  key: serializeActorKey(key),
5543
5533
  runner_name_selector: this.#config.runnerName,
5544
- input: actorInput ? _chunkZIAFEFUKcjs.uint8ArrayToBase64.call(void 0, cbor10.encode(actorInput)) : void 0,
5534
+ input: actorInput ? _chunkDRJCTDDTcjs.uint8ArrayToBase64.call(void 0, cbor10.encode(actorInput)) : void 0,
5545
5535
  crash_policy: "sleep"
5546
5536
  });
5547
5537
  const actorId = actor.actor_id;
@@ -5574,7 +5564,7 @@ var RemoteManagerDriver = class {
5574
5564
  name,
5575
5565
  runner_name_selector: this.#config.runnerName,
5576
5566
  key: serializeActorKey(key),
5577
- input: input ? _chunkZIAFEFUKcjs.uint8ArrayToBase64.call(void 0, cbor10.encode(input)) : void 0,
5567
+ input: input ? _chunkDRJCTDDTcjs.uint8ArrayToBase64.call(void 0, cbor10.encode(input)) : void 0,
5578
5568
  crash_policy: "sleep"
5579
5569
  });
5580
5570
  const actorId = result.actor.actor_id;
@@ -5646,7 +5636,7 @@ var RemoteManagerDriver = class {
5646
5636
  const upgradeWebSocket = (_b = (_a = this.#config).getUpgradeWebSocket) == null ? void 0 : _b.call(_a);
5647
5637
  _invariant2.default.call(void 0, upgradeWebSocket, "missing getUpgradeWebSocket");
5648
5638
  const endpoint = getEndpoint(this.#config);
5649
- const guardUrl = _chunk77UIPJTDcjs.combineUrlPath.call(void 0, endpoint, path);
5639
+ const guardUrl = _chunkF3SQLO3Xcjs.combineUrlPath.call(void 0, endpoint, path);
5650
5640
  const wsGuardUrl = guardUrl.replace("http://", "ws://");
5651
5641
  logger2().debug({
5652
5642
  msg: "forwarding websocket to actor via guard",
@@ -5660,13 +5650,13 @@ var RemoteManagerDriver = class {
5660
5650
  params
5661
5651
  );
5662
5652
  const args = await createWebSocketProxy(c, wsGuardUrl, protocols);
5663
- return await upgradeWebSocket(() => args)(c, _chunk77UIPJTDcjs.noopNext.call(void 0, ));
5653
+ return await upgradeWebSocket(() => args)(c, _chunkF3SQLO3Xcjs.noopNext.call(void 0, ));
5664
5654
  }
5665
5655
  displayInformation() {
5666
5656
  return { name: "Remote", properties: {} };
5667
5657
  }
5668
5658
  getOrCreateInspectorAccessToken() {
5669
- return _chunkZIAFEFUKcjs.generateRandomString.call(void 0, );
5659
+ return _chunkDRJCTDDTcjs.generateRandomString.call(void 0, );
5670
5660
  }
5671
5661
  };
5672
5662
 
@@ -5701,4 +5691,4 @@ var RemoteManagerDriver = class {
5701
5691
 
5702
5692
 
5703
5693
  exports.createActorInspectorRouter = createActorInspectorRouter; exports.createHttpDriver = createHttpDriver; exports.HTTP_ACTION_REQUEST_VERSIONED = HTTP_ACTION_REQUEST_VERSIONED; exports.HTTP_ACTION_RESPONSE_VERSIONED = HTTP_ACTION_RESPONSE_VERSIONED; exports.HTTP_RESPONSE_ERROR_VERSIONED = HTTP_RESPONSE_ERROR_VERSIONED; exports.HttpActionRequestSchema = HttpActionRequestSchema; exports.HttpActionResponseSchema = HttpActionResponseSchema; exports.HttpResponseErrorSchema = HttpResponseErrorSchema; exports.CONN_DRIVER_SYMBOL = CONN_DRIVER_SYMBOL; exports.CONN_STATE_MANAGER_SYMBOL = CONN_STATE_MANAGER_SYMBOL; exports.ActionContext = ActionContext; exports.serializeActorKey = serializeActorKey; exports.deserializeActorKey = deserializeActorKey; exports.getValueLength = getValueLength; exports.parseMessage = parseMessage; exports.ActorDefinition = ActorDefinition; exports.lookupInRegistry = lookupInRegistry; exports.ActorClientError = ActorClientError; exports.InternalError = InternalError2; exports.ManagerError = ManagerError; exports.MalformedResponseMessage = MalformedResponseMessage; exports.ActorError = ActorError; exports.ActorConnRaw = ActorConnRaw; exports.ActorHandleRaw = ActorHandleRaw; exports.createClientWithDriver = createClientWithDriver; exports.getEndpoint = getEndpoint; exports.getDatacenters = getDatacenters; exports.updateRunnerConfig = updateRunnerConfig; exports.RemoteManagerDriver = RemoteManagerDriver;
5704
- //# sourceMappingURL=chunk-NEM3XQSZ.cjs.map
5694
+ //# sourceMappingURL=chunk-XNKWXMIT.cjs.map