rivetkit 2.3.8 → 2.3.9
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.
- package/dist/browser/client.js +1 -1
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.js +1 -1
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/agent-os/index.cjs +1 -1
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.js +1 -1
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-5MJPN3QU.cjs → chunk-3IDKUXQT.cjs} +139 -139
- package/dist/tsup/{chunk-5MJPN3QU.cjs.map → chunk-3IDKUXQT.cjs.map} +1 -1
- package/dist/tsup/{chunk-F6GCLL5Z.cjs → chunk-AVUMOGUE.cjs} +7 -7
- package/dist/tsup/{chunk-F6GCLL5Z.cjs.map → chunk-AVUMOGUE.cjs.map} +1 -1
- package/dist/tsup/{chunk-MY6BRV3S.js → chunk-BQU4XTKM.js} +3 -3
- package/dist/tsup/{chunk-HWBISPRP.js → chunk-CQ23UFQ4.js} +2 -2
- package/dist/tsup/{chunk-IJMVVULS.cjs → chunk-GZ5DYSIR.cjs} +4 -4
- package/dist/tsup/{chunk-IJMVVULS.cjs.map → chunk-GZ5DYSIR.cjs.map} +1 -1
- package/dist/tsup/{chunk-TMTJPSHQ.cjs → chunk-KPP2YRS5.cjs} +9 -9
- package/dist/tsup/{chunk-TMTJPSHQ.cjs.map → chunk-KPP2YRS5.cjs.map} +1 -1
- package/dist/tsup/{chunk-YFXQ7DBH.js → chunk-KVKWTOW7.js} +3 -3
- package/dist/tsup/{chunk-NUMGL52R.cjs → chunk-M4R2O5NJ.cjs} +2 -2
- package/dist/tsup/{chunk-NUMGL52R.cjs.map → chunk-M4R2O5NJ.cjs.map} +1 -1
- package/dist/tsup/{chunk-BL6ERZQO.js → chunk-MQDQ3A72.js} +6 -6
- package/dist/tsup/{chunk-7TNEDX3Y.cjs → chunk-S57DMBTM.cjs} +3 -3
- package/dist/tsup/{chunk-7TNEDX3Y.cjs.map → chunk-S57DMBTM.cjs.map} +1 -1
- package/dist/tsup/{chunk-ZKDZW5DQ.js → chunk-UBYPRYJR.js} +2 -2
- package/dist/tsup/{chunk-ZKDZW5DQ.js.map → chunk-UBYPRYJR.js.map} +1 -1
- package/dist/tsup/{chunk-V7PJYBA5.js → chunk-X25YYVFL.js} +2 -2
- package/dist/tsup/client/mod.cjs +5 -5
- package/dist/tsup/client/mod.js +4 -4
- package/dist/tsup/common/log.cjs +2 -2
- package/dist/tsup/common/log.js +1 -1
- package/dist/tsup/common/websocket.cjs +3 -3
- package/dist/tsup/common/websocket.js +2 -2
- package/dist/tsup/db/drizzle.cjs +2 -2
- package/dist/tsup/db/drizzle.js +1 -1
- package/dist/tsup/db/mod.cjs +2 -2
- package/dist/tsup/db/mod.js +1 -1
- package/dist/tsup/inspector/mod.cjs +4 -4
- package/dist/tsup/inspector/mod.js +3 -3
- package/dist/tsup/mod.cjs +68 -68
- package/dist/tsup/mod.js +4 -4
- package/dist/tsup/test/mod.cjs +6 -6
- package/dist/tsup/test/mod.js +4 -4
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +6 -6
- package/dist/tsup/workflow/mod.js +3 -3
- package/package.json +8 -8
- /package/dist/tsup/{chunk-MY6BRV3S.js.map → chunk-BQU4XTKM.js.map} +0 -0
- /package/dist/tsup/{chunk-HWBISPRP.js.map → chunk-CQ23UFQ4.js.map} +0 -0
- /package/dist/tsup/{chunk-YFXQ7DBH.js.map → chunk-KVKWTOW7.js.map} +0 -0
- /package/dist/tsup/{chunk-BL6ERZQO.js.map → chunk-MQDQ3A72.js.map} +0 -0
- /package/dist/tsup/{chunk-V7PJYBA5.js.map → chunk-X25YYVFL.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
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; } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKPP2YRS5cjs = require('../chunk-KPP2YRS5.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-
|
|
7
|
+
var _chunkGZ5DYSIRcjs = require('../chunk-GZ5DYSIR.cjs');
|
|
8
|
+
require('../chunk-M4R2O5NJ.cjs');
|
|
9
9
|
require('../chunk-4FC7TVS6.cjs');
|
|
10
10
|
|
|
11
11
|
// src/common/bare/generated/inspector/v5.ts
|
|
@@ -795,5 +795,5 @@ function decodeToClient(bytes) {
|
|
|
795
795
|
|
|
796
796
|
|
|
797
797
|
|
|
798
|
-
exports.createWorkflowInspectorAdapter =
|
|
798
|
+
exports.createWorkflowInspectorAdapter = _chunkKPP2YRS5cjs.createWorkflowInspectorAdapter; exports.decodeToClient = decodeToClient; exports.decodeToServer = decodeToServer; exports.decodeWorkflowHistoryTransport = _chunkGZ5DYSIRcjs.decodeWorkflowHistoryTransport; exports.encodeToClient = encodeToClient; exports.encodeToServer = encodeToServer; exports.encodeWorkflowHistoryTransport = _chunkGZ5DYSIRcjs.encodeWorkflowHistoryTransport; exports.readActionRequest = readActionRequest; exports.readActionResponse = readActionResponse; exports.readConnection = readConnection; exports.readConnectionsRequest = readConnectionsRequest; exports.readConnectionsResponse = readConnectionsResponse; exports.readConnectionsUpdated = readConnectionsUpdated; exports.readDatabaseSchemaRequest = readDatabaseSchemaRequest; exports.readDatabaseSchemaResponse = readDatabaseSchemaResponse; exports.readDatabaseTableRowsRequest = readDatabaseTableRowsRequest; exports.readDatabaseTableRowsResponse = readDatabaseTableRowsResponse; exports.readError = readError; exports.readInit = readInit; exports.readPatchStateRequest = readPatchStateRequest; exports.readQueueMessageSummary = readQueueMessageSummary; exports.readQueueRequest = readQueueRequest; exports.readQueueResponse = readQueueResponse; exports.readQueueStatus = readQueueStatus; exports.readQueueUpdated = readQueueUpdated; exports.readRpcsListRequest = readRpcsListRequest; exports.readRpcsListResponse = readRpcsListResponse; exports.readState = readState; exports.readStateRequest = readStateRequest; exports.readStateResponse = readStateResponse; exports.readStateUpdated = readStateUpdated; exports.readTabConfigEntry = readTabConfigEntry; exports.readToClient = readToClient; exports.readToClientBody = readToClientBody; exports.readToServer = readToServer; exports.readToServerBody = readToServerBody; exports.readTraceQueryRequest = readTraceQueryRequest; exports.readTraceQueryResponse = readTraceQueryResponse; exports.readWorkflowHistory = readWorkflowHistory; exports.readWorkflowHistoryRequest = readWorkflowHistoryRequest; exports.readWorkflowHistoryResponse = readWorkflowHistoryResponse; exports.readWorkflowHistoryUpdated = readWorkflowHistoryUpdated; exports.readWorkflowReplayRequest = readWorkflowReplayRequest; exports.readWorkflowReplayResponse = readWorkflowReplayResponse; exports.writeActionRequest = writeActionRequest; exports.writeActionResponse = writeActionResponse; exports.writeConnection = writeConnection; exports.writeConnectionsRequest = writeConnectionsRequest; exports.writeConnectionsResponse = writeConnectionsResponse; exports.writeConnectionsUpdated = writeConnectionsUpdated; exports.writeDatabaseSchemaRequest = writeDatabaseSchemaRequest; exports.writeDatabaseSchemaResponse = writeDatabaseSchemaResponse; exports.writeDatabaseTableRowsRequest = writeDatabaseTableRowsRequest; exports.writeDatabaseTableRowsResponse = writeDatabaseTableRowsResponse; exports.writeError = writeError; exports.writeInit = writeInit; exports.writePatchStateRequest = writePatchStateRequest; exports.writeQueueMessageSummary = writeQueueMessageSummary; exports.writeQueueRequest = writeQueueRequest; exports.writeQueueResponse = writeQueueResponse; exports.writeQueueStatus = writeQueueStatus; exports.writeQueueUpdated = writeQueueUpdated; exports.writeRpcsListRequest = writeRpcsListRequest; exports.writeRpcsListResponse = writeRpcsListResponse; exports.writeState = writeState; exports.writeStateRequest = writeStateRequest; exports.writeStateResponse = writeStateResponse; exports.writeStateUpdated = writeStateUpdated; exports.writeTabConfigEntry = writeTabConfigEntry; exports.writeToClient = writeToClient; exports.writeToClientBody = writeToClientBody; exports.writeToServer = writeToServer; exports.writeToServerBody = writeToServerBody; exports.writeTraceQueryRequest = writeTraceQueryRequest; exports.writeTraceQueryResponse = writeTraceQueryResponse; exports.writeWorkflowHistory = writeWorkflowHistory; exports.writeWorkflowHistoryRequest = writeWorkflowHistoryRequest; exports.writeWorkflowHistoryResponse = writeWorkflowHistoryResponse; exports.writeWorkflowHistoryUpdated = writeWorkflowHistoryUpdated; exports.writeWorkflowReplayRequest = writeWorkflowReplayRequest; exports.writeWorkflowReplayResponse = writeWorkflowReplayResponse;
|
|
799
799
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkflowInspectorAdapter
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BQU4XTKM.js";
|
|
4
4
|
import {
|
|
5
5
|
decodeWorkflowHistoryTransport,
|
|
6
6
|
encodeWorkflowHistoryTransport
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-CQ23UFQ4.js";
|
|
8
|
+
import "../chunk-UBYPRYJR.js";
|
|
9
9
|
import "../chunk-ZZ3WBRPD.js";
|
|
10
10
|
|
|
11
11
|
// src/common/bare/generated/inspector/v5.ts
|
package/dist/tsup/mod.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } var _class; var _class2; var _class3;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGZ5DYSIRcjs = require('./chunk-GZ5DYSIR.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -24,13 +24,13 @@ var _chunkHNHLBM3Ycjs = require('./chunk-HNHLBM3Y.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk3IDKUXQTcjs = require('./chunk-3IDKUXQT.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkMYWZCDMLcjs = require('./chunk-MYWZCDML.cjs');
|
|
32
|
-
require('./chunk-7TNEDX3Y.cjs');
|
|
33
32
|
require('./chunk-UEULFXUI.cjs');
|
|
33
|
+
require('./chunk-S57DMBTM.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -63,7 +63,7 @@ require('./chunk-UEULFXUI.cjs');
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var _chunkM4R2O5NJcjs = require('./chunk-M4R2O5NJ.cjs');
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
@@ -79,7 +79,7 @@ var _chunk4FC7TVS6cjs = require('./chunk-4FC7TVS6.cjs');
|
|
|
79
79
|
|
|
80
80
|
// src/actor/log.ts
|
|
81
81
|
function loggerWithoutContext() {
|
|
82
|
-
return
|
|
82
|
+
return _chunkM4R2O5NJcjs.getLogger.call(void 0, "actor-runtime");
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
// src/actor/definition.ts
|
|
@@ -219,7 +219,7 @@ function validateSchemaSync(schemas, key, data) {
|
|
|
219
219
|
var _virtualwebsocket = require('@rivetkit/virtual-websocket');
|
|
220
220
|
var _ws = require('hono/ws');
|
|
221
221
|
function logger() {
|
|
222
|
-
return
|
|
222
|
+
return _chunkM4R2O5NJcjs.getLogger.call(void 0, "inline-websocket-adapter");
|
|
223
223
|
}
|
|
224
224
|
var InlineWebSocketAdapter = class {
|
|
225
225
|
#handler;
|
|
@@ -390,7 +390,7 @@ function isLocalEngineEndpoint(endpoint) {
|
|
|
390
390
|
|
|
391
391
|
// src/registry/log.ts
|
|
392
392
|
function logger2() {
|
|
393
|
-
return
|
|
393
|
+
return _chunkM4R2O5NJcjs.getLogger.call(void 0, "registry");
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
// src/serverless/configure.ts
|
|
@@ -436,8 +436,8 @@ async function configureServerlessPool(config) {
|
|
|
436
436
|
);
|
|
437
437
|
}
|
|
438
438
|
const customConfig = config.configurePool;
|
|
439
|
-
const clientConfig =
|
|
440
|
-
const dcsRes = await
|
|
439
|
+
const clientConfig = _chunk3IDKUXQTcjs.convertRegistryConfigToClientConfig.call(void 0, config);
|
|
440
|
+
const dcsRes = await _chunk3IDKUXQTcjs.getDatacenters.call(void 0, clientConfig);
|
|
441
441
|
const poolName = _nullishCoalesce(customConfig.name, () => ( "default"));
|
|
442
442
|
const serverlessToken = _nullishCoalesce(config.token, () => ( config.publicToken));
|
|
443
443
|
const headers = {
|
|
@@ -459,7 +459,7 @@ async function configureServerlessPool(config) {
|
|
|
459
459
|
metadata: _nullishCoalesce(customConfig.metadata, () => ( {})),
|
|
460
460
|
drain_on_version_upgrade: _nullishCoalesce(customConfig.drainOnVersionUpgrade, () => ( true))
|
|
461
461
|
};
|
|
462
|
-
await
|
|
462
|
+
await _chunk3IDKUXQTcjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
|
|
463
463
|
datacenters: Object.fromEntries(
|
|
464
464
|
dcsRes.datacenters.map((dc) => [dc.name, serverlessConfig])
|
|
465
465
|
)
|
|
@@ -476,7 +476,7 @@ async function configureServerlessPool(config) {
|
|
|
476
476
|
logger2().warn({
|
|
477
477
|
msg: "serverless pool configuration attempt failed",
|
|
478
478
|
attempts,
|
|
479
|
-
error:
|
|
479
|
+
error: _chunkM4R2O5NJcjs.stringifyError.call(void 0, error)
|
|
480
480
|
});
|
|
481
481
|
await sleep(CONFIGURE_RETRY_DELAY_MS);
|
|
482
482
|
}
|
|
@@ -484,7 +484,7 @@ async function configureServerlessPool(config) {
|
|
|
484
484
|
logger2().error({
|
|
485
485
|
msg: "failed to configure serverless pool, validate endpoint is configured correctly then restart this process",
|
|
486
486
|
attempts,
|
|
487
|
-
error:
|
|
487
|
+
error: _chunkM4R2O5NJcjs.stringifyError.call(void 0, lastError)
|
|
488
488
|
});
|
|
489
489
|
throw lastError;
|
|
490
490
|
}
|
|
@@ -496,20 +496,20 @@ var _zod = require('zod');
|
|
|
496
496
|
var _v4 = require('zod/v4');
|
|
497
497
|
var warnedMissingVersion = false;
|
|
498
498
|
var EnvoyConfigSchema = _v4.z.object({
|
|
499
|
-
poolName: _v4.z.string().default(() => _nullishCoalesce(
|
|
499
|
+
poolName: _v4.z.string().default(() => _nullishCoalesce(_chunkM4R2O5NJcjs.getRivetPool.call(void 0, ), () => ( "default"))),
|
|
500
500
|
version: _v4.z.number().default(() => {
|
|
501
|
-
const version =
|
|
501
|
+
const version = _chunkM4R2O5NJcjs.getRivetEnvoyVersion.call(void 0, );
|
|
502
502
|
if (version !== void 0) return version;
|
|
503
|
-
if (
|
|
503
|
+
if (_chunkM4R2O5NJcjs.getNodeEnv.call(void 0, ) === "production" && !warnedMissingVersion) {
|
|
504
504
|
warnedMissingVersion = true;
|
|
505
|
-
|
|
505
|
+
_chunkM4R2O5NJcjs.getLogger.call(void 0, "rivetkit").error(
|
|
506
506
|
"RIVET_ENVOY_VERSION is not set. Actors will not be versioned, which means they won't be drained on deploy. This is only needed when self-hosting or using a custom envoy (not needed for Rivet Compute). Set this as a build arg in your Dockerfile. See https://rivet.dev/docs/actors/versions"
|
|
507
507
|
);
|
|
508
508
|
}
|
|
509
509
|
return 1;
|
|
510
510
|
}),
|
|
511
511
|
// Deprecated.
|
|
512
|
-
totalSlots: _v4.z.number().default(() => _nullishCoalesce(
|
|
512
|
+
totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunkM4R2O5NJcjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
|
|
513
513
|
envoyKey: _v4.z.string().optional()
|
|
514
514
|
});
|
|
515
515
|
|
|
@@ -547,7 +547,7 @@ var ServerlessConfigSchema = _v4.z.object({
|
|
|
547
547
|
*
|
|
548
548
|
* Can also be set via RIVET_PUBLIC_ENDPOINT environment variable.
|
|
549
549
|
*/
|
|
550
|
-
publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
550
|
+
publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkM4R2O5NJcjs.getRivetPublicEndpoint.call(void 0, )))),
|
|
551
551
|
/**
|
|
552
552
|
* Token that clients should use when connecting via the public endpoint.
|
|
553
553
|
*
|
|
@@ -555,7 +555,7 @@ var ServerlessConfigSchema = _v4.z.object({
|
|
|
555
555
|
*
|
|
556
556
|
* Can also be specified in the publicEndpoint URL as `https://namespace:token@host`.
|
|
557
557
|
*/
|
|
558
|
-
publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
558
|
+
publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkM4R2O5NJcjs.getRivetPublicToken.call(void 0, ))))
|
|
559
559
|
// There is no publicNamespace config option because the frontend and backend
|
|
560
560
|
// cannot use different namespaces. The namespace is extracted from the
|
|
561
561
|
// publicEndpoint URL auth syntax if provided.
|
|
@@ -609,7 +609,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
609
609
|
* Runtime binding to use for RivetKit core.
|
|
610
610
|
* */
|
|
611
611
|
runtime: RuntimeKindSchema.optional().transform((val, ctx) => {
|
|
612
|
-
const rawRuntime = _nullishCoalesce(val, () => (
|
|
612
|
+
const rawRuntime = _nullishCoalesce(val, () => ( _chunkM4R2O5NJcjs.getRivetkitRuntime.call(void 0, )));
|
|
613
613
|
if (rawRuntime === void 0) {
|
|
614
614
|
return "auto";
|
|
615
615
|
}
|
|
@@ -646,7 +646,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
646
646
|
* */
|
|
647
647
|
logging: _zod.z.object({
|
|
648
648
|
baseLogger: _zod.z.custom().optional(),
|
|
649
|
-
level:
|
|
649
|
+
level: _chunkM4R2O5NJcjs.LogLevelSchema.optional()
|
|
650
650
|
}).optional().default(() => ({})),
|
|
651
651
|
// MARK: Routing
|
|
652
652
|
// // This is a function to allow for lazy configuration of upgradeWebSocket on the
|
|
@@ -664,9 +664,9 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
664
664
|
*
|
|
665
665
|
* Can also be set via RIVET_ENDPOINT environment variables.
|
|
666
666
|
*/
|
|
667
|
-
endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => (
|
|
668
|
-
token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
669
|
-
namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
667
|
+
endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunkM4R2O5NJcjs.getRivetEngine.call(void 0, ))), () => ( _chunkM4R2O5NJcjs.getRivetEndpoint.call(void 0, )))),
|
|
668
|
+
token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkM4R2O5NJcjs.getRivetToken.call(void 0, )))),
|
|
669
|
+
namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkM4R2O5NJcjs.getRivetNamespace.call(void 0, )))),
|
|
670
670
|
headers: _zod.z.record(_zod.z.string(), _zod.z.string()).optional().default({}),
|
|
671
671
|
// MARK: Client
|
|
672
672
|
// TODO:
|
|
@@ -706,21 +706,21 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
706
706
|
*
|
|
707
707
|
* Starts the full Rust engine process locally.
|
|
708
708
|
*/
|
|
709
|
-
startEngine: _zod.z.boolean().default(() =>
|
|
709
|
+
startEngine: _zod.z.boolean().default(() => _chunkM4R2O5NJcjs.getRivetRunEngine.call(void 0, )),
|
|
710
710
|
/**
|
|
711
711
|
* @experimental
|
|
712
712
|
*
|
|
713
713
|
* Host to bind the spawned local engine process to.
|
|
714
714
|
*/
|
|
715
|
-
engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(
|
|
715
|
+
engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkM4R2O5NJcjs.getRivetRunEngineHost.call(void 0, ), () => ( ENGINE_HOST))),
|
|
716
716
|
/**
|
|
717
717
|
* @experimental
|
|
718
718
|
*
|
|
719
719
|
* Port to bind the spawned local engine process to.
|
|
720
720
|
*/
|
|
721
|
-
enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(
|
|
721
|
+
enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunkM4R2O5NJcjs.getRivetRunEnginePort.call(void 0, ), () => ( ENGINE_PORT))),
|
|
722
722
|
/** @experimental */
|
|
723
|
-
engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(
|
|
723
|
+
engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkM4R2O5NJcjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunkM4R2O5NJcjs.VERSION))),
|
|
724
724
|
/**
|
|
725
725
|
* @experimental
|
|
726
726
|
*
|
|
@@ -768,7 +768,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
768
768
|
}))
|
|
769
769
|
}).transform((config, ctx) => {
|
|
770
770
|
var _a, _b, _c;
|
|
771
|
-
const isDevEnv =
|
|
771
|
+
const isDevEnv = _chunkM4R2O5NJcjs.isDev.call(void 0, );
|
|
772
772
|
const sqliteBackend = _nullishCoalesce(((_a = config.sqlite) == null ? void 0 : _a.backend), () => ( ((_b = config.test) == null ? void 0 : _b.sqliteBackend)));
|
|
773
773
|
if (config.runtime === "wasm" && sqliteBackend === "local") {
|
|
774
774
|
ctx.addIssue({
|
|
@@ -778,7 +778,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
780
|
const sqlite = config.runtime === "wasm" && config.sqlite === void 0 ? { backend: "remote" } : config.sqlite;
|
|
781
|
-
const parsedEndpoint = config.endpoint ?
|
|
781
|
+
const parsedEndpoint = config.endpoint ? _chunk3IDKUXQTcjs.tryParseEndpoint.call(void 0, ctx, {
|
|
782
782
|
endpoint: config.endpoint,
|
|
783
783
|
path: ["endpoint"],
|
|
784
784
|
namespace: config.namespace,
|
|
@@ -806,7 +806,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
806
806
|
);
|
|
807
807
|
const namespace = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.namespace), () => ( config.namespace)), () => ( "default"));
|
|
808
808
|
const token = _nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token));
|
|
809
|
-
const parsedPublicEndpoint = config.serverless.publicEndpoint ?
|
|
809
|
+
const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunk3IDKUXQTcjs.tryParseEndpoint.call(void 0, ctx, {
|
|
810
810
|
endpoint: config.serverless.publicEndpoint,
|
|
811
811
|
path: ["serverless", "publicEndpoint"]
|
|
812
812
|
}) : void 0;
|
|
@@ -909,7 +909,7 @@ var DocRegistryConfigSchema = _zod.z.object({
|
|
|
909
909
|
noWelcome: _zod.z.boolean().optional().describe("Disable the welcome message on startup. Default: false"),
|
|
910
910
|
sqlite: DocSqliteConfigSchema,
|
|
911
911
|
logging: _zod.z.object({
|
|
912
|
-
level:
|
|
912
|
+
level: _chunkM4R2O5NJcjs.LogLevelSchema.optional().describe(
|
|
913
913
|
"Log level for RivetKit. Default: 'warn'"
|
|
914
914
|
)
|
|
915
915
|
}).optional().describe("Logging configuration."),
|
|
@@ -1988,8 +1988,8 @@ function runtimeBytesToArrayBuffer(value) {
|
|
|
1988
1988
|
function buildNativeHttpRequest(init) {
|
|
1989
1989
|
var _a;
|
|
1990
1990
|
const headers = new Headers(init.headers);
|
|
1991
|
-
const originalUrl = headers.get(
|
|
1992
|
-
headers.delete(
|
|
1991
|
+
const originalUrl = headers.get(_chunk3IDKUXQTcjs.HEADER_ORIGINAL_REQUEST_URL);
|
|
1992
|
+
headers.delete(_chunk3IDKUXQTcjs.HEADER_ORIGINAL_REQUEST_URL);
|
|
1993
1993
|
const url = _nullishCoalesce(originalUrl, () => ( (init.uri.startsWith("http") ? init.uri : new URL(init.uri, "http://127.0.0.1").toString())));
|
|
1994
1994
|
const method2 = init.method.toUpperCase();
|
|
1995
1995
|
const bodyForbidden = method2 === "GET" || method2 === "HEAD";
|
|
@@ -2061,7 +2061,7 @@ async function pumpResponseBody(reader, stream) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
} catch (error) {
|
|
2063
2063
|
try {
|
|
2064
|
-
await stream.error(
|
|
2064
|
+
await stream.error(_chunkM4R2O5NJcjs.stringifyError.call(void 0, error));
|
|
2065
2065
|
} catch (streamError) {
|
|
2066
2066
|
logger2().debug({
|
|
2067
2067
|
msg: "failed to report native http response stream error",
|
|
@@ -3165,7 +3165,7 @@ async function cleanupNativeSleepRuntimeState(runtime, ctx, afterTrackedWorkDrai
|
|
|
3165
3165
|
}).catch((error) => {
|
|
3166
3166
|
logger2().warn({
|
|
3167
3167
|
msg: "deferred native sleep cleanup failed",
|
|
3168
|
-
error:
|
|
3168
|
+
error: _chunkM4R2O5NJcjs.stringifyError.call(void 0, error)
|
|
3169
3169
|
});
|
|
3170
3170
|
});
|
|
3171
3171
|
return;
|
|
@@ -3292,10 +3292,10 @@ function decodeValue(value) {
|
|
|
3292
3292
|
if (!value || value.length === 0) {
|
|
3293
3293
|
return void 0;
|
|
3294
3294
|
}
|
|
3295
|
-
return
|
|
3295
|
+
return _chunkM4R2O5NJcjs.decodeCborCompat.call(void 0, value);
|
|
3296
3296
|
}
|
|
3297
3297
|
function encodeValue(value) {
|
|
3298
|
-
return
|
|
3298
|
+
return _chunkM4R2O5NJcjs.encodeCborCompat.call(void 0, value);
|
|
3299
3299
|
}
|
|
3300
3300
|
function normalizeArgs(value) {
|
|
3301
3301
|
return Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value];
|
|
@@ -3331,7 +3331,7 @@ function isStructuredBridgeError(error) {
|
|
|
3331
3331
|
return _chunk4FC7TVS6cjs.isRivetErrorLike.call(void 0, error) && "__type" in error && (error.__type === "RivetError" || error.__type === "ActorError");
|
|
3332
3332
|
}
|
|
3333
3333
|
function encodeNativeCallbackError(error) {
|
|
3334
|
-
const structuredError = isStructuredBridgeError(error) ? error :
|
|
3334
|
+
const structuredError = isStructuredBridgeError(error) ? error : _chunkM4R2O5NJcjs.deconstructError.call(void 0, error, true);
|
|
3335
3335
|
const bridgeError = new Error(_chunk4FC7TVS6cjs.encodeBridgeRivetError.call(void 0, structuredError), {
|
|
3336
3336
|
cause: error instanceof Error ? error : void 0
|
|
3337
3337
|
});
|
|
@@ -3381,7 +3381,7 @@ function decodeWorkflowCbor(data) {
|
|
|
3381
3381
|
return null;
|
|
3382
3382
|
}
|
|
3383
3383
|
try {
|
|
3384
|
-
return
|
|
3384
|
+
return _chunkM4R2O5NJcjs.decodeCborCompat.call(void 0, new Uint8Array(data));
|
|
3385
3385
|
} catch (e6) {
|
|
3386
3386
|
return null;
|
|
3387
3387
|
}
|
|
@@ -3494,7 +3494,7 @@ function serializeWorkflowHistoryForJson(data) {
|
|
|
3494
3494
|
if (data === null) {
|
|
3495
3495
|
return null;
|
|
3496
3496
|
}
|
|
3497
|
-
const history =
|
|
3497
|
+
const history = _chunkGZ5DYSIRcjs.decodeWorkflowHistoryTransport.call(void 0, data);
|
|
3498
3498
|
return jsonSafe({
|
|
3499
3499
|
nameRegistry: [...history.nameRegistry],
|
|
3500
3500
|
entries: history.entries.map((entry) => ({
|
|
@@ -3617,12 +3617,12 @@ var NativeConnAdapter = class {
|
|
|
3617
3617
|
this.#writeState(nextValue, { writeNative: true });
|
|
3618
3618
|
},
|
|
3619
3619
|
(newValue) => {
|
|
3620
|
-
|
|
3620
|
+
_chunkM4R2O5NJcjs.assertJsonCompatValue.call(void 0, newValue);
|
|
3621
3621
|
}
|
|
3622
3622
|
);
|
|
3623
3623
|
}
|
|
3624
3624
|
set state(value) {
|
|
3625
|
-
|
|
3625
|
+
_chunkM4R2O5NJcjs.assertJsonCompatValue.call(void 0, value);
|
|
3626
3626
|
this.#writeState(value, { writeNative: true });
|
|
3627
3627
|
}
|
|
3628
3628
|
initializeState(value) {
|
|
@@ -4668,7 +4668,7 @@ var ActorContextHandleAdapter = class {
|
|
|
4668
4668
|
},
|
|
4669
4669
|
(newValue) => {
|
|
4670
4670
|
this.#assertCanMutateState();
|
|
4671
|
-
|
|
4671
|
+
_chunkM4R2O5NJcjs.assertJsonCompatValue.call(void 0, newValue);
|
|
4672
4672
|
}
|
|
4673
4673
|
);
|
|
4674
4674
|
}
|
|
@@ -4679,7 +4679,7 @@ var ActorContextHandleAdapter = class {
|
|
|
4679
4679
|
throw stateNotEnabledError();
|
|
4680
4680
|
}
|
|
4681
4681
|
this.#assertCanMutateState();
|
|
4682
|
-
|
|
4682
|
+
_chunkM4R2O5NJcjs.assertJsonCompatValue.call(void 0, value);
|
|
4683
4683
|
this.#writeState(value, { scheduleSave: true });
|
|
4684
4684
|
}
|
|
4685
4685
|
initializeState(value) {
|
|
@@ -4955,7 +4955,7 @@ var ActorContextHandleAdapter = class {
|
|
|
4955
4955
|
const trackedPromise = Promise.resolve(promise).catch((error) => {
|
|
4956
4956
|
logger2().warn({
|
|
4957
4957
|
msg: "keepAwake promise rejected",
|
|
4958
|
-
error:
|
|
4958
|
+
error: _chunkM4R2O5NJcjs.stringifyError.call(void 0, error)
|
|
4959
4959
|
});
|
|
4960
4960
|
}).then(() => null);
|
|
4961
4961
|
try {
|
|
@@ -5417,9 +5417,9 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
5417
5417
|
events: config.events,
|
|
5418
5418
|
queues: config.queues
|
|
5419
5419
|
};
|
|
5420
|
-
const createClient = () =>
|
|
5421
|
-
new (0,
|
|
5422
|
-
|
|
5420
|
+
const createClient = () => _chunk3IDKUXQTcjs.createClientWithDriver.call(void 0,
|
|
5421
|
+
new (0, _chunk3IDKUXQTcjs.RemoteEngineControlClient)(
|
|
5422
|
+
_chunk3IDKUXQTcjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
|
|
5423
5423
|
),
|
|
5424
5424
|
{ encoding: "bare" }
|
|
5425
5425
|
);
|
|
@@ -5604,7 +5604,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
5604
5604
|
400
|
|
5605
5605
|
);
|
|
5606
5606
|
}
|
|
5607
|
-
const cbor =
|
|
5607
|
+
const cbor = _chunkM4R2O5NJcjs.encodeCborCompat.call(void 0,
|
|
5608
5608
|
_nullishCoalesce(body.body, () => ( null))
|
|
5609
5609
|
);
|
|
5610
5610
|
const message = await runtime.actorQueueSend(ctx, name, cbor);
|
|
@@ -6189,7 +6189,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6189
6189
|
...request,
|
|
6190
6190
|
abortController: requestAbortController
|
|
6191
6191
|
});
|
|
6192
|
-
const rawConnParams = handlerRequest.headers.get(
|
|
6192
|
+
const rawConnParams = handlerRequest.headers.get(_chunk3IDKUXQTcjs.HEADER_CONN_PARAMS);
|
|
6193
6193
|
let requestCtx;
|
|
6194
6194
|
let conn;
|
|
6195
6195
|
let removeRequestAbortListener;
|
|
@@ -6244,7 +6244,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6244
6244
|
requestCtx,
|
|
6245
6245
|
handlerRequest
|
|
6246
6246
|
);
|
|
6247
|
-
if (!
|
|
6247
|
+
if (!_chunk3IDKUXQTcjs.isResponseLike.call(void 0, response)) {
|
|
6248
6248
|
throw new Error(
|
|
6249
6249
|
"onRequest handler must return a Response"
|
|
6250
6250
|
);
|
|
@@ -6465,7 +6465,7 @@ async function buildServeConfig(config) {
|
|
|
6465
6465
|
poolName: config.envoy.poolName,
|
|
6466
6466
|
handleInspectorHttpInRuntime: true,
|
|
6467
6467
|
serverlessBasePath: config.serverless.basePath,
|
|
6468
|
-
serverlessPackageVersion:
|
|
6468
|
+
serverlessPackageVersion: _chunkM4R2O5NJcjs.VERSION,
|
|
6469
6469
|
serverlessClientEndpoint: config.publicEndpoint,
|
|
6470
6470
|
serverlessClientNamespace: config.publicNamespace,
|
|
6471
6471
|
serverlessClientToken: config.publicToken,
|
|
@@ -6478,19 +6478,19 @@ async function buildServeConfig(config) {
|
|
|
6478
6478
|
} catch (error) {
|
|
6479
6479
|
logger2().warn({
|
|
6480
6480
|
msg: "could not resolve a local engine binary; if a local engine must be spawned it will fail with engine.binary_unavailable \u2014 set RIVET_ENGINE_BINARY_PATH or install the @rivetkit/engine-cli platform package",
|
|
6481
|
-
error:
|
|
6481
|
+
error: _chunkM4R2O5NJcjs.stringifyError.call(void 0, error)
|
|
6482
6482
|
});
|
|
6483
6483
|
}
|
|
6484
6484
|
serveConfig.engineHost = config.engineHost;
|
|
6485
6485
|
serveConfig.enginePort = config.enginePort;
|
|
6486
6486
|
if ((_a = config.test) == null ? void 0 : _a.enabled) {
|
|
6487
|
-
serveConfig.inspectorTestToken = _nullishCoalesce(
|
|
6487
|
+
serveConfig.inspectorTestToken = _nullishCoalesce(_chunkM4R2O5NJcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
|
|
6488
6488
|
}
|
|
6489
6489
|
return serveConfig;
|
|
6490
6490
|
}
|
|
6491
6491
|
async function buildRegistryWithRuntime(config, runtime) {
|
|
6492
6492
|
var _a;
|
|
6493
|
-
if (((_a = config.test) == null ? void 0 : _a.enabled) &&
|
|
6493
|
+
if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunkM4R2O5NJcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
|
|
6494
6494
|
trySetProcessEnv("_RIVET_TEST_INSPECTOR_TOKEN", "token");
|
|
6495
6495
|
}
|
|
6496
6496
|
if (runtime.kind === "napi") {
|
|
@@ -6557,7 +6557,7 @@ function createApplicationFetch(application, runtime) {
|
|
|
6557
6557
|
signal: abortController.signal
|
|
6558
6558
|
})
|
|
6559
6559
|
);
|
|
6560
|
-
if (!
|
|
6560
|
+
if (!_chunk3IDKUXQTcjs.isResponseLike.call(void 0, response)) {
|
|
6561
6561
|
throw new TypeError(
|
|
6562
6562
|
"registry.listen() application fetch must return a Response"
|
|
6563
6563
|
);
|
|
@@ -6607,7 +6607,7 @@ var Registry = class {
|
|
|
6607
6607
|
var _a;
|
|
6608
6608
|
this.#config = config;
|
|
6609
6609
|
if ((_a = config.logging) == null ? void 0 : _a.baseLogger) {
|
|
6610
|
-
|
|
6610
|
+
_chunkM4R2O5NJcjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
|
|
6611
6611
|
}
|
|
6612
6612
|
this.#buildConfiguredRegistry = _nullishCoalesce((deps == null ? void 0 : deps.buildConfiguredRegistry), () => ( buildConfiguredRegistry));
|
|
6613
6613
|
this.routes = {
|
|
@@ -6833,10 +6833,10 @@ var Registry = class {
|
|
|
6833
6833
|
* ```
|
|
6834
6834
|
*/
|
|
6835
6835
|
async listen(opts = {}) {
|
|
6836
|
-
const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => (
|
|
6837
|
-
const publicDir = _nullishCoalesce(opts.publicDir, () => (
|
|
6836
|
+
const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunkM4R2O5NJcjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
|
|
6837
|
+
const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunkM4R2O5NJcjs.getRivetkitPublicDir.call(void 0, )));
|
|
6838
6838
|
const config = this.parseConfig();
|
|
6839
|
-
if (opts.application &&
|
|
6839
|
+
if (opts.application && _chunkM4R2O5NJcjs.getRivetkitRuntimeMode.call(void 0, ) !== "serverless") {
|
|
6840
6840
|
if (config.runtime === "wasm") {
|
|
6841
6841
|
throw new Error(
|
|
6842
6842
|
"registry.listen() requires the native runtime; use an application-owned HTTP server with WebAssembly"
|
|
@@ -6915,7 +6915,7 @@ var Registry = class {
|
|
|
6915
6915
|
return jsonRouteResponse(503, {
|
|
6916
6916
|
status: "not_started",
|
|
6917
6917
|
runtime: "rivetkit",
|
|
6918
|
-
version:
|
|
6918
|
+
version: _chunkM4R2O5NJcjs.VERSION
|
|
6919
6919
|
});
|
|
6920
6920
|
}
|
|
6921
6921
|
const { runtime, registry } = configured;
|
|
@@ -6923,7 +6923,7 @@ var Registry = class {
|
|
|
6923
6923
|
return jsonRouteResponse(501, {
|
|
6924
6924
|
status: "unsupported",
|
|
6925
6925
|
runtime: "rivetkit",
|
|
6926
|
-
version:
|
|
6926
|
+
version: _chunkM4R2O5NJcjs.VERSION
|
|
6927
6927
|
});
|
|
6928
6928
|
}
|
|
6929
6929
|
const response = await runtime.registryHealth(registry);
|
|
@@ -7170,7 +7170,7 @@ var Registry = class {
|
|
|
7170
7170
|
);
|
|
7171
7171
|
}
|
|
7172
7172
|
if (this.#runtimeReadyPromise) return this.#runtimeReadyPromise;
|
|
7173
|
-
if (
|
|
7173
|
+
if (_chunkM4R2O5NJcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
|
|
7174
7174
|
return Promise.reject(
|
|
7175
7175
|
new Error(
|
|
7176
7176
|
"registry.startAndWait() requires envoy runtime mode; serverless registries become ready per request"
|
|
@@ -7240,8 +7240,8 @@ var Registry = class {
|
|
|
7240
7240
|
* ```
|
|
7241
7241
|
*/
|
|
7242
7242
|
start() {
|
|
7243
|
-
if (
|
|
7244
|
-
const publicDir = _nullishCoalesce(
|
|
7243
|
+
if (_chunkM4R2O5NJcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
|
|
7244
|
+
const publicDir = _nullishCoalesce(_chunkM4R2O5NJcjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
|
|
7245
7245
|
this.listen({ publicDir }).catch((error) => {
|
|
7246
7246
|
logger2().error({ error }, "auto-listen failed; exiting");
|
|
7247
7247
|
if (typeof process !== "undefined" && typeof process.exit === "function") {
|
|
@@ -7262,7 +7262,7 @@ var Registry = class {
|
|
|
7262
7262
|
};
|
|
7263
7263
|
console.log();
|
|
7264
7264
|
console.log(
|
|
7265
|
-
` RivetKit ${
|
|
7265
|
+
` RivetKit ${_chunkM4R2O5NJcjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
|
|
7266
7266
|
);
|
|
7267
7267
|
if (config.namespace !== "default") {
|
|
7268
7268
|
logLine("Namespace", config.namespace);
|
|
@@ -7337,5 +7337,5 @@ function setup(input) {
|
|
|
7337
7337
|
|
|
7338
7338
|
|
|
7339
7339
|
|
|
7340
|
-
exports.ALLOWED_PUBLIC_HEADERS =
|
|
7340
|
+
exports.ALLOWED_PUBLIC_HEADERS = _chunk3IDKUXQTcjs.ALLOWED_PUBLIC_HEADERS; exports.ActorDefinition = ActorDefinition; exports.ActorError = _chunk4FC7TVS6cjs.RivetError; exports.ActorsSchema = ActorsSchema; exports.DocConfigurePoolSchema = DocConfigurePoolSchema; exports.DocEnvoyConfigSchema = DocEnvoyConfigSchema; exports.DocRegistryConfigSchema = DocRegistryConfigSchema; exports.DocServerlessConfigSchema = DocServerlessConfigSchema; exports.DocSqliteConfigSchema = DocSqliteConfigSchema; exports.InlineWebSocketAdapter = InlineWebSocketAdapter; exports.Registry = Registry; exports.RegistryConfigSchema = RegistryConfigSchema; exports.RivetError = _chunk4FC7TVS6cjs.RivetError; exports.RuntimeKindSchema = RuntimeKindSchema; exports.SqliteBackendSchema = SqliteBackendSchema; exports.SqliteConfigSchema = SqliteConfigSchema; exports.TestConfigSchema = TestConfigSchema; exports.UserError = _chunk4FC7TVS6cjs.UserError; exports.WasmRuntimeConfigSchema = WasmRuntimeConfigSchema; exports.actor = actor; exports.buildActorNames = buildActorNames; exports.createClientWithDriver = _chunk3IDKUXQTcjs.createClientWithDriver; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunkM4R2O5NJcjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunkM4R2O5NJcjs.toUint8Array;
|
|
7341
7341
|
//# sourceMappingURL=mod.cjs.map
|
package/dist/tsup/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decodeWorkflowHistoryTransport
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CQ23UFQ4.js";
|
|
4
4
|
import {
|
|
5
5
|
ACTOR_CONTEXT_INTERNAL_SYMBOL,
|
|
6
6
|
ActorConfigSchema,
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
isResponseLike,
|
|
25
25
|
tryParseEndpoint,
|
|
26
26
|
updateRunnerConfig
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MQDQ3A72.js";
|
|
28
28
|
import {
|
|
29
29
|
makePrefixedKey,
|
|
30
30
|
removePrefixFromKey
|
|
31
31
|
} from "./chunk-JI6GZ2C2.js";
|
|
32
|
-
import "./chunk-V7PJYBA5.js";
|
|
33
32
|
import "./chunk-7AFZMFPQ.js";
|
|
33
|
+
import "./chunk-X25YYVFL.js";
|
|
34
34
|
import {
|
|
35
35
|
LogLevelSchema,
|
|
36
36
|
VERSION,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
parsePortEnv,
|
|
64
64
|
stringifyError,
|
|
65
65
|
toUint8Array
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-UBYPRYJR.js";
|
|
67
67
|
import {
|
|
68
68
|
INTERNAL_ERROR_CODE,
|
|
69
69
|
RivetError,
|
package/dist/tsup/test/mod.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAVUMOGUEcjs = require('../chunk-AVUMOGUE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3IDKUXQTcjs = require('../chunk-3IDKUXQT.cjs');
|
|
7
7
|
require('../chunk-MYWZCDML.cjs');
|
|
8
|
-
require('../chunk-7TNEDX3Y.cjs');
|
|
9
8
|
require('../chunk-UEULFXUI.cjs');
|
|
10
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-S57DMBTM.cjs');
|
|
10
|
+
require('../chunk-M4R2O5NJ.cjs');
|
|
11
11
|
require('../chunk-4FC7TVS6.cjs');
|
|
12
12
|
|
|
13
13
|
// src/test/ready.ts
|
|
@@ -36,8 +36,8 @@ async function setupTest(c, registry) {
|
|
|
36
36
|
registry.config.noWelcome = true;
|
|
37
37
|
registry.start();
|
|
38
38
|
await waitForRegistryReady(registry);
|
|
39
|
-
const client =
|
|
40
|
-
...
|
|
39
|
+
const client = _chunkAVUMOGUEcjs.createClient.call(void 0, {
|
|
40
|
+
..._chunk3IDKUXQTcjs.convertRegistryConfigToClientConfig.call(void 0, registry.parseConfig()),
|
|
41
41
|
disableMetadataLookup: false
|
|
42
42
|
});
|
|
43
43
|
c.onTestFinished(async () => {
|
package/dist/tsup/test/mod.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KVKWTOW7.js";
|
|
4
4
|
import {
|
|
5
5
|
convertRegistryConfigToClientConfig
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-MQDQ3A72.js";
|
|
7
7
|
import "../chunk-JI6GZ2C2.js";
|
|
8
|
-
import "../chunk-V7PJYBA5.js";
|
|
9
8
|
import "../chunk-7AFZMFPQ.js";
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-X25YYVFL.js";
|
|
10
|
+
import "../chunk-UBYPRYJR.js";
|
|
11
11
|
import "../chunk-ZZ3WBRPD.js";
|
|
12
12
|
|
|
13
13
|
// src/test/ready.ts
|
package/dist/tsup/utils.cjs
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkM4R2O5NJcjs = require('./chunk-M4R2O5NJ.cjs');
|
|
23
23
|
require('./chunk-4FC7TVS6.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
@@ -42,5 +42,5 @@ require('./chunk-4FC7TVS6.cjs');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
exports.EXTRA_ERROR_LOG =
|
|
45
|
+
exports.EXTRA_ERROR_LOG = _chunkM4R2O5NJcjs.EXTRA_ERROR_LOG; exports.SinglePromiseQueue = _chunkM4R2O5NJcjs.SinglePromiseQueue; exports.VERSION = _chunkM4R2O5NJcjs.VERSION; exports.arrayBuffersEqual = _chunkM4R2O5NJcjs.arrayBuffersEqual; exports.assertUnreachable = _chunkM4R2O5NJcjs.assertUnreachable; exports.bufferToArrayBuffer = _chunkM4R2O5NJcjs.bufferToArrayBuffer; exports.combineUrlPath = _chunkM4R2O5NJcjs.combineUrlPath; exports.dbg = _chunkM4R2O5NJcjs.dbg; exports.detectRuntime = _chunkM4R2O5NJcjs.detectRuntime; exports.getEnvUniversal = _chunkM4R2O5NJcjs.getEnvUniversal; exports.httpUserAgent = _chunkM4R2O5NJcjs.httpUserAgent; exports.interval = _chunkM4R2O5NJcjs.interval; exports.joinSignals = _chunkM4R2O5NJcjs.joinSignals; exports.jsonParseCompat = _chunkM4R2O5NJcjs.jsonParseCompat; exports.jsonStringifyCompat = _chunkM4R2O5NJcjs.jsonStringifyCompat; exports.promiseWithResolvers = _chunkM4R2O5NJcjs.promiseWithResolvers; exports.setLongTimeout = _chunkM4R2O5NJcjs.setLongTimeout; exports.sleep = _chunkM4R2O5NJcjs.sleep; exports.stringifyError = _chunkM4R2O5NJcjs.stringifyError; exports.toUint8Array = _chunkM4R2O5NJcjs.toUint8Array;
|
|
46
46
|
//# sourceMappingURL=utils.cjs.map
|