@ai-ecoverse/slicc-kernel 1.147.0 → 1.147.3
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 +4 -2
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +26 -8
- package/dist/node-process-worker.js.map +3 -3
- package/dist/node.js +4 -2
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +26 -8
- package/dist/process-worker.js.map +3 -3
- package/dist/types/fs/watch.d.ts +1 -0
- package/dist/types/process/wasi/wasix-linker.d.ts +1 -0
- package/package.json +2 -2
|
@@ -7157,7 +7157,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
7157
7157
|
var init_version = __esm({
|
|
7158
7158
|
"src/version.ts"() {
|
|
7159
7159
|
"use strict";
|
|
7160
|
-
KERNEL_VERSION = true ? "1.147.
|
|
7160
|
+
KERNEL_VERSION = true ? "1.147.3" : "0.0.0-dev";
|
|
7161
7161
|
OS_RELEASE = "6.0.0-slicc";
|
|
7162
7162
|
}
|
|
7163
7163
|
});
|
|
@@ -11327,13 +11327,15 @@ function directMiss(err, path) {
|
|
|
11327
11327
|
return !path.split("/").some((part) => part === "." || part === "..");
|
|
11328
11328
|
}
|
|
11329
11329
|
function same(fs, path, id) {
|
|
11330
|
+
let st;
|
|
11330
11331
|
try {
|
|
11331
|
-
|
|
11332
|
-
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
return false;
|
|
11332
|
+
st = fs.stat(path);
|
|
11333
|
+
} catch (err) {
|
|
11334
|
+
if (GONE2.has(err?.code ?? "")) return false;
|
|
11335
|
+
throw err;
|
|
11336
11336
|
}
|
|
11337
|
+
const now = fileIdentity(st.ino, st.mtimeMs);
|
|
11338
|
+
return now === void 0 || now === id;
|
|
11337
11339
|
}
|
|
11338
11340
|
function current(fs, tree, q) {
|
|
11339
11341
|
const to = tree.escapeTo(q);
|
|
@@ -11354,7 +11356,11 @@ function shownLink(fs, tree, q) {
|
|
|
11354
11356
|
const target = tree.readlink(q);
|
|
11355
11357
|
const to = tree.linkTo(q);
|
|
11356
11358
|
if (!to) return target;
|
|
11357
|
-
|
|
11359
|
+
try {
|
|
11360
|
+
return same(fs, to.target, to.id) ? target : `${target} (deleted)`;
|
|
11361
|
+
} catch {
|
|
11362
|
+
return target;
|
|
11363
|
+
}
|
|
11358
11364
|
}
|
|
11359
11365
|
function routing(fs, tree, toProc, shadowing) {
|
|
11360
11366
|
return (p, inner, own, follow3 = true, outside) => {
|
|
@@ -11516,7 +11522,7 @@ function procfsBridge(fs, tree) {
|
|
|
11516
11522
|
get: (target, key, receiver) => key in over ? over[key] : Reflect.get(target, key, receiver)
|
|
11517
11523
|
});
|
|
11518
11524
|
}
|
|
11519
|
-
var DIR_MODE3, FILE_MODE2, LINK_MODE3, PID_NAMES, SYSTEM_NAMES, ProcTree, FOLLOWING, NOT_FOLLOWING, MAX_HOPS2;
|
|
11525
|
+
var DIR_MODE3, FILE_MODE2, LINK_MODE3, PID_NAMES, SYSTEM_NAMES, ProcTree, FOLLOWING, NOT_FOLLOWING, MAX_HOPS2, GONE2;
|
|
11520
11526
|
var init_wasi_procfs = __esm({
|
|
11521
11527
|
"src/process/wasi/wasi-procfs.ts"() {
|
|
11522
11528
|
"use strict";
|
|
@@ -11700,6 +11706,7 @@ var init_wasi_procfs = __esm({
|
|
|
11700
11706
|
FOLLOWING = ["writeFile", "chmod", "utimes", "pwrite", "truncate"];
|
|
11701
11707
|
NOT_FOLLOWING = ["mkdir", "rm", "unlink", "rmdir", "lutimes", "create", "mkfifo"];
|
|
11702
11708
|
MAX_HOPS2 = 40;
|
|
11709
|
+
GONE2 = /* @__PURE__ */ new Set(["ENOENT", "ENOTDIR"]);
|
|
11703
11710
|
}
|
|
11704
11711
|
});
|
|
11705
11712
|
|
|
@@ -17601,9 +17608,20 @@ var init_wasix_linker = __esm({
|
|
|
17601
17608
|
this.publisher?.({ kind: "slot", index: index3, handle, name: name2 });
|
|
17602
17609
|
return index3;
|
|
17603
17610
|
}
|
|
17611
|
+
heapAlloc(bytes) {
|
|
17612
|
+
const exports = this.main?.exports;
|
|
17613
|
+
const calloc = exports?.calloc;
|
|
17614
|
+
if (typeof calloc !== "function") return void 0;
|
|
17615
|
+
const state = exports?.asyncify_get_state;
|
|
17616
|
+
if (typeof state === "function" && state() !== 0) return void 0;
|
|
17617
|
+
const at = calloc(1, bytes) >>> 0;
|
|
17618
|
+
return at === 0 ? void 0 : at;
|
|
17619
|
+
}
|
|
17604
17620
|
allocate(size, alignment) {
|
|
17605
17621
|
if (size === 0) return 0;
|
|
17606
17622
|
const to = Math.max(alignment, 16);
|
|
17623
|
+
const heap = this.heapAlloc(size + to - 16);
|
|
17624
|
+
if (heap !== void 0) return align(heap, to);
|
|
17607
17625
|
const pages2 = Math.ceil((size + (to > PAGE2 ? to : 0)) / PAGE2);
|
|
17608
17626
|
return align(this.memory.grow(pages2) * PAGE2, to);
|
|
17609
17627
|
}
|