@runuai/host 0.7.0 → 0.7.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.
@@ -253,7 +253,14 @@ async function upgradeVolumeAgentClis(): Promise<void> {
253
253
  STANDARD_IMAGE_TAG,
254
254
  "bash",
255
255
  "-lc",
256
- `npm install -g ${pkgs} >/dev/null 2>&1 || { rm -rf ${scopeDirs}; npm install -g ${pkgs} >/dev/null 2>&1; } && asdf reshim nodejs >/dev/null 2>&1; ` +
256
+ // Reshim is its OWN statement (`;`, not `&&`) so it ALWAYS runs after the
257
+ // install attempts — with `&& reshim`, the `|| { rm -rf; reinstall; }`
258
+ // fallback's exit code could skip the reshim, leaving a stale `codex`/
259
+ // `claude` shim ("No <cli> executable found for nodejs …") even though the
260
+ // bin installed fine (hit codex live 2026-07-16). Reshim is idempotent and
261
+ // cheap, so running it unconditionally is strictly safer.
262
+ `npm install -g ${pkgs} >/dev/null 2>&1 || { rm -rf ${scopeDirs}; npm install -g ${pkgs} >/dev/null 2>&1; }; ` +
263
+ `asdf reshim nodejs >/dev/null 2>&1; ` +
257
264
  bins.map((b) => `printf '%s ' "$(${b} --version 2>/dev/null | head -1)"`).join("; "),
258
265
  ]);
259
266
  if (upgrade.code !== 0 && /already in use/i.test(upgrade.stderr)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runuai/host",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
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>",