harness-reins 0.13.3 → 0.14.0-alpha.3

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 (2) hide show
  1. package/bin/reins.js +5 -0
  2. package/package.json +2 -2
package/bin/reins.js CHANGED
@@ -46,6 +46,11 @@ function binaryPath() {
46
46
  try {
47
47
  root = path.dirname(require.resolve(`${name}/package.json`));
48
48
  } catch {
49
+ // A platform this release has no build for is not among its optionalDependencies.
50
+ const own = require(path.join(__dirname, "..", "package.json"));
51
+ if (!(own.optionalDependencies && name in own.optionalDependencies)) {
52
+ fail(`this release has no prebuilt binary for ${key}; install from source: ${PIP_INSTALL}`);
53
+ }
49
54
  fail(`${name} is not installed; reinstall without --omit=optional / --no-optional`);
50
55
  }
51
56
  return path.join(root, "dist", "reins", process.platform === "win32" ? "reins.exe" : "reins");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harness-reins",
3
- "version": "0.13.3",
3
+ "version": "0.14.0-alpha.3",
4
4
  "description": "Harness Reins: dispatch work to any agent and route the result back to the session that asked",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,6 +27,6 @@
27
27
  "node": ">=18"
28
28
  },
29
29
  "optionalDependencies": {
30
- "@harness-reins/linux-x64": "0.13.3"
30
+ "@harness-reins/linux-x64": "0.14.0-alpha.3"
31
31
  }
32
32
  }