@ai-ecoverse/slicc-kernel 1.62.2 → 1.62.4
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/README.md +1 -1
- package/dist/kernel-worker.js +8 -11
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +3 -10
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +8 -11
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +3 -10
- package/dist/process-worker.js.map +2 -2
- package/package.json +1 -1
package/dist/node.js
CHANGED
|
@@ -6537,17 +6537,8 @@ function mkdirOptions(entry, mode = 511) {
|
|
|
6537
6537
|
return { recursive: true, owner: { ...owner, parents } };
|
|
6538
6538
|
}
|
|
6539
6539
|
async function mkdirExclusive(entry, path, mode) {
|
|
6540
|
-
const
|
|
6541
|
-
|
|
6542
|
-
const own = owner ? { owner } : {};
|
|
6543
|
-
try {
|
|
6544
|
-
await fs.mkdir(path, own);
|
|
6545
|
-
} catch (err) {
|
|
6546
|
-
if (err?.code !== "ENOENT") throw err;
|
|
6547
|
-
const above = owner ? { owner: { ...owner, mode: owner.parents } } : {};
|
|
6548
|
-
await fs.mkdir(path.slice(0, path.lastIndexOf("/")) || "/", { recursive: true, ...above });
|
|
6549
|
-
await fs.mkdir(path, own);
|
|
6550
|
-
}
|
|
6540
|
+
const owner = ownerFor2(entry, mode ?? 511);
|
|
6541
|
+
await entry.fs.mkdir(path, owner ? { owner } : {});
|
|
6551
6542
|
}
|
|
6552
6543
|
async function chown(entry, path, req) {
|
|
6553
6544
|
const cred = entry.cred?.();
|
|
@@ -14693,8 +14684,13 @@ var Launcher = class {
|
|
|
14693
14684
|
this.fs
|
|
14694
14685
|
);
|
|
14695
14686
|
void this.unlinked.sweep(entry.target);
|
|
14687
|
+
if (this.pnpmHome.startsWith(`${entry.target.replace(/\/$/, "")}/`))
|
|
14688
|
+
await this.provisionPnpmHome();
|
|
14696
14689
|
return entry;
|
|
14697
14690
|
}
|
|
14691
|
+
async provisionPnpmHome() {
|
|
14692
|
+
await this.base.mkdir(this.pnpmHome, { recursive: true }).catch(() => void 0);
|
|
14693
|
+
}
|
|
14698
14694
|
mountedBy(spec, cred) {
|
|
14699
14695
|
if (!this.owners || cred.euid === 0 && cred.egid === 0) return spec;
|
|
14700
14696
|
const ids = { uid: String(cred.euid), gid: String(cred.egid) };
|
|
@@ -14762,6 +14758,7 @@ var Launcher = class {
|
|
|
14762
14758
|
}
|
|
14763
14759
|
async prepare() {
|
|
14764
14760
|
for (const dir of SHARED_DIRS) await this.base.mkdir(dir, { recursive: true });
|
|
14761
|
+
await this.provisionPnpmHome();
|
|
14765
14762
|
await this.users.ensure();
|
|
14766
14763
|
await writeCaFile(this.base, this.ca).catch(() => void 0);
|
|
14767
14764
|
this.fstab = this.mountFstab();
|