@runuai/host 0.8.12 → 0.8.13

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/lib/engines.ts +11 -2
  2. package/package.json +1 -1
package/lib/engines.ts CHANGED
@@ -184,8 +184,17 @@ function defaultSeams(): EngineSeams {
184
184
  return {
185
185
  spawn: (command, args, spawnEnv) =>
186
186
  nodeSpawn(command, args, {
187
- // stdin stays open (pipe): the token flow answers "Press Enter" gates.
188
- stdio: ["pipe", "pipe", "pipe"],
187
+ // macOS: stdin MUST be /dev/null ("ignore"), never a node pipe. Node's
188
+ // child pipes are SOCKETPAIRS, and Apple's BSD script(1) hard-exits on
189
+ // a socket stdin ("tcgetattr/ioctl: Operation not supported on
190
+ // socket") while tolerating /dev/null (ENOTTY → notty mode). The
191
+ // "Press Enter" auto-ack is therefore Linux-only; the real token flow
192
+ // needs no input before the token renders (verified empirically).
193
+ stdio: [
194
+ process.platform === "darwin" ? "ignore" : "pipe",
195
+ "pipe",
196
+ "pipe",
197
+ ],
189
198
  env: spawnEnv,
190
199
  }),
191
200
  envLocalPath: () => join(env.uaiHome, ".env.local"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runuai/host",
3
- "version": "0.8.12",
3
+ "version": "0.8.13",
4
4
  "description": "Uai host — runs ephemeral AI coding tasks in Docker on a machine you control.",
5
5
  "license": "MIT",
6
6
  "author": "Diogo Perillo <diogo.perillo@gmail.com>",