@ai-ecoverse/slicc-kernel 1.136.4 → 1.136.6
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 +2 -2
- package/dist/kernel-worker.js +31 -4
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-driver-worker.js.map +1 -1
- package/dist/node-process-worker.js +25 -2
- package/dist/node-process-worker.js.map +3 -3
- package/dist/node.js +31 -4
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +1 -1
- package/dist/types/commands.d.ts +5 -0
- package/dist/types/launcher.d.ts +2 -0
- package/package.json +3 -3
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.
|
|
7489
|
+
var KERNEL_VERSION = true ? "1.136.6" : "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
|
|
@@ -15674,6 +15674,7 @@ var TlsEngine = class {
|
|
|
15674
15674
|
}
|
|
15675
15675
|
clientSession(store, servername, alpn, flags2) {
|
|
15676
15676
|
const m = this.clientModule();
|
|
15677
|
+
if (servername.includes("\0")) throw new TlsError(-3, "tls engine: a server name has no NUL");
|
|
15677
15678
|
const wire = alpnWire(alpn);
|
|
15678
15679
|
const name2 = this.put(new TextEncoder().encode(servername));
|
|
15679
15680
|
try {
|
|
@@ -26760,7 +26761,8 @@ function refusing(command) {
|
|
|
26760
26761
|
argv0: command.name,
|
|
26761
26762
|
args: [`${command.name}: ${command.refused}`],
|
|
26762
26763
|
refused: command.refused,
|
|
26763
|
-
shows: command.script ?? command.wasm
|
|
26764
|
+
shows: command.script ?? command.wasm,
|
|
26765
|
+
origin: { abi: command.abi, glue: command.glue, wasm: command.wasm }
|
|
26764
26766
|
};
|
|
26765
26767
|
}
|
|
26766
26768
|
|
|
@@ -27848,7 +27850,7 @@ var Launcher = class {
|
|
|
27848
27850
|
const byPath = !COMMAND2.test(path) && (await this.commands()).get(linked2)?.argv0Path === true;
|
|
27849
27851
|
return target && byPath ? { ...target, argv0: path } : target;
|
|
27850
27852
|
}
|
|
27851
|
-
const own = await this.
|
|
27853
|
+
const own = await this.ownOrRefused(glue, baseName2(file), scope);
|
|
27852
27854
|
if (own) return own.script ? void 0 : { ...targetOf(own), ...asked };
|
|
27853
27855
|
const head = await this.head(glue);
|
|
27854
27856
|
if (!head) return void 0;
|
|
@@ -27872,6 +27874,31 @@ var Launcher = class {
|
|
|
27872
27874
|
if (!owner) return void 0;
|
|
27873
27875
|
return { ...targetOf(owner), ...asked, ...owner.glue === glue ? {} : { copy: glue } };
|
|
27874
27876
|
}
|
|
27877
|
+
async ownOrRefused(path, name2, scope) {
|
|
27878
|
+
return await this.commandAt(path, scope) ?? await this.refusedAt(path, name2, scope);
|
|
27879
|
+
}
|
|
27880
|
+
async refusedAt(path, name2, scope) {
|
|
27881
|
+
const refused3 = [...(await this.commands(scope)).values()].filter((c) => c.origin);
|
|
27882
|
+
if (refused3.length === 0 || !await this.base.exists(path)) return void 0;
|
|
27883
|
+
const real = await physicalPathAsync(this.base, path).catch(() => path);
|
|
27884
|
+
const at = async (c, which) => {
|
|
27885
|
+
const own = c.origin[which];
|
|
27886
|
+
return own === path || await physicalPathAsync(this.base, own).catch(() => own) === real;
|
|
27887
|
+
};
|
|
27888
|
+
const owners = [];
|
|
27889
|
+
for (const c of refused3) {
|
|
27890
|
+
if (await at(c, "glue") || await at(c, "wasm")) owners.push(c);
|
|
27891
|
+
}
|
|
27892
|
+
if (owners.length > 0) return owners.find((c) => c.name === name2) ?? owners[0];
|
|
27893
|
+
const dir = real.slice(0, real.lastIndexOf("/"));
|
|
27894
|
+
for (const c of refused3) {
|
|
27895
|
+
const origin = c.origin;
|
|
27896
|
+
if (origin.abi !== "emscripten" || c.name !== name2) continue;
|
|
27897
|
+
const own = await physicalPathAsync(this.base, origin.glue).catch(() => origin.glue);
|
|
27898
|
+
if (own.slice(0, own.lastIndexOf("/")) === dir && await this.sameFile(real, own)) return c;
|
|
27899
|
+
}
|
|
27900
|
+
return void 0;
|
|
27901
|
+
}
|
|
27875
27902
|
async glueOwner(glue, name2, scope) {
|
|
27876
27903
|
const commands = [...(await this.commands(scope)).values()];
|
|
27877
27904
|
const owners = commands.filter((c) => c.abi === "emscripten" && !c.script && c.glue === glue);
|
|
@@ -28334,7 +28361,7 @@ var Launcher = class {
|
|
|
28334
28361
|
this.text(target.glue, caller, asked),
|
|
28335
28362
|
this.module(target.wasm, caller, asked && modulePath(asked))
|
|
28336
28363
|
]);
|
|
28337
|
-
return { glue, module: module2 };
|
|
28364
|
+
return { glue, module: module2, path: target.glue };
|
|
28338
28365
|
}
|
|
28339
28366
|
const { module, memory, foreign } = await this.module(target.wasm, caller, asked);
|
|
28340
28367
|
const names2 = env.SLICC_WASM_BACKTRACE === "1" ? await this.names(target.wasm, module) : void 0;
|