@ai-ecoverse/slicc-kernel 1.159.6 → 1.160.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.
@@ -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;
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.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",