@ai-ecoverse/slicc-kernel 1.136.0 → 1.136.1
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 +1 -1
- package/dist/kernel-worker.js +9 -12
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +9 -12
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
6702
|
+
KERNEL_VERSION = true ? "1.136.1" : "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.
|
|
7489
|
+
var KERNEL_VERSION = true ? "1.136.1" : "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
|
|
@@ -27795,11 +27795,12 @@ var Launcher = class {
|
|
|
27795
27795
|
asked: named
|
|
27796
27796
|
};
|
|
27797
27797
|
}
|
|
27798
|
-
async plan(file, argv, cwd, scope, argv0) {
|
|
27798
|
+
async plan(file, argv, cwd, scope, argv0, catalogOnly = false) {
|
|
27799
27799
|
const found = await this.resolve(file, argv[0] ?? file, cwd, scope);
|
|
27800
27800
|
const named = typeof argv0 === "string" && found && !found.fixed;
|
|
27801
27801
|
const direct = named ? { ...found, argv0 } : found;
|
|
27802
27802
|
if (direct) return { target: direct, args: [...direct.prefix ?? [], ...argv.slice(1)] };
|
|
27803
|
+
if (catalogOnly && !await this.scriptCommand(file, cwd, scope)) return void 0;
|
|
27803
27804
|
const script = await this.interpreted(file, argv, cwd, scope);
|
|
27804
27805
|
return script && { ...script, script: true };
|
|
27805
27806
|
}
|
|
@@ -27838,16 +27839,12 @@ var Launcher = class {
|
|
|
27838
27839
|
}
|
|
27839
27840
|
async planOrSearch(req, ctx) {
|
|
27840
27841
|
const bare = !req.file.includes("/") && !COMMAND2.test(req.file);
|
|
27841
|
-
|
|
27842
|
-
return await this.planOne(req, ctx);
|
|
27843
|
-
} catch (err) {
|
|
27844
|
-
const code = codeOf8(err);
|
|
27845
|
-
const searched = bare && req.search !== false && (code === "ENOENT" || code === "ENOEXEC");
|
|
27846
|
-
if (!searched || await this.commandAt(req.file, ctx.scope)) throw err;
|
|
27842
|
+
if (bare && req.search !== false && !await this.commandAt(req.file, ctx.scope)) {
|
|
27847
27843
|
const found = await this.onPath(req, ctx);
|
|
27848
27844
|
if (found) return found;
|
|
27849
|
-
throw
|
|
27845
|
+
throw new SpawnError("ENOENT");
|
|
27850
27846
|
}
|
|
27847
|
+
return this.planOne(req, ctx, bare && req.search !== false);
|
|
27851
27848
|
}
|
|
27852
27849
|
async onPath(req, ctx) {
|
|
27853
27850
|
const path = req.env.PATH;
|
|
@@ -27866,15 +27863,15 @@ var Launcher = class {
|
|
|
27866
27863
|
if (denied2) throw new SpawnError("EACCES");
|
|
27867
27864
|
return void 0;
|
|
27868
27865
|
}
|
|
27869
|
-
async planOne(req, { ppid, cred, scope }) {
|
|
27866
|
+
async planOne(req, { ppid, cred, scope }, catalogOnly = false) {
|
|
27870
27867
|
const refused3 = (err) => {
|
|
27871
27868
|
throw codeOf8(err) === "EACCES" ? new SpawnError("EACCES") : err;
|
|
27872
27869
|
};
|
|
27873
27870
|
const file = await this.execFile(req.file, req.cwd, this.execGuard(cred, ppid)).catch(refused3);
|
|
27874
|
-
const planned = await this.plan(file, req.argv, req.cwd, scope, req.argv0);
|
|
27871
|
+
const planned = await this.plan(file, req.argv, req.cwd, scope, req.argv0, catalogOnly);
|
|
27875
27872
|
await this.mayExec(cred, { ...req, file, pid: ppid }, planned).catch(refused3);
|
|
27876
27873
|
if (planned) return planned;
|
|
27877
|
-
throw new SpawnError(await this.unrunnable(file, req.cwd, scope));
|
|
27874
|
+
throw new SpawnError(catalogOnly ? "ENOENT" : await this.unrunnable(file, req.cwd, scope));
|
|
27878
27875
|
}
|
|
27879
27876
|
async enterable(g, cwd) {
|
|
27880
27877
|
if (!g) return;
|