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 +1 -1
- package/dist/lsp/runmat_lsp.d.ts +2 -2
- package/dist/lsp/runmat_lsp.js +4 -4
- package/dist/lsp/runmat_lsp_bg.wasm +0 -0
- package/dist/lsp/runmat_lsp_bg.wasm.d.ts +2 -2
- package/dist/pkg/runmat_wasm_bg.js +7 -7
- package/dist/pkg/runmat_wasm_bg.wasm +0 -0
- package/dist/pkg/runmat_wasm_bg.wasm.d.ts +3 -3
- package/dist/pkg-web/runmat_wasm_web.d.ts +3 -3
- package/dist/pkg-web/runmat_wasm_web.js +7 -7
- package/dist/pkg-web/runmat_wasm_web_bg.wasm +0 -0
- package/dist/pkg-web/runmat_wasm_web_bg.wasm.d.ts +3 -3
- package/package.json +1 -1
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 `
|
|
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
|
|
package/dist/lsp/runmat_lsp.d.ts
CHANGED
|
@@ -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
|
|
46
|
-
readonly
|
|
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
|
|
package/dist/lsp/runmat_lsp.js
CHANGED
|
@@ -405,11 +405,11 @@ export function setCompatMode(mode) {
|
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
function __wbg_adapter_32(arg0, arg1, arg2) {
|
|
408
|
-
wasm.
|
|
408
|
+
wasm.closure2649_externref_shim(arg0, arg1, arg2);
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
function __wbg_adapter_120(arg0, arg1, arg2, arg3) {
|
|
412
|
-
wasm.
|
|
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.
|
|
689
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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
|
|
27
|
-
export const
|
|
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.
|
|
543
|
+
wasm.closure5676_externref_shim(arg0, arg1, arg2);
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
547
|
-
wasm.
|
|
547
|
+
wasm.closure5683_externref_shim(arg0, arg1, arg2);
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
function __wbg_adapter_558(arg0, arg1, arg2, arg3) {
|
|
551
|
-
wasm.
|
|
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
|
|
2060
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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
|
|
2065
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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
|
|
62
|
-
export const
|
|
63
|
-
export const
|
|
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
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
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.
|
|
535
|
+
wasm.closure5676_externref_shim(arg0, arg1, arg2);
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
539
|
-
wasm.
|
|
539
|
+
wasm.closure5683_externref_shim(arg0, arg1, arg2);
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
function __wbg_adapter_558(arg0, arg1, arg2, arg3) {
|
|
543
|
-
wasm.
|
|
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.
|
|
1832
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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.
|
|
1836
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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) {
|
|
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
|
|
62
|
-
export const
|
|
63
|
-
export const
|
|
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;
|