@ai-ecoverse/slicc-kernel 1.186.1 → 1.187.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 +9 -1
- package/dist/async-process.js +23 -8
- package/dist/async-process.js.map +2 -2
- package/dist/cloudflare-sources.js +2 -2
- package/dist/cloudflare.js +53 -34
- package/dist/cloudflare.js.map +3 -3
- package/dist/kernel-worker.js +1 -1
- package/dist/node-process-worker.cjs +4 -4
- package/dist/node-process-worker.cjs.map +2 -2
- package/dist/node-process-worker.js +4 -4
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +10116 -10072
- package/dist/node.js.map +4 -4
- package/dist/process-worker.js +4 -4
- package/dist/process-worker.js.map +2 -2
- package/dist/types/async/node-host.d.ts +1 -0
- package/dist/types/cloudflare/loader.d.ts +4 -2
- package/dist/types/process/wasi/wasi-imports.d.ts +111 -0
- package/dist/types/process/wasi/wasi-threads.d.ts +23 -0
- package/dist/types/process/wasi/wasix-process.d.ts +39 -0
- package/package.json +1 -1
package/dist/process-worker.js
CHANGED
|
@@ -3180,7 +3180,7 @@ var init_version = __esm({
|
|
|
3180
3180
|
"src/version.ts"() {
|
|
3181
3181
|
"use strict";
|
|
3182
3182
|
init_captured_globals();
|
|
3183
|
-
KERNEL_VERSION = true ? "1.
|
|
3183
|
+
KERNEL_VERSION = true ? "1.187.0" : "0.0.0-dev";
|
|
3184
3184
|
OS_RELEASE = "6.0.0-slicc";
|
|
3185
3185
|
}
|
|
3186
3186
|
});
|
|
@@ -16611,7 +16611,7 @@ async function runWasiProcess(init, port2, given = {}) {
|
|
|
16611
16611
|
if (!host.fds.isShared) host.fds.share(threads.ids, false);
|
|
16612
16612
|
};
|
|
16613
16613
|
}
|
|
16614
|
-
const program = await programImports(init.program, host, transport, MAIN_TID);
|
|
16614
|
+
const program = await programImports(init.program, host, transport, MAIN_TID, given.imports);
|
|
16615
16615
|
const { instance, driver, linkedStack } = await instantiate(host, module, memory, threads, {
|
|
16616
16616
|
...fork ? { forked: fork } : {},
|
|
16617
16617
|
stats,
|
|
@@ -16685,9 +16685,9 @@ function programNames(host, program, warned) {
|
|
|
16685
16685
|
warn: (line) => warned.push(line)
|
|
16686
16686
|
});
|
|
16687
16687
|
}
|
|
16688
|
-
async function programImports(program, host, transport, tid) {
|
|
16688
|
+
async function programImports(program, host, transport, tid, given) {
|
|
16689
16689
|
if (program.imports === void 0) return void 0;
|
|
16690
|
-
const create = await loadImports(program.imports);
|
|
16690
|
+
const create = given ?? await loadImports(program.imports);
|
|
16691
16691
|
const raw = (req) => transport.call(req, capturedNumber.POSITIVE_INFINITY, req.op);
|
|
16692
16692
|
return (memory, instance) => create(importsContext({ host, raw, tid, memory, instance }));
|
|
16693
16693
|
}
|