rivetkit 0.0.0-fix-engine-autospawn-binary-path.031e3a4 → 0.0.0-fix-engine-autospawn-binary-path.e5bdda7
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-QDJ4XD5O.cjs → chunk-3DLZPD2O.cjs} +2 -2
- package/dist/tsup/{chunk-QDJ4XD5O.cjs.map → chunk-3DLZPD2O.cjs.map} +1 -1
- package/dist/tsup/{chunk-NFXH55SR.cjs → chunk-4NCPXIXN.cjs} +10 -10
- package/dist/tsup/{chunk-NFXH55SR.cjs.map → chunk-4NCPXIXN.cjs.map} +1 -1
- package/dist/tsup/{chunk-46WRXZKC.js → chunk-77WLUFGR.js} +3 -3
- package/dist/tsup/{chunk-TP772NGU.cjs → chunk-DAD4AJZ2.cjs} +3 -3
- package/dist/tsup/{chunk-TP772NGU.cjs.map → chunk-DAD4AJZ2.cjs.map} +1 -1
- package/dist/tsup/{chunk-4MJYJZG5.js → chunk-EFTOLYWT.js} +2 -2
- package/dist/tsup/{chunk-CQF26343.js → chunk-FQS7IMDH.js} +2 -2
- package/dist/tsup/{chunk-CQF26343.js.map → chunk-FQS7IMDH.js.map} +1 -1
- package/dist/tsup/{chunk-NBTBPYZ5.cjs → chunk-IZL7RMJG.cjs} +5 -5
- package/dist/tsup/{chunk-NBTBPYZ5.cjs.map → chunk-IZL7RMJG.cjs.map} +1 -1
- package/dist/tsup/{chunk-DPLAUDJW.cjs → chunk-JEYA7VDY.cjs} +7 -7
- package/dist/tsup/{chunk-DPLAUDJW.cjs.map → chunk-JEYA7VDY.cjs.map} +1 -1
- package/dist/tsup/{chunk-ALTQPNXC.js → chunk-JP7DKDAJ.js} +2 -2
- package/dist/tsup/{chunk-3VAGHCY6.js → chunk-MBKXR2QI.js} +2 -2
- package/dist/tsup/{chunk-KSHDLDMN.cjs → chunk-QJOU7CR7.cjs} +4 -4
- package/dist/tsup/{chunk-KSHDLDMN.cjs.map → chunk-QJOU7CR7.cjs.map} +1 -1
- package/dist/tsup/{chunk-IO3TAXLW.cjs → chunk-UGWOGAJC.cjs} +139 -139
- package/dist/tsup/{chunk-IO3TAXLW.cjs.map → chunk-UGWOGAJC.cjs.map} +1 -1
- package/dist/tsup/{chunk-FI64U5LH.js → chunk-UJBC3FPJ.js} +4 -4
- package/dist/tsup/{chunk-OSNW3JPD.js → chunk-WONMIJXZ.js} +4 -4
- package/dist/tsup/client/mod.cjs +6 -6
- package/dist/tsup/client/mod.js +5 -5
- 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/inspector/mod.cjs +5 -5
- package/dist/tsup/inspector/mod.js +4 -4
- package/dist/tsup/mod.cjs +65 -64
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.js +9 -8
- package/dist/tsup/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +9 -9
- package/dist/tsup/test/mod.js +5 -5
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +7 -7
- package/dist/tsup/workflow/mod.js +4 -4
- package/package.json +8 -8
- package/src/registry/native.ts +13 -9
- package/src/registry/runtime.ts +11 -9
- /package/dist/tsup/{chunk-46WRXZKC.js.map → chunk-77WLUFGR.js.map} +0 -0
- /package/dist/tsup/{chunk-4MJYJZG5.js.map → chunk-EFTOLYWT.js.map} +0 -0
- /package/dist/tsup/{chunk-ALTQPNXC.js.map → chunk-JP7DKDAJ.js.map} +0 -0
- /package/dist/tsup/{chunk-3VAGHCY6.js.map → chunk-MBKXR2QI.js.map} +0 -0
- /package/dist/tsup/{chunk-FI64U5LH.js.map → chunk-UJBC3FPJ.js.map} +0 -0
- /package/dist/tsup/{chunk-OSNW3JPD.js.map → chunk-WONMIJXZ.js.map} +0 -0
package/dist/tsup/test/mod.cjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
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 _chunkJEYA7VDYcjs = require('../chunk-JEYA7VDY.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUGWOGAJCcjs = require('../chunk-UGWOGAJC.cjs');
|
|
8
8
|
require('../chunk-VE2X4KMG.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-IZL7RMJG.cjs');
|
|
10
10
|
require('../chunk-ZA7FLHKH.cjs');
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-DAD4AJZ2.cjs');
|
|
12
|
+
require('../chunk-3DLZPD2O.cjs');
|
|
13
13
|
require('../chunk-KORQB2IR.cjs');
|
|
14
14
|
|
|
15
15
|
// src/test/mod.ts
|
|
16
16
|
var _pretry = require('p-retry'); var _pretry2 = _interopRequireDefault(_pretry);
|
|
17
17
|
async function waitForRegistryReady(registry) {
|
|
18
|
-
const clientConfig =
|
|
18
|
+
const clientConfig = _chunkUGWOGAJCcjs.convertRegistryConfigToClientConfig.call(void 0,
|
|
19
19
|
registry.parseConfig()
|
|
20
20
|
);
|
|
21
21
|
await _pretry2.default.call(void 0,
|
|
22
22
|
async () => {
|
|
23
|
-
await
|
|
23
|
+
await _chunkUGWOGAJCcjs.getMetadata.call(void 0, clientConfig);
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
retries: 20,
|
|
@@ -34,8 +34,8 @@ async function setupTest(c, registry) {
|
|
|
34
34
|
registry.config.noWelcome = true;
|
|
35
35
|
registry.start();
|
|
36
36
|
await waitForRegistryReady(registry);
|
|
37
|
-
const client =
|
|
38
|
-
...
|
|
37
|
+
const client = _chunkJEYA7VDYcjs.createClient.call(void 0, {
|
|
38
|
+
..._chunkUGWOGAJCcjs.convertRegistryConfigToClientConfig.call(void 0, registry.parseConfig()),
|
|
39
39
|
disableMetadataLookup: false
|
|
40
40
|
});
|
|
41
41
|
c.onTestFinished(async () => {
|
package/dist/tsup/test/mod.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-77WLUFGR.js";
|
|
4
4
|
import {
|
|
5
5
|
convertRegistryConfigToClientConfig,
|
|
6
6
|
getMetadata
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-UJBC3FPJ.js";
|
|
8
8
|
import "../chunk-HXUEHHJF.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-MBKXR2QI.js";
|
|
10
10
|
import "../chunk-JZ7TWV65.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-EFTOLYWT.js";
|
|
12
|
+
import "../chunk-FQS7IMDH.js";
|
|
13
13
|
import "../chunk-BRP62GZC.js";
|
|
14
14
|
|
|
15
15
|
// src/test/mod.ts
|
package/dist/tsup/utils.cjs
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk3DLZPD2Ocjs = require('./chunk-3DLZPD2O.cjs');
|
|
21
21
|
require('./chunk-KORQB2IR.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
@@ -38,5 +38,5 @@ require('./chunk-KORQB2IR.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
exports.EXTRA_ERROR_LOG =
|
|
41
|
+
exports.EXTRA_ERROR_LOG = _chunk3DLZPD2Ocjs.EXTRA_ERROR_LOG; exports.SinglePromiseQueue = _chunk3DLZPD2Ocjs.SinglePromiseQueue; exports.VERSION = _chunk3DLZPD2Ocjs.VERSION; exports.arrayBuffersEqual = _chunk3DLZPD2Ocjs.arrayBuffersEqual; exports.assertUnreachable = _chunk3DLZPD2Ocjs.assertUnreachable; exports.bufferToArrayBuffer = _chunk3DLZPD2Ocjs.bufferToArrayBuffer; exports.combineUrlPath = _chunk3DLZPD2Ocjs.combineUrlPath; exports.dbg = _chunk3DLZPD2Ocjs.dbg; exports.detectRuntime = _chunk3DLZPD2Ocjs.detectRuntime; exports.getEnvUniversal = _chunk3DLZPD2Ocjs.getEnvUniversal; exports.httpUserAgent = _chunk3DLZPD2Ocjs.httpUserAgent; exports.interval = _chunk3DLZPD2Ocjs.interval; exports.joinSignals = _chunk3DLZPD2Ocjs.joinSignals; exports.promiseWithResolvers = _chunk3DLZPD2Ocjs.promiseWithResolvers; exports.setLongTimeout = _chunk3DLZPD2Ocjs.setLongTimeout; exports.sleep = _chunk3DLZPD2Ocjs.sleep; exports.stringifyError = _chunk3DLZPD2Ocjs.stringifyError; exports.toUint8Array = _chunk3DLZPD2Ocjs.toUint8Array;
|
|
42
42
|
//# 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 }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2;
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunk4NCPXIXNcjs = require('../chunk-4NCPXIXN.cjs');
|
|
4
|
+
require('../chunk-QJOU7CR7.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -11,10 +11,10 @@ var _chunkNIY3RSPXcjs = require('../chunk-NIY3RSPX.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkVE2X4KMGcjs = require('../chunk-VE2X4KMG.cjs');
|
|
14
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-IZL7RMJG.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk3DLZPD2Ocjs = require('../chunk-3DLZPD2O.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkKORQB2IRcjs = require('../chunk-KORQB2IR.cjs');
|
|
@@ -639,7 +639,7 @@ function workflow(fn, options = {}) {
|
|
|
639
639
|
function getWorkflowInspector(actorId) {
|
|
640
640
|
let workflowInspector = workflowInspectors.get(actorId);
|
|
641
641
|
if (!workflowInspector) {
|
|
642
|
-
workflowInspector =
|
|
642
|
+
workflowInspector = _chunk4NCPXIXNcjs.createWorkflowInspectorAdapter.call(void 0, );
|
|
643
643
|
workflowInspectors.set(actorId, workflowInspector);
|
|
644
644
|
}
|
|
645
645
|
return workflowInspector;
|
|
@@ -705,13 +705,13 @@ function workflow(fn, options = {}) {
|
|
|
705
705
|
if (shouldRethrowWorkflowError(error)) {
|
|
706
706
|
runCtx.log.error({
|
|
707
707
|
msg: "workflow run failed",
|
|
708
|
-
error:
|
|
708
|
+
error: _chunk3DLZPD2Ocjs.stringifyError.call(void 0, error)
|
|
709
709
|
});
|
|
710
710
|
throw error;
|
|
711
711
|
}
|
|
712
712
|
runCtx.log.warn({
|
|
713
713
|
msg: "workflow failed and will sleep until woken",
|
|
714
|
-
error:
|
|
714
|
+
error: _chunk3DLZPD2Ocjs.stringifyError.call(void 0, error)
|
|
715
715
|
});
|
|
716
716
|
} finally {
|
|
717
717
|
runCtx.abortSignal.removeEventListener("abort", onAbort);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkflowInspectorAdapter
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-WONMIJXZ.js";
|
|
4
|
+
import "../chunk-JP7DKDAJ.js";
|
|
5
5
|
import {
|
|
6
6
|
ACTOR_CONTEXT_INTERNAL_SYMBOL,
|
|
7
7
|
RAW_STATE_SYMBOL,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
makeWorkflowKey,
|
|
12
12
|
workflowStoragePrefix
|
|
13
13
|
} from "../chunk-HXUEHHJF.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-MBKXR2QI.js";
|
|
15
15
|
import {
|
|
16
16
|
stringifyError
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-FQS7IMDH.js";
|
|
18
18
|
import {
|
|
19
19
|
RivetError
|
|
20
20
|
} from "../chunk-BRP62GZC.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rivetkit",
|
|
3
|
-
"version": "0.0.0-fix-engine-autospawn-binary-path.
|
|
3
|
+
"version": "0.0.0-fix-engine-autospawn-binary-path.e5bdda7",
|
|
4
4
|
"description": "Lightweight libraries for building stateful actors on edge platforms",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -193,14 +193,14 @@
|
|
|
193
193
|
"@hono/zod-openapi": "^1.1.5",
|
|
194
194
|
"@rivet-dev/agent-os-core": "^0.1.1",
|
|
195
195
|
"@rivetkit/bare-ts": "^0.6.2",
|
|
196
|
-
"@rivetkit/engine-cli": "0.0.0-fix-engine-autospawn-binary-path.
|
|
197
|
-
"@rivetkit/engine-envoy-protocol": "0.0.0-fix-engine-autospawn-binary-path.
|
|
196
|
+
"@rivetkit/engine-cli": "0.0.0-fix-engine-autospawn-binary-path.e5bdda7",
|
|
197
|
+
"@rivetkit/engine-envoy-protocol": "0.0.0-fix-engine-autospawn-binary-path.e5bdda7",
|
|
198
198
|
"@rivetkit/on-change": "6.0.1",
|
|
199
|
-
"@rivetkit/rivetkit-napi": "0.0.0-fix-engine-autospawn-binary-path.
|
|
200
|
-
"@rivetkit/rivetkit-wasm": "0.0.0-fix-engine-autospawn-binary-path.
|
|
201
|
-
"@rivetkit/traces": "0.0.0-fix-engine-autospawn-binary-path.
|
|
202
|
-
"@rivetkit/virtual-websocket": "0.0.0-fix-engine-autospawn-binary-path.
|
|
203
|
-
"@rivetkit/workflow-engine": "0.0.0-fix-engine-autospawn-binary-path.
|
|
199
|
+
"@rivetkit/rivetkit-napi": "0.0.0-fix-engine-autospawn-binary-path.e5bdda7",
|
|
200
|
+
"@rivetkit/rivetkit-wasm": "0.0.0-fix-engine-autospawn-binary-path.e5bdda7",
|
|
201
|
+
"@rivetkit/traces": "0.0.0-fix-engine-autospawn-binary-path.e5bdda7",
|
|
202
|
+
"@rivetkit/virtual-websocket": "0.0.0-fix-engine-autospawn-binary-path.e5bdda7",
|
|
203
|
+
"@rivetkit/workflow-engine": "0.0.0-fix-engine-autospawn-binary-path.e5bdda7",
|
|
204
204
|
"cbor-x": "^1.6.0",
|
|
205
205
|
"drizzle-orm": "^0.44.2",
|
|
206
206
|
"get-port": "^7.1.0",
|
package/src/registry/native.ts
CHANGED
|
@@ -31,7 +31,6 @@ import {
|
|
|
31
31
|
} from "@/client/client";
|
|
32
32
|
import { convertRegistryConfigToClientConfig } from "@/client/config";
|
|
33
33
|
import { HEADER_CONN_PARAMS } from "@/common/actor-router-consts";
|
|
34
|
-
import { isLocalEngineEndpoint } from "@/common/engine";
|
|
35
34
|
import type { AnyDatabaseProvider } from "@/common/database/config";
|
|
36
35
|
import { wrapJsNativeDatabase } from "@/common/database/native-database";
|
|
37
36
|
import { assertJsonCompatValue, type JsonCompatValue } from "@/common/encoding";
|
|
@@ -4757,17 +4756,22 @@ export async function buildServeConfig(
|
|
|
4757
4756
|
serverlessMaxStartPayloadBytes: config.serverless.maxStartPayloadBytes,
|
|
4758
4757
|
};
|
|
4759
4758
|
|
|
4760
|
-
//
|
|
4761
|
-
//
|
|
4762
|
-
//
|
|
4763
|
-
//
|
|
4764
|
-
//
|
|
4765
|
-
|
|
4759
|
+
// Always best-effort resolve the npm-installed engine binary and hand its
|
|
4760
|
+
// path to the core. The core alone decides whether to actually spawn a local
|
|
4761
|
+
// engine (its `should_manage_engine`, based on the endpoint + spawn mode), so
|
|
4762
|
+
// JS must not duplicate that decision here. Only JS knows the npm
|
|
4763
|
+
// `node_modules` layout, so it resolves the path; if no binary is available
|
|
4764
|
+
// (remote-only install, unsupported platform, optional deps skipped), leave
|
|
4765
|
+
// it unset and let the core report `engine.binary_unavailable` if it actually
|
|
4766
|
+
// needs one.
|
|
4767
|
+
try {
|
|
4766
4768
|
const { getEnginePath } = await loadEngineCli();
|
|
4767
4769
|
serveConfig.engineBinaryPath = getEnginePath();
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
+
} catch {
|
|
4771
|
+
// No local engine binary resolvable; the core decides whether it needs one.
|
|
4770
4772
|
}
|
|
4773
|
+
serveConfig.engineHost = config.engineHost;
|
|
4774
|
+
serveConfig.enginePort = config.enginePort;
|
|
4771
4775
|
if (config.test?.enabled) {
|
|
4772
4776
|
serveConfig.inspectorTestToken =
|
|
4773
4777
|
getEnvUniversal("_RIVET_TEST_INSPECTOR_TOKEN") ?? "token";
|
package/src/registry/runtime.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { SqliteNativeMetrics } from "@/common/database/config";
|
|
2
|
-
import { isLocalEngineEndpoint } from "@/common/engine";
|
|
3
2
|
import type { RegistryConfig } from "./config";
|
|
4
3
|
|
|
5
4
|
declare const handleBrand: unique symbol;
|
|
@@ -600,16 +599,19 @@ export async function buildServeConfig(
|
|
|
600
599
|
serverlessMaxStartPayloadBytes: config.serverless.maxStartPayloadBytes,
|
|
601
600
|
};
|
|
602
601
|
|
|
603
|
-
//
|
|
604
|
-
//
|
|
605
|
-
//
|
|
606
|
-
//
|
|
607
|
-
//
|
|
608
|
-
|
|
602
|
+
// Always best-effort resolve the engine binary path and hand it to the core.
|
|
603
|
+
// The core alone decides whether to actually spawn a local engine, so JS must
|
|
604
|
+
// not duplicate that decision here. `loadEnginePath` throws when no binary is
|
|
605
|
+
// available (remote-only install, unsupported platform, optional deps
|
|
606
|
+
// skipped); in that case leave it unset and let the core report
|
|
607
|
+
// `engine.binary_unavailable` only if it actually needs one.
|
|
608
|
+
try {
|
|
609
609
|
serveConfig.engineBinaryPath = await loadEnginePath();
|
|
610
|
-
|
|
611
|
-
|
|
610
|
+
} catch {
|
|
611
|
+
// No local engine binary resolvable; the core decides whether it needs one.
|
|
612
612
|
}
|
|
613
|
+
serveConfig.engineHost = config.engineHost;
|
|
614
|
+
serveConfig.enginePort = config.enginePort;
|
|
613
615
|
if (config.test?.enabled) {
|
|
614
616
|
serveConfig.inspectorTestToken =
|
|
615
617
|
process.env._RIVET_TEST_INSPECTOR_TOKEN ?? "token";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|