@ai-ecoverse/slicc-kernel 1.115.0 → 1.116.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.
- package/README.md +10 -1
- package/dist/index.js.map +2 -2
- package/dist/kernel-worker.js +109 -4
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.js +19 -1
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +109 -4
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +19 -1
- package/dist/process-worker.js.map +2 -2
- package/dist/types/cron/schedule.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/kernel/net/http1.d.ts +1 -0
- package/dist/types/kernel/net/proxy-service.d.ts +1 -0
- package/dist/types/kernel/socket-syscalls.d.ts +7 -0
- package/dist/types/kernel/socket.d.ts +3 -0
- package/dist/types/process/js/js-net.d.ts +14 -0
- package/package.json +3 -3
|
@@ -23,3 +23,4 @@ export interface Missed {
|
|
|
23
23
|
more: boolean;
|
|
24
24
|
}
|
|
25
25
|
export declare function missedFires(schedule: Schedule, from: number, until: number, utc?: boolean, cap?: number): Missed;
|
|
26
|
+
export declare function latestFire(schedule: Schedule, from: number, until: number, utc?: boolean): number;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export type { ProcessMountPolicy, ProcessMountRequest } from './mount/syscall.js
|
|
|
36
36
|
export type { JsChild, JsExited, JsSpawnOptions, JsStdio } from './process/js/js-children.js';
|
|
37
37
|
export type { JsCrontabAnswer, JsCrontabCall, JsFdStatus, JsFdType, JsFile, JsOpenOptions, JsProgramContext, JsSignal, JsSudoAnswer, } from './process/js/js-context.js';
|
|
38
38
|
export type { JsStatFs } from './process/js/js-io.js';
|
|
39
|
-
export type { JsAddress, JsConnection, JsConnectOptions, JsListener, JsListenOptions, JsNet, JsResolveOptions, } from './process/js/js-net.js';
|
|
39
|
+
export type { JsAddress, JsConnection, JsConnectOptions, JsListener, JsListenOptions, JsNet, JsResolveOptions, JsTlsOptions, JsTlsSession, } from './process/js/js-net.js';
|
|
40
40
|
export type { JsRunOptions, JsRunResult, JsRunStdio } from './process/js/js-run.js';
|
|
41
41
|
export type { JsCred, JsSyncContext, JsSyncFile } from './process/js/js-sync.js';
|
|
42
42
|
export type { JsTermios, JsTty, JsTtySize } from './process/js/js-tty.js';
|
|
@@ -15,6 +15,7 @@ export declare class Incoming {
|
|
|
15
15
|
get buffered(): number;
|
|
16
16
|
private fill;
|
|
17
17
|
private take;
|
|
18
|
+
firstLine(max: number, signal?: AbortSignal): Promise<string>;
|
|
18
19
|
peek(signal?: AbortSignal): Promise<number | undefined>;
|
|
19
20
|
some(max: number, signal?: AbortSignal): Promise<Uint8Array>;
|
|
20
21
|
head(limit: number, signal?: AbortSignal): Promise<Uint8Array | null>;
|
|
@@ -57,6 +57,13 @@ export type SocketSyscall = {
|
|
|
57
57
|
body: Uint8Array;
|
|
58
58
|
addr?: SockAddr;
|
|
59
59
|
nonblock: boolean;
|
|
60
|
+
} | {
|
|
61
|
+
op: 'sock-tls';
|
|
62
|
+
host: string;
|
|
63
|
+
port: number;
|
|
64
|
+
servername?: string;
|
|
65
|
+
alpn?: string[];
|
|
66
|
+
ca?: boolean;
|
|
60
67
|
} | {
|
|
61
68
|
op: 'sock-recvfrom';
|
|
62
69
|
fd: number;
|
|
@@ -105,6 +105,9 @@ export declare class LoopbackNet {
|
|
|
105
105
|
private readonly facades;
|
|
106
106
|
private nextEphemeral;
|
|
107
107
|
private route;
|
|
108
|
+
private origins;
|
|
109
|
+
useOrigins(serve: (conn: KernelSocket, origin: string) => Promise<void>): void;
|
|
110
|
+
serveOrigin(conn: KernelSocket, origin: string): void;
|
|
108
111
|
useUplink(route: UplinkRoute): void;
|
|
109
112
|
uplinkFor(host: string): UplinkRoute | undefined;
|
|
110
113
|
destination(host: string): Destination;
|
|
@@ -3,8 +3,21 @@ export interface JsAddress {
|
|
|
3
3
|
host: string;
|
|
4
4
|
port: number;
|
|
5
5
|
}
|
|
6
|
+
export interface JsTlsSession {
|
|
7
|
+
readonly protocol: 'transport';
|
|
8
|
+
readonly alpnProtocol: string;
|
|
9
|
+
readonly authorized: true;
|
|
10
|
+
readonly servername: string;
|
|
11
|
+
}
|
|
12
|
+
export interface JsTlsOptions {
|
|
13
|
+
servername?: string;
|
|
14
|
+
alpn?: string[];
|
|
15
|
+
rejectUnauthorized?: boolean;
|
|
16
|
+
ca?: unknown;
|
|
17
|
+
}
|
|
6
18
|
export interface JsConnection {
|
|
7
19
|
readonly fd: number;
|
|
20
|
+
readonly tls?: JsTlsSession;
|
|
8
21
|
readonly local: JsAddress;
|
|
9
22
|
readonly remote: JsAddress;
|
|
10
23
|
readonly readable: ReadableStream<Uint8Array>;
|
|
@@ -29,6 +42,7 @@ export interface JsConnectOptions {
|
|
|
29
42
|
host?: string;
|
|
30
43
|
port: number;
|
|
31
44
|
signal?: AbortSignal;
|
|
45
|
+
tls?: JsTlsOptions;
|
|
32
46
|
}
|
|
33
47
|
export interface JsResolveOptions {
|
|
34
48
|
family?: 0 | 4 | 6;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-kernel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.116.1",
|
|
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",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"@ai-ecoverse/wasix-python": "3.14.2-25",
|
|
76
76
|
"@ai-ecoverse/wasm-bash": "5.3.0-19",
|
|
77
77
|
"@ai-ecoverse/wasm-coreutils": "9.12.0-9",
|
|
78
|
-
"@ai-ecoverse/wasm-curl": "8.22.0-
|
|
78
|
+
"@ai-ecoverse/wasm-curl": "8.22.0-6",
|
|
79
79
|
"@ai-ecoverse/wasm-git": "2.55.0-15",
|
|
80
|
-
"@ai-ecoverse/wasm-gmake": "4.4.1-
|
|
80
|
+
"@ai-ecoverse/wasm-gmake": "4.4.1-6",
|
|
81
81
|
"@ai-ecoverse/wasm-procps": "4.0.7-3",
|
|
82
82
|
"@ai-ecoverse/wasm-sqlite3": "3.54.0-5",
|
|
83
83
|
"@ai-ecoverse/wasm-tar": "1.35.0-7",
|