@ai-ecoverse/slicc-kernel 1.154.2 → 1.155.0
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/driver-worker.js +5 -2
- package/dist/driver-worker.js.map +2 -2
- package/dist/index.js +5 -2
- package/dist/index.js.map +2 -2
- package/dist/kernel-worker.js +69 -7
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-driver-worker.js +5 -2
- package/dist/node-driver-worker.js.map +2 -2
- package/dist/node-process-worker.js +9 -2
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +74 -9
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +9 -2
- package/dist/process-worker.js.map +2 -2
- package/dist/types/embedder-relay.d.ts +3 -0
- package/dist/types/kernel/socket-syscalls.d.ts +3 -0
- package/dist/types/kernel/socket.d.ts +6 -0
- package/dist/types/process/js/js-net.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7245,7 +7245,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
7245
7245
|
var init_version = __esm({
|
|
7246
7246
|
"src/version.ts"() {
|
|
7247
7247
|
"use strict";
|
|
7248
|
-
KERNEL_VERSION = true ? "1.
|
|
7248
|
+
KERNEL_VERSION = true ? "1.155.0" : "0.0.0-dev";
|
|
7249
7249
|
OS_RELEASE = "6.0.0-slicc";
|
|
7250
7250
|
}
|
|
7251
7251
|
});
|
|
@@ -8369,6 +8369,12 @@ async function contextOf(kernel, io, options) {
|
|
|
8369
8369
|
function capOf(options, tls) {
|
|
8370
8370
|
return tls ? Math.max(1, Math.min(options.backlog ?? 128, HANDSHAKES_MAX)) : 0;
|
|
8371
8371
|
}
|
|
8372
|
+
function resetOf(kernel, fd, closed, close) {
|
|
8373
|
+
return async () => {
|
|
8374
|
+
if (!closed()) await kernel.call({ op: "sock-reset", fd });
|
|
8375
|
+
await close();
|
|
8376
|
+
};
|
|
8377
|
+
}
|
|
8372
8378
|
function netOps(kernel, io, sync) {
|
|
8373
8379
|
const name2 = async (fd, peer) => addressOf(await kernel.json({ op: "sock-name", fd, peer }));
|
|
8374
8380
|
const connection = async (fd) => {
|
|
@@ -8400,7 +8406,8 @@ function netOps(kernel, io, sync) {
|
|
|
8400
8406
|
close: async () => void await shut(SHUT_WR),
|
|
8401
8407
|
abort: () => close()
|
|
8402
8408
|
});
|
|
8403
|
-
|
|
8409
|
+
const reset = resetOf(kernel, fd, () => closed !== void 0, close);
|
|
8410
|
+
return { fd, local: local3, remote, readable: readable3, writable: writable2, close, reset };
|
|
8404
8411
|
};
|
|
8405
8412
|
const resolve2 = async (host, signal) => {
|
|
8406
8413
|
if (IPV4.test(host)) return host;
|