rivetkit 2.0.5 → 2.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 (116) hide show
  1. package/dist/tsup/actor-router-consts-BK6arfy8.d.cts +17 -0
  2. package/dist/tsup/actor-router-consts-BK6arfy8.d.ts +17 -0
  3. package/dist/tsup/chunk-2K3JMDAN.js +232 -0
  4. package/dist/tsup/chunk-2K3JMDAN.js.map +1 -0
  5. package/dist/tsup/chunk-42I3OZ3Q.js +15 -0
  6. package/dist/tsup/chunk-42I3OZ3Q.js.map +1 -0
  7. package/dist/tsup/{chunk-L7QRXNWP.js → chunk-4CKHQRXG.js} +1642 -4408
  8. package/dist/tsup/chunk-4CKHQRXG.js.map +1 -0
  9. package/dist/tsup/{chunk-WADSS5X4.cjs → chunk-5JBFVV4C.cjs} +2 -2
  10. package/dist/tsup/{chunk-WADSS5X4.cjs.map → chunk-5JBFVV4C.cjs.map} +1 -1
  11. package/dist/tsup/{chunk-FGFT4FVX.cjs → chunk-6P6RA47N.cjs} +9 -9
  12. package/dist/tsup/{chunk-FGFT4FVX.cjs.map → chunk-6P6RA47N.cjs.map} +1 -1
  13. package/dist/tsup/chunk-7OUKNSTU.js +1043 -0
  14. package/dist/tsup/chunk-7OUKNSTU.js.map +1 -0
  15. package/dist/tsup/{chunk-LZIBTLEY.cjs → chunk-DIAYNQTE.cjs} +13 -25
  16. package/dist/tsup/chunk-DIAYNQTE.cjs.map +1 -0
  17. package/dist/tsup/{chunk-YW6Y6VNE.js → chunk-G75SVQON.js} +4 -4
  18. package/dist/tsup/{chunk-PHSQJ6QI.cjs → chunk-KG3C7MKR.cjs} +3 -3
  19. package/dist/tsup/{chunk-PHSQJ6QI.cjs.map → chunk-KG3C7MKR.cjs.map} +1 -1
  20. package/dist/tsup/chunk-KUPQZYUQ.cjs +15 -0
  21. package/dist/tsup/chunk-KUPQZYUQ.cjs.map +1 -0
  22. package/dist/tsup/{chunk-5YTI25C3.cjs → chunk-MRRT2CZD.cjs} +7 -7
  23. package/dist/tsup/{chunk-5YTI25C3.cjs.map → chunk-MRRT2CZD.cjs.map} +1 -1
  24. package/dist/tsup/chunk-NTCUGYSD.cjs +1043 -0
  25. package/dist/tsup/chunk-NTCUGYSD.cjs.map +1 -0
  26. package/dist/tsup/{chunk-CFFKMUYH.js → chunk-RGQR2J7S.js} +2 -2
  27. package/dist/tsup/{chunk-CFFKMUYH.js.map → chunk-RGQR2J7S.js.map} +1 -1
  28. package/dist/tsup/chunk-TCUI5JFE.cjs +232 -0
  29. package/dist/tsup/chunk-TCUI5JFE.cjs.map +1 -0
  30. package/dist/tsup/chunk-TWGATZ3X.cjs +3676 -0
  31. package/dist/tsup/chunk-TWGATZ3X.cjs.map +1 -0
  32. package/dist/tsup/chunk-UFWAK3X2.cjs +3796 -0
  33. package/dist/tsup/chunk-UFWAK3X2.cjs.map +1 -0
  34. package/dist/tsup/{chunk-D7NWUCRK.cjs → chunk-UTI5NCES.cjs} +6 -6
  35. package/dist/tsup/{chunk-D7NWUCRK.cjs.map → chunk-UTI5NCES.cjs.map} +1 -1
  36. package/dist/tsup/{chunk-PG3K2LI7.js → chunk-VCEHU56K.js} +2 -2
  37. package/dist/tsup/{chunk-I5VTWPHW.js → chunk-VPV4MWXR.js} +3 -3
  38. package/dist/tsup/chunk-W6LN7AF5.js +3676 -0
  39. package/dist/tsup/chunk-W6LN7AF5.js.map +1 -0
  40. package/dist/tsup/{chunk-WNGOBAA7.js → chunk-WC2PSJWN.js} +2 -2
  41. package/dist/tsup/{chunk-CKA54YQN.js → chunk-ZYLTS2EM.js} +3 -15
  42. package/dist/tsup/chunk-ZYLTS2EM.js.map +1 -0
  43. package/dist/tsup/client/mod.cjs +9 -9
  44. package/dist/tsup/client/mod.d.cts +2 -2
  45. package/dist/tsup/client/mod.d.ts +2 -2
  46. package/dist/tsup/client/mod.js +8 -8
  47. package/dist/tsup/common/log.cjs +3 -3
  48. package/dist/tsup/common/log.js +2 -2
  49. package/dist/tsup/common/websocket.cjs +4 -4
  50. package/dist/tsup/common/websocket.js +3 -3
  51. package/dist/tsup/{connection-BvE-Oq7t.d.ts → connection-BLemxi4f.d.ts} +1 -1
  52. package/dist/tsup/{connection-DTzmWwU5.d.cts → connection-CpDIydXf.d.cts} +1 -1
  53. package/dist/tsup/driver-helpers/mod.cjs +5 -5
  54. package/dist/tsup/driver-helpers/mod.d.cts +2 -2
  55. package/dist/tsup/driver-helpers/mod.d.ts +2 -2
  56. package/dist/tsup/driver-helpers/mod.js +4 -4
  57. package/dist/tsup/driver-test-suite/mod.cjs +66 -58
  58. package/dist/tsup/driver-test-suite/mod.cjs.map +1 -1
  59. package/dist/tsup/driver-test-suite/mod.d.cts +1 -1
  60. package/dist/tsup/driver-test-suite/mod.d.ts +1 -1
  61. package/dist/tsup/driver-test-suite/mod.js +24 -16
  62. package/dist/tsup/driver-test-suite/mod.js.map +1 -1
  63. package/dist/tsup/inspector/mod.cjs +7 -5
  64. package/dist/tsup/inspector/mod.cjs.map +1 -1
  65. package/dist/tsup/inspector/mod.js +9 -7
  66. package/dist/tsup/mod.cjs +11 -8
  67. package/dist/tsup/mod.cjs.map +1 -1
  68. package/dist/tsup/mod.d.cts +52 -7
  69. package/dist/tsup/mod.d.ts +52 -7
  70. package/dist/tsup/mod.js +17 -14
  71. package/dist/tsup/test/mod.cjs +11 -9
  72. package/dist/tsup/test/mod.cjs.map +1 -1
  73. package/dist/tsup/test/mod.d.cts +1 -1
  74. package/dist/tsup/test/mod.d.ts +1 -1
  75. package/dist/tsup/test/mod.js +10 -8
  76. package/dist/tsup/utils.cjs +2 -2
  77. package/dist/tsup/utils.js +1 -1
  78. package/package.json +1 -1
  79. package/src/actor/mod.ts +5 -3
  80. package/src/actor/router-endpoints.ts +5 -32
  81. package/src/actor/router.ts +9 -8
  82. package/src/client/actor-conn.ts +9 -8
  83. package/src/client/actor-handle.ts +0 -1
  84. package/src/client/client.ts +1 -1
  85. package/src/client/raw-utils.ts +1 -1
  86. package/src/client/utils.ts +1 -1
  87. package/src/common/actor-router-consts.ts +38 -0
  88. package/src/driver-helpers/mod.ts +1 -1
  89. package/src/driver-test-suite/test-inline-client-driver.ts +4 -4
  90. package/src/driver-test-suite/utils.ts +7 -2
  91. package/src/drivers/engine/actor-driver.ts +18 -17
  92. package/src/manager/driver.ts +1 -1
  93. package/src/manager/protocol/query.ts +1 -1
  94. package/src/registry/mod.ts +7 -2
  95. package/src/registry/serve.ts +8 -3
  96. package/src/remote-manager-driver/actor-websocket-client.ts +2 -2
  97. package/src/remote-manager-driver/mod.ts +2 -5
  98. package/dist/tsup/chunk-2MD57QF4.js +0 -1794
  99. package/dist/tsup/chunk-2MD57QF4.js.map +0 -1
  100. package/dist/tsup/chunk-B2QGJGZQ.js +0 -338
  101. package/dist/tsup/chunk-B2QGJGZQ.js.map +0 -1
  102. package/dist/tsup/chunk-CKA54YQN.js.map +0 -1
  103. package/dist/tsup/chunk-IRMBWX36.cjs +0 -1794
  104. package/dist/tsup/chunk-IRMBWX36.cjs.map +0 -1
  105. package/dist/tsup/chunk-L7QRXNWP.js.map +0 -1
  106. package/dist/tsup/chunk-LZIBTLEY.cjs.map +0 -1
  107. package/dist/tsup/chunk-MRZS2J4X.cjs +0 -6562
  108. package/dist/tsup/chunk-MRZS2J4X.cjs.map +0 -1
  109. package/dist/tsup/chunk-RM2SVURR.cjs +0 -338
  110. package/dist/tsup/chunk-RM2SVURR.cjs.map +0 -1
  111. package/dist/tsup/router-endpoints-CctffZNL.d.cts +0 -65
  112. package/dist/tsup/router-endpoints-DFm1BglJ.d.ts +0 -65
  113. /package/dist/tsup/{chunk-YW6Y6VNE.js.map → chunk-G75SVQON.js.map} +0 -0
  114. /package/dist/tsup/{chunk-PG3K2LI7.js.map → chunk-VCEHU56K.js.map} +0 -0
  115. /package/dist/tsup/{chunk-I5VTWPHW.js.map → chunk-VPV4MWXR.js.map} +0 -0
  116. /package/dist/tsup/{chunk-WNGOBAA7.js.map → chunk-WC2PSJWN.js.map} +0 -0
