@tracecode/harness 0.6.5 → 0.7.0-beta7
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 +55 -0
- package/README.md +134 -15
- package/THIRD_PARTY_NOTICES.md +170 -0
- package/dist/browser.cjs +2361 -1033
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +33 -3
- package/dist/browser.d.ts +33 -3
- package/dist/browser.js +2357 -1033
- package/dist/browser.js.map +1 -1
- package/dist/cli.cjs +160 -23
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +161 -24
- package/dist/cli.js.map +1 -1
- package/dist/core.cjs +748 -867
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +21 -85
- package/dist/core.d.ts +21 -85
- package/dist/core.js +734 -855
- package/dist/core.js.map +1 -1
- package/dist/cpp-worker-client-Bn7kC0_L.d.ts +84 -0
- package/dist/cpp-worker-client-BzdJLuZa.d.cts +84 -0
- package/dist/cpp.cjs +1063 -0
- package/dist/cpp.cjs.map +1 -0
- package/dist/cpp.d.cts +7 -0
- package/dist/cpp.d.ts +7 -0
- package/dist/cpp.js +1035 -0
- package/dist/cpp.js.map +1 -0
- package/dist/csharp-worker-client-DMHIa2YG.d.cts +69 -0
- package/dist/csharp-worker-client-JwqS6LiX.d.ts +69 -0
- package/dist/csharp.cjs +1012 -0
- package/dist/csharp.cjs.map +1 -0
- package/dist/csharp.d.cts +7 -0
- package/dist/csharp.d.ts +7 -0
- package/dist/csharp.js +984 -0
- package/dist/csharp.js.map +1 -0
- package/dist/index.cjs +3142 -1160
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -5
- package/dist/index.d.ts +13 -5
- package/dist/index.js +3117 -1148
- package/dist/index.js.map +1 -1
- package/dist/internal/browser.cjs +1639 -30
- package/dist/internal/browser.cjs.map +1 -1
- package/dist/internal/browser.d.cts +6 -199
- package/dist/internal/browser.d.ts +6 -199
- package/dist/internal/browser.js +1636 -30
- package/dist/internal/browser.js.map +1 -1
- package/dist/java-worker-client-BOwKW-11.d.cts +72 -0
- package/dist/java-worker-client-C97DDnCp.d.ts +72 -0
- package/dist/java.cjs +1225 -0
- package/dist/java.cjs.map +1 -0
- package/dist/java.d.cts +7 -0
- package/dist/java.d.ts +7 -0
- package/dist/java.js +1197 -0
- package/dist/java.js.map +1 -0
- package/dist/javascript-worker-client-CYBGEEvc.d.cts +51 -0
- package/dist/javascript-worker-client-DIX1Mp21.d.ts +51 -0
- package/dist/javascript.cjs +1063 -19
- package/dist/javascript.cjs.map +1 -1
- package/dist/javascript.d.cts +7 -4
- package/dist/javascript.d.ts +7 -4
- package/dist/javascript.js +1061 -19
- package/dist/javascript.js.map +1 -1
- package/dist/pyodide-worker-client-C-2rfHj9.d.ts +111 -0
- package/dist/pyodide-worker-client-Cn0a8Uv3.d.cts +111 -0
- package/dist/python.cjs +1282 -74
- package/dist/python.cjs.map +1 -1
- package/dist/python.d.cts +20 -14
- package/dist/python.d.ts +20 -14
- package/dist/python.js +1279 -74
- package/dist/python.js.map +1 -1
- package/dist/runtime-language-info-BFUSti3-.d.ts +43 -0
- package/dist/runtime-language-info-Bxza1cI2.d.cts +43 -0
- package/dist/runtime-types-2qM0MukN.d.cts +244 -0
- package/dist/runtime-types-2qM0MukN.d.ts +244 -0
- package/package.json +73 -8
- package/workers/cpp/cpp-compiler-frame.html +82 -0
- package/workers/cpp/cpp-compiler-worker.js +131 -0
- package/workers/cpp/cpp-worker.js +5790 -0
- package/workers/cpp/tracecode_runtime.hpp +6147 -0
- package/workers/csharp/csharp-worker.js +301 -0
- package/workers/java/.build/classes/harness/browser/JavaRewriteLibrary.class +0 -0
- package/workers/java/java-source-augmentations.js +880 -0
- package/workers/java/java-worker.js +2256 -170
- package/workers/java/src/harness/browser/JavaRewriteLibrary.java +1645 -32
- package/workers/java/src/javafx/util/Pair.java +42 -0
- package/workers/java/src/tracecode/browser/BrowserCompileAndTraceLibrary.java +714 -0
- package/workers/java/src/tracecode/browser/BrowserCompileAndTraceMain.java +76 -0
- package/workers/java/src/tracecode/browser/RuntimeProbeMain.java +14 -0
- package/workers/java/src/tracecode/user/TraceHooks.java +1406 -0
- package/workers/javascript/javascript-libraries-entry.js +71 -0
- package/workers/javascript/javascript-worker.js +2054 -424
- package/workers/python/generated-python-harness-snippets.js +4 -4
- package/workers/python/pyodide-worker.js +222 -61
- package/workers/python/runtime-core.js +1387 -301
- package/workers/vendor/csharp/.stamp +0 -0
- package/workers/vendor/csharp/TraceCode.CSharpHost.runtimeconfig.json +32 -0
- package/workers/vendor/csharp/_framework/Microsoft.CSharp.wasm +0 -0
- package/workers/vendor/csharp/_framework/Microsoft.CodeAnalysis.CSharp.wasm +0 -0
- package/workers/vendor/csharp/_framework/Microsoft.CodeAnalysis.wasm +0 -0
- package/workers/vendor/csharp/_framework/Microsoft.VisualBasic.Core.wasm +0 -0
- package/workers/vendor/csharp/_framework/Microsoft.VisualBasic.wasm +0 -0
- package/workers/vendor/csharp/_framework/Microsoft.Win32.Primitives.wasm +0 -0
- package/workers/vendor/csharp/_framework/Microsoft.Win32.Registry.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.AppContext.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Buffers.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Collections.Concurrent.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Collections.Immutable.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Collections.NonGeneric.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Collections.Specialized.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Collections.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.ComponentModel.Annotations.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.ComponentModel.DataAnnotations.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.ComponentModel.EventBasedAsync.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.ComponentModel.Primitives.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.ComponentModel.TypeConverter.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.ComponentModel.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Configuration.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Console.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Core.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Data.Common.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Data.DataSetExtensions.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Data.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Diagnostics.Contracts.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Diagnostics.Debug.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Diagnostics.DiagnosticSource.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Diagnostics.FileVersionInfo.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Diagnostics.Process.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Diagnostics.StackTrace.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Diagnostics.TextWriterTraceListener.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Diagnostics.Tools.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Diagnostics.TraceSource.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Diagnostics.Tracing.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Drawing.Primitives.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Drawing.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Dynamic.Runtime.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Formats.Asn1.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Formats.Tar.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Globalization.Calendars.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Globalization.Extensions.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Globalization.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.Compression.Brotli.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.Compression.FileSystem.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.Compression.ZipFile.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.Compression.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.FileSystem.AccessControl.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.FileSystem.DriveInfo.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.FileSystem.Primitives.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.FileSystem.Watcher.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.FileSystem.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.IsolatedStorage.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.MemoryMappedFiles.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.Pipelines.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.Pipes.AccessControl.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.Pipes.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.UnmanagedMemoryStream.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.IO.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Linq.AsyncEnumerable.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Linq.Expressions.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Linq.Parallel.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Linq.Queryable.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Linq.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Memory.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.Http.Json.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.Http.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.HttpListener.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.Mail.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.NameResolution.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.NetworkInformation.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.Ping.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.Primitives.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.Quic.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.Requests.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.Security.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.ServerSentEvents.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.ServicePoint.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.Sockets.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.WebClient.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.WebHeaderCollection.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.WebProxy.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.WebSockets.Client.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.WebSockets.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Net.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Numerics.Vectors.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Numerics.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.ObjectModel.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Private.CoreLib.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Private.DataContractSerialization.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Private.Uri.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Private.Xml.Linq.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Private.Xml.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Reflection.DispatchProxy.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Reflection.Emit.ILGeneration.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Reflection.Emit.Lightweight.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Reflection.Emit.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Reflection.Extensions.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Reflection.Metadata.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Reflection.Primitives.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Reflection.TypeExtensions.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Reflection.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Resources.Reader.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Resources.ResourceManager.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Resources.Writer.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.CompilerServices.Unsafe.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.CompilerServices.VisualC.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.Extensions.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.Handles.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.InteropServices.JavaScript.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.InteropServices.RuntimeInformation.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.InteropServices.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.Intrinsics.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.Loader.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.Numerics.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.Serialization.Formatters.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.Serialization.Json.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.Serialization.Primitives.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.Serialization.Xml.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.Serialization.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Runtime.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.AccessControl.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.Claims.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.Cryptography.Algorithms.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.Cryptography.Cng.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.Cryptography.Csp.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.Cryptography.Encoding.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.Cryptography.OpenSsl.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.Cryptography.Primitives.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.Cryptography.X509Certificates.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.Cryptography.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.Principal.Windows.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.Principal.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.SecureString.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Security.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.ServiceModel.Web.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.ServiceProcess.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Text.Encoding.CodePages.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Text.Encoding.Extensions.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Text.Encoding.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Text.Encodings.Web.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Text.Json.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Text.RegularExpressions.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Threading.AccessControl.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Threading.Channels.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Threading.Overlapped.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Threading.Tasks.Dataflow.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Threading.Tasks.Extensions.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Threading.Tasks.Parallel.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Threading.Tasks.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Threading.Thread.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Threading.ThreadPool.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Threading.Timer.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Threading.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Transactions.Local.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Transactions.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.ValueTuple.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Web.HttpUtility.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Web.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Windows.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Xml.Linq.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Xml.ReaderWriter.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Xml.Serialization.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Xml.XDocument.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Xml.XPath.XDocument.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Xml.XPath.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Xml.XmlDocument.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Xml.XmlSerializer.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.Xml.wasm +0 -0
- package/workers/vendor/csharp/_framework/System.wasm +0 -0
- package/workers/vendor/csharp/_framework/TraceCode.CSharpHost.wasm +0 -0
- package/workers/vendor/csharp/_framework/WindowsBase.wasm +0 -0
- package/workers/vendor/csharp/_framework/cs/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/cs/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/de/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/de/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/dotnet.boot.js +1958 -0
- package/workers/vendor/csharp/_framework/dotnet.js +4 -0
- package/workers/vendor/csharp/_framework/dotnet.js.map +1 -0
- package/workers/vendor/csharp/_framework/dotnet.native.js +6687 -0
- package/workers/vendor/csharp/_framework/dotnet.native.wasm +0 -0
- package/workers/vendor/csharp/_framework/dotnet.runtime.js +4 -0
- package/workers/vendor/csharp/_framework/dotnet.runtime.js.map +1 -0
- package/workers/vendor/csharp/_framework/es/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/es/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/fr/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/fr/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/it/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/it/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/ja/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/ja/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/ko/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/ko/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/mscorlib.wasm +0 -0
- package/workers/vendor/csharp/_framework/netstandard.wasm +0 -0
- package/workers/vendor/csharp/_framework/pl/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/pl/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/pt-BR/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/ru/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/ru/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/0_Microsoft.CodeAnalysis.CSharp.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/100_System.Reflection.Emit.ILGeneration.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/101_System.Reflection.Emit.Lightweight.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/102_System.Reflection.Extensions.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/103_System.Reflection.Metadata.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/104_System.Reflection.Primitives.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/105_System.Reflection.TypeExtensions.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/106_System.Resources.Reader.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/107_System.Resources.ResourceManager.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/108_System.Resources.Writer.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/109_System.Runtime.CompilerServices.Unsafe.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/10_System.Buffers.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/110_System.Runtime.CompilerServices.VisualC.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/111_System.Runtime.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/112_System.Runtime.Extensions.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/113_System.Runtime.Handles.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/114_System.Runtime.InteropServices.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/115_System.Runtime.InteropServices.JavaScript.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/116_System.Runtime.InteropServices.RuntimeInformation.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/117_System.Runtime.Intrinsics.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/118_System.Runtime.Loader.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/119_System.Runtime.Numerics.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/11_System.Collections.Concurrent.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/120_System.Runtime.Serialization.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/121_System.Runtime.Serialization.Formatters.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/122_System.Runtime.Serialization.Json.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/123_System.Runtime.Serialization.Primitives.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/124_System.Runtime.Serialization.Xml.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/125_System.Security.AccessControl.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/126_System.Security.Claims.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/127_System.Security.Cryptography.Algorithms.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/128_System.Security.Cryptography.Cng.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/129_System.Security.Cryptography.Csp.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/12_System.Collections.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/130_System.Security.Cryptography.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/131_System.Security.Cryptography.Encoding.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/132_System.Security.Cryptography.OpenSsl.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/133_System.Security.Cryptography.Primitives.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/134_System.Security.Cryptography.X509Certificates.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/135_System.Security.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/136_System.Security.Principal.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/137_System.Security.Principal.Windows.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/138_System.Security.SecureString.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/139_System.ServiceModel.Web.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/13_System.Collections.Immutable.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/140_System.ServiceProcess.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/141_System.Text.Encoding.CodePages.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/142_System.Text.Encoding.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/143_System.Text.Encoding.Extensions.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/144_System.Text.Encodings.Web.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/145_System.Text.Json.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/146_System.Text.RegularExpressions.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/147_System.Threading.AccessControl.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/148_System.Threading.Channels.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/149_System.Threading.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/14_System.Collections.NonGeneric.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/150_System.Threading.Overlapped.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/151_System.Threading.Tasks.Dataflow.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/152_System.Threading.Tasks.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/153_System.Threading.Tasks.Extensions.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/154_System.Threading.Tasks.Parallel.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/155_System.Threading.Thread.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/156_System.Threading.ThreadPool.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/157_System.Threading.Timer.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/158_System.Transactions.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/159_System.Transactions.Local.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/15_System.Collections.Specialized.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/160_System.ValueTuple.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/161_System.Web.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/162_System.Web.HttpUtility.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/163_System.Windows.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/164_System.Xml.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/165_System.Xml.Linq.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/166_System.Xml.ReaderWriter.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/167_System.Xml.Serialization.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/168_System.Xml.XDocument.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/169_System.Xml.XmlDocument.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/16_System.ComponentModel.Annotations.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/170_System.Xml.XmlSerializer.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/171_System.Xml.XPath.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/172_System.Xml.XPath.XDocument.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/173_TraceCode.CSharpHost.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/174_WindowsBase.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/17_System.ComponentModel.DataAnnotations.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/18_System.ComponentModel.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/19_System.ComponentModel.EventBasedAsync.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/1_Microsoft.CodeAnalysis.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/20_System.ComponentModel.Primitives.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/21_System.ComponentModel.TypeConverter.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/22_System.Configuration.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/23_System.Console.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/24_System.Core.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/25_System.Data.Common.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/26_System.Data.DataSetExtensions.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/27_System.Data.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/28_System.Diagnostics.Contracts.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/29_System.Diagnostics.Debug.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/2_Microsoft.CSharp.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/30_System.Diagnostics.DiagnosticSource.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/31_System.Diagnostics.FileVersionInfo.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/32_System.Diagnostics.Process.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/33_System.Diagnostics.StackTrace.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/34_System.Diagnostics.TextWriterTraceListener.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/35_System.Diagnostics.Tools.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/36_System.Diagnostics.TraceSource.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/37_System.Diagnostics.Tracing.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/38_System.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/39_System.Drawing.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/3_Microsoft.VisualBasic.Core.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/40_System.Drawing.Primitives.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/41_System.Dynamic.Runtime.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/42_System.Formats.Asn1.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/43_System.Formats.Tar.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/44_System.Globalization.Calendars.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/45_System.Globalization.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/46_System.Globalization.Extensions.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/47_System.IO.Compression.Brotli.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/48_System.IO.Compression.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/49_System.IO.Compression.FileSystem.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/4_Microsoft.VisualBasic.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/50_System.IO.Compression.ZipFile.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/51_System.IO.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/52_System.IO.FileSystem.AccessControl.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/53_System.IO.FileSystem.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/54_System.IO.FileSystem.DriveInfo.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/55_System.IO.FileSystem.Primitives.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/56_System.IO.FileSystem.Watcher.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/57_System.IO.IsolatedStorage.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/58_System.IO.MemoryMappedFiles.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/59_System.IO.Pipelines.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/5_Microsoft.Win32.Primitives.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/60_System.IO.Pipes.AccessControl.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/61_System.IO.Pipes.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/62_System.IO.UnmanagedMemoryStream.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/63_System.Linq.AsyncEnumerable.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/64_System.Linq.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/65_System.Linq.Expressions.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/66_System.Linq.Parallel.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/67_System.Linq.Queryable.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/68_System.Memory.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/69_System.Net.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/6_Microsoft.Win32.Registry.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/70_System.Net.Http.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/71_System.Net.Http.Json.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/72_System.Net.HttpListener.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/73_System.Net.Mail.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/74_System.Net.NameResolution.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/75_System.Net.NetworkInformation.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/76_System.Net.Ping.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/77_System.Net.Primitives.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/78_System.Net.Quic.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/79_System.Net.Requests.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/7_mscorlib.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/80_System.Net.Security.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/81_System.Net.ServerSentEvents.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/82_System.Net.ServicePoint.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/83_System.Net.Sockets.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/84_System.Net.WebClient.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/85_System.Net.WebHeaderCollection.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/86_System.Net.WebProxy.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/87_System.Net.WebSockets.Client.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/88_System.Net.WebSockets.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/89_System.Numerics.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/8_netstandard.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/90_System.Numerics.Vectors.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/91_System.ObjectModel.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/92_System.Private.CoreLib.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/93_System.Private.DataContractSerialization.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/94_System.Private.Uri.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/95_System.Private.Xml.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/96_System.Private.Xml.Linq.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/97_System.Reflection.DispatchProxy.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/98_System.Reflection.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/99_System.Reflection.Emit.dll +0 -0
- package/workers/vendor/csharp/_framework/supportFiles/9_System.AppContext.dll +0 -0
- package/workers/vendor/csharp/_framework/tr/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/tr/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/zh-Hans/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.wasm +0 -0
- package/workers/vendor/csharp/_framework/zh-Hant/Microsoft.CodeAnalysis.resources.wasm +0 -0
- package/workers/vendor/csharp/main.mjs +5 -0
- package/workers/vendor/csharp/package.json +1 -0
- package/workers/vendor/java-browser-helper.jar +0 -0
- package/workers/vendor/java-rewriter.jar +0 -0
- package/workers/vendor/javascript-libraries.js +10106 -0
- package/dist/runtime-types-89nchXlY.d.cts +0 -89
- package/dist/runtime-types-CCQ-ZLc9.d.ts +0 -89
- package/dist/types-zyvpJKCi.d.cts +0 -100
- package/dist/types-zyvpJKCi.d.ts +0 -100
- package/workers/java/java-source-augmentations.cjs +0 -242
- package/workers/java/src/spike/user/TraceHooks.java +0 -619
- package/workers/vendor/java-browser-spike-helper.jar +0 -0
- package/workers/vendor/java-practice-rewriter.jar +0 -0
- package/workers/vendor/java-rewrite-bridge.jar +0 -0
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { E as ExecutionResult, a as CodeExecutionResult } from './types-zyvpJKCi.cjs';
|
|
2
|
-
|
|
3
|
-
type Language = 'python' | 'javascript' | 'typescript' | 'java';
|
|
4
|
-
type RuntimeExecutionStyle = 'function' | 'solution-method' | 'ops-class';
|
|
5
|
-
type RuntimeMaturity = 'experimental' | 'beta' | 'stable';
|
|
6
|
-
interface RuntimeCapabilities {
|
|
7
|
-
execution: {
|
|
8
|
-
styles: {
|
|
9
|
-
function: boolean;
|
|
10
|
-
solutionMethod: boolean;
|
|
11
|
-
opsClass: boolean;
|
|
12
|
-
script: boolean;
|
|
13
|
-
interviewMode: boolean;
|
|
14
|
-
};
|
|
15
|
-
timeouts: {
|
|
16
|
-
clientTimeouts: boolean;
|
|
17
|
-
runtimeTimeouts: boolean;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
tracing: {
|
|
21
|
-
supported: boolean;
|
|
22
|
-
events: {
|
|
23
|
-
line: boolean;
|
|
24
|
-
call: boolean;
|
|
25
|
-
return: boolean;
|
|
26
|
-
exception: boolean;
|
|
27
|
-
stdout: boolean;
|
|
28
|
-
timeout: boolean;
|
|
29
|
-
};
|
|
30
|
-
controls: {
|
|
31
|
-
maxTraceSteps: boolean;
|
|
32
|
-
maxLineEvents: boolean;
|
|
33
|
-
maxSingleLineHits: boolean;
|
|
34
|
-
maxStoredEvents: boolean;
|
|
35
|
-
minimalTrace: boolean;
|
|
36
|
-
};
|
|
37
|
-
fidelity: {
|
|
38
|
-
preciseLineMapping: boolean;
|
|
39
|
-
stableFunctionNames: boolean;
|
|
40
|
-
callStack: boolean;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
diagnostics: {
|
|
44
|
-
compileErrors: boolean;
|
|
45
|
-
runtimeErrors: boolean;
|
|
46
|
-
mappedErrorLines: boolean;
|
|
47
|
-
stackTraces: boolean;
|
|
48
|
-
};
|
|
49
|
-
structures: {
|
|
50
|
-
treeNodeRefs: boolean;
|
|
51
|
-
listNodeRefs: boolean;
|
|
52
|
-
mapSerialization: boolean;
|
|
53
|
-
setSerialization: boolean;
|
|
54
|
-
graphSerialization: boolean;
|
|
55
|
-
cycleReferences: boolean;
|
|
56
|
-
};
|
|
57
|
-
visualization: {
|
|
58
|
-
runtimePayloads: boolean;
|
|
59
|
-
objectKinds: boolean;
|
|
60
|
-
hashMaps: boolean;
|
|
61
|
-
stepVisualization: boolean;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
interface TraceBudget {
|
|
65
|
-
maxTraceSteps?: number;
|
|
66
|
-
maxLineEvents?: number;
|
|
67
|
-
maxSingleLineHits?: number;
|
|
68
|
-
maxStoredEvents?: number;
|
|
69
|
-
}
|
|
70
|
-
interface TraceExecutionOptions extends TraceBudget {
|
|
71
|
-
minimalTrace?: boolean;
|
|
72
|
-
}
|
|
73
|
-
interface LanguageRuntimeProfile {
|
|
74
|
-
language: Language;
|
|
75
|
-
maturity: RuntimeMaturity;
|
|
76
|
-
capabilities: RuntimeCapabilities;
|
|
77
|
-
notes?: string[];
|
|
78
|
-
}
|
|
79
|
-
interface RuntimeClient {
|
|
80
|
-
init(): Promise<{
|
|
81
|
-
success: boolean;
|
|
82
|
-
loadTimeMs: number;
|
|
83
|
-
}>;
|
|
84
|
-
executeWithTracing(code: string, functionName: string | null, inputs: Record<string, unknown>, options?: TraceExecutionOptions, executionStyle?: RuntimeExecutionStyle): Promise<ExecutionResult>;
|
|
85
|
-
executeCode(code: string, functionName: string, inputs: Record<string, unknown>, executionStyle?: RuntimeExecutionStyle): Promise<CodeExecutionResult>;
|
|
86
|
-
executeCodeInterviewMode(code: string, functionName: string, inputs: Record<string, unknown>, executionStyle?: RuntimeExecutionStyle): Promise<CodeExecutionResult>;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export type { Language as L, RuntimeCapabilities as R, TraceBudget as T, LanguageRuntimeProfile as a, RuntimeClient as b, RuntimeExecutionStyle as c, RuntimeMaturity as d, TraceExecutionOptions as e };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { E as ExecutionResult, a as CodeExecutionResult } from './types-zyvpJKCi.js';
|
|
2
|
-
|
|
3
|
-
type Language = 'python' | 'javascript' | 'typescript' | 'java';
|
|
4
|
-
type RuntimeExecutionStyle = 'function' | 'solution-method' | 'ops-class';
|
|
5
|
-
type RuntimeMaturity = 'experimental' | 'beta' | 'stable';
|
|
6
|
-
interface RuntimeCapabilities {
|
|
7
|
-
execution: {
|
|
8
|
-
styles: {
|
|
9
|
-
function: boolean;
|
|
10
|
-
solutionMethod: boolean;
|
|
11
|
-
opsClass: boolean;
|
|
12
|
-
script: boolean;
|
|
13
|
-
interviewMode: boolean;
|
|
14
|
-
};
|
|
15
|
-
timeouts: {
|
|
16
|
-
clientTimeouts: boolean;
|
|
17
|
-
runtimeTimeouts: boolean;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
tracing: {
|
|
21
|
-
supported: boolean;
|
|
22
|
-
events: {
|
|
23
|
-
line: boolean;
|
|
24
|
-
call: boolean;
|
|
25
|
-
return: boolean;
|
|
26
|
-
exception: boolean;
|
|
27
|
-
stdout: boolean;
|
|
28
|
-
timeout: boolean;
|
|
29
|
-
};
|
|
30
|
-
controls: {
|
|
31
|
-
maxTraceSteps: boolean;
|
|
32
|
-
maxLineEvents: boolean;
|
|
33
|
-
maxSingleLineHits: boolean;
|
|
34
|
-
maxStoredEvents: boolean;
|
|
35
|
-
minimalTrace: boolean;
|
|
36
|
-
};
|
|
37
|
-
fidelity: {
|
|
38
|
-
preciseLineMapping: boolean;
|
|
39
|
-
stableFunctionNames: boolean;
|
|
40
|
-
callStack: boolean;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
diagnostics: {
|
|
44
|
-
compileErrors: boolean;
|
|
45
|
-
runtimeErrors: boolean;
|
|
46
|
-
mappedErrorLines: boolean;
|
|
47
|
-
stackTraces: boolean;
|
|
48
|
-
};
|
|
49
|
-
structures: {
|
|
50
|
-
treeNodeRefs: boolean;
|
|
51
|
-
listNodeRefs: boolean;
|
|
52
|
-
mapSerialization: boolean;
|
|
53
|
-
setSerialization: boolean;
|
|
54
|
-
graphSerialization: boolean;
|
|
55
|
-
cycleReferences: boolean;
|
|
56
|
-
};
|
|
57
|
-
visualization: {
|
|
58
|
-
runtimePayloads: boolean;
|
|
59
|
-
objectKinds: boolean;
|
|
60
|
-
hashMaps: boolean;
|
|
61
|
-
stepVisualization: boolean;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
interface TraceBudget {
|
|
65
|
-
maxTraceSteps?: number;
|
|
66
|
-
maxLineEvents?: number;
|
|
67
|
-
maxSingleLineHits?: number;
|
|
68
|
-
maxStoredEvents?: number;
|
|
69
|
-
}
|
|
70
|
-
interface TraceExecutionOptions extends TraceBudget {
|
|
71
|
-
minimalTrace?: boolean;
|
|
72
|
-
}
|
|
73
|
-
interface LanguageRuntimeProfile {
|
|
74
|
-
language: Language;
|
|
75
|
-
maturity: RuntimeMaturity;
|
|
76
|
-
capabilities: RuntimeCapabilities;
|
|
77
|
-
notes?: string[];
|
|
78
|
-
}
|
|
79
|
-
interface RuntimeClient {
|
|
80
|
-
init(): Promise<{
|
|
81
|
-
success: boolean;
|
|
82
|
-
loadTimeMs: number;
|
|
83
|
-
}>;
|
|
84
|
-
executeWithTracing(code: string, functionName: string | null, inputs: Record<string, unknown>, options?: TraceExecutionOptions, executionStyle?: RuntimeExecutionStyle): Promise<ExecutionResult>;
|
|
85
|
-
executeCode(code: string, functionName: string, inputs: Record<string, unknown>, executionStyle?: RuntimeExecutionStyle): Promise<CodeExecutionResult>;
|
|
86
|
-
executeCodeInterviewMode(code: string, functionName: string, inputs: Record<string, unknown>, executionStyle?: RuntimeExecutionStyle): Promise<CodeExecutionResult>;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export type { Language as L, RuntimeCapabilities as R, TraceBudget as T, LanguageRuntimeProfile as a, RuntimeClient as b, RuntimeExecutionStyle as c, RuntimeMaturity as d, TraceExecutionOptions as e };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Execution types for browser runtime contracts.
|
|
3
|
-
*/
|
|
4
|
-
type ExecutionStatus = 'idle' | 'loading' | 'ready' | 'running' | 'stepping' | 'paused' | 'completed' | 'error';
|
|
5
|
-
interface CallStackFrame {
|
|
6
|
-
function: string;
|
|
7
|
-
args: Record<string, unknown>;
|
|
8
|
-
line: number;
|
|
9
|
-
}
|
|
10
|
-
type RuntimeTraceAccessKind = 'indexed-read' | 'indexed-write' | 'cell-read' | 'cell-write' | 'mutating-call';
|
|
11
|
-
interface RuntimeTraceAccessEvent {
|
|
12
|
-
variable: string;
|
|
13
|
-
kind: RuntimeTraceAccessKind;
|
|
14
|
-
indices?: number[];
|
|
15
|
-
method?: string;
|
|
16
|
-
pathDepth?: 1 | 2;
|
|
17
|
-
}
|
|
18
|
-
interface RawTraceStep {
|
|
19
|
-
line: number;
|
|
20
|
-
event: 'line' | 'call' | 'return' | 'exception' | 'timeout' | 'stdout';
|
|
21
|
-
variables: Record<string, unknown>;
|
|
22
|
-
variableSources?: Record<string, 'user' | 'user-input' | 'harness-prelude'>;
|
|
23
|
-
function: string;
|
|
24
|
-
callStack?: CallStackFrame[];
|
|
25
|
-
accesses?: RuntimeTraceAccessEvent[];
|
|
26
|
-
returnValue?: unknown;
|
|
27
|
-
stdoutLineCount?: number;
|
|
28
|
-
visualization?: RuntimeVisualizationPayload;
|
|
29
|
-
}
|
|
30
|
-
type RuntimeObjectKind = 'hashmap' | 'object' | 'map' | 'set' | 'tree' | 'linked-list' | 'graph-adjacency';
|
|
31
|
-
interface RuntimeHashMapEntry {
|
|
32
|
-
key: unknown;
|
|
33
|
-
value: unknown;
|
|
34
|
-
highlight?: boolean;
|
|
35
|
-
}
|
|
36
|
-
interface RuntimeHashMapVisualization {
|
|
37
|
-
name: string;
|
|
38
|
-
kind?: 'hashmap' | 'object' | 'map' | 'set';
|
|
39
|
-
entries: RuntimeHashMapEntry[];
|
|
40
|
-
highlightedKey?: unknown;
|
|
41
|
-
deletedKey?: unknown;
|
|
42
|
-
objectClassName?: string;
|
|
43
|
-
objectId?: string;
|
|
44
|
-
}
|
|
45
|
-
interface RuntimeVisualizationPayload {
|
|
46
|
-
hashMaps?: RuntimeHashMapVisualization[];
|
|
47
|
-
objectKinds?: Partial<Record<string, RuntimeObjectKind>>;
|
|
48
|
-
}
|
|
49
|
-
interface ProcessedStep {
|
|
50
|
-
stepIndex: number;
|
|
51
|
-
lineNumber: number;
|
|
52
|
-
lineContent: string;
|
|
53
|
-
functionName: string;
|
|
54
|
-
variables: Record<string, unknown>;
|
|
55
|
-
output?: string;
|
|
56
|
-
event?: 'line' | 'call' | 'return' | 'exception' | 'timeout' | 'stdout';
|
|
57
|
-
callStack?: CallStackFrame[];
|
|
58
|
-
accesses?: RuntimeTraceAccessEvent[];
|
|
59
|
-
returnValue?: unknown;
|
|
60
|
-
stdoutLineCount?: number;
|
|
61
|
-
visualization?: RuntimeVisualizationPayload;
|
|
62
|
-
}
|
|
63
|
-
interface TestResult {
|
|
64
|
-
id: string;
|
|
65
|
-
passed: boolean;
|
|
66
|
-
input: Record<string, unknown>;
|
|
67
|
-
expected: unknown;
|
|
68
|
-
actual: unknown;
|
|
69
|
-
error?: string;
|
|
70
|
-
warning?: string;
|
|
71
|
-
executionTimeMs?: number;
|
|
72
|
-
}
|
|
73
|
-
interface CodeExecutionResult {
|
|
74
|
-
success: boolean;
|
|
75
|
-
output: unknown;
|
|
76
|
-
error?: string;
|
|
77
|
-
errorLine?: number;
|
|
78
|
-
consoleOutput?: string[];
|
|
79
|
-
}
|
|
80
|
-
interface ExecutionResult {
|
|
81
|
-
success: boolean;
|
|
82
|
-
output?: unknown;
|
|
83
|
-
error?: string;
|
|
84
|
-
errorLine?: number;
|
|
85
|
-
trace: RawTraceStep[];
|
|
86
|
-
executionTimeMs: number;
|
|
87
|
-
consoleOutput: string[];
|
|
88
|
-
traceLimitExceeded?: boolean;
|
|
89
|
-
maxTraceSteps?: number;
|
|
90
|
-
timeoutReason?: 'trace-limit' | 'line-limit' | 'single-line-limit' | 'recursion-limit' | 'memory-limit' | 'client-timeout';
|
|
91
|
-
lineEventCount?: number;
|
|
92
|
-
traceStepCount?: number;
|
|
93
|
-
}
|
|
94
|
-
interface PyodideState {
|
|
95
|
-
status: 'loading' | 'ready' | 'error';
|
|
96
|
-
error?: Error;
|
|
97
|
-
loadTimeMs?: number;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export type { CallStackFrame as C, ExecutionResult as E, ProcessedStep as P, RawTraceStep as R, TestResult as T, CodeExecutionResult as a, ExecutionStatus as b, PyodideState as c, RuntimeHashMapEntry as d, RuntimeHashMapVisualization as e, RuntimeObjectKind as f, RuntimeTraceAccessEvent as g, RuntimeTraceAccessKind as h, RuntimeVisualizationPayload as i };
|
package/dist/types-zyvpJKCi.d.ts
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Execution types for browser runtime contracts.
|
|
3
|
-
*/
|
|
4
|
-
type ExecutionStatus = 'idle' | 'loading' | 'ready' | 'running' | 'stepping' | 'paused' | 'completed' | 'error';
|
|
5
|
-
interface CallStackFrame {
|
|
6
|
-
function: string;
|
|
7
|
-
args: Record<string, unknown>;
|
|
8
|
-
line: number;
|
|
9
|
-
}
|
|
10
|
-
type RuntimeTraceAccessKind = 'indexed-read' | 'indexed-write' | 'cell-read' | 'cell-write' | 'mutating-call';
|
|
11
|
-
interface RuntimeTraceAccessEvent {
|
|
12
|
-
variable: string;
|
|
13
|
-
kind: RuntimeTraceAccessKind;
|
|
14
|
-
indices?: number[];
|
|
15
|
-
method?: string;
|
|
16
|
-
pathDepth?: 1 | 2;
|
|
17
|
-
}
|
|
18
|
-
interface RawTraceStep {
|
|
19
|
-
line: number;
|
|
20
|
-
event: 'line' | 'call' | 'return' | 'exception' | 'timeout' | 'stdout';
|
|
21
|
-
variables: Record<string, unknown>;
|
|
22
|
-
variableSources?: Record<string, 'user' | 'user-input' | 'harness-prelude'>;
|
|
23
|
-
function: string;
|
|
24
|
-
callStack?: CallStackFrame[];
|
|
25
|
-
accesses?: RuntimeTraceAccessEvent[];
|
|
26
|
-
returnValue?: unknown;
|
|
27
|
-
stdoutLineCount?: number;
|
|
28
|
-
visualization?: RuntimeVisualizationPayload;
|
|
29
|
-
}
|
|
30
|
-
type RuntimeObjectKind = 'hashmap' | 'object' | 'map' | 'set' | 'tree' | 'linked-list' | 'graph-adjacency';
|
|
31
|
-
interface RuntimeHashMapEntry {
|
|
32
|
-
key: unknown;
|
|
33
|
-
value: unknown;
|
|
34
|
-
highlight?: boolean;
|
|
35
|
-
}
|
|
36
|
-
interface RuntimeHashMapVisualization {
|
|
37
|
-
name: string;
|
|
38
|
-
kind?: 'hashmap' | 'object' | 'map' | 'set';
|
|
39
|
-
entries: RuntimeHashMapEntry[];
|
|
40
|
-
highlightedKey?: unknown;
|
|
41
|
-
deletedKey?: unknown;
|
|
42
|
-
objectClassName?: string;
|
|
43
|
-
objectId?: string;
|
|
44
|
-
}
|
|
45
|
-
interface RuntimeVisualizationPayload {
|
|
46
|
-
hashMaps?: RuntimeHashMapVisualization[];
|
|
47
|
-
objectKinds?: Partial<Record<string, RuntimeObjectKind>>;
|
|
48
|
-
}
|
|
49
|
-
interface ProcessedStep {
|
|
50
|
-
stepIndex: number;
|
|
51
|
-
lineNumber: number;
|
|
52
|
-
lineContent: string;
|
|
53
|
-
functionName: string;
|
|
54
|
-
variables: Record<string, unknown>;
|
|
55
|
-
output?: string;
|
|
56
|
-
event?: 'line' | 'call' | 'return' | 'exception' | 'timeout' | 'stdout';
|
|
57
|
-
callStack?: CallStackFrame[];
|
|
58
|
-
accesses?: RuntimeTraceAccessEvent[];
|
|
59
|
-
returnValue?: unknown;
|
|
60
|
-
stdoutLineCount?: number;
|
|
61
|
-
visualization?: RuntimeVisualizationPayload;
|
|
62
|
-
}
|
|
63
|
-
interface TestResult {
|
|
64
|
-
id: string;
|
|
65
|
-
passed: boolean;
|
|
66
|
-
input: Record<string, unknown>;
|
|
67
|
-
expected: unknown;
|
|
68
|
-
actual: unknown;
|
|
69
|
-
error?: string;
|
|
70
|
-
warning?: string;
|
|
71
|
-
executionTimeMs?: number;
|
|
72
|
-
}
|
|
73
|
-
interface CodeExecutionResult {
|
|
74
|
-
success: boolean;
|
|
75
|
-
output: unknown;
|
|
76
|
-
error?: string;
|
|
77
|
-
errorLine?: number;
|
|
78
|
-
consoleOutput?: string[];
|
|
79
|
-
}
|
|
80
|
-
interface ExecutionResult {
|
|
81
|
-
success: boolean;
|
|
82
|
-
output?: unknown;
|
|
83
|
-
error?: string;
|
|
84
|
-
errorLine?: number;
|
|
85
|
-
trace: RawTraceStep[];
|
|
86
|
-
executionTimeMs: number;
|
|
87
|
-
consoleOutput: string[];
|
|
88
|
-
traceLimitExceeded?: boolean;
|
|
89
|
-
maxTraceSteps?: number;
|
|
90
|
-
timeoutReason?: 'trace-limit' | 'line-limit' | 'single-line-limit' | 'recursion-limit' | 'memory-limit' | 'client-timeout';
|
|
91
|
-
lineEventCount?: number;
|
|
92
|
-
traceStepCount?: number;
|
|
93
|
-
}
|
|
94
|
-
interface PyodideState {
|
|
95
|
-
status: 'loading' | 'ready' | 'error';
|
|
96
|
-
error?: Error;
|
|
97
|
-
loadTimeMs?: number;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export type { CallStackFrame as C, ExecutionResult as E, ProcessedStep as P, RawTraceStep as R, TestResult as T, CodeExecutionResult as a, ExecutionStatus as b, PyodideState as c, RuntimeHashMapEntry as d, RuntimeHashMapVisualization as e, RuntimeObjectKind as f, RuntimeTraceAccessEvent as g, RuntimeTraceAccessKind as h, RuntimeVisualizationPayload as i };
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
(function initTraceCodeJavaSourceAugmentations(root) {
|
|
2
|
-
function escapeRegExp(value) {
|
|
3
|
-
return String(value).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
function braceDelta(line) {
|
|
7
|
-
let delta = 0;
|
|
8
|
-
for (const ch of line) {
|
|
9
|
-
if (ch === '{') delta += 1;
|
|
10
|
-
if (ch === '}') delta -= 1;
|
|
11
|
-
}
|
|
12
|
-
return delta;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function collectJavaCollectionDeclarations(line) {
|
|
16
|
-
const collections = {
|
|
17
|
-
maps: [],
|
|
18
|
-
sets: [],
|
|
19
|
-
adjacencyLists: [],
|
|
20
|
-
};
|
|
21
|
-
const declarationPattern =
|
|
22
|
-
/\b((?:java\.util\.)?(?:HashMap|LinkedHashMap|TreeMap|Map|HashSet|LinkedHashSet|TreeSet|Set|ArrayList|LinkedList|List)\s*(?:<[^;=(){}]+>)?)\s+([A-Za-z_][A-Za-z0-9_]*)\b/g;
|
|
23
|
-
for (const match of line.matchAll(declarationPattern)) {
|
|
24
|
-
const rawType = match[1] ?? '';
|
|
25
|
-
const typeSource = rawType.replace(/\s+/g, '');
|
|
26
|
-
const name = match[2];
|
|
27
|
-
if (!name) continue;
|
|
28
|
-
if (/\b(?:HashMap|LinkedHashMap|TreeMap|Map)\b/.test(typeSource)) {
|
|
29
|
-
collections.maps.push(name);
|
|
30
|
-
} else if (/\b(?:HashSet|LinkedHashSet|TreeSet|Set)\b/.test(typeSource)) {
|
|
31
|
-
collections.sets.push(name);
|
|
32
|
-
} else if (
|
|
33
|
-
/\b(?:ArrayList|LinkedList|List)\b/.test(typeSource) &&
|
|
34
|
-
/<\s*(?:java\.util\.)?(?:List|ArrayList|LinkedList)\s*</.test(rawType)
|
|
35
|
-
) {
|
|
36
|
-
collections.adjacencyLists.push(name);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return collections;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function splitFirstTopLevelJavaArgument(argsSource) {
|
|
43
|
-
let depth = 0;
|
|
44
|
-
let inString = false;
|
|
45
|
-
let inChar = false;
|
|
46
|
-
let escaped = false;
|
|
47
|
-
for (let index = 0; index < argsSource.length; index += 1) {
|
|
48
|
-
const ch = argsSource[index];
|
|
49
|
-
if (escaped) {
|
|
50
|
-
escaped = false;
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
if (ch === '\\') {
|
|
54
|
-
escaped = true;
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
if (inString) {
|
|
58
|
-
if (ch === '"') inString = false;
|
|
59
|
-
continue;
|
|
60
|
-
}
|
|
61
|
-
if (inChar) {
|
|
62
|
-
if (ch === "'") inChar = false;
|
|
63
|
-
continue;
|
|
64
|
-
}
|
|
65
|
-
if (ch === '"') {
|
|
66
|
-
inString = true;
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
if (ch === "'") {
|
|
70
|
-
inChar = true;
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
if (ch === '(' || ch === '[' || ch === '{' || ch === '<') depth += 1;
|
|
74
|
-
if (ch === ')' || ch === ']' || ch === '}' || ch === '>') depth -= 1;
|
|
75
|
-
if (ch === ',' && depth === 0) {
|
|
76
|
-
return [argsSource.slice(0, index).trim(), argsSource.slice(index + 1).trim()];
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function replaceJavaReceiverCall(source, receiverName, methodName, replacer) {
|
|
83
|
-
const callPattern = new RegExp(`\\b${escapeRegExp(receiverName)}\\.${methodName}\\(`, 'g');
|
|
84
|
-
let output = '';
|
|
85
|
-
let cursor = 0;
|
|
86
|
-
let match;
|
|
87
|
-
while ((match = callPattern.exec(source)) !== null) {
|
|
88
|
-
const argsStart = match.index + match[0].length;
|
|
89
|
-
let depth = 1;
|
|
90
|
-
let index = argsStart;
|
|
91
|
-
let inString = false;
|
|
92
|
-
let inChar = false;
|
|
93
|
-
let escaped = false;
|
|
94
|
-
while (index < source.length) {
|
|
95
|
-
const ch = source[index];
|
|
96
|
-
if (escaped) {
|
|
97
|
-
escaped = false;
|
|
98
|
-
index += 1;
|
|
99
|
-
continue;
|
|
100
|
-
}
|
|
101
|
-
if (ch === '\\') {
|
|
102
|
-
escaped = true;
|
|
103
|
-
index += 1;
|
|
104
|
-
continue;
|
|
105
|
-
}
|
|
106
|
-
if (inString) {
|
|
107
|
-
if (ch === '"') inString = false;
|
|
108
|
-
index += 1;
|
|
109
|
-
continue;
|
|
110
|
-
}
|
|
111
|
-
if (inChar) {
|
|
112
|
-
if (ch === "'") inChar = false;
|
|
113
|
-
index += 1;
|
|
114
|
-
continue;
|
|
115
|
-
}
|
|
116
|
-
if (ch === '"') {
|
|
117
|
-
inString = true;
|
|
118
|
-
index += 1;
|
|
119
|
-
continue;
|
|
120
|
-
}
|
|
121
|
-
if (ch === "'") {
|
|
122
|
-
inChar = true;
|
|
123
|
-
index += 1;
|
|
124
|
-
continue;
|
|
125
|
-
}
|
|
126
|
-
if (ch === '(') depth += 1;
|
|
127
|
-
if (ch === ')') depth -= 1;
|
|
128
|
-
if (depth === 0) break;
|
|
129
|
-
index += 1;
|
|
130
|
-
}
|
|
131
|
-
if (depth !== 0) continue;
|
|
132
|
-
output += source.slice(cursor, match.index);
|
|
133
|
-
output += replacer(source.slice(argsStart, index).trim());
|
|
134
|
-
cursor = index + 1;
|
|
135
|
-
callPattern.lastIndex = cursor;
|
|
136
|
-
}
|
|
137
|
-
return output + source.slice(cursor);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function augmentJavaCollectionOperations(source) {
|
|
141
|
-
const lines = source.split('\n');
|
|
142
|
-
const methodStack = [];
|
|
143
|
-
const methodStartPattern =
|
|
144
|
-
/^(\s*)(?:(?:public|private|protected|static|final|synchronized)\s+)*(?:[A-Za-z_][A-Za-z0-9_<>\[\], ?]*\s+)+([A-Za-z_][A-Za-z0-9_]*)\s*\(([^)]*)\)\s*\{\s*$/;
|
|
145
|
-
|
|
146
|
-
return lines.map((line) => {
|
|
147
|
-
const methodMatch = line.match(methodStartPattern);
|
|
148
|
-
if (methodMatch) {
|
|
149
|
-
methodStack.push({
|
|
150
|
-
depth: 1,
|
|
151
|
-
currentTraceLine: null,
|
|
152
|
-
maps: new Set(),
|
|
153
|
-
sets: new Set(),
|
|
154
|
-
adjacencyLists: new Set(),
|
|
155
|
-
});
|
|
156
|
-
return line;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
const currentMethod = methodStack[methodStack.length - 1];
|
|
160
|
-
let nextLine = line;
|
|
161
|
-
if (!currentMethod) return nextLine;
|
|
162
|
-
|
|
163
|
-
const declarations = collectJavaCollectionDeclarations(line);
|
|
164
|
-
declarations.maps.forEach((name) => currentMethod.maps.add(name));
|
|
165
|
-
declarations.sets.forEach((name) => currentMethod.sets.add(name));
|
|
166
|
-
declarations.adjacencyLists.forEach((name) => currentMethod.adjacencyLists.add(name));
|
|
167
|
-
|
|
168
|
-
const traceLineMatch = line.match(/TraceHooks\.emit\("line=(\d+)(?:\s|")/);
|
|
169
|
-
if (traceLineMatch) {
|
|
170
|
-
currentMethod.currentTraceLine = Number.parseInt(traceLineMatch[1], 10);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
const lineNumber = currentMethod.currentTraceLine;
|
|
174
|
-
if (lineNumber !== null) {
|
|
175
|
-
for (const name of currentMethod.adjacencyLists) {
|
|
176
|
-
const indexedAddPattern = new RegExp(
|
|
177
|
-
`\\b${escapeRegExp(name)}\\.get\\(([^()\\n;]+)\\)\\.add\\(([^;\\n]+)\\);`,
|
|
178
|
-
'g'
|
|
179
|
-
);
|
|
180
|
-
nextLine = nextLine.replace(indexedAddPattern, (_match, indexSource, valueSource) => {
|
|
181
|
-
const indexExpression = String(indexSource).trim();
|
|
182
|
-
return `{ TraceHooks.readObjectListAtLine(${lineNumber}, "${name}", ${name}, ${indexExpression}).add(${String(valueSource).trim()}); TraceHooks.emitMutatingCallAtLine(${lineNumber}, "${name}", ${indexExpression}, "add"); TraceHooks.emitGraphAdjacencyStateAtLine(${lineNumber}, "${name}", ${name}); }`;
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
const listGetPattern = new RegExp(`\\b${escapeRegExp(name)}\\.get\\(([^()\\n;]+)\\)`, 'g');
|
|
186
|
-
nextLine = nextLine.replace(listGetPattern, (_match, indexSource) =>
|
|
187
|
-
`TraceHooks.readObjectListAtLine(${lineNumber}, "${name}", ${name}, ${String(indexSource).trim()})`
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
for (const name of currentMethod.maps) {
|
|
192
|
-
nextLine = replaceJavaReceiverCall(nextLine, name, 'containsKey', (key) =>
|
|
193
|
-
`TraceHooks.containsMapKeyAtLine(${lineNumber}, "${name}", ${name}, ${key})`
|
|
194
|
-
);
|
|
195
|
-
nextLine = replaceJavaReceiverCall(nextLine, name, 'get', (key) =>
|
|
196
|
-
`TraceHooks.readMapAtLine(${lineNumber}, "${name}", ${name}, ${key})`
|
|
197
|
-
);
|
|
198
|
-
nextLine = replaceJavaReceiverCall(nextLine, name, 'put', (argsSource) => {
|
|
199
|
-
const parts = splitFirstTopLevelJavaArgument(argsSource);
|
|
200
|
-
if (!parts) return `${name}.put(${argsSource})`;
|
|
201
|
-
return `TraceHooks.writeMapAtLine(${lineNumber}, "${name}", ${name}, ${parts[0]}, ${parts[1]})`;
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
for (const name of currentMethod.sets) {
|
|
206
|
-
nextLine = replaceJavaReceiverCall(nextLine, name, 'contains', (key) =>
|
|
207
|
-
`TraceHooks.readSetAtLine(${lineNumber}, "${name}", ${name}, ${key})`
|
|
208
|
-
);
|
|
209
|
-
nextLine = replaceJavaReceiverCall(nextLine, name, 'add', (key) =>
|
|
210
|
-
`TraceHooks.addSetAtLine(${lineNumber}, "${name}", ${name}, ${key})`
|
|
211
|
-
);
|
|
212
|
-
nextLine = replaceJavaReceiverCall(nextLine, name, 'remove', (key) =>
|
|
213
|
-
`TraceHooks.removeSetAtLine(${lineNumber}, "${name}", ${name}, ${key})`
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
const staleMutationPattern = /TraceHooks\.emitMutatingCallAtLine\(\d+,\s*"([A-Za-z_][A-Za-z0-9_]*)",\s*"(?:put|add|remove)"\);\s*/g;
|
|
218
|
-
nextLine = nextLine.replace(staleMutationPattern, (match, name) =>
|
|
219
|
-
currentMethod.maps.has(name) || currentMethod.sets.has(name) || currentMethod.adjacencyLists.has(name) ? '' : match
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
currentMethod.depth += braceDelta(nextLine);
|
|
224
|
-
while (methodStack.length > 0 && methodStack[methodStack.length - 1].depth <= 0) {
|
|
225
|
-
methodStack.pop();
|
|
226
|
-
}
|
|
227
|
-
return nextLine;
|
|
228
|
-
}).join('\n');
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
const api = {
|
|
232
|
-
augmentJavaCollectionOperations,
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
root.TraceCodeJavaSourceAugmentations = api;
|
|
236
|
-
if (root.self && typeof root.self === 'object') {
|
|
237
|
-
root.self.TraceCodeJavaSourceAugmentations = api;
|
|
238
|
-
}
|
|
239
|
-
if (typeof module === 'object' && module.exports) {
|
|
240
|
-
module.exports = api;
|
|
241
|
-
}
|
|
242
|
-
})(typeof globalThis !== 'undefined' ? globalThis : this);
|