@ai-ecoverse/slicc-kernel 1.159.6 → 1.160.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/dist/node.js CHANGED
@@ -3672,7 +3672,7 @@ function satisfies(version, range2) {
3672
3672
  }
3673
3673
 
3674
3674
  // src/version.ts
3675
- var KERNEL_VERSION = true ? "1.159.6" : "0.0.0-dev";
3675
+ var KERNEL_VERSION = true ? "1.160.0" : "0.0.0-dev";
3676
3676
  var OS_RELEASE = "6.0.0-slicc";
3677
3677
  function procVersion() {
3678
3678
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -3052,7 +3052,7 @@ var init_version = __esm({
3052
3052
  "src/version.ts"() {
3053
3053
  "use strict";
3054
3054
  init_captured_globals();
3055
- KERNEL_VERSION = true ? "1.159.6" : "0.0.0-dev";
3055
+ KERNEL_VERSION = true ? "1.160.0" : "0.0.0-dev";
3056
3056
  OS_RELEASE = "6.0.0-slicc";
3057
3057
  }
3058
3058
  });
@@ -18916,9 +18916,12 @@ function scriptRunner(run) {
18916
18916
  };
18917
18917
  }
18918
18918
  function hostExtras(o) {
18919
+ const path = o.modulePath;
18920
+ const module = path === void 0 ? {} : { module: capturedObject.freeze({ path }) };
18919
18921
  return {
18920
18922
  memory: () => measured(o.memory),
18921
- ...o.asyncContext ? { asyncContext: o.asyncContext() } : {}
18923
+ ...o.asyncContext ? { asyncContext: o.asyncContext() } : {},
18924
+ ...module
18922
18925
  };
18923
18926
  }
18924
18927
  function cleanOf(sab) {
@@ -19493,6 +19496,7 @@ async function runJs(init, port2, deps, thread) {
19493
19496
  memory: deps.memory,
19494
19497
  asyncContext: deps.asyncContext,
19495
19498
  runScript: deps.runScript,
19499
+ modulePath: modulePathOf(init.program),
19496
19500
  promiseState: deps.promiseState,
19497
19501
  ...thread?.owned ? { owned: thread.owned } : {},
19498
19502
  held: init.held,
@@ -19538,6 +19542,10 @@ async function runJs(init, port2, deps, thread) {
19538
19542
  if (exitedWith !== void 0) return exitedWith;
19539
19543
  return status2;
19540
19544
  }
19545
+ function modulePathOf(program) {
19546
+ if (program.glue !== "") return void 0;
19547
+ return program.path;
19548
+ }
19541
19549
  var NOT_RUNNABLE;
19542
19550
  var init_js_runtime = __esm({
19543
19551
  "src/process/js/js-runtime.ts"() {