wasm-idle 1.1.0 → 1.2.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.
- package/README.md +267 -112
- package/dist/container/bash-profile.d.ts +80 -0
- package/dist/container/bash-profile.js +328 -0
- package/dist/container/binding.d.ts +39 -0
- package/dist/container/binding.js +331 -0
- package/dist/container/clang-runtime.d.ts +42 -0
- package/dist/container/clang-runtime.js +561 -0
- package/dist/container/client.d.ts +14 -0
- package/dist/container/client.js +185 -0
- package/dist/container/explorer.d.ts +31 -0
- package/dist/container/explorer.js +112 -0
- package/dist/container/index.d.ts +11 -0
- package/dist/container/index.js +11 -0
- package/dist/container/owner-worker.d.ts +19 -0
- package/dist/container/owner-worker.js +464 -0
- package/dist/container/protocol.d.ts +84 -0
- package/dist/container/protocol.js +28 -0
- package/dist/container/runtime-adapter.d.ts +75 -0
- package/dist/container/runtime-adapter.js +537 -0
- package/dist/container/shell-control.d.ts +49 -0
- package/dist/container/shell-control.js +360 -0
- package/dist/container/workspace.d.ts +12 -0
- package/dist/container/workspace.js +29 -0
- package/dist/index.d.ts +1 -1
- package/dist/playground/assetBridge.js +111 -33
- package/dist/playground/assets.d.ts +10 -2
- package/dist/playground/c3.js +22 -0
- package/dist/playground/c3Memory.d.ts +19 -0
- package/dist/playground/c3Memory.js +117 -0
- package/dist/playground/cachedClang.js +143 -34
- package/dist/playground/clang.d.ts +5 -1
- package/dist/playground/clang.js +61 -5
- package/dist/playground/clangAssetIntegrity.js +6 -6
- package/dist/playground/clangWorkerProtocol.d.ts +12 -1
- package/dist/playground/cobol.d.ts +3 -0
- package/dist/playground/cobol.js +10 -1
- package/dist/playground/commonlispAssets.d.ts +2 -2
- package/dist/playground/compiledArtifactCache.d.ts +3 -1
- package/dist/playground/compiledArtifactCache.js +31 -5
- package/dist/playground/compiledLldb.d.ts +41 -0
- package/dist/playground/compiledLldb.js +167 -0
- package/dist/playground/d.d.ts +10 -2
- package/dist/playground/d.js +161 -14
- package/dist/playground/debugDeadline.d.ts +12 -0
- package/dist/playground/debugDeadline.js +34 -0
- package/dist/playground/debugMailbox.d.ts +12 -0
- package/dist/playground/debugMailbox.js +77 -0
- package/dist/playground/dotnet.js +6 -8
- package/dist/playground/fortran.d.ts +3 -0
- package/dist/playground/fortran.js +10 -1
- package/dist/playground/go.js +23 -7
- package/dist/playground/goDebugInstrumentation.js +207 -97
- package/dist/playground/java-debug-FMHDKUN6.js +124 -0
- package/dist/playground/java-debug-notices.txt +492 -0
- package/dist/playground/java.d.ts +17 -1
- package/dist/playground/java.js +162 -5
- package/dist/playground/javaDebug.d.ts +62 -0
- package/dist/playground/javaDebug.js +305 -0
- package/dist/playground/javaDebugBridge.d.ts +6 -0
- package/dist/playground/javaDebugBridge.js +250 -0
- package/dist/playground/javaDebugSource.d.ts +9 -0
- package/dist/playground/javaDebugSource.js +4 -0
- package/dist/playground/javaRuntimeErrors.d.ts +9 -0
- package/dist/playground/javaRuntimeErrors.js +93 -0
- package/dist/playground/lean4Assets.d.ts +1 -25
- package/dist/playground/lean4Assets.js +2 -123
- package/dist/playground/lfortran.js +10 -0
- package/dist/playground/lfortranAssets.d.ts +2 -2
- package/dist/playground/lldbSession.d.ts +23 -2
- package/dist/playground/lldbSession.js +278 -58
- package/dist/playground/lldbSourcePath.d.ts +2 -0
- package/dist/playground/lldbSourcePath.js +9 -0
- package/dist/playground/lua.d.ts +20 -1
- package/dist/playground/lua.js +190 -8
- package/dist/playground/luaDebug.d.ts +1 -0
- package/dist/playground/luaDebug.js +1 -0
- package/dist/playground/nim.d.ts +1 -0
- package/dist/playground/nim.js +30 -0
- package/dist/playground/objectivec.d.ts +10 -6
- package/dist/playground/objectivec.js +85 -10
- package/dist/playground/options.d.ts +12 -4
- package/dist/playground/python.d.ts +8 -1
- package/dist/playground/python.js +89 -6
- package/dist/playground/ruby.d.ts +10 -1
- package/dist/playground/ruby.js +66 -1
- package/dist/playground/rubyDebug.d.ts +21 -0
- package/dist/playground/rubyDebug.js +128 -0
- package/dist/playground/runtimeAssetCache.d.ts +1 -32
- package/dist/playground/runtimeAssetCache.js +1 -193
- package/dist/playground/runtimeSession.d.ts +2 -2
- package/dist/playground/runtimeSession.js +11 -11
- package/dist/playground/rust.d.ts +10 -0
- package/dist/playground/rust.js +230 -51
- package/dist/playground/sandbox.d.ts +8 -1
- package/dist/playground/staticStdinRing.d.ts +2 -1
- package/dist/playground/staticStdinRing.js +21 -10
- package/dist/playground/staticWorkerRuntime.d.ts +15 -1
- package/dist/playground/staticWorkerRuntime.js +127 -19
- package/dist/playground/stdinBuffer.d.ts +1 -1
- package/dist/playground/stdinBuffer.js +19 -2
- package/dist/playground/tinygo.d.ts +3 -0
- package/dist/playground/tinygo.js +88 -6
- package/dist/playground/typescript.js +8 -0
- package/dist/playground/v.d.ts +6 -2
- package/dist/playground/v.js +76 -13
- package/dist/playground/wasmAwkVersion.d.ts +13 -13
- package/dist/playground/wasmAwkVersion.js +4 -4
- package/dist/playground/wasmBqnVersion.d.ts +2 -2
- package/dist/playground/wasmBqnVersion.js +2 -2
- package/dist/playground/wasmC3Version.d.ts +2 -2
- package/dist/playground/wasmC3Version.js +2 -2
- package/dist/playground/wasmClojureScriptVersion.d.ts +2 -2
- package/dist/playground/wasmClojureScriptVersion.js +2 -2
- package/dist/playground/wasmCommonLispVersion.d.ts +2 -2
- package/dist/playground/wasmCommonLispVersion.js +2 -2
- package/dist/playground/wasmDIntegrity.d.ts +5 -5
- package/dist/playground/wasmDIntegrity.js +5 -5
- package/dist/playground/wasmDVersion.d.ts +16 -1
- package/dist/playground/wasmDVersion.js +16 -1
- package/dist/playground/wasmDebugVersion.d.ts +1 -1
- package/dist/playground/wasmDebugVersion.js +1 -1
- package/dist/playground/wasmForthVersion.d.ts +2 -2
- package/dist/playground/wasmForthVersion.js +2 -2
- package/dist/playground/wasmGleamVersion.d.ts +2 -2
- package/dist/playground/wasmGleamVersion.js +2 -2
- package/dist/playground/wasmGrainVersion.d.ts +2 -2
- package/dist/playground/wasmGrainVersion.js +2 -2
- package/dist/playground/wasmJVersion.d.ts +2 -2
- package/dist/playground/wasmJVersion.js +2 -2
- package/dist/playground/wasmJanetVersion.js +2 -2
- package/dist/playground/wasmJuliaVersion.js +2 -2
- package/dist/playground/wasmLean4Version.d.ts +1 -110
- package/dist/playground/wasmLean4Version.js +2 -111
- package/dist/playground/wasmLfortranVersion.d.ts +2 -2
- package/dist/playground/wasmLfortranVersion.js +2 -2
- package/dist/playground/wasmLuaVersion.d.ts +1 -1
- package/dist/playground/wasmLuaVersion.js +1 -1
- package/dist/playground/wasmNimVersion.d.ts +9 -9
- package/dist/playground/wasmNimVersion.js +6 -6
- package/dist/playground/wasmOcamlVersion.d.ts +2 -2
- package/dist/playground/wasmOcamlVersion.js +1 -1
- package/dist/playground/wasmPascalVersion.js +2 -2
- package/dist/playground/wasmPerlVersion.js +2 -2
- package/dist/playground/wasmPrologVersion.d.ts +2 -2
- package/dist/playground/wasmPrologVersion.js +2 -2
- package/dist/playground/wasmReScriptVersion.d.ts +2 -2
- package/dist/playground/wasmReScriptVersion.js +2 -2
- package/dist/playground/wasmRustVersion.d.ts +26 -38
- package/dist/playground/wasmRustVersion.js +25 -40
- package/dist/playground/wasmTclVersion.d.ts +4 -4
- package/dist/playground/wasmTclVersion.js +2 -2
- package/dist/playground/wasmTinyGoVersion.d.ts +14 -14
- package/dist/playground/wasmTinyGoVersion.js +14 -14
- package/dist/playground/wasmTypeScriptVersion.d.ts +5 -5
- package/dist/playground/wasmTypeScriptVersion.js +5 -5
- package/dist/playground/worker/cachedClangCompile.js +52 -4
- package/dist/playground/worker/cachedClangExecute.js +6 -5
- package/dist/playground/worker/clang.js +33 -11
- package/dist/playground/worker/cobol.js +3 -3
- package/dist/playground/worker/d.js +63 -7
- package/dist/playground/worker/fortran.js +3 -3
- package/dist/playground/worker/go.js +16 -5
- package/dist/playground/worker/haskell.js +10 -7
- package/dist/playground/worker/java.js +263 -45
- package/dist/playground/worker/javaDebugEvaluator.d.ts +16 -0
- package/dist/playground/worker/javaDebugEvaluator.js +44 -0
- package/dist/playground/worker/javaDebugRuntime.d.ts +24 -0
- package/dist/playground/worker/javaDebugRuntime.js +315 -0
- package/dist/playground/worker/javaOutput.d.ts +11 -0
- package/dist/playground/worker/javaOutput.js +54 -0
- package/dist/playground/worker/lua.js +15 -3
- package/dist/playground/worker/php.js +15 -9
- package/dist/playground/worker/python.js +102 -30
- package/dist/playground/worker/pythonExecution.js +17 -1
- package/dist/playground/worker/pythonWorkspaceFiles.d.ts +6 -0
- package/dist/playground/worker/pythonWorkspaceFiles.js +26 -0
- package/dist/playground/worker/pythonWorkspaceImports.d.ts +4 -0
- package/dist/playground/worker/pythonWorkspaceImports.js +129 -0
- package/dist/playground/worker/r.js +13 -6
- package/dist/playground/worker/ruby.js +13 -0
- package/dist/playground/worker/rubyDebugPreview.d.ts +2 -0
- package/dist/playground/worker/rubyDebugPreview.js +80 -0
- package/dist/playground/worker/rubyTracepoint.d.ts +16 -0
- package/dist/playground/worker/rubyTracepoint.js +162 -0
- package/dist/playground/worker/rust.js +38 -3
- package/dist/playground/worker/sqlite.js +4 -3
- package/dist/playground/worker/tinygo.js +11 -3
- package/dist/playground/worker/typescript.js +2 -3
- package/dist/playground/worker/v.js +32 -7
- package/dist/playground/worker/wat.js +2 -3
- package/dist/playground/worker/zig.js +20 -6
- package/dist/playground/workerSession.d.ts +1 -28
- package/dist/playground/workerSession.js +1 -164
- package/dist/playground/zig.js +4 -0
- package/package.json +66 -15
- package/dist/playground/worker/python.runtime.cases.d.ts +0 -1
- package/dist/playground/worker/python.runtime.cases.js +0 -374
|
@@ -1,164 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const location = event.filename && event.lineno ? ` (${event.filename}:${event.lineno}:${event.colno})` : '';
|
|
3
|
-
return `${label} worker script error: ${event.message || 'unknown error'}${location}`;
|
|
4
|
-
};
|
|
5
|
-
export class WorkerSession {
|
|
6
|
-
options;
|
|
7
|
-
worker = null;
|
|
8
|
-
activeOperation = null;
|
|
9
|
-
constructor(options) {
|
|
10
|
-
this.options = options;
|
|
11
|
-
}
|
|
12
|
-
attach(worker, operation) {
|
|
13
|
-
if (operation !== undefined && !this.isActive(operation)) {
|
|
14
|
-
// A retired initializer must never replace the current operation's worker.
|
|
15
|
-
if (this.worker !== worker)
|
|
16
|
-
this.retireWorker(worker);
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
if (this.worker === worker)
|
|
20
|
-
return worker;
|
|
21
|
-
if (this.worker) {
|
|
22
|
-
const replacedWorker = this.disposeWorker();
|
|
23
|
-
if (replacedWorker)
|
|
24
|
-
this.notifyDisposed(replacedWorker);
|
|
25
|
-
}
|
|
26
|
-
if (operation !== undefined && !this.isActive(operation)) {
|
|
27
|
-
if (this.worker !== worker)
|
|
28
|
-
this.retireWorker(worker);
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
this.worker = worker;
|
|
32
|
-
worker.onerror = (event) => {
|
|
33
|
-
if (this.worker !== worker)
|
|
34
|
-
return;
|
|
35
|
-
this.fail(scriptErrorMessage(this.label, event));
|
|
36
|
-
};
|
|
37
|
-
worker.onmessageerror = () => {
|
|
38
|
-
if (this.worker !== worker)
|
|
39
|
-
return;
|
|
40
|
-
this.fail(`${this.label} worker message deserialization failed`);
|
|
41
|
-
};
|
|
42
|
-
return worker;
|
|
43
|
-
}
|
|
44
|
-
load(initialize) {
|
|
45
|
-
return new Promise((resolve, reject) => {
|
|
46
|
-
const token = this.startOperation('load', reject);
|
|
47
|
-
const resolveLoad = () => {
|
|
48
|
-
if (!this.complete(token))
|
|
49
|
-
return;
|
|
50
|
-
resolve();
|
|
51
|
-
};
|
|
52
|
-
const rejectLoad = (reason) => {
|
|
53
|
-
if (!this.isActive(token))
|
|
54
|
-
return;
|
|
55
|
-
this.fail(reason);
|
|
56
|
-
};
|
|
57
|
-
Promise.resolve()
|
|
58
|
-
.then(() => {
|
|
59
|
-
if (!this.isActive(token))
|
|
60
|
-
return;
|
|
61
|
-
return initialize(resolveLoad, rejectLoad, token);
|
|
62
|
-
})
|
|
63
|
-
.catch(rejectLoad);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
waitForLoad(worker, initialize) {
|
|
67
|
-
this.attach(worker);
|
|
68
|
-
return this.load(initialize);
|
|
69
|
-
}
|
|
70
|
-
beginRun(worker, reject) {
|
|
71
|
-
if (worker)
|
|
72
|
-
this.attach(worker);
|
|
73
|
-
return this.startOperation('run', reject);
|
|
74
|
-
}
|
|
75
|
-
complete(operation) {
|
|
76
|
-
if (!this.isActive(operation))
|
|
77
|
-
return false;
|
|
78
|
-
this.activeOperation = null;
|
|
79
|
-
return true;
|
|
80
|
-
}
|
|
81
|
-
release(worker) {
|
|
82
|
-
if (this.worker !== worker)
|
|
83
|
-
return false;
|
|
84
|
-
this.worker = null;
|
|
85
|
-
this.retireWorker(worker);
|
|
86
|
-
return true;
|
|
87
|
-
}
|
|
88
|
-
reset() {
|
|
89
|
-
const worker = this.disposeWorker();
|
|
90
|
-
if (worker)
|
|
91
|
-
this.notifyDisposed(worker);
|
|
92
|
-
}
|
|
93
|
-
terminate(reason = 'Process terminated') {
|
|
94
|
-
const activeOperation = this.activeOperation;
|
|
95
|
-
this.activeOperation = null;
|
|
96
|
-
const worker = this.disposeWorker();
|
|
97
|
-
if (worker)
|
|
98
|
-
this.notifyDisposed(worker);
|
|
99
|
-
activeOperation?.reject(reason);
|
|
100
|
-
}
|
|
101
|
-
get label() {
|
|
102
|
-
return typeof this.options.label === 'function' ? this.options.label() : this.options.label;
|
|
103
|
-
}
|
|
104
|
-
startOperation(kind, reject) {
|
|
105
|
-
const previousOperation = this.activeOperation;
|
|
106
|
-
const token = Symbol(kind);
|
|
107
|
-
this.activeOperation = { kind, token, reject };
|
|
108
|
-
previousOperation?.reject('Worker operation superseded');
|
|
109
|
-
return token;
|
|
110
|
-
}
|
|
111
|
-
isActive(operation) {
|
|
112
|
-
return this.activeOperation?.token === operation;
|
|
113
|
-
}
|
|
114
|
-
fail(reason) {
|
|
115
|
-
const activeOperation = this.activeOperation;
|
|
116
|
-
this.activeOperation = null;
|
|
117
|
-
const worker = this.disposeWorker();
|
|
118
|
-
if (worker)
|
|
119
|
-
this.notifyDisposed(worker);
|
|
120
|
-
activeOperation?.reject(reason);
|
|
121
|
-
}
|
|
122
|
-
notifyDisposed(worker) {
|
|
123
|
-
try {
|
|
124
|
-
this.options.onDispose?.(worker);
|
|
125
|
-
}
|
|
126
|
-
catch {
|
|
127
|
-
// Cleanup must not replace the worker operation result.
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
disposeWorker() {
|
|
131
|
-
const worker = this.worker;
|
|
132
|
-
if (!worker)
|
|
133
|
-
return null;
|
|
134
|
-
this.worker = null;
|
|
135
|
-
this.retireWorker(worker);
|
|
136
|
-
return worker;
|
|
137
|
-
}
|
|
138
|
-
retireWorker(worker) {
|
|
139
|
-
try {
|
|
140
|
-
worker.onmessage = null;
|
|
141
|
-
}
|
|
142
|
-
catch {
|
|
143
|
-
// Handler cleanup is best effort; the active operation must still settle.
|
|
144
|
-
}
|
|
145
|
-
try {
|
|
146
|
-
worker.onerror = null;
|
|
147
|
-
}
|
|
148
|
-
catch {
|
|
149
|
-
// Handler cleanup is best effort; the active operation must still settle.
|
|
150
|
-
}
|
|
151
|
-
try {
|
|
152
|
-
worker.onmessageerror = null;
|
|
153
|
-
}
|
|
154
|
-
catch {
|
|
155
|
-
// Handler cleanup is best effort; the active operation must still settle.
|
|
156
|
-
}
|
|
157
|
-
try {
|
|
158
|
-
worker.terminate();
|
|
159
|
-
}
|
|
160
|
-
catch {
|
|
161
|
-
// The worker is already detached; cleanup remains best effort.
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
1
|
+
export { WorkerSession } from '@wasm-idle/core';
|
package/dist/playground/zig.js
CHANGED
|
@@ -453,6 +453,10 @@ class Zig {
|
|
|
453
453
|
return Promise.reject(this.releaseBeforeSession(activeOperation, 'Zig execution cancelled'));
|
|
454
454
|
}
|
|
455
455
|
({ compileArgs, programArgs } = resolveSandboxExecutionArgs('ZIG', args, options));
|
|
456
|
+
const debugMode = options.debugMode ?? (options.debug ? 'trace' : 'none');
|
|
457
|
+
if (debugMode !== 'none') {
|
|
458
|
+
throw new RuntimeConfigurationError('Zig source debugging is unavailable: the current Wasm compiler does not emit DWARF.');
|
|
459
|
+
}
|
|
456
460
|
limits = resolveExecutionLimits(options.limits);
|
|
457
461
|
const workspaceFiles = options.workspaceFiles ?? [];
|
|
458
462
|
const activePath = options.activePath ?? 'main.zig';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wasm-idle",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A simple web app to run code in the browser",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"workspaces": [
|
|
12
12
|
"packages/*",
|
|
13
|
-
"runtimes/*"
|
|
14
|
-
"apps/*"
|
|
13
|
+
"runtimes/*"
|
|
15
14
|
],
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"acorn": "8.19.0",
|
|
@@ -35,9 +34,10 @@
|
|
|
35
34
|
"@types/sql.js": "^1.4.11",
|
|
36
35
|
"@typescript-eslint/eslint-plugin": "^8.71.1",
|
|
37
36
|
"@typescript-eslint/parser": "^8.71.1",
|
|
38
|
-
"@wasm-idle/
|
|
39
|
-
"@wasm-idle/
|
|
40
|
-
"@wasm-idle/
|
|
37
|
+
"@wasm-idle/container": "0.2.0",
|
|
38
|
+
"@wasm-idle/debug": "1.2.0",
|
|
39
|
+
"@wasm-idle/lsp": "1.2.0",
|
|
40
|
+
"@wasm-idle/terminal": "1.2.0",
|
|
41
41
|
"@wasmer/sdk": "0.10.0",
|
|
42
42
|
"assemblyscript": "0.28.20",
|
|
43
43
|
"esbuild": "0.28.2",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"gh-pages": "^6.3.0",
|
|
49
49
|
"globals": "^17.13.0",
|
|
50
50
|
"jsdom": "^30.1.2",
|
|
51
|
+
"java-parser": "3.0.1",
|
|
51
52
|
"monaco-editor": "^0.55.1",
|
|
52
53
|
"playwright-core": "^1.63.0",
|
|
53
54
|
"prettier": "^3.9.9",
|
|
@@ -68,14 +69,25 @@
|
|
|
68
69
|
},
|
|
69
70
|
"dependencies": {
|
|
70
71
|
"@bjorn3/browser_wasi_shim": "^0.4.2",
|
|
71
|
-
"@wasm-idle/core": "1.
|
|
72
|
-
"@wasm-idle/llvm-core": "1.
|
|
72
|
+
"@wasm-idle/core": "1.2.0",
|
|
73
|
+
"@wasm-idle/llvm-core": "1.2.0",
|
|
73
74
|
"fflate": "0.8.3"
|
|
74
75
|
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@wasm-idle/container": "0.2.0"
|
|
78
|
+
},
|
|
79
|
+
"peerDependenciesMeta": {
|
|
80
|
+
"@wasm-idle/container": {
|
|
81
|
+
"optional": true
|
|
82
|
+
}
|
|
83
|
+
},
|
|
75
84
|
"files": [
|
|
76
85
|
"dist",
|
|
86
|
+
"!dist/playground/container/**",
|
|
87
|
+
"!dist/test-fixtures/**",
|
|
77
88
|
"!dist/**/*.test.*",
|
|
78
|
-
"!dist/**/*.spec.*"
|
|
89
|
+
"!dist/**/*.spec.*",
|
|
90
|
+
"!dist/**/*.cases.*"
|
|
79
91
|
],
|
|
80
92
|
"publishConfig": {
|
|
81
93
|
"tag": "latest"
|
|
@@ -86,11 +98,18 @@
|
|
|
86
98
|
"svelte": "./dist/index.js",
|
|
87
99
|
"import": "./dist/index.js",
|
|
88
100
|
"default": "./dist/index.js"
|
|
101
|
+
},
|
|
102
|
+
"./container": {
|
|
103
|
+
"types": "./dist/container/index.d.ts",
|
|
104
|
+
"import": "./dist/container/index.js",
|
|
105
|
+
"default": "./dist/container/index.js"
|
|
89
106
|
}
|
|
90
107
|
},
|
|
91
108
|
"svelte": "./dist/index.js",
|
|
92
109
|
"types": "./dist/index.d.ts",
|
|
93
110
|
"scripts": {
|
|
111
|
+
"sync:phpantom-lsp": "node scripts/sync-phpantom-lsp.mjs",
|
|
112
|
+
"test:lsp:browser:php": "WASM_IDLE_RUN_REAL_BROWSER_PHP_LSP=1 node --test scripts/phpantom-lsp.browser.test.mjs",
|
|
94
113
|
"dev": "pnpm run prepare:app && vite dev",
|
|
95
114
|
"build:preview": "pnpm run prepare:app && vite build",
|
|
96
115
|
"build": "pnpm run prepare:app && vite build && pnpm run package:root",
|
|
@@ -109,7 +128,6 @@
|
|
|
109
128
|
"prepare:app": "pnpm run build:publish-deps",
|
|
110
129
|
"preview": "vite preview",
|
|
111
130
|
"probe:go-browser": "node scripts/probe-go-browser.mjs",
|
|
112
|
-
"probe:ocaml-browser": "node scripts/probe-ocaml-browser.mjs",
|
|
113
131
|
"probe:rust-browser": "node scripts/probe-rust-browser.mjs",
|
|
114
132
|
"probe:tinygo-browser": "node scripts/probe-tinygo-browser.mjs",
|
|
115
133
|
"probe:tinygo-browser:static": "node scripts/probe-tinygo-browser.mjs",
|
|
@@ -117,6 +135,7 @@
|
|
|
117
135
|
"test:swift-target-consumer": "node --test scripts/probe-swift-target-consumer.test.mjs",
|
|
118
136
|
"sync:pyodide": "node scripts/sync-pyodide.mjs",
|
|
119
137
|
"test:browser:clang-stdin": "WASM_IDLE_RUN_REAL_BROWSER_CLANG_STDIN=1 pnpm exec vitest run src/lib/playground/stdin.playwright.test.ts",
|
|
138
|
+
"test:browser:compiler-options": "WASM_IDLE_REQUIRE_BROWSER_TESTS=1 WASM_IDLE_RUN_REAL_BROWSER_COMPILER_OPTIONS=1 pnpm exec vitest run src/routes/compiler-options.playwright.test.ts",
|
|
120
139
|
"test:browser:fortran": "WASM_IDLE_RUN_REAL_BROWSER_FORTRAN=1 pnpm exec vitest run src/lib/playground/stdin.playwright.test.ts",
|
|
121
140
|
"test:browser:cobol": "WASM_IDLE_RUN_REAL_BROWSER_COBOL=1 pnpm exec vitest run src/lib/playground/stdin.playwright.test.ts",
|
|
122
141
|
"test:browser:v": "WASM_IDLE_RUN_REAL_BROWSER_V=1 pnpm exec vitest run src/lib/playground/stdin.playwright.test.ts -t \"V \"",
|
|
@@ -145,6 +164,7 @@
|
|
|
145
164
|
"test:browser:julia": "WASM_IDLE_RUN_REAL_BROWSER_JULIA=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
|
|
146
165
|
"test:browser:nim": "WASM_IDLE_RUN_REAL_BROWSER_NIM=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
|
|
147
166
|
"test:browser:bash": "WASM_IDLE_RUN_REAL_BROWSER_BASH=1 pnpm exec vitest run src/lib/playground/bash.playwright.test.ts",
|
|
167
|
+
"test:browser:container-sidebar": "WASM_IDLE_RUN_CONTAINER_WEBSITE_BROWSER=1 pnpm exec vitest run src/routes/container-sidebar.playwright.test.ts",
|
|
148
168
|
"test:browser:ruby": "WASM_IDLE_RUN_REAL_BROWSER_RUBY=1 pnpm exec vitest run src/lib/playground/ruby.playwright.test.ts",
|
|
149
169
|
"test:browser:clojurescript": "WASM_IDLE_RUN_REAL_BROWSER_CLOJURESCRIPT=1 pnpm exec vitest run src/lib/playground/static-worker-runtimes.playwright.test.ts",
|
|
150
170
|
"test:browser:rescript": "WASM_IDLE_RUN_REAL_BROWSER_RESCRIPT=1 pnpm exec vitest run src/lib/playground/rescript.playwright.test.ts",
|
|
@@ -157,6 +177,8 @@
|
|
|
157
177
|
"sync:runtime": "node scripts/sync-runtime.mjs",
|
|
158
178
|
"sync:runtimes": "node scripts/sync-runtime.mjs all",
|
|
159
179
|
"sync:wasm-php": "node scripts/sync-wasm-php.mjs",
|
|
180
|
+
"sync:postgresql-lsp": "node scripts/sync-postgresql-lsp.mjs",
|
|
181
|
+
"test:lsp:browser:postgresql": "pnpm run sync:postgresql-lsp && WASM_IDLE_RUN_POSTGRESQL_LSP_BROWSER=1 pnpm --dir packages/lsp exec vitest run test/postgresql.playwright.test.ts",
|
|
160
182
|
"verify:wasm-php": "node scripts/verify-wasm-php-assets.mjs",
|
|
161
183
|
"sync:wasm-clang": "node scripts/sync-wasm-clang.mjs",
|
|
162
184
|
"sync:wasm-fortran": "node scripts/sync-runtime.mjs wasm-fortran",
|
|
@@ -179,6 +201,8 @@
|
|
|
179
201
|
"sync:wasm-lisp": "node scripts/sync-runtime.mjs wasm-lisp",
|
|
180
202
|
"sync:wasm-ruby": "node scripts/sync-runtime.mjs wasm-ruby",
|
|
181
203
|
"sync:wasm-teavm": "node scripts/sync-wasm-teavm.mjs",
|
|
204
|
+
"build:java-lsp": "python3 producers/javacs-teavm/build.py",
|
|
205
|
+
"sync:java-lsp": "node scripts/sync-javacs-teavm-lsp.mjs",
|
|
182
206
|
"sync:wasm-tinygo": "node scripts/sync-runtime.mjs wasm-tinygo",
|
|
183
207
|
"sync:wasm-swift": "node scripts/sync-runtime.mjs wasm-swift",
|
|
184
208
|
"sync:wasm-elixir": "node scripts/sync-runtime.mjs wasm-elixir",
|
|
@@ -208,15 +232,16 @@
|
|
|
208
232
|
"check:assets-lock": "node scripts/generate-runtime-asset-lock.mjs --check",
|
|
209
233
|
"check:asset-sizes": "node scripts/static-asset-sizes.mjs check",
|
|
210
234
|
"build:page-runtimes": "node scripts/prepare-page-runtimes.mjs",
|
|
235
|
+
"prepare:page-container": "node scripts/prepare-page-container.mjs",
|
|
211
236
|
"verify:wasm-typescript-freshness": "pnpm --dir runtimes/wasm-typescript build && node scripts/sync-wasm-typescript.mjs --verify",
|
|
212
237
|
"verify:wasm-ocaml-freshness": "pnpm --dir runtimes/wasm-of-js-of-ocaml build && node scripts/sync-wasm-of-js-of-ocaml.mjs --verify-wrapper",
|
|
213
238
|
"verify:page-runtime-freshness": "pnpm run verify:wasm-typescript-freshness && pnpm run verify:wasm-ocaml-freshness",
|
|
214
239
|
"build:static-runtime-modules": "node scripts/build-static-runtime-modules.mjs",
|
|
215
240
|
"support:matrix": "node scripts/support-matrix.mjs write",
|
|
216
241
|
"check:support-matrix": "node scripts/support-matrix.mjs check",
|
|
217
|
-
"sync:page-runtimes": "pnpm run sync:pyodide && pnpm run sync:webr && pnpm run sync:wasm-of-js-of-ocaml && pnpm run sync:wasm-typescript && pnpm run sync:wasm-octave && pnpm run sync:wasm-prolog && pnpm run sync:wasm-gleam && pnpm run sync:wasm-perl && pnpm run sync:wasm-tcl && pnpm run sync:wasm-awk && pnpm run sync:wasm-pascal && pnpm run sync:wasm-forth && pnpm run sync:wasm-j && pnpm run sync:wasm-bqn && pnpm run sync:wasm-janet && pnpm run sync:wasm-julia && pnpm run sync:wasm-nim && pnpm run sync:wasm-ruby && pnpm run sync:wasm-bash && pnpm run sync:wasm-clojurescript && pnpm run sync:wasm-rescript",
|
|
218
|
-
"page:build": "pnpm run verify:page-c3 && pnpm run verify:page-lfortran && pnpm run sync:wasm-lean4 && pnpm run prepare:test-assets -- clang && pnpm run build:page-runtimes && pnpm run sync:page-runtimes && pnpm run build:static-runtime-modules && pnpm run prepare:wasm-debug-release && pnpm run sync:wasm-commonlisp && pnpm run layer:static-runtimes && pnpm run compress:static-runtimes && pnpm run assets:lock && pnpm run check:assets-lock && pnpm run build && pnpm run compress:build-runtimes && pnpm run verify:page-c3 build && pnpm run verify:page-lfortran build",
|
|
219
|
-
"package:root": "svelte-kit sync && node scripts/clean-package-output.mjs && svelte-package --tsconfig ./tsconfig.package.json && publint",
|
|
242
|
+
"sync:page-runtimes": "pnpm run build:java-lsp && pnpm run sync:java-lsp && pnpm run sync:postgresql-lsp && pnpm run sync:bash-lsp && pnpm run sync:cobol-lsp && pnpm run sync:nim-lsp && pnpm run sync:pyodide && pnpm run sync:webr && pnpm run sync:wasm-of-js-of-ocaml && pnpm run sync:wasm-typescript && pnpm run sync:wasm-octave && pnpm run sync:wasm-prolog && pnpm run sync:wasm-gleam && pnpm run sync:wasm-perl && pnpm run sync:wasm-tcl && pnpm run sync:wasm-awk && pnpm run sync:wasm-pascal && pnpm run sync:wasm-forth && pnpm run sync:wasm-j && pnpm run sync:wasm-bqn && pnpm run sync:wasm-janet && pnpm run sync:wasm-julia && pnpm run sync:wasm-nim && pnpm run sync:wasm-ruby && pnpm run sync:wasm-bash && pnpm run sync:wasm-clojurescript && pnpm run sync:wasm-rescript && pnpm run sync:fennel-lsp && pnpm run sync:grain-lsp && pnpm run sync:rescript-lsp",
|
|
243
|
+
"page:build": "pnpm run sync:phpantom-lsp && pnpm run sync:forth-lsp && pnpm run sync:c3-lsp && pnpm run sync:v-lsp && pnpm run verify:page-c3 && pnpm run verify:page-lfortran && pnpm run sync:wasm-lean4 && pnpm run prepare:test-assets -- clang && pnpm run build:page-runtimes && pnpm run sync:page-runtimes && pnpm run build:static-runtime-modules && pnpm run prepare:wasm-debug-release && pnpm run sync:wasm-commonlisp && pnpm run layer:static-runtimes && pnpm run compress:static-runtimes && pnpm run assets:lock && pnpm run check:assets-lock && pnpm run prepare:page-container && pnpm run build && pnpm run compress:build-runtimes && pnpm run verify:page-c3 build && pnpm run verify:page-lfortran build",
|
|
244
|
+
"package:root": "svelte-kit sync && node scripts/clean-package-output.mjs && svelte-package --tsconfig ./tsconfig.package.json && node scripts/bundle-java-debug-helpers.mjs && publint",
|
|
220
245
|
"package": "pnpm run build:publish-deps && pnpm run package:root",
|
|
221
246
|
"verify:package": "node scripts/verify-package.mjs",
|
|
222
247
|
"release:npm": "node scripts/release-npm.mjs",
|
|
@@ -234,7 +259,7 @@
|
|
|
234
259
|
"check:watch": "pnpm run build:publish-deps && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
235
260
|
"lint": "prettier --check . && eslint .",
|
|
236
261
|
"format": "prettier --write .",
|
|
237
|
-
"page": "
|
|
262
|
+
"page": "node scripts/run-page.mjs",
|
|
238
263
|
"sync:wasm-c3": "node scripts/sync-wasm-c3.mjs",
|
|
239
264
|
"sync:wasm-grain": "node scripts/sync-wasm-grain.mjs",
|
|
240
265
|
"test:browser:grain": "WASM_IDLE_RUN_REAL_BROWSER_GRAIN=1 pnpm exec vitest run src/lib/playground/grain.playwright.test.ts",
|
|
@@ -268,6 +293,32 @@
|
|
|
268
293
|
"test:browser:apecode": "WASM_IDLE_REQUIRE_BROWSER_TESTS=1 WASM_IDLE_RUN_REAL_BROWSER_APECODE=1 vitest run src/lib/playground/esolangs.playwright.test.ts",
|
|
269
294
|
"sync:wasm-apecode": "node scripts/sync-wasm-apecode.mjs",
|
|
270
295
|
"test:browser:golfscript": "WASM_IDLE_REQUIRE_BROWSER_TESTS=1 WASM_IDLE_RUN_REAL_BROWSER_GOLFSCRIPT=1 vitest run src/lib/playground/esolangs.playwright.test.ts",
|
|
271
|
-
"sync:wasm-golfscript": "node scripts/sync-wasm-golfscript.mjs"
|
|
296
|
+
"sync:wasm-golfscript": "node scripts/sync-wasm-golfscript.mjs",
|
|
297
|
+
"prepare:container-distribution": "node scripts/prepare-container-distribution.mjs",
|
|
298
|
+
"verify:container-distribution": "node scripts/verify-container-distribution.mjs",
|
|
299
|
+
"test:container-distribution": "node --test scripts/container-distribution.test.mjs",
|
|
300
|
+
"benchmark:container": "node scripts/benchmark-container.mjs",
|
|
301
|
+
"sync:fennel-lsp": "node scripts/sync-fennel-lsp.mjs",
|
|
302
|
+
"test:lsp:fennel": "WASM_IDLE_RUN_REAL_BROWSER_FENNEL_LSP=1 node --test scripts/fennel-lsp.browser.test.mjs",
|
|
303
|
+
"sync:forth-lsp": "node scripts/build-forth-lsp.mjs",
|
|
304
|
+
"test:lsp:browser:forth": "WASM_IDLE_RUN_REAL_BROWSER_FORTH_LSP=1 node --test scripts/forth-lsp.browser.test.mjs",
|
|
305
|
+
"sync:bash-lsp": "node scripts/sync-bash-lsp.mjs",
|
|
306
|
+
"test:lsp:assets:bash": "pnpm run sync:bash-lsp && WASM_IDLE_RUN_BASH_LSP_ASSET_BUILD=1 node --test scripts/sync-bash-lsp.test.mjs",
|
|
307
|
+
"test:lsp:browser:bash": "pnpm run sync:bash-lsp && WASM_IDLE_RUN_BASH_LSP_BROWSER=1 pnpm --dir packages/lsp exec vitest run test/bash.playwright.test.ts --pool threads --maxWorkers 1 --no-file-parallelism",
|
|
308
|
+
"sync:grain-lsp": "node scripts/sync-grain-lsp.mjs",
|
|
309
|
+
"test:lsp:grain": "WASM_IDLE_RUN_REAL_BROWSER_GRAIN_LSP=1 node --test scripts/grain-lsp.browser.test.mjs",
|
|
310
|
+
"sync:c3-lsp": "node scripts/build-c3-lsp.mjs",
|
|
311
|
+
"test:lsp:browser:c3": "WASM_IDLE_RUN_REAL_BROWSER_C3_LSP=1 node --test scripts/c3-lsp.browser.test.mjs",
|
|
312
|
+
"sync:cobol-lsp": "node scripts/sync-cobol-lsp.mjs",
|
|
313
|
+
"test:lsp:assets:cobol": "pnpm run sync:cobol-lsp && WASM_IDLE_RUN_COBOL_LSP_ASSET_BUILD=1 node --test scripts/sync-cobol-lsp.test.mjs",
|
|
314
|
+
"test:lsp:browser:cobol": "pnpm run sync:cobol-lsp && WASM_IDLE_RUN_COBOL_LSP_BROWSER=1 pnpm --dir packages/lsp exec vitest run test/cobol.playwright.test.ts --pool threads --maxWorkers 1 --no-file-parallelism",
|
|
315
|
+
"sync:rescript-lsp": "node scripts/sync-rescript-lsp.mjs",
|
|
316
|
+
"test:lsp:browser:rescript": "WASM_IDLE_RUN_REAL_BROWSER_LSP=1 node --test scripts/rescript-lsp.browser.test.mjs",
|
|
317
|
+
"test:lsp:assets:rescript": "WASM_IDLE_RUN_RESCRIPT_LSP_PRODUCER=1 node --test scripts/sync-rescript-lsp.test.mjs",
|
|
318
|
+
"sync:v-lsp": "node scripts/build-v-lsp.mjs",
|
|
319
|
+
"test:lsp:browser:v": "WASM_IDLE_RUN_REAL_BROWSER_V_LSP=1 node --test scripts/v-lsp.browser.test.mjs",
|
|
320
|
+
"sync:nim-lsp": "node scripts/sync-nim-lsp.mjs",
|
|
321
|
+
"test:lsp:assets:nim": "pnpm run sync:nim-lsp && WASM_IDLE_RUN_NIM_LSP_ASSET_BUILD=1 node --test scripts/sync-nim-lsp.test.mjs",
|
|
322
|
+
"test:lsp:browser:nim": "pnpm run sync:nim-lsp && python3 producers/nim-lsp/build.py --native && WASM_IDLE_RUN_NIM_LSP_BROWSER=1 pnpm --dir packages/lsp exec vitest run test/nim.playwright.test.ts --pool threads --maxWorkers 1 --no-file-parallelism"
|
|
272
323
|
}
|
|
273
324
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|