@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.
@@ -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.186.1" : "0.0.0-dev";
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
  }