@ai-ecoverse/slicc-kernel 1.168.1 → 1.170.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.
- package/README.md +16 -27
- package/dist/driver-worker.js +4 -2
- package/dist/driver-worker.js.map +2 -2
- package/dist/index.js +48 -228
- package/dist/index.js.map +4 -4
- package/dist/kernel-worker.js +12 -7
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-driver-worker.js +4 -2
- package/dist/node-driver-worker.js.map +2 -2
- package/dist/node-process-worker.cjs +4 -3
- package/dist/node-process-worker.cjs.map +2 -2
- package/dist/node-process-worker.js +4 -3
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +15 -9
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +4 -3
- package/dist/process-worker.js.map +2 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/kernel/net/remote-transport.d.ts +3 -1
- package/dist/types/process/js/js-kernel.d.ts +1 -0
- package/dist/types/realm/sync-fs-wire.d.ts +1 -0
- package/package.json +2 -3
- package/dist/types/local-proxy-transport.d.ts +0 -39
package/dist/types/index.d.ts
CHANGED
|
@@ -30,7 +30,6 @@ export type { RouteTable } from './kernel/net/routes.js';
|
|
|
30
30
|
export type { NetworkUplink, ResolveAnswer, ResolveFamily, UplinkTraits, } from './kernel/net/uplink.js';
|
|
31
31
|
export type { SealedAbortReason, SealedCaller, SealedHook, SealedRequest, } from './kernel/sealed.js';
|
|
32
32
|
export type { ConnectorStamp } from './kernel/socket.js';
|
|
33
|
-
export { checkLocalProxy, type LocalProxyCheckOptions, type LocalProxyOptions, type LocalProxyProbe, type LocalProxyStatus, type LocalProxyTransportOptions, localProxyTransport, probeLocalProxy, } from './local-proxy-transport.js';
|
|
34
33
|
export type { HostfsEvent, HostfsGrant, HostfsGrantHook, HostfsPortGrant, HostfsTransport, } from './mount/hostfs.js';
|
|
35
34
|
export { serveHostfsPort } from './mount/hostfs.js';
|
|
36
35
|
export type { MountEntry, MountSpec } from './mount/mount-fs.js';
|
|
@@ -69,6 +69,7 @@ export type TransportReply = {
|
|
|
69
69
|
message: string;
|
|
70
70
|
status?: number;
|
|
71
71
|
code?: string;
|
|
72
|
+
detail?: 'transport';
|
|
72
73
|
} | {
|
|
73
74
|
net: 'ws-opened';
|
|
74
75
|
nid: number;
|
|
@@ -93,7 +94,8 @@ export interface TransportPort {
|
|
|
93
94
|
export declare class TransportError extends Error {
|
|
94
95
|
readonly status: number | undefined;
|
|
95
96
|
readonly code: string | undefined;
|
|
96
|
-
|
|
97
|
+
readonly detail: 'transport' | undefined;
|
|
98
|
+
constructor(message: string, status?: number, code?: string, detail?: unknown);
|
|
97
99
|
}
|
|
98
100
|
export declare class RemoteTransport implements RealmTransport {
|
|
99
101
|
traits: RealmTransportTraits;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-kernel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.170.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",
|
|
@@ -70,8 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@ai-ecoverse/py-numpy": "2.5.4-4",
|
|
73
|
-
"@ai-ecoverse/slicc-cdp": "1.42.
|
|
74
|
-
"@ai-ecoverse/slicc-node": "2.5.2",
|
|
73
|
+
"@ai-ecoverse/slicc-cdp": "1.42.3",
|
|
75
74
|
"@ai-ecoverse/slicc-scrub": "1.1.0",
|
|
76
75
|
"@ai-ecoverse/slicc-shared-web": "2.13.3",
|
|
77
76
|
"@ai-ecoverse/wasi-cargo": "0.99.0-6",
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { RealmTransport } from './kernel/net/transport.js';
|
|
2
|
-
export interface LocalProxyOptions {
|
|
3
|
-
url: string;
|
|
4
|
-
key: string;
|
|
5
|
-
fetch?: typeof globalThis.fetch;
|
|
6
|
-
}
|
|
7
|
-
export interface LocalProxyCheckOptions extends LocalProxyOptions {
|
|
8
|
-
permissions?: Pick<Permissions, 'query'>;
|
|
9
|
-
}
|
|
10
|
-
export interface LocalProxyTransportOptions extends LocalProxyOptions {
|
|
11
|
-
maxRequestBody?: number;
|
|
12
|
-
bodyIdleMs?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface LocalProxyProbe {
|
|
15
|
-
rawFetch: number;
|
|
16
|
-
requestBodyStreaming: boolean;
|
|
17
|
-
maxRequestBodyBytes: number;
|
|
18
|
-
kernelTunnel?: number;
|
|
19
|
-
kernelPort?: number;
|
|
20
|
-
cdp?: number;
|
|
21
|
-
}
|
|
22
|
-
export type LocalProxyStatus = {
|
|
23
|
-
state: 'ready';
|
|
24
|
-
probe: LocalProxyProbe;
|
|
25
|
-
} | {
|
|
26
|
-
state: 'blocked';
|
|
27
|
-
} | {
|
|
28
|
-
state: 'unreachable';
|
|
29
|
-
permission: 'granted' | 'prompt' | 'unknown';
|
|
30
|
-
} | {
|
|
31
|
-
state: 'refused';
|
|
32
|
-
status: number;
|
|
33
|
-
error: string;
|
|
34
|
-
} | {
|
|
35
|
-
state: 'incompatible';
|
|
36
|
-
};
|
|
37
|
-
export declare function checkLocalProxy(options: LocalProxyCheckOptions): Promise<LocalProxyStatus>;
|
|
38
|
-
export declare function probeLocalProxy(options: LocalProxyCheckOptions): Promise<LocalProxyProbe | null>;
|
|
39
|
-
export declare function localProxyTransport(options: LocalProxyTransportOptions): RealmTransport;
|