@@ -1,34 +1,37 @@
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(); } }
2
2
 
3
- var _chunkFGFT4FVXcjs = require('../chunk-FGFT4FVX.cjs');
3
+ var _chunk6P6RA47Ncjs = require('../chunk-6P6RA47N.cjs');
4
4
 
5
5
 
6
- var _chunkD7NWUCRKcjs = require('../chunk-D7NWUCRK.cjs');
7
6
 
7
+ var _chunkTWGATZ3Xcjs = require('../chunk-TWGATZ3X.cjs');
8
8
 
9
9
 
10
10
 
11
+ var _chunkKUPQZYUQcjs = require('../chunk-KUPQZYUQ.cjs');
11
12
 
12
- var _chunkMRZS2J4Xcjs = require('../chunk-MRZS2J4X.cjs');
13
13
 
14
+ var _chunkUTI5NCEScjs = require('../chunk-UTI5NCES.cjs');
14
15
 
15
16
 
16
- var _chunkLZIBTLEYcjs = require('../chunk-LZIBTLEY.cjs');
17
17
 
18
+ var _chunkUFWAK3X2cjs = require('../chunk-UFWAK3X2.cjs');
19
+ require('../chunk-DIAYNQTE.cjs');
18
20
 
19
- var _chunkPHSQJ6QIcjs = require('../chunk-PHSQJ6QI.cjs');
20
21
 
