@runuai/host 0.9.102 → 0.9.103

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.
@@ -537,6 +537,16 @@ async function copyDirInto(
537
537
  }
538
538
  };
539
539
  await run(["/bin/mkdir", "-p", containerDir], `mkdir ${containerDir}`);
540
+ // The mkdir above runs as root, but a MACHINE copy extracts as the ssh
541
+ // user (node) — into a root-owned directory it dies with "Cannot open:
542
+ // Permission denied" and the account never authenticates (live
543
+ // 2026-09-07, first scoped Codex account on the shared host). Hand the
544
+ // directory to node BEFORE the copy; this also repairs a directory an
545
+ // earlier failed attempt left root-owned on a still-running machine.
546
+ await run(
547
+ ["/bin/chown", "-R", "node:node", containerDir],
548
+ `chown -R node:node ${containerDir}`,
549
+ );
540
550
  await environment.copy({
541
551
  direction: "into",
542
552
  source: hostDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runuai/host",
3
- "version": "0.9.102",
3
+ "version": "0.9.103",
4
4
  "description": "Uai host — runs ephemeral AI tasks in containers on a machine you control.",
5
5
  "license": "MIT",
6
6
  "author": "Uai Tech <team@runuai.com>",