motely-wasm 17.2.3 → 17.3.1
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/Motely.Wasm.csproj +21 -0
- package/Program.cs +152 -0
- package/README.md +122 -43
- package/bin/Debug/net10.0/browser-wasm/Bootsharp.Common.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/Bootsharp.FileSystem.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/Bootsharp.Inject.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/Bootsharp.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/JetBrains.Annotations.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/Microsoft.CSharp.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/Microsoft.Extensions.DependencyInjection.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/Microsoft.VisualBasic.Core.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/Microsoft.VisualBasic.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/Microsoft.Win32.Primitives.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/Microsoft.Win32.Registry.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/SixLabors.ImageSharp.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.AppContext.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Buffers.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Collections.Concurrent.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Collections.Immutable.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Collections.NonGeneric.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Collections.Specialized.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Collections.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.ComponentModel.Annotations.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.ComponentModel.DataAnnotations.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.ComponentModel.EventBasedAsync.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.ComponentModel.Primitives.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.ComponentModel.TypeConverter.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.ComponentModel.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Configuration.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Console.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Core.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Data.Common.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Data.DataSetExtensions.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Data.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Diagnostics.Contracts.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Diagnostics.Debug.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Diagnostics.DiagnosticSource.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Diagnostics.FileVersionInfo.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Diagnostics.Process.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Diagnostics.StackTrace.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Diagnostics.TextWriterTraceListener.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Diagnostics.Tools.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Diagnostics.TraceSource.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Diagnostics.Tracing.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Drawing.Primitives.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Drawing.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Dynamic.Runtime.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Formats.Asn1.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Formats.Tar.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Globalization.Calendars.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Globalization.Extensions.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Globalization.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.Compression.Brotli.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.Compression.FileSystem.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.Compression.ZipFile.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.Compression.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.FileSystem.AccessControl.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.FileSystem.DriveInfo.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.FileSystem.Primitives.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.FileSystem.Watcher.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.FileSystem.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.IsolatedStorage.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.MemoryMappedFiles.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.Pipelines.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.Pipes.AccessControl.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.Pipes.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.UnmanagedMemoryStream.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.IO.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Linq.AsyncEnumerable.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Linq.Expressions.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Linq.Parallel.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Linq.Queryable.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Linq.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Memory.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.Http.Json.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.Http.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.HttpListener.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.Mail.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.NameResolution.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.NetworkInformation.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.Ping.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.Primitives.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.Quic.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.Requests.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.Security.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.ServerSentEvents.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.ServicePoint.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.Sockets.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.WebClient.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.WebHeaderCollection.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.WebProxy.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.WebSockets.Client.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.WebSockets.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Net.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Numerics.Vectors.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Numerics.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.ObjectModel.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Private.CoreLib.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Private.DataContractSerialization.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Private.Uri.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Private.Xml.Linq.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Private.Xml.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Reflection.DispatchProxy.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Reflection.Emit.ILGeneration.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Reflection.Emit.Lightweight.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Reflection.Emit.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Reflection.Extensions.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Reflection.Metadata.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Reflection.Primitives.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Reflection.TypeExtensions.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Reflection.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Resources.Reader.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Resources.ResourceManager.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Resources.Writer.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.CompilerServices.Unsafe.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.CompilerServices.VisualC.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.Extensions.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.Handles.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.InteropServices.JavaScript.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.InteropServices.RuntimeInformation.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.InteropServices.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.Intrinsics.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.Loader.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.Numerics.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.Serialization.Formatters.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.Serialization.Json.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.Serialization.Primitives.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.Serialization.Xml.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.Serialization.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Runtime.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.AccessControl.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.Claims.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.Cryptography.Algorithms.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.Cryptography.Cng.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.Cryptography.Csp.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.Cryptography.Encoding.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.Cryptography.OpenSsl.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.Cryptography.Primitives.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.Cryptography.X509Certificates.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.Cryptography.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.Principal.Windows.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.Principal.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.SecureString.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Security.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.ServiceModel.Web.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.ServiceProcess.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Text.Encoding.CodePages.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Text.Encoding.Extensions.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Text.Encoding.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Text.Encodings.Web.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Text.Json.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Text.RegularExpressions.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Threading.AccessControl.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Threading.Channels.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Threading.Overlapped.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Threading.Tasks.Dataflow.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Threading.Tasks.Extensions.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Threading.Tasks.Parallel.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Threading.Tasks.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Threading.Thread.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Threading.ThreadPool.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Threading.Timer.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Threading.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Transactions.Local.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Transactions.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.ValueTuple.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Web.HttpUtility.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Web.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Windows.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Xml.Linq.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Xml.ReaderWriter.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Xml.Serialization.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Xml.XDocument.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Xml.XPath.XDocument.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Xml.XPath.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Xml.XmlDocument.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Xml.XmlSerializer.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.Xml.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/System.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/WindowsBase.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/YamlDotNet.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/corebindings.c +298 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.d.ts +785 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.diagnostics.js +4 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.diagnostics.js.map +1 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.es6.extpost.js +2 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.es6.lib.js +143 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.es6.pre.js +3 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.js +4 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.js.map +1 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.native.js +16 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.native.js.symbols +8701 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.native.wasm +0 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.runtime.js +4 -0
- package/bin/Debug/net10.0/browser-wasm/dotnet.runtime.js.map +1 -0
- package/bin/Debug/net10.0/browser-wasm/driver.c +587 -0
- package/bin/Debug/net10.0/browser-wasm/emcc-default.rsp +0 -0
- package/bin/Debug/net10.0/browser-wasm/emcc-link.rsp +17 -0
- package/bin/Debug/net10.0/browser-wasm/gc-common.h +73 -0
- package/bin/Debug/net10.0/browser-wasm/icudt.dat +0 -0
- package/bin/Debug/net10.0/browser-wasm/icudt_CJK.dat +0 -0
- package/bin/Debug/net10.0/browser-wasm/icudt_EFIGS.dat +0 -0
- package/bin/Debug/net10.0/browser-wasm/icudt_no_CJK.dat +0 -0
- package/bin/Debug/net10.0/browser-wasm/libSystem.Globalization.Native.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libSystem.IO.Compression.Native.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libSystem.Native.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libbrotlicommon.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libbrotlidec.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libbrotlienc.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libicudata.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libicui18n.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libicuuc.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-component-debugger-static.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-component-debugger-stub-static.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-component-diagnostics_tracing-static.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-component-diagnostics_tracing-stub-static.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-component-hot_reload-static.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-component-hot_reload-stub-static.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-component-marshal-ilgen-static.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-component-marshal-ilgen-stub-static.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-ee-interp.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-icall-table.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-profiler-aot.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-profiler-browser.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-profiler-log.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-wasm-eh-js.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-wasm-eh-wasm.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-wasm-nosimd.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmono-wasm-simd.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libmonosgen-2.0.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/libz.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/mscorlib.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/netstandard.dll +0 -0
- package/bin/Debug/net10.0/browser-wasm/package.json +44 -0
- package/bin/Debug/net10.0/browser-wasm/pinvoke.c +94 -0
- package/bin/Debug/net10.0/browser-wasm/pinvoke.h +62 -0
- package/bin/Debug/net10.0/browser-wasm/runtime.c +433 -0
- package/bin/Debug/net10.0/browser-wasm/runtime.h +23 -0
- package/bin/Debug/net10.0/browser-wasm/wasm-bundled-timezones.a +0 -0
- package/bin/Debug/net10.0/browser-wasm/wasm-config.h +13 -0
- package/bin/Debug/net10.0/browser-wasm/wasm-props.json +25 -0
- package/bin/Release/net10.0/browser-wasm/Bootsharp.Common.dll +0 -0
- package/bin/Release/net10.0/browser-wasm/Bootsharp.FileSystem.dll +0 -0
- package/bin/Release/net10.0/browser-wasm/Bootsharp.Inject.dll +0 -0
- package/bin/Release/net10.0/browser-wasm/Bootsharp.dll +0 -0
- package/bin/Release/net10.0/browser-wasm/JetBrains.Annotations.dll +0 -0
- package/bin/Release/net10.0/browser-wasm/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/bin/Release/net10.0/browser-wasm/Microsoft.Extensions.DependencyInjection.dll +0 -0
- package/bin/Release/net10.0/browser-wasm/Motely.Wasm.deps.json +204 -0
- package/bin/Release/net10.0/browser-wasm/Motely.Wasm.dll +0 -0
- package/bin/Release/net10.0/browser-wasm/Motely.Wasm.runtimeconfig.json +48 -0
- package/bin/Release/net10.0/browser-wasm/Motely.dll +0 -0
- package/bin/Release/net10.0/browser-wasm/Motely.pdb +0 -0
- package/bin/Release/net10.0/browser-wasm/SixLabors.ImageSharp.dll +0 -0
- package/bin/Release/net10.0/browser-wasm/YamlDotNet.dll +0 -0
- package/bin/Release/net10.0/browser-wasm/native/dotnet.diagnostics.js +4 -0
- package/bin/Release/net10.0/browser-wasm/native/dotnet.js +4 -0
- package/bin/Release/net10.0/browser-wasm/native/dotnet.native.js +16 -0
- package/bin/Release/net10.0/browser-wasm/native/dotnet.native.wasm +0 -0
- package/bin/Release/net10.0/browser-wasm/native/dotnet.runtime.js +4 -0
- package/bin/Release/net10.0/browser-wasm/publish/Motely.Wasm.deps.json +204 -0
- package/bin/Release/net10.0/browser-wasm/publish/Motely.Wasm.runtimeconfig.json +48 -0
- package/bin/Release/net10.0/browser-wasm/publish/Motely.pdb +0 -0
- package/bin/Release/net10.0/browser-wasm/publish/dotnet.diagnostics.js +4 -0
- package/{dotnet → bin/Release/net10.0/browser-wasm/publish}/dotnet.native.js +1 -1
- package/bin/{dotnet.native.wasm → Release/net10.0/browser-wasm/publish/dotnet.native.wasm} +0 -0
- package/{exports.d.mts → bin/Release/net10.0/browser-wasm/publish/exports.d.mts} +1 -0
- package/bin/Release/net10.0/browser-wasm/publish/exports.mjs +25 -0
- package/bin/Release/net10.0/browser-wasm/publish/generated/bootsharp/file-system.g.d.mts +68 -0
- package/{generated → bin/Release/net10.0/browser-wasm/publish/generated}/bootsharp/file-system.g.mjs +6 -6
- package/{imports.d.mts → bin/Release/net10.0/browser-wasm/publish/generated/imports.g.d.mts} +1 -1
- package/{generated → bin/Release/net10.0/browser-wasm/publish/generated}/imports.g.mjs +1 -3
- package/bin/Release/net10.0/browser-wasm/publish/generated/index.g.d.mts +24 -0
- package/bin/Release/net10.0/browser-wasm/publish/generated/index.g.mjs +28 -0
- package/bin/Release/net10.0/browser-wasm/publish/generated/instances.g.mjs +69 -0
- package/{generated → bin/Release/net10.0/browser-wasm/publish/generated}/motely/analysis.g.d.mts +1 -1
- package/bin/Release/net10.0/browser-wasm/publish/generated/motely/filters.g.d.mts +16 -0
- package/{generated → bin/Release/net10.0/browser-wasm/publish/generated}/motely/filters.g.mjs +2 -2
- package/bin/Release/net10.0/browser-wasm/publish/generated/motely.g.d.mts +199 -0
- package/bin/Release/net10.0/browser-wasm/publish/generated/motely.g.mjs +64 -0
- package/{generated → bin/Release/net10.0/browser-wasm/publish/generated}/serialization.g.mjs +25 -99
- package/bin/Release/net10.0/browser-wasm/publish/imports.d.mts +5 -0
- package/bin/Release/net10.0/browser-wasm/publish/imports.mjs +23 -0
- package/{index.d.mts → bin/Release/net10.0/browser-wasm/publish/index.d.mts} +1 -1
- package/bin/Release/net10.0/browser-wasm/publish/index.mjs +13 -0
- package/obj/Debug/net10.0/browser-wasm/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs +4 -0
- package/obj/Debug/net10.0/browser-wasm/Motely.Wasm.AssemblyInfo.cs +23 -0
- package/obj/Debug/net10.0/browser-wasm/Motely.Wasm.AssemblyInfoInputs.cache +1 -0
- package/obj/Debug/net10.0/browser-wasm/Motely.Wasm.GeneratedMSBuildEditorConfig.editorconfig +23 -0
- package/obj/Debug/net10.0/browser-wasm/Motely.Wasm.GlobalUsings.g.cs +8 -0
- package/obj/Debug/net10.0/browser-wasm/Motely.Wasm.assets.cache +0 -0
- package/obj/Debug/net10.0/browser-wasm/Motely.Wasm.csproj.AssemblyReference.cache +0 -0
- package/obj/Debug/net10.0/browser-wasm/Motely.Wasm.csproj.FileListAbsolute.txt +244 -0
- package/obj/Motely.Wasm.csproj.nuget.dgspec.json +812 -0
- package/obj/Motely.Wasm.csproj.nuget.g.props +24 -0
- package/obj/Motely.Wasm.csproj.nuget.g.targets +6 -0
- package/obj/Release/net10.0/browser-wasm/.NETCoreApp,Version=v10.0.AssemblyAttributes.cs +4 -0
- package/obj/Release/net10.0/browser-wasm/Motely.W.E9C36C08.Up2Date +0 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.AssemblyInfo.cs +23 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.AssemblyInfoInputs.cache +1 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.GeneratedMSBuildEditorConfig.editorconfig +23 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.GlobalUsings.g.cs +8 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.assets.cache +0 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.csproj.AssemblyReference.cache +0 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.csproj.CoreCompileInputs.cache +1 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.csproj.FileListAbsolute.txt +24 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.deps.json +204 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.dll +0 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.genpublishdeps.cache +1 -0
- package/obj/Release/net10.0/browser-wasm/Motely.Wasm.genruntimeconfig.cache +1 -0
- package/obj/Release/net10.0/browser-wasm/PublishOutputs.7e4e19bcb2.txt +4 -0
- package/obj/Release/net10.0/browser-wasm/bootsharp/Instances.g.cs +49 -0
- package/obj/Release/net10.0/browser-wasm/bootsharp/Interop.g.cs +109 -0
- package/obj/Release/net10.0/browser-wasm/bootsharp/Modules.g.cs +24 -0
- package/obj/Release/net10.0/browser-wasm/bootsharp/Serializer.g.cs +347 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.0.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.0.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.1.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.1.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.10.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.10.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.11.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.11.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.12.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.12.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.13.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.13.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.14.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.14.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.15.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.15.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.2.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.2.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.3.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.3.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.4.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.4.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.5.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.5.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.6.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.6.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.7.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.7.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.8.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.8.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.9.bc +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.9.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.exports +74 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.external.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.ilc.rsp +456 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.o +0 -0
- package/obj/Release/net10.0/browser-wasm/native/Motely.Wasm.results.txt +18 -0
- package/obj/Release/net10.0/browser-wasm/native/link.rsp +46 -0
- package/obj/Release/net10.0/browser-wasm/ref/Motely.Wasm.dll +0 -0
- package/obj/Release/net10.0/browser-wasm/refint/Motely.Wasm.dll +0 -0
- package/obj/project.assets.json +1795 -0
- package/obj/project.nuget.cache +19 -0
- package/package.json +13 -20
- package/exports.mjs +0 -6
- package/generated/bootsharp/file-system.g.d.mts +0 -193
- package/generated/common.g.mjs +0 -8
- package/generated/imports.g.d.mts +0 -2
- package/generated/index.g.d.mts +0 -30
- package/generated/index.g.mjs +0 -34
- package/generated/instances.g.mjs +0 -20
- package/generated/motely/filters.g.d.mts +0 -10
- package/generated/motely/wasm.g.d.mts +0 -55
- package/generated/motely/wasm.g.mjs +0 -13
- package/generated/motely.g.d.mts +0 -145
- package/generated/motely.g.mjs +0 -12
- package/imports.mjs +0 -6
- package/index.mjs +0 -63
- package/jaml.schema.json +0 -1194
- package/sync-version.mjs +0 -25
- /package/{boot.d.mts → bin/Release/net10.0/browser-wasm/publish/boot.d.mts} +0 -0
- /package/{boot.mjs → bin/Release/net10.0/browser-wasm/publish/boot.mjs} +0 -0
- /package/{config.d.mts → bin/Release/net10.0/browser-wasm/publish/config.d.mts} +0 -0
- /package/{config.mjs → bin/Release/net10.0/browser-wasm/publish/config.mjs} +0 -0
- /package/{dotnet → bin/Release/net10.0/browser-wasm/publish/dotnet}/dotnet.d.ts +0 -0
- /package/{dotnet → bin/Release/net10.0/browser-wasm/publish/dotnet}/dotnet.g.d.ts +0 -0
- /package/{dotnet → bin/Release/net10.0/browser-wasm/publish/dotnet}/dotnet.native.d.ts +0 -0
- /package/{dotnet → bin/Release/net10.0/browser-wasm/publish/dotnet}/dotnet.runtime.d.ts +0 -0
- /package/{dotnet → bin/Release/net10.0/browser-wasm/publish/dotnet}/index.d.mts +0 -0
- /package/{dotnet → bin/Release/net10.0/browser-wasm/publish/dotnet}/index.mjs +0 -0
- /package/{dotnet → bin/Release/net10.0/browser-wasm/publish}/dotnet.js +0 -0
- /package/{dotnet → bin/Release/net10.0/browser-wasm/publish}/dotnet.runtime.js +0 -0
- /package/{event.d.mts → bin/Release/net10.0/browser-wasm/publish/event.d.mts} +0 -0
- /package/{event.mjs → bin/Release/net10.0/browser-wasm/publish/event.mjs} +0 -0
- /package/{generated → bin/Release/net10.0/browser-wasm/publish/generated}/resources.g.d.mts +0 -0
- /package/{generated → bin/Release/net10.0/browser-wasm/publish/generated}/resources.g.mjs +0 -0
- /package/{instances.d.mts → bin/Release/net10.0/browser-wasm/publish/instances.d.mts} +0 -0
- /package/{instances.mjs → bin/Release/net10.0/browser-wasm/publish/instances.mjs} +0 -0
- /package/{resources.d.mts → bin/Release/net10.0/browser-wasm/publish/resources.d.mts} +0 -0
- /package/{resources.mjs → bin/Release/net10.0/browser-wasm/publish/resources.mjs} +0 -0
- /package/{runtime.d.mts → bin/Release/net10.0/browser-wasm/publish/runtime.d.mts} +0 -0
- /package/{runtime.mjs → bin/Release/net10.0/browser-wasm/publish/runtime.mjs} +0 -0
- /package/{serialization.d.mts → bin/Release/net10.0/browser-wasm/publish/serialization.d.mts} +0 -0
- /package/{serialization.mjs → bin/Release/net10.0/browser-wasm/publish/serialization.mjs} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<Project Sdk="Microsoft.NET.Sdk">
|
|
2
|
+
<PropertyGroup>
|
|
3
|
+
<TargetFramework>net10.0</TargetFramework>
|
|
4
|
+
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
|
|
5
|
+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
6
|
+
<IsPackable>false</IsPackable>
|
|
7
|
+
<BootsharpName>motely-wasm</BootsharpName>
|
|
8
|
+
<BootsharpPublishDirectory>$(MSBuildProjectDirectory)\..\motely-wasm</BootsharpPublishDirectory>
|
|
9
|
+
</PropertyGroup>
|
|
10
|
+
|
|
11
|
+
<ItemGroup>
|
|
12
|
+
<PackageReference Include="Bootsharp" />
|
|
13
|
+
<PackageReference Include="Bootsharp.Inject" />
|
|
14
|
+
<PackageReference Include="Bootsharp.FileSystem" />
|
|
15
|
+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
|
|
16
|
+
</ItemGroup>
|
|
17
|
+
|
|
18
|
+
<ItemGroup>
|
|
19
|
+
<ProjectReference Include="..\Motely\Motely.csproj" />
|
|
20
|
+
</ItemGroup>
|
|
21
|
+
</Project>
|
package/Program.cs
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
using Bootsharp;
|
|
2
|
+
using Bootsharp.FileSystem;
|
|
3
|
+
using Bootsharp.Inject;
|
|
4
|
+
using Microsoft.Extensions.DependencyInjection;
|
|
5
|
+
using Motely;
|
|
6
|
+
using Motely.Analysis;
|
|
7
|
+
using Motely.Filters;
|
|
8
|
+
using Motely.Filters.Native;
|
|
9
|
+
using System.Reflection;
|
|
10
|
+
using System.Text;
|
|
11
|
+
|
|
12
|
+
[assembly: Preferences(Space = [@"^Motely\.Wasm\.Program$", "Motely"])]
|
|
13
|
+
|
|
14
|
+
namespace Motely.Wasm;
|
|
15
|
+
|
|
16
|
+
public static partial class Program
|
|
17
|
+
{
|
|
18
|
+
private static IServiceProvider services = null!;
|
|
19
|
+
private static readonly Dictionary<string, IFileSystem> MountedFileSystems = new(StringComparer.Ordinal);
|
|
20
|
+
private static readonly MotelyFileWatcher FileWatcher = new();
|
|
21
|
+
|
|
22
|
+
[Export]
|
|
23
|
+
public static event Action<IReadOnlyList<Change>>? OnFileChanges;
|
|
24
|
+
|
|
25
|
+
[Export]
|
|
26
|
+
public static event Action<string>? OnSeedMatch;
|
|
27
|
+
|
|
28
|
+
[Export]
|
|
29
|
+
public static event Action<MotelyScoredSeedResult>? OnScoredResult;
|
|
30
|
+
|
|
31
|
+
[Export]
|
|
32
|
+
public static event Action<MotelyProgress>? OnProgress;
|
|
33
|
+
|
|
34
|
+
public static void Main()
|
|
35
|
+
{
|
|
36
|
+
services = new ServiceCollection()
|
|
37
|
+
.AddBootsharp()
|
|
38
|
+
.BuildServiceProvider();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[Export]
|
|
42
|
+
public static string Version() =>
|
|
43
|
+
typeof(MotelyDeck).Assembly
|
|
44
|
+
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()!
|
|
45
|
+
.InformationalVersion;
|
|
46
|
+
|
|
47
|
+
[Export]
|
|
48
|
+
public static string ValidateJaml(string jaml)
|
|
49
|
+
{
|
|
50
|
+
if (!JamlConfigLoader.TryLoad(jaml, out var config, out var error))
|
|
51
|
+
return error ?? "Invalid JAML.";
|
|
52
|
+
try
|
|
53
|
+
{
|
|
54
|
+
JamlSearchBuilder.EnsureRunnablePlan(config);
|
|
55
|
+
return "valid";
|
|
56
|
+
}
|
|
57
|
+
catch (Exception ex)
|
|
58
|
+
{
|
|
59
|
+
return ex.Message;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[Export]
|
|
64
|
+
public static string ExplainJaml(string jaml)
|
|
65
|
+
{
|
|
66
|
+
if (!JamlConfigLoader.TryLoad(jaml, out var config, out var error))
|
|
67
|
+
throw new InvalidOperationException(error ?? "Invalid JAML.");
|
|
68
|
+
return config.HasAnyClauses ? JamlSearchBuilder.ExplainPlan(config) : "";
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[Export]
|
|
72
|
+
public static JamlSearchPlan CreatePlan(string jaml)
|
|
73
|
+
{
|
|
74
|
+
if (!JamlConfigLoader.TryLoad(jaml, out var config, out var error))
|
|
75
|
+
throw new InvalidOperationException(error ?? "Invalid JAML.");
|
|
76
|
+
return JamlSearchBuilder.CreatePlan(config);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[Export]
|
|
80
|
+
public static MotelyJamlyzerResult AnalyzeJamlSeeds(string jaml, string[] seeds) =>
|
|
81
|
+
MotelyJamlyzer.AnalyzeSeeds(new(jaml, seeds));
|
|
82
|
+
|
|
83
|
+
[Export]
|
|
84
|
+
public static IMotelySearchSettingsInterop CreateSearch(string jaml)
|
|
85
|
+
{
|
|
86
|
+
if (!JamlConfigLoader.TryLoad(jaml, out var config, out var error))
|
|
87
|
+
throw new InvalidOperationException(error ?? "Invalid JAML.");
|
|
88
|
+
return AttachInteropCallbacks(JamlSearchBuilder.CreateSettings(config));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[Export]
|
|
92
|
+
public static IMotelySearchSettingsInterop CreateSearchSettings() =>
|
|
93
|
+
AttachInteropCallbacks(
|
|
94
|
+
new MotelySearchSettings<PassthroughFilterDesc.PassthroughFilter>(
|
|
95
|
+
new PassthroughFilterDesc()
|
|
96
|
+
)
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
[Export]
|
|
100
|
+
public static async Task<string?> PickRoot(PickOptions? options = null) =>
|
|
101
|
+
await Mounter().PickRoot(options);
|
|
102
|
+
|
|
103
|
+
[Export]
|
|
104
|
+
public static async Task<string> MountRoot(string root, MountOptions? options = null)
|
|
105
|
+
{
|
|
106
|
+
var fs = await Mounter().Mount(root, FileWatcher, options);
|
|
107
|
+
MountedFileSystems[root] = fs;
|
|
108
|
+
return root;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[Export]
|
|
112
|
+
public static async Task UnmountRoot(string root)
|
|
113
|
+
{
|
|
114
|
+
MountedFileSystems.Remove(root);
|
|
115
|
+
await Mounter().Unmount(root);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[Export]
|
|
119
|
+
public static async Task<string> ReadTextFile(string root, string uri)
|
|
120
|
+
{
|
|
121
|
+
var bytes = await GetFileSystem(root).ReadFile(uri);
|
|
122
|
+
return Encoding.UTF8.GetString(bytes);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[Export]
|
|
126
|
+
public static async Task WriteTextFile(string root, string uri, string text) =>
|
|
127
|
+
await GetFileSystem(root).WriteFile(uri, Encoding.UTF8.GetBytes(text));
|
|
128
|
+
|
|
129
|
+
private static IFileMounter Mounter() => services.GetRequiredService<IFileMounter>();
|
|
130
|
+
|
|
131
|
+
private static IMotelySearchSettingsInterop AttachInteropCallbacks(IMotelySearchSettings settings) =>
|
|
132
|
+
(IMotelySearchSettingsInterop)settings
|
|
133
|
+
.WithSeedMatchCallback(seed => OnSeedMatch?.Invoke(seed))
|
|
134
|
+
.WithScoredResultCallback(tally =>
|
|
135
|
+
OnScoredResult?.Invoke(MotelyScoredSeedResult.FromTally(in tally))
|
|
136
|
+
)
|
|
137
|
+
.WithProgressCallback(p => OnProgress?.Invoke(p));
|
|
138
|
+
|
|
139
|
+
private static IFileSystem GetFileSystem(string root) =>
|
|
140
|
+
MountedFileSystems.TryGetValue(root, out var fs)
|
|
141
|
+
? fs
|
|
142
|
+
: throw new InvalidOperationException($"File system root '{root}' is not mounted.");
|
|
143
|
+
|
|
144
|
+
private sealed class MotelyFileWatcher : IFileWatcher
|
|
145
|
+
{
|
|
146
|
+
public Task HandleFileChanges(IReadOnlyList<Change> changes)
|
|
147
|
+
{
|
|
148
|
+
OnFileChanges?.Invoke(changes);
|
|
149
|
+
return Task.CompletedTask;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
package/README.md
CHANGED
|
@@ -1,65 +1,144 @@
|
|
|
1
|
-
#
|
|
1
|
+
# motely-wasm
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
WebAssembly package for [Motely](https://github.com/nathanialph/jammyseedfinder) — the Balatro seed search engine powered by JAML (Jammy YAML filter language).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Install
|
|
6
6
|
|
|
7
|
-
```
|
|
8
|
-
|
|
7
|
+
```sh
|
|
8
|
+
npm install motely-wasm
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Quick start
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
```js
|
|
14
|
+
import motely from "motely-wasm";
|
|
15
|
+
import { Motely } from "motely-wasm/index";
|
|
16
|
+
|
|
17
|
+
// Boot the runtime, pointing at wherever your package assets are served
|
|
18
|
+
await motely.boot("/node_modules/motely-wasm");
|
|
19
|
+
|
|
20
|
+
// Subscribe to results before starting
|
|
21
|
+
Motely.onSeedMatch.subscribe(seed => console.log("match:", seed));
|
|
22
|
+
Motely.onProgress.subscribe(p => console.log(`${p.percentComplete.toFixed(1)}%`));
|
|
23
|
+
|
|
24
|
+
// Build and run a search
|
|
25
|
+
const search = Motely.createSearch(`
|
|
26
|
+
ante-1:
|
|
27
|
+
jokers:
|
|
28
|
+
- Joker
|
|
29
|
+
`).withSequentialSearch()
|
|
30
|
+
.createSearch();
|
|
14
31
|
|
|
15
|
-
|
|
32
|
+
search.runSearchUntilCompletion();
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Booting
|
|
16
36
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
37
|
+
`boot(resources, options?)` initializes the .NET WASM runtime. Call it once before any `Motely.*` API.
|
|
38
|
+
|
|
39
|
+
```js
|
|
40
|
+
import motely, { BootStatus } from "motely-wasm";
|
|
20
41
|
|
|
21
|
-
|
|
42
|
+
// From a URL base path (all .wasm / assembly files served from there)
|
|
43
|
+
await motely.boot("/assets/motely-wasm");
|
|
22
44
|
|
|
23
|
-
|
|
45
|
+
// Check status
|
|
46
|
+
console.log(motely.getStatus()); // BootStatus.Booted
|
|
47
|
+
```
|
|
24
48
|
|
|
25
|
-
|
|
49
|
+
## JAML API
|
|
26
50
|
|
|
27
51
|
```js
|
|
28
|
-
import
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
52
|
+
import { Motely } from "motely-wasm/index";
|
|
53
|
+
|
|
54
|
+
// Validate a JAML filter string — returns "" on success, error message on failure
|
|
55
|
+
const error = Motely.validateJaml(jaml);
|
|
56
|
+
|
|
57
|
+
// Get a human-readable explanation of what a JAML filter does
|
|
58
|
+
const explanation = Motely.explainJaml(jaml);
|
|
59
|
+
|
|
60
|
+
// Inspect the search plan (tally column count, CSV header, labels)
|
|
61
|
+
const plan = Motely.createPlan(jaml);
|
|
62
|
+
|
|
63
|
+
// Analyze specific seeds against a JAML filter
|
|
64
|
+
const result = Motely.analyzeJamlSeeds(jaml, ["ABCD1234", "XYZ99"]);
|
|
65
|
+
|
|
66
|
+
// Engine version string
|
|
67
|
+
console.log(Motely.version());
|
|
42
68
|
```
|
|
43
69
|
|
|
44
|
-
|
|
70
|
+
## Running a search
|
|
45
71
|
|
|
46
|
-
|
|
72
|
+
```js
|
|
73
|
+
import { Motely } from "motely-wasm/index";
|
|
74
|
+
import { MotelyDeck, MotelyStake } from "motely-wasm/motely";
|
|
47
75
|
|
|
48
|
-
|
|
76
|
+
Motely.onSeedMatch.subscribe(seed => { /* handle match */ });
|
|
77
|
+
Motely.onScoredResult.subscribe(result => { /* result.seed, result.score, result.tallies */ });
|
|
78
|
+
Motely.onProgress.subscribe(progress => { /* progress.percentComplete, .seedsPerMillisecond, … */ });
|
|
49
79
|
|
|
50
|
-
|
|
80
|
+
const settings = Motely.createSearchSettings()
|
|
81
|
+
.withDeck(MotelyDeck.Red)
|
|
82
|
+
.withStake(MotelyStake.White)
|
|
83
|
+
.withSequentialSearch() // enumerate all seeds in order
|
|
84
|
+
// .withRandomSearch(10_000) // or pick N random seeds
|
|
85
|
+
// .withListSearch(seeds, count) // or supply a seed list
|
|
86
|
+
.withProgressReportIntervalMs(500n);
|
|
51
87
|
|
|
52
|
-
|
|
53
|
-
- `loadJaml(yaml)` → `{ ok: boolean, error: string | null }`
|
|
54
|
-
- `explainJaml(yaml)` → `{ ok: boolean, error: string | null, explanation: string | null }`
|
|
88
|
+
const search = settings.createSearch();
|
|
55
89
|
|
|
56
|
-
|
|
90
|
+
// Synchronous (blocks until done — fine in a Worker)
|
|
91
|
+
search.runSearchUntilCompletion();
|
|
57
92
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
- `readTextFile(root, uri)` → `Promise<string>`
|
|
62
|
-
- `writeTextFile(root, uri, text)` → `Promise<void>`
|
|
63
|
-
- `onFileChanges` — event of `Change[]`
|
|
93
|
+
// Async (yields between batches)
|
|
94
|
+
await search.runSearchAsync(undefined);
|
|
95
|
+
```
|
|
64
96
|
|
|
65
|
-
|
|
97
|
+
## Events
|
|
98
|
+
|
|
99
|
+
| Event | Payload |
|
|
100
|
+
|---|---|
|
|
101
|
+
| `Motely.onSeedMatch` | `string` — matching seed |
|
|
102
|
+
| `Motely.onScoredResult` | `{ seed, score, tallies }` |
|
|
103
|
+
| `Motely.onProgress` | `MotelyProgress` |
|
|
104
|
+
| `Motely.onFileChanges` | `FileSystem.Change[]` |
|
|
105
|
+
|
|
106
|
+
Subscribe and unsubscribe:
|
|
107
|
+
|
|
108
|
+
```js
|
|
109
|
+
const handler = seed => console.log(seed);
|
|
110
|
+
Motely.onSeedMatch.subscribe(handler);
|
|
111
|
+
Motely.onSeedMatch.unsubscribe(handler);
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Submodule exports
|
|
115
|
+
|
|
116
|
+
| Import path | Contents |
|
|
117
|
+
|---|---|
|
|
118
|
+
| `motely-wasm` | `boot`, `exit`, `getStatus`, `BootStatus`, `manifest` |
|
|
119
|
+
| `motely-wasm/index` | `Motely` namespace (main API) |
|
|
120
|
+
| `motely-wasm/motely` | Types: `MotelyDeck`, `MotelyStake`, `MotelyTag`, `MotelyVoucher`, `MotelyBossBlind`, `MotelyBoosterPack`, enums |
|
|
121
|
+
| `motely-wasm/motely/filters` | `JamlAesthetic`, `JamlSearchPlan` |
|
|
122
|
+
| `motely-wasm/motely/analysis` | `MotelyJamlyzerResult` |
|
|
123
|
+
| `motely-wasm/bootsharp/file-system` | File system interop (browser OPFS) |
|
|
124
|
+
|
|
125
|
+
## Using in a Web Worker
|
|
126
|
+
|
|
127
|
+
The WASM runtime is single-threaded. For non-blocking UI, run searches in a Worker:
|
|
128
|
+
|
|
129
|
+
```js
|
|
130
|
+
// worker.js
|
|
131
|
+
import motely from "motely-wasm";
|
|
132
|
+
import { Motely } from "motely-wasm/index";
|
|
133
|
+
|
|
134
|
+
await motely.boot("/assets/motely-wasm");
|
|
135
|
+
|
|
136
|
+
Motely.onSeedMatch.subscribe(seed => postMessage({ type: "match", seed }));
|
|
137
|
+
Motely.onProgress.subscribe(p => postMessage({ type: "progress", p }));
|
|
138
|
+
|
|
139
|
+
self.onmessage = async ({ data }) => {
|
|
140
|
+
const search = Motely.createSearch(data.jaml).withSequentialSearch().createSearch();
|
|
141
|
+
await search.runSearchAsync(undefined);
|
|
142
|
+
postMessage({ type: "done" });
|
|
143
|
+
};
|
|
144
|
+
```
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/Debug/net10.0/browser-wasm/Microsoft.Extensions.DependencyInjection.Abstractions.dll
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|