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.
Files changed (57) hide show
  1. package/dist/browser/client.js +1 -1
  2. package/dist/browser/client.js.map +1 -1
  3. package/dist/browser/inspector/client.js +1 -1
  4. package/dist/browser/inspector/client.js.map +1 -1
  5. package/dist/tsup/agent-os/index.cjs +1 -1
  6. package/dist/tsup/agent-os/index.cjs.map +1 -1
  7. package/dist/tsup/agent-os/index.js +1 -1
  8. package/dist/tsup/agent-os/index.js.map +1 -1
  9. package/dist/tsup/{chunk-QJOU7CR7.cjs → chunk-2E4ZUHL4.cjs} +4 -4
  10. package/dist/tsup/{chunk-QJOU7CR7.cjs.map → chunk-2E4ZUHL4.cjs.map} +1 -1
  11. package/dist/tsup/{chunk-77WLUFGR.js → chunk-2W7LKDDZ.js} +3 -3
  12. package/dist/tsup/{chunk-DAD4AJZ2.cjs → chunk-AJWHUMWQ.cjs} +3 -3
  13. package/dist/tsup/{chunk-DAD4AJZ2.cjs.map → chunk-AJWHUMWQ.cjs.map} +1 -1
  14. package/dist/tsup/{chunk-WONMIJXZ.js → chunk-AR7QWFKA.js} +4 -4
  15. package/dist/tsup/{chunk-UGWOGAJC.cjs → chunk-BFYBRTGW.cjs} +139 -139
  16. package/dist/tsup/{chunk-UGWOGAJC.cjs.map → chunk-BFYBRTGW.cjs.map} +1 -1
  17. package/dist/tsup/{chunk-JEYA7VDY.cjs → chunk-CDDQZU4R.cjs} +7 -7
  18. package/dist/tsup/{chunk-JEYA7VDY.cjs.map → chunk-CDDQZU4R.cjs.map} +1 -1
  19. package/dist/tsup/{chunk-JP7DKDAJ.js → chunk-ELDQD7LQ.js} +2 -2
  20. package/dist/tsup/{chunk-4NCPXIXN.cjs → chunk-J7IQB3TJ.cjs} +10 -10
  21. package/dist/tsup/{chunk-4NCPXIXN.cjs.map → chunk-J7IQB3TJ.cjs.map} +1 -1
  22. package/dist/tsup/{chunk-3DLZPD2O.cjs → chunk-K4DEVUAA.cjs} +2 -2
  23. package/dist/tsup/{chunk-3DLZPD2O.cjs.map → chunk-K4DEVUAA.cjs.map} +1 -1
  24. package/dist/tsup/{chunk-IZL7RMJG.cjs → chunk-KQKI5UCX.cjs} +5 -5
  25. package/dist/tsup/{chunk-IZL7RMJG.cjs.map → chunk-KQKI5UCX.cjs.map} +1 -1
  26. package/dist/tsup/{chunk-MBKXR2QI.js → chunk-ONOK6O4Z.js} +2 -2
  27. package/dist/tsup/{chunk-UJBC3FPJ.js → chunk-PAXNKBVD.js} +4 -4
  28. package/dist/tsup/{chunk-FQS7IMDH.js → chunk-ROKNIPGT.js} +2 -2
  29. package/dist/tsup/{chunk-FQS7IMDH.js.map → chunk-ROKNIPGT.js.map} +1 -1
  30. package/dist/tsup/{chunk-EFTOLYWT.js → chunk-X3YPYOMT.js} +2 -2
  31. package/dist/tsup/client/mod.cjs +6 -6
  32. package/dist/tsup/client/mod.js +5 -5
  33. package/dist/tsup/common/log.cjs +2 -2
  34. package/dist/tsup/common/log.js +1 -1
  35. package/dist/tsup/common/websocket.cjs +3 -3
  36. package/dist/tsup/common/websocket.js +2 -2
  37. package/dist/tsup/inspector/mod.cjs +5 -5
  38. package/dist/tsup/inspector/mod.js +4 -4
  39. package/dist/tsup/mod.cjs +66 -62
  40. package/dist/tsup/mod.cjs.map +1 -1
  41. package/dist/tsup/mod.js +10 -6
  42. package/dist/tsup/mod.js.map +1 -1
  43. package/dist/tsup/test/mod.cjs +9 -9
  44. package/dist/tsup/test/mod.js +5 -5
  45. package/dist/tsup/utils.cjs +2 -2
  46. package/dist/tsup/utils.js +1 -1
  47. package/dist/tsup/workflow/mod.cjs +7 -7
  48. package/dist/tsup/workflow/mod.js +4 -4
  49. package/package.json +8 -8
  50. package/src/registry/native.ts +9 -2
  51. package/src/registry/runtime.ts +10 -2
  52. /package/dist/tsup/{chunk-77WLUFGR.js.map → chunk-2W7LKDDZ.js.map} +0 -0
  53. /package/dist/tsup/{chunk-WONMIJXZ.js.map → chunk-AR7QWFKA.js.map} +0 -0
  54. /package/dist/tsup/{chunk-JP7DKDAJ.js.map → chunk-ELDQD7LQ.js.map} +0 -0
  55. /package/dist/tsup/{chunk-MBKXR2QI.js.map → chunk-ONOK6O4Z.js.map} +0 -0
  56. /package/dist/tsup/{chunk-UJBC3FPJ.js.map → chunk-PAXNKBVD.js.map} +0 -0
  57. /package/dist/tsup/{chunk-EFTOLYWT.js.map → chunk-X3YPYOMT.js.map} +0 -0
