@tracecode/harness 0.16.0 → 0.16.2
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/CHANGELOG.md +20 -0
- package/dist/{browser-runtime-provider-FSR4OBBF.js → browser-runtime-provider-45ND6W3K.js} +4 -4
- package/dist/{chunk-VON3HMIR.js → chunk-5SU2JQGI.js} +189 -343
- package/dist/{chunk-3TX3UB5E.js → chunk-DGXNINFR.js} +9 -9
- package/dist/chunk-EJE2EJDI.js +193 -0
- package/dist/{chunk-4GXJ7GNA.js → chunk-HK62URW2.js} +2 -2
- package/dist/{chunk-IJHMDH3V.js → chunk-J54PE2JS.js} +2 -2
- package/dist/{chunk-X2RHXM62.js → chunk-K4424WAS.js} +2 -2
- package/dist/{chunk-RYPW7WZT.js → chunk-MJOC6WVB.js} +2 -2
- package/dist/cli.cjs +5 -0
- package/dist/cli.js +5 -0
- package/dist/core.cjs +8 -8
- package/dist/core.js +1 -1
- package/dist/{cpp-worker-client-XKA3AQC5.js → cpp-worker-client-I6CPM7TA.js} +3 -3
- package/dist/{csharp-worker-client-TKXUOI4R.js → csharp-worker-client-X7R4VXF4.js} +3 -3
- package/dist/internal/tracekernel-workspace.cjs +8 -8
- package/dist/internal/tracekernel-workspace.js +1 -1
- package/dist/{java-project-OLRXOA53.js → java-project-MLWER3CQ.js} +2 -2
- package/dist/judge.cjs +259 -191
- package/dist/judge.js +26 -11
- package/dist/{project-browser-4AJPNCFH.js → project-browser-EIQ2FOXP.js} +2 -2
- package/dist/{project-browser-TKH7OQ2I.js → project-browser-JR2WG7DG.js} +2 -2
- package/dist/{project-browser-3AOBPP4V.js → project-browser-T3EIQCMD.js} +2 -2
- package/dist/{project-browser-GL2OZKUK.js → project-browser-UALCR5KR.js} +2 -2
- package/dist/{project-browser-C5KLVVTZ.js → project-browser-V3W4CQAQ.js} +2 -2
- package/dist/{python-worker-client-HZ7JL6RO.js → python-worker-client-MRWQTXOF.js} +3 -3
- package/dist/tracecc-runtime-assets-G3BFH7LY.js +19 -0
- package/dist/tracekernel.cjs +244 -185
- package/dist/tracekernel.d.cts +10 -1
- package/dist/tracekernel.d.ts +10 -1
- package/dist/tracekernel.js +12 -8
- package/package.json +32 -44
- package/runtime-assets.lock.json +7 -7
- package/workers/javascript/javascript-project-worker.js +7 -7
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
runtimeKernelWriteFsErrorMessage,
|
|
54
54
|
runtimeKernelWriteTarget,
|
|
55
55
|
runtimeProjectInfrastructureFailure
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-DGXNINFR.js";
|
|
57
57
|
import {
|
|
58
58
|
decodeTraceKernelWatchEvent
|
|
59
59
|
} from "./chunk-LTRAP6OY.js";
|
|
@@ -10865,4 +10865,4 @@ export {
|
|
|
10865
10865
|
createBrowserTypeScriptProjectRunner,
|
|
10866
10866
|
runBrowserJavaScriptProjectRequest
|
|
10867
10867
|
};
|
|
10868
|
-
//# sourceMappingURL=project-browser-
|
|
10868
|
+
//# sourceMappingURL=project-browser-V3W4CQAQ.js.map
|
|
@@ -2,8 +2,8 @@ var define = undefined;
|
|
|
2
2
|
import {
|
|
3
3
|
PythonWorkerClient,
|
|
4
4
|
isWorkerSupported
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-HK62URW2.js";
|
|
6
|
+
import "./chunk-DGXNINFR.js";
|
|
7
7
|
import "./chunk-DTLDQQHA.js";
|
|
8
8
|
import "./chunk-C2RUZCIL.js";
|
|
9
9
|
import "./chunk-756Z7C6D.js";
|
|
@@ -11,4 +11,4 @@ export {
|
|
|
11
11
|
PythonWorkerClient,
|
|
12
12
|
isWorkerSupported
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=python-worker-client-
|
|
14
|
+
//# sourceMappingURL=python-worker-client-MRWQTXOF.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var define = undefined;
|
|
2
|
+
import {
|
|
3
|
+
TRACECC_RUNTIME_ASSET_RELATIVE_PATH,
|
|
4
|
+
TRACECC_RUNTIME_CONTENT_HASH,
|
|
5
|
+
TRACECC_RUNTIME_MANIFEST,
|
|
6
|
+
createTraceCCRuntimeManifest,
|
|
7
|
+
resolveBuiltInTraceCCProjectRuntimeManifest,
|
|
8
|
+
resolveBuiltInTraceCCRuntimeManifest
|
|
9
|
+
} from "./chunk-EJE2EJDI.js";
|
|
10
|
+
import "./chunk-756Z7C6D.js";
|
|
11
|
+
export {
|
|
12
|
+
TRACECC_RUNTIME_ASSET_RELATIVE_PATH,
|
|
13
|
+
TRACECC_RUNTIME_CONTENT_HASH,
|
|
14
|
+
TRACECC_RUNTIME_MANIFEST,
|
|
15
|
+
createTraceCCRuntimeManifest,
|
|
16
|
+
resolveBuiltInTraceCCProjectRuntimeManifest,
|
|
17
|
+
resolveBuiltInTraceCCRuntimeManifest
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=tracecc-runtime-assets-G3BFH7LY.js.map
|
package/dist/tracekernel.cjs
CHANGED
|
@@ -13521,7 +13521,7 @@ var init_package = __esm({
|
|
|
13521
13521
|
"package.json"() {
|
|
13522
13522
|
package_default = {
|
|
13523
13523
|
name: "@tracecode/harness",
|
|
13524
|
-
version: "0.16.
|
|
13524
|
+
version: "0.16.2",
|
|
13525
13525
|
license: "AGPL-3.0-only",
|
|
13526
13526
|
homepage: "https://tracecode.app",
|
|
13527
13527
|
repository: {
|
|
@@ -13791,7 +13791,7 @@ var init_runtime_language_info_data = __esm({
|
|
|
13791
13791
|
"versionLabel": "Python 3.13.2",
|
|
13792
13792
|
"executionPlatform": {
|
|
13793
13793
|
"name": "TraceKernel",
|
|
13794
|
-
"version": "0.16.
|
|
13794
|
+
"version": "0.16.2"
|
|
13795
13795
|
},
|
|
13796
13796
|
"description": "Python 3.13.2 runs in TraceKernel's isolated Python runtime.\n\nCommon algorithm helpers are imported automatically, including array, bisect, collections, functools, heapq, itertools. Other standard-library modules can be imported normally.\n\nOptional third-party packages are consumer-owned runtime assets and are available only when declared by the TraceKernel runtime manifest.",
|
|
13797
13797
|
"runtime": {
|
|
@@ -13818,7 +13818,7 @@ var init_runtime_language_info_data = __esm({
|
|
|
13818
13818
|
"versionLabel": "JavaScript (ECMAScript 2023)",
|
|
13819
13819
|
"executionPlatform": {
|
|
13820
13820
|
"name": "TraceKernel",
|
|
13821
|
-
"version": "0.16.
|
|
13821
|
+
"version": "0.16.2"
|
|
13822
13822
|
},
|
|
13823
13823
|
"runtime": {
|
|
13824
13824
|
"name": "TraceKernel JavaScript runtime",
|
|
@@ -13910,7 +13910,7 @@ Binary Search Tree, Trie, and Graph are bundled too, but are not exposed globall
|
|
|
13910
13910
|
"versionLabel": "TypeScript 5.9.3",
|
|
13911
13911
|
"executionPlatform": {
|
|
13912
13912
|
"name": "TraceKernel",
|
|
13913
|
-
"version": "0.16.
|
|
13913
|
+
"version": "0.16.2"
|
|
13914
13914
|
},
|
|
13915
13915
|
"description": `TypeScript 5.9.3 is compiled with the TypeScript compiler and executed by TraceKernel's JavaScript runtime.
|
|
13916
13916
|
|
|
@@ -14010,7 +14010,7 @@ The compiled output runs on the same TraceKernel execution lane as JavaScript su
|
|
|
14010
14010
|
"versionLabel": "Java 23",
|
|
14011
14011
|
"executionPlatform": {
|
|
14012
14012
|
"name": "TraceKernel",
|
|
14013
|
-
"version": "0.16.
|
|
14013
|
+
"version": "0.16.2"
|
|
14014
14014
|
},
|
|
14015
14015
|
"description": "Java 23 is compiled with javac 23 and executed by the Java runtime on TraceKernel.\n\nCommon imports are added automatically: java.util.*, java.io.*, java.math.*, java.util.stream.*, javafx.util.Pair.",
|
|
14016
14016
|
"runtime": {
|
|
@@ -14047,7 +14047,7 @@ The compiled output runs on the same TraceKernel execution lane as JavaScript su
|
|
|
14047
14047
|
"versionLabel": "C# 14",
|
|
14048
14048
|
"executionPlatform": {
|
|
14049
14049
|
"name": "TraceKernel",
|
|
14050
|
-
"version": "0.16.
|
|
14050
|
+
"version": "0.16.2"
|
|
14051
14051
|
},
|
|
14052
14052
|
"description": "C# 14 source is compiled and executed by TraceKernel's isolated C# runtime.\n\nCommon namespaces are imported automatically: System, System.Collections, System.Collections.Generic, System.IO, System.Linq, System.Numerics, System.Text, System.Text.RegularExpressions.",
|
|
14053
14053
|
"runtime": {
|
|
@@ -14076,7 +14076,7 @@ The compiled output runs on the same TraceKernel execution lane as JavaScript su
|
|
|
14076
14076
|
"versionLabel": "C++23",
|
|
14077
14077
|
"executionPlatform": {
|
|
14078
14078
|
"name": "TraceKernel",
|
|
14079
|
-
"version": "0.16.
|
|
14079
|
+
"version": "0.16.2"
|
|
14080
14080
|
},
|
|
14081
14081
|
"description": "C++ source is compiled using the C++23 standard.\n\nSubmissions compile to WebAssembly and run in TraceKernel's WASI execution lane. The compiler currently uses -O0 and -fno-exceptions, with a fixed program stack size.\n\nCommon standard library headers are included automatically, including <algorithm>, <array>, <bitset>, <climits>, <cmath>, <cstdint>, <functional>, <limits>, <numeric>, <sstream>, <tuple>, <vector>, <unordered_map>, <unordered_set> and more.",
|
|
14082
14082
|
"runtime": {
|
|
@@ -14241,7 +14241,7 @@ var init_runtime_open_source_info_data = __esm({
|
|
|
14241
14241
|
{
|
|
14242
14242
|
"kind": "modifications",
|
|
14243
14243
|
"label": "Runtime modifications",
|
|
14244
|
-
"url": "https://github.com/tracecodeapp/harness/tree/v0.16.
|
|
14244
|
+
"url": "https://github.com/tracecodeapp/harness/tree/v0.16.2/workers/python/pyodide-0.29.3"
|
|
14245
14245
|
}
|
|
14246
14246
|
]
|
|
14247
14247
|
}
|
|
@@ -123632,6 +123632,211 @@ var init_browser_runtime_provider = __esm({
|
|
|
123632
123632
|
}
|
|
123633
123633
|
});
|
|
123634
123634
|
|
|
123635
|
+
// packages/runtime-cpp/src/tracecc-runtime-assets.generated.ts
|
|
123636
|
+
var TRACECC_RUNTIME_CONTENT_HASH, TRACECC_RUNTIME_ASSETS;
|
|
123637
|
+
var init_tracecc_runtime_assets_generated = __esm({
|
|
123638
|
+
"packages/runtime-cpp/src/tracecc-runtime-assets.generated.ts"() {
|
|
123639
|
+
"use strict";
|
|
123640
|
+
TRACECC_RUNTIME_CONTENT_HASH = "fb4b6f41f9e9b7db89b6c8425bb2c6218979219a4150f96619b6461b4b78d294";
|
|
123641
|
+
TRACECC_RUNTIME_ASSETS = Object.freeze({
|
|
123642
|
+
"runtimeHeader": {
|
|
123643
|
+
"fileName": "tracecode_runtime.hpp",
|
|
123644
|
+
"integrity": "sha256-WEbB8mLN8cwKIWPf25UL7yoTSM9nCqWs8MkE0B14EtE=",
|
|
123645
|
+
"mediaType": "text/plain",
|
|
123646
|
+
"size": 263083
|
|
123647
|
+
},
|
|
123648
|
+
"compilerWasm": {
|
|
123649
|
+
"fileName": "tracecc-reactor.wasm",
|
|
123650
|
+
"integrity": "sha256-At40hCU4Rmvynp1s8UzQ1eX/UZybo5BWHMsVgQXUTUE=",
|
|
123651
|
+
"mediaType": "application/wasm",
|
|
123652
|
+
"size": 33478188
|
|
123653
|
+
},
|
|
123654
|
+
"sysroot": {
|
|
123655
|
+
"fileName": "llvm-resources.tar",
|
|
123656
|
+
"integrity": "sha256-2V0qK8hAihbAdEmWrEfJG7PGO7cblDFcl5YIm23ahVU=",
|
|
123657
|
+
"mediaType": "application/x-tar",
|
|
123658
|
+
"size": 29112320
|
|
123659
|
+
},
|
|
123660
|
+
"narrowPch": {
|
|
123661
|
+
"fileName": "narrow.pch",
|
|
123662
|
+
"integrity": "sha256-rbuVm7YeO+HwDpSJPAqGGNrrPKeJveazS/juUWXs5/A=",
|
|
123663
|
+
"mediaType": "application/octet-stream",
|
|
123664
|
+
"size": 21322216
|
|
123665
|
+
},
|
|
123666
|
+
"narrowPchSource": {
|
|
123667
|
+
"fileName": "narrow.source.hpp",
|
|
123668
|
+
"integrity": "sha256-SMqxQfcMBSUHUcAz+7Cp4vkWyOtgv7mNB09JE1cOEAU=",
|
|
123669
|
+
"mediaType": "text/plain",
|
|
123670
|
+
"size": 815
|
|
123671
|
+
},
|
|
123672
|
+
"narrowRuntimeObject": {
|
|
123673
|
+
"fileName": "narrow.o",
|
|
123674
|
+
"integrity": "sha256-il/wX66FvAU9SJSiDepMuEZ00CipED4EEEfqcdxEg8c=",
|
|
123675
|
+
"mediaType": "application/wasm",
|
|
123676
|
+
"size": 1042570
|
|
123677
|
+
},
|
|
123678
|
+
"broadPch": {
|
|
123679
|
+
"fileName": "broad.pch",
|
|
123680
|
+
"integrity": "sha256-ktKxBSglo50GPM9GJJwBpqyYDcFHkKGjoyEtsUmLMrI=",
|
|
123681
|
+
"mediaType": "application/octet-stream",
|
|
123682
|
+
"size": 24543552
|
|
123683
|
+
},
|
|
123684
|
+
"broadPchSource": {
|
|
123685
|
+
"fileName": "broad.source.hpp",
|
|
123686
|
+
"integrity": "sha256-MOayycWl5KYaLS8vP2MoJh4kazsDhg0kH9Bi6dvsy0s=",
|
|
123687
|
+
"mediaType": "text/plain",
|
|
123688
|
+
"size": 7095
|
|
123689
|
+
},
|
|
123690
|
+
"broadRuntimeObject": {
|
|
123691
|
+
"fileName": "broad.o",
|
|
123692
|
+
"integrity": "sha256-f69Oe7kRn9JEIUEPgM1cuYbf50oph4IxEnVP7VIZGp4=",
|
|
123693
|
+
"mediaType": "application/wasm",
|
|
123694
|
+
"size": 1892879
|
|
123695
|
+
},
|
|
123696
|
+
"mapPch": {
|
|
123697
|
+
"fileName": "map.pch",
|
|
123698
|
+
"integrity": "sha256-fX7zTmJXnRJ2acbDiJ4Wu7/xf1G510SB2fLzkTgr2Uc=",
|
|
123699
|
+
"mediaType": "application/octet-stream",
|
|
123700
|
+
"size": 29951380
|
|
123701
|
+
},
|
|
123702
|
+
"mapPchSource": {
|
|
123703
|
+
"fileName": "map.source.hpp",
|
|
123704
|
+
"integrity": "sha256-WHaMpx3nG/h1ro6CppBseoDIkgqahbYnFxShHLGT9/c=",
|
|
123705
|
+
"mediaType": "text/plain",
|
|
123706
|
+
"size": 10708
|
|
123707
|
+
},
|
|
123708
|
+
"mapRuntimeObject": {
|
|
123709
|
+
"fileName": "map.o",
|
|
123710
|
+
"integrity": "sha256-02ktvX6uqV05it5kdBEm/ncOszBeO43wX93Yk079E4U=",
|
|
123711
|
+
"mediaType": "application/wasm",
|
|
123712
|
+
"size": 3372458
|
|
123713
|
+
}
|
|
123714
|
+
});
|
|
123715
|
+
}
|
|
123716
|
+
});
|
|
123717
|
+
|
|
123718
|
+
// packages/runtime-cpp/src/tracecc-runtime-assets.ts
|
|
123719
|
+
var tracecc_runtime_assets_exports = {};
|
|
123720
|
+
__export(tracecc_runtime_assets_exports, {
|
|
123721
|
+
TRACECC_RUNTIME_ASSET_RELATIVE_PATH: () => TRACECC_RUNTIME_ASSET_RELATIVE_PATH,
|
|
123722
|
+
TRACECC_RUNTIME_CONTENT_HASH: () => TRACECC_RUNTIME_CONTENT_HASH,
|
|
123723
|
+
TRACECC_RUNTIME_MANIFEST: () => TRACECC_RUNTIME_MANIFEST,
|
|
123724
|
+
createTraceCCRuntimeManifest: () => createTraceCCRuntimeManifest,
|
|
123725
|
+
resolveBuiltInTraceCCProjectRuntimeManifest: () => resolveBuiltInTraceCCProjectRuntimeManifest,
|
|
123726
|
+
resolveBuiltInTraceCCRuntimeManifest: () => resolveBuiltInTraceCCRuntimeManifest
|
|
123727
|
+
});
|
|
123728
|
+
function stripTrailingSlash3(value) {
|
|
123729
|
+
return value.replace(/\/+$/, "");
|
|
123730
|
+
}
|
|
123731
|
+
function normalizeAssetBaseUrl(value) {
|
|
123732
|
+
const normalized = stripTrailingSlash3(value.trim());
|
|
123733
|
+
if (!normalized) {
|
|
123734
|
+
throw new TypeError("TraceCC requires a non-empty asset base URL.");
|
|
123735
|
+
}
|
|
123736
|
+
if (/[?#]/u.test(normalized)) {
|
|
123737
|
+
throw new TypeError(
|
|
123738
|
+
"TraceCC asset base URL must be a directory without a query or fragment."
|
|
123739
|
+
);
|
|
123740
|
+
}
|
|
123741
|
+
return normalized;
|
|
123742
|
+
}
|
|
123743
|
+
function normalizeWorkerUrl(value) {
|
|
123744
|
+
const normalized = value.trim();
|
|
123745
|
+
if (!normalized) {
|
|
123746
|
+
throw new TypeError("TraceCC worker URL must not be empty.");
|
|
123747
|
+
}
|
|
123748
|
+
return normalized;
|
|
123749
|
+
}
|
|
123750
|
+
function descriptor2(asset) {
|
|
123751
|
+
return {
|
|
123752
|
+
url: asset.fileName,
|
|
123753
|
+
integrity: asset.integrity,
|
|
123754
|
+
mediaType: asset.mediaType,
|
|
123755
|
+
size: asset.size,
|
|
123756
|
+
delivery: {
|
|
123757
|
+
mutability: "immutable",
|
|
123758
|
+
address: "content"
|
|
123759
|
+
}
|
|
123760
|
+
};
|
|
123761
|
+
}
|
|
123762
|
+
function createTraceCCRuntimeManifest(assetBaseUrl, options = {}) {
|
|
123763
|
+
const normalizedAssetBaseUrl = normalizeAssetBaseUrl(assetBaseUrl);
|
|
123764
|
+
const workerUrl = normalizeWorkerUrl(
|
|
123765
|
+
options.workerUrl ?? "/workers/cpp-worker.js"
|
|
123766
|
+
);
|
|
123767
|
+
const compilerWasm = descriptor2(
|
|
123768
|
+
typedTraceCCRuntimeAssets.compilerWasm
|
|
123769
|
+
);
|
|
123770
|
+
return {
|
|
123771
|
+
runtime: "cpp",
|
|
123772
|
+
runtimeVersion: `tracecc-${TRACECC_RUNTIME_CONTENT_HASH.slice(0, 12)}`,
|
|
123773
|
+
protocolVersion: "browser-runtime-assets-v1",
|
|
123774
|
+
assetBaseUrl: `${normalizedAssetBaseUrl}/`,
|
|
123775
|
+
workerFormat: "module",
|
|
123776
|
+
assets: {
|
|
123777
|
+
worker: { url: workerUrl },
|
|
123778
|
+
runtimeHeader: descriptor2(typedTraceCCRuntimeAssets.runtimeHeader),
|
|
123779
|
+
compilerWasm,
|
|
123780
|
+
linkerWasm: compilerWasm,
|
|
123781
|
+
sysroot: descriptor2(typedTraceCCRuntimeAssets.sysroot),
|
|
123782
|
+
compilerResources: {
|
|
123783
|
+
"tracecc-narrow-pch": descriptor2(
|
|
123784
|
+
typedTraceCCRuntimeAssets.narrowPch
|
|
123785
|
+
),
|
|
123786
|
+
"tracecc-narrow-pch-source": descriptor2(
|
|
123787
|
+
typedTraceCCRuntimeAssets.narrowPchSource
|
|
123788
|
+
),
|
|
123789
|
+
"tracecc-narrow-runtime-object": descriptor2(
|
|
123790
|
+
typedTraceCCRuntimeAssets.narrowRuntimeObject
|
|
123791
|
+
),
|
|
123792
|
+
"tracecc-broad-pch": descriptor2(
|
|
123793
|
+
typedTraceCCRuntimeAssets.broadPch
|
|
123794
|
+
),
|
|
123795
|
+
"tracecc-broad-pch-source": descriptor2(
|
|
123796
|
+
typedTraceCCRuntimeAssets.broadPchSource
|
|
123797
|
+
),
|
|
123798
|
+
"tracecc-broad-runtime-object": descriptor2(
|
|
123799
|
+
typedTraceCCRuntimeAssets.broadRuntimeObject
|
|
123800
|
+
),
|
|
123801
|
+
"tracecc-map-pch": descriptor2(
|
|
123802
|
+
typedTraceCCRuntimeAssets.mapPch
|
|
123803
|
+
),
|
|
123804
|
+
"tracecc-map-pch-source": descriptor2(
|
|
123805
|
+
typedTraceCCRuntimeAssets.mapPchSource
|
|
123806
|
+
),
|
|
123807
|
+
"tracecc-map-runtime-object": descriptor2(
|
|
123808
|
+
typedTraceCCRuntimeAssets.mapRuntimeObject
|
|
123809
|
+
)
|
|
123810
|
+
}
|
|
123811
|
+
}
|
|
123812
|
+
};
|
|
123813
|
+
}
|
|
123814
|
+
function resolveBuiltInTraceCCRuntimeManifest(assetBaseUrl = "/workers") {
|
|
123815
|
+
const normalizedAssetBaseUrl = normalizeAssetBaseUrl(assetBaseUrl);
|
|
123816
|
+
return createTraceCCRuntimeManifest(
|
|
123817
|
+
`${normalizedAssetBaseUrl}/${TRACECC_RUNTIME_ASSET_RELATIVE_PATH}`,
|
|
123818
|
+
{ workerUrl: `${normalizedAssetBaseUrl}/cpp-worker.js` }
|
|
123819
|
+
);
|
|
123820
|
+
}
|
|
123821
|
+
function resolveBuiltInTraceCCProjectRuntimeManifest(assetBaseUrl = "/workers") {
|
|
123822
|
+
const normalizedAssetBaseUrl = normalizeAssetBaseUrl(assetBaseUrl);
|
|
123823
|
+
return createTraceCCRuntimeManifest(
|
|
123824
|
+
`${normalizedAssetBaseUrl}/${TRACECC_RUNTIME_ASSET_RELATIVE_PATH}`,
|
|
123825
|
+
{ workerUrl: `${normalizedAssetBaseUrl}/project-cpp-worker.js` }
|
|
123826
|
+
);
|
|
123827
|
+
}
|
|
123828
|
+
var TRACECC_RUNTIME_ASSET_RELATIVE_PATH, typedTraceCCRuntimeAssets, TRACECC_RUNTIME_MANIFEST;
|
|
123829
|
+
var init_tracecc_runtime_assets = __esm({
|
|
123830
|
+
"packages/runtime-cpp/src/tracecc-runtime-assets.ts"() {
|
|
123831
|
+
"use strict";
|
|
123832
|
+
init_tracecc_runtime_assets_generated();
|
|
123833
|
+
init_tracecc_runtime_assets_generated();
|
|
123834
|
+
TRACECC_RUNTIME_ASSET_RELATIVE_PATH = `cpp/tracecc/${TRACECC_RUNTIME_CONTENT_HASH}`;
|
|
123835
|
+
typedTraceCCRuntimeAssets = TRACECC_RUNTIME_ASSETS;
|
|
123836
|
+
TRACECC_RUNTIME_MANIFEST = resolveBuiltInTraceCCRuntimeManifest();
|
|
123837
|
+
}
|
|
123838
|
+
});
|
|
123839
|
+
|
|
123635
123840
|
// src/tracekernel.ts
|
|
123636
123841
|
var tracekernel_exports = {};
|
|
123637
123842
|
__export(tracekernel_exports, {
|
|
@@ -123793,6 +123998,7 @@ __export(tracekernel_exports, {
|
|
|
123793
123998
|
readRuntimeProcFile: () => readRuntimeProcFile,
|
|
123794
123999
|
resolveBrowserRuntimeAssetManifests: () => resolveBrowserRuntimeAssetManifests,
|
|
123795
124000
|
resolveBrowserRuntimeAssets: () => resolveBrowserRuntimeAssets,
|
|
124001
|
+
resolveBuiltInTraceCCProjectRuntimeManifest: () => resolveBuiltInTraceCCProjectRuntimeManifest,
|
|
123796
124002
|
resolveBuiltInTraceCCRuntimeManifest: () => resolveBuiltInTraceCCRuntimeManifest,
|
|
123797
124003
|
resolveRuntimeOpenSourceResourceHref: () => resolveRuntimeOpenSourceResourceHref,
|
|
123798
124004
|
runRuntimeProjectWorkerBridge: () => runRuntimeProjectWorkerBridge,
|
|
@@ -218311,6 +218517,18 @@ var BROWSER_PROJECT_PREWARM_PROVIDERS = Object.freeze([
|
|
|
218311
218517
|
"cpp"
|
|
218312
218518
|
]);
|
|
218313
218519
|
var BROWSER_PROJECT_INJECTED_PROVIDERS = Object.freeze(["python", "java", "csharp", "cpp"]);
|
|
218520
|
+
var CPP_LEGACY_ASSET_KEYS = Object.freeze([
|
|
218521
|
+
"cppWorker",
|
|
218522
|
+
"cppCompilerWasm",
|
|
218523
|
+
"cppLinkerWasm",
|
|
218524
|
+
"cppSysroot",
|
|
218525
|
+
"cppRuntimeHeader",
|
|
218526
|
+
"cppCompilerIntegrity"
|
|
218527
|
+
]);
|
|
218528
|
+
function hasConfiguredCppRuntimeAssets(assets) {
|
|
218529
|
+
if (assets?.runtimeManifests?.cpp) return true;
|
|
218530
|
+
return CPP_LEGACY_ASSET_KEYS.some((key) => assets?.[key] !== void 0);
|
|
218531
|
+
}
|
|
218314
218532
|
function normalizeBrowserProjectProviders(providers) {
|
|
218315
218533
|
const normalized = [];
|
|
218316
218534
|
for (const provider of providers ?? DEFAULT_BROWSER_PROJECT_PROVIDERS) {
|
|
@@ -218787,11 +219005,25 @@ async function createBrowserProjectWorkspace(options = {}) {
|
|
|
218787
219005
|
hasProvider("cpp") ? Promise.all([
|
|
218788
219006
|
Promise.resolve().then(() => (init_project_browser5(), project_browser_exports5)),
|
|
218789
219007
|
Promise.resolve().then(() => (init_cpp_worker_client(), cpp_worker_client_exports)),
|
|
218790
|
-
Promise.resolve().then(() => (init_browser_runtime_provider(), browser_runtime_provider_exports))
|
|
219008
|
+
Promise.resolve().then(() => (init_browser_runtime_provider(), browser_runtime_provider_exports)),
|
|
219009
|
+
Promise.resolve().then(() => (init_tracecc_runtime_assets(), tracecc_runtime_assets_exports))
|
|
218791
219010
|
]) : void 0
|
|
218792
219011
|
]);
|
|
218793
219012
|
const { createRuntimeWorkspace: createRuntimeWorkspace3 } = await projectRuntimePromise;
|
|
218794
|
-
const
|
|
219013
|
+
const configuredAssets = options.assets;
|
|
219014
|
+
const assets = resolveBrowserRuntimeAssets({
|
|
219015
|
+
...options,
|
|
219016
|
+
...cppProvider && runtimeProviders.cpp === void 0 && !hasConfiguredCppRuntimeAssets(configuredAssets) ? {
|
|
219017
|
+
assets: {
|
|
219018
|
+
...configuredAssets,
|
|
219019
|
+
runtimeAssetProvider(runtime3) {
|
|
219020
|
+
return configuredAssets?.runtimeAssetProvider?.(runtime3) ?? (runtime3 === "cpp" ? cppProvider[3].resolveBuiltInTraceCCProjectRuntimeManifest(
|
|
219021
|
+
options.assetBaseUrl ?? "/workers"
|
|
219022
|
+
) : void 0);
|
|
219023
|
+
}
|
|
219024
|
+
}
|
|
219025
|
+
} : {}
|
|
219026
|
+
});
|
|
218795
219027
|
const runtimeAssetPreflight = createBrowserRuntimeAssetPreflight(assets.runtimeManifests);
|
|
218796
219028
|
const pythonManifest = assets.runtimeManifests?.python;
|
|
218797
219029
|
const pythonAsset = (name) => {
|
|
@@ -219215,181 +219447,7 @@ async function createBrowserProjectWorkspace(options = {}) {
|
|
|
219215
219447
|
|
|
219216
219448
|
// src/tracekernel.ts
|
|
219217
219449
|
init_runtime_capability_guards();
|
|
219218
|
-
|
|
219219
|
-
// packages/runtime-cpp/src/tracecc-runtime-assets.generated.ts
|
|
219220
|
-
var TRACECC_RUNTIME_CONTENT_HASH = "fb4b6f41f9e9b7db89b6c8425bb2c6218979219a4150f96619b6461b4b78d294";
|
|
219221
|
-
var TRACECC_RUNTIME_ASSETS = Object.freeze({
|
|
219222
|
-
"runtimeHeader": {
|
|
219223
|
-
"fileName": "tracecode_runtime.hpp",
|
|
219224
|
-
"integrity": "sha256-WEbB8mLN8cwKIWPf25UL7yoTSM9nCqWs8MkE0B14EtE=",
|
|
219225
|
-
"mediaType": "text/plain",
|
|
219226
|
-
"size": 263083
|
|
219227
|
-
},
|
|
219228
|
-
"compilerWasm": {
|
|
219229
|
-
"fileName": "tracecc-reactor.wasm",
|
|
219230
|
-
"integrity": "sha256-At40hCU4Rmvynp1s8UzQ1eX/UZybo5BWHMsVgQXUTUE=",
|
|
219231
|
-
"mediaType": "application/wasm",
|
|
219232
|
-
"size": 33478188
|
|
219233
|
-
},
|
|
219234
|
-
"sysroot": {
|
|
219235
|
-
"fileName": "llvm-resources.tar",
|
|
219236
|
-
"integrity": "sha256-2V0qK8hAihbAdEmWrEfJG7PGO7cblDFcl5YIm23ahVU=",
|
|
219237
|
-
"mediaType": "application/x-tar",
|
|
219238
|
-
"size": 29112320
|
|
219239
|
-
},
|
|
219240
|
-
"narrowPch": {
|
|
219241
|
-
"fileName": "narrow.pch",
|
|
219242
|
-
"integrity": "sha256-rbuVm7YeO+HwDpSJPAqGGNrrPKeJveazS/juUWXs5/A=",
|
|
219243
|
-
"mediaType": "application/octet-stream",
|
|
219244
|
-
"size": 21322216
|
|
219245
|
-
},
|
|
219246
|
-
"narrowPchSource": {
|
|
219247
|
-
"fileName": "narrow.source.hpp",
|
|
219248
|
-
"integrity": "sha256-SMqxQfcMBSUHUcAz+7Cp4vkWyOtgv7mNB09JE1cOEAU=",
|
|
219249
|
-
"mediaType": "text/plain",
|
|
219250
|
-
"size": 815
|
|
219251
|
-
},
|
|
219252
|
-
"narrowRuntimeObject": {
|
|
219253
|
-
"fileName": "narrow.o",
|
|
219254
|
-
"integrity": "sha256-il/wX66FvAU9SJSiDepMuEZ00CipED4EEEfqcdxEg8c=",
|
|
219255
|
-
"mediaType": "application/wasm",
|
|
219256
|
-
"size": 1042570
|
|
219257
|
-
},
|
|
219258
|
-
"broadPch": {
|
|
219259
|
-
"fileName": "broad.pch",
|
|
219260
|
-
"integrity": "sha256-ktKxBSglo50GPM9GJJwBpqyYDcFHkKGjoyEtsUmLMrI=",
|
|
219261
|
-
"mediaType": "application/octet-stream",
|
|
219262
|
-
"size": 24543552
|
|
219263
|
-
},
|
|
219264
|
-
"broadPchSource": {
|
|
219265
|
-
"fileName": "broad.source.hpp",
|
|
219266
|
-
"integrity": "sha256-MOayycWl5KYaLS8vP2MoJh4kazsDhg0kH9Bi6dvsy0s=",
|
|
219267
|
-
"mediaType": "text/plain",
|
|
219268
|
-
"size": 7095
|
|
219269
|
-
},
|
|
219270
|
-
"broadRuntimeObject": {
|
|
219271
|
-
"fileName": "broad.o",
|
|
219272
|
-
"integrity": "sha256-f69Oe7kRn9JEIUEPgM1cuYbf50oph4IxEnVP7VIZGp4=",
|
|
219273
|
-
"mediaType": "application/wasm",
|
|
219274
|
-
"size": 1892879
|
|
219275
|
-
},
|
|
219276
|
-
"mapPch": {
|
|
219277
|
-
"fileName": "map.pch",
|
|
219278
|
-
"integrity": "sha256-fX7zTmJXnRJ2acbDiJ4Wu7/xf1G510SB2fLzkTgr2Uc=",
|
|
219279
|
-
"mediaType": "application/octet-stream",
|
|
219280
|
-
"size": 29951380
|
|
219281
|
-
},
|
|
219282
|
-
"mapPchSource": {
|
|
219283
|
-
"fileName": "map.source.hpp",
|
|
219284
|
-
"integrity": "sha256-WHaMpx3nG/h1ro6CppBseoDIkgqahbYnFxShHLGT9/c=",
|
|
219285
|
-
"mediaType": "text/plain",
|
|
219286
|
-
"size": 10708
|
|
219287
|
-
},
|
|
219288
|
-
"mapRuntimeObject": {
|
|
219289
|
-
"fileName": "map.o",
|
|
219290
|
-
"integrity": "sha256-02ktvX6uqV05it5kdBEm/ncOszBeO43wX93Yk079E4U=",
|
|
219291
|
-
"mediaType": "application/wasm",
|
|
219292
|
-
"size": 3372458
|
|
219293
|
-
}
|
|
219294
|
-
});
|
|
219295
|
-
|
|
219296
|
-
// packages/runtime-cpp/src/tracecc-runtime-assets.ts
|
|
219297
|
-
var TRACECC_RUNTIME_ASSET_RELATIVE_PATH = `cpp/tracecc/${TRACECC_RUNTIME_CONTENT_HASH}`;
|
|
219298
|
-
var typedTraceCCRuntimeAssets = TRACECC_RUNTIME_ASSETS;
|
|
219299
|
-
function stripTrailingSlash3(value) {
|
|
219300
|
-
return value.replace(/\/+$/, "");
|
|
219301
|
-
}
|
|
219302
|
-
function normalizeAssetBaseUrl(value) {
|
|
219303
|
-
const normalized = stripTrailingSlash3(value.trim());
|
|
219304
|
-
if (!normalized) {
|
|
219305
|
-
throw new TypeError("TraceCC requires a non-empty asset base URL.");
|
|
219306
|
-
}
|
|
219307
|
-
if (/[?#]/u.test(normalized)) {
|
|
219308
|
-
throw new TypeError(
|
|
219309
|
-
"TraceCC asset base URL must be a directory without a query or fragment."
|
|
219310
|
-
);
|
|
219311
|
-
}
|
|
219312
|
-
return normalized;
|
|
219313
|
-
}
|
|
219314
|
-
function normalizeWorkerUrl(value) {
|
|
219315
|
-
const normalized = value.trim();
|
|
219316
|
-
if (!normalized) {
|
|
219317
|
-
throw new TypeError("TraceCC worker URL must not be empty.");
|
|
219318
|
-
}
|
|
219319
|
-
return normalized;
|
|
219320
|
-
}
|
|
219321
|
-
function descriptor2(asset) {
|
|
219322
|
-
return {
|
|
219323
|
-
url: asset.fileName,
|
|
219324
|
-
integrity: asset.integrity,
|
|
219325
|
-
mediaType: asset.mediaType,
|
|
219326
|
-
size: asset.size,
|
|
219327
|
-
delivery: {
|
|
219328
|
-
mutability: "immutable",
|
|
219329
|
-
address: "content"
|
|
219330
|
-
}
|
|
219331
|
-
};
|
|
219332
|
-
}
|
|
219333
|
-
function createTraceCCRuntimeManifest(assetBaseUrl, options = {}) {
|
|
219334
|
-
const normalizedAssetBaseUrl = normalizeAssetBaseUrl(assetBaseUrl);
|
|
219335
|
-
const workerUrl = normalizeWorkerUrl(
|
|
219336
|
-
options.workerUrl ?? "/workers/cpp-worker.js"
|
|
219337
|
-
);
|
|
219338
|
-
const compilerWasm = descriptor2(
|
|
219339
|
-
typedTraceCCRuntimeAssets.compilerWasm
|
|
219340
|
-
);
|
|
219341
|
-
return {
|
|
219342
|
-
runtime: "cpp",
|
|
219343
|
-
runtimeVersion: `tracecc-${TRACECC_RUNTIME_CONTENT_HASH.slice(0, 12)}`,
|
|
219344
|
-
protocolVersion: "browser-runtime-assets-v1",
|
|
219345
|
-
assetBaseUrl: `${normalizedAssetBaseUrl}/`,
|
|
219346
|
-
workerFormat: "module",
|
|
219347
|
-
assets: {
|
|
219348
|
-
worker: { url: workerUrl },
|
|
219349
|
-
runtimeHeader: descriptor2(typedTraceCCRuntimeAssets.runtimeHeader),
|
|
219350
|
-
compilerWasm,
|
|
219351
|
-
linkerWasm: compilerWasm,
|
|
219352
|
-
sysroot: descriptor2(typedTraceCCRuntimeAssets.sysroot),
|
|
219353
|
-
compilerResources: {
|
|
219354
|
-
"tracecc-narrow-pch": descriptor2(
|
|
219355
|
-
typedTraceCCRuntimeAssets.narrowPch
|
|
219356
|
-
),
|
|
219357
|
-
"tracecc-narrow-pch-source": descriptor2(
|
|
219358
|
-
typedTraceCCRuntimeAssets.narrowPchSource
|
|
219359
|
-
),
|
|
219360
|
-
"tracecc-narrow-runtime-object": descriptor2(
|
|
219361
|
-
typedTraceCCRuntimeAssets.narrowRuntimeObject
|
|
219362
|
-
),
|
|
219363
|
-
"tracecc-broad-pch": descriptor2(
|
|
219364
|
-
typedTraceCCRuntimeAssets.broadPch
|
|
219365
|
-
),
|
|
219366
|
-
"tracecc-broad-pch-source": descriptor2(
|
|
219367
|
-
typedTraceCCRuntimeAssets.broadPchSource
|
|
219368
|
-
),
|
|
219369
|
-
"tracecc-broad-runtime-object": descriptor2(
|
|
219370
|
-
typedTraceCCRuntimeAssets.broadRuntimeObject
|
|
219371
|
-
),
|
|
219372
|
-
"tracecc-map-pch": descriptor2(
|
|
219373
|
-
typedTraceCCRuntimeAssets.mapPch
|
|
219374
|
-
),
|
|
219375
|
-
"tracecc-map-pch-source": descriptor2(
|
|
219376
|
-
typedTraceCCRuntimeAssets.mapPchSource
|
|
219377
|
-
),
|
|
219378
|
-
"tracecc-map-runtime-object": descriptor2(
|
|
219379
|
-
typedTraceCCRuntimeAssets.mapRuntimeObject
|
|
219380
|
-
)
|
|
219381
|
-
}
|
|
219382
|
-
}
|
|
219383
|
-
};
|
|
219384
|
-
}
|
|
219385
|
-
function resolveBuiltInTraceCCRuntimeManifest(assetBaseUrl = "/workers") {
|
|
219386
|
-
const normalizedAssetBaseUrl = normalizeAssetBaseUrl(assetBaseUrl);
|
|
219387
|
-
return createTraceCCRuntimeManifest(
|
|
219388
|
-
`${normalizedAssetBaseUrl}/${TRACECC_RUNTIME_ASSET_RELATIVE_PATH}`,
|
|
219389
|
-
{ workerUrl: `${normalizedAssetBaseUrl}/cpp-worker.js` }
|
|
219390
|
-
);
|
|
219391
|
-
}
|
|
219392
|
-
var TRACECC_RUNTIME_MANIFEST = resolveBuiltInTraceCCRuntimeManifest();
|
|
219450
|
+
init_tracecc_runtime_assets();
|
|
219393
219451
|
|
|
219394
219452
|
// src/internal/python-analysis.ts
|
|
219395
219453
|
init_python_worker_client();
|
|
@@ -219716,6 +219774,7 @@ init_runtime_open_source_info();
|
|
|
219716
219774
|
readRuntimeProcFile,
|
|
219717
219775
|
resolveBrowserRuntimeAssetManifests,
|
|
219718
219776
|
resolveBrowserRuntimeAssets,
|
|
219777
|
+
resolveBuiltInTraceCCProjectRuntimeManifest,
|
|
219719
219778
|
resolveBuiltInTraceCCRuntimeManifest,
|
|
219720
219779
|
resolveRuntimeOpenSourceResourceHref,
|
|
219721
219780
|
runRuntimeProjectWorkerBridge,
|
package/dist/tracekernel.d.cts
CHANGED
|
@@ -44,6 +44,15 @@ declare function createTraceCCRuntimeManifest(assetBaseUrl: string, options?: {
|
|
|
44
44
|
* available with an explicit worker URL override.
|
|
45
45
|
*/
|
|
46
46
|
declare function resolveBuiltInTraceCCRuntimeManifest(assetBaseUrl?: string): BrowserRuntimeAssetManifest<'cpp'>;
|
|
47
|
+
/**
|
|
48
|
+
* Resolves the built-in TraceCC tree for an isolated Project workspace.
|
|
49
|
+
*
|
|
50
|
+
* Project workers use a distinct entrypoint so deployments can attach the
|
|
51
|
+
* COOP/COEP headers required by the workspace without changing the shared
|
|
52
|
+
* Practice/Judge worker policy. The compiler tree remains the same immutable
|
|
53
|
+
* Harness release.
|
|
54
|
+
*/
|
|
55
|
+
declare function resolveBuiltInTraceCCProjectRuntimeManifest(assetBaseUrl?: string): BrowserRuntimeAssetManifest<'cpp'>;
|
|
47
56
|
/** The pinned fb4 TraceCC manifest for the standard `/workers` deployment. */
|
|
48
57
|
declare const TRACECC_RUNTIME_MANIFEST: BrowserRuntimeAssetManifest<"cpp">;
|
|
49
58
|
|
|
@@ -101,4 +110,4 @@ type CreatePythonAnalysisClientOptions = PythonWorkerClientOptions;
|
|
|
101
110
|
*/
|
|
102
111
|
declare function createPythonAnalysisClient(options: CreatePythonAnalysisClientOptions): PythonAnalysisClient;
|
|
103
112
|
|
|
104
|
-
export { BrowserRuntimeAssetManifest, CodeExecutionResult, type CreatePythonAnalysisClientOptions, type PythonAnalysisClient, RuntimeExecutionStyle, TRACECC_RUNTIME_ASSET_RELATIVE_PATH, TRACECC_RUNTIME_CONTENT_HASH, TRACECC_RUNTIME_MANIFEST, createPythonAnalysisClient, createTraceCCRuntimeManifest, resolveBuiltInTraceCCRuntimeManifest };
|
|
113
|
+
export { BrowserRuntimeAssetManifest, CodeExecutionResult, type CreatePythonAnalysisClientOptions, type PythonAnalysisClient, RuntimeExecutionStyle, TRACECC_RUNTIME_ASSET_RELATIVE_PATH, TRACECC_RUNTIME_CONTENT_HASH, TRACECC_RUNTIME_MANIFEST, createPythonAnalysisClient, createTraceCCRuntimeManifest, resolveBuiltInTraceCCProjectRuntimeManifest, resolveBuiltInTraceCCRuntimeManifest };
|
package/dist/tracekernel.d.ts
CHANGED
|
@@ -44,6 +44,15 @@ declare function createTraceCCRuntimeManifest(assetBaseUrl: string, options?: {
|
|
|
44
44
|
* available with an explicit worker URL override.
|
|
45
45
|
*/
|
|
46
46
|
declare function resolveBuiltInTraceCCRuntimeManifest(assetBaseUrl?: string): BrowserRuntimeAssetManifest<'cpp'>;
|
|
47
|
+
/**
|
|
48
|
+
* Resolves the built-in TraceCC tree for an isolated Project workspace.
|
|
49
|
+
*
|
|
50
|
+
* Project workers use a distinct entrypoint so deployments can attach the
|
|
51
|
+
* COOP/COEP headers required by the workspace without changing the shared
|
|
52
|
+
* Practice/Judge worker policy. The compiler tree remains the same immutable
|
|
53
|
+
* Harness release.
|
|
54
|
+
*/
|
|
55
|
+
declare function resolveBuiltInTraceCCProjectRuntimeManifest(assetBaseUrl?: string): BrowserRuntimeAssetManifest<'cpp'>;
|
|
47
56
|
/** The pinned fb4 TraceCC manifest for the standard `/workers` deployment. */
|
|
48
57
|
declare const TRACECC_RUNTIME_MANIFEST: BrowserRuntimeAssetManifest<"cpp">;
|
|
49
58
|
|
|
@@ -101,4 +110,4 @@ type CreatePythonAnalysisClientOptions = PythonWorkerClientOptions;
|
|
|
101
110
|
*/
|
|
102
111
|
declare function createPythonAnalysisClient(options: CreatePythonAnalysisClientOptions): PythonAnalysisClient;
|
|
103
112
|
|
|
104
|
-
export { BrowserRuntimeAssetManifest, CodeExecutionResult, type CreatePythonAnalysisClientOptions, type PythonAnalysisClient, RuntimeExecutionStyle, TRACECC_RUNTIME_ASSET_RELATIVE_PATH, TRACECC_RUNTIME_CONTENT_HASH, TRACECC_RUNTIME_MANIFEST, createPythonAnalysisClient, createTraceCCRuntimeManifest, resolveBuiltInTraceCCRuntimeManifest };
|
|
113
|
+
export { BrowserRuntimeAssetManifest, CodeExecutionResult, type CreatePythonAnalysisClientOptions, type PythonAnalysisClient, RuntimeExecutionStyle, TRACECC_RUNTIME_ASSET_RELATIVE_PATH, TRACECC_RUNTIME_CONTENT_HASH, TRACECC_RUNTIME_MANIFEST, createPythonAnalysisClient, createTraceCCRuntimeManifest, resolveBuiltInTraceCCProjectRuntimeManifest, resolveBuiltInTraceCCRuntimeManifest };
|