rivetkit 2.3.19 → 2.3.21
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.d.ts +82 -5
- package/dist/browser/client.js +302 -60
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.js +2 -1
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/actor/errors.cjs.map +1 -1
- package/dist/tsup/agent-os/index.cjs +35 -1
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.d.cts +71 -4
- package/dist/tsup/agent-os/index.d.ts +71 -4
- package/dist/tsup/agent-os/index.js +35 -1
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-X7RMJQGY.js → chunk-2CI2IEVN.js} +2 -2
- package/dist/tsup/{chunk-WME6KOXW.js → chunk-5EGLHQJJ.js} +2 -2
- package/dist/tsup/{chunk-464WE4RF.js → chunk-5IBUZFLP.js} +2 -2
- package/dist/tsup/{chunk-PPEIPCW4.cjs → chunk-6LRPYB4Q.cjs} +4 -4
- package/dist/tsup/chunk-6LRPYB4Q.cjs.map +1 -0
- package/dist/tsup/{chunk-7BRRGBRY.cjs → chunk-APOANSDG.cjs} +10 -10
- package/dist/tsup/chunk-APOANSDG.cjs.map +1 -0
- package/dist/tsup/{chunk-G4U5L6AX.cjs → chunk-ARGNQGYG.cjs} +3 -3
- package/dist/tsup/chunk-ARGNQGYG.cjs.map +1 -0
- package/dist/tsup/{chunk-IJUXBWH4.cjs → chunk-B5SNXPSS.cjs} +448 -199
- package/dist/tsup/chunk-B5SNXPSS.cjs.map +1 -0
- package/dist/tsup/{chunk-4SC2NSAV.js → chunk-CJXBGTVT.js} +2 -2
- package/dist/tsup/{chunk-EB77NZL4.js → chunk-CSOHAAZK.js} +33 -1
- package/dist/tsup/chunk-CSOHAAZK.js.map +1 -0
- package/dist/tsup/{chunk-Z4RAXFSD.cjs → chunk-GHKQC4PD.cjs} +3 -3
- package/dist/tsup/chunk-GHKQC4PD.cjs.map +1 -0
- package/dist/tsup/chunk-JX2ITWAV.cjs.map +1 -1
- package/dist/tsup/chunk-KVFIONKQ.cjs.map +1 -1
- package/dist/tsup/{chunk-RJC5O2SD.cjs → chunk-KWGN2ZBJ.cjs} +3 -2
- package/dist/tsup/chunk-KWGN2ZBJ.cjs.map +1 -0
- package/dist/tsup/{chunk-OGPFN6BT.cjs → chunk-LWSLKKZ5.cjs} +3 -3
- package/dist/tsup/chunk-LWSLKKZ5.cjs.map +1 -0
- package/dist/tsup/chunk-MYWZCDML.cjs.map +1 -1
- package/dist/tsup/{chunk-7A5EIXJJ.cjs → chunk-NL2EIKK6.cjs} +7 -7
- package/dist/tsup/chunk-NL2EIKK6.cjs.map +1 -0
- package/dist/tsup/{chunk-EO5UOXXY.cjs → chunk-NWCAIWHL.cjs} +34 -2
- package/dist/tsup/chunk-NWCAIWHL.cjs.map +1 -0
- package/dist/tsup/{chunk-BKX7UDTA.js → chunk-PYRI75DL.js} +314 -65
- package/dist/tsup/chunk-PYRI75DL.js.map +1 -0
- package/dist/tsup/{chunk-7HTST3NX.js → chunk-RFN3BG6D.js} +3 -3
- package/dist/tsup/chunk-RFN3BG6D.js.map +1 -0
- package/dist/tsup/{chunk-DN6MD3KK.js → chunk-RGIZNZYO.js} +3 -2
- package/dist/tsup/chunk-RGIZNZYO.js.map +1 -0
- package/dist/tsup/{chunk-DK3L22R6.js → chunk-VMMXXVDO.js} +4 -4
- package/dist/tsup/client/mod.cjs +5 -5
- package/dist/tsup/client/mod.cjs.map +1 -1
- package/dist/tsup/client/mod.d.cts +12 -3
- package/dist/tsup/client/mod.d.ts +12 -3
- package/dist/tsup/client/mod.js +4 -4
- package/dist/tsup/common/log.cjs +2 -2
- package/dist/tsup/common/log.cjs.map +1 -1
- package/dist/tsup/common/log.js +1 -1
- package/dist/tsup/common/websocket.cjs +3 -3
- package/dist/tsup/common/websocket.cjs.map +1 -1
- package/dist/tsup/common/websocket.js +2 -2
- package/dist/tsup/{config-DEm0yIVV.d.ts → config-Bc1nnvUl.d.ts} +76 -6
- package/dist/tsup/{config-8n2AOhXK.d.cts → config-Do_0guSS.d.cts} +76 -6
- package/dist/tsup/{context-DwjOVvlE.d.cts → context-CgNkhjdY.d.cts} +1 -1
- package/dist/tsup/{context-DGg2-IOm.d.ts → context-oGQxZDPz.d.ts} +1 -1
- package/dist/tsup/db/drizzle.cjs +2 -2
- package/dist/tsup/db/drizzle.cjs.map +1 -1
- package/dist/tsup/db/drizzle.js +1 -1
- package/dist/tsup/db/mod.cjs +3 -3
- package/dist/tsup/db/mod.cjs.map +1 -1
- package/dist/tsup/db/mod.js +2 -2
- package/dist/tsup/dynamic/mod.cjs +2 -2
- package/dist/tsup/dynamic/mod.cjs.map +1 -1
- package/dist/tsup/dynamic/mod.d.cts +2 -1
- package/dist/tsup/dynamic/mod.d.ts +2 -1
- package/dist/tsup/dynamic/mod.js +1 -1
- package/dist/tsup/inspector/mod.cjs +5 -5
- package/dist/tsup/inspector/mod.cjs.map +1 -1
- package/dist/tsup/inspector/mod.js +4 -4
- package/dist/tsup/inspector/workflow.cjs +4 -4
- package/dist/tsup/inspector/workflow.cjs.map +1 -1
- package/dist/tsup/inspector/workflow.js +3 -3
- package/dist/tsup/inspector-tab/mod.cjs +2 -2
- package/dist/tsup/inspector-tab/mod.cjs.map +1 -1
- package/dist/tsup/inspector-tab/mod.d.cts +3 -2
- package/dist/tsup/inspector-tab/mod.d.ts +3 -2
- package/dist/tsup/inspector-tab/mod.js +1 -1
- package/dist/tsup/mod.cjs +140 -136
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +4 -3
- package/dist/tsup/mod.d.ts +4 -3
- package/dist/tsup/mod.js +44 -40
- package/dist/tsup/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +6 -6
- package/dist/tsup/test/mod.cjs.map +1 -1
- package/dist/tsup/test/mod.d.cts +2 -1
- package/dist/tsup/test/mod.d.ts +2 -1
- package/dist/tsup/test/mod.js +4 -4
- package/dist/tsup/unstable/migrations.cjs.map +1 -1
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.cjs.map +1 -1
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +10 -10
- package/dist/tsup/workflow/mod.cjs.map +1 -1
- package/dist/tsup/workflow/mod.d.cts +4 -3
- package/dist/tsup/workflow/mod.d.ts +4 -3
- package/dist/tsup/workflow/mod.js +5 -5
- package/package.json +10 -9
- package/src/actor/actions.ts +36 -0
- package/src/actor/config.ts +27 -0
- package/src/actor/definition.ts +6 -1
- package/src/actor/mod.ts +5 -0
- package/src/actor/tracing.ts +28 -0
- package/src/client/actor-conn.ts +34 -1
- package/src/client/actor-handle.ts +29 -1
- package/src/client/auth.ts +37 -0
- package/src/client/client.ts +10 -2
- package/src/client/config.ts +12 -1
- package/src/client/mod.ts +9 -0
- package/src/client/token-provider.test.ts +86 -0
- package/src/client/token-provider.ts +93 -0
- package/src/client/utils.ts +1 -0
- package/src/engine-client/actor-websocket-client.ts +2 -1
- package/src/engine-client/api-endpoints.ts +28 -0
- package/src/engine-client/driver.ts +4 -0
- package/src/engine-client/mod.ts +201 -64
- package/src/registry/config/envoy.ts +1 -17
- package/src/registry/config/index.test.ts +2 -2
- package/src/registry/config/index.ts +7 -2
- package/src/registry/index.ts +28 -0
- package/src/registry/native.ts +18 -0
- package/src/registry/runtime.ts +8 -0
- package/dist/tsup/chunk-7A5EIXJJ.cjs.map +0 -1
- package/dist/tsup/chunk-7BRRGBRY.cjs.map +0 -1
- package/dist/tsup/chunk-7HTST3NX.js.map +0 -1
- package/dist/tsup/chunk-BKX7UDTA.js.map +0 -1
- package/dist/tsup/chunk-DN6MD3KK.js.map +0 -1
- package/dist/tsup/chunk-EB77NZL4.js.map +0 -1
- package/dist/tsup/chunk-EO5UOXXY.cjs.map +0 -1
- package/dist/tsup/chunk-G4U5L6AX.cjs.map +0 -1
- package/dist/tsup/chunk-IJUXBWH4.cjs.map +0 -1
- package/dist/tsup/chunk-OGPFN6BT.cjs.map +0 -1
- package/dist/tsup/chunk-PPEIPCW4.cjs.map +0 -1
- package/dist/tsup/chunk-RJC5O2SD.cjs.map +0 -1
- package/dist/tsup/chunk-Z4RAXFSD.cjs.map +0 -1
- /package/dist/tsup/{chunk-X7RMJQGY.js.map → chunk-2CI2IEVN.js.map} +0 -0
- /package/dist/tsup/{chunk-WME6KOXW.js.map → chunk-5EGLHQJJ.js.map} +0 -0
- /package/dist/tsup/{chunk-464WE4RF.js.map → chunk-5IBUZFLP.js.map} +0 -0
- /package/dist/tsup/{chunk-4SC2NSAV.js.map → chunk-CJXBGTVT.js.map} +0 -0
- /package/dist/tsup/{chunk-DK3L22R6.js.map → chunk-VMMXXVDO.js.map} +0 -0
package/dist/tsup/mod.cjs
CHANGED
|
@@ -1,5 +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 _chunk6LRPYB4Qcjs = require('./chunk-6LRPYB4Q.cjs');
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
|
|
@@ -13,11 +14,10 @@
|
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
|
|
16
|
-
var _chunkEO5UOXXYcjs = require('./chunk-EO5UOXXY.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var _chunkPPEIPCW4cjs = require('./chunk-PPEIPCW4.cjs');
|
|
20
19
|
|
|
20
|
+
var _chunkNWCAIWHLcjs = require('./chunk-NWCAIWHL.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -30,17 +30,22 @@ var _chunkPPEIPCW4cjs = require('./chunk-PPEIPCW4.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
var _chunkB5SNXPSScjs = require('./chunk-B5SNXPSS.cjs');
|
|
34
39
|
|
|
35
40
|
|
|
36
41
|
|
|
37
42
|
var _chunkMYWZCDMLcjs = require('./chunk-MYWZCDML.cjs');
|
|
38
|
-
require('./chunk-
|
|
43
|
+
require('./chunk-LWSLKKZ5.cjs');
|
|
39
44
|
|
|
40
45
|
|
|
41
46
|
|
|
42
47
|
|
|
43
|
-
var
|
|
48
|
+
var _chunkGHKQC4PDcjs = require('./chunk-GHKQC4PD.cjs');
|
|
44
49
|
require('./chunk-KVFIONKQ.cjs');
|
|
45
50
|
|
|
46
51
|
|
|
@@ -75,7 +80,7 @@ require('./chunk-KVFIONKQ.cjs');
|
|
|
75
80
|
|
|
76
81
|
|
|
77
82
|
|
|
78
|
-
var
|
|
83
|
+
var _chunkKWGN2ZBJcjs = require('./chunk-KWGN2ZBJ.cjs');
|
|
79
84
|
|
|
80
85
|
|
|
81
86
|
|
|
@@ -92,7 +97,7 @@ var _chunkJX2ITWAVcjs = require('./chunk-JX2ITWAV.cjs');
|
|
|
92
97
|
|
|
93
98
|
// src/actor/log.ts
|
|
94
99
|
function loggerWithoutContext() {
|
|
95
|
-
return
|
|
100
|
+
return _chunkKWGN2ZBJcjs.getLogger.call(void 0, "actor-runtime");
|
|
96
101
|
}
|
|
97
102
|
|
|
98
103
|
// src/actor/definition.ts
|
|
@@ -128,12 +133,14 @@ function isStaticActorInstance(_actor) {
|
|
|
128
133
|
return true;
|
|
129
134
|
}
|
|
130
135
|
function actor(input) {
|
|
136
|
+
var _a;
|
|
131
137
|
warnDeprecatedOptionKeys(
|
|
132
138
|
input == null ? void 0 : input.options
|
|
133
139
|
);
|
|
134
|
-
const config =
|
|
135
|
-
|
|
136
|
-
|
|
140
|
+
const config = _chunkNWCAIWHLcjs.ActorConfigSchema.parse(input);
|
|
141
|
+
_chunkNWCAIWHLcjs.flattenActionHandlers.call(void 0, config.actions);
|
|
142
|
+
_chunkNWCAIWHLcjs.flattenActionInputSchemas.call(void 0, config.actions, config.actionInputSchemas);
|
|
143
|
+
_chunkNWCAIWHLcjs.flattenActionTraceSamplers.call(void 0, config.actions, (_a = config.tracing) == null ? void 0 : _a.actions);
|
|
137
144
|
return new ActorDefinition(config);
|
|
138
145
|
}
|
|
139
146
|
function isStaticActorDefinition(definition) {
|
|
@@ -232,7 +239,7 @@ function validateSchemaSync(schemas, key, data) {
|
|
|
232
239
|
var _virtualwebsocket = require('@rivetkit/virtual-websocket');
|
|
233
240
|
var _ws = require('hono/ws');
|
|
234
241
|
function logger() {
|
|
235
|
-
return
|
|
242
|
+
return _chunkKWGN2ZBJcjs.getLogger.call(void 0, "inline-websocket-adapter");
|
|
236
243
|
}
|
|
237
244
|
var InlineWebSocketAdapter = class {
|
|
238
245
|
#handler;
|
|
@@ -382,28 +389,9 @@ var InlineWebSocketAdapter = class {
|
|
|
382
389
|
}
|
|
383
390
|
};
|
|
384
391
|
|
|
385
|
-
// src/common/engine.ts
|
|
386
|
-
var ENGINE_HOST = "127.0.0.1";
|
|
387
|
-
var ENGINE_PORT = 6420;
|
|
388
|
-
var ENGINE_ENDPOINT = buildEngineEndpoint(ENGINE_HOST, ENGINE_PORT);
|
|
389
|
-
function buildEngineEndpoint(host, port) {
|
|
390
|
-
const urlHost = host.includes(":") && !host.startsWith("[") ? `[${host}]` : host;
|
|
391
|
-
return `http://${urlHost}:${port}`;
|
|
392
|
-
}
|
|
393
|
-
function isLocalEngineEndpoint(endpoint) {
|
|
394
|
-
let url;
|
|
395
|
-
try {
|
|
396
|
-
url = new URL(endpoint);
|
|
397
|
-
} catch (e) {
|
|
398
|
-
return false;
|
|
399
|
-
}
|
|
400
|
-
const hostname = url.hostname.toLowerCase();
|
|
401
|
-
return hostname === "localhost" || hostname === "0.0.0.0" || hostname === "::" || hostname === "[::]" || hostname === "::1" || hostname === "[::1]" || /^127(?:\.\d{1,3}){0,3}$/.test(hostname);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
392
|
// src/registry/log.ts
|
|
405
393
|
function logger2() {
|
|
406
|
-
return
|
|
394
|
+
return _chunkKWGN2ZBJcjs.getLogger.call(void 0, "registry");
|
|
407
395
|
}
|
|
408
396
|
|
|
409
397
|
// src/serverless/configure.ts
|
|
@@ -449,8 +437,8 @@ async function configureServerlessPool(config) {
|
|
|
449
437
|
);
|
|
450
438
|
}
|
|
451
439
|
const customConfig = config.configurePool;
|
|
452
|
-
const clientConfig =
|
|
453
|
-
const dcsRes = await
|
|
440
|
+
const clientConfig = _chunkB5SNXPSScjs.convertRegistryConfigToClientConfig.call(void 0, config);
|
|
441
|
+
const dcsRes = await _chunkB5SNXPSScjs.getDatacenters.call(void 0, clientConfig);
|
|
454
442
|
const poolName = _nullishCoalesce(customConfig.name, () => ( "default"));
|
|
455
443
|
const serverlessToken = _nullishCoalesce(config.token, () => ( config.publicToken));
|
|
456
444
|
const headers = {
|
|
@@ -472,7 +460,7 @@ async function configureServerlessPool(config) {
|
|
|
472
460
|
metadata: _nullishCoalesce(customConfig.metadata, () => ( {})),
|
|
473
461
|
drain_on_version_upgrade: _nullishCoalesce(customConfig.drainOnVersionUpgrade, () => ( true))
|
|
474
462
|
};
|
|
475
|
-
await
|
|
463
|
+
await _chunkB5SNXPSScjs.updateRunnerConfig.call(void 0, clientConfig, poolName, {
|
|
476
464
|
datacenters: Object.fromEntries(
|
|
477
465
|
dcsRes.datacenters.map((dc) => [dc.name, serverlessConfig])
|
|
478
466
|
)
|
|
@@ -489,7 +477,7 @@ async function configureServerlessPool(config) {
|
|
|
489
477
|
logger2().warn({
|
|
490
478
|
msg: "serverless pool configuration attempt failed",
|
|
491
479
|
attempts,
|
|
492
|
-
error:
|
|
480
|
+
error: _chunkKWGN2ZBJcjs.stringifyError.call(void 0, error)
|
|
493
481
|
});
|
|
494
482
|
await sleep(CONFIGURE_RETRY_DELAY_MS);
|
|
495
483
|
}
|
|
@@ -497,7 +485,7 @@ async function configureServerlessPool(config) {
|
|
|
497
485
|
logger2().error({
|
|
498
486
|
msg: "failed to configure serverless pool, validate endpoint is configured correctly then restart this process",
|
|
499
487
|
attempts,
|
|
500
|
-
error:
|
|
488
|
+
error: _chunkKWGN2ZBJcjs.stringifyError.call(void 0, lastError)
|
|
501
489
|
});
|
|
502
490
|
throw lastError;
|
|
503
491
|
}
|
|
@@ -507,22 +495,11 @@ var _zod = require('zod');
|
|
|
507
495
|
|
|
508
496
|
// src/registry/config/envoy.ts
|
|
509
497
|
var _v4 = require('zod/v4');
|
|
510
|
-
var warnedMissingVersion = false;
|
|
511
498
|
var EnvoyConfigSchema = _v4.z.object({
|
|
512
|
-
poolName: _v4.z.string().default(() => _nullishCoalesce(
|
|
513
|
-
version: _v4.z.number().default(() =>
|
|
514
|
-
const version = _chunkRJC5O2SDcjs.getRivetEnvoyVersion.call(void 0, );
|
|
515
|
-
if (version !== void 0) return version;
|
|
516
|
-
if (_chunkRJC5O2SDcjs.getNodeEnv.call(void 0, ) === "production" && !warnedMissingVersion) {
|
|
517
|
-
warnedMissingVersion = true;
|
|
518
|
-
_chunkRJC5O2SDcjs.getLogger.call(void 0, "rivetkit").error(
|
|
519
|
-
"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"
|
|
520
|
-
);
|
|
521
|
-
}
|
|
522
|
-
return 1;
|
|
523
|
-
}),
|
|
499
|
+
poolName: _v4.z.string().default(() => _nullishCoalesce(_chunkKWGN2ZBJcjs.getRivetPool.call(void 0, ), () => ( "default"))),
|
|
500
|
+
version: _v4.z.number().default(() => _nullishCoalesce(_chunkKWGN2ZBJcjs.getRivetEnvoyVersion.call(void 0, ), () => ( 1))),
|
|
524
501
|
// Deprecated.
|
|
525
|
-
totalSlots: _v4.z.number().default(() => _nullishCoalesce(
|
|
502
|
+
totalSlots: _v4.z.number().default(() => _nullishCoalesce(_chunkKWGN2ZBJcjs.getRivetTotalSlots.call(void 0, ), () => ( 1e5))),
|
|
526
503
|
envoyKey: _v4.z.string().optional()
|
|
527
504
|
});
|
|
528
505
|
|
|
@@ -560,7 +537,7 @@ var ServerlessConfigSchema = _v4.z.object({
|
|
|
560
537
|
*
|
|
561
538
|
* Can also be set via RIVET_PUBLIC_ENDPOINT environment variable.
|
|
562
539
|
*/
|
|
563
|
-
publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
540
|
+
publicEndpoint: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkKWGN2ZBJcjs.getRivetPublicEndpoint.call(void 0, )))),
|
|
564
541
|
/**
|
|
565
542
|
* Token that clients should use when connecting via the public endpoint.
|
|
566
543
|
*
|
|
@@ -568,7 +545,7 @@ var ServerlessConfigSchema = _v4.z.object({
|
|
|
568
545
|
*
|
|
569
546
|
* Can also be specified in the publicEndpoint URL as `https://namespace:token@host`.
|
|
570
547
|
*/
|
|
571
|
-
publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
548
|
+
publicToken: _v4.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkKWGN2ZBJcjs.getRivetPublicToken.call(void 0, ))))
|
|
572
549
|
// There is no publicNamespace config option because the frontend and backend
|
|
573
550
|
// cannot use different namespaces. The namespace is extracted from the
|
|
574
551
|
// publicEndpoint URL auth syntax if provided.
|
|
@@ -622,7 +599,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
622
599
|
* Runtime binding to use for RivetKit core.
|
|
623
600
|
* */
|
|
624
601
|
runtime: RuntimeKindSchema.optional().transform((val, ctx) => {
|
|
625
|
-
const rawRuntime = _nullishCoalesce(val, () => (
|
|
602
|
+
const rawRuntime = _nullishCoalesce(val, () => ( _chunkKWGN2ZBJcjs.getRivetkitRuntime.call(void 0, )));
|
|
626
603
|
if (rawRuntime === void 0) {
|
|
627
604
|
return "auto";
|
|
628
605
|
}
|
|
@@ -659,7 +636,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
659
636
|
* */
|
|
660
637
|
logging: _zod.z.object({
|
|
661
638
|
baseLogger: _zod.z.custom().optional(),
|
|
662
|
-
level:
|
|
639
|
+
level: _chunkKWGN2ZBJcjs.LogLevelSchema.optional()
|
|
663
640
|
}).optional().default(() => ({})),
|
|
664
641
|
// MARK: Routing
|
|
665
642
|
// // This is a function to allow for lazy configuration of upgradeWebSocket on the
|
|
@@ -677,9 +654,9 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
677
654
|
*
|
|
678
655
|
* Can also be set via RIVET_ENDPOINT environment variables.
|
|
679
656
|
*/
|
|
680
|
-
endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => (
|
|
681
|
-
token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
682
|
-
namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => (
|
|
657
|
+
endpoint: _zod.z.string().optional().transform((val) => _nullishCoalesce(_nullishCoalesce(val, () => ( _chunkKWGN2ZBJcjs.getRivetEngine.call(void 0, ))), () => ( _chunkKWGN2ZBJcjs.getRivetEndpoint.call(void 0, )))),
|
|
658
|
+
token: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkKWGN2ZBJcjs.getRivetToken.call(void 0, )))),
|
|
659
|
+
namespace: _zod.z.string().optional().transform((val) => _nullishCoalesce(val, () => ( _chunkKWGN2ZBJcjs.getRivetNamespace.call(void 0, )))),
|
|
683
660
|
headers: _zod.z.record(_zod.z.string(), _zod.z.string()).optional().default({}),
|
|
684
661
|
// MARK: Client
|
|
685
662
|
// TODO:
|
|
@@ -719,21 +696,21 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
719
696
|
*
|
|
720
697
|
* Starts the full Rust engine process locally.
|
|
721
698
|
*/
|
|
722
|
-
startEngine: _zod.z.boolean().default(() =>
|
|
699
|
+
startEngine: _zod.z.boolean().default(() => _chunkKWGN2ZBJcjs.getRivetRunEngine.call(void 0, )),
|
|
723
700
|
/**
|
|
724
701
|
* @experimental
|
|
725
702
|
*
|
|
726
703
|
* Host to bind the spawned local engine process to.
|
|
727
704
|
*/
|
|
728
|
-
engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(
|
|
705
|
+
engineHost: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkKWGN2ZBJcjs.getRivetRunEngineHost.call(void 0, ), () => ( _chunkB5SNXPSScjs.ENGINE_HOST))),
|
|
729
706
|
/**
|
|
730
707
|
* @experimental
|
|
731
708
|
*
|
|
732
709
|
* Port to bind the spawned local engine process to.
|
|
733
710
|
*/
|
|
734
|
-
enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(
|
|
711
|
+
enginePort: _zod.z.number().int().min(1).max(65535).optional().default(() => _nullishCoalesce(_chunkKWGN2ZBJcjs.getRivetRunEnginePort.call(void 0, ), () => ( _chunkB5SNXPSScjs.ENGINE_PORT))),
|
|
735
712
|
/** @experimental */
|
|
736
|
-
engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(
|
|
713
|
+
engineVersion: _zod.z.string().optional().default(() => _nullishCoalesce(_chunkKWGN2ZBJcjs.getRivetRunEngineVersion.call(void 0, ), () => ( _chunkKWGN2ZBJcjs.VERSION))),
|
|
737
714
|
/**
|
|
738
715
|
* Starts the first-party Services actor host when RivetKit manages
|
|
739
716
|
* a local engine. Defaults to the local-engine decision. Set
|
|
@@ -787,7 +764,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
787
764
|
}))
|
|
788
765
|
}).transform((config, ctx) => {
|
|
789
766
|
var _a, _b, _c;
|
|
790
|
-
const isDevEnv =
|
|
767
|
+
const isDevEnv = _chunkKWGN2ZBJcjs.isDev.call(void 0, );
|
|
791
768
|
const sqliteBackend = _nullishCoalesce(((_a = config.sqlite) == null ? void 0 : _a.backend), () => ( ((_b = config.test) == null ? void 0 : _b.sqliteBackend)));
|
|
792
769
|
if (config.runtime === "wasm" && sqliteBackend === "local") {
|
|
793
770
|
ctx.addIssue({
|
|
@@ -797,7 +774,7 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
797
774
|
});
|
|
798
775
|
}
|
|
799
776
|
const sqlite = config.runtime === "wasm" && config.sqlite === void 0 ? { backend: "remote" } : config.sqlite;
|
|
800
|
-
const parsedEndpoint = config.endpoint ?
|
|
777
|
+
const parsedEndpoint = config.endpoint ? _chunkB5SNXPSScjs.tryParseEndpoint.call(void 0, ctx, {
|
|
801
778
|
endpoint: config.endpoint,
|
|
802
779
|
path: ["endpoint"],
|
|
803
780
|
namespace: config.namespace,
|
|
@@ -815,18 +792,18 @@ var RegistryConfigSchema = _zod.z.object({
|
|
|
815
792
|
message: "configurePool requires either endpoint or startEngine"
|
|
816
793
|
});
|
|
817
794
|
}
|
|
818
|
-
const localEngineEndpoint = buildEngineEndpoint(
|
|
795
|
+
const localEngineEndpoint = _chunkB5SNXPSScjs.buildEngineEndpoint.call(void 0,
|
|
819
796
|
config.engineHost,
|
|
820
797
|
config.enginePort
|
|
821
798
|
);
|
|
822
799
|
const endpoint = config.startEngine ? localEngineEndpoint : _nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.endpoint), () => ( (isDevEnv ? localEngineEndpoint : void 0)));
|
|
823
|
-
const startServices = _nullishCoalesce(_nullishCoalesce(config.startServices, () => (
|
|
800
|
+
const startServices = _nullishCoalesce(_nullishCoalesce(config.startServices, () => ( _chunkKWGN2ZBJcjs.getRivetRunServices.call(void 0, ))), () => ( Boolean(endpoint && _chunkB5SNXPSScjs.isLocalEngineEndpoint.call(void 0, endpoint))));
|
|
824
801
|
const validateServerlessEndpoint = Boolean(
|
|
825
802
|
config.startEngine || parsedEndpoint
|
|
826
803
|
);
|
|
827
804
|
const namespace = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.namespace), () => ( config.namespace)), () => ( "default"));
|
|
828
|
-
const token = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token)), () => ( "
|
|
829
|
-
const parsedPublicEndpoint = config.serverless.publicEndpoint ?
|
|
805
|
+
const token = _nullishCoalesce(_nullishCoalesce((parsedEndpoint == null ? void 0 : parsedEndpoint.token), () => ( config.token)), () => ( (endpoint && _chunkB5SNXPSScjs.isLocalEngineEndpoint.call(void 0, endpoint) ? "default" : void 0)));
|
|
806
|
+
const parsedPublicEndpoint = config.serverless.publicEndpoint ? _chunkB5SNXPSScjs.tryParseEndpoint.call(void 0, ctx, {
|
|
830
807
|
endpoint: config.serverless.publicEndpoint,
|
|
831
808
|
path: ["serverless", "publicEndpoint"]
|
|
832
809
|
}) : void 0;
|
|
@@ -862,7 +839,7 @@ function buildActorNames(config) {
|
|
|
862
839
|
Object.keys(config.use).map((actorName) => {
|
|
863
840
|
const definition = config.use[actorName];
|
|
864
841
|
const options = _nullishCoalesce(definition.config.options, () => ( {}));
|
|
865
|
-
const runMeta =
|
|
842
|
+
const runMeta = _chunkNWCAIWHLcjs.getRunMetadata.call(void 0, definition.config.run);
|
|
866
843
|
const metadata = {};
|
|
867
844
|
metadata.icon = _nullishCoalesce(options.icon, () => ( runMeta.icon));
|
|
868
845
|
metadata.name = _nullishCoalesce(options.name, () => ( runMeta.name));
|
|
@@ -930,7 +907,7 @@ var DocRegistryConfigSchema = _zod.z.object({
|
|
|
930
907
|
noWelcome: _zod.z.boolean().optional().describe("Disable the welcome message on startup. Default: false"),
|
|
931
908
|
sqlite: DocSqliteConfigSchema,
|
|
932
909
|
logging: _zod.z.object({
|
|
933
|
-
level:
|
|
910
|
+
level: _chunkKWGN2ZBJcjs.LogLevelSchema.optional().describe(
|
|
934
911
|
"Log level for RivetKit. Default: 'warn'"
|
|
935
912
|
)
|
|
936
913
|
}).optional().describe("Logging configuration."),
|
|
@@ -1210,7 +1187,7 @@ function wrapJsNativeDatabase(database) {
|
|
|
1210
1187
|
if (transaction) {
|
|
1211
1188
|
try {
|
|
1212
1189
|
await transaction.rollback();
|
|
1213
|
-
} catch (
|
|
1190
|
+
} catch (e) {
|
|
1214
1191
|
}
|
|
1215
1192
|
}
|
|
1216
1193
|
enrichNativeDatabaseError(database, error);
|
|
@@ -1560,7 +1537,7 @@ var NapiCoreRuntime = (_class = class {
|
|
|
1560
1537
|
if (!(active == null ? void 0 : active.sameActorInstance(ownerCtx))) {
|
|
1561
1538
|
return ownerCtx;
|
|
1562
1539
|
}
|
|
1563
|
-
const applicationSpan =
|
|
1540
|
+
const applicationSpan = _chunkB5SNXPSScjs.readActiveTraceHeaders.call(void 0, );
|
|
1564
1541
|
if (!applicationSpan) {
|
|
1565
1542
|
return active;
|
|
1566
1543
|
}
|
|
@@ -1763,7 +1740,7 @@ var NapiCoreRuntime = (_class = class {
|
|
|
1763
1740
|
const span = (_a = nativeCtx.invocationTraceContext()) == null ? void 0 : _a.span;
|
|
1764
1741
|
return this.#invocationContext.run(
|
|
1765
1742
|
nativeCtx,
|
|
1766
|
-
() =>
|
|
1743
|
+
() => _chunkB5SNXPSScjs.runWithActorInvocationSpan.call(void 0, span, run)
|
|
1767
1744
|
);
|
|
1768
1745
|
}
|
|
1769
1746
|
actorInvocationTraceContext(ctx) {
|
|
@@ -2138,8 +2115,8 @@ function runtimeBytesToArrayBuffer(value) {
|
|
|
2138
2115
|
function buildNativeHttpRequest(init) {
|
|
2139
2116
|
var _a;
|
|
2140
2117
|
const headers = new Headers(init.headers);
|
|
2141
|
-
const originalUrl = headers.get(
|
|
2142
|
-
headers.delete(
|
|
2118
|
+
const originalUrl = headers.get(_chunkB5SNXPSScjs.HEADER_ORIGINAL_REQUEST_URL);
|
|
2119
|
+
headers.delete(_chunkB5SNXPSScjs.HEADER_ORIGINAL_REQUEST_URL);
|
|
2143
2120
|
const url = _nullishCoalesce(originalUrl, () => ( (init.uri.startsWith("http") ? init.uri : new URL(init.uri, "http://127.0.0.1").toString())));
|
|
2144
2121
|
const method2 = init.method.toUpperCase();
|
|
2145
2122
|
const bodyForbidden = method2 === "GET" || method2 === "HEAD";
|
|
@@ -2218,7 +2195,7 @@ async function pumpResponseBody(reader, stream) {
|
|
|
2218
2195
|
}
|
|
2219
2196
|
} catch (error) {
|
|
2220
2197
|
try {
|
|
2221
|
-
await stream.error(
|
|
2198
|
+
await stream.error(_chunkKWGN2ZBJcjs.stringifyError.call(void 0, error));
|
|
2222
2199
|
} catch (streamError) {
|
|
2223
2200
|
logger2().debug({
|
|
2224
2201
|
msg: "failed to report native http response stream error",
|
|
@@ -2386,7 +2363,7 @@ var RunHandlerCoordinator = class {
|
|
|
2386
2363
|
this.#run = run;
|
|
2387
2364
|
}
|
|
2388
2365
|
get inspectorKind() {
|
|
2389
|
-
return
|
|
2366
|
+
return _chunkNWCAIWHLcjs.getRunInspectorKind.call(void 0, this.#run);
|
|
2390
2367
|
}
|
|
2391
2368
|
async run(actorId, restart, callback) {
|
|
2392
2369
|
const state = this.#getOrCreate(actorId);
|
|
@@ -2494,7 +2471,7 @@ var RunHandlerCoordinator = class {
|
|
|
2494
2471
|
}
|
|
2495
2472
|
#initializeInspector(actorId, state) {
|
|
2496
2473
|
if (state.inspectorInitialized) return;
|
|
2497
|
-
const inspector =
|
|
2474
|
+
const inspector = _chunkNWCAIWHLcjs.createRunInspector.call(void 0, this.#run, {
|
|
2498
2475
|
actorId,
|
|
2499
2476
|
control: this.#control(actorId, state)
|
|
2500
2477
|
});
|
|
@@ -3414,7 +3391,7 @@ function trySetProcessEnv(key, value) {
|
|
|
3414
3391
|
if (typeof process === "undefined") return;
|
|
3415
3392
|
try {
|
|
3416
3393
|
process.env[key] = value;
|
|
3417
|
-
} catch (
|
|
3394
|
+
} catch (e2) {
|
|
3418
3395
|
}
|
|
3419
3396
|
}
|
|
3420
3397
|
function detectRuntimeHost() {
|
|
@@ -3456,7 +3433,7 @@ async function loadAutoRuntime(config, loaders = defaultRuntimeLoaders) {
|
|
|
3456
3433
|
nativeError = error;
|
|
3457
3434
|
logger2().warn({
|
|
3458
3435
|
msg: "native runtime failed to load; falling back to wasm",
|
|
3459
|
-
error:
|
|
3436
|
+
error: _chunkKWGN2ZBJcjs.stringifyError.call(void 0, error)
|
|
3460
3437
|
});
|
|
3461
3438
|
}
|
|
3462
3439
|
try {
|
|
@@ -3465,7 +3442,7 @@ async function loadAutoRuntime(config, loaders = defaultRuntimeLoaders) {
|
|
|
3465
3442
|
throw new (0, _chunkJX2ITWAVcjs.RivetError)(
|
|
3466
3443
|
"config",
|
|
3467
3444
|
"runtime_unavailable",
|
|
3468
|
-
`RivetKit could not load a core runtime. Native runtime: ${
|
|
3445
|
+
`RivetKit could not load a core runtime. Native runtime: ${_chunkKWGN2ZBJcjs.stringifyError.call(void 0, nativeError)} Wasm runtime: ${_chunkKWGN2ZBJcjs.stringifyError.call(void 0, wasmError)}`,
|
|
3469
3446
|
{
|
|
3470
3447
|
public: true,
|
|
3471
3448
|
statusCode: 500
|
|
@@ -3659,7 +3636,7 @@ async function cleanupNativeSleepRuntimeState(runtime, ctx, afterTrackedWorkDrai
|
|
|
3659
3636
|
}).catch((error) => {
|
|
3660
3637
|
logger2().warn({
|
|
3661
3638
|
msg: "deferred native sleep cleanup failed",
|
|
3662
|
-
error:
|
|
3639
|
+
error: _chunkKWGN2ZBJcjs.stringifyError.call(void 0, error)
|
|
3663
3640
|
});
|
|
3664
3641
|
});
|
|
3665
3642
|
return;
|
|
@@ -3822,10 +3799,10 @@ function decodeValue(value) {
|
|
|
3822
3799
|
if (!value || value.length === 0) {
|
|
3823
3800
|
return void 0;
|
|
3824
3801
|
}
|
|
3825
|
-
return
|
|
3802
|
+
return _chunkKWGN2ZBJcjs.decodeCborCompat.call(void 0, value);
|
|
3826
3803
|
}
|
|
3827
3804
|
function encodeValue(value) {
|
|
3828
|
-
return
|
|
3805
|
+
return _chunkKWGN2ZBJcjs.encodeCborCompat.call(void 0, value);
|
|
3829
3806
|
}
|
|
3830
3807
|
function normalizeArgs(value) {
|
|
3831
3808
|
return Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value];
|
|
@@ -3861,7 +3838,7 @@ function isStructuredBridgeError(error) {
|
|
|
3861
3838
|
return _chunkJX2ITWAVcjs.isRivetErrorLike.call(void 0, error) && "__type" in error && (error.__type === "RivetError" || error.__type === "ActorError");
|
|
3862
3839
|
}
|
|
3863
3840
|
function encodeNativeCallbackError(error) {
|
|
3864
|
-
const structuredError = isStructuredBridgeError(error) ? error :
|
|
3841
|
+
const structuredError = isStructuredBridgeError(error) ? error : _chunkKWGN2ZBJcjs.deconstructError.call(void 0, error, true);
|
|
3865
3842
|
const bridgeError = new Error(_chunkJX2ITWAVcjs.encodeBridgeRivetError.call(void 0, structuredError), {
|
|
3866
3843
|
cause: error instanceof Error ? error : void 0
|
|
3867
3844
|
});
|
|
@@ -3912,8 +3889,8 @@ function decodeWorkflowCbor(data) {
|
|
|
3912
3889
|
return null;
|
|
3913
3890
|
}
|
|
3914
3891
|
try {
|
|
3915
|
-
return
|
|
3916
|
-
} catch (
|
|
3892
|
+
return _chunkKWGN2ZBJcjs.decodeCborCompat.call(void 0, new Uint8Array(data));
|
|
3893
|
+
} catch (e3) {
|
|
3917
3894
|
return null;
|
|
3918
3895
|
}
|
|
3919
3896
|
}
|
|
@@ -4025,7 +4002,7 @@ function serializeWorkflowHistoryForJson(data) {
|
|
|
4025
4002
|
if (data === null) {
|
|
4026
4003
|
return null;
|
|
4027
4004
|
}
|
|
4028
|
-
const history =
|
|
4005
|
+
const history = _chunk6LRPYB4Qcjs.decodeWorkflowHistoryTransport.call(void 0, data);
|
|
4029
4006
|
return jsonSafe({
|
|
4030
4007
|
nameRegistry: [...history.nameRegistry],
|
|
4031
4008
|
entries: history.entries.map((entry) => ({
|
|
@@ -4124,7 +4101,7 @@ var NativeConnAdapter = class {
|
|
|
4124
4101
|
this.#ctx = ctx;
|
|
4125
4102
|
this.#queueHibernationRemoval = queueHibernationRemoval;
|
|
4126
4103
|
this.#assertCanMutateState = assertCanMutateState;
|
|
4127
|
-
this[
|
|
4104
|
+
this[_chunkNWCAIWHLcjs.CONN_STATE_MANAGER_SYMBOL] = {
|
|
4128
4105
|
stateEnabled: true,
|
|
4129
4106
|
get state() {
|
|
4130
4107
|
return thisConn.state;
|
|
@@ -4141,7 +4118,7 @@ var NativeConnAdapter = class {
|
|
|
4141
4118
|
decodeValue(this.#runtime.connParams(this.#conn))
|
|
4142
4119
|
);
|
|
4143
4120
|
}
|
|
4144
|
-
[
|
|
4121
|
+
[_chunkNWCAIWHLcjs.RAW_STATE_SYMBOL]() {
|
|
4145
4122
|
return this.#readState();
|
|
4146
4123
|
}
|
|
4147
4124
|
get state() {
|
|
@@ -4171,7 +4148,7 @@ var NativeConnAdapter = class {
|
|
|
4171
4148
|
},
|
|
4172
4149
|
(newValue) => {
|
|
4173
4150
|
assertCurrentState();
|
|
4174
|
-
|
|
4151
|
+
_chunkKWGN2ZBJcjs.assertJsonCompatValue.call(void 0, newValue);
|
|
4175
4152
|
}
|
|
4176
4153
|
);
|
|
4177
4154
|
}
|
|
@@ -4179,7 +4156,7 @@ var NativeConnAdapter = class {
|
|
|
4179
4156
|
var _a;
|
|
4180
4157
|
(_a = this.#assertCanMutateState) == null ? void 0 : _a.call(this);
|
|
4181
4158
|
const nextValue = unwrapWriteThroughProxy(value);
|
|
4182
|
-
|
|
4159
|
+
_chunkKWGN2ZBJcjs.assertJsonCompatValue.call(void 0, nextValue);
|
|
4183
4160
|
this.#writeState(nextValue, { writeNative: true });
|
|
4184
4161
|
}
|
|
4185
4162
|
initializeState(value) {
|
|
@@ -5198,7 +5175,7 @@ var ActorContextHandleAdapter = class {
|
|
|
5198
5175
|
this.#databaseProvider = databaseProvider;
|
|
5199
5176
|
}
|
|
5200
5177
|
this.#request = request;
|
|
5201
|
-
this[
|
|
5178
|
+
this[_chunkNWCAIWHLcjs.ACTOR_CONTEXT_INTERNAL_SYMBOL] = new NativeWorkflowRuntimeAdapter(
|
|
5202
5179
|
this
|
|
5203
5180
|
);
|
|
5204
5181
|
}
|
|
@@ -5228,7 +5205,7 @@ var ActorContextHandleAdapter = class {
|
|
|
5228
5205
|
}
|
|
5229
5206
|
throw databaseClientNotReadyError();
|
|
5230
5207
|
}
|
|
5231
|
-
[
|
|
5208
|
+
[_chunkNWCAIWHLcjs.RAW_STATE_SYMBOL]() {
|
|
5232
5209
|
if (!this.#stateEnabled) {
|
|
5233
5210
|
throw stateNotEnabledError();
|
|
5234
5211
|
}
|
|
@@ -5255,7 +5232,7 @@ var ActorContextHandleAdapter = class {
|
|
|
5255
5232
|
},
|
|
5256
5233
|
(newValue) => {
|
|
5257
5234
|
assertCurrentState();
|
|
5258
|
-
|
|
5235
|
+
_chunkKWGN2ZBJcjs.assertJsonCompatValue.call(void 0, newValue);
|
|
5259
5236
|
}
|
|
5260
5237
|
);
|
|
5261
5238
|
}
|
|
@@ -5267,7 +5244,7 @@ var ActorContextHandleAdapter = class {
|
|
|
5267
5244
|
}
|
|
5268
5245
|
this.#assertCanMutateState();
|
|
5269
5246
|
const nextValue = unwrapWriteThroughProxy(value);
|
|
5270
|
-
|
|
5247
|
+
_chunkKWGN2ZBJcjs.assertJsonCompatValue.call(void 0, nextValue);
|
|
5271
5248
|
this.#writeState(nextValue, { scheduleSave: true });
|
|
5272
5249
|
}
|
|
5273
5250
|
initializeState(value) {
|
|
@@ -5476,7 +5453,7 @@ var ActorContextHandleAdapter = class {
|
|
|
5476
5453
|
log: {
|
|
5477
5454
|
debug: (obj) => logger2().debug(obj)
|
|
5478
5455
|
},
|
|
5479
|
-
nativeDatabaseProvider:
|
|
5456
|
+
nativeDatabaseProvider: _chunkGHKQC4PDcjs.registerNativeStateTransactionOpener.call(void 0,
|
|
5480
5457
|
{
|
|
5481
5458
|
open: async (requestedActorId) => {
|
|
5482
5459
|
void requestedActorId;
|
|
@@ -5499,7 +5476,7 @@ var ActorContextHandleAdapter = class {
|
|
|
5499
5476
|
return this.#db;
|
|
5500
5477
|
}
|
|
5501
5478
|
#bindDatabaseClient(client) {
|
|
5502
|
-
return
|
|
5479
|
+
return _chunkGHKQC4PDcjs.bindNativeStateTransactionContext.call(void 0, client, {
|
|
5503
5480
|
enter: async () => await this.#enterStateTransaction(),
|
|
5504
5481
|
exit: (scope) => this.#exitStateTransaction(
|
|
5505
5482
|
scope
|
|
@@ -5703,7 +5680,7 @@ var ActorContextHandleAdapter = class {
|
|
|
5703
5680
|
const trackedPromise = Promise.resolve(promise).catch((error) => {
|
|
5704
5681
|
logger2().warn({
|
|
5705
5682
|
msg: "keepAwake promise rejected",
|
|
5706
|
-
error:
|
|
5683
|
+
error: _chunkKWGN2ZBJcjs.stringifyError.call(void 0, error)
|
|
5707
5684
|
});
|
|
5708
5685
|
}).then(() => null);
|
|
5709
5686
|
try {
|
|
@@ -6054,6 +6031,13 @@ function withConnContext(runtime, ctx, conn, clientFactory, schemas = {}, databa
|
|
|
6054
6031
|
)
|
|
6055
6032
|
});
|
|
6056
6033
|
}
|
|
6034
|
+
function buildActorTracingConfig(actions, tracing) {
|
|
6035
|
+
if (tracing === void 0) return void 0;
|
|
6036
|
+
return {
|
|
6037
|
+
sampler: tracing.sampler,
|
|
6038
|
+
actions: _chunkNWCAIWHLcjs.flattenActionTraceSamplers.call(void 0, actions, tracing.actions)
|
|
6039
|
+
};
|
|
6040
|
+
}
|
|
6057
6041
|
function buildActorConfig(definition, registryConfig, runtimeKind) {
|
|
6058
6042
|
var _a;
|
|
6059
6043
|
const config = definition.config;
|
|
@@ -6067,6 +6051,10 @@ function buildActorConfig(definition, registryConfig, runtimeKind) {
|
|
|
6067
6051
|
hasDatabase: true,
|
|
6068
6052
|
remoteSqlite: usesRemoteSqlite,
|
|
6069
6053
|
sqliteProfiling,
|
|
6054
|
+
tracing: buildActorTracingConfig(
|
|
6055
|
+
definition.config.actions,
|
|
6056
|
+
definition.config.tracing
|
|
6057
|
+
),
|
|
6070
6058
|
enableActorRuntimeSocket: options.enableActorRuntimeSocket === true,
|
|
6071
6059
|
hasState: config.state !== void 0 || typeof config.createState === "function",
|
|
6072
6060
|
canHibernateWebsocket: typeof canHibernate === "boolean" ? canHibernate : void 0,
|
|
@@ -6089,7 +6077,7 @@ function buildActorConfig(definition, registryConfig, runtimeKind) {
|
|
|
6089
6077
|
maxOutgoingMessageSize: registryConfig.maxOutgoingMessageSize,
|
|
6090
6078
|
preloadMaxWorkflowBytes: options.preloadMaxWorkflowBytes,
|
|
6091
6079
|
preloadMaxConnectionsBytes: options.preloadMaxConnectionsBytes,
|
|
6092
|
-
actions: Object.keys(
|
|
6080
|
+
actions: Object.keys(_chunkNWCAIWHLcjs.flattenActionHandlers.call(void 0, config.actions)).sort().map((name) => ({ name })),
|
|
6093
6081
|
inspectorTabs: buildInspectorTabs(config.inspector, runtimeKind)
|
|
6094
6082
|
};
|
|
6095
6083
|
}
|
|
@@ -6165,10 +6153,10 @@ function validateInspectorTabSource(tabId, resolved) {
|
|
|
6165
6153
|
function buildNativeFactory(runtime, registryConfig, definition) {
|
|
6166
6154
|
var _a;
|
|
6167
6155
|
const config = definition.config;
|
|
6168
|
-
const databaseProvider = _nullishCoalesce(config.db, () => (
|
|
6169
|
-
const actionHandlers =
|
|
6156
|
+
const databaseProvider = _nullishCoalesce(config.db, () => ( _chunkGHKQC4PDcjs.db.call(void 0, )));
|
|
6157
|
+
const actionHandlers = _chunkNWCAIWHLcjs.flattenActionHandlers.call(void 0, config.actions);
|
|
6170
6158
|
const schemaConfig = {
|
|
6171
|
-
actionInputSchemas:
|
|
6159
|
+
actionInputSchemas: _chunkNWCAIWHLcjs.flattenActionInputSchemas.call(void 0,
|
|
6172
6160
|
config.actions,
|
|
6173
6161
|
config.actionInputSchemas
|
|
6174
6162
|
),
|
|
@@ -6176,9 +6164,9 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6176
6164
|
events: config.events,
|
|
6177
6165
|
queues: config.queues
|
|
6178
6166
|
};
|
|
6179
|
-
const createClient = (ctx) =>
|
|
6180
|
-
new (0,
|
|
6181
|
-
|
|
6167
|
+
const createClient = (ctx) => _chunkB5SNXPSScjs.createClientWithDriver.call(void 0,
|
|
6168
|
+
new (0, _chunkB5SNXPSScjs.RemoteEngineControlClient)(
|
|
6169
|
+
_chunkB5SNXPSScjs.convertRegistryConfigToClientConfig.call(void 0, registryConfig)
|
|
6182
6170
|
),
|
|
6183
6171
|
{
|
|
6184
6172
|
encoding: "bare",
|
|
@@ -6190,13 +6178,13 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6190
6178
|
)
|
|
6191
6179
|
}
|
|
6192
6180
|
);
|
|
6193
|
-
const run =
|
|
6194
|
-
const runHandlerCoordinator =
|
|
6181
|
+
const run = _chunkNWCAIWHLcjs.getRunFunction.call(void 0, config.run);
|
|
6182
|
+
const runHandlerCoordinator = _chunkNWCAIWHLcjs.getRunInspectorKind.call(void 0, config.run) === "workflow" ? new RunHandlerCoordinator(config.run) : void 0;
|
|
6195
6183
|
const getNativeWorkflowInspector = (ctx) => {
|
|
6196
6184
|
var _a2, _b;
|
|
6197
6185
|
const actorId = callNativeSync(() => runtime.actorId(ctx));
|
|
6198
6186
|
const restart = () => callNativeSync(() => runtime.actorRestartRunHandler(ctx));
|
|
6199
|
-
return _nullishCoalesce(((_a2 = runHandlerCoordinator == null ? void 0 : runHandlerCoordinator.getInspector(actorId, restart)) == null ? void 0 : _a2.workflow), () => ( ((_b =
|
|
6187
|
+
return _nullishCoalesce(((_a2 = runHandlerCoordinator == null ? void 0 : runHandlerCoordinator.getInspector(actorId, restart)) == null ? void 0 : _a2.workflow), () => ( ((_b = _chunkNWCAIWHLcjs.getRunInspectorConfig.call(void 0, config.run, actorId)) == null ? void 0 : _b.workflow)));
|
|
6200
6188
|
};
|
|
6201
6189
|
const onStateChange = typeof config.onStateChange === "function" ? (actorCtx, nextState) => {
|
|
6202
6190
|
config.onStateChange(actorCtx, nextState);
|
|
@@ -6347,7 +6335,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6347
6335
|
let body;
|
|
6348
6336
|
try {
|
|
6349
6337
|
body = await jsRequest.json();
|
|
6350
|
-
} catch (
|
|
6338
|
+
} catch (e4) {
|
|
6351
6339
|
return errorResponse(
|
|
6352
6340
|
new (0, _chunkJX2ITWAVcjs.RivetError)(
|
|
6353
6341
|
"actor",
|
|
@@ -6370,7 +6358,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6370
6358
|
400
|
|
6371
6359
|
);
|
|
6372
6360
|
}
|
|
6373
|
-
const cbor =
|
|
6361
|
+
const cbor = _chunkKWGN2ZBJcjs.encodeCborCompat.call(void 0,
|
|
6374
6362
|
_nullishCoalesce(body.body, () => ( null))
|
|
6375
6363
|
);
|
|
6376
6364
|
const message = await runtime.actorQueueSend(ctx, name, cbor);
|
|
@@ -6738,7 +6726,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6738
6726
|
);
|
|
6739
6727
|
} finally {
|
|
6740
6728
|
runHandlerCoordinator == null ? void 0 : runHandlerCoordinator.destroy(actorId);
|
|
6741
|
-
|
|
6729
|
+
_chunkNWCAIWHLcjs.disposeRunInspector.call(void 0, config.run, actorId);
|
|
6742
6730
|
await actorCtx.dispose();
|
|
6743
6731
|
}
|
|
6744
6732
|
}
|
|
@@ -6750,7 +6738,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6750
6738
|
const actorCtx = makeActorCtx(ctx);
|
|
6751
6739
|
const actorId = callNativeSync(() => runtime.actorId(ctx));
|
|
6752
6740
|
runHandlerCoordinator == null ? void 0 : runHandlerCoordinator.destroy(actorId);
|
|
6753
|
-
|
|
6741
|
+
_chunkNWCAIWHLcjs.disposeRunInspector.call(void 0, config.run, actorId);
|
|
6754
6742
|
try {
|
|
6755
6743
|
if (typeof config.onDestroy === "function") {
|
|
6756
6744
|
await config.onDestroy(actorCtx);
|
|
@@ -6967,7 +6955,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
6967
6955
|
...request,
|
|
6968
6956
|
abortController: requestAbortController
|
|
6969
6957
|
});
|
|
6970
|
-
const rawConnParams = handlerRequest.headers.get(
|
|
6958
|
+
const rawConnParams = handlerRequest.headers.get(_chunkB5SNXPSScjs.HEADER_CONN_PARAMS);
|
|
6971
6959
|
let requestCtx;
|
|
6972
6960
|
let conn;
|
|
6973
6961
|
let removeRequestAbortListener;
|
|
@@ -7024,7 +7012,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
7024
7012
|
requestCtx,
|
|
7025
7013
|
handlerRequest
|
|
7026
7014
|
);
|
|
7027
|
-
if (!
|
|
7015
|
+
if (!_chunkB5SNXPSScjs.isResponseLike.call(void 0, response)) {
|
|
7028
7016
|
throw new Error(
|
|
7029
7017
|
"onRequest handler must return a Response"
|
|
7030
7018
|
);
|
|
@@ -7114,15 +7102,15 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
7114
7102
|
}
|
|
7115
7103
|
);
|
|
7116
7104
|
})(),
|
|
7117
|
-
getWorkflowHistory:
|
|
7105
|
+
getWorkflowHistory: _chunkNWCAIWHLcjs.hasRunInspectorConfig.call(void 0, config.run) ? wrapNativeCallback(
|
|
7118
7106
|
async (error, payload) => {
|
|
7119
7107
|
var _a2;
|
|
7120
7108
|
const { ctx } = unwrapTsfnPayload(error, payload);
|
|
7121
7109
|
const history = (_a2 = getNativeWorkflowInspector(ctx)) == null ? void 0 : _a2.getHistory();
|
|
7122
|
-
return history == null ? void 0 :
|
|
7110
|
+
return history == null ? void 0 : _chunkKWGN2ZBJcjs.toUint8Array.call(void 0, history);
|
|
7123
7111
|
}
|
|
7124
7112
|
) : void 0,
|
|
7125
|
-
replayWorkflow:
|
|
7113
|
+
replayWorkflow: _chunkNWCAIWHLcjs.hasRunInspectorConfig.call(void 0, config.run) ? wrapNativeCallback(
|
|
7126
7114
|
async (error, payload) => {
|
|
7127
7115
|
const { ctx, entryId } = unwrapTsfnPayload(
|
|
7128
7116
|
error,
|
|
@@ -7133,7 +7121,7 @@ function buildNativeFactory(runtime, registryConfig, definition) {
|
|
|
7133
7121
|
return void 0;
|
|
7134
7122
|
}
|
|
7135
7123
|
const history = await _asyncNullishCoalesce(await workflowInspector.replayFromStep(entryId), async () => ( null));
|
|
7136
|
-
return history == null ? void 0 :
|
|
7124
|
+
return history == null ? void 0 : _chunkKWGN2ZBJcjs.toUint8Array.call(void 0, history);
|
|
7137
7125
|
}
|
|
7138
7126
|
) : void 0,
|
|
7139
7127
|
actions: Object.fromEntries(
|
|
@@ -7269,7 +7257,7 @@ async function buildServeConfig(config, resolveServicesBinary = true) {
|
|
|
7269
7257
|
startServices: resolveServicesBinary && config.startServices,
|
|
7270
7258
|
handleInspectorHttpInRuntime: true,
|
|
7271
7259
|
serverlessBasePath: config.serverless.basePath,
|
|
7272
|
-
serverlessPackageVersion:
|
|
7260
|
+
serverlessPackageVersion: _chunkKWGN2ZBJcjs.VERSION,
|
|
7273
7261
|
serverlessClientEndpoint: config.publicEndpoint,
|
|
7274
7262
|
serverlessClientNamespace: config.publicNamespace,
|
|
7275
7263
|
serverlessClientToken: config.publicToken,
|
|
@@ -7282,7 +7270,7 @@ async function buildServeConfig(config, resolveServicesBinary = true) {
|
|
|
7282
7270
|
} catch (error) {
|
|
7283
7271
|
logger2().warn({
|
|
7284
7272
|
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",
|
|
7285
|
-
error:
|
|
7273
|
+
error: _chunkKWGN2ZBJcjs.stringifyError.call(void 0, error)
|
|
7286
7274
|
});
|
|
7287
7275
|
}
|
|
7288
7276
|
if (resolveServicesBinary && config.startServices) {
|
|
@@ -7292,20 +7280,20 @@ async function buildServeConfig(config, resolveServicesBinary = true) {
|
|
|
7292
7280
|
} catch (error) {
|
|
7293
7281
|
logger2().warn({
|
|
7294
7282
|
msg: "could not resolve the Services binary; a local engine will fail with services.binary_unavailable \u2014 set RIVET_RUN_SERVICES=0 to disable Services or RIVET_SERVICES_BINARY to a local rivet-services binary",
|
|
7295
|
-
error:
|
|
7283
|
+
error: _chunkKWGN2ZBJcjs.stringifyError.call(void 0, error)
|
|
7296
7284
|
});
|
|
7297
7285
|
}
|
|
7298
7286
|
}
|
|
7299
7287
|
serveConfig.engineHost = config.engineHost;
|
|
7300
7288
|
serveConfig.enginePort = config.enginePort;
|
|
7301
7289
|
if ((_a = config.test) == null ? void 0 : _a.enabled) {
|
|
7302
|
-
serveConfig.inspectorTestToken = _nullishCoalesce(
|
|
7290
|
+
serveConfig.inspectorTestToken = _nullishCoalesce(_chunkKWGN2ZBJcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN"), () => ( "token"));
|
|
7303
7291
|
}
|
|
7304
7292
|
return serveConfig;
|
|
7305
7293
|
}
|
|
7306
7294
|
async function buildRegistryWithRuntime(config, runtime) {
|
|
7307
7295
|
var _a;
|
|
7308
|
-
if (((_a = config.test) == null ? void 0 : _a.enabled) &&
|
|
7296
|
+
if (((_a = config.test) == null ? void 0 : _a.enabled) && _chunkKWGN2ZBJcjs.getEnvUniversal.call(void 0, "_RIVET_TEST_INSPECTOR_TOKEN") === void 0) {
|
|
7309
7297
|
trySetProcessEnv("_RIVET_TEST_INSPECTOR_TOKEN", "token");
|
|
7310
7298
|
}
|
|
7311
7299
|
if (runtime.kind === "napi") {
|
|
@@ -7372,7 +7360,7 @@ function createApplicationFetch(application, runtime) {
|
|
|
7372
7360
|
signal: abortController.signal
|
|
7373
7361
|
})
|
|
7374
7362
|
);
|
|
7375
|
-
if (!
|
|
7363
|
+
if (!_chunkB5SNXPSScjs.isResponseLike.call(void 0, response)) {
|
|
7376
7364
|
throw new TypeError(
|
|
7377
7365
|
"registry.listen() application fetch must return a Response"
|
|
7378
7366
|
);
|
|
@@ -7422,7 +7410,7 @@ var Registry = class {
|
|
|
7422
7410
|
var _a;
|
|
7423
7411
|
this.#config = config;
|
|
7424
7412
|
if ((_a = config.logging) == null ? void 0 : _a.baseLogger) {
|
|
7425
|
-
|
|
7413
|
+
_chunkKWGN2ZBJcjs.configureBaseLogger.call(void 0, config.logging.baseLogger);
|
|
7426
7414
|
}
|
|
7427
7415
|
this.#buildConfiguredRegistry = _nullishCoalesce((deps == null ? void 0 : deps.buildConfiguredRegistry), () => ( buildConfiguredRegistry));
|
|
7428
7416
|
this.routes = {
|
|
@@ -7648,10 +7636,10 @@ var Registry = class {
|
|
|
7648
7636
|
* ```
|
|
7649
7637
|
*/
|
|
7650
7638
|
async listen(opts = {}) {
|
|
7651
|
-
const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => (
|
|
7652
|
-
const publicDir = _nullishCoalesce(opts.publicDir, () => (
|
|
7639
|
+
const port = _nullishCoalesce(_nullishCoalesce(opts.port, () => ( _chunkKWGN2ZBJcjs.parsePortEnv.call(void 0, process.env.RIVET_PORT))), () => ( 3e3));
|
|
7640
|
+
const publicDir = _nullishCoalesce(opts.publicDir, () => ( _chunkKWGN2ZBJcjs.getRivetkitPublicDir.call(void 0, )));
|
|
7653
7641
|
const config = this.parseConfig();
|
|
7654
|
-
if (opts.application &&
|
|
7642
|
+
if (opts.application && _chunkKWGN2ZBJcjs.getRivetkitRuntimeMode.call(void 0, ) !== "serverless") {
|
|
7655
7643
|
if (config.runtime === "wasm") {
|
|
7656
7644
|
throw new Error(
|
|
7657
7645
|
"registry.listen() requires the native runtime; use an application-owned HTTP server with WebAssembly"
|
|
@@ -7727,7 +7715,7 @@ var Registry = class {
|
|
|
7727
7715
|
return jsonRouteResponse(503, {
|
|
7728
7716
|
status: "not_started",
|
|
7729
7717
|
runtime: "rivetkit",
|
|
7730
|
-
version:
|
|
7718
|
+
version: _chunkKWGN2ZBJcjs.VERSION
|
|
7731
7719
|
});
|
|
7732
7720
|
}
|
|
7733
7721
|
const { runtime, registry } = configured;
|
|
@@ -7735,7 +7723,7 @@ var Registry = class {
|
|
|
7735
7723
|
return jsonRouteResponse(501, {
|
|
7736
7724
|
status: "unsupported",
|
|
7737
7725
|
runtime: "rivetkit",
|
|
7738
|
-
version:
|
|
7726
|
+
version: _chunkKWGN2ZBJcjs.VERSION
|
|
7739
7727
|
});
|
|
7740
7728
|
}
|
|
7741
7729
|
const response = await runtime.registryHealth(registry);
|
|
@@ -7806,7 +7794,23 @@ var Registry = class {
|
|
|
7806
7794
|
* Starts an actor envoy for standalone server deployments.
|
|
7807
7795
|
*/
|
|
7808
7796
|
#startEnvoy(config, printWelcome) {
|
|
7797
|
+
var _a;
|
|
7809
7798
|
if (!this.#runtimeServePromise) {
|
|
7799
|
+
const configuredEnvoyVersion = (_a = this.#config.envoy) == null ? void 0 : _a.version;
|
|
7800
|
+
const envoyVersionSource = configuredEnvoyVersion !== void 0 ? "config" : _chunkKWGN2ZBJcjs.getRivetEnvoyVersion.call(void 0, ) !== void 0 ? "environment" : "default";
|
|
7801
|
+
logger2().info({
|
|
7802
|
+
msg: "starting rivetkit envoy",
|
|
7803
|
+
rivetkitVersion: _chunkKWGN2ZBJcjs.VERSION,
|
|
7804
|
+
envoyVersion: config.envoy.version,
|
|
7805
|
+
envoyVersionSource
|
|
7806
|
+
});
|
|
7807
|
+
if (envoyVersionSource === "default" && _chunkKWGN2ZBJcjs.getNodeEnv.call(void 0, ) === "production") {
|
|
7808
|
+
logger2().error({
|
|
7809
|
+
msg: "envoy version defaulted because neither config.envoy.version nor RIVET_ENVOY_VERSION is set; actors will not drain automatically across deploys. See https://rivet.dev/docs/actors/versions",
|
|
7810
|
+
envoyVersion: config.envoy.version,
|
|
7811
|
+
envoyVersionSource
|
|
7812
|
+
});
|
|
7813
|
+
}
|
|
7810
7814
|
const configuredRegistryPromise = this.#buildConfiguredRegistry(config);
|
|
7811
7815
|
this.#runtimeServeConfiguredPromise = configuredRegistryPromise;
|
|
7812
7816
|
this.#runtimeServeLifecyclePromise = configuredRegistryPromise.then(
|
|
@@ -7991,7 +7995,7 @@ var Registry = class {
|
|
|
7991
7995
|
);
|
|
7992
7996
|
}
|
|
7993
7997
|
if (this.#runtimeReadyPromise) return this.#runtimeReadyPromise;
|
|
7994
|
-
if (
|
|
7998
|
+
if (_chunkKWGN2ZBJcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
|
|
7995
7999
|
return Promise.reject(
|
|
7996
8000
|
new Error(
|
|
7997
8001
|
"registry.startAndWait() requires envoy runtime mode; serverless registries become ready per request"
|
|
@@ -8061,8 +8065,8 @@ var Registry = class {
|
|
|
8061
8065
|
* ```
|
|
8062
8066
|
*/
|
|
8063
8067
|
start() {
|
|
8064
|
-
if (
|
|
8065
|
-
const publicDir = _nullishCoalesce(
|
|
8068
|
+
if (_chunkKWGN2ZBJcjs.getRivetkitRuntimeMode.call(void 0, ) === "serverless") {
|
|
8069
|
+
const publicDir = _nullishCoalesce(_chunkKWGN2ZBJcjs.getRivetkitPublicDir.call(void 0, ), () => ( "/public"));
|
|
8066
8070
|
this.listen({ publicDir }).catch((error) => {
|
|
8067
8071
|
logger2().error({ error }, "auto-listen failed; exiting");
|
|
8068
8072
|
if (typeof process !== "undefined" && typeof process.exit === "function") {
|
|
@@ -8083,13 +8087,13 @@ var Registry = class {
|
|
|
8083
8087
|
};
|
|
8084
8088
|
console.log();
|
|
8085
8089
|
console.log(
|
|
8086
|
-
` RivetKit ${
|
|
8090
|
+
` RivetKit ${_chunkKWGN2ZBJcjs.VERSION} (Engine - ${kind === "serverless" ? "Serverless" : "Serverful"})`
|
|
8087
8091
|
);
|
|
8088
8092
|
if (config.namespace !== "default") {
|
|
8089
8093
|
logLine("Namespace", config.namespace);
|
|
8090
8094
|
}
|
|
8091
8095
|
if (config.endpoint) {
|
|
8092
|
-
const endpointType = config.startEngine || isLocalEngineEndpoint(config.endpoint) ? "local native" : "remote";
|
|
8096
|
+
const endpointType = config.startEngine || _chunkB5SNXPSScjs.isLocalEngineEndpoint.call(void 0, config.endpoint) ? "local native" : "remote";
|
|
8093
8097
|
logLine("Endpoint", `${config.endpoint} (${endpointType})`);
|
|
8094
8098
|
}
|
|
8095
8099
|
if (kind === "serverless" && config.publicEndpoint) {
|
|
@@ -8159,5 +8163,5 @@ function setup(input) {
|
|
|
8159
8163
|
|
|
8160
8164
|
|
|
8161
8165
|
|
|
8162
|
-
exports.ALLOWED_PUBLIC_HEADERS =
|
|
8166
|
+
exports.ALLOWED_PUBLIC_HEADERS = _chunkB5SNXPSScjs.ALLOWED_PUBLIC_HEADERS; exports.ActorDefinition = ActorDefinition; exports.ActorError = _chunkJX2ITWAVcjs.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 = _chunkJX2ITWAVcjs.RivetError; exports.RuntimeKindSchema = RuntimeKindSchema; exports.SqliteBackendSchema = SqliteBackendSchema; exports.SqliteConfigSchema = SqliteConfigSchema; exports.TestConfigSchema = TestConfigSchema; exports.UserError = _chunkJX2ITWAVcjs.UserError; exports.WasmRuntimeConfigSchema = WasmRuntimeConfigSchema; exports.actor = actor; exports.buildActorNames = buildActorNames; exports.createClientWithDriver = _chunkB5SNXPSScjs.createClientWithDriver; exports.defineRunHandler = _chunkNWCAIWHLcjs.defineRunHandler; exports.event = event; exports.isStaticActorDefinition = isStaticActorDefinition; exports.isStaticActorInstance = isStaticActorInstance; exports.lookupInRegistry = lookupInRegistry; exports.noopNext = _chunkKWGN2ZBJcjs.noopNext; exports.queue = queue; exports.setup = setup; exports.toUint8Array = _chunkKWGN2ZBJcjs.toUint8Array;
|
|
8163
8167
|
//# sourceMappingURL=mod.cjs.map
|