@ai-ecoverse/slicc-kernel 1.160.0 → 1.160.2

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.
@@ -37,6 +37,7 @@ export interface JsProgram {
37
37
  glue: string;
38
38
  path: string;
39
39
  url?: string;
40
+ source?: string;
40
41
  }
41
42
  export type Program = WasmProgram | JsProgram;
42
43
  export interface ForkState {
@@ -80,6 +80,7 @@ export interface LauncherOptions {
80
80
  export interface ModuleUrl {
81
81
  url: string;
82
82
  revoke(): void;
83
+ source?: string;
83
84
  }
84
85
  export type ModuleUrlMaker = (source: string) => ModuleUrl;
85
86
  export declare function dataModuleUrl(source: string): ModuleUrl;
@@ -108,4 +108,9 @@ export declare function sparesOf(options: {
108
108
  warmWorker?: boolean;
109
109
  warmWorkers?: unknown;
110
110
  }): number;
111
+ export declare function sourceModule(source: string): {
112
+ url: string;
113
+ source: string;
114
+ revoke(): void;
115
+ };
111
116
  export declare function createNodeKernel(options?: NodeKernelOptions): Promise<NodeKernel>;
@@ -6,8 +6,10 @@ import { type AsyncSabTransport, type WaitAsyncLike } from './async-sab.js';
6
6
  export declare class JsCallError extends Error {
7
7
  readonly code: string;
8
8
  readonly detail: string | undefined;
9
+ dev: string | undefined;
9
10
  constructor(code: string, what: string, detail?: string);
10
11
  }
12
+ export declare function devOf(found: unknown): string | undefined;
11
13
  export declare function umaskRequest(mask: unknown): {
12
14
  op: 'proc-umask';
13
15
  mask?: number;
@@ -16,6 +18,7 @@ export declare function modeOf(mode: unknown): number;
16
18
  export declare function callError(result: {
17
19
  errno: string;
18
20
  message: string;
21
+ dev?: string;
19
22
  }, op: string): JsCallError;
20
23
  export type SignalHandler = (signal: number) => unknown;
21
24
  export interface JsKernelOptions {
@@ -28,6 +28,7 @@ export interface SyncFsRequest {
28
28
  nofollow?: boolean;
29
29
  direct?: boolean;
30
30
  opening?: boolean;
31
+ devs?: true;
31
32
  }
32
33
  export type SyncFsResult = {
33
34
  ok: true;
@@ -45,6 +46,7 @@ export type SyncFsResult = {
45
46
  errno: string;
46
47
  message: string;
47
48
  direct?: true;
49
+ dev?: string;
48
50
  };
49
51
  export declare const SYNC_FS_REQUEST_TIMEOUT_MS = 25000;
50
52
  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.160.0",
3
+ "version": "1.160.2",
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,7 +64,7 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@ai-ecoverse/py-numpy": "2.5.4-4",
67
- "@ai-ecoverse/slicc-cdp": "1.41.4",
67
+ "@ai-ecoverse/slicc-cdp": "1.41.5",
68
68
  "@ai-ecoverse/slicc-node": "2.5.2",
69
69
  "@ai-ecoverse/slicc-scrub": "1.1.0",
70
70
  "@ai-ecoverse/slicc-shared-web": "2.12.1",