humancode 0.0.19 → 0.0.20

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/humancode +7 -0
  2. package/package.json +12 -12
package/bin/humancode CHANGED
@@ -6,6 +6,13 @@ const path = require("path")
6
6
  const os = require("os")
7
7
 
8
8
  function run(target) {
9
+ // On Windows, tell the child process whether the parent's stdin is a real TTY.
10
+ // Node.js spawnSync can create internal pipes for stdio: "inherit", causing the
11
+ // Bun compiled binary to misdetect stdin as a pipe instead of a console handle.
12
+ if (process.platform === "win32") {
13
+ process.env.OPENCODE_STDIN_IS_TTY = process.stdin.isTTY ? "1" : "0"
14
+ }
15
+
9
16
  const result = childProcess.spawnSync(target, process.argv.slice(2), {
10
17
  stdio: "inherit",
11
18
  })
package/package.json CHANGED
@@ -6,19 +6,19 @@
6
6
  "scripts": {
7
7
  "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
8
8
  },
9
- "version": "0.0.19",
9
+ "version": "0.0.20",
10
10
  "license": "MIT",
11
11
  "optionalDependencies": {
12
- "humancode-linux-x64-musl": "0.0.19",
13
- "humancode-darwin-x64": "0.0.19",
14
- "humancode-linux-arm64-musl": "0.0.19",
15
- "humancode-linux-arm64": "0.0.19",
16
- "humancode-darwin-arm64": "0.0.19",
17
- "humancode-darwin-x64-baseline": "0.0.19",
18
- "humancode-linux-x64": "0.0.19",
19
- "humancode-windows-x64": "0.0.19",
20
- "humancode-windows-x64-baseline": "0.0.19",
21
- "humancode-linux-x64-baseline-musl": "0.0.19",
22
- "humancode-linux-x64-baseline": "0.0.19"
12
+ "humancode-linux-x64-musl": "0.0.20",
13
+ "humancode-darwin-x64": "0.0.20",
14
+ "humancode-linux-arm64-musl": "0.0.20",
15
+ "humancode-linux-arm64": "0.0.20",
16
+ "humancode-darwin-arm64": "0.0.20",
17
+ "humancode-darwin-x64-baseline": "0.0.20",
18
+ "humancode-linux-x64": "0.0.20",
19
+ "humancode-windows-x64": "0.0.20",
20
+ "humancode-windows-x64-baseline": "0.0.20",
21
+ "humancode-linux-x64-baseline-musl": "0.0.20",
22
+ "humancode-linux-x64-baseline": "0.0.20"
23
23
  }
24
24
  }