22
+ var _chunkKG3C7MKRcjs = require('../chunk-KG3C7MKR.cjs');
21
23
 
22
- var _chunkRM2SVURRcjs = require('../chunk-RM2SVURR.cjs');
23
24
 
25
+ var _chunkNTCUGYSDcjs = require('../chunk-NTCUGYSD.cjs');
24
26
 
25
27
 
26
28
 
27
- var _chunkIRMBWX36cjs = require('../chunk-IRMBWX36.cjs');
28
29
 
30
+ var _chunkTCUI5JFEcjs = require('../chunk-TCUI5JFE.cjs');
29
31
 
30
- var _chunk5YTI25C3cjs = require('../chunk-5YTI25C3.cjs');
31
- require('../chunk-WADSS5X4.cjs');
32
+
33
+ var _chunkMRRT2CZDcjs = require('../chunk-MRRT2CZD.cjs');
34
+ require('../chunk-5JBFVV4C.cjs');
32
35
 
33
36
 
34
37
 
@@ -43,7 +46,7 @@ var _vitest = require('vitest');
43
46
 
44
47
  // src/driver-test-suite/log.ts
45
48
  function logger() {
46
- return _chunk5YTI25C3cjs.getLogger.call(void 0, "test-suite");
49
+ return _chunkMRRT2CZDcjs.getLogger.call(void 0, "test-suite");
47
50
  }
48
51
 
49
52
  // src/driver-test-suite/tests/action-features.ts
