@ai-ecoverse/slicc-kernel 1.103.1 → 1.103.2
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 +29 -3
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.js +11 -3
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +29 -3
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +11 -3
- package/dist/process-worker.js.map +2 -2
- package/dist/types/kernel/children.d.ts +1 -0
- package/dist/types/kernel/process.d.ts +1 -0
- package/dist/types/kernel/run-child.d.ts +1 -0
- package/dist/types/launcher.d.ts +1 -0
- package/dist/types/realm/emscripten-vfs-hook.d.ts +1 -0
- package/package.json +1 -1
package/dist/process-worker.js
CHANGED
|
@@ -2434,7 +2434,7 @@ function mountVfsIntoEmscripten(Fs, deps) {
|
|
|
2434
2434
|
linuxRmdir(Fs);
|
|
2435
2435
|
if (deps.cred) Fs.sliccCred = deps.cred;
|
|
2436
2436
|
try {
|
|
2437
|
-
Fs.chdir(deps.cwd);
|
|
2437
|
+
(Fs.sliccChdirAt ?? Fs.chdir).call(Fs, deps.cwd);
|
|
2438
2438
|
} catch (err) {
|
|
2439
2439
|
warn(`cannot chdir to ${deps.cwd}: errno ${err.errno}`);
|
|
2440
2440
|
}
|
|
@@ -2491,7 +2491,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
2491
2491
|
var init_version = __esm({
|
|
2492
2492
|
"src/version.ts"() {
|
|
2493
2493
|
"use strict";
|
|
2494
|
-
KERNEL_VERSION = true ? "1.103.
|
|
2494
|
+
KERNEL_VERSION = true ? "1.103.2" : "0.0.0-dev";
|
|
2495
2495
|
OS_RELEASE = "6.0.0-slicc";
|
|
2496
2496
|
}
|
|
2497
2497
|
});
|
|
@@ -3394,6 +3394,7 @@ function kernelUname(imports, hostname, memory, glue) {
|
|
|
3394
3394
|
function kernelChdir(Fs) {
|
|
3395
3395
|
const { chdir, lookupPath, ErrnoError } = Fs;
|
|
3396
3396
|
if (!chdir || !lookupPath || !ErrnoError) return;
|
|
3397
|
+
Fs.sliccChdirAt = chdir;
|
|
3397
3398
|
Fs.chdir = (path) => {
|
|
3398
3399
|
const { node } = lookupPath.call(Fs, path, { follow: true });
|
|
3399
3400
|
const directory = Fs.isDir?.(node.mode) === true;
|
|
@@ -4556,6 +4557,7 @@ function createProcessKernel(deps) {
|
|
|
4556
4557
|
argv,
|
|
4557
4558
|
env: env ?? deps.env,
|
|
4558
4559
|
cwd: cwd ?? Fs.cwd(),
|
|
4560
|
+
...cwd !== null ? { chdir: true } : {},
|
|
4559
4561
|
stdio,
|
|
4560
4562
|
...inherit.length > 0 ? { inherit } : {},
|
|
4561
4563
|
...exec ? { exec } : {},
|
|
@@ -9476,7 +9478,9 @@ var init_wasix_process = __esm({
|
|
|
9476
9478
|
});
|
|
9477
9479
|
}
|
|
9478
9480
|
spawn(req, exec = false) {
|
|
9479
|
-
const
|
|
9481
|
+
const ops = req.ops ?? [];
|
|
9482
|
+
const { stdio, inherit, cwd, opened: opened2 } = this.childFds(ops);
|
|
9483
|
+
const moved = ops.some((op) => op.cmd === "chdir" || op.cmd === "fchdir");
|
|
9480
9484
|
try {
|
|
9481
9485
|
const spawn = {
|
|
9482
9486
|
op: "proc-spawn",
|
|
@@ -9484,6 +9488,7 @@ var init_wasix_process = __esm({
|
|
|
9484
9488
|
argv: req.argv.length > 0 ? req.argv : [req.name],
|
|
9485
9489
|
env: req.env ?? this.environment(),
|
|
9486
9490
|
cwd,
|
|
9491
|
+
...moved ? { chdir: true } : {},
|
|
9487
9492
|
stdio,
|
|
9488
9493
|
inherit,
|
|
9489
9494
|
...exec ? { exec } : {},
|
|
@@ -9766,6 +9771,7 @@ function processes(host, call2, inThread) {
|
|
|
9766
9771
|
argv: o.argv,
|
|
9767
9772
|
env: o.env ?? { ...host.o.env },
|
|
9768
9773
|
cwd: o.cwd ?? host.cwd,
|
|
9774
|
+
...o.cwd !== void 0 ? { chdir: true } : {},
|
|
9769
9775
|
stdio,
|
|
9770
9776
|
...inThread ? {} : { restart: true }
|
|
9771
9777
|
};
|
|
@@ -13201,6 +13207,7 @@ function childOps(kernel, io, defaults, sync) {
|
|
|
13201
13207
|
...named,
|
|
13202
13208
|
env: { ...o.env ?? defaults.env },
|
|
13203
13209
|
cwd: o.cwd ?? defaults.cwd,
|
|
13210
|
+
...o.cwd !== void 0 ? { chdir: true } : {},
|
|
13204
13211
|
stdio,
|
|
13205
13212
|
...group,
|
|
13206
13213
|
...death
|
|
@@ -14649,6 +14656,7 @@ function runSync(kernel, d, o) {
|
|
|
14649
14656
|
...named,
|
|
14650
14657
|
env: { ...o.env ?? d.env },
|
|
14651
14658
|
cwd: o.cwd === void 0 ? d.cwd : d.resolve(o.cwd),
|
|
14659
|
+
...o.cwd === void 0 ? {} : { chdir: true },
|
|
14652
14660
|
...group,
|
|
14653
14661
|
stdin: stdioOf(o.stdin),
|
|
14654
14662
|
...input ? { input } : {},
|