@ai-ecoverse/slicc-kernel 1.150.0 → 1.151.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.
@@ -45,6 +45,7 @@ export interface TlsServerInfo {
45
45
  authorized: boolean;
46
46
  authorizationError?: string;
47
47
  peerCertificates: Uint8Array[];
48
+ cipher: TlsCipher;
48
49
  }
49
50
  export declare function tlsServer(conn: UplinkConn, session: TlsSession, clientCerts: boolean): Promise<{
50
51
  conn: UplinkConn;
@@ -1,4 +1,5 @@
1
1
  import type { KernelSocket } from '../socket.js';
2
+ import type { TlsCipher } from './tls-ciphers.js';
2
3
  import { type TlsEngine, type TlsLeaf, type TlsStore } from './tls-engine.js';
3
4
  import { type ClientCertRequest, type SecureProcess } from './tls-uplink.js';
4
5
  export interface ServeRequest {
@@ -18,6 +19,7 @@ export interface ServedSession {
18
19
  authorized: boolean;
19
20
  authorizationError?: string;
20
21
  peerCertificates: string[];
22
+ cipher: TlsCipher;
21
23
  }
22
24
  interface Server {
23
25
  engine: TlsEngine;
@@ -3,7 +3,7 @@ import type { SealedBroker, SealedCaller } from '../sealed.js';
3
3
  import type { KernelSocket, LoopbackNet } from '../socket.js';
4
4
  import { type Anchors } from './sealed-anchor.js';
5
5
  import { type TlsClientInfo } from './tls-client.js';
6
- import { type TlsEngine, type TlsSession } from './tls-engine.js';
6
+ import { type TlsEngine, type TlsSession, type TlsStore } from './tls-engine.js';
7
7
  import type { ResolveFamily } from './uplink.js';
8
8
  export interface TlsClientSupport {
9
9
  engine: () => Promise<TlsEngine>;
@@ -36,6 +36,7 @@ export interface SecureProcess {
36
36
  }
37
37
  export declare const handshakeAbort: (proc: SecureProcess) => AbortSignal;
38
38
  export declare function serverName(name: string): string;
39
+ export declare function defaultStore(engine: TlsEngine, roots: () => Promise<Uint8Array>): Promise<TlsStore>;
39
40
  export declare function base64Der(text: string): Uint8Array;
40
41
  export declare function encode(bytes: Uint8Array): string;
41
42
  export interface SecureSession {
@@ -7,7 +7,7 @@ export interface ScrubSecret {
7
7
  value: string;
8
8
  placeholder: string;
9
9
  }
10
- export declare function scrubberOf(secrets: ScrubSecret[]): Scrubber | undefined;
10
+ export declare function scrubberOf(secrets: ScrubSecret[], sameLength?: boolean): Scrubber | undefined;
11
11
  export declare function scrubbed(inner: OpenFile, scrubber: Scrubber, idleMs?: number): OpenFile;
12
12
  export declare function scrubbedAll(file: OpenFile, scrubbers: readonly Scrubber[]): OpenFile;
13
13
  export declare function scrubStdio(fds: FdTable, scrubber: Scrubber): void;
@@ -51,6 +51,7 @@ export interface JsTlsServerSession {
51
51
  readonly authorized: boolean;
52
52
  readonly authorizationError?: string;
53
53
  readonly peerCertificates: readonly Uint8Array[];
54
+ readonly cipher: JsTlsCipher;
54
55
  }
55
56
  export interface JsConnection {
56
57
  readonly fd: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.150.0",
3
+ "version": "1.151.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",
@@ -64,10 +64,10 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@ai-ecoverse/py-numpy": "2.5.4-4",
67
- "@ai-ecoverse/slicc-cdp": "1.36.1",
67
+ "@ai-ecoverse/slicc-cdp": "1.37.1",
68
68
  "@ai-ecoverse/slicc-node": "2.5.2",
69
69
  "@ai-ecoverse/slicc-scrub": "1.1.0",
70
- "@ai-ecoverse/slicc-shared-web": "2.11.1",
70
+ "@ai-ecoverse/slicc-shared-web": "2.11.3",
71
71
  "@ai-ecoverse/wasi-cargo": "0.99.0-6",
72
72
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
73
73
  "@ai-ecoverse/wasi-ripgrep": "15.2.0-5",
@@ -77,12 +77,12 @@
77
77
  "@ai-ecoverse/wasm-bash": "5.3.0-23",
78
78
  "@ai-ecoverse/wasm-coreutils": "9.12.0-15",
79
79
  "@ai-ecoverse/wasm-curl": "8.22.0-10",
80
- "@ai-ecoverse/wasm-git": "2.55.0-20",
80
+ "@ai-ecoverse/wasm-git": "2.55.0-22",
81
81
  "@ai-ecoverse/wasm-gmake": "4.4.1-9",
82
82
  "@ai-ecoverse/wasm-procps": "4.0.7-5",
83
83
  "@ai-ecoverse/wasm-sqlite3": "3.54.0-8",
84
84
  "@ai-ecoverse/wasm-tar": "1.35.0-9",
85
- "@ai-ecoverse/wasm-tls-engine": "4.2.0-8",
85
+ "@ai-ecoverse/wasm-tls-engine": "4.2.0-9",
86
86
  "@ai-ecoverse/wasm-util-linux": "2.42.4-7",
87
87
  "@biomejs/biome": "2.5.15",
88
88
  "@types/node": "24.19.2",