@ai-ecoverse/slicc-kernel 1.140.6 → 1.141.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.
@@ -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.140.6" : "0.0.0-dev";
6724
+ KERNEL_VERSION = true ? "1.141.1" : "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.140.6" : "0.0.0-dev";
7517
+ var KERNEL_VERSION = true ? "1.141.1" : "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
@@ -8452,6 +8452,8 @@ var CronService = class {
8452
8452
  }
8453
8453
  }
8454
8454
  async pass() {
8455
+ if (this.wake.signal.aborted) this.wake = new AbortController();
8456
+ const wake = this.wake;
8455
8457
  let until;
8456
8458
  try {
8457
8459
  until = await this.tick();
@@ -8460,8 +8462,7 @@ var CronService = class {
8460
8462
  until = this.clock.now() + WAKE_MS;
8461
8463
  }
8462
8464
  if (this.stopping.signal.aborted) return;
8463
- if (this.wake.signal.aborted) this.wake = new AbortController();
8464
- await this.clock.sleep(until, this.wake.signal);
8465
+ await this.clock.sleep(until, wake.signal);
8465
8466
  }
8466
8467
  async provision() {
8467
8468
  const { fs, owners } = this.host;
@@ -19951,8 +19952,9 @@ var SessionWriter = class {
19951
19952
  return this.proven;
19952
19953
  }
19953
19954
  async mayTouch() {
19954
- if (this.s.verified) return true;
19955
- return (await this.proof("pg"))?.anchor !== void 0;
19955
+ if (this.s.verified) return { touch: true };
19956
+ const proof = await this.proof("pg");
19957
+ return { touch: proof?.anchor !== void 0, binding: proof?.binding };
19956
19958
  }
19957
19959
  async prove(protocol) {
19958
19960
  const s = this.s;
@@ -19966,10 +19968,13 @@ var SessionWriter = class {
19966
19968
  exit: s.exit
19967
19969
  });
19968
19970
  const anchor = found ? await s.anchoring(found) : void 0;
19969
- if (anchor) return { anchor };
19971
+ if (anchor) return this.anchored(anchor);
19970
19972
  }
19971
19973
  return s.verified ? {} : void 0;
19972
19974
  }
19975
+ async anchored(anchor) {
19976
+ return { anchor, binding: await this.s.anchoredBinding?.() };
19977
+ }
19973
19978
  async ask(protocol, position, extra) {
19974
19979
  const s = this.s;
19975
19980
  const proof = await this.proof(protocol);
@@ -20186,7 +20191,11 @@ function sealedConn(conn, s) {
20186
20191
  for (; ; ) {
20187
20192
  const bytes = await conn.read();
20188
20193
  if (!bytes) return bytes;
20189
- if (writer?.sawPg && pg.touch === void 0) pg.touch = await writer.mayTouch();
20194
+ if (writer?.sawPg && pg.touch === void 0) {
20195
+ const may = await writer.mayTouch();
20196
+ pg.touch = may.touch;
20197
+ pg.binding ??= may.binding;
20198
+ }
20190
20199
  const out = writer?.sawPg ? pg.filter(bytes) : bytes;
20191
20200
  if (pg.failed) {
20192
20201
  conn.close();
@@ -20437,7 +20446,8 @@ function anchoringOf(seal, info, servername) {
20437
20446
  const engine = seal.engine;
20438
20447
  if (!engine?.chainVerify || isIP2(servername) || info.peerCertificates.length === 0) return {};
20439
20448
  return {
20440
- anchoring: (found) => anchorFor(engine, info.peerCertificates, servername, found)
20449
+ anchoring: (found) => anchorFor(engine, info.peerCertificates, servername, found),
20450
+ anchoredBinding: () => endPointBinding(info.peerCertificates[0])
20441
20451
  };
20442
20452
  }
20443
20453
  function sealing(seal, raw2, info, servername) {