@ai-ecoverse/slicc-kernel 1.140.6 → 1.141.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/dist/kernel-worker.js +15 -6
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +15 -6
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +1 -1
- package/dist/types/kernel/net/sealed-conn.d.ts +1 -0
- package/dist/types/kernel/net/sealed-pg.d.ts +1 -1
- package/dist/types/kernel/net/tls-uplink.d.ts +13 -0
- package/package.json +1 -1
|
@@ -6721,7 +6721,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
6721
6721
|
var init_version = __esm({
|
|
6722
6722
|
"src/version.ts"() {
|
|
6723
6723
|
"use strict";
|
|
6724
|
-
KERNEL_VERSION = true ? "1.
|
|
6724
|
+
KERNEL_VERSION = true ? "1.141.0" : "0.0.0-dev";
|
|
6725
6725
|
OS_RELEASE = "6.0.0-slicc";
|
|
6726
6726
|
}
|
|
6727
6727
|
});
|
package/dist/node.js
CHANGED
|
@@ -7514,7 +7514,7 @@ function satisfies(version, range2) {
|
|
|
7514
7514
|
}
|
|
7515
7515
|
|
|
7516
7516
|
// src/version.ts
|
|
7517
|
-
var KERNEL_VERSION = true ? "1.
|
|
7517
|
+
var KERNEL_VERSION = true ? "1.141.0" : "0.0.0-dev";
|
|
7518
7518
|
var OS_RELEASE = "6.0.0-slicc";
|
|
7519
7519
|
function procVersion() {
|
|
7520
7520
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|
|
@@ -19951,8 +19951,9 @@ var SessionWriter = class {
|
|
|
19951
19951
|
return this.proven;
|
|
19952
19952
|
}
|
|
19953
19953
|
async mayTouch() {
|
|
19954
|
-
if (this.s.verified) return true;
|
|
19955
|
-
|
|
19954
|
+
if (this.s.verified) return { touch: true };
|
|
19955
|
+
const proof = await this.proof("pg");
|
|
19956
|
+
return { touch: proof?.anchor !== void 0, binding: proof?.binding };
|
|
19956
19957
|
}
|
|
19957
19958
|
async prove(protocol) {
|
|
19958
19959
|
const s = this.s;
|
|
@@ -19966,10 +19967,13 @@ var SessionWriter = class {
|
|
|
19966
19967
|
exit: s.exit
|
|
19967
19968
|
});
|
|
19968
19969
|
const anchor = found ? await s.anchoring(found) : void 0;
|
|
19969
|
-
if (anchor) return
|
|
19970
|
+
if (anchor) return this.anchored(anchor);
|
|
19970
19971
|
}
|
|
19971
19972
|
return s.verified ? {} : void 0;
|
|
19972
19973
|
}
|
|
19974
|
+
async anchored(anchor) {
|
|
19975
|
+
return { anchor, binding: await this.s.anchoredBinding?.() };
|
|
19976
|
+
}
|
|
19973
19977
|
async ask(protocol, position, extra) {
|
|
19974
19978
|
const s = this.s;
|
|
19975
19979
|
const proof = await this.proof(protocol);
|
|
@@ -20186,7 +20190,11 @@ function sealedConn(conn, s) {
|
|
|
20186
20190
|
for (; ; ) {
|
|
20187
20191
|
const bytes = await conn.read();
|
|
20188
20192
|
if (!bytes) return bytes;
|
|
20189
|
-
if (writer?.sawPg && pg.touch === void 0)
|
|
20193
|
+
if (writer?.sawPg && pg.touch === void 0) {
|
|
20194
|
+
const may = await writer.mayTouch();
|
|
20195
|
+
pg.touch = may.touch;
|
|
20196
|
+
pg.binding ??= may.binding;
|
|
20197
|
+
}
|
|
20190
20198
|
const out = writer?.sawPg ? pg.filter(bytes) : bytes;
|
|
20191
20199
|
if (pg.failed) {
|
|
20192
20200
|
conn.close();
|
|
@@ -20437,7 +20445,8 @@ function anchoringOf(seal, info, servername) {
|
|
|
20437
20445
|
const engine = seal.engine;
|
|
20438
20446
|
if (!engine?.chainVerify || isIP2(servername) || info.peerCertificates.length === 0) return {};
|
|
20439
20447
|
return {
|
|
20440
|
-
anchoring: (found) => anchorFor(engine, info.peerCertificates, servername, found)
|
|
20448
|
+
anchoring: (found) => anchorFor(engine, info.peerCertificates, servername, found),
|
|
20449
|
+
anchoredBinding: () => endPointBinding(info.peerCertificates[0])
|
|
20441
20450
|
};
|
|
20442
20451
|
}
|
|
20443
20452
|
function sealing(seal, raw2, info, servername) {
|