@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.
@@ -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
- constructor(message: string, status?: number, code?: string);
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;
@@ -19,6 +19,7 @@ export declare function callError(result: {
19
19
  errno: string;
20
20
  message: string;
21
21
  dev?: string;
22
+ detail?: string;
22
23
  }, op: string): JsCallError;
23
24
  export type SignalHandler = (signal: number) => unknown;
24
25
  export interface JsKernelOptions {
@@ -47,6 +47,7 @@ export type SyncFsResult = {
47
47
  message: string;
48
48
  direct?: true;
49
49
  dev?: string;
50
+ detail?: 'transport';
50
51
  };
51
52
  export declare const SYNC_FS_REQUEST_TIMEOUT_MS = 25000;
52
53
  export declare const SYNC_FS_READ_ONLY: ReadonlySet<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.168.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.2",
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;