rivetkit 2.3.11 → 2.3.12-rc.1
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-VBJQIBXI.cjs → chunk-2D5PNV5A.cjs} +4 -4
- package/dist/tsup/{chunk-VBJQIBXI.cjs.map → chunk-2D5PNV5A.cjs.map} +1 -1
- package/dist/tsup/{chunk-QFJ24MBU.js → chunk-5UYNV4W6.js} +2 -2
- package/dist/tsup/{chunk-RXXDNJXB.cjs → chunk-6ETWXXAZ.cjs} +138 -138
- package/dist/tsup/{chunk-RXXDNJXB.cjs.map → chunk-6ETWXXAZ.cjs.map} +1 -1
- package/dist/tsup/{chunk-3ZR542SK.js → chunk-A5BZEQOG.js} +3 -3
- package/dist/tsup/{chunk-PUZY2XCD.cjs → chunk-BEPAAID2.cjs} +10 -10
- package/dist/tsup/{chunk-PUZY2XCD.cjs.map → chunk-BEPAAID2.cjs.map} +1 -1
- package/dist/tsup/{chunk-B3W74FBB.cjs → chunk-BZX4LYYD.cjs} +3 -3
- package/dist/tsup/{chunk-B3W74FBB.cjs.map → chunk-BZX4LYYD.cjs.map} +1 -1
- package/dist/tsup/{chunk-LWQFXGKS.cjs → chunk-CMZBDX6Z.cjs} +3 -3
- package/dist/tsup/{chunk-LWQFXGKS.cjs.map → chunk-CMZBDX6Z.cjs.map} +1 -1
- package/dist/tsup/{chunk-GLIPKKEC.cjs → chunk-DIHAXOB7.cjs} +7 -7
- package/dist/tsup/{chunk-GLIPKKEC.cjs.map → chunk-DIHAXOB7.cjs.map} +1 -1
- package/dist/tsup/{chunk-OUENKQHB.js → chunk-HVHDZDM2.js} +2 -2
- package/dist/tsup/chunk-HVHDZDM2.js.map +1 -0
- package/dist/tsup/{chunk-FWROC5LA.js → chunk-JHHAMABO.js} +2 -2
- package/dist/tsup/{chunk-6WYATRS4.js → chunk-KRPA4UOE.js} +2 -2
- package/dist/tsup/{chunk-5UYWLCRO.js → chunk-MT33DKU4.js} +2 -2
- package/dist/tsup/{chunk-MO2SSUOR.js → chunk-OZWVDFCA.js} +4 -4
- package/dist/tsup/{chunk-GU7ML3KE.cjs → chunk-T4MKKCRF.cjs} +2 -2
- package/dist/tsup/chunk-T4MKKCRF.cjs.map +1 -0
- package/dist/tsup/{chunk-GN2EUMEW.cjs → chunk-VJ4KLJO5.cjs} +3 -3
- package/dist/tsup/{chunk-GN2EUMEW.cjs.map → chunk-VJ4KLJO5.cjs.map} +1 -1
- package/dist/tsup/{chunk-JQ2AZ5FN.js → chunk-ZTPFJOBX.js} +3 -3
- 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 +3 -3
- package/dist/tsup/db/mod.js +2 -2
- package/dist/tsup/inspector/mod.cjs +5 -5
- package/dist/tsup/inspector/mod.js +4 -4
- package/dist/tsup/inspector/workflow.cjs +4 -4
- package/dist/tsup/inspector/workflow.js +3 -3
- package/dist/tsup/mod.cjs +71 -71
- package/dist/tsup/mod.js +5 -5
- 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 +7 -7
- package/dist/tsup/workflow/mod.js +4 -4
- package/package.json +8 -8
- package/dist/tsup/chunk-GU7ML3KE.cjs.map +0 -1
- package/dist/tsup/chunk-OUENKQHB.js.map +0 -1
- /package/dist/tsup/{chunk-QFJ24MBU.js.map → chunk-5UYNV4W6.js.map} +0 -0
- /package/dist/tsup/{chunk-3ZR542SK.js.map → chunk-A5BZEQOG.js.map} +0 -0
- /package/dist/tsup/{chunk-FWROC5LA.js.map → chunk-JHHAMABO.js.map} +0 -0
- /package/dist/tsup/{chunk-6WYATRS4.js.map → chunk-KRPA4UOE.js.map} +0 -0
- /package/dist/tsup/{chunk-5UYWLCRO.js.map → chunk-MT33DKU4.js.map} +0 -0
- /package/dist/tsup/{chunk-MO2SSUOR.js.map → chunk-OZWVDFCA.js.map} +0 -0
- /package/dist/tsup/{chunk-JQ2AZ5FN.js.map → chunk-ZTPFJOBX.js.map} +0 -0
package/dist/tsup/mod.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } var _class; var _class2; var _class3;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2D5PNV5Acjs = require('./chunk-2D5PNV5A.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -27,7 +27,7 @@ var _chunk4KGXFC6Mcjs = require('./chunk-4KGXFC6M.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk6ETWXXAZcjs = require('./chunk-6ETWXXAZ.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -36,9 +36,9 @@ var _chunkMYWZCDMLcjs = require('./chunk-MYWZCDML.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkCMZBDX6Zcjs = require('./chunk-CMZBDX6Z.cjs');
|
|
40
40
|
require('./chunk-KVFIONKQ.cjs');
|
|
41
|
-
require('./chunk-
|
|
41
|
+
require('./chunk-VJ4KLJO5.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -71,7 +71,7 @@ require('./chunk-GN2EUMEW.cjs');
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunkT4MKKCRFcjs = require('./chunk-T4MKKCRF.cjs');
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
@@ -87,7 +87,7 @@ var _chunk4FC7TVS6cjs = require('./chunk-4FC7TVS6.cjs');
|
|
|
87
87
|
|
|
88
88
|
// src/actor/log.ts
|
|
89
89
|
function loggerWithoutContext() {
|
|
90
|
-
return
|
|
90
|
+
return _chunkT4MKKCRFcjs.getLogger.call(void 0, "actor-runtime");
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
// src/actor/definition.ts
|
|
@@ -227,7 +227,7 @@ function validateSchemaSync(schemas, key, data) {
|
|
|
227
227
|
var _virtualwebsocket = require('@rivetkit/virtual-websocket');
|
|
228
228
|
var _ws = require('hono/ws');
|
|
229
229
|
function logger() {
|
|
230
|
-
return
|
|
230
|
+
return _chunkT4MKKCRFcjs.getLogger.call(void 0, "inline-websocket-adapter");
|
|
231
231
|
}
|
|
232
232
|
var InlineWebSocketAdapter = class {
|
|
233
233
|
#handler;
|
|
@@ -398,7 +398,7 @@ function isLocalEngineEndpoint(endpoint) {
|
|
|
398
398
|
|
|
399
399
|
// src/registry/log.ts
|
|
400
400
|
function logger2() {
|
|
401
|
-
return
|
|
401
|
+
return _chunkT4MKKCRFcjs.getLogger.call(void 0, "registry");
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
// src/serverless/configure.ts
|
|
@@ -444,8 +444,8 @@ async function configureServerlessPool(config) {
|
|
|
444
444
|
);
|
|
445
445
|
}
|
|
446
446
|
const customConfig = config.configurePool;
|
|
447
|
-
const clientConfig =
|
|
448
|
-
const dcsRes = await
|
|
447
|
+
const clientConfig = _chunk6ETWXXAZcjs.convertRegistryConfigToClientConfig.call(void 0, config);
|
|
448
|
+
const dcsRes = await _chunk6ETWXXAZcjs.getDatacenters.call(void 0, clientConfig);
|
|
449
449
|
const poolName = _nullishCoalesce(customConfig.name, () => ( "default"));
|
|
450
450
|
const serverlessToken = _nullishCoalesce(config.token, () => ( config.publicToken));
|
|
451
451
|
const headers = {
|
|
@@ -467,7 +467,7 @@ async function configureServerlessPool(config) {
|
|
|
467
467
|
metadata: _nullishCoalesce(customConfig.metadata, () => ( {})),
|
|
468
468
|
drain_on_version_upgrade: _nullishCoalesce(customConfig.drainOnVersionUpgrade, () => ( true))
|
|
469
469
|
};
|
|
470
|
-
await
|
|
470
|
+
await _chunk6ETWXXAZcjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
|
|
471
471
|
datacenters: Object.fromEntries(
|
|
472
472
|
dcsRes.datacenters.map((dc) => [dc.name, serverlessConfig])
|
|
473
473
|
)
|
|
@@ -484,7 +484,7 @@ async function configureServerlessPool(config) {
|
|
|
484
484
|
logger2().warn({
|
|
485
485
|
msg: "serverless pool configuration attempt failed",
|
|
486
486
|
attempts,
|
|
487
|
-
error:
|
|
487
|
+
error: _chunkT4MKKCRFcjs.stringifyError.call(void 0, error)
|
|
488
488
|
});
|
|
489
489
|
await sleep(CONFIGURE_RETRY_DELAY_MS);
|
|
490
490
|
}
|
|
@@ -492,7 +492,7 @@ async function configureServerlessPool(config) {
|
|
|
492
492
|
logger2().error({
|
|
493
493
|
msg: "failed to configure serverless pool, validate endpoint is configured correctly then restart this process",
|
|
494
494
|
attempts,
|
|
495
|
-
error:
|
|
495
|
+
error: _chunkT4MKKCRFcjs.stringifyError.call(void 0, lastError)
|
|
496
496
|
});
|
|
497
497
|
throw lastError;
|
|
498
498
|
}
|
|
@@ -504,20 +504,20 @@ var _zod = require('zod');
|
|
|
504
504
|
var _v4 = require('zod/v4');
|
|
505
505
|
var warnedMissingVersion = false;
|
|
506
506
|
var EnvoyConfigSchema = _v4.z.object({
|
|
507
|
-
poolName: _v4.z.string().default(() => _nullishCoalesce(
|
|
507
|
+
poolName: _v4.z.string().default(() => _nullishCoalesce(_chunkT4MKKCRFcjs.getRivetPool.call(void 0, ), () => ( "default"))),
|
|
508
508
|
version: _v4.z.number().default(() => {
|
|
509
|
-
const version =
|
|
509
|
+
const version = _chunkT4MKKCRFcjs.getRivetEnvoyVersion.call(void 0, );
|
|
510
510
|
if (version !== void 0) return version;
|
|
511
|
-
if (
|
|
511
|
+
if (_chunkT4MKKCRFcjs.getNodeEnv.call(void 0, ) === "production" && !warnedMissingVersion) {
|
|
512
512
|
warnedMissingVersion = true;
|
|
513
|
-
|
|
513
|
+
_chunkT4MKKCRFcjs.getLogger.call(void 0, "rivetkit").error(
|
|
514
514
|
"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"
|
|
515
515
|
);
|
|
516
516
|
}
|
|
517
517
|
return 1;
|
|
518
518
|
}),
|
|
519
519
|
// Deprecated.
|
|
520
|
-
totalSlots: _v4.z.number().default(() => _nullishCoalesce(
|
|
520
|
+
totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunkT4MKKCRFcjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
|
|
521
521
|
envoyKey: _v4.z.string().optional()
|
|
522
522
|
});
|
|
523
523
|
|
|
@@ -555,7 +555,7 @@ var ServerlessConfigSchema = _v4.z.object({
|
|
|
555
555
|
*
|
|
556
556
|
* Can also be set via RIVET_PUBLIC_ENDPOINT environment variable.
|
|
557
557
|
*/
|
|
558
|
-
publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
558
|
+
publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkT4MKKCRFcjs.getRivetPublicEndpoint.call(void 0, )))),
|
|
559
559
|
/**
|
|
560
560
|
* Token that clients should use when connecting via the public endpoint.
|
|
561
561
|
*
|
|
@@ -563,7 +563,7 @@ var ServerlessConfigSchema = _v4.z.object({
|
|
|
563
563
|
*
|
|
564
564
|
* Can also be specified in the publicEndpoint URL as `https://namespace:token@host`.
|
|
565
565
|
*/
|
|
566
|
-
publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
566
|
+
publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkT4MKKCRFcjs.getRivetPublicToken.call(void 0, ))))
|
|
567
567
|
// There is no publicNamespace config option because the frontend and backend
|
|
568
568
|
// cannot use different namespaces. The namespace is extracted from the
|
|
569
569
|
// publicEndpoint URL auth syntax if provided.
|
|
@@ -617,7 +617,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
617
617
|
* Runtime binding to use for RivetKit core.
|
|
618
618
|
* */
|
|
619
619
|
runtime: RuntimeKindSchema.optional().transform((val, ctx) => {
|
|
620
|
-
const rawRuntime = _nullishCoalesce(val, () => (
|
|
620
|
+
const rawRuntime = _nullishCoalesce(val, () => ( _chunkT4MKKCRFcjs.getRivetkitRuntime.call(void 0, )));
|
|
621
621
|
if (rawRuntime === void 0) {
|
|
622
622
|
return "auto";
|
|
623
623
|
}
|
|
@@ -654,7 +654,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
654
654
|
* */
|
|
655
655
|
logging: _zod.z.object({
|
|
656
656
|
baseLogger: _zod.z.custom().optional(),
|
|
657
|
-
level:
|
|
657
|
+
level: _chunkT4MKKCRFcjs.LogLevelSchema.optional()
|
|
658
658
|
}).optional().default(() => ({})),
|
|
659
659
|
// MARK: Routing
|
|
660
660
|
// // This is a function to allow for lazy configuration of upgradeWebSocket on the
|
|
@@ -672,9 +672,9 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
672
672
|
*
|
|
673
673
|
* Can also be set via RIVET_ENDPOINT environment variables.
|
|
674
674
|
*/
|
|
675
|
-
endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => (
|
|
676
|
-
token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
677
|
-
namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
675
|
+
endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunkT4MKKCRFcjs.getRivetEngine.call(void 0, ))), () => ( _chunkT4MKKCRFcjs.getRivetEndpoint.call(void 0, )))),
|
|
676
|
+
token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkT4MKKCRFcjs.getRivetToken.call(void 0, )))),
|
|
677
|
+
namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkT4MKKCRFcjs.getRivetNamespace.call(void 0, )))),
|
|
678
678
|
headers: _zod.z.record(_zod.z.string(), _zod.z.string()).optional().default({}),
|
|
679
679
|
// MARK: Client
|
|
680
680
|
// TODO:
|
|
@@ -714,21 +714,21 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
714
714
|
*
|
|
715
715
|
* Starts the full Rust engine process locally.
|
|
716
716
|
*/
|
|
717
|
-
startEngine: _zod.z.boolean().default(() =>
|
|
717
|
+
startEngine: _zod.z.boolean().default(() => _chunkT4MKKCRFcjs.getRivetRunEngine.call(void 0, )),
|
|
718
718
|
/**
|
|
719
719
|
* @experimental
|
|
720
720
|
*
|
|
721
721
|
* Host to bind the spawned local engine process to.
|
|
722
722
|
*/
|
|
723
|
-
engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(
|
|
723
|
+
engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkT4MKKCRFcjs.getRivetRunEngineHost.call(void 0, ), () => ( ENGINE_HOST))),
|
|
724
724
|
/**
|
|
725
725
|
* @experimental
|
|
726
726
|
*
|
|
727
727
|
* Port to bind the spawned local engine process to.
|
|
728
728
|
*/
|
|
729
|
-
enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(
|
|
729
|
+
enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunkT4MKKCRFcjs.getRivetRunEnginePort.call(void 0, ), () => ( ENGINE_PORT))),
|
|
730
730
|
/** @experimental */
|
|
731
|
-
engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(
|
|
731
|
+
engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkT4MKKCRFcjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunkT4MKKCRFcjs.VERSION))),
|
|
732
732
|
/**
|
|
733
733
|
* @experimental
|
|
734
734
|
*
|
|
@@ -776,7 +776,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
776
776
|
}))
|
|
777
777
|
}).transform((config, ctx) => {
|
|
778
778
|
var _a, _b, _c;
|
|
779
|
-
const isDevEnv =
|
|
779
|
+
const isDevEnv = _chunkT4MKKCRFcjs.isDev.call(void 0, );
|
|
780
780
|
const sqliteBackend = _nullishCoalesce(((_a = config.sqlite) == null ? void 0 : _a.backend), () => ( ((_b = config.test) == null ? void 0 : _b.sqliteBackend)));
|
|
781
781
|
if (config.runtime === "wasm" && sqliteBackend === "local") {
|
|
782
782
|
ctx.addIssue({
|
|
@@ -786,7 +786,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
788
|
const sqlite = config.runtime === "wasm" && config.sqlite === void 0 ? { backend: "remote" } : config.sqlite;
|
|
789
|
-
const parsedEndpoint = config.endpoint ?
|
|
789
|
+
const parsedEndpoint = config.endpoint ? _chunk6ETWXXAZcjs.tryParseEndpoint.call(void 0, ctx, {
|
|
790
790
|
endpoint: config.endpoint,
|
|
791
791
|
path: ["endpoint"],
|
|
792
792
|
namespace: config.namespace,
|
|
@@ -814,7 +814,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
814
814
|
);
|
|
815
815
|
const namespace = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.namespace), () => ( config.namespace)), () => ( "default"));
|
|
816
816
|
const token = _nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token));
|
|
817
|
-
const parsedPublicEndpoint = config.serverless.publicEndpoint ?
|
|
817
|
+
const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunk6ETWXXAZcjs.tryParseEndpoint.call(void 0, ctx, {
|
|
818
818
|
endpoint: config.serverless.publicEndpoint,
|
|
819
819
|
path: ["serverless", "publicEndpoint"]
|
|
820
820
|
}) : void 0;
|
|
@@ -917,7 +917,7 @@ var DocRegistryConfigSchema = _zod.z.object({
|
|
|
917
917
|
noWelcome: _zod.z.boolean().optional().describe("Disable the welcome message on startup. Default: false"),
|
|
918
918
|
sqlite: DocSqliteConfigSchema,
|
|
919
919
|
logging: _zod.z.object({
|
|
920
|
-
level:
|
|
920
|
+
level: _chunkT4MKKCRFcjs.LogLevelSchema.optional().describe(
|
|
921
921
|
"Log level for RivetKit. Default: 'warn'"
|
|
922
922
|
)
|
|
923
923
|
}).optional().describe("Logging configuration."),
|
|
@@ -3367,7 +3367,7 @@ async function cleanupNativeSleepRuntimeState(runtime, ctx, afterTrackedWorkDrai
|
|
|
3367
3367
|
}).catch((error) => {
|
|
3368
3368
|
logger2().warn({
|
|
3369
3369
|
msg: "deferred native sleep cleanup failed",
|
|
3370
|
-
error:
|
|
3370
|
+
error: _chunkT4MKKCRFcjs.stringifyError.call(void 0, error)
|
|
3371
3371
|
});
|
|
3372
3372
|
});
|
|
3373
3373
|
return;
|
|
@@ -3527,10 +3527,10 @@ function decodeValue(value) {
|
|
|
3527
3527
|
if (!value || value.length === 0) {
|
|
3528
3528
|
return void 0;
|
|
3529
3529
|
}
|
|
3530
|
-
return
|
|
3530
|
+
return _chunkT4MKKCRFcjs.decodeCborCompat.call(void 0, value);
|
|
3531
3531
|
}
|
|
3532
3532
|
function encodeValue(value) {
|
|
3533
|
-
return
|
|
3533
|
+
return _chunkT4MKKCRFcjs.encodeCborCompat.call(void 0, value);
|
|
3534
3534
|
}
|
|
3535
3535
|
function normalizeArgs(value) {
|
|
3536
3536
|
return Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value];
|
|
@@ -3566,7 +3566,7 @@ function isStructuredBridgeError(error) {
|
|
|
3566
3566
|
return _chunk4FC7TVS6cjs.isRivetErrorLike.call(void 0, error) && "__type" in error && (error.__type === "RivetError" || error.__type === "ActorError");
|
|
3567
3567
|
}
|
|
3568
3568
|
function encodeNativeCallbackError(error) {
|
|
3569
|
-
const structuredError = isStructuredBridgeError(error) ? error :
|
|
3569
|
+
const structuredError = isStructuredBridgeError(error) ? error : _chunkT4MKKCRFcjs.deconstructError.call(void 0, error, true);
|
|
3570
3570
|
const bridgeError = new Error(_chunk4FC7TVS6cjs.encodeBridgeRivetError.call(void 0, structuredError), {
|
|
3571
3571
|
cause: error instanceof Error ? error : void 0
|
|
3572
3572
|
});
|
|
@@ -3616,7 +3616,7 @@ function decodeWorkflowCbor(data) {
|
|
|
3616
3616
|
return null;
|
|
3617
3617
|
}
|
|
3618
3618
|
try {
|
|
3619
|
-
return
|
|
3619
|
+
return _chunkT4MKKCRFcjs.decodeCborCompat.call(void 0, new Uint8Array(data));
|
|
3620
3620
|
} catch (e5) {
|
|
3621
3621
|
return null;
|
|
3622
3622
|
}
|
|
@@ -3729,7 +3729,7 @@ function serializeWorkflowHistoryForJson(data) {
|
|
|
3729
3729
|
if (data === null) {
|
|
3730
3730
|
return null;
|
|
3731
3731
|
}
|
|
3732
|
-
const history =
|
|
3732
|
+
const history = _chunk2D5PNV5Acjs.decodeWorkflowHistoryTransport.call(void 0, data);
|
|
3733
3733
|
return jsonSafe({
|
|
3734
3734
|
nameRegistry: [...history.nameRegistry],
|
|
3735
3735
|
entries: history.entries.map((entry) => ({
|
|
@@ -3893,7 +3893,7 @@ var NativeConnAdapter = class {
|
|
|
3893
3893
|
},
|
|
3894
3894
|
(newValue) => {
|
|
3895
3895
|
assertCurrentState();
|
|
3896
|
-
|
|
3896
|
+
_chunkT4MKKCRFcjs.assertJsonCompatValue.call(void 0, newValue);
|
|
3897
3897
|
}
|
|
3898
3898
|
);
|
|
3899
3899
|
}
|
|
@@ -3901,7 +3901,7 @@ var NativeConnAdapter = class {
|
|
|
3901
3901
|
var _a;
|
|
3902
3902
|
(_a = this.#assertCanMutateState) == null ? void 0 : _a.call(this);
|
|
3903
3903
|
const nextValue = unwrapWriteThroughProxy(value);
|
|
3904
|
-
|
|
3904
|
+
_chunkT4MKKCRFcjs.assertJsonCompatValue.call(void 0, nextValue);
|
|
3905
3905
|
this.#writeState(nextValue, { writeNative: true });
|
|
3906
3906
|
}
|
|
3907
3907
|
initializeState(value) {
|
|
@@ -4975,7 +4975,7 @@ var ActorContextHandleAdapter = class {
|
|
|
4975
4975
|
},
|
|
4976
4976
|
(newValue) => {
|
|
4977
4977
|
assertCurrentState();
|
|
4978
|
-
|
|
4978
|
+
_chunkT4MKKCRFcjs.assertJsonCompatValue.call(void 0, newValue);
|
|
4979
4979
|
}
|
|
4980
4980
|
);
|
|
4981
4981
|
}
|
|
@@ -4987,7 +4987,7 @@ var ActorContextHandleAdapter = class {
|
|
|
4987
4987
|
}
|
|
4988
4988
|
this.#assertCanMutateState();
|
|
4989
4989
|
const nextValue = unwrapWriteThroughProxy(value);
|
|
4990
|
-
|
|
4990
|
+
_chunkT4MKKCRFcjs.assertJsonCompatValue.call(void 0, nextValue);
|
|
4991
4991
|
this.#writeState(nextValue, { scheduleSave: true });
|
|
4992
4992
|
}
|
|
4993
4993
|
initializeState(value) {
|
|
@@ -5171,7 +5171,7 @@ var ActorContextHandleAdapter = class {
|
|
|
5171
5171
|
log: {
|
|
5172
5172
|
debug: (obj) => logger2().debug(obj)
|
|
5173
5173
|
},
|
|
5174
|
-
nativeDatabaseProvider:
|
|
5174
|
+
nativeDatabaseProvider: _chunkCMZBDX6Zcjs.registerNativeStateTransactionOpener.call(void 0,
|
|
5175
5175
|
{
|
|
5176
5176
|
open: async (requestedActorId) => {
|
|
5177
5177
|
void requestedActorId;
|
|
@@ -5194,7 +5194,7 @@ var ActorContextHandleAdapter = class {
|
|
|
5194
5194
|
return this.#db;
|
|
5195
5195
|
}
|
|
5196
5196
|
#bindDatabaseClient(client) {
|
|
5197
|
-
return
|
|
5197
|
+
return _chunkCMZBDX6Zcjs.bindNativeStateTransactionContext.call(void 0, client, {
|
|
5198
5198
|
enter: async () => await this.#enterStateTransaction(),
|
|
5199
5199
|
exit: (scope) => this.#exitStateTransaction(
|
|
5200
5200
|
scope
|
|
@@ -5398,7 +5398,7 @@ var ActorContextHandleAdapter = class {
|
|
|
5398
5398
|
const trackedPromise = Promise.resolve(promise).catch((error) => {
|
|
5399
5399
|
logger2().warn({
|
|
5400
5400
|
msg: "keepAwake promise rejected",
|
|
5401
|
-
error:
|
|
5401
|
+
error: _chunkT4MKKCRFcjs.stringifyError.call(void 0, error)
|
|
5402
5402
|
});
|
|
5403
5403
|
}).then(() => null);
|
|
5404
5404
|
try {
|
|
@@ -5860,7 +5860,7 @@ function validateInspectorTabSource(tabId, resolved) {
|
|
|
5860
5860
|
function buildNativeFactory(runtime, registryConfig, definition) {
|
|
5861
5861
|
var _a;
|
|
5862
5862
|
const config = definition.config;
|
|
5863
|
-
const databaseProvider = _nullishCoalesce(config.db, () => (
|
|
5863
|
+
const databaseProvider = _nullishCoalesce(config.db, () => ( _chunkCMZBDX6Zcjs.db.call(void 0, )));
|
|
5864
5864
|
const actionHandlers = _chunk4KGXFC6Mcjs.flattenActionHandlers.call(void 0, config.actions);
|
|
5865
5865
|
const schemaConfig = {
|
|
5866
5866
|
actionInputSchemas: _chunk4KGXFC6Mcjs.flattenActionInputSchemas.call(void 0,
|
|
@@ -5871,9 +5871,9 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
5871
5871
|
events: config.events,
|
|
5872
5872
|
queues: config.queues
|
|
5873
5873
|
};
|
|
5874
|
-
const createClient = () =>
|
|
5875
|
-
new (0,
|
|
5876
|
-
|
|
5874
|
+
const createClient = () => _chunk6ETWXXAZcjs.createClientWithDriver.call(void 0,
|
|
5875
|
+
new (0, _chunk6ETWXXAZcjs.RemoteEngineControlClient)(
|
|
5876
|
+
_chunk6ETWXXAZcjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
|
|
5877
5877
|
),
|
|
5878
5878
|
{ encoding: "bare" }
|
|
5879
5879
|
);
|
|
@@ -6055,7 +6055,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6055
6055
|
400
|
|
6056
6056
|
);
|
|
6057
6057
|
}
|
|
6058
|
-
const cbor =
|
|
6058
|
+
const cbor = _chunkT4MKKCRFcjs.encodeCborCompat.call(void 0,
|
|
6059
6059
|
_nullishCoalesce(body.body, () => ( null))
|
|
6060
6060
|
);
|
|
6061
6061
|
const message = await runtime.actorQueueSend(ctx, name, cbor);
|
|
@@ -6639,7 +6639,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6639
6639
|
new Response(null, { status: 404 })
|
|
6640
6640
|
);
|
|
6641
6641
|
}
|
|
6642
|
-
const rawConnParams = jsRequest.headers.get(
|
|
6642
|
+
const rawConnParams = jsRequest.headers.get(_chunk6ETWXXAZcjs.HEADER_CONN_PARAMS);
|
|
6643
6643
|
let requestCtx;
|
|
6644
6644
|
let conn;
|
|
6645
6645
|
try {
|
|
@@ -6664,7 +6664,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6664
6664
|
requestCtx,
|
|
6665
6665
|
jsRequest
|
|
6666
6666
|
);
|
|
6667
|
-
if (!
|
|
6667
|
+
if (!_chunk6ETWXXAZcjs.isResponseLike.call(void 0, response)) {
|
|
6668
6668
|
throw new Error(
|
|
6669
6669
|
"onRequest handler must return a Response"
|
|
6670
6670
|
);
|
|
@@ -6739,7 +6739,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6739
6739
|
var _a2;
|
|
6740
6740
|
const { ctx } = unwrapTsfnPayload(error, payload);
|
|
6741
6741
|
const history = (_a2 = getNativeWorkflowInspector(ctx)) == null ? void 0 : _a2.getHistory();
|
|
6742
|
-
return history == null ? void 0 :
|
|
6742
|
+
return history == null ? void 0 : _chunkT4MKKCRFcjs.toUint8Array.call(void 0, history);
|
|
6743
6743
|
}
|
|
6744
6744
|
) : void 0,
|
|
6745
6745
|
replayWorkflow: _chunk4KGXFC6Mcjs.hasRunInspectorConfig.call(void 0, config.run) ? wrapNativeCallback(
|
|
@@ -6753,7 +6753,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6753
6753
|
return void 0;
|
|
6754
6754
|
}
|
|
6755
6755
|
const history = await _asyncNullishCoalesce(await workflowInspector.replayFromStep(entryId), async () => ( null));
|
|
6756
|
-
return history == null ? void 0 :
|
|
6756
|
+
return history == null ? void 0 : _chunkT4MKKCRFcjs.toUint8Array.call(void 0, history);
|
|
6757
6757
|
}
|
|
6758
6758
|
) : void 0,
|
|
6759
6759
|
actions: Object.fromEntries(
|
|
@@ -6877,7 +6877,7 @@ async function buildServeConfig(config) {
|
|
|
6877
6877
|
poolName: config.envoy.poolName,
|
|
6878
6878
|
handleInspectorHttpInRuntime: true,
|
|
6879
6879
|
serverlessBasePath: config.serverless.basePath,
|
|
6880
|
-
serverlessPackageVersion:
|
|
6880
|
+
serverlessPackageVersion: _chunkT4MKKCRFcjs.VERSION,
|
|
6881
6881
|
serverlessClientEndpoint: config.publicEndpoint,
|
|
6882
6882
|
serverlessClientNamespace: config.publicNamespace,
|
|
6883
6883
|
serverlessClientToken: config.publicToken,
|
|
@@ -6890,19 +6890,19 @@ async function buildServeConfig(config) {
|
|
|
6890
6890
|
} catch (error) {
|
|
6891
6891
|
logger2().warn({
|
|
6892
6892
|
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",
|
|
6893
|
-
error:
|
|
6893
|
+
error: _chunkT4MKKCRFcjs.stringifyError.call(void 0, error)
|
|
6894
6894
|
});
|
|
6895
6895
|
}
|
|
6896
6896
|
serveConfig.engineHost = config.engineHost;
|
|
6897
6897
|
serveConfig.enginePort = config.enginePort;
|
|
6898
6898
|
if ((_a = config.test) == null ? void 0 : _a.enabled) {
|
|
6899
|
-
serveConfig.inspectorTestToken = _nullishCoalesce(
|
|
6899
|
+
serveConfig.inspectorTestToken = _nullishCoalesce(_chunkT4MKKCRFcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
|
|
6900
6900
|
}
|
|
6901
6901
|
return serveConfig;
|
|
6902
6902
|
}
|
|
6903
6903
|
async function buildRegistryWithRuntime(config, runtime) {
|
|
6904
6904
|
var _a;
|
|
6905
|
-
if (((_a = config.test) == null ? void 0 : _a.enabled) &&
|
|
6905
|
+
if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunkT4MKKCRFcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
|
|
6906
6906
|
trySetProcessEnv("_RIVET_TEST_INSPECTOR_TOKEN", "token");
|
|
6907
6907
|
}
|
|
6908
6908
|
if (runtime.kind === "napi") {
|
|
@@ -6957,7 +6957,7 @@ function createApplicationFetch(application) {
|
|
|
6957
6957
|
body
|
|
6958
6958
|
})
|
|
6959
6959
|
);
|
|
6960
|
-
if (!
|
|
6960
|
+
if (!_chunk6ETWXXAZcjs.isResponseLike.call(void 0, response)) {
|
|
6961
6961
|
throw new TypeError(
|
|
6962
6962
|
"registry.listen() application fetch must return a Response"
|
|
6963
6963
|
);
|
|
@@ -6994,7 +6994,7 @@ var Registry = class {
|
|
|
6994
6994
|
var _a;
|
|
6995
6995
|
this.#config = config;
|
|
6996
6996
|
if ((_a = config.logging) == null ? void 0 : _a.baseLogger) {
|
|
6997
|
-
|
|
6997
|
+
_chunkT4MKKCRFcjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
|
|
6998
6998
|
}
|
|
6999
6999
|
this.#buildConfiguredRegistry = _nullishCoalesce((deps == null ? void 0 : deps.buildConfiguredRegistry), () => ( buildConfiguredRegistry));
|
|
7000
7000
|
this.routes = {
|
|
@@ -7220,11 +7220,11 @@ var Registry = class {
|
|
|
7220
7220
|
* ```
|
|
7221
7221
|
*/
|
|
7222
7222
|
async listen(opts = {}) {
|
|
7223
|
-
const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => (
|
|
7224
|
-
const publicDir = _nullishCoalesce(opts.publicDir, () => (
|
|
7223
|
+
const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunkT4MKKCRFcjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
|
|
7224
|
+
const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunkT4MKKCRFcjs.getRivetkitPublicDir.call(void 0, )));
|
|
7225
7225
|
const config = this.parseConfig();
|
|
7226
7226
|
const application = opts.application ? createApplicationFetch(opts.application) : void 0;
|
|
7227
|
-
if (application &&
|
|
7227
|
+
if (application && _chunkT4MKKCRFcjs.getRivetkitRuntimeMode.call(void 0, ) !== "serverless") {
|
|
7228
7228
|
if (config.runtime === "wasm") {
|
|
7229
7229
|
throw new Error(
|
|
7230
7230
|
"registry.listen() requires the native runtime; use an application-owned HTTP server with WebAssembly"
|
|
@@ -7298,7 +7298,7 @@ var Registry = class {
|
|
|
7298
7298
|
return jsonRouteResponse(503, {
|
|
7299
7299
|
status: "not_started",
|
|
7300
7300
|
runtime: "rivetkit",
|
|
7301
|
-
version:
|
|
7301
|
+
version: _chunkT4MKKCRFcjs.VERSION
|
|
7302
7302
|
});
|
|
7303
7303
|
}
|
|
7304
7304
|
const { runtime, registry } = configured;
|
|
@@ -7306,7 +7306,7 @@ var Registry = class {
|
|
|
7306
7306
|
return jsonRouteResponse(501, {
|
|
7307
7307
|
status: "unsupported",
|
|
7308
7308
|
runtime: "rivetkit",
|
|
7309
|
-
version:
|
|
7309
|
+
version: _chunkT4MKKCRFcjs.VERSION
|
|
7310
7310
|
});
|
|
7311
7311
|
}
|
|
7312
7312
|
const response = await runtime.registryHealth(registry);
|
|
@@ -7553,7 +7553,7 @@ var Registry = class {
|
|
|
7553
7553
|
);
|
|
7554
7554
|
}
|
|
7555
7555
|
if (this.#runtimeReadyPromise) return this.#runtimeReadyPromise;
|
|
7556
|
-
if (
|
|
7556
|
+
if (_chunkT4MKKCRFcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
|
|
7557
7557
|
return Promise.reject(
|
|
7558
7558
|
new Error(
|
|
7559
7559
|
"registry.startAndWait() requires envoy runtime mode; serverless registries become ready per request"
|
|
@@ -7623,8 +7623,8 @@ var Registry = class {
|
|
|
7623
7623
|
* ```
|
|
7624
7624
|
*/
|
|
7625
7625
|
start() {
|
|
7626
|
-
if (
|
|
7627
|
-
const publicDir = _nullishCoalesce(
|
|
7626
|
+
if (_chunkT4MKKCRFcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
|
|
7627
|
+
const publicDir = _nullishCoalesce(_chunkT4MKKCRFcjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
|
|
7628
7628
|
this.listen({ publicDir }).catch((error) => {
|
|
7629
7629
|
logger2().error({ error }, "auto-listen failed; exiting");
|
|
7630
7630
|
if (typeof process !== "undefined" && typeof process.exit === "function") {
|
|
@@ -7645,7 +7645,7 @@ var Registry = class {
|
|
|
7645
7645
|
};
|
|
7646
7646
|
console.log();
|
|
7647
7647
|
console.log(
|
|
7648
|
-
` RivetKit ${
|
|
7648
|
+
` RivetKit ${_chunkT4MKKCRFcjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
|
|
7649
7649
|
);
|
|
7650
7650
|
if (config.namespace !== "default") {
|
|
7651
7651
|
logLine("Namespace", config.namespace);
|
|
@@ -7721,5 +7721,5 @@ function setup(input) {
|
|
|
7721
7721
|
|
|
7722
7722
|
|
|
7723
7723
|
|
|
7724
|
-
exports.ALLOWED_PUBLIC_HEADERS =
|
|
7724
|
+
exports.ALLOWED_PUBLIC_HEADERS = _chunk6ETWXXAZcjs.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 = _chunk6ETWXXAZcjs.createClientWithDriver; exports.defineRunHandler = _chunk4KGXFC6Mcjs.defineRunHandler; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunkT4MKKCRFcjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunkT4MKKCRFcjs.toUint8Array;
|
|
7725
7725
|
//# 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-5UYNV4W6.js";
|
|
4
4
|
import {
|
|
5
5
|
ACTOR_CONTEXT_INTERNAL_SYMBOL,
|
|
6
6
|
ActorConfigSchema,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
isResponseLike,
|
|
28
28
|
tryParseEndpoint,
|
|
29
29
|
updateRunnerConfig
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-A5BZEQOG.js";
|
|
31
31
|
import {
|
|
32
32
|
makePrefixedKey,
|
|
33
33
|
removePrefixFromKey
|
|
@@ -36,9 +36,9 @@ import {
|
|
|
36
36
|
bindNativeStateTransactionContext,
|
|
37
37
|
db,
|
|
38
38
|
registerNativeStateTransactionOpener
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KRPA4UOE.js";
|
|
40
40
|
import "./chunk-JTHHCZCZ.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-JHHAMABO.js";
|
|
42
42
|
import {
|
|
43
43
|
LogLevelSchema,
|
|
44
44
|
VERSION,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
parsePortEnv,
|
|
72
72
|
stringifyError,
|
|
73
73
|
toUint8Array
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-HVHDZDM2.js";
|
|
75
75
|
import {
|
|
76
76
|
INTERNAL_ERROR_CODE,
|
|
77
77
|
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 _chunkDIHAXOB7cjs = require('../chunk-DIHAXOB7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6ETWXXAZcjs = require('../chunk-6ETWXXAZ.cjs');
|
|
7
7
|
require('../chunk-MYWZCDML.cjs');
|
|
8
8
|
require('../chunk-KVFIONKQ.cjs');
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-VJ4KLJO5.cjs');
|
|
10
|
+
require('../chunk-T4MKKCRF.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 = _chunkDIHAXOB7cjs.createClient.call(void 0, {
|
|
40
|
+
..._chunk6ETWXXAZcjs.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-ZTPFJOBX.js";
|
|
4
4
|
import {
|
|
5
5
|
convertRegistryConfigToClientConfig
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-A5BZEQOG.js";
|
|
7
7
|
import "../chunk-JI6GZ2C2.js";
|
|
8
8
|
import "../chunk-JTHHCZCZ.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-JHHAMABO.js";
|
|
10
|
+
import "../chunk-HVHDZDM2.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 _chunkT4MKKCRFcjs = require('./chunk-T4MKKCRF.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 = _chunkT4MKKCRFcjs.EXTRA_ERROR_LOG; exports.SinglePromiseQueue = _chunkT4MKKCRFcjs.SinglePromiseQueue; exports.VERSION = _chunkT4MKKCRFcjs.VERSION; exports.arrayBuffersEqual = _chunkT4MKKCRFcjs.arrayBuffersEqual; exports.assertUnreachable = _chunkT4MKKCRFcjs.assertUnreachable; exports.bufferToArrayBuffer = _chunkT4MKKCRFcjs.bufferToArrayBuffer; exports.combineUrlPath = _chunkT4MKKCRFcjs.combineUrlPath; exports.dbg = _chunkT4MKKCRFcjs.dbg; exports.detectRuntime = _chunkT4MKKCRFcjs.detectRuntime; exports.getEnvUniversal = _chunkT4MKKCRFcjs.getEnvUniversal; exports.httpUserAgent = _chunkT4MKKCRFcjs.httpUserAgent; exports.interval = _chunkT4MKKCRFcjs.interval; exports.joinSignals = _chunkT4MKKCRFcjs.joinSignals; exports.jsonParseCompat = _chunkT4MKKCRFcjs.jsonParseCompat; exports.jsonStringifyCompat = _chunkT4MKKCRFcjs.jsonStringifyCompat; exports.promiseWithResolvers = _chunkT4MKKCRFcjs.promiseWithResolvers; exports.setLongTimeout = _chunkT4MKKCRFcjs.setLongTimeout; exports.sleep = _chunkT4MKKCRFcjs.sleep; exports.stringifyError = _chunkT4MKKCRFcjs.stringifyError; exports.toUint8Array = _chunkT4MKKCRFcjs.toUint8Array;
|
|
46
46
|
//# sourceMappingURL=utils.cjs.map
|