@ai-ecoverse/slicc-kernel 1.29.2 → 1.30.0
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 +26 -3
- package/dist/kernel-worker.js +9 -5
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +37 -21
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +9 -5
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +37 -21
- package/dist/process-worker.js.map +2 -2
- package/package.json +1 -1
package/dist/node.js
CHANGED
|
@@ -3082,6 +3082,7 @@ function commandOf(pkg, name2, raw, packageAbi, shared) {
|
|
|
3082
3082
|
wasm,
|
|
3083
3083
|
argv0,
|
|
3084
3084
|
...raw.argv0Path === true ? { argv0Path: true } : {},
|
|
3085
|
+
...abi === "wasi" && raw.preopenRoot === true ? { preopenRoot: true } : {},
|
|
3085
3086
|
...args ? { args } : {},
|
|
3086
3087
|
...withEnv,
|
|
3087
3088
|
...imports ? { imports } : {}
|
|
@@ -7717,9 +7718,10 @@ var WasmProcess = class {
|
|
|
7717
7718
|
json: this.fds.numbers().map((fd) => ({ fd, ...this.fdInfo(fd) }))
|
|
7718
7719
|
};
|
|
7719
7720
|
case "fd-meta": {
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7721
|
+
if (!this.fds.get(req.fd).file.held) throw new KernelError("EBADF");
|
|
7722
|
+
const cloexec = this.fds.closesOnExec(req.fd);
|
|
7723
|
+
this.fds.installAt(req.fd, heldFile(req.meta));
|
|
7724
|
+
if (cloexec) this.fds.setCloseOnExec(req.fd);
|
|
7723
7725
|
return { ok: true, kind: "void" };
|
|
7724
7726
|
}
|
|
7725
7727
|
case "fd-setfl":
|
|
@@ -9620,7 +9622,8 @@ function targetOf(command) {
|
|
|
9620
9622
|
...command.args ? { prefix: command.args } : {},
|
|
9621
9623
|
...command.env ? { env: command.env } : {},
|
|
9622
9624
|
...command.unset ? { unset: command.unset } : {},
|
|
9623
|
-
...command.imports ? { imports: command.imports } : {}
|
|
9625
|
+
...command.imports ? { imports: command.imports } : {},
|
|
9626
|
+
...command.preopenRoot ? { preopenRoot: true } : {}
|
|
9624
9627
|
};
|
|
9625
9628
|
}
|
|
9626
9629
|
function childHandle(handle) {
|
|
@@ -9856,7 +9859,8 @@ var Launcher = class {
|
|
|
9856
9859
|
...memory ? { memory } : {},
|
|
9857
9860
|
foreign,
|
|
9858
9861
|
...names ? { names } : {},
|
|
9859
|
-
...imports !== void 0 ? { imports } : {}
|
|
9862
|
+
...imports !== void 0 ? { imports } : {},
|
|
9863
|
+
...target.preopenRoot ? { preopenRoot: true } : {}
|
|
9860
9864
|
};
|
|
9861
9865
|
}
|
|
9862
9866
|
async launch(planned, req) {
|