@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.
- package/lib/standard-image.ts +8 -1
- package/package.json +1 -1
package/lib/standard-image.ts
CHANGED
|
@@ -253,7 +253,14 @@ async function upgradeVolumeAgentClis(): Promise<void> {
|
|
|
253
253
|
STANDARD_IMAGE_TAG,
|
|
254
254
|
"bash",
|
|
255
255
|
"-lc",
|
|
256
|
-
|
|
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