@@ -52,6 +55,7 @@ function logger() {
52
55
  // src/driver-test-suite/utils.ts
53
56
 
54
57
 
58
+
55
59
  // src/driver-test-suite/test-inline-client-driver.ts
56
60
  var _cborx = require('cbor-x'); var cbor = _interopRequireWildcard(_cborx);
57
61
  function createTestInlineClientDriver(endpoint, encoding, transport) {
@@ -94,7 +98,7 @@ function createTestInlineClientDriver(endpoint, encoding, transport) {
94
98
  const url = `${endpoint}/.test/inline-driver/send-request/${pathWithQuery}`;
95
99
  logger().debug({ msg: "rewriting http url", from: oldUrl, to: url });
96
100
  const headers = new Headers(actorRequest.headers);
97
- headers.set(_chunkIRMBWX36cjs.HEADER_ACTOR_ID, actorId);
101
+ headers.set(_chunkTCUI5JFEcjs.HEADER_ACTOR_ID, actorId);
98
102
  const response = await fetch(
99
103
  new Request(url, {
100
104
  method: actorRequest.method,
@@ -109,7 +113,7 @@ function createTestInlineClientDriver(endpoint, encoding, transport) {
109
113
  const errorData = await clonedResponse.json();
110
114
  if (errorData.error) {
111
115
  if (typeof errorData.error === "object") {
112
- throw new (0, _chunkMRZS2J4Xcjs.ActorError)(
116
+ throw new (0, _chunkUFWAK3X2cjs.ActorError)(
113
117
  errorData.error.code,
114
118
  errorData.error.message,
115
119
  errorData.error.metadata
@@ -117,7 +121,7 @@ function createTestInlineClientDriver(endpoint, encoding, transport) {
117
121
  }
118
122
  }
119
123
  } catch (e) {
120
- if (!(e instanceof _chunkMRZS2J4Xcjs.ActorError)) {
124
+ if (!(e instanceof _chunkUFWAK3X2cjs.ActorError)) {
121
125
  return response;
122
126
  }
123
127
  throw e;
@@ -126,7 +130,7 @@ function createTestInlineClientDriver(endpoint, encoding, transport) {
126
130
  return response;
127
131
  },
128
132
  async openWebSocket(path, actorId, encoding2, params) {
129
- const WebSocket2 = await _chunkPHSQJ6QIcjs.importWebSocket.call(void 0, );
133
+ const WebSocket2 = await _chunkKG3C7MKRcjs.importWebSocket.call(void 0, );
130
134
  const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
131
135
  logger().debug({
132
136
  msg: "creating websocket connection via test inline driver"
@@ -504,14 +508,14 @@ async function makeInlineRequest(endpoint, encoding, transport, method, args) {
504
508
  if ("ok" in callResponse) {
505
509
  return callResponse.ok;
506
510
  } else if ("err" in callResponse) {
507
- throw new (0, _chunkMRZS2J4Xcjs.ActorError)(
511
+ throw new (0, _chunkUFWAK3X2cjs.ActorError)(
508
512
  callResponse.err.group,
509
513
  callResponse.err.code,
510
514
  callResponse.err.message,
511
515
  callResponse.err.metadata
512
516
  );
513
517
  } else {
514
- _chunkIRMBWX36cjs.assertUnreachable.call(void 0, callResponse);
518
+ _chunkTCUI5JFEcjs.assertUnreachable.call(void 0, callResponse);
515
519
  }
516
520
  }
517
521
 
@@ -526,7 +530,7 @@ async function setupDriverTest(c, driverTestConfig) {
526
530
  c.onTestFinished(cleanup);
527
531
  let client;
528
532
  if (driverTestConfig.clientType === "http") {
529
- client = _chunkD7NWUCRKcjs.createClient.call(void 0, {
533
+ client = _chunkUTI5NCEScjs.createClient.call(void 0, {
530
534
  endpoint,
531
535
  namespace,
532
536
  runnerName,
@@ -538,9 +542,13 @@ async function setupDriverTest(c, driverTestConfig) {
538
542
  "bare",
539
543
  _nullishCoalesce(driverTestConfig.transport, () => ( "websocket"))
540
544
  );
541
- client = _chunkMRZS2J4Xcjs.createClientWithDriver.call(void 0, managerDriver);
545
+ _invariant2.default.call(void 0, driverTestConfig.transport, "missing transport");
546
+ const runConfig = _chunkNTCUGYSDcjs.RunConfigSchema.parse({
547
+ transport: driverTestConfig.transport
548
+ });
549
+ client = _chunkUFWAK3X2cjs.createClientWithDriver.call(void 0, managerDriver, runConfig);
542
550
  } else {
543
- _chunkIRMBWX36cjs.assertUnreachable.call(void 0, driverTestConfig.clientType);
551
+ _chunkTCUI5JFEcjs.assertUnreachable.call(void 0, driverTestConfig.clientType);
544
552
  }
545
553
  if (!driverTestConfig.HACK_skipCleanupNet) {
546
554
  c.onTestFinished(async () => await client.dispose());
@@ -1071,7 +1079,7 @@ function runActorScheduleTests(driverTestConfig) {
1071
1079
 
1072
1080
  // fixtures/driver-test-suite/sleep.ts
1073
1081
  var SLEEP_TIMEOUT = 500;
1074
- var sleep = _chunkMRZS2J4Xcjs.actor.call(void 0, {
1082
+ var sleep = _chunkTWGATZ3Xcjs.actor.call(void 0, {
1075
1083
  state: { startCount: 0, sleepCount: 0 },
1076
1084
  onStart: (c) => {
1077
1085
  c.state.startCount += 1;
@@ -1097,7 +1105,7 @@ var sleep = _chunkMRZS2J4Xcjs.actor.call(void 0, {
1097
1105
  sleepTimeout: SLEEP_TIMEOUT
1098
1106
  }
1099
1107
  });
1100
- var sleepWithLongRpc = _chunkMRZS2J4Xcjs.actor.call(void 0, {
1108
+ var sleepWithLongRpc = _chunkTWGATZ3Xcjs.actor.call(void 0, {
1101
1109
  state: { startCount: 0, sleepCount: 0 },
1102
1110
  createVars: () => ({}),
1103
1111
  onStart: (c) => {
@@ -1126,7 +1134,7 @@ var sleepWithLongRpc = _chunkMRZS2J4Xcjs.actor.call(void 0, {
1126
1134
  sleepTimeout: SLEEP_TIMEOUT
1127
1135
  }
1128
1136
  });
1129
- var sleepWithRawHttp = _chunkMRZS2J4Xcjs.actor.call(void 0, {
1137
+ var sleepWithRawHttp = _chunkTWGATZ3Xcjs.actor.call(void 0, {
1130
1138
  state: { startCount: 0, sleepCount: 0, requestCount: 0 },
1131
1139
  onStart: (c) => {
1132
1140
  c.state.startCount += 1;
@@ -1161,7 +1169,7 @@ var sleepWithRawHttp = _chunkMRZS2J4Xcjs.actor.call(void 0, {
1161
1169
  sleepTimeout: SLEEP_TIMEOUT
1162
1170
  }
1163
1171
  });
1164
- var sleepWithRawWebSocket = _chunkMRZS2J4Xcjs.actor.call(void 0, {
1172
+ var sleepWithRawWebSocket = _chunkTWGATZ3Xcjs.actor.call(void 0, {
1165
1173
  state: { startCount: 0, sleepCount: 0, connectionCount: 0 },
1166
1174
  onStart: (c) => {
1167
1175
  c.state.startCount += 1;
@@ -1224,7 +1232,7 @@ var sleepWithRawWebSocket = _chunkMRZS2J4Xcjs.actor.call(void 0, {
1224
1232
  sleepTimeout: SLEEP_TIMEOUT
1225
1233
  }
1226
1234
  });
1227
- var sleepWithNoSleepOption = _chunkMRZS2J4Xcjs.actor.call(void 0, {
1235
+ var sleepWithNoSleepOption = _chunkTWGATZ3Xcjs.actor.call(void 0, {
1228
1236
  state: { startCount: 0, sleepCount: 0 },
1229
1237
  onStart: (c) => {
1230
1238
  c.state.startCount += 1;
@@ -1935,7 +1943,7 @@ function runActorInspectorTests(driverTestConfig) {
1935
1943
  _vitest.describe.call(void 0, "Manager Inspector", () => {
1936
1944
  _vitest.test.call(void 0, "should respond to ping", async (c) => {
1937
1945
  const { endpoint } = await setupDriverTest(c, driverTestConfig);
1938
- const http = _chunkLZIBTLEYcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
1946
+ const http = _chunkKUPQZYUQcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
1939
1947
  headers: {
1940
1948
  Authorization: `Bearer token`
1941
1949
  }
@@ -1949,7 +1957,7 @@ function runActorInspectorTests(driverTestConfig) {
1949
1957
  const { client, endpoint } = await setupDriverTest(c, driverTestConfig);
1950
1958
  await client.counter.create(["test-actor-1"]);
1951
1959
  await client.counter.create(["test-actor-2"]);
1952
- const http = _chunkLZIBTLEYcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
1960
+ const http = _chunkKUPQZYUQcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
1953
1961
  headers: {
1954
1962
  Authorization: `Bearer token`
1955
1963
  }
@@ -1972,7 +1980,7 @@ function runActorInspectorTests(driverTestConfig) {
1972
1980
  const actorKey2 = ["test-cursor-2"];
1973
1981
  await client.counter.create(actorKey1);
1974
1982
  await client.counter.create(actorKey2);
1975
- const http = _chunkLZIBTLEYcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
1983
+ const http = _chunkKUPQZYUQcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
1976
1984
  headers: {
1977
1985
  Authorization: `Bearer token`
1978
1986
  }
@@ -1997,7 +2005,7 @@ function runActorInspectorTests(driverTestConfig) {
1997
2005
  });
1998
2006
  _vitest.test.call(void 0, "should handle invalid limit parameter", async (c) => {
1999
2007
  const { endpoint } = await setupDriverTest(c, driverTestConfig);
2000
- const http = _chunkLZIBTLEYcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2008
+ const http = _chunkKUPQZYUQcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2001
2009
  headers: {
2002
2010
  Authorization: `Bearer token`
2003
2011
  }
@@ -2009,7 +2017,7 @@ function runActorInspectorTests(driverTestConfig) {
2009
2017
  });
2010
2018
  _vitest.test.call(void 0, "should create a new actor", async (c) => {
2011
2019
  const { endpoint } = await setupDriverTest(c, driverTestConfig);
2012
- const http = _chunkLZIBTLEYcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2020
+ const http = _chunkKUPQZYUQcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2013
2021
  headers: {
2014
2022
  Authorization: `Bearer token`
2015
2023
  }
@@ -2033,7 +2041,7 @@ function runActorInspectorTests(driverTestConfig) {
2033
2041
  });
2034
2042
  _vitest.test.call(void 0, "should get builds", async (c) => {
2035
2043
  const { endpoint } = await setupDriverTest(c, driverTestConfig);
2036
- const http = _chunkLZIBTLEYcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2044
+ const http = _chunkKUPQZYUQcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2037
2045
  headers: {
2038
2046
  Authorization: `Bearer token`
2039
2047
  }
@@ -2051,7 +2059,7 @@ function runActorInspectorTests(driverTestConfig) {
2051
2059
  const { client, endpoint } = await setupDriverTest(c, driverTestConfig);
2052
2060
  const handle = await client.counter.create(["test-get-by-id"]);
2053
2061
  const actorId = await handle.resolve();
2054
- const http = _chunkLZIBTLEYcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2062
+ const http = _chunkKUPQZYUQcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2055
2063
  headers: {
2056
2064
  Authorization: `Bearer token`
2057
2065
  }
@@ -2065,7 +2073,7 @@ function runActorInspectorTests(driverTestConfig) {
2065
2073
  });
2066
2074
  _vitest.test.call(void 0, "should return 404 for non-existent actor", async (c) => {
2067
2075
  const { endpoint } = await setupDriverTest(c, driverTestConfig);
2068
- const http = _chunkLZIBTLEYcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2076
+ const http = _chunkKUPQZYUQcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2069
2077
  headers: {
2070
2078
  Authorization: `Bearer token`
2071
2079
  }
@@ -2081,7 +2089,7 @@ function runActorInspectorTests(driverTestConfig) {
2081
2089
  const { client, endpoint } = await setupDriverTest(c, driverTestConfig);
2082
2090
  const handle = await client.counter.create(["test-bootstrap"]);
2083
2091
  await handle.resolve();
2084
- const http = _chunkLZIBTLEYcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2092
+ const http = _chunkKUPQZYUQcjs.createManagerInspectorClient.call(void 0, `${endpoint}/inspect`, {
2085
2093
  headers: {
2086
2094
  Authorization: `Bearer token`
2087
2095
  }
@@ -2103,10 +2111,10 @@ function runActorInspectorTests(driverTestConfig) {
2103
2111
  _vitest.test.call(void 0, "should handle actor not found", async (c) => {
2104
2112
  const { endpoint } = await setupDriverTest(c, driverTestConfig);
2105
2113
  const actorId = "non-existing";
2106
- const http = _chunkLZIBTLEYcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2114
+ const http = _chunkKUPQZYUQcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2107
2115
  headers: {
2108
2116
  Authorization: `Bearer token`,
2109
- [_chunkIRMBWX36cjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2117
+ [_chunkTCUI5JFEcjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2110
2118
  getForId: { name: "counter", actorId }
2111
2119
  })
2112
2120
  }
@@ -2118,10 +2126,10 @@ function runActorInspectorTests(driverTestConfig) {
2118
2126
  const { client, endpoint } = await setupDriverTest(c, driverTestConfig);
2119
2127
  const handle = await client.counter.create(["test-ping"]);
2120
2128
  const actorId = await handle.resolve();
2121
- const http = _chunkLZIBTLEYcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2129
+ const http = _chunkKUPQZYUQcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2122
2130
  headers: {
2123
2131
  Authorization: `Bearer token`,
2124
- [_chunkIRMBWX36cjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2132
+ [_chunkTCUI5JFEcjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2125
2133
  getForId: { name: "counter", actorId }
2126
2134
  })
2127
2135
  }
@@ -2136,10 +2144,10 @@ function runActorInspectorTests(driverTestConfig) {
2136
2144
  const handle = await client.counter.create(["test-state"]);
2137
2145
  const actorId = await handle.resolve();
2138
2146
  await handle.increment(5);
2139
- const http = _chunkLZIBTLEYcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2147
+ const http = _chunkKUPQZYUQcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2140
2148
  headers: {
2141
2149
  Authorization: `Bearer token`,
2142
- [_chunkIRMBWX36cjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2150
+ [_chunkTCUI5JFEcjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2143
2151
  getForId: { name: "counter", actorId }
2144
2152
  })
2145
2153
  }
@@ -2158,10 +2166,10 @@ function runActorInspectorTests(driverTestConfig) {
2158
2166
  const { client, endpoint } = await setupDriverTest(c, driverTestConfig);
2159
2167
  const handle = await client.counter.create(["test-state-replace"]);
2160
2168
  const actorId = await handle.resolve();
2161
- const http = _chunkLZIBTLEYcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2169
+ const http = _chunkKUPQZYUQcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2162
2170
  headers: {
2163
2171
  Authorization: `Bearer token`,
2164
- [_chunkIRMBWX36cjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2172
+ [_chunkTCUI5JFEcjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2165
2173
  getForId: { name: "counter", actorId }
2166
2174
  })
2167
2175
  }
@@ -2183,10 +2191,10 @@ function runActorInspectorTests(driverTestConfig) {
2183
2191
  const handle = await client.counter.create(["test-state-patch"]);
2184
2192
  const actorId = await handle.resolve();
2185
2193
  await handle.increment(3);
2186
- const http = _chunkLZIBTLEYcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2194
+ const http = _chunkKUPQZYUQcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2187
2195
  headers: {
2188
2196
  Authorization: `Bearer token`,
2189
- [_chunkIRMBWX36cjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2197
+ [_chunkTCUI5JFEcjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2190
2198
  getForId: { name: "counter", actorId }
2191
2199
  })
2192
2200
  }
@@ -2217,10 +2225,10 @@ function runActorInspectorTests(driverTestConfig) {
2217
2225
  const actorId = await handle.resolve();
2218
2226
  handle.connect();
2219
2227
  await handle.increment(10);
2220
- const http = _chunkLZIBTLEYcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2228
+ const http = _chunkKUPQZYUQcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2221
2229
  headers: {
2222
2230
  Authorization: `Bearer token`,
2223
- [_chunkIRMBWX36cjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2231
+ [_chunkTCUI5JFEcjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2224
2232
  getForId: { name: "counter", actorId }
2225
2233
  })
2226
2234
  }
@@ -2242,10 +2250,10 @@ function runActorInspectorTests(driverTestConfig) {
2242
2250
  const actorId = await handle.resolve();
2243
2251
  handle.connect();
2244
2252
  await handle.increment(10);
2245
- const http = _chunkLZIBTLEYcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2253
+ const http = _chunkKUPQZYUQcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2246
2254
  headers: {
2247
2255
  Authorization: `Bearer token`,
2248
- [_chunkIRMBWX36cjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2256
+ [_chunkTCUI5JFEcjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2249
2257
  getForId: { name: "counter", actorId }
2250
2258
  })
2251
2259
  }
@@ -2268,10 +2276,10 @@ function runActorInspectorTests(driverTestConfig) {
2268
2276
  const actorId = await handle.resolve();
2269
2277
  handle.connect();
2270
2278
  await handle.increment(10);
2271
- const http = _chunkLZIBTLEYcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2279
+ const http = _chunkKUPQZYUQcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2272
2280
  headers: {
2273
2281
  Authorization: `Bearer token`,
2274
- [_chunkIRMBWX36cjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2282
+ [_chunkTCUI5JFEcjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2275
2283
  getForId: { name: "counter", actorId }
2276
2284
  })
2277
2285
  }
@@ -2296,10 +2304,10 @@ function runActorInspectorTests(driverTestConfig) {
2296
2304
  const { client, endpoint } = await setupDriverTest(c, driverTestConfig);
2297
2305
  const handle = await client.counter.create(["test-rpcs"]);
2298
2306
  const actorId = await handle.resolve();
2299
- const http = _chunkLZIBTLEYcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2307
+ const http = _chunkKUPQZYUQcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2300
2308
  headers: {
2301
2309
  Authorization: `Bearer token`,
2302
- [_chunkIRMBWX36cjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2310
+ [_chunkTCUI5JFEcjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2303
2311
  getForId: { name: "counter", actorId }
2304
2312
  })
2305
2313
  }
@@ -2317,10 +2325,10 @@ function runActorInspectorTests(driverTestConfig) {
2317
2325
  const { client, endpoint } = await setupDriverTest(c, driverTestConfig);
2318
2326
  const handle = await client.counter.create(["test-db"]);
2319
2327
  const actorId = await handle.resolve();
2320
- const http = _chunkLZIBTLEYcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2328
+ const http = _chunkKUPQZYUQcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2321
2329
  headers: {
2322
2330
  Authorization: `Bearer token`,
2323
- [_chunkIRMBWX36cjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2331
+ [_chunkTCUI5JFEcjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2324
2332
  getForId: { name: "counter", actorId }
2325
2333
  })
2326
2334
  }
@@ -2341,10 +2349,10 @@ function runActorInspectorTests(driverTestConfig) {
2341
2349
  const { client, endpoint } = await setupDriverTest(c, driverTestConfig);
2342
2350
  const handle = await client.counter.create(["test-db-query"]);
2343
2351
  const actorId = await handle.resolve();
2344
- const http = _chunkLZIBTLEYcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2352
+ const http = _chunkKUPQZYUQcjs.createActorInspectorClient.call(void 0, `${endpoint}/actors/inspect`, {
2345
2353
  headers: {
2346
2354
  Authorization: `Bearer token`,
2347
- [_chunkIRMBWX36cjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2355
+ [_chunkTCUI5JFEcjs.HEADER_ACTOR_QUERY]: JSON.stringify({
2348
2356
  getForId: { name: "counter", actorId }
2349
2357
  })
2350
2358
  }
@@ -3828,7 +3836,7 @@ async function createTestRuntime(registryPath, driverFactory) {
3828
3836
  };
3829
3837
  } else {
3830
3838
  let upgradeWebSocket;
3831
- const config = _chunkRM2SVURRcjs.RunConfigSchema.parse({
3839
+ const config = _chunkNTCUGYSDcjs.RunConfigSchema.parse({
3832
3840
  driver,
3833
3841
  getUpgradeWebSocket: () => upgradeWebSocket,
3834
3842
  inspector: {
@@ -3837,7 +3845,7 @@ async function createTestRuntime(registryPath, driverFactory) {
3837
3845
  }
3838
3846
  });
3839
3847
  const managerDriver = driver.manager(registry.config, config);
3840
- const { router } = _chunkMRZS2J4Xcjs.createManagerRouter.call(void 0,
3848
+ const { router } = _chunkTWGATZ3Xcjs.createManagerRouter.call(void 0,
3841
3849
  registry.config,
3842
3850
  config,
3843
3851
  managerDriver,
@@ -3845,7 +3853,7 @@ async function createTestRuntime(registryPath, driverFactory) {
3845
3853
  );
3846
3854
  const nodeWebSocket = _nodews.createNodeWebSocket.call(void 0, { app: router });
3847
3855
  upgradeWebSocket = nodeWebSocket.upgradeWebSocket;
3848
- const port = await _chunkFGFT4FVXcjs.getPort.call(void 0, );
3856
+ const port = await _chunk6P6RA47Ncjs.getPort.call(void 0, );
3849
3857
  const server = _nodeserver.serve.call(void 0, {
3850
3858
  fetch: router.fetch,
3851
3859
  hostname: "127.0.0.1",