runmat 0.2.13 → 0.2.14

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 CHANGED
@@ -130,7 +130,7 @@ Call `await session.memoryUsage()` to inspect the current WebAssembly heap. The
130
130
 
131
131
  - `subscribeStdout(listener)` / `unsubscribeStdout(id)` stream stdout/stderr events as they are emitted so hosts can drive an xterm pane without waiting for `execute()` to resolve. Every `ExecuteResult` also includes the buffered `stdout` array for easy logging or replay.
132
132
  - `ExecuteResult.warnings` exposes structured `{ identifier, message }` entries pulled from MATLAB's warning store, `stdinEvents` captures every prompt/response emitted during the run for transcript panes, and `stdinRequested` is populated when the interpreter suspends while waiting for input.
133
- - Call `session.cancelExecution()` to cooperatively interrupt a long-running script (e.g., when users press the stop button). The runtime raises `MATLAB:runmat:ExecutionCancelled`, matching desktop builds.
133
+ - Call `session.cancelExecution()` to cooperatively interrupt a long-running script (e.g., when users press the stop button). The runtime raises `ExecutionCancelled` error, matching desktop builds.
134
134
  - `session.setInputHandler(handler)` registers a synchronous callback for MATLAB's `input`/`pause` prompts. Handlers receive `{ kind: "line" | "keyPress", prompt, echo }` and can return a string/number/boolean, `{ kind: "keyPress" }`, or `{ error }` to reject the prompt. Returning `null`, `undefined`, `{ pending: true }`, or a Promise signals that the handler will respond asynchronously.
135
135
  - When a handler defers, `execute()` resolves with `stdinRequested` containing `{ id, request, waitingMs }`. Call `session.resumeInput(id, value)` once the UI collects the user's response (value follows the same shape as the input handler). `waitingMs` starts at zero and grows until the prompt is satisfied so UIs can show “still waiting…” nudges without forcing a timeout. Use `session.pendingStdinRequests()` to list outstanding prompts (useful when rehydrating a UI after refresh) — each entry carries the same `waitingMs` counter.
136
136
 
@@ -42,8 +42,8 @@ export interface InitOutput {
42
42
  readonly __wbindgen_export_4: WebAssembly.Table;
43
43
  readonly __wbindgen_export_5: WebAssembly.Table;
44
44
  readonly __externref_table_dealloc: (a: number) => void;
45
- readonly closure2634_externref_shim: (a: number, b: number, c: any) => void;
46
- readonly closure2656_externref_shim: (a: number, b: number, c: any, d: any) => void;
45
+ readonly closure2649_externref_shim: (a: number, b: number, c: any) => void;
46
+ readonly closure2671_externref_shim: (a: number, b: number, c: any, d: any) => void;
47
47
  readonly __wbindgen_start: () => void;
48
48
  }
49
49
 
@@ -405,11 +405,11 @@ export function setCompatMode(mode) {
405
405
  }
406
406
 
407
407
  function __wbg_adapter_32(arg0, arg1, arg2) {
408
- wasm.closure2634_externref_shim(arg0, arg1, arg2);
408
+ wasm.closure2649_externref_shim(arg0, arg1, arg2);
409
409
  }
410
410
 
411
411
  function __wbg_adapter_120(arg0, arg1, arg2, arg3) {
412
- wasm.closure2656_externref_shim(arg0, arg1, arg2, arg3);
412
+ wasm.closure2671_externref_shim(arg0, arg1, arg2, arg3);
413
413
  }
414
414
 
415
415
  const __wbindgen_enum_XmlHttpRequestResponseType = ["", "arraybuffer", "blob", "document", "json", "text"];
@@ -685,8 +685,8 @@ function __wbg_get_imports() {
685
685
  const ret = false;
686
686
  return ret;
687
687
  };
