rivetkit 0.0.0-fix-engine-autospawn-binary-path.e5bdda7 → 0.0.0-fix-engine-autospawn-binary-path.bd77b98
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-QJOU7CR7.cjs → chunk-2E4ZUHL4.cjs} +4 -4
- package/dist/tsup/{chunk-QJOU7CR7.cjs.map → chunk-2E4ZUHL4.cjs.map} +1 -1
- package/dist/tsup/{chunk-77WLUFGR.js → chunk-2W7LKDDZ.js} +3 -3
- package/dist/tsup/{chunk-DAD4AJZ2.cjs → chunk-AJWHUMWQ.cjs} +3 -3
- package/dist/tsup/{chunk-DAD4AJZ2.cjs.map → chunk-AJWHUMWQ.cjs.map} +1 -1
- package/dist/tsup/{chunk-WONMIJXZ.js → chunk-AR7QWFKA.js} +4 -4
- package/dist/tsup/{chunk-UGWOGAJC.cjs → chunk-BFYBRTGW.cjs} +139 -139
- package/dist/tsup/{chunk-UGWOGAJC.cjs.map → chunk-BFYBRTGW.cjs.map} +1 -1
- package/dist/tsup/{chunk-JEYA7VDY.cjs → chunk-CDDQZU4R.cjs} +7 -7
- package/dist/tsup/{chunk-JEYA7VDY.cjs.map → chunk-CDDQZU4R.cjs.map} +1 -1
- package/dist/tsup/{chunk-JP7DKDAJ.js → chunk-ELDQD7LQ.js} +2 -2
- package/dist/tsup/{chunk-4NCPXIXN.cjs → chunk-J7IQB3TJ.cjs} +10 -10
- package/dist/tsup/{chunk-4NCPXIXN.cjs.map → chunk-J7IQB3TJ.cjs.map} +1 -1
- package/dist/tsup/{chunk-3DLZPD2O.cjs → chunk-K4DEVUAA.cjs} +2 -2
- package/dist/tsup/{chunk-3DLZPD2O.cjs.map → chunk-K4DEVUAA.cjs.map} +1 -1
- package/dist/tsup/{chunk-IZL7RMJG.cjs → chunk-KQKI5UCX.cjs} +5 -5
- package/dist/tsup/{chunk-IZL7RMJG.cjs.map → chunk-KQKI5UCX.cjs.map} +1 -1
- package/dist/tsup/{chunk-MBKXR2QI.js → chunk-ONOK6O4Z.js} +2 -2
- package/dist/tsup/{chunk-UJBC3FPJ.js → chunk-PAXNKBVD.js} +4 -4
- package/dist/tsup/{chunk-FQS7IMDH.js → chunk-ROKNIPGT.js} +2 -2
- package/dist/tsup/{chunk-FQS7IMDH.js.map → chunk-ROKNIPGT.js.map} +1 -1
- package/dist/tsup/{chunk-EFTOLYWT.js → chunk-X3YPYOMT.js} +2 -2
- 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 +66 -62
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.js +10 -6
- 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 +9 -2
- package/src/registry/runtime.ts +10 -2
- /package/dist/tsup/{chunk-77WLUFGR.js.map → chunk-2W7LKDDZ.js.map} +0 -0
- /package/dist/tsup/{chunk-WONMIJXZ.js.map → chunk-AR7QWFKA.js.map} +0 -0
- /package/dist/tsup/{chunk-JP7DKDAJ.js.map → chunk-ELDQD7LQ.js.map} +0 -0
- /package/dist/tsup/{chunk-MBKXR2QI.js.map → chunk-ONOK6O4Z.js.map} +0 -0
- /package/dist/tsup/{chunk-UJBC3FPJ.js.map → chunk-PAXNKBVD.js.map} +0 -0
- /package/dist/tsup/{chunk-EFTOLYWT.js.map → chunk-X3YPYOMT.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 _chunkCDDQZU4Rcjs = require('../chunk-CDDQZU4R.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBFYBRTGWcjs = require('../chunk-BFYBRTGW.cjs');
|
|
8
8
|
require('../chunk-VE2X4KMG.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-KQKI5UCX.cjs');
|
|
10
10
|
require('../chunk-ZA7FLHKH.cjs');
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-AJWHUMWQ.cjs');
|
|
12
|
+
require('../chunk-K4DEVUAA.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 = _chunkBFYBRTGWcjs.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 _chunkBFYBRTGWcjs.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 = _chunkCDDQZU4Rcjs.createClient.call(void 0, {
|
|
38
|
+
..._chunkBFYBRTGWcjs.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-2W7LKDDZ.js";
|
|
4
4
|
import {
|
|
5
5
|
convertRegistryConfigToClientConfig,
|
|
6
6
|
getMetadata
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-PAXNKBVD.js";
|
|
8
8
|
import "../chunk-HXUEHHJF.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-ONOK6O4Z.js";
|
|
10
10
|
import "../chunk-JZ7TWV65.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-X3YPYOMT.js";
|
|
12
|
+
import "../chunk-ROKNIPGT.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 _chunkK4DEVUAAcjs = require('./chunk-K4DEVUAA.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 = _chunkK4DEVUAAcjs.EXTRA_ERROR_LOG; exports.SinglePromiseQueue = _chunkK4DEVUAAcjs.SinglePromiseQueue; exports.VERSION = _chunkK4DEVUAAcjs.VERSION; exports.arrayBuffersEqual = _chunkK4DEVUAAcjs.arrayBuffersEqual; exports.assertUnreachable = _chunkK4DEVUAAcjs.assertUnreachable; exports.bufferToArrayBuffer = _chunkK4DEVUAAcjs.bufferToArrayBuffer; exports.combineUrlPath = _chunkK4DEVUAAcjs.combineUrlPath; exports.dbg = _chunkK4DEVUAAcjs.dbg; exports.detectRuntime = _chunkK4DEVUAAcjs.detectRuntime; exports.getEnvUniversal = _chunkK4DEVUAAcjs.getEnvUniversal; exports.httpUserAgent = _chunkK4DEVUAAcjs.httpUserAgent; exports.interval = _chunkK4DEVUAAcjs.interval; exports.joinSignals = _chunkK4DEVUAAcjs.joinSignals; exports.promiseWithResolvers = _chunkK4DEVUAAcjs.promiseWithResolvers; exports.setLongTimeout = _chunkK4DEVUAAcjs.setLongTimeout; exports.sleep = _chunkK4DEVUAAcjs.sleep; exports.stringifyError = _chunkK4DEVUAAcjs.stringifyError; exports.toUint8Array = _chunkK4DEVUAAcjs.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 _chunkJ7IQB3TJcjs = require('../chunk-J7IQB3TJ.cjs');
|
|
4
|
+
require('../chunk-2E4ZUHL4.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-KQKI5UCX.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkK4DEVUAAcjs = require('../chunk-K4DEVUAA.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 = _chunkJ7IQB3TJcjs.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: _chunkK4DEVUAAcjs.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: _chunkK4DEVUAAcjs.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-AR7QWFKA.js";
|
|
4
|
+
import "../chunk-ELDQD7LQ.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-ONOK6O4Z.js";
|
|
15
15
|
import {
|
|
16
16
|
stringifyError
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-ROKNIPGT.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.bd77b98",
|
|
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.bd77b98",
|
|
197
|
+
"@rivetkit/engine-envoy-protocol": "0.0.0-fix-engine-autospawn-binary-path.bd77b98",
|
|
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.bd77b98",
|
|
200
|
+
"@rivetkit/rivetkit-wasm": "0.0.0-fix-engine-autospawn-binary-path.bd77b98",
|
|
201
|
+
"@rivetkit/traces": "0.0.0-fix-engine-autospawn-binary-path.bd77b98",
|
|
202
|
+
"@rivetkit/virtual-websocket": "0.0.0-fix-engine-autospawn-binary-path.bd77b98",
|
|
203
|
+
"@rivetkit/workflow-engine": "0.0.0-fix-engine-autospawn-binary-path.bd77b98",
|
|
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
|
@@ -4767,8 +4767,15 @@ export async function buildServeConfig(
|
|
|
4767
4767
|
try {
|
|
4768
4768
|
const { getEnginePath } = await loadEngineCli();
|
|
4769
4769
|
serveConfig.engineBinaryPath = getEnginePath();
|
|
4770
|
-
} catch {
|
|
4771
|
-
//
|
|
4770
|
+
} catch (error) {
|
|
4771
|
+
// The npm-installed engine binary could not be resolved. The core still
|
|
4772
|
+
// decides whether it needs to spawn a local engine; if it does, it will
|
|
4773
|
+
// fail with engine.binary_unavailable (auto-download is off in the napi
|
|
4774
|
+
// runtime). Warn so the cause is actionable.
|
|
4775
|
+
logger().warn({
|
|
4776
|
+
msg: "could not resolve a local engine binary; if a local engine must be spawned it will fail with engine.binary_unavailable — set RIVET_ENGINE_BINARY_PATH or install the @rivetkit/engine-cli platform package",
|
|
4777
|
+
error: stringifyError(error),
|
|
4778
|
+
});
|
|
4772
4779
|
}
|
|
4773
4780
|
serveConfig.engineHost = config.engineHost;
|
|
4774
4781
|
serveConfig.enginePort = config.enginePort;
|
package/src/registry/runtime.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { stringifyError } from "@/common/utils";
|
|
1
2
|
import type { SqliteNativeMetrics } from "@/common/database/config";
|
|
2
3
|
import type { RegistryConfig } from "./config";
|
|
4
|
+
import { logger } from "./log";
|
|
3
5
|
|
|
4
6
|
declare const handleBrand: unique symbol;
|
|
5
7
|
|
|
@@ -607,8 +609,14 @@ export async function buildServeConfig(
|
|
|
607
609
|
// `engine.binary_unavailable` only if it actually needs one.
|
|
608
610
|
try {
|
|
609
611
|
serveConfig.engineBinaryPath = await loadEnginePath();
|
|
610
|
-
} catch {
|
|
611
|
-
//
|
|
612
|
+
} catch (error) {
|
|
613
|
+
// The engine binary could not be resolved. The core still decides whether
|
|
614
|
+
// it needs to spawn a local engine; if it does, it will fail with
|
|
615
|
+
// engine.binary_unavailable (auto-download is off in the napi runtime).
|
|
616
|
+
logger().warn({
|
|
617
|
+
msg: "could not resolve a local engine binary; if a local engine must be spawned it will fail with engine.binary_unavailable — set RIVET_ENGINE_BINARY_PATH or install the @rivetkit/engine-cli platform package",
|
|
618
|
+
error: stringifyError(error),
|
|
619
|
+
});
|
|
612
620
|
}
|
|
613
621
|
serveConfig.engineHost = config.engineHost;
|
|
614
622
|
serveConfig.enginePort = config.enginePort;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|