@reddb-io/redcode 0.13.1 → 0.13.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/bin/redcode CHANGED
@@ -144,7 +144,10 @@ const names = (() => {
144
144
  }
145
145
 
146
146
  try {
147
- const result = childProcess.spawnSync("ldd", ["--version"], { encoding: "utf8" })
147
+ // Bounded like the darwin and windows probes above. Under WSL a spawn whose PATH
148
+ // resolution crosses /mnt/c or a dropped network mount can block in uninterruptible
149
+ // IO, and this runs before anything else, so an unbounded probe hangs even `-v`.
150
+ const result = childProcess.spawnSync("ldd", ["--version"], { encoding: "utf8", timeout: 1500 })
148
151
  const text = ((result.stdout || "") + (result.stderr || "")).toLowerCase()
149
152
  if (text.includes("musl")) return true
150
153
  } catch {
@@ -144,7 +144,10 @@ const names = (() => {
144
144
  }
145
145
 
146
146
  try {
147
- const result = childProcess.spawnSync("ldd", ["--version"], { encoding: "utf8" })
147
+ // Bounded like the darwin and windows probes above. Under WSL a spawn whose PATH
148
+ // resolution crosses /mnt/c or a dropped network mount can block in uninterruptible
149
+ // IO, and this runs before anything else, so an unbounded probe hangs even `-v`.
150
+ const result = childProcess.spawnSync("ldd", ["--version"], { encoding: "utf8", timeout: 1500 })
148
151
  const text = ((result.stdout || "") + (result.stderr || "")).toLowerCase()
149
152
  if (text.includes("musl")) return true
150
153
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reddb-io/redcode",
3
- "version": "0.13.1",
3
+ "version": "0.13.3",
4
4
  "description": "RedDB's AI coding agent for the terminal",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,17 +21,17 @@
21
21
  "x64"
22
22
  ],
23
23
  "optionalDependencies": {
24
- "@reddb-io/redcode-darwin-arm64": "0.13.1",
25
- "@reddb-io/redcode-darwin-x64": "0.13.1",
26
- "@reddb-io/redcode-darwin-x64-baseline": "0.13.1",
27
- "@reddb-io/redcode-linux-arm64": "0.13.1",
28
- "@reddb-io/redcode-linux-arm64-musl": "0.13.1",
29
- "@reddb-io/redcode-linux-x64": "0.13.1",
30
- "@reddb-io/redcode-linux-x64-baseline": "0.13.1",
31
- "@reddb-io/redcode-linux-x64-baseline-musl": "0.13.1",
32
- "@reddb-io/redcode-linux-x64-musl": "0.13.1",
33
- "@reddb-io/redcode-windows-arm64": "0.13.1",
34
- "@reddb-io/redcode-windows-x64": "0.13.1",
35
- "@reddb-io/redcode-windows-x64-baseline": "0.13.1"
24
+ "@reddb-io/redcode-darwin-arm64": "0.13.3",
25
+ "@reddb-io/redcode-darwin-x64": "0.13.3",
26
+ "@reddb-io/redcode-darwin-x64-baseline": "0.13.3",
27
+ "@reddb-io/redcode-linux-arm64": "0.13.3",
28
+ "@reddb-io/redcode-linux-arm64-musl": "0.13.3",
29
+ "@reddb-io/redcode-linux-x64": "0.13.3",
30
+ "@reddb-io/redcode-linux-x64-baseline": "0.13.3",
31
+ "@reddb-io/redcode-linux-x64-baseline-musl": "0.13.3",
32
+ "@reddb-io/redcode-linux-x64-musl": "0.13.3",
33
+ "@reddb-io/redcode-windows-arm64": "0.13.3",
34
+ "@reddb-io/redcode-windows-x64": "0.13.3",
35
+ "@reddb-io/redcode-windows-x64-baseline": "0.13.3"
36
36
  }
37
37
  }