@ai-ecoverse/slicc-kernel 1.168.1 → 1.170.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 +16 -27
- package/dist/driver-worker.js +4 -2
- package/dist/driver-worker.js.map +2 -2
- package/dist/index.js +48 -228
- package/dist/index.js.map +4 -4
- package/dist/kernel-worker.js +12 -7
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-driver-worker.js +4 -2
- package/dist/node-driver-worker.js.map +2 -2
- package/dist/node-process-worker.cjs +4 -3
- package/dist/node-process-worker.cjs.map +2 -2
- package/dist/node-process-worker.js +4 -3
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +15 -9
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +4 -3
- package/dist/process-worker.js.map +2 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/kernel/net/remote-transport.d.ts +3 -1
- package/dist/types/process/js/js-kernel.d.ts +1 -0
- package/dist/types/realm/sync-fs-wire.d.ts +1 -0
- package/package.json +2 -3
- package/dist/types/local-proxy-transport.d.ts +0 -39
package/dist/kernel-worker.js
CHANGED
|
@@ -7314,13 +7314,14 @@ function serveTransport(peer, transport, { closeWaitMs = CLOSE_WAIT_MS2 } = {})
|
|
|
7314
7314
|
const open2 = /* @__PURE__ */ new Map();
|
|
7315
7315
|
const fail2 = (nid, e) => {
|
|
7316
7316
|
open2.delete(nid);
|
|
7317
|
-
const { status, code } = e;
|
|
7317
|
+
const { status, code, detail } = e;
|
|
7318
7318
|
peer.postMessage({
|
|
7319
7319
|
net: "error",
|
|
7320
7320
|
nid,
|
|
7321
7321
|
message: e instanceof Error ? e.message : String(e),
|
|
7322
7322
|
...typeof status === "number" ? { status } : {},
|
|
7323
|
-
...typeof code === "string" ? { code } : {}
|
|
7323
|
+
...typeof code === "string" ? { code } : {},
|
|
7324
|
+
...detail === "transport" ? { detail } : {}
|
|
7324
7325
|
});
|
|
7325
7326
|
};
|
|
7326
7327
|
const uploads = uploadsFor(peer);
|
|
@@ -8497,7 +8498,7 @@ function satisfies(version, range2) {
|
|
|
8497
8498
|
}
|
|
8498
8499
|
|
|
8499
8500
|
// src/version.ts
|
|
8500
|
-
var KERNEL_VERSION = true ? "1.
|
|
8501
|
+
var KERNEL_VERSION = true ? "1.170.0" : "0.0.0-dev";
|
|
8501
8502
|
var OS_RELEASE = "6.0.0-slicc";
|
|
8502
8503
|
function procVersion() {
|
|
8503
8504
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|
|
@@ -15719,7 +15720,8 @@ function encodeSabResult(result) {
|
|
|
15719
15720
|
errno: result.errno,
|
|
15720
15721
|
message: result.message,
|
|
15721
15722
|
...result.direct ? { direct: true } : {},
|
|
15722
|
-
...result.dev !== void 0 ? { dev: result.dev } : {}
|
|
15723
|
+
...result.dev !== void 0 ? { dev: result.dev } : {},
|
|
15724
|
+
...result.detail === "transport" ? { detail: result.detail } : {}
|
|
15723
15725
|
})
|
|
15724
15726
|
)
|
|
15725
15727
|
};
|
|
@@ -19187,7 +19189,8 @@ var HttpHandles = class {
|
|
|
19187
19189
|
if (text === NO_TRANSPORT || typeof status !== "number" || status === 502) {
|
|
19188
19190
|
const code = codeOf2(e);
|
|
19189
19191
|
const errno3 = text === NO_TRANSPORT ? "ENETUNREACH" : code !== "EIO" ? code : "ECONNREFUSED";
|
|
19190
|
-
|
|
19192
|
+
const failed3 = e.detail === "transport";
|
|
19193
|
+
return { ok: false, errno: errno3, message: text, ...failed3 ? { detail: "transport" } : {} };
|
|
19191
19194
|
}
|
|
19192
19195
|
entry.body = once(new TextEncoder().encode(text))[Symbol.asyncIterator]();
|
|
19193
19196
|
return this.headOf(handle, req.url, {
|
|
@@ -34414,10 +34417,12 @@ function integrityAsker(port) {
|
|
|
34414
34417
|
var TransportError = class extends Error {
|
|
34415
34418
|
status;
|
|
34416
34419
|
code;
|
|
34417
|
-
|
|
34420
|
+
detail;
|
|
34421
|
+
constructor(message3, status, code, detail) {
|
|
34418
34422
|
super(message3);
|
|
34419
34423
|
this.status = status;
|
|
34420
34424
|
this.code = code;
|
|
34425
|
+
this.detail = detail === "transport" ? detail : void 0;
|
|
34421
34426
|
}
|
|
34422
34427
|
};
|
|
34423
34428
|
var RemoteTransport = class {
|
|
@@ -34443,7 +34448,7 @@ var RemoteTransport = class {
|
|
|
34443
34448
|
if (!waiter) return;
|
|
34444
34449
|
this.waiting.delete(reply.nid);
|
|
34445
34450
|
if (reply.net === "error") {
|
|
34446
|
-
waiter.reject(new TransportError(reply.message, reply.status, reply.code));
|
|
34451
|
+
waiter.reject(new TransportError(reply.message, reply.status, reply.code, reply.detail));
|
|
34447
34452
|
} else waiter.resolve(reply);
|
|
34448
34453
|
}
|
|
34449
34454
|
toSocket(reply, socket) {
|