@rivet-dev/agentos-sidecar 0.2.6 → 0.2.8-rc.1

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 (3) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +9 -1
  3. package/package.json +7 -5
package/index.d.ts CHANGED
@@ -5,7 +5,8 @@
5
5
  * Resolution priority:
6
6
  * 1. `AGENTOS_SIDECAR_BIN` env var (absolute path override).
7
7
  * 2. A `agentos-sidecar` binary placed next to this package (dev builds).
8
- * 3. The platform-specific `@rivet-dev/agentos-sidecar-<platform>` package.
8
+ * 3. A cargo build output under the repo `target/{release,debug}/` (dev).
9
+ * 4. The platform-specific `@rivet-dev/agentos-sidecar-<platform>` package.
9
10
  *
10
11
  * @throws if the platform is unsupported or no binary can be found.
11
12
  */
package/index.js CHANGED
@@ -8,7 +8,8 @@
8
8
  // Resolution priority:
9
9
  // 1. `AGENTOS_SIDECAR_BIN` env var (absolute path override).
10
10
  // 2. A `agentos-sidecar` binary placed next to this package (dev builds).
11
- // 3. The platform-specific `@rivet-dev/agentos-sidecar-<platform>` package.
11
+ // 3. A cargo build output under the repo `target/{release,debug}/` (dev).
12
+ // 4. The platform-specific `@rivet-dev/agentos-sidecar-<platform>` package.
12
13
 
13
14
  const { existsSync } = require("node:fs");
14
15
  const { join, dirname } = require("node:path");
@@ -53,6 +54,13 @@ function getSidecarPath() {
53
54
  return localBinary;
54
55
  }
55
56
 
57
+ for (const profile of ["release", "debug"]) {
58
+ const candidate = join(__dirname, "..", "..", "target", profile, BINARY_NAME);
59
+ if (existsSync(candidate)) {
60
+ return candidate;
61
+ }
62
+ }
63
+
56
64
  const platformPkg = getPlatformPackageName();
57
65
  if (!platformPkg) {
58
66
  throw new Error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivet-dev/agentos-sidecar",
3
- "version": "0.2.6",
3
+ "version": "0.2.8-rc.1",
4
4
  "description": "Platform-specific resolver for the Agent OS native sidecar binary",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -19,12 +19,14 @@
19
19
  "node": ">=20"
20
20
  },
21
21
  "scripts": {
22
+ "build": "node scripts/build.mjs",
23
+ "build:release": "node scripts/build.mjs --release",
22
24
  "check-types": "exit 0"
23
25
  },
24
26
  "optionalDependencies": {
25
- "@rivet-dev/agentos-sidecar-darwin-arm64": "0.2.6",
26
- "@rivet-dev/agentos-sidecar-darwin-x64": "0.2.6",
27
- "@rivet-dev/agentos-sidecar-linux-arm64-gnu": "0.2.6",
28
- "@rivet-dev/agentos-sidecar-linux-x64-gnu": "0.2.6"
27
+ "@rivet-dev/agentos-sidecar-darwin-arm64": "0.2.8-rc.1",
28
+ "@rivet-dev/agentos-sidecar-darwin-x64": "0.2.8-rc.1",
29
+ "@rivet-dev/agentos-sidecar-linux-arm64-gnu": "0.2.8-rc.1",
30
+ "@rivet-dev/agentos-sidecar-linux-x64-gnu": "0.2.8-rc.1"
29
31
  }
30
32
  }