@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
package/dist/process-worker.js
CHANGED
|
@@ -2964,7 +2964,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
2964
2964
|
var init_version = __esm({
|
|
2965
2965
|
"src/version.ts"() {
|
|
2966
2966
|
"use strict";
|
|
2967
|
-
KERNEL_VERSION = true ? "1.
|
|
2967
|
+
KERNEL_VERSION = true ? "1.155.0" : "0.0.0-dev";
|
|
2968
2968
|
OS_RELEASE = "6.0.0-slicc";
|
|
2969
2969
|
}
|
|
2970
2970
|
});
|
|
@@ -16977,6 +16977,12 @@ async function contextOf(kernel, io, options) {
|
|
|
16977
16977
|
function capOf(options, tls) {
|
|
16978
16978
|
return tls ? Math.max(1, Math.min(options.backlog ?? 128, HANDSHAKES_MAX)) : 0;
|
|
16979
16979
|
}
|
|
16980
|
+
function resetOf(kernel, fd, closed, close) {
|
|
16981
|
+
return async () => {
|
|
16982
|
+
if (!closed()) await kernel.call({ op: "sock-reset", fd });
|
|
16983
|
+
await close();
|
|
16984
|
+
};
|
|
16985
|
+
}
|
|
16980
16986
|
function netOps(kernel, io, sync) {
|
|
16981
16987
|
const name2 = async (fd, peer) => addressOf(await kernel.json({ op: "sock-name", fd, peer }));
|
|
16982
16988
|
const connection = async (fd) => {
|
|
@@ -17008,7 +17014,8 @@ function netOps(kernel, io, sync) {
|
|
|
17008
17014
|
close: async () => void await shut(SHUT_WR),
|
|
17009
17015
|
abort: () => close()
|
|
17010
17016
|
});
|
|
17011
|
-
|
|
17017
|
+
const reset = resetOf(kernel, fd, () => closed !== void 0, close);
|
|
17018
|
+
return { fd, local: local3, remote, readable: readable3, writable: writable2, close, reset };
|
|
17012
17019
|
};
|
|
17013
17020
|
const resolve = async (host, signal) => {
|
|
17014
17021
|
if (IPV4.test(host)) return host;
|