@ai-ecoverse/slicc-kernel 1.159.6 → 1.160.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.
@@ -59,6 +59,9 @@ export interface JsProgramContext {
59
59
  readonly kernel: JsKernelInfo;
60
60
  memory(): JsMemory;
61
61
  readonly asyncContext?: JsAsyncContext;
62
+ readonly module?: {
63
+ readonly path: string;
64
+ };
62
65
  readonly argv: readonly string[];
63
66
  readonly env: Readonly<Record<string, string>>;
64
67
  readonly pid: number;
@@ -180,6 +183,7 @@ export interface ContextOptions {
180
183
  memory?: (() => JsMemory) | undefined;
181
184
  asyncContext?: (() => JsAsyncContext) | undefined;
182
185
  runScript?: JsRunScript | undefined;
186
+ modulePath?: string | undefined;
183
187
  promiseState?: JsPromiseProbe | undefined;
184
188
  fs?: {
185
189
  owners: boolean;
@@ -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.159.6",
3
+ "version": "1.160.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",
@@ -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",