@manifest-configuration-language/browser 0.3.22 → 0.3.23
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 +5 -5
- package/dist/index.d.ts +6 -0
- package/dist/index.js +4 -0
- package/dist/limits.d.ts +10 -0
- package/dist/mcl.wasm +2 -2
- package/dist/project.d.ts +66 -0
- package/dist/project.js +170 -0
- package/dist/protocol.d.ts +185 -0
- package/dist/protocol.js +2 -0
- package/dist/runtime.d.ts +81 -0
- package/dist/runtime.js +605 -0
- package/dist/worker.d.ts +41 -0
- package/dist/worker.js +115 -0
- package/package.json +11 -7
- package/src/index.d.ts +0 -250
- package/src/index.js +0 -807
- package/src/protocol.d.ts +0 -206
- package/src/worker.js +0 -204
- /package/{src → dist}/limits.js +0 -0
package/dist/worker.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { expose } from "comlink";
|
|
2
|
+
// ---------------------------------------------------------------------------
|
|
3
|
+
// Module-level state
|
|
4
|
+
// ---------------------------------------------------------------------------
|
|
5
|
+
// Saved fetch so network lockdown does not affect WASM loading.
|
|
6
|
+
const runtimeFetch = globalThis.fetch.bind(globalThis);
|
|
7
|
+
const networkAPINames = [
|
|
8
|
+
"Worker",
|
|
9
|
+
"SharedWorker",
|
|
10
|
+
"XMLHttpRequest",
|
|
11
|
+
"WebSocket",
|
|
12
|
+
"EventSource",
|
|
13
|
+
"WebTransport",
|
|
14
|
+
"WebSocketStream",
|
|
15
|
+
"RTCPeerConnection",
|
|
16
|
+
"importScripts",
|
|
17
|
+
];
|
|
18
|
+
const originalNetworkAPIs = new Map(networkAPINames
|
|
19
|
+
.filter((name) => typeof globalThis[name] === "function")
|
|
20
|
+
.map((name) => [name, globalThis[name]]));
|
|
21
|
+
let initializationPromise;
|
|
22
|
+
let wasmExitPromise;
|
|
23
|
+
// ---------------------------------------------------------------------------
|
|
24
|
+
// Network lockdown (defence-in-depth; Go code must not reach the network)
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
function denyNetworkAccess() {
|
|
27
|
+
globalThis.fetch = () => Promise.reject(new TypeError("Network access is disabled in the MCL runtime"));
|
|
28
|
+
for (const [name] of originalNetworkAPIs) {
|
|
29
|
+
Object.defineProperty(globalThis, name, {
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: function MclNetworkAccessDenied() {
|
|
33
|
+
throw new TypeError("Network access is disabled in the MCL runtime");
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
// ---------------------------------------------------------------------------
|
|
39
|
+
// WASM initialisation
|
|
40
|
+
// ---------------------------------------------------------------------------
|
|
41
|
+
function waitForWasmReady() {
|
|
42
|
+
return new Promise((resolve) => {
|
|
43
|
+
Object.defineProperty(globalThis, "mclWasmReady", {
|
|
44
|
+
configurable: true,
|
|
45
|
+
set(value) {
|
|
46
|
+
Object.defineProperty(globalThis, "mclWasmReady", {
|
|
47
|
+
configurable: true,
|
|
48
|
+
writable: true,
|
|
49
|
+
value,
|
|
50
|
+
});
|
|
51
|
+
if (value === true)
|
|
52
|
+
resolve();
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
// ---------------------------------------------------------------------------
|
|
58
|
+
// WorkerApi implementation
|
|
59
|
+
// ---------------------------------------------------------------------------
|
|
60
|
+
const api = {
|
|
61
|
+
async initialize({ wasmURL, wasmExecURL }) {
|
|
62
|
+
if (initializationPromise)
|
|
63
|
+
return initializationPromise;
|
|
64
|
+
initializationPromise = (async () => {
|
|
65
|
+
// Dynamic import of wasm_exec.js so Go is available in this scope.
|
|
66
|
+
self.postMessage({ type: "status", status: "fetching" });
|
|
67
|
+
await import(wasmExecURL);
|
|
68
|
+
const go = new globalThis.Go();
|
|
69
|
+
const response = await runtimeFetch(wasmURL);
|
|
70
|
+
if (!response.ok)
|
|
71
|
+
throw new Error(`Unable to load MCL WebAssembly: ${response.status}`);
|
|
72
|
+
// Lock down network access before the Go runtime starts.
|
|
73
|
+
denyNetworkAccess();
|
|
74
|
+
let instance;
|
|
75
|
+
try {
|
|
76
|
+
self.postMessage({ type: "status", status: "compiling" });
|
|
77
|
+
({ instance } = await WebAssembly.instantiateStreaming(response.clone(), go.importObject));
|
|
78
|
+
}
|
|
79
|
+
catch {
|
|
80
|
+
({ instance } = await WebAssembly.instantiate(await response.arrayBuffer(), go.importObject));
|
|
81
|
+
}
|
|
82
|
+
const wasmReady = waitForWasmReady();
|
|
83
|
+
self.postMessage({ type: "status", status: "initializing" });
|
|
84
|
+
wasmExitPromise = go.run(instance).then(() => {
|
|
85
|
+
throw new Error("MCL WebAssembly exited unexpectedly");
|
|
86
|
+
});
|
|
87
|
+
wasmExitPromise.catch((error) => {
|
|
88
|
+
self.postMessage({
|
|
89
|
+
type: "fatal",
|
|
90
|
+
message: error instanceof Error ? error.message : String(error),
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
await Promise.race([
|
|
94
|
+
wasmReady,
|
|
95
|
+
wasmExitPromise.then(() => {
|
|
96
|
+
throw new Error("MCL WebAssembly exited before initialization completed");
|
|
97
|
+
}),
|
|
98
|
+
]);
|
|
99
|
+
self.postMessage({ type: "status", status: "ready" });
|
|
100
|
+
})().catch((error) => {
|
|
101
|
+
// Reset so a retry attempt can call initialize() again.
|
|
102
|
+
initializationPromise = undefined;
|
|
103
|
+
throw error;
|
|
104
|
+
});
|
|
105
|
+
return initializationPromise;
|
|
106
|
+
},
|
|
107
|
+
updateProject(projectId, updateJSON, binaryFiles) {
|
|
108
|
+
return JSON.parse(globalThis.mclWasm.updateProject(projectId, updateJSON, binaryFiles));
|
|
109
|
+
},
|
|
110
|
+
run(requestJSON, projectId) {
|
|
111
|
+
return JSON.parse(globalThis.mclWasm.run(requestJSON, {}, projectId));
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
expose(api);
|
|
115
|
+
// (no re-exports needed here)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manifest-configuration-language/browser",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.23",
|
|
4
4
|
"description": "Run MCL projects in a browser Web Worker using the Go WebAssembly runtime.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -10,31 +10,35 @@
|
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist",
|
|
13
|
-
"src",
|
|
14
13
|
"README.md"
|
|
15
14
|
],
|
|
16
15
|
"type": "module",
|
|
17
16
|
"exports": {
|
|
18
17
|
".": {
|
|
19
|
-
"types": "./
|
|
20
|
-
"import": "./
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
21
20
|
}
|
|
22
21
|
},
|
|
23
22
|
"publishConfig": {
|
|
24
23
|
"access": "public"
|
|
25
24
|
},
|
|
26
25
|
"dependencies": {
|
|
26
|
+
"comlink": "^4.4.2",
|
|
27
27
|
"p-queue": "9.1.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"
|
|
30
|
+
"@arethetypeswrong/cli": "^0.18.0",
|
|
31
|
+
"json-schema-to-typescript": "16.0.0",
|
|
32
|
+
"publint": "^0.3.0",
|
|
33
|
+
"typescript": "^7.0.2"
|
|
31
34
|
},
|
|
32
35
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
36
|
+
"node": ">=26.13.0"
|
|
34
37
|
},
|
|
35
38
|
"scripts": {
|
|
36
39
|
"build:wasm": "node ./scripts/build-wasm.mjs",
|
|
40
|
+
"build": "tsc -p tsconfig.json",
|
|
37
41
|
"generate:protocol": "node ./scripts/generate-protocol.mjs",
|
|
38
|
-
"test:unit": "node --test ./test
|
|
42
|
+
"test:unit": "pnpm run build && node --test ./test/*.test.mjs"
|
|
39
43
|
}
|
|
40
44
|
}
|
package/src/index.d.ts
DELETED
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
CheckResult,
|
|
3
|
-
CompletionItem as ProtocolCompletionItem,
|
|
4
|
-
CompletionPosition as ProtocolCompletionPosition,
|
|
5
|
-
CompletionResult as ProtocolCompletionResult,
|
|
6
|
-
DefinitionLocation as ProtocolDefinitionLocation,
|
|
7
|
-
DefinitionResult as ProtocolDefinitionResult,
|
|
8
|
-
Error as ProtocolError,
|
|
9
|
-
EvaluateResult,
|
|
10
|
-
FormatResult,
|
|
11
|
-
HoverInfo as ProtocolHoverInfo,
|
|
12
|
-
HoverResult as ProtocolHoverResult,
|
|
13
|
-
LintDiagnostic as ProtocolLintDiagnostic,
|
|
14
|
-
LintCodeAction as ProtocolLintCodeAction,
|
|
15
|
-
ParseResult,
|
|
16
|
-
RelatedLocation as ProtocolRelatedLocation,
|
|
17
|
-
ReferenceLocation as ProtocolReferenceLocation,
|
|
18
|
-
ReferencesResult as ProtocolReferencesResult,
|
|
19
|
-
RenderResult,
|
|
20
|
-
RenameEdit as ProtocolRenameEdit,
|
|
21
|
-
RenameResult as ProtocolRenameResult,
|
|
22
|
-
RenameFileImportsResult as ProtocolRenameFileImportsResult,
|
|
23
|
-
Request as WasmRequest,
|
|
24
|
-
SourceRange as ProtocolSourceRange,
|
|
25
|
-
SourceMap as ProtocolSourceMap,
|
|
26
|
-
SourceMapEntry as ProtocolSourceMapEntry,
|
|
27
|
-
SourceMapOrigin as ProtocolSourceMapOrigin,
|
|
28
|
-
} from "./protocol.js";
|
|
29
|
-
|
|
30
|
-
export type MclOperation = WasmRequest["operation"];
|
|
31
|
-
|
|
32
|
-
export declare const maxSourceBytes: number;
|
|
33
|
-
export declare const maxSourceMapBytes: number;
|
|
34
|
-
export declare const maxRenameNameLength: number;
|
|
35
|
-
export declare const maxProjectFiles: number;
|
|
36
|
-
export declare const maxProjectFileBytes: number;
|
|
37
|
-
export declare const maxProjectBytes: number;
|
|
38
|
-
export declare const maxProjectPathLength: number;
|
|
39
|
-
export declare const maxProjectPathDepth: number;
|
|
40
|
-
export declare function isValidProjectPath(path: unknown): path is string;
|
|
41
|
-
export declare function isValidProjectFileSet(paths: readonly string[]): boolean;
|
|
42
|
-
|
|
43
|
-
/** Root-relative project files passed to MCL's in-memory session filesystem. Uint8Array values are copied before transfer so callers can reuse them. */
|
|
44
|
-
export type ProjectFile = string | Uint8Array;
|
|
45
|
-
export type ProjectFiles = Readonly<Record<string, ProjectFile>>;
|
|
46
|
-
|
|
47
|
-
export type MclError = ProtocolError;
|
|
48
|
-
|
|
49
|
-
export type LintDiagnostic = ProtocolLintDiagnostic;
|
|
50
|
-
export type LintCodeAction = ProtocolLintCodeAction;
|
|
51
|
-
export type CompletionPosition = ProtocolCompletionPosition;
|
|
52
|
-
export type CompletionItem = ProtocolCompletionItem;
|
|
53
|
-
export type CompletionResult = ProtocolCompletionResult;
|
|
54
|
-
export type DefinitionResult = ProtocolDefinitionResult;
|
|
55
|
-
export type DefinitionLocation = ProtocolDefinitionLocation;
|
|
56
|
-
export type HoverResult = ProtocolHoverResult;
|
|
57
|
-
export type HoverInfo = ProtocolHoverInfo;
|
|
58
|
-
export type RenameEdit = ProtocolRenameEdit;
|
|
59
|
-
export type RenameResult = ProtocolRenameResult;
|
|
60
|
-
export type RenameFileImportsResult = ProtocolRenameFileImportsResult;
|
|
61
|
-
export type ReferenceLocation = ProtocolReferenceLocation;
|
|
62
|
-
export type ReferencesResult = ProtocolReferencesResult;
|
|
63
|
-
export type SourceRange = ProtocolSourceRange;
|
|
64
|
-
export type SourceMap = ProtocolSourceMap;
|
|
65
|
-
export type SourceMapEntry = ProtocolSourceMapEntry;
|
|
66
|
-
export type SourceMapOrigin = ProtocolSourceMapOrigin;
|
|
67
|
-
|
|
68
|
-
export type MclResult =
|
|
69
|
-
| ({ operation: "parse" } & ParseResult)
|
|
70
|
-
| { operation: "lint"; diagnostics: ProtocolLintDiagnostic[] }
|
|
71
|
-
| ({ operation: "completion" } & ProtocolCompletionResult)
|
|
72
|
-
| ({ operation: "definition" } & ProtocolDefinitionResult)
|
|
73
|
-
| ({ operation: "hover" } & ProtocolHoverResult)
|
|
74
|
-
| ({ operation: "references" } & ProtocolReferencesResult)
|
|
75
|
-
| ({ operation: "rename" } & ProtocolRenameResult)
|
|
76
|
-
| ({ operation: "renameFileImports" } & ProtocolRenameFileImportsResult)
|
|
77
|
-
| ({ operation: "format" } & FormatResult)
|
|
78
|
-
| ({ operation: "check" } & CheckResult)
|
|
79
|
-
| ({ operation: "evaluate" } & EvaluateResult)
|
|
80
|
-
| ({ operation: "render" } & RenderResult);
|
|
81
|
-
|
|
82
|
-
export interface RuntimeOptions {
|
|
83
|
-
initializationTimeoutMs?: number;
|
|
84
|
-
operationTimeoutMs?: number;
|
|
85
|
-
/** Receives local WebAssembly initialization state changes without project data. */
|
|
86
|
-
onStatus?: (event: RuntimeStatusEvent) => void;
|
|
87
|
-
/** Receives local operation latency measurements without source or project data. */
|
|
88
|
-
onOperation?: (event: RuntimeOperationEvent) => void;
|
|
89
|
-
workerFactory?: () => Worker;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export type RuntimeStatus = "fetching" | "compiling" | "initializing" | "ready" | "error";
|
|
93
|
-
export type RuntimeStatusEvent = {
|
|
94
|
-
status: RuntimeStatus;
|
|
95
|
-
workerGeneration: number;
|
|
96
|
-
initializationDurationMs?: number;
|
|
97
|
-
};
|
|
98
|
-
export type RuntimeOperationOutcome = "success" | "error" | "aborted";
|
|
99
|
-
export type RuntimeOperationEvent = {
|
|
100
|
-
operation: MclOperation;
|
|
101
|
-
durationMs: number;
|
|
102
|
-
queueWaitMs: number;
|
|
103
|
-
executionDurationMs: number;
|
|
104
|
-
wasmDurationMs?: number;
|
|
105
|
-
workerGeneration?: number;
|
|
106
|
-
outcome: RuntimeOperationOutcome;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export interface MclRuntime {
|
|
110
|
-
openProject(files: ProjectFiles): MclProject;
|
|
111
|
-
warmUp(options?: RequestOptions): Promise<void>;
|
|
112
|
-
parse(source: string, options?: RequestOptions): Promise<MclResult & { operation: "parse" }>;
|
|
113
|
-
lint(source: string, options?: RequestOptions): Promise<MclResult & { operation: "lint" }>;
|
|
114
|
-
format(source: string, options?: RequestOptions): Promise<MclResult & { operation: "format" }>;
|
|
115
|
-
check(
|
|
116
|
-
source: string,
|
|
117
|
-
files?: ProjectFiles,
|
|
118
|
-
options?: RequestOptions,
|
|
119
|
-
): Promise<MclResult & { operation: "check" }>;
|
|
120
|
-
evaluate(
|
|
121
|
-
source: string,
|
|
122
|
-
files?: ProjectFiles,
|
|
123
|
-
options?: RequestOptions,
|
|
124
|
-
): Promise<MclResult & { operation: "evaluate" }>;
|
|
125
|
-
render(
|
|
126
|
-
source: string,
|
|
127
|
-
files?: ProjectFiles,
|
|
128
|
-
options?: RequestOptions,
|
|
129
|
-
): Promise<MclResult & { operation: "render" }>;
|
|
130
|
-
definition(
|
|
131
|
-
source: string,
|
|
132
|
-
options: PositionRequestOptions,
|
|
133
|
-
): Promise<MclResult & { operation: "definition" }>;
|
|
134
|
-
definition(
|
|
135
|
-
source: string,
|
|
136
|
-
files: ProjectFiles | undefined,
|
|
137
|
-
options: PositionRequestOptions,
|
|
138
|
-
): Promise<MclResult & { operation: "definition" }>;
|
|
139
|
-
hover(
|
|
140
|
-
source: string,
|
|
141
|
-
options: PositionRequestOptions,
|
|
142
|
-
): Promise<MclResult & { operation: "hover" }>;
|
|
143
|
-
hover(
|
|
144
|
-
source: string,
|
|
145
|
-
files: ProjectFiles | undefined,
|
|
146
|
-
options: PositionRequestOptions,
|
|
147
|
-
): Promise<MclResult & { operation: "hover" }>;
|
|
148
|
-
references(
|
|
149
|
-
source: string,
|
|
150
|
-
options: PositionRequestOptions,
|
|
151
|
-
): Promise<MclResult & { operation: "references" }>;
|
|
152
|
-
references(
|
|
153
|
-
source: string,
|
|
154
|
-
files: ProjectFiles | undefined,
|
|
155
|
-
options: PositionRequestOptions,
|
|
156
|
-
): Promise<MclResult & { operation: "references" }>;
|
|
157
|
-
rename(
|
|
158
|
-
source: string,
|
|
159
|
-
options: RenameRequestOptions,
|
|
160
|
-
): Promise<MclResult & { operation: "rename" }>;
|
|
161
|
-
rename(
|
|
162
|
-
source: string,
|
|
163
|
-
files: ProjectFiles | undefined,
|
|
164
|
-
options: RenameRequestOptions,
|
|
165
|
-
): Promise<MclResult & { operation: "rename" }>;
|
|
166
|
-
renameFileImports(
|
|
167
|
-
source: string,
|
|
168
|
-
options: FileRenameRequestOptions,
|
|
169
|
-
): Promise<MclResult & { operation: "renameFileImports" }>;
|
|
170
|
-
renameFileImports(
|
|
171
|
-
source: string,
|
|
172
|
-
files: ProjectFiles | undefined,
|
|
173
|
-
options: FileRenameRequestOptions,
|
|
174
|
-
): Promise<MclResult & { operation: "renameFileImports" }>;
|
|
175
|
-
dispose(): void;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export interface MclProject {
|
|
179
|
-
/** Returns a new complete snapshot handle for this Worker session. Only changed files are sent on the next operation. */
|
|
180
|
-
update(files: ProjectFiles): MclProject;
|
|
181
|
-
parse(options?: ProjectOperationOptions): Promise<MclResult & { operation: "parse" }>;
|
|
182
|
-
lint(options?: ProjectOperationOptions): Promise<MclResult & { operation: "lint" }>;
|
|
183
|
-
complete(options: ProjectCompletionOptions): Promise<MclResult & { operation: "completion" }>;
|
|
184
|
-
definition(options: ProjectNavigationOptions): Promise<MclResult & { operation: "definition" }>;
|
|
185
|
-
hover(options: ProjectNavigationOptions): Promise<MclResult & { operation: "hover" }>;
|
|
186
|
-
references(options: ProjectNavigationOptions): Promise<MclResult & { operation: "references" }>;
|
|
187
|
-
rename(options: ProjectRenameOptions): Promise<MclResult & { operation: "rename" }>;
|
|
188
|
-
renameFileImports(
|
|
189
|
-
options: ProjectFileRenameOptions,
|
|
190
|
-
): Promise<MclResult & { operation: "renameFileImports" }>;
|
|
191
|
-
format(options?: ProjectOperationOptions): Promise<MclResult & { operation: "format" }>;
|
|
192
|
-
check(options?: ProjectOperationOptions): Promise<MclResult & { operation: "check" }>;
|
|
193
|
-
evaluate(options?: ProjectOperationOptions): Promise<MclResult & { operation: "evaluate" }>;
|
|
194
|
-
render(options?: ProjectOperationOptions): Promise<MclResult & { operation: "render" }>;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export interface RequestOptions {
|
|
198
|
-
signal?: AbortSignal;
|
|
199
|
-
timeoutMs?: number;
|
|
200
|
-
/** Queue requests ahead of default-priority work or yield to interactive requests. */
|
|
201
|
-
priority?: "interactive" | "background";
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export interface ProjectOperationOptions extends RequestOptions {
|
|
205
|
-
entrypoint?: string;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export interface ProjectCompletionOptions extends ProjectOperationOptions {
|
|
209
|
-
position: CompletionPosition;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export interface ProjectNavigationOptions extends ProjectOperationOptions {
|
|
213
|
-
position: CompletionPosition;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export interface ProjectRenameOptions extends ProjectNavigationOptions {
|
|
217
|
-
newName: string;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface ProjectFileRenameOptions extends ProjectOperationOptions {
|
|
221
|
-
oldPath: string;
|
|
222
|
-
newPath: string;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export interface PositionRequestOptions extends RequestOptions {
|
|
226
|
-
entrypoint?: string;
|
|
227
|
-
position: CompletionPosition;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export interface RenameRequestOptions extends PositionRequestOptions {
|
|
231
|
-
newName: string;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
export interface FileRenameRequestOptions extends RequestOptions {
|
|
235
|
-
entrypoint?: string;
|
|
236
|
-
oldPath: string;
|
|
237
|
-
newPath: string;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export declare class MclRuntimeError extends Error {
|
|
241
|
-
readonly code: string;
|
|
242
|
-
readonly path?: string;
|
|
243
|
-
readonly line?: number;
|
|
244
|
-
readonly column?: number;
|
|
245
|
-
readonly endLine?: number;
|
|
246
|
-
readonly endColumn?: number;
|
|
247
|
-
readonly related?: ProtocolRelatedLocation[];
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
export declare function createMclRuntime(options?: RuntimeOptions): MclRuntime;
|