@@ -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 _chunkJEYA7VDYcjs = require('../chunk-JEYA7VDY.cjs');
3
+ var _chunkCDDQZU4Rcjs = require('../chunk-CDDQZU4R.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkUGWOGAJCcjs = require('../chunk-UGWOGAJC.cjs');
7
+ var _chunkBFYBRTGWcjs = require('../chunk-BFYBRTGW.cjs');
8
8
  require('../chunk-VE2X4KMG.cjs');
9
- require('../chunk-IZL7RMJG.cjs');
9
+ require('../chunk-KQKI5UCX.cjs');
10
10
  require('../chunk-ZA7FLHKH.cjs');
11
- require('../chunk-DAD4AJZ2.cjs');
12
- require('../chunk-3DLZPD2O.cjs');
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 = _chunkUGWOGAJCcjs.convertRegistryConfigToClientConfig.call(void 0,
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 _chunkUGWOGAJCcjs.getMetadata.call(void 0, clientConfig);
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 = _chunkJEYA7VDYcjs.createClient.call(void 0, {
38
- ..._chunkUGWOGAJCcjs.convertRegistryConfigToClientConfig.call(void 0, registry.parseConfig()),
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 () => {
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  createClient
3
- } from "../chunk-77WLUFGR.js";
3
+ } from "../chunk-2W7LKDDZ.js";
4
4
  import {
5
5
  convertRegistryConfigToClientConfig,
6
6
  getMetadata
7
- } from "../chunk-UJBC3FPJ.js";
7
+ } from "../chunk-PAXNKBVD.js";
8
8
  import "../chunk-HXUEHHJF.js";
9
- import "../chunk-MBKXR2QI.js";
9
+ import "../chunk-ONOK6O4Z.js";
10
10
  import "../chunk-JZ7TWV65.js";
11
- import "../chunk-EFTOLYWT.js";
12
- import "../chunk-FQS7IMDH.js";
11
+ import "../chunk-X3YPYOMT.js";
12
+ import "../chunk-ROKNIPGT.js";
13
13
  import "../chunk-BRP62GZC.js";
14
14
 
15
15
  // src/test/mod.ts
@@ -17,7 +17,7 @@
17
17
 
18
18
 
19
19
 
20
- var _chunk3DLZPD2Ocjs = require('./chunk-3DLZPD2O.cjs');
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 = _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;
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
@@ -17,7 +17,7 @@ import {
17
17
  sleep,
18
18
  stringifyError,
19
19
  toUint8Array
20
- } from "./chunk-FQS7IMDH.js";
20
+ } from "./chunk-ROKNIPGT.js";
21
21
  import "./chunk-BRP62GZC.js";
22
22
  export {
23
23
  EXTRA_ERROR_LOG,
@@ -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 _chunk4NCPXIXNcjs = require('../chunk-4NCPXIXN.cjs');
4
- require('../chunk-QJOU7CR7.cjs');
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-IZL7RMJG.cjs');
14
+ require('../chunk-KQKI5UCX.cjs');
15
15
 
16
16
 
17
- var _chunk3DLZPD2Ocjs = require('../chunk-3DLZPD2O.cjs');
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 = _chunk4NCPXIXNcjs.createWorkflowInspectorAdapter.call(void 0, );
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: _chunk3DLZPD2Ocjs.stringifyError.call(void 0, 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: _chunk3DLZPD2Ocjs.stringifyError.call(void 0, 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-WONMIJXZ.js";
4
- import "../chunk-JP7DKDAJ.js";
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-MBKXR2QI.js";
14
+ import "../chunk-ONOK6O4Z.js";
15
15
  import {
16
16
  stringifyError
17
- } from "../chunk-FQS7IMDH.js";
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.e5bdda7",
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.e5bdda7",
197
- "@rivetkit/engine-envoy-protocol": "0.0.0-fix-engine-autospawn-binary-path.e5bdda7",
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.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",
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",
@@ -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
- // No local engine binary resolvable; the core decides whether it needs one.
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;
@@ -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
- // No local engine binary resolvable; the core decides whether it needs one.
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;