@ai-ecoverse/slicc-kernel 1.133.2 → 1.133.3
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/process-worker.js
CHANGED
|
@@ -2664,7 +2664,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
2664
2664
|
var init_version = __esm({
|
|
2665
2665
|
"src/version.ts"() {
|
|
2666
2666
|
"use strict";
|
|
2667
|
-
KERNEL_VERSION = true ? "1.133.
|
|
2667
|
+
KERNEL_VERSION = true ? "1.133.3" : "0.0.0-dev";
|
|
2668
2668
|
OS_RELEASE = "6.0.0-slicc";
|
|
2669
2669
|
}
|
|
2670
2670
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { KernelError } from '../fd-table.js';
|
|
1
2
|
import type { SealedBroker, SealedCaller } from '../sealed.js';
|
|
2
3
|
import type { KernelSocket, LoopbackNet } from '../socket.js';
|
|
3
4
|
import { type TlsClientInfo } from './tls-client.js';
|
|
4
|
-
import { type TlsEngine } from './tls-engine.js';
|
|
5
|
+
import { type TlsEngine, type TlsSession } from './tls-engine.js';
|
|
5
6
|
import type { ResolveFamily } from './uplink.js';
|
|
6
7
|
export interface TlsClientSupport {
|
|
7
8
|
engine: () => Promise<TlsEngine>;
|
|
@@ -50,7 +51,17 @@ export interface SecureSession {
|
|
|
50
51
|
hostnameMatches?: boolean;
|
|
51
52
|
chainError?: string;
|
|
52
53
|
}
|
|
54
|
+
export declare function encryptedKey(key: Uint8Array): boolean;
|
|
55
|
+
export declare function keyRefused(err: unknown, locked: boolean): KernelError;
|
|
56
|
+
declare function takeCert(req: SecureRequest): {
|
|
57
|
+
chain: Uint8Array<ArrayBuffer>;
|
|
58
|
+
key: Uint8Array<ArrayBufferLike>;
|
|
59
|
+
pass: Uint8Array<ArrayBuffer>;
|
|
60
|
+
} | undefined;
|
|
61
|
+
type ClientCert = NonNullable<ReturnType<typeof takeCert>>;
|
|
62
|
+
export declare function withCert(session: TlsSession, cert: ClientCert | undefined): void;
|
|
53
63
|
export declare function supportOf(net: LoopbackNet): TlsClientSupport;
|
|
54
64
|
export declare function uplinkAddress(proc: SecureProcess, host: string): Promise<string>;
|
|
55
65
|
export declare function connectSecure(proc: SecureProcess, socket: KernelSocket, host: string, port: number, req: SecureRequest): Promise<SecureSession>;
|
|
56
66
|
export declare function upgradeSecure(proc: SecureProcess, socket: KernelSocket, req: SecureRequest): Promise<SecureSession>;
|
|
67
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-kernel",
|
|
3
|
-
"version": "1.133.
|
|
3
|
+
"version": "1.133.3",
|
|
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",
|