@ai-ecoverse/slicc-kernel 1.137.0 → 1.138.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 +3 -2
- package/dist/driver-worker.js +2 -10
- package/dist/driver-worker.js.map +2 -2
- package/dist/kernel-worker.js +21 -6
- package/dist/kernel-worker.js.map +2 -2
- package/dist/meta.js.map +1 -1
- package/dist/node-driver-worker.js +2 -10
- package/dist/node-driver-worker.js.map +2 -2
- package/dist/node-process-worker.js +31 -18
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +21 -6
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +31 -18
- package/dist/process-worker.js.map +2 -2
- package/dist/types/fs/notice.d.ts +1 -0
- package/dist/types/fs/opfs.d.ts +1 -0
- package/dist/types/process/wasi/wasi-host.d.ts +1 -0
- package/dist/types/process/wasi/wasi-poll.d.ts +1 -0
- package/dist/types/process/wasi/wasi-signals.d.ts +1 -0
- package/package.json +3 -3
package/dist/node.js
CHANGED
|
@@ -3762,7 +3762,7 @@ function noticeOf(data) {
|
|
|
3762
3762
|
if (Array.isArray(data)) return { paths: data.filter((p) => typeof p === "string"), trees: [] };
|
|
3763
3763
|
const notice = data ?? {};
|
|
3764
3764
|
const strings = (list) => Array.isArray(list) ? list.filter((p) => typeof p === "string") : [];
|
|
3765
|
-
return { paths: strings(notice.paths), trees: strings(notice.trees) };
|
|
3765
|
+
return { paths: strings(notice.paths), trees: strings(notice.trees), outside: true };
|
|
3766
3766
|
}
|
|
3767
3767
|
|
|
3768
3768
|
// src/fs/integrity.ts
|
|
@@ -4581,9 +4581,11 @@ var OpfsFs = class {
|
|
|
4581
4581
|
for (const path of [...c.paths, ...c.trees]) this.forget(path);
|
|
4582
4582
|
});
|
|
4583
4583
|
this.channel.onmessage = ({ data }) => {
|
|
4584
|
-
const { paths, trees } = noticeOf(data);
|
|
4584
|
+
const { paths, trees, outside } = noticeOf(data);
|
|
4585
4585
|
for (const path of [...paths, ...trees]) this.forget(normalizePath(path));
|
|
4586
|
-
remote?.emit({ paths, trees });
|
|
4586
|
+
const tell = () => remote?.emit({ paths, trees });
|
|
4587
|
+
if (!outside) tell();
|
|
4588
|
+
else void this.noticed(paths.map(normalizePath), Date.now()).finally(tell);
|
|
4587
4589
|
};
|
|
4588
4590
|
this.channel.unref?.();
|
|
4589
4591
|
}
|
|
@@ -5042,6 +5044,14 @@ var OpfsFs = class {
|
|
|
5042
5044
|
this.fileTimes.set(target, Date.now());
|
|
5043
5045
|
this.scheduleFileTimes();
|
|
5044
5046
|
}
|
|
5047
|
+
async noticed(paths, at) {
|
|
5048
|
+
for (const path of new Set(paths)) {
|
|
5049
|
+
const st = await this.lstat(path).catch(() => void 0);
|
|
5050
|
+
if (!st?.isFile || st.mtime.getTime() >= at) continue;
|
|
5051
|
+
this.fileTimes.set(path, Math.max(at, this.fileTimes.get(path) ?? 0));
|
|
5052
|
+
}
|
|
5053
|
+
this.scheduleFileTimes();
|
|
5054
|
+
}
|
|
5045
5055
|
scheduleFileTimes() {
|
|
5046
5056
|
if (this.flushing.file || this.fileTimes.size === 0) return;
|
|
5047
5057
|
this.flushing.file = setTimeout(() => {
|
|
@@ -7503,7 +7513,7 @@ function satisfies(version, range2) {
|
|
|
7503
7513
|
}
|
|
7504
7514
|
|
|
7505
7515
|
// src/version.ts
|
|
7506
|
-
var KERNEL_VERSION = true ? "1.
|
|
7516
|
+
var KERNEL_VERSION = true ? "1.138.1" : "0.0.0-dev";
|
|
7507
7517
|
var OS_RELEASE = "6.0.0-slicc";
|
|
7508
7518
|
function procVersion() {
|
|
7509
7519
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|
|
@@ -15716,10 +15726,15 @@ var TlsEngine = class {
|
|
|
15716
15726
|
const m = this.clientModule();
|
|
15717
15727
|
if (servername.includes("\0")) throw new TlsError(-3, "tls engine: a server name has no NUL");
|
|
15718
15728
|
const wire = alpnWire(alpn);
|
|
15719
|
-
const
|
|
15729
|
+
const bytes = new TextEncoder().encode(servername);
|
|
15730
|
+
const name2 = this.put(bytes);
|
|
15720
15731
|
try {
|
|
15721
15732
|
const at = store?.ptr ?? 0;
|
|
15722
|
-
const
|
|
15733
|
+
const named = m._tls_client_new_name;
|
|
15734
|
+
const ptr = this.withBytes(
|
|
15735
|
+
wire,
|
|
15736
|
+
(p) => named ? named(at, name2, bytes.length, p, wire.length, flags2) : m._tls_client_new(at, name2, p, wire.length, flags2)
|
|
15737
|
+
);
|
|
15723
15738
|
if (!ptr) throw this.error(m._tls_last_error(), "tls client");
|
|
15724
15739
|
return new TlsSession(this, m, ptr);
|
|
15725
15740
|
} finally {
|