rivetkit 2.3.6 → 2.3.7
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-234EFKN2.cjs → chunk-2SGPZEAJ.cjs} +2 -2
- package/dist/tsup/{chunk-234EFKN2.cjs.map → chunk-2SGPZEAJ.cjs.map} +1 -1
- package/dist/tsup/{chunk-AXEGEUYB.cjs → chunk-46AE7JOI.cjs} +138 -138
- package/dist/tsup/{chunk-AXEGEUYB.cjs.map → chunk-46AE7JOI.cjs.map} +1 -1
- package/dist/tsup/{chunk-PLLHHJWR.js → chunk-6D2WRHJV.js} +2 -2
- package/dist/tsup/{chunk-BX4G2O6M.js → chunk-7YQJXWBW.js} +3 -3
- package/dist/tsup/{chunk-3ZE5UDOA.js → chunk-CH25U5NO.js} +3 -3
- package/dist/tsup/{chunk-HVOKIYUB.cjs → chunk-DOPH7DT2.cjs} +7 -7
- package/dist/tsup/{chunk-HVOKIYUB.cjs.map → chunk-DOPH7DT2.cjs.map} +1 -1
- package/dist/tsup/{chunk-WS3PP253.cjs → chunk-MNZFNIVI.cjs} +3 -3
- package/dist/tsup/{chunk-WS3PP253.cjs.map → chunk-MNZFNIVI.cjs.map} +1 -1
- package/dist/tsup/{chunk-RDTFPGU2.js → chunk-OG4OR2CM.js} +2 -2
- package/dist/tsup/{chunk-RDTFPGU2.js.map → chunk-OG4OR2CM.js.map} +1 -1
- package/dist/tsup/{chunk-PD7SZKHY.cjs → chunk-TQHMPWL6.cjs} +9 -9
- package/dist/tsup/{chunk-PD7SZKHY.cjs.map → chunk-TQHMPWL6.cjs.map} +1 -1
- package/dist/tsup/{chunk-FNTTW25Q.cjs → chunk-UIZZCJ5W.cjs} +4 -4
- package/dist/tsup/{chunk-FNTTW25Q.cjs.map → chunk-UIZZCJ5W.cjs.map} +1 -1
- package/dist/tsup/{chunk-OH6CBWUD.js → chunk-YHPFCYL3.js} +2 -2
- package/dist/tsup/{chunk-F6ZW7JZQ.js → chunk-YU3C5OCU.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 +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 +62 -62
- 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-PLLHHJWR.js.map → chunk-6D2WRHJV.js.map} +0 -0
- /package/dist/tsup/{chunk-BX4G2O6M.js.map → chunk-7YQJXWBW.js.map} +0 -0
- /package/dist/tsup/{chunk-3ZE5UDOA.js.map → chunk-CH25U5NO.js.map} +0 -0
- /package/dist/tsup/{chunk-OH6CBWUD.js.map → chunk-YHPFCYL3.js.map} +0 -0
- /package/dist/tsup/{chunk-F6ZW7JZQ.js.map → chunk-YU3C5OCU.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkflowInspectorAdapter
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-7YQJXWBW.js";
|
|
4
4
|
import {
|
|
5
5
|
decodeWorkflowHistoryTransport,
|
|
6
6
|
encodeWorkflowHistoryTransport
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-6D2WRHJV.js";
|
|
8
|
+
import "../chunk-OG4OR2CM.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 _chunkUIZZCJ5Wcjs = require('./chunk-UIZZCJ5W.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -22,12 +22,12 @@ var _chunkHNHLBM3Ycjs = require('./chunk-HNHLBM3Y.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk46AE7JOIcjs = require('./chunk-46AE7JOI.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkMYWZCDMLcjs = require('./chunk-MYWZCDML.cjs');
|
|
30
|
-
require('./chunk-
|
|
30
|
+
require('./chunk-MNZFNIVI.cjs');
|
|
31
31
|
require('./chunk-UEULFXUI.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
@@ -61,7 +61,7 @@ require('./chunk-UEULFXUI.cjs');
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _chunk2SGPZEAJcjs = require('./chunk-2SGPZEAJ.cjs');
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
@@ -77,7 +77,7 @@ var _chunk4FC7TVS6cjs = require('./chunk-4FC7TVS6.cjs');
|
|
|
77
77
|
|
|
78
78
|
// src/actor/log.ts
|
|
79
79
|
function loggerWithoutContext() {
|
|
80
|
-
return
|
|
80
|
+
return _chunk2SGPZEAJcjs.getLogger.call(void 0, "actor-runtime");
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
// src/actor/definition.ts
|
|
@@ -217,7 +217,7 @@ function validateSchemaSync(schemas, key, data) {
|
|
|
217
217
|
var _virtualwebsocket = require('@rivetkit/virtual-websocket');
|
|
218
218
|
var _ws = require('hono/ws');
|
|
219
219
|
function logger() {
|
|
220
|
-
return
|
|
220
|
+
return _chunk2SGPZEAJcjs.getLogger.call(void 0, "inline-websocket-adapter");
|
|
221
221
|
}
|
|
222
222
|
var InlineWebSocketAdapter = class {
|
|
223
223
|
#handler;
|
|
@@ -388,7 +388,7 @@ function isLocalEngineEndpoint(endpoint) {
|
|
|
388
388
|
|
|
389
389
|
// src/registry/log.ts
|
|
390
390
|
function logger2() {
|
|
391
|
-
return
|
|
391
|
+
return _chunk2SGPZEAJcjs.getLogger.call(void 0, "registry");
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
// src/serverless/configure.ts
|
|
@@ -434,8 +434,8 @@ async function configureServerlessPool(config) {
|
|
|
434
434
|
);
|
|
435
435
|
}
|
|
436
436
|
const customConfig = config.configurePool;
|
|
437
|
-
const clientConfig =
|
|
438
|
-
const dcsRes = await
|
|
437
|
+
const clientConfig = _chunk46AE7JOIcjs.convertRegistryConfigToClientConfig.call(void 0, config);
|
|
438
|
+
const dcsRes = await _chunk46AE7JOIcjs.getDatacenters.call(void 0, clientConfig);
|
|
439
439
|
const poolName = _nullishCoalesce(customConfig.name, () => ( "default"));
|
|
440
440
|
const serverlessToken = _nullishCoalesce(config.token, () => ( config.publicToken));
|
|
441
441
|
const headers = {
|
|
@@ -457,7 +457,7 @@ async function configureServerlessPool(config) {
|
|
|
457
457
|
metadata: _nullishCoalesce(customConfig.metadata, () => ( {})),
|
|
458
458
|
drain_on_version_upgrade: _nullishCoalesce(customConfig.drainOnVersionUpgrade, () => ( true))
|
|
459
459
|
};
|
|
460
|
-
await
|
|
460
|
+
await _chunk46AE7JOIcjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
|
|
461
461
|
datacenters: Object.fromEntries(
|
|
462
462
|
dcsRes.datacenters.map((dc) => [dc.name, serverlessConfig])
|
|
463
463
|
)
|
|
@@ -474,7 +474,7 @@ async function configureServerlessPool(config) {
|
|
|
474
474
|
logger2().warn({
|
|
475
475
|
msg: "serverless pool configuration attempt failed",
|
|
476
476
|
attempts,
|
|
477
|
-
error:
|
|
477
|
+
error: _chunk2SGPZEAJcjs.stringifyError.call(void 0, error)
|
|
478
478
|
});
|
|
479
479
|
await sleep(CONFIGURE_RETRY_DELAY_MS);
|
|
480
480
|
}
|
|
@@ -482,7 +482,7 @@ async function configureServerlessPool(config) {
|
|
|
482
482
|
logger2().error({
|
|
483
483
|
msg: "failed to configure serverless pool, validate endpoint is configured correctly then restart this process",
|
|
484
484
|
attempts,
|
|
485
|
-
error:
|
|
485
|
+
error: _chunk2SGPZEAJcjs.stringifyError.call(void 0, lastError)
|
|
486
486
|
});
|
|
487
487
|
throw lastError;
|
|
488
488
|
}
|
|
@@ -494,20 +494,20 @@ var _zod = require('zod');
|
|
|
494
494
|
var _v4 = require('zod/v4');
|
|
495
495
|
var warnedMissingVersion = false;
|
|
496
496
|
var EnvoyConfigSchema = _v4.z.object({
|
|
497
|
-
poolName: _v4.z.string().default(() => _nullishCoalesce(
|
|
497
|
+
poolName: _v4.z.string().default(() => _nullishCoalesce(_chunk2SGPZEAJcjs.getRivetPool.call(void 0, ), () => ( "default"))),
|
|
498
498
|
version: _v4.z.number().default(() => {
|
|
499
|
-
const version =
|
|
499
|
+
const version = _chunk2SGPZEAJcjs.getRivetEnvoyVersion.call(void 0, );
|
|
500
500
|
if (version !== void 0) return version;
|
|
501
|
-
if (
|
|
501
|
+
if (_chunk2SGPZEAJcjs.getNodeEnv.call(void 0, ) === "production" && !warnedMissingVersion) {
|
|
502
502
|
warnedMissingVersion = true;
|
|
503
|
-
|
|
503
|
+
_chunk2SGPZEAJcjs.getLogger.call(void 0, "rivetkit").error(
|
|
504
504
|
"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"
|
|
505
505
|
);
|
|
506
506
|
}
|
|
507
507
|
return 1;
|
|
508
508
|
}),
|
|
509
509
|
// Deprecated.
|
|
510
|
-
totalSlots: _v4.z.number().default(() => _nullishCoalesce(
|
|
510
|
+
totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunk2SGPZEAJcjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
|
|
511
511
|
envoyKey: _v4.z.string().optional()
|
|
512
512
|
});
|
|
513
513
|
|
|
@@ -545,7 +545,7 @@ var ServerlessConfigSchema = _v4.z.object({
|
|
|
545
545
|
*
|
|
546
546
|
* Can also be set via RIVET_PUBLIC_ENDPOINT environment variable.
|
|
547
547
|
*/
|
|
548
|
-
publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
548
|
+
publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk2SGPZEAJcjs.getRivetPublicEndpoint.call(void 0, )))),
|
|
549
549
|
/**
|
|
550
550
|
* Token that clients should use when connecting via the public endpoint.
|
|
551
551
|
*
|
|
@@ -553,7 +553,7 @@ var ServerlessConfigSchema = _v4.z.object({
|
|
|
553
553
|
*
|
|
554
554
|
* Can also be specified in the publicEndpoint URL as `https://namespace:token@host`.
|
|
555
555
|
*/
|
|
556
|
-
publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
556
|
+
publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk2SGPZEAJcjs.getRivetPublicToken.call(void 0, ))))
|
|
557
557
|
// There is no publicNamespace config option because the frontend and backend
|
|
558
558
|
// cannot use different namespaces. The namespace is extracted from the
|
|
559
559
|
// publicEndpoint URL auth syntax if provided.
|
|
@@ -607,7 +607,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
607
607
|
* Runtime binding to use for RivetKit core.
|
|
608
608
|
* */
|
|
609
609
|
runtime: RuntimeKindSchema.optional().transform((val, ctx) => {
|
|
610
|
-
const rawRuntime = _nullishCoalesce(val, () => (
|
|
610
|
+
const rawRuntime = _nullishCoalesce(val, () => ( _chunk2SGPZEAJcjs.getRivetkitRuntime.call(void 0, )));
|
|
611
611
|
if (rawRuntime === void 0) {
|
|
612
612
|
return "auto";
|
|
613
613
|
}
|
|
@@ -644,7 +644,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
644
644
|
* */
|
|
645
645
|
logging: _zod.z.object({
|
|
646
646
|
baseLogger: _zod.z.custom().optional(),
|
|
647
|
-
level:
|
|
647
|
+
level: _chunk2SGPZEAJcjs.LogLevelSchema.optional()
|
|
648
648
|
}).optional().default(() => ({})),
|
|
649
649
|
// MARK: Routing
|
|
650
650
|
// // This is a function to allow for lazy configuration of upgradeWebSocket on the
|
|
@@ -662,9 +662,9 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
662
662
|
*
|
|
663
663
|
* Can also be set via RIVET_ENDPOINT environment variables.
|
|
664
664
|
*/
|
|
665
|
-
endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => (
|
|
666
|
-
token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
667
|
-
namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
665
|
+
endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunk2SGPZEAJcjs.getRivetEngine.call(void 0, ))), () => ( _chunk2SGPZEAJcjs.getRivetEndpoint.call(void 0, )))),
|
|
666
|
+
token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk2SGPZEAJcjs.getRivetToken.call(void 0, )))),
|
|
667
|
+
namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunk2SGPZEAJcjs.getRivetNamespace.call(void 0, )))),
|
|
668
668
|
headers: _zod.z.record(_zod.z.string(), _zod.z.string()).optional().default({}),
|
|
669
669
|
// MARK: Client
|
|
670
670
|
// TODO:
|
|
@@ -704,21 +704,21 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
704
704
|
*
|
|
705
705
|
* Starts the full Rust engine process locally.
|
|
706
706
|
*/
|
|
707
|
-
startEngine: _zod.z.boolean().default(() =>
|
|
707
|
+
startEngine: _zod.z.boolean().default(() => _chunk2SGPZEAJcjs.getRivetRunEngine.call(void 0, )),
|
|
708
708
|
/**
|
|
709
709
|
* @experimental
|
|
710
710
|
*
|
|
711
711
|
* Host to bind the spawned local engine process to.
|
|
712
712
|
*/
|
|
713
|
-
engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(
|
|
713
|
+
engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunk2SGPZEAJcjs.getRivetRunEngineHost.call(void 0, ), () => ( ENGINE_HOST))),
|
|
714
714
|
/**
|
|
715
715
|
* @experimental
|
|
716
716
|
*
|
|
717
717
|
* Port to bind the spawned local engine process to.
|
|
718
718
|
*/
|
|
719
|
-
enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(
|
|
719
|
+
enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunk2SGPZEAJcjs.getRivetRunEnginePort.call(void 0, ), () => ( ENGINE_PORT))),
|
|
720
720
|
/** @experimental */
|
|
721
|
-
engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(
|
|
721
|
+
engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunk2SGPZEAJcjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunk2SGPZEAJcjs.VERSION))),
|
|
722
722
|
/**
|
|
723
723
|
* @experimental
|
|
724
724
|
*
|
|
@@ -766,7 +766,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
766
766
|
}))
|
|
767
767
|
}).transform((config, ctx) => {
|
|
768
768
|
var _a, _b, _c;
|
|
769
|
-
const isDevEnv =
|
|
769
|
+
const isDevEnv = _chunk2SGPZEAJcjs.isDev.call(void 0, );
|
|
770
770
|
const sqliteBackend = _nullishCoalesce(((_a = config.sqlite) == null ? void 0 : _a.backend), () => ( ((_b = config.test) == null ? void 0 : _b.sqliteBackend)));
|
|
771
771
|
if (config.runtime === "wasm" && sqliteBackend === "local") {
|
|
772
772
|
ctx.addIssue({
|
|
@@ -776,7 +776,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
const sqlite = config.runtime === "wasm" && config.sqlite === void 0 ? { backend: "remote" } : config.sqlite;
|
|
779
|
-
const parsedEndpoint = config.endpoint ?
|
|
779
|
+
const parsedEndpoint = config.endpoint ? _chunk46AE7JOIcjs.tryParseEndpoint.call(void 0, ctx, {
|
|
780
780
|
endpoint: config.endpoint,
|
|
781
781
|
path: ["endpoint"],
|
|
782
782
|
namespace: config.namespace,
|
|
@@ -804,7 +804,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
804
804
|
);
|
|
805
805
|
const namespace = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.namespace), () => ( config.namespace)), () => ( "default"));
|
|
806
806
|
const token = _nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token));
|
|
807
|
-
const parsedPublicEndpoint = config.serverless.publicEndpoint ?
|
|
807
|
+
const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunk46AE7JOIcjs.tryParseEndpoint.call(void 0, ctx, {
|
|
808
808
|
endpoint: config.serverless.publicEndpoint,
|
|
809
809
|
path: ["serverless", "publicEndpoint"]
|
|
810
810
|
}) : void 0;
|
|
@@ -907,7 +907,7 @@ var DocRegistryConfigSchema = _zod.z.object({
|
|
|
907
907
|
noWelcome: _zod.z.boolean().optional().describe("Disable the welcome message on startup. Default: false"),
|
|
908
908
|
sqlite: DocSqliteConfigSchema,
|
|
909
909
|
logging: _zod.z.object({
|
|
910
|
-
level:
|
|
910
|
+
level: _chunk2SGPZEAJcjs.LogLevelSchema.optional().describe(
|
|
911
911
|
"Log level for RivetKit. Default: 'warn'"
|
|
912
912
|
)
|
|
913
913
|
}).optional().describe("Logging configuration."),
|
|
@@ -2984,7 +2984,7 @@ async function cleanupNativeSleepRuntimeState(runtime, ctx, afterTrackedWorkDrai
|
|
|
2984
2984
|
}).catch((error) => {
|
|
2985
2985
|
logger2().warn({
|
|
2986
2986
|
msg: "deferred native sleep cleanup failed",
|
|
2987
|
-
error:
|
|
2987
|
+
error: _chunk2SGPZEAJcjs.stringifyError.call(void 0, error)
|
|
2988
2988
|
});
|
|
2989
2989
|
});
|
|
2990
2990
|
return;
|
|
@@ -3111,10 +3111,10 @@ function decodeValue(value) {
|
|
|
3111
3111
|
if (!value || value.length === 0) {
|
|
3112
3112
|
return void 0;
|
|
3113
3113
|
}
|
|
3114
|
-
return
|
|
3114
|
+
return _chunk2SGPZEAJcjs.decodeCborCompat.call(void 0, value);
|
|
3115
3115
|
}
|
|
3116
3116
|
function encodeValue(value) {
|
|
3117
|
-
return
|
|
3117
|
+
return _chunk2SGPZEAJcjs.encodeCborCompat.call(void 0, value);
|
|
3118
3118
|
}
|
|
3119
3119
|
function normalizeArgs(value) {
|
|
3120
3120
|
return Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value];
|
|
@@ -3150,7 +3150,7 @@ function isStructuredBridgeError(error) {
|
|
|
3150
3150
|
return _chunk4FC7TVS6cjs.isRivetErrorLike.call(void 0, error) && "__type" in error && (error.__type === "RivetError" || error.__type === "ActorError");
|
|
3151
3151
|
}
|
|
3152
3152
|
function encodeNativeCallbackError(error) {
|
|
3153
|
-
const structuredError = isStructuredBridgeError(error) ? error :
|
|
3153
|
+
const structuredError = isStructuredBridgeError(error) ? error : _chunk2SGPZEAJcjs.deconstructError.call(void 0, error, true);
|
|
3154
3154
|
const bridgeError = new Error(_chunk4FC7TVS6cjs.encodeBridgeRivetError.call(void 0, structuredError), {
|
|
3155
3155
|
cause: error instanceof Error ? error : void 0
|
|
3156
3156
|
});
|
|
@@ -3200,7 +3200,7 @@ function decodeWorkflowCbor(data) {
|
|
|
3200
3200
|
return null;
|
|
3201
3201
|
}
|
|
3202
3202
|
try {
|
|
3203
|
-
return
|
|
3203
|
+
return _chunk2SGPZEAJcjs.decodeCborCompat.call(void 0, new Uint8Array(data));
|
|
3204
3204
|
} catch (e5) {
|
|
3205
3205
|
return null;
|
|
3206
3206
|
}
|
|
@@ -3313,7 +3313,7 @@ function serializeWorkflowHistoryForJson(data) {
|
|
|
3313
3313
|
if (data === null) {
|
|
3314
3314
|
return null;
|
|
3315
3315
|
}
|
|
3316
|
-
const history =
|
|
3316
|
+
const history = _chunkUIZZCJ5Wcjs.decodeWorkflowHistoryTransport.call(void 0, data);
|
|
3317
3317
|
return jsonSafe({
|
|
3318
3318
|
nameRegistry: [...history.nameRegistry],
|
|
3319
3319
|
entries: history.entries.map((entry) => ({
|
|
@@ -3454,12 +3454,12 @@ var NativeConnAdapter = class {
|
|
|
3454
3454
|
this.#writeState(nextValue, { writeNative: true });
|
|
3455
3455
|
},
|
|
3456
3456
|
(newValue) => {
|
|
3457
|
-
|
|
3457
|
+
_chunk2SGPZEAJcjs.assertJsonCompatValue.call(void 0, newValue);
|
|
3458
3458
|
}
|
|
3459
3459
|
);
|
|
3460
3460
|
}
|
|
3461
3461
|
set state(value) {
|
|
3462
|
-
|
|
3462
|
+
_chunk2SGPZEAJcjs.assertJsonCompatValue.call(void 0, value);
|
|
3463
3463
|
this.#writeState(value, { writeNative: true });
|
|
3464
3464
|
}
|
|
3465
3465
|
initializeState(value) {
|
|
@@ -4505,7 +4505,7 @@ var ActorContextHandleAdapter = class {
|
|
|
4505
4505
|
},
|
|
4506
4506
|
(newValue) => {
|
|
4507
4507
|
this.#assertCanMutateState();
|
|
4508
|
-
|
|
4508
|
+
_chunk2SGPZEAJcjs.assertJsonCompatValue.call(void 0, newValue);
|
|
4509
4509
|
}
|
|
4510
4510
|
);
|
|
4511
4511
|
}
|
|
@@ -4516,7 +4516,7 @@ var ActorContextHandleAdapter = class {
|
|
|
4516
4516
|
throw stateNotEnabledError();
|
|
4517
4517
|
}
|
|
4518
4518
|
this.#assertCanMutateState();
|
|
4519
|
-
|
|
4519
|
+
_chunk2SGPZEAJcjs.assertJsonCompatValue.call(void 0, value);
|
|
4520
4520
|
this.#writeState(value, { scheduleSave: true });
|
|
4521
4521
|
}
|
|
4522
4522
|
initializeState(value) {
|
|
@@ -4792,7 +4792,7 @@ var ActorContextHandleAdapter = class {
|
|
|
4792
4792
|
const trackedPromise = Promise.resolve(promise).catch((error) => {
|
|
4793
4793
|
logger2().warn({
|
|
4794
4794
|
msg: "keepAwake promise rejected",
|
|
4795
|
-
error:
|
|
4795
|
+
error: _chunk2SGPZEAJcjs.stringifyError.call(void 0, error)
|
|
4796
4796
|
});
|
|
4797
4797
|
}).then(() => null);
|
|
4798
4798
|
try {
|
|
@@ -5254,9 +5254,9 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
5254
5254
|
events: config.events,
|
|
5255
5255
|
queues: config.queues
|
|
5256
5256
|
};
|
|
5257
|
-
const createClient = () =>
|
|
5258
|
-
new (0,
|
|
5259
|
-
|
|
5257
|
+
const createClient = () => _chunk46AE7JOIcjs.createClientWithDriver.call(void 0,
|
|
5258
|
+
new (0, _chunk46AE7JOIcjs.RemoteEngineControlClient)(
|
|
5259
|
+
_chunk46AE7JOIcjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
|
|
5260
5260
|
),
|
|
5261
5261
|
{ encoding: "bare" }
|
|
5262
5262
|
);
|
|
@@ -5439,7 +5439,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
5439
5439
|
400
|
|
5440
5440
|
);
|
|
5441
5441
|
}
|
|
5442
|
-
const cbor =
|
|
5442
|
+
const cbor = _chunk2SGPZEAJcjs.encodeCborCompat.call(void 0,
|
|
5443
5443
|
_nullishCoalesce(body.body, () => ( null))
|
|
5444
5444
|
);
|
|
5445
5445
|
const message = await runtime.actorQueueSend(ctx, name, cbor);
|
|
@@ -6021,7 +6021,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6021
6021
|
new Response(null, { status: 404 })
|
|
6022
6022
|
);
|
|
6023
6023
|
}
|
|
6024
|
-
const rawConnParams = jsRequest.headers.get(
|
|
6024
|
+
const rawConnParams = jsRequest.headers.get(_chunk46AE7JOIcjs.HEADER_CONN_PARAMS);
|
|
6025
6025
|
let requestCtx;
|
|
6026
6026
|
let conn;
|
|
6027
6027
|
try {
|
|
@@ -6249,7 +6249,7 @@ async function buildServeConfig(config) {
|
|
|
6249
6249
|
poolName: config.envoy.poolName,
|
|
6250
6250
|
handleInspectorHttpInRuntime: true,
|
|
6251
6251
|
serverlessBasePath: config.serverless.basePath,
|
|
6252
|
-
serverlessPackageVersion:
|
|
6252
|
+
serverlessPackageVersion: _chunk2SGPZEAJcjs.VERSION,
|
|
6253
6253
|
serverlessClientEndpoint: config.publicEndpoint,
|
|
6254
6254
|
serverlessClientNamespace: config.publicNamespace,
|
|
6255
6255
|
serverlessClientToken: config.publicToken,
|
|
@@ -6262,19 +6262,19 @@ async function buildServeConfig(config) {
|
|
|
6262
6262
|
} catch (error) {
|
|
6263
6263
|
logger2().warn({
|
|
6264
6264
|
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",
|
|
6265
|
-
error:
|
|
6265
|
+
error: _chunk2SGPZEAJcjs.stringifyError.call(void 0, error)
|
|
6266
6266
|
});
|
|
6267
6267
|
}
|
|
6268
6268
|
serveConfig.engineHost = config.engineHost;
|
|
6269
6269
|
serveConfig.enginePort = config.enginePort;
|
|
6270
6270
|
if ((_a = config.test) == null ? void 0 : _a.enabled) {
|
|
6271
|
-
serveConfig.inspectorTestToken = _nullishCoalesce(
|
|
6271
|
+
serveConfig.inspectorTestToken = _nullishCoalesce(_chunk2SGPZEAJcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
|
|
6272
6272
|
}
|
|
6273
6273
|
return serveConfig;
|
|
6274
6274
|
}
|
|
6275
6275
|
async function buildRegistryWithRuntime(config, runtime) {
|
|
6276
6276
|
var _a;
|
|
6277
|
-
if (((_a = config.test) == null ? void 0 : _a.enabled) &&
|
|
6277
|
+
if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunk2SGPZEAJcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
|
|
6278
6278
|
trySetProcessEnv("_RIVET_TEST_INSPECTOR_TOKEN", "token");
|
|
6279
6279
|
}
|
|
6280
6280
|
if (runtime.kind === "napi") {
|
|
@@ -6342,7 +6342,7 @@ var Registry = class {
|
|
|
6342
6342
|
var _a;
|
|
6343
6343
|
this.#config = config;
|
|
6344
6344
|
if ((_a = config.logging) == null ? void 0 : _a.baseLogger) {
|
|
6345
|
-
|
|
6345
|
+
_chunk2SGPZEAJcjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
|
|
6346
6346
|
}
|
|
6347
6347
|
this.#buildConfiguredRegistry = _nullishCoalesce((deps == null ? void 0 : deps.buildConfiguredRegistry), () => ( buildConfiguredRegistry));
|
|
6348
6348
|
this.routes = {
|
|
@@ -6566,8 +6566,8 @@ var Registry = class {
|
|
|
6566
6566
|
* ```
|
|
6567
6567
|
*/
|
|
6568
6568
|
async listen(opts = {}) {
|
|
6569
|
-
const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => (
|
|
6570
|
-
const publicDir = _nullishCoalesce(opts.publicDir, () => (
|
|
6569
|
+
const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunk2SGPZEAJcjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
|
|
6570
|
+
const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunk2SGPZEAJcjs.getRivetkitPublicDir.call(void 0, )));
|
|
6571
6571
|
const config = this.parseConfig();
|
|
6572
6572
|
const configuredRegistryPromise = buildConfiguredRegistry(config);
|
|
6573
6573
|
this.#runtimeServeConfiguredPromise = configuredRegistryPromise;
|
|
@@ -6595,7 +6595,7 @@ var Registry = class {
|
|
|
6595
6595
|
return jsonRouteResponse(503, {
|
|
6596
6596
|
status: "not_started",
|
|
6597
6597
|
runtime: "rivetkit",
|
|
6598
|
-
version:
|
|
6598
|
+
version: _chunk2SGPZEAJcjs.VERSION
|
|
6599
6599
|
});
|
|
6600
6600
|
}
|
|
6601
6601
|
const { runtime, registry } = configured;
|
|
@@ -6603,7 +6603,7 @@ var Registry = class {
|
|
|
6603
6603
|
return jsonRouteResponse(501, {
|
|
6604
6604
|
status: "unsupported",
|
|
6605
6605
|
runtime: "rivetkit",
|
|
6606
|
-
version:
|
|
6606
|
+
version: _chunk2SGPZEAJcjs.VERSION
|
|
6607
6607
|
});
|
|
6608
6608
|
}
|
|
6609
6609
|
const response = await runtime.registryHealth(registry);
|
|
@@ -6847,7 +6847,7 @@ var Registry = class {
|
|
|
6847
6847
|
);
|
|
6848
6848
|
}
|
|
6849
6849
|
if (this.#runtimeReadyPromise) return this.#runtimeReadyPromise;
|
|
6850
|
-
if (
|
|
6850
|
+
if (_chunk2SGPZEAJcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
|
|
6851
6851
|
return Promise.reject(
|
|
6852
6852
|
new Error(
|
|
6853
6853
|
"registry.startAndWait() requires envoy runtime mode; serverless registries become ready per request"
|
|
@@ -6915,8 +6915,8 @@ var Registry = class {
|
|
|
6915
6915
|
* ```
|
|
6916
6916
|
*/
|
|
6917
6917
|
start() {
|
|
6918
|
-
if (
|
|
6919
|
-
const publicDir = _nullishCoalesce(
|
|
6918
|
+
if (_chunk2SGPZEAJcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
|
|
6919
|
+
const publicDir = _nullishCoalesce(_chunk2SGPZEAJcjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
|
|
6920
6920
|
this.listen({ publicDir }).catch((error) => {
|
|
6921
6921
|
logger2().error({ error }, "auto-listen failed; exiting");
|
|
6922
6922
|
if (typeof process !== "undefined" && typeof process.exit === "function") {
|
|
@@ -6937,7 +6937,7 @@ var Registry = class {
|
|
|
6937
6937
|
};
|
|
6938
6938
|
console.log();
|
|
6939
6939
|
console.log(
|
|
6940
|
-
` RivetKit ${
|
|
6940
|
+
` RivetKit ${_chunk2SGPZEAJcjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
|
|
6941
6941
|
);
|
|
6942
6942
|
if (config.namespace !== "default") {
|
|
6943
6943
|
logLine("Namespace", config.namespace);
|
|
@@ -7012,5 +7012,5 @@ function setup(input) {
|
|
|
7012
7012
|
|
|
7013
7013
|
|
|
7014
7014
|
|
|
7015
|
-
exports.ALLOWED_PUBLIC_HEADERS =
|
|
7015
|
+
exports.ALLOWED_PUBLIC_HEADERS = _chunk46AE7JOIcjs.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 = _chunk46AE7JOIcjs.createClientWithDriver; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunk2SGPZEAJcjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunk2SGPZEAJcjs.toUint8Array;
|
|
7016
7016
|
//# 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-6D2WRHJV.js";
|
|
4
4
|
import {
|
|
5
5
|
ACTOR_CONTEXT_INTERNAL_SYMBOL,
|
|
6
6
|
ActorConfigSchema,
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
getDatacenters,
|
|
23
23
|
tryParseEndpoint,
|
|
24
24
|
updateRunnerConfig
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YU3C5OCU.js";
|
|
26
26
|
import {
|
|
27
27
|
makePrefixedKey,
|
|
28
28
|
removePrefixFromKey
|
|
29
29
|
} from "./chunk-JI6GZ2C2.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-YHPFCYL3.js";
|
|
31
31
|
import "./chunk-7AFZMFPQ.js";
|
|
32
32
|
import {
|
|
33
33
|
LogLevelSchema,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
parsePortEnv,
|
|
62
62
|
stringifyError,
|
|
63
63
|
toUint8Array
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-OG4OR2CM.js";
|
|
65
65
|
import {
|
|
66
66
|
INTERNAL_ERROR_CODE,
|
|
67
67
|
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 _chunkDOPH7DT2cjs = require('../chunk-DOPH7DT2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk46AE7JOIcjs = require('../chunk-46AE7JOI.cjs');
|
|
7
7
|
require('../chunk-MYWZCDML.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-MNZFNIVI.cjs');
|
|
9
9
|
require('../chunk-UEULFXUI.cjs');
|
|
10
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-2SGPZEAJ.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 = _chunkDOPH7DT2cjs.createClient.call(void 0, {
|
|
40
|
+
..._chunk46AE7JOIcjs.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-CH25U5NO.js";
|
|
4
4
|
import {
|
|
5
5
|
convertRegistryConfigToClientConfig
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-YU3C5OCU.js";
|
|
7
7
|
import "../chunk-JI6GZ2C2.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-YHPFCYL3.js";
|
|
9
9
|
import "../chunk-7AFZMFPQ.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-OG4OR2CM.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 _chunk2SGPZEAJcjs = require('./chunk-2SGPZEAJ.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 = _chunk2SGPZEAJcjs.EXTRA_ERROR_LOG; exports.SinglePromiseQueue = _chunk2SGPZEAJcjs.SinglePromiseQueue; exports.VERSION = _chunk2SGPZEAJcjs.VERSION; exports.arrayBuffersEqual = _chunk2SGPZEAJcjs.arrayBuffersEqual; exports.assertUnreachable = _chunk2SGPZEAJcjs.assertUnreachable; exports.bufferToArrayBuffer = _chunk2SGPZEAJcjs.bufferToArrayBuffer; exports.combineUrlPath = _chunk2SGPZEAJcjs.combineUrlPath; exports.dbg = _chunk2SGPZEAJcjs.dbg; exports.detectRuntime = _chunk2SGPZEAJcjs.detectRuntime; exports.getEnvUniversal = _chunk2SGPZEAJcjs.getEnvUniversal; exports.httpUserAgent = _chunk2SGPZEAJcjs.httpUserAgent; exports.interval = _chunk2SGPZEAJcjs.interval; exports.joinSignals = _chunk2SGPZEAJcjs.joinSignals; exports.jsonParseCompat = _chunk2SGPZEAJcjs.jsonParseCompat; exports.jsonStringifyCompat = _chunk2SGPZEAJcjs.jsonStringifyCompat; exports.promiseWithResolvers = _chunk2SGPZEAJcjs.promiseWithResolvers; exports.setLongTimeout = _chunk2SGPZEAJcjs.setLongTimeout; exports.sleep = _chunk2SGPZEAJcjs.sleep; exports.stringifyError = _chunk2SGPZEAJcjs.stringifyError; exports.toUint8Array = _chunk2SGPZEAJcjs.toUint8Array;
|
|
46
46
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/tsup/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } var _class; var _class2;
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkTQHMPWL6cjs = require('../chunk-TQHMPWL6.cjs');
|
|
4
|
+
require('../chunk-UIZZCJ5W.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunkHNHLBM3Ycjs = require('../chunk-HNHLBM3Y.cjs');
|
|
|
12
12
|
var _chunkMYWZCDMLcjs = require('../chunk-MYWZCDML.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk2SGPZEAJcjs = require('../chunk-2SGPZEAJ.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -716,7 +716,7 @@ function workflow(fn, options = {}) {
|
|
|
716
716
|
function getWorkflowInspector(actorId) {
|
|
717
717
|
let workflowInspector = workflowInspectors.get(actorId);
|
|
718
718
|
if (!workflowInspector) {
|
|
719
|
-
workflowInspector =
|
|
719
|
+
workflowInspector = _chunkTQHMPWL6cjs.createWorkflowInspectorAdapter.call(void 0, );
|
|
720
720
|
workflowInspectors.set(actorId, workflowInspector);
|
|
721
721
|
}
|
|
722
722
|
return workflowInspector;
|
|
@@ -784,13 +784,13 @@ function workflow(fn, options = {}) {
|
|
|
784
784
|
if (shouldRethrowWorkflowError(error)) {
|
|
785
785
|
runCtx.log.error({
|
|
786
786
|
msg: "workflow run failed",
|
|
787
|
-
error:
|
|
787
|
+
error: _chunk2SGPZEAJcjs.stringifyError.call(void 0, error)
|
|
788
788
|
});
|
|
789
789
|
throw error;
|
|
790
790
|
}
|
|
791
791
|
runCtx.log.warn({
|
|
792
792
|
msg: "workflow failed and will sleep until woken",
|
|
793
|
-
error:
|
|
793
|
+
error: _chunk2SGPZEAJcjs.stringifyError.call(void 0, error)
|
|
794
794
|
});
|
|
795
795
|
} finally {
|
|
796
796
|
runCtx.abortSignal.removeEventListener("abort", onAbort);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkflowInspectorAdapter
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-7YQJXWBW.js";
|
|
4
|
+
import "../chunk-6D2WRHJV.js";
|
|
5
5
|
import {
|
|
6
6
|
ACTOR_CONTEXT_INTERNAL_SYMBOL,
|
|
7
7
|
RUN_FUNCTION_CONFIG_SYMBOL
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "../chunk-JI6GZ2C2.js";
|
|
13
13
|
import {
|
|
14
14
|
stringifyError
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-OG4OR2CM.js";
|
|
16
16
|
import {
|
|
17
17
|
RivetError,
|
|
18
18
|
isActorAbortedError
|