@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.
@@ -2778,7 +2778,7 @@ var KERNEL_VERSION, OS_RELEASE;
2778
2778
  var init_version = __esm({
2779
2779
  "src/version.ts"() {
2780
2780
  "use strict";
2781
- KERNEL_VERSION = true ? "1.140.6" : "0.0.0-dev";
2781
+ KERNEL_VERSION = true ? "1.141.0" : "0.0.0-dev";
2782
2782
  OS_RELEASE = "6.0.0-slicc";
2783
2783
  }
2784
2784
  });
@@ -14,6 +14,7 @@ export interface SealedSession {
14
14
  alpn: string | false;
15
15
  binding?: Uint8Array | undefined;
16
16
  anchoring?: (found: Anchors) => Promise<string | undefined>;
17
+ anchoredBinding?: () => Promise<Uint8Array | undefined>;
17
18
  }
18
19
  export declare function substitutes(s: SealedSession): boolean;
19
20
  export declare function sealedConn(conn: UplinkConn, s: SealedSession): UplinkConn;
@@ -6,7 +6,7 @@ export interface PgExpect {
6
6
  fake: string;
7
7
  }
8
8
  export declare class PgServer {
9
- readonly binding: Uint8Array | undefined;
9
+ binding: Uint8Array | undefined;
10
10
  plus: boolean;
11
11
  touch: boolean | undefined;
12
12
  constructor(binding?: Uint8Array);
@@ -1,6 +1,7 @@
1
1
  import { KernelError } from '../fd-table.js';
2
2
  import type { SealedBroker, SealedCaller } from '../sealed.js';
3
3
  import type { KernelSocket, LoopbackNet } from '../socket.js';
4
+ import { type Anchors } from './sealed-anchor.js';
4
5
  import { type TlsClientInfo } from './tls-client.js';
5
6
  import { type TlsEngine, type TlsSession } from './tls-engine.js';
6
7
  import type { ResolveFamily } from './uplink.js';
@@ -61,6 +62,18 @@ declare function takeCert(req: SecureRequest): {
61
62
  } | undefined;
62
63
  type ClientCert = NonNullable<ReturnType<typeof takeCert>>;
63
64
  export declare function withCert(session: TlsSession, cert: ClientCert | undefined): void;
65
+ export interface Seal {
66
+ proc: SecureProcess;
67
+ port: number;
68
+ engine?: TlsEngine;
69
+ }
70
+ export declare function anchoringOf(seal: Seal, info: TlsClientInfo, servername: string): {
71
+ anchoring?: undefined;
72
+ anchoredBinding?: undefined;
73
+ } | {
74
+ anchoring: (found: Anchors) => Promise<string | undefined>;
75
+ anchoredBinding: () => Promise<Uint8Array<ArrayBufferLike> | undefined>;
76
+ };
64
77
  export declare function supportOf(net: LoopbackNet): TlsClientSupport;
65
78
  export declare function uplinkAddress(proc: SecureProcess, host: string): Promise<string>;
66
79
  export declare function connectSecure(proc: SecureProcess, socket: KernelSocket, host: string, port: number, req: SecureRequest): Promise<SecureSession>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.140.6",
3
+ "version": "1.141.0",
4
4
  "description": "SLICC's wasm-realm kernel: run Emscripten programs in the browser against OPFS, with fork, spawn, pipes and waitpid",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",