@ai-ecoverse/slicc-kernel 1.136.4 → 1.136.5

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.
@@ -6699,7 +6699,7 @@ var KERNEL_VERSION, OS_RELEASE;
6699
6699
  var init_version = __esm({
6700
6700
  "src/version.ts"() {
6701
6701
  "use strict";
6702
- KERNEL_VERSION = true ? "1.136.4" : "0.0.0-dev";
6702
+ KERNEL_VERSION = true ? "1.136.5" : "0.0.0-dev";
6703
6703
  OS_RELEASE = "6.0.0-slicc";
6704
6704
  }
6705
6705
  });
package/dist/node.js CHANGED
@@ -7486,7 +7486,7 @@ function satisfies(version, range2) {
7486
7486
  }
7487
7487
 
7488
7488
  // src/version.ts
7489
- var KERNEL_VERSION = true ? "1.136.4" : "0.0.0-dev";
7489
+ var KERNEL_VERSION = true ? "1.136.5" : "0.0.0-dev";
7490
7490
  var OS_RELEASE = "6.0.0-slicc";
7491
7491
  function procVersion() {
7492
7492
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -26760,7 +26760,8 @@ function refusing(command) {
26760
26760
  argv0: command.name,
26761
26761
  args: [`${command.name}: ${command.refused}`],
26762
26762
  refused: command.refused,
26763
- shows: command.script ?? command.wasm
26763
+ shows: command.script ?? command.wasm,
26764
+ origin: { abi: command.abi, glue: command.glue, wasm: command.wasm }
26764
26765
  };
26765
26766
  }
26766
26767
 
@@ -27848,7 +27849,7 @@ var Launcher = class {
27848
27849
  const byPath = !COMMAND2.test(path) && (await this.commands()).get(linked2)?.argv0Path === true;
27849
27850
  return target && byPath ? { ...target, argv0: path } : target;
27850
27851
  }
27851
- const own = await this.commandAt(glue, scope);
27852
+ const own = await this.ownOrRefused(glue, baseName2(file), scope);
27852
27853
  if (own) return own.script ? void 0 : { ...targetOf(own), ...asked };
27853
27854
  const head = await this.head(glue);
27854
27855
  if (!head) return void 0;
@@ -27872,6 +27873,31 @@ var Launcher = class {
27872
27873
  if (!owner) return void 0;
27873
27874
  return { ...targetOf(owner), ...asked, ...owner.glue === glue ? {} : { copy: glue } };
27874
27875
  }
27876
+ async ownOrRefused(path, name2, scope) {
27877
+ return await this.commandAt(path, scope) ?? await this.refusedAt(path, name2, scope);
27878
+ }
27879
+ async refusedAt(path, name2, scope) {
27880
+ const refused3 = [...(await this.commands(scope)).values()].filter((c) => c.origin);
27881
+ if (refused3.length === 0 || !await this.base.exists(path)) return void 0;
27882
+ const real = await physicalPathAsync(this.base, path).catch(() => path);
27883
+ const at = async (c, which) => {
27884
+ const own = c.origin[which];
27885
+ return own === path || await physicalPathAsync(this.base, own).catch(() => own) === real;
27886
+ };
27887
+ const owners = [];
27888
+ for (const c of refused3) {
27889
+ if (await at(c, "glue") || await at(c, "wasm")) owners.push(c);
27890
+ }
27891
+ if (owners.length > 0) return owners.find((c) => c.name === name2) ?? owners[0];
27892
+ const dir = real.slice(0, real.lastIndexOf("/"));
27893
+ for (const c of refused3) {
27894
+ const origin = c.origin;
27895
+ if (origin.abi !== "emscripten" || c.name !== name2) continue;
27896
+ const own = await physicalPathAsync(this.base, origin.glue).catch(() => origin.glue);
27897
+ if (own.slice(0, own.lastIndexOf("/")) === dir && await this.sameFile(real, own)) return c;
27898
+ }
27899
+ return void 0;
27900
+ }
27875
27901
  async glueOwner(glue, name2, scope) {
27876
27902
  const commands = [...(await this.commands(scope)).values()];
27877
27903
  const owners = commands.filter((c) => c.abi === "emscripten" && !c.script && c.glue === glue);