@jaredboynton/rtinfer 0.1.1 → 0.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaredboynton/rtinfer",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Always-on loopback rtinfer/1 inference daemon (gpt-realtime + codex/responses over Codex OAuth). Shared by cse-tools and unifable.",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/jaredboynton/rtinfer",
@@ -18,7 +18,7 @@
18
18
  "postinstall": "node src/postinstall.js"
19
19
  },
20
20
  "optionalDependencies": {
21
- "@jaredboynton/rtinfer-darwin-arm64": "0.1.1",
22
- "@jaredboynton/rtinfer-linux-arm64": "0.1.1"
21
+ "@jaredboynton/rtinfer-darwin-arm64": "0.1.3",
22
+ "@jaredboynton/rtinfer-linux-arm64": "0.1.3"
23
23
  }
24
24
  }
@@ -30,7 +30,11 @@ function npmGlobalShim() {
30
30
 
31
31
  try {
32
32
  const shim = npmGlobalShim();
33
- const env = shim ? { ...process.env, RTINFER_LAUNCH_BIN: shim } : process.env;
33
+ // Hand the native installer the exact node this postinstall runs under
34
+ // (process.execPath). launchd does not inherit the shell PATH (fnm/nvm
35
+ // shims), so the installer bakes this absolute node into the plist.
36
+ const env = { ...process.env, RTINFER_LAUNCH_NODE: process.execPath };
37
+ if (shim) env.RTINFER_LAUNCH_BIN = shim;
34
38
  const result = spawnRaw(['install'], { env });
35
39
  if (result.error || (result.status != null && result.status !== 0)) {
36
40
  console.error('[rtinfer] postinstall: daemon not installed automatically; run `rtinferd install` to enable the always-on service.');