688
- imports.wbg.__wbindgen_closure_wrapper9918 = function(arg0, arg1, arg2) {
689
- const ret = makeMutClosure(arg0, arg1, 2635, __wbg_adapter_32);
688
+ imports.wbg.__wbindgen_closure_wrapper10006 = function(arg0, arg1, arg2) {
689
+ const ret = makeMutClosure(arg0, arg1, 2650, __wbg_adapter_32);
690
690
  return ret;
691
691
  };
692
692
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -23,6 +23,6 @@ export const __externref_table_alloc: () => number;
23
23
  export const __wbindgen_export_4: WebAssembly.Table;
24
24
  export const __wbindgen_export_5: WebAssembly.Table;
25
25
  export const __externref_table_dealloc: (a: number) => void;
26
- export const closure2634_externref_shim: (a: number, b: number, c: any) => void;
27
- export const closure2656_externref_shim: (a: number, b: number, c: any, d: any) => void;
26
+ export const closure2649_externref_shim: (a: number, b: number, c: any) => void;
27
+ export const closure2671_externref_shim: (a: number, b: number, c: any, d: any) => void;
28
28
  export const __wbindgen_start: () => void;
@@ -540,15 +540,15 @@ export function initRunMat(options) {
540
540
  }
541
541
 
542
542
  function __wbg_adapter_54(arg0, arg1, arg2) {
543
- wasm.closure5630_externref_shim(arg0, arg1, arg2);
543
+ wasm.closure5676_externref_shim(arg0, arg1, arg2);
544
544
  }
545
545
 
546
546
  function __wbg_adapter_57(arg0, arg1, arg2) {
547
- wasm.closure5637_externref_shim(arg0, arg1, arg2);
547
+ wasm.closure5683_externref_shim(arg0, arg1, arg2);
548
548
  }
549
549
 
550
550
  function __wbg_adapter_558(arg0, arg1, arg2, arg3) {
551
- wasm.closure5681_externref_shim(arg0, arg1, arg2, arg3);
551
+ wasm.closure5727_externref_shim(arg0, arg1, arg2, arg3);
552
552
  }
553
553
 
554
554
  const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
@@ -2056,13 +2056,13 @@ export function __wbindgen_cb_drop(arg0) {
2056
2056
  return ret;
2057
2057
  };
2058
2058
 
2059
- export function __wbindgen_closure_wrapper17249(arg0, arg1, arg2) {
2060
- const ret = makeMutClosure(arg0, arg1, 5631, __wbg_adapter_54);
2059
+ export function __wbindgen_closure_wrapper17322(arg0, arg1, arg2) {
2060
+ const ret = makeMutClosure(arg0, arg1, 5677, __wbg_adapter_54);
2061
2061
  return ret;
2062
2062
  };
2063
2063
 
2064
- export function __wbindgen_closure_wrapper17668(arg0, arg1, arg2) {
2065
- const ret = makeMutClosure(arg0, arg1, 5638, __wbg_adapter_57);
2064
+ export function __wbindgen_closure_wrapper17741(arg0, arg1, arg2) {
2065
+ const ret = makeMutClosure(arg0, arg1, 5684, __wbg_adapter_57);
2066
2066
  return ret;
2067
2067
  };
2068
2068
 
Binary file
@@ -58,7 +58,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
58
58
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
59
59
  export const __wbindgen_export_6: WebAssembly.Table;
60
60
  export const __externref_table_dealloc: (a: number) => void;
61
- export const closure5630_externref_shim: (a: number, b: number, c: any) => void;
62
- export const closure5637_externref_shim: (a: number, b: number, c: any) => void;
63
- export const closure5681_externref_shim: (a: number, b: number, c: any, d: any) => void;
61
+ export const closure5676_externref_shim: (a: number, b: number, c: any) => void;
62
+ export const closure5683_externref_shim: (a: number, b: number, c: any) => void;
63
+ export const closure5727_externref_shim: (a: number, b: number, c: any, d: any) => void;
64
64
  export const __wbindgen_start: () => void;
@@ -117,9 +117,9 @@ export interface InitOutput {
117
117
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
118
118
  readonly __wbindgen_export_6: WebAssembly.Table;
119
119
  readonly __externref_table_dealloc: (a: number) => void;
120
- readonly closure5630_externref_shim: (a: number, b: number, c: any) => void;
121
- readonly closure5637_externref_shim: (a: number, b: number, c: any) => void;
122
- readonly closure5681_externref_shim: (a: number, b: number, c: any, d: any) => void;
120
+ readonly closure5676_externref_shim: (a: number, b: number, c: any) => void;
121
+ readonly closure5683_externref_shim: (a: number, b: number, c: any) => void;
122
+ readonly closure5727_externref_shim: (a: number, b: number, c: any, d: any) => void;
123
123
  readonly __wbindgen_start: () => void;
124
124
  }
125
125
 
@@ -532,15 +532,15 @@ export function initRunMat(options) {
532
532
  }
533
533
 
534
534
  function __wbg_adapter_54(arg0, arg1, arg2) {
535
- wasm.closure5630_externref_shim(arg0, arg1, arg2);
535
+ wasm.closure5676_externref_shim(arg0, arg1, arg2);
536
536
  }
537
537
 
538
538
  function __wbg_adapter_57(arg0, arg1, arg2) {
539
- wasm.closure5637_externref_shim(arg0, arg1, arg2);
539
+ wasm.closure5683_externref_shim(arg0, arg1, arg2);
540
540
  }
541
541
 
542
542
  function __wbg_adapter_558(arg0, arg1, arg2, arg3) {
543
- wasm.closure5681_externref_shim(arg0, arg1, arg2, arg3);
543
+ wasm.closure5727_externref_shim(arg0, arg1, arg2, arg3);
544
544
  }
545
545
 
546
546
  const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
@@ -1828,12 +1828,12 @@ function __wbg_get_imports() {
1828
1828
  const ret = false;
1829
1829
  return ret;
1830
1830
  };
1831
- imports.wbg.__wbindgen_closure_wrapper17249 = function(arg0, arg1, arg2) {
1832
- const ret = makeMutClosure(arg0, arg1, 5631, __wbg_adapter_54);
1831
+ imports.wbg.__wbindgen_closure_wrapper17322 = function(arg0, arg1, arg2) {
1832
+ const ret = makeMutClosure(arg0, arg1, 5677, __wbg_adapter_54);
1833
1833
  return ret;
1834
1834
  };
1835
- imports.wbg.__wbindgen_closure_wrapper17668 = function(arg0, arg1, arg2) {
1836
- const ret = makeMutClosure(arg0, arg1, 5638, __wbg_adapter_57);
1835
+ imports.wbg.__wbindgen_closure_wrapper17741 = function(arg0, arg1, arg2) {
1836
+ const ret = makeMutClosure(arg0, arg1, 5684, __wbg_adapter_57);
1837
1837
  return ret;
1838
1838
  };
1839
1839
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
@@ -58,7 +58,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
58
58
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
59
59
  export const __wbindgen_export_6: WebAssembly.Table;
60
60
  export const __externref_table_dealloc: (a: number) => void;
61
- export const closure5630_externref_shim: (a: number, b: number, c: any) => void;
62
- export const closure5637_externref_shim: (a: number, b: number, c: any) => void;
63
- export const closure5681_externref_shim: (a: number, b: number, c: any, d: any) => void;
61
+ export const closure5676_externref_shim: (a: number, b: number, c: any) => void;
62
+ export const closure5683_externref_shim: (a: number, b: number, c: any) => void;
63
+ export const closure5727_externref_shim: (a: number, b: number, c: any, d: any) => void;
64
64
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runmat",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "Blazing fast runtime for math. Run MATLAB code on CPU or GPU.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN ../../LICENSE.md",