lawspec 0.31.0 → 0.31.3
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 +116 -1
- package/README.md +86 -4
- package/api.mjs +14 -9
- package/authoring.mjs +899 -0
- package/beam-coverage.mjs +190 -65
- package/beam-doctor.mjs +343 -124
- package/bin/lawspec.mjs +1955 -657
- package/build.json +135 -129
- package/component-packages.mjs +662 -176
- package/component.d.ts +82 -20
- package/component.mjs +317 -94
- package/core.wasm +2 -2
- package/core_jsffi.js +5 -5
- package/doctor.mjs +558 -299
- package/examples-command.mjs +44 -23
- package/failure-database.mjs +60 -17
- package/files.mjs +122 -62
- package/index.d.ts +585 -312
- package/input-files.mjs +90 -25
- package/launcher.mjs +72 -31
- package/learn/adapters.mjs +226 -0
- package/learn/app.mjs +1279 -0
- package/learn/assert.mjs +33 -0
- package/learn/assets.mjs +15 -0
- package/learn/browser-runtime.mjs +58 -0
- package/learn/bundle.mjs +118 -0
- package/learn/compile-worker.mjs +106 -0
- package/learn/compiler.mjs +230 -0
- package/learn/coverage.json +8259 -0
- package/learn/curriculum.json +2955 -0
- package/learn/fantomas-worker.mjs +25 -0
- package/learn/format-worker.mjs +148 -0
- package/learn/fsharp.mjs +83 -0
- package/learn/harness-host.mjs +22 -0
- package/learn/index.html +326 -0
- package/learn/lawspec-core.mjs +223 -0
- package/learn/lawspec-language.mjs +69 -0
- package/learn/node-test.mjs +11 -0
- package/learn/presentation.mjs +73 -0
- package/learn/runner.mjs +72 -0
- package/learn/sandbox-frame.html +34 -0
- package/learn/sandbox.mjs +91 -0
- package/learn/store.mjs +141 -0
- package/learn/story.mjs +42 -0
- package/learn/style-options.json +16 -0
- package/learn/style.css +1023 -0
- package/learn/theme.js +77 -0
- package/learn/typescript.mjs +53 -0
- package/learn/vendor/@fontsource-atkinson-hyperlegible-LICENSE.txt +93 -0
- package/learn/vendor/@fontsource-atkinson-hyperlegible-mono-LICENSE.txt +93 -0
- package/learn/vendor/@fontsource-overpass-LICENSE.txt +93 -0
- package/learn/vendor/assemblies.json +1 -0
- package/learn/vendor/editor-worker.js +30 -0
- package/learn/vendor/editor.css +1 -0
- package/learn/vendor/editor.mjs +931 -0
- package/learn/vendor/esbuild-wasm-LICENSE.txt +21 -0
- package/learn/vendor/esbuild.mjs +2683 -0
- package/learn/vendor/esbuild.wasm +0 -0
- package/learn/vendor/fable-library/Array.js +1347 -0
- package/learn/vendor/fable-library/Async.js +134 -0
- package/learn/vendor/fable-library/AsyncBuilder.js +183 -0
- package/learn/vendor/fable-library/BigInt.js +306 -0
- package/learn/vendor/fable-library/BitConverter.js +138 -0
- package/learn/vendor/fable-library/Boolean.js +22 -0
- package/learn/vendor/fable-library/CHANGELOG.md +242 -0
- package/learn/vendor/fable-library/Char.js +202 -0
- package/learn/vendor/fable-library/Choice.js +184 -0
- package/learn/vendor/fable-library/CollectionUtil.js +182 -0
- package/learn/vendor/fable-library/ConditionalWeakTable.js +21 -0
- package/learn/vendor/fable-library/Date.js +841 -0
- package/learn/vendor/fable-library/DateOffset.js +261 -0
- package/learn/vendor/fable-library/DateOnly.js +124 -0
- package/learn/vendor/fable-library/Decimal.js +238 -0
- package/learn/vendor/fable-library/Double.js +47 -0
- package/learn/vendor/fable-library/Encoding.js +185 -0
- package/learn/vendor/fable-library/Event.js +93 -0
- package/learn/vendor/fable-library/FSharp.Collections.js +45 -0
- package/learn/vendor/fable-library/FSharp.Core.CompilerServices.js +27 -0
- package/learn/vendor/fable-library/FSharp.Core.js +156 -0
- package/learn/vendor/fable-library/Global.js +29 -0
- package/learn/vendor/fable-library/Guid.js +161 -0
- package/learn/vendor/fable-library/Int32.js +135 -0
- package/learn/vendor/fable-library/List.js +1323 -0
- package/learn/vendor/fable-library/Long.js +47 -0
- package/learn/vendor/fable-library/MailboxProcessor.js +94 -0
- package/learn/vendor/fable-library/Map.js +1396 -0
- package/learn/vendor/fable-library/MapUtil.js +130 -0
- package/learn/vendor/fable-library/MutableMap.js +339 -0
- package/learn/vendor/fable-library/MutableSet.js +233 -0
- package/learn/vendor/fable-library/Native.js +14 -0
- package/learn/vendor/fable-library/Numeric.js +75 -0
- package/learn/vendor/fable-library/Observable.js +113 -0
- package/learn/vendor/fable-library/Option.js +104 -0
- package/learn/vendor/fable-library/README.md +3 -0
- package/learn/vendor/fable-library/Random.js +172 -0
- package/learn/vendor/fable-library/Range.js +45 -0
- package/learn/vendor/fable-library/Reflection.js +479 -0
- package/learn/vendor/fable-library/RegExp.js +141 -0
- package/learn/vendor/fable-library/Result.js +165 -0
- package/learn/vendor/fable-library/Seq.js +1417 -0
- package/learn/vendor/fable-library/Seq2.js +111 -0
- package/learn/vendor/fable-library/Set.js +1816 -0
- package/learn/vendor/fable-library/String.js +674 -0
- package/learn/vendor/fable-library/System.Collections.Generic.js +333 -0
- package/learn/vendor/fable-library/System.Text.js +200 -0
- package/learn/vendor/fable-library/System.js +289 -0
- package/learn/vendor/fable-library/TimeOnly.js +122 -0
- package/learn/vendor/fable-library/TimeSpan.js +180 -0
- package/learn/vendor/fable-library/Timer.js +67 -0
- package/learn/vendor/fable-library/Types.js +198 -0
- package/learn/vendor/fable-library/Unicode.13.0.0.js +4 -0
- package/learn/vendor/fable-library/Uri.js +165 -0
- package/learn/vendor/fable-library/Util.js +796 -0
- package/learn/vendor/fable-library/big.d.ts +338 -0
- package/learn/vendor/fable-library/lib/big.js +825 -0
- package/learn/vendor/fable-library/package.json +24 -0
- package/learn/vendor/fable-library/quotation.js +618 -0
- package/learn/vendor/fable.js +430 -0
- package/learn/vendor/fantomas/FSharp.Core.uawo19tl4c.wasm +0 -0
- package/learn/vendor/fantomas/Fantomas.Core.stnanlnpyw.wasm +0 -0
- package/learn/vendor/fantomas/Fantomas.FCS.lqohfu5o9y.wasm +0 -0
- package/learn/vendor/fantomas/LawSpec.Learn.Formatter.poiijdbsl9.wasm +0 -0
- package/learn/vendor/fantomas/Microsoft.CSharp.mp8lhr6rez.wasm +0 -0
- package/learn/vendor/fantomas/Microsoft.VisualBasic.0e5fchkecn.wasm +0 -0
- package/learn/vendor/fantomas/Microsoft.VisualBasic.Core.17wn27qal2.wasm +0 -0
- package/learn/vendor/fantomas/Microsoft.Win32.Primitives.9d566sle9e.wasm +0 -0
- package/learn/vendor/fantomas/Microsoft.Win32.Registry.52dy96yk8i.wasm +0 -0
- package/learn/vendor/fantomas/System.AppContext.jwujeh069z.wasm +0 -0
- package/learn/vendor/fantomas/System.Buffers.y0isk1x97h.wasm +0 -0
- package/learn/vendor/fantomas/System.Collections.Concurrent.x5koi7bzem.wasm +0 -0
- package/learn/vendor/fantomas/System.Collections.Immutable.diwg7advch.wasm +0 -0
- package/learn/vendor/fantomas/System.Collections.NonGeneric.4089xs440e.wasm +0 -0
- package/learn/vendor/fantomas/System.Collections.Specialized.hj81u7zblb.wasm +0 -0
- package/learn/vendor/fantomas/System.Collections.nvrdeoknr1.wasm +0 -0
- package/learn/vendor/fantomas/System.ComponentModel.Annotations.yatcnfjeuk.wasm +0 -0
- package/learn/vendor/fantomas/System.ComponentModel.DataAnnotations.led9l5awu3.wasm +0 -0
- package/learn/vendor/fantomas/System.ComponentModel.EventBasedAsync.hpvp6cf4de.wasm +0 -0
- package/learn/vendor/fantomas/System.ComponentModel.Primitives.v7cajwpaqo.wasm +0 -0
- package/learn/vendor/fantomas/System.ComponentModel.TypeConverter.xk1hnyt762.wasm +0 -0
- package/learn/vendor/fantomas/System.ComponentModel.rrnda1lucx.wasm +0 -0
- package/learn/vendor/fantomas/System.Configuration.bn9vghjcq8.wasm +0 -0
- package/learn/vendor/fantomas/System.Console.09ajpiafhz.wasm +0 -0
- package/learn/vendor/fantomas/System.Core.wc649o5mw9.wasm +0 -0
- package/learn/vendor/fantomas/System.Data.Common.s4cowzd9a9.wasm +0 -0
- package/learn/vendor/fantomas/System.Data.DataSetExtensions.5fm360ikxl.wasm +0 -0
- package/learn/vendor/fantomas/System.Data.fsu4j4t4jw.wasm +0 -0
- package/learn/vendor/fantomas/System.Diagnostics.Contracts.p74re5oxzn.wasm +0 -0
- package/learn/vendor/fantomas/System.Diagnostics.Debug.622sixg49n.wasm +0 -0
- package/learn/vendor/fantomas/System.Diagnostics.DiagnosticSource.2j35bc2g2b.wasm +0 -0
- package/learn/vendor/fantomas/System.Diagnostics.FileVersionInfo.7n0wdvltaa.wasm +0 -0
- package/learn/vendor/fantomas/System.Diagnostics.Process.8iffh49mew.wasm +0 -0
- package/learn/vendor/fantomas/System.Diagnostics.StackTrace.1yz88vico8.wasm +0 -0
- package/learn/vendor/fantomas/System.Diagnostics.TextWriterTraceListener.ua8iuh2vhj.wasm +0 -0
- package/learn/vendor/fantomas/System.Diagnostics.Tools.roy5445ugj.wasm +0 -0
- package/learn/vendor/fantomas/System.Diagnostics.TraceSource.6qx1ldzz7g.wasm +0 -0
- package/learn/vendor/fantomas/System.Diagnostics.Tracing.b4799zpaas.wasm +0 -0
- package/learn/vendor/fantomas/System.Drawing.8gcjjqj0pu.wasm +0 -0
- package/learn/vendor/fantomas/System.Drawing.Primitives.y2uveru2yk.wasm +0 -0
- package/learn/vendor/fantomas/System.Dynamic.Runtime.023zrvzh9x.wasm +0 -0
- package/learn/vendor/fantomas/System.Formats.Asn1.znpklkbgqv.wasm +0 -0
- package/learn/vendor/fantomas/System.Formats.Tar.5yybjepfi2.wasm +0 -0
- package/learn/vendor/fantomas/System.Globalization.Calendars.10g6hyjy3k.wasm +0 -0
- package/learn/vendor/fantomas/System.Globalization.Extensions.hrinfrismg.wasm +0 -0
- package/learn/vendor/fantomas/System.Globalization.uvs4rah8fk.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.4j645gw40d.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.Compression.2z7vdt6tfb.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.Compression.Brotli.fv80xs79j3.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.Compression.FileSystem.88jdddz3sw.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.Compression.ZipFile.jkn9avr4vo.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.FileSystem.AccessControl.yme0uhbu37.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.FileSystem.DriveInfo.qas7wf73rs.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.FileSystem.Primitives.d1jmhkzu0e.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.FileSystem.Watcher.z570derp0d.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.FileSystem.o6jtz51fup.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.IsolatedStorage.hqyeyb5ipe.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.MemoryMappedFiles.zhamjnusxd.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.Pipelines.wrmw5vws31.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.Pipes.AccessControl.qcancj8gj2.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.Pipes.zhcyguvwkr.wasm +0 -0
- package/learn/vendor/fantomas/System.IO.UnmanagedMemoryStream.o8cpjnlard.wasm +0 -0
- package/learn/vendor/fantomas/System.Linq.AsyncEnumerable.hyc0b7okjw.wasm +0 -0
- package/learn/vendor/fantomas/System.Linq.Expressions.ldibvm0efj.wasm +0 -0
- package/learn/vendor/fantomas/System.Linq.Parallel.2buevezvch.wasm +0 -0
- package/learn/vendor/fantomas/System.Linq.Queryable.cvq43g1awj.wasm +0 -0
- package/learn/vendor/fantomas/System.Linq.lz6mvi0hm2.wasm +0 -0
- package/learn/vendor/fantomas/System.Memory.3jekerw0ga.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.Http.Json.8k237kkwec.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.Http.cityx2bvcl.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.HttpListener.s1jreclykx.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.Mail.cmlj4c0gto.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.NameResolution.q3gf18q13l.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.NetworkInformation.xaz5tjw7d0.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.Ping.a40atim1h0.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.Primitives.i88i20r8sr.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.Quic.hx06eo5xkj.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.Requests.hkjxlfe5f5.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.Security.ch34yya69o.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.ServerSentEvents.0u7o0jk3p1.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.ServicePoint.xbhxnytx4l.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.Sockets.hzgzlvkc9l.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.WebClient.84i8nwzbgu.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.WebHeaderCollection.326nl7s9g3.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.WebProxy.oq3mgkkqef.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.WebSockets.2cx1v74vg8.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.WebSockets.Client.rafzkktw8j.wasm +0 -0
- package/learn/vendor/fantomas/System.Net.w1hpj3bo6r.wasm +0 -0
- package/learn/vendor/fantomas/System.Numerics.Vectors.oyv7biw9ux.wasm +0 -0
- package/learn/vendor/fantomas/System.Numerics.lyu36wqn19.wasm +0 -0
- package/learn/vendor/fantomas/System.ObjectModel.kxu80demuu.wasm +0 -0
- package/learn/vendor/fantomas/System.Private.CoreLib.1vy46s12u6.wasm +0 -0
- package/learn/vendor/fantomas/System.Private.DataContractSerialization.ao8k9iu77a.wasm +0 -0
- package/learn/vendor/fantomas/System.Private.Uri.itn0n2zjd0.wasm +0 -0
- package/learn/vendor/fantomas/System.Private.Xml.19nzpxrx8w.wasm +0 -0
- package/learn/vendor/fantomas/System.Private.Xml.Linq.tw5eq1hjvo.wasm +0 -0
- package/learn/vendor/fantomas/System.Reflection.DispatchProxy.7lajnj8s8c.wasm +0 -0
- package/learn/vendor/fantomas/System.Reflection.Emit.7liz9zln06.wasm +0 -0
- package/learn/vendor/fantomas/System.Reflection.Emit.ILGeneration.1ut3qgacw8.wasm +0 -0
- package/learn/vendor/fantomas/System.Reflection.Emit.Lightweight.d0gvllb1jj.wasm +0 -0
- package/learn/vendor/fantomas/System.Reflection.Extensions.zr5bhwfczd.wasm +0 -0
- package/learn/vendor/fantomas/System.Reflection.Metadata.ff6np6mz2j.wasm +0 -0
- package/learn/vendor/fantomas/System.Reflection.Primitives.igpmvwv78c.wasm +0 -0
- package/learn/vendor/fantomas/System.Reflection.TypeExtensions.qouojzlnp9.wasm +0 -0
- package/learn/vendor/fantomas/System.Reflection.mk3jyxvh13.wasm +0 -0
- package/learn/vendor/fantomas/System.Resources.Reader.41ppfyz2vc.wasm +0 -0
- package/learn/vendor/fantomas/System.Resources.ResourceManager.sfwvfmw1ea.wasm +0 -0
- package/learn/vendor/fantomas/System.Resources.Writer.3uvs9tp38z.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.CompilerServices.Unsafe.puz1xm53oc.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.CompilerServices.VisualC.9qdau315py.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.Extensions.i7gntui96b.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.Handles.00oxj4o6ov.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.InteropServices.JavaScript.9kq1vofond.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.InteropServices.RuntimeInformation.my7qeqbhfh.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.InteropServices.vqp80tnwc7.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.Intrinsics.u0samjybfo.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.Loader.n6zxw1b98a.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.Numerics.o40sjhz59x.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.Serialization.Formatters.1esvva4te3.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.Serialization.Json.4n7u09advh.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.Serialization.Primitives.xs2bo91wvk.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.Serialization.Xml.ny21jmziti.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.Serialization.qcxaur5wqs.wasm +0 -0
- package/learn/vendor/fantomas/System.Runtime.odq454d6j9.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.AccessControl.8yfnzmqzaq.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.Claims.8ogy0860de.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.Cryptography.Algorithms.8zijp1svfw.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.Cryptography.Cng.yxagtt77no.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.Cryptography.Csp.uhfbvvau84.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.Cryptography.Encoding.2ywrusvy8q.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.Cryptography.OpenSsl.oa268u7i92.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.Cryptography.Primitives.5uhvqe8puk.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.Cryptography.X509Certificates.6i7pxilopt.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.Cryptography.d0quqk1iyr.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.Principal.Windows.gpqua4rz29.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.Principal.i20kfklf3g.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.SecureString.x2y8tzci3c.wasm +0 -0
- package/learn/vendor/fantomas/System.Security.e83vvh6sl2.wasm +0 -0
- package/learn/vendor/fantomas/System.ServiceModel.Web.poglliv2no.wasm +0 -0
- package/learn/vendor/fantomas/System.ServiceProcess.yro5uj2opo.wasm +0 -0
- package/learn/vendor/fantomas/System.Text.Encoding.CodePages.2wchx40i7z.wasm +0 -0
- package/learn/vendor/fantomas/System.Text.Encoding.Extensions.8utaw61kn5.wasm +0 -0
- package/learn/vendor/fantomas/System.Text.Encoding.cxdyfepnpj.wasm +0 -0
- package/learn/vendor/fantomas/System.Text.Encodings.Web.37ehbi7cye.wasm +0 -0
- package/learn/vendor/fantomas/System.Text.Json.ixiaa8hd3h.wasm +0 -0
- package/learn/vendor/fantomas/System.Text.RegularExpressions.2fhfmkk6vf.wasm +0 -0
- package/learn/vendor/fantomas/System.Threading.6pry74a050.wasm +0 -0
- package/learn/vendor/fantomas/System.Threading.AccessControl.76zfdfy8go.wasm +0 -0
- package/learn/vendor/fantomas/System.Threading.Channels.gpxnr01lmp.wasm +0 -0
- package/learn/vendor/fantomas/System.Threading.Overlapped.aqpl8tzdyc.wasm +0 -0
- package/learn/vendor/fantomas/System.Threading.Tasks.Dataflow.ytwttt7fzh.wasm +0 -0
- package/learn/vendor/fantomas/System.Threading.Tasks.Extensions.0deavcb00v.wasm +0 -0
- package/learn/vendor/fantomas/System.Threading.Tasks.Parallel.tjwtxugso0.wasm +0 -0
- package/learn/vendor/fantomas/System.Threading.Tasks.fu4qd5h3qy.wasm +0 -0
- package/learn/vendor/fantomas/System.Threading.Thread.klaua2by9m.wasm +0 -0
- package/learn/vendor/fantomas/System.Threading.ThreadPool.mkzm212njz.wasm +0 -0
- package/learn/vendor/fantomas/System.Threading.Timer.yp49llu5h2.wasm +0 -0
- package/learn/vendor/fantomas/System.Transactions.Local.vz6cgeh4w7.wasm +0 -0
- package/learn/vendor/fantomas/System.Transactions.ipwm3rsy66.wasm +0 -0
- package/learn/vendor/fantomas/System.ValueTuple.7ol6ljuhx8.wasm +0 -0
- package/learn/vendor/fantomas/System.Web.HttpUtility.itlvncjd96.wasm +0 -0
- package/learn/vendor/fantomas/System.Web.np8uzzakvl.wasm +0 -0
- package/learn/vendor/fantomas/System.Windows.18nzio44t3.wasm +0 -0
- package/learn/vendor/fantomas/System.Xml.45jprtg1pa.wasm +0 -0
- package/learn/vendor/fantomas/System.Xml.Linq.v9v8udncm1.wasm +0 -0
- package/learn/vendor/fantomas/System.Xml.ReaderWriter.a9mr08uzci.wasm +0 -0
- package/learn/vendor/fantomas/System.Xml.Serialization.03juoguwgc.wasm +0 -0
- package/learn/vendor/fantomas/System.Xml.XDocument.c9dhjnzqjb.wasm +0 -0
- package/learn/vendor/fantomas/System.Xml.XPath.XDocument.138b12i1pm.wasm +0 -0
- package/learn/vendor/fantomas/System.Xml.XPath.pvxm9341ce.wasm +0 -0
- package/learn/vendor/fantomas/System.Xml.XmlDocument.450wsyxvl0.wasm +0 -0
- package/learn/vendor/fantomas/System.Xml.XmlSerializer.y3t2n0tce7.wasm +0 -0
- package/learn/vendor/fantomas/System.gjriafnqmz.wasm +0 -0
- package/learn/vendor/fantomas/WindowsBase.8zsce9qxfb.wasm +0 -0
- package/learn/vendor/fantomas/cs/FSharp.Core.resources.9ehmavdel7.wasm +0 -0
- package/learn/vendor/fantomas/de/FSharp.Core.resources.2ofmxloa01.wasm +0 -0
- package/learn/vendor/fantomas/dotnet.js +1233 -0
- package/learn/vendor/fantomas/dotnet.native.b6l13xorvf.js +16 -0
- package/learn/vendor/fantomas/dotnet.native.rw4kynp763.wasm +0 -0
- package/learn/vendor/fantomas/dotnet.runtime.v06hirbjsv.js +4 -0
- package/learn/vendor/fantomas/es/FSharp.Core.resources.hkr5ggb4tr.wasm +0 -0
- package/learn/vendor/fantomas/fr/FSharp.Core.resources.43soen28ow.wasm +0 -0
- package/learn/vendor/fantomas/icudt_CJK.tjcz0u77k5.dat +0 -0
- package/learn/vendor/fantomas/icudt_EFIGS.tptq2av103.dat +0 -0
- package/learn/vendor/fantomas/icudt_no_CJK.lfu7j35m59.dat +0 -0
- package/learn/vendor/fantomas/it/FSharp.Core.resources.m60n5ls7oq.wasm +0 -0
- package/learn/vendor/fantomas/ja/FSharp.Core.resources.o6oof69v14.wasm +0 -0
- package/learn/vendor/fantomas/ko/FSharp.Core.resources.q6l4snlu9o.wasm +0 -0
- package/learn/vendor/fantomas/mscorlib.8ptuc08eli.wasm +0 -0
- package/learn/vendor/fantomas/netstandard.eymp85mooh.wasm +0 -0
- package/learn/vendor/fantomas/pl/FSharp.Core.resources.8bni0w6j8b.wasm +0 -0
- package/learn/vendor/fantomas/pt-BR/FSharp.Core.resources.k849vqm41u.wasm +0 -0
- package/learn/vendor/fantomas/ru/FSharp.Core.resources.jz9rhhtsla.wasm +0 -0
- package/learn/vendor/fantomas/tr/FSharp.Core.resources.wn6vbvjm1u.wasm +0 -0
- package/learn/vendor/fantomas/zh-Hans/FSharp.Core.resources.z7zzbso094.wasm +0 -0
- package/learn/vendor/fantomas/zh-Hant/FSharp.Core.resources.iammfsi7ls.wasm +0 -0
- package/learn/vendor/fast-check-LICENSE.txt +21 -0
- package/learn/vendor/fast-check.mjs +37 -0
- package/learn/vendor/fonts/atkinson-hyperlegible-latin-400-normal.woff2 +0 -0
- package/learn/vendor/fonts/atkinson-hyperlegible-latin-700-normal.woff2 +0 -0
- package/learn/vendor/fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2 +0 -0
- package/learn/vendor/fonts/overpass-latin-600-normal.woff2 +0 -0
- package/learn/vendor/fonts/overpass-latin-700-normal.woff2 +0 -0
- package/learn/vendor/formatter-licenses/DotNet-LICENSE.txt +23 -0
- package/learn/vendor/formatter-licenses/DotNet-THIRD-PARTY-NOTICES.txt +1418 -0
- package/learn/vendor/formatter-licenses/FSharp-LICENSE.txt +23 -0
- package/learn/vendor/formatter-licenses/Fantomas-LICENSE.txt +202 -0
- package/learn/vendor/formatter-licenses/README.md +12 -0
- package/learn/vendor/manifest.json +1354 -0
- package/learn/vendor/metadata/Browser.Blob.dll +0 -0
- package/learn/vendor/metadata/Browser.Dom.dll +0 -0
- package/learn/vendor/metadata/Browser.Event.dll +0 -0
- package/learn/vendor/metadata/Browser.Gamepad.dll +0 -0
- package/learn/vendor/metadata/Browser.WebGL.dll +0 -0
- package/learn/vendor/metadata/Browser.WebStorage.dll +0 -0
- package/learn/vendor/metadata/FSharp.Core.dll +0 -0
- package/learn/vendor/metadata/Fable.Core.dll +0 -0
- package/learn/vendor/metadata/Fable.Repl.Lib.dll +0 -0
- package/learn/vendor/metadata/System.Collections.Concurrent.dll +0 -0
- package/learn/vendor/metadata/System.Collections.dll +0 -0
- package/learn/vendor/metadata/System.ComponentModel.Primitives.dll +0 -0
- package/learn/vendor/metadata/System.ComponentModel.TypeConverter.dll +0 -0
- package/learn/vendor/metadata/System.ComponentModel.dll +0 -0
- package/learn/vendor/metadata/System.Console.dll +0 -0
- package/learn/vendor/metadata/System.Core.dll +0 -0
- package/learn/vendor/metadata/System.Diagnostics.Debug.dll +0 -0
- package/learn/vendor/metadata/System.Diagnostics.Tools.dll +0 -0
- package/learn/vendor/metadata/System.Diagnostics.Tracing.dll +0 -0
- package/learn/vendor/metadata/System.Globalization.dll +0 -0
- package/learn/vendor/metadata/System.IO.dll +0 -0
- package/learn/vendor/metadata/System.Net.Requests.dll +0 -0
- package/learn/vendor/metadata/System.Net.WebClient.dll +0 -0
- package/learn/vendor/metadata/System.Numerics.dll +0 -0
- package/learn/vendor/metadata/System.Reflection.Extensions.dll +0 -0
- package/learn/vendor/metadata/System.Reflection.Metadata.dll +0 -0
- package/learn/vendor/metadata/System.Reflection.Primitives.dll +0 -0
- package/learn/vendor/metadata/System.Reflection.TypeExtensions.dll +0 -0
- package/learn/vendor/metadata/System.Reflection.dll +0 -0
- package/learn/vendor/metadata/System.Runtime.Extensions.dll +0 -0
- package/learn/vendor/metadata/System.Runtime.InteropServices.dll +0 -0
- package/learn/vendor/metadata/System.Runtime.Numerics.dll +0 -0
- package/learn/vendor/metadata/System.Runtime.dll +0 -0
- package/learn/vendor/metadata/System.Text.Encoding.Extensions.dll +0 -0
- package/learn/vendor/metadata/System.Text.Encoding.dll +0 -0
- package/learn/vendor/metadata/System.Text.RegularExpressions.dll +0 -0
- package/learn/vendor/metadata/System.Threading.Tasks.dll +0 -0
- package/learn/vendor/metadata/System.Threading.Thread.dll +0 -0
- package/learn/vendor/metadata/System.Threading.dll +0 -0
- package/learn/vendor/metadata/System.ValueTuple.dll +0 -0
- package/learn/vendor/metadata/System.dll +0 -0
- package/learn/vendor/metadata/mscorlib.dll +0 -0
- package/learn/vendor/metadata/netstandard.dll +0 -0
- package/learn/vendor/monaco-editor-LICENSE.txt +21 -0
- package/learn/vendor/prettier/babel.mjs +16 -0
- package/learn/vendor/prettier/brace-style.mjs +376 -0
- package/learn/vendor/prettier/estree.mjs +44 -0
- package/learn/vendor/prettier/standalone.mjs +29 -0
- package/learn/vendor/prettier/typescript.mjs +22 -0
- package/learn/vendor/prettier-LICENSE.txt +7 -0
- package/learn/vendor/prettier-plugin-brace-style-LICENSE.txt +21 -0
- package/learn/vendor/typescript-LICENSE.txt +55 -0
- package/learn/vendor/typescript-libs.json +1 -0
- package/learn/vendor/typescript.mjs +451 -0
- package/learn/vendor/zod-LICENSE.txt +21 -0
- package/learn/web-format.mjs +8 -0
- package/learn.mjs +126 -0
- package/lsp.mjs +444 -133
- package/mcp.mjs +250 -0
- package/native-evidence.mjs +668 -182
- package/native-examples.mjs +56 -19
- package/native-host.mjs +136 -42
- package/native-parsers/clojure.LICENSE +121 -0
- package/native-parsers/clojure.wasm +0 -0
- package/native-parsers/csharp.LICENSE +21 -0
- package/native-parsers/csharp.wasm +0 -0
- package/native-parsers/elixir.LICENSE +176 -0
- package/native-parsers/elixir.wasm +0 -0
- package/native-parsers/erlang.LICENSE +201 -0
- package/native-parsers/erlang.wasm +0 -0
- package/native-parsers/fsharp.LICENSE +21 -0
- package/native-parsers/fsharp.wasm +0 -0
- package/native-parsers/gleam.LICENSE +202 -0
- package/native-parsers/gleam.wasm +0 -0
- package/native-parsers/go.LICENSE +21 -0
- package/native-parsers/go.wasm +0 -0
- package/native-parsers/groovy.LICENSE +21 -0
- package/native-parsers/groovy.wasm +0 -0
- package/native-parsers/haskell.LICENSE +21 -0
- package/native-parsers/haskell.wasm +0 -0
- package/native-parsers/java.LICENSE +21 -0
- package/native-parsers/java.wasm +0 -0
- package/native-parsers/javascript.LICENSE +21 -0
- package/native-parsers/javascript.wasm +0 -0
- package/native-parsers/kotlin.LICENSE +9 -0
- package/native-parsers/kotlin.wasm +0 -0
- package/native-parsers/lock.json +114 -0
- package/native-parsers/prolog.LICENSE +21 -0
- package/native-parsers/prolog.wasm +0 -0
- package/native-parsers/python.LICENSE +21 -0
- package/native-parsers/python.wasm +0 -0
- package/native-parsers/rust.LICENSE +21 -0
- package/native-parsers/rust.wasm +0 -0
- package/native-parsers/scala.LICENSE +21 -0
- package/native-parsers/scala.wasm +0 -0
- package/native-parsers/swift.LICENSE +21 -0
- package/native-parsers/swift.wasm +0 -0
- package/native-parsers/typescript.LICENSE +21 -0
- package/native-parsers/typescript.wasm +0 -0
- package/node-events-reporter.mjs +41 -17
- package/package.json +5 -3
- package/project.mjs +338 -0
- package/proof.d.ts +93 -19
- package/proof.mjs +1538 -447
- package/read-only-hpack.mjs +6 -5
- package/scala-build-state.mjs +131 -41
- package/scala-coverage.mjs +57 -34
- package/scalars.mjs +23 -8
- package/templates.mjs +566 -617
- package/test-command.mjs +1671 -521
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,118 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.31.3] - 2026-11-03
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Prelude-first authoring skill and twelve checked worked cases cover library
|
|
14
|
+
selection, generated-model ownership, migration and explicit native bindings.
|
|
15
|
+
All three skills include portable compiler references and shared examples.
|
|
16
|
+
- Git-backed marketplaces install the same LawSpec plugin in Codex and Claude
|
|
17
|
+
Code. The README includes installation, release pinning and update commands.
|
|
18
|
+
- Read-only `prelude`, `inspect` and `advise` commands expose library discovery,
|
|
19
|
+
generated interfaces and bounded authoring findings through the CLI, SDK and
|
|
20
|
+
MCP. Native analysis includes bundled offline parsers for all 18 program
|
|
21
|
+
targets; strict advice rejects unresolved findings and incomplete checks.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- Ordinary checks and generation show nonblocking authoring advice, with
|
|
26
|
+
`--no-advice` to disable it. Advice remains separate from semantic diagnostics
|
|
27
|
+
and law evidence and never rewrites application files.
|
|
28
|
+
- The learning course explains reuse and generated-model migration without
|
|
29
|
+
changing saved progress identities or its pending teaching-review status.
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- Read-only inspection and advice do not repair dependency caches, unpack Git
|
|
34
|
+
dependencies or create lock files.
|
|
35
|
+
- Defer effectful compile-time evaluation through called procedures, including
|
|
36
|
+
caught failures, and render evaluator source locations without raw AST dumps.
|
|
37
|
+
- Resolve imported Go native failure types and handler factories consistently;
|
|
38
|
+
report why a handler lacks typed embedding entry points.
|
|
39
|
+
- Admit refined fields in indexed constructors without placeholder-type errors,
|
|
40
|
+
and carry structural induction through record and Pair payloads.
|
|
41
|
+
- Analyze bounded refined law sets without a solver and surface expired
|
|
42
|
+
exemptions even when completeness remains undecided.
|
|
43
|
+
- Restrict HCL representation checks to reachable configuration types while
|
|
44
|
+
preserving mandatory validation of every definition.
|
|
45
|
+
- Preserve measurement evidence for budget checks, with native-check durations
|
|
46
|
+
explicitly distinguished from operation timings.
|
|
47
|
+
- Include model and history laws in MCP listings and explanations, advertise
|
|
48
|
+
read-only tools and use the package version in MCP/LSP handshakes. Editor type
|
|
49
|
+
displays retain source signatures instead of raw JSON or erased ABI types.
|
|
50
|
+
- Repair missing declared target scaffolds, explain missing output roots and
|
|
51
|
+
mark copied starter specifications as user-owned. Refresh manifest examples
|
|
52
|
+
and document the boundaries of compact Go output.
|
|
53
|
+
|
|
54
|
+
## [0.31.2] - 2026-11-01
|
|
55
|
+
|
|
56
|
+
### Added
|
|
57
|
+
|
|
58
|
+
- Project helpers (`project init`, `adopt`, `status` and `validate`) coordinate
|
|
59
|
+
Canon decisions, mandatory definition checks and configured evidence without
|
|
60
|
+
rewriting application code. The local MCP server exposes read-only compiler
|
|
61
|
+
checks, listings and explanations.
|
|
62
|
+
- Linear-model command arguments can use the current reference state's indices
|
|
63
|
+
and refinements. Generation and shrinking recheck the affected sequence;
|
|
64
|
+
finite model checking enumerates finite dependent domains. Empty domains and
|
|
65
|
+
incomplete generation remain distinct.
|
|
66
|
+
- The portable plugin includes the project-workflow skill alongside the tutor.
|
|
67
|
+
|
|
68
|
+
### Changed
|
|
69
|
+
|
|
70
|
+
- Repository formatters and generated code follow the owner's Allman preference
|
|
71
|
+
where supported, with established language formatters and pinned browser
|
|
72
|
+
formatting tools. Public bindings and evidence meanings are preserved.
|
|
73
|
+
- Learn comments retain pending human-review verdicts under the same pre-1.0
|
|
74
|
+
deferral as compiler/runtime comments. Teaching review remains open.
|
|
75
|
+
|
|
76
|
+
### Fixed
|
|
77
|
+
|
|
78
|
+
- Python's 80-column output and Rust's Allman output remain stable for long
|
|
79
|
+
calls, enum variants, bound handlers, match guards and grouped imports.
|
|
80
|
+
Recorded adapter stubs reflect the same interfaces in the selected style.
|
|
81
|
+
- Rust native bindings import only emitted conversion helpers: opaque handles
|
|
82
|
+
convert inline, and mixed handle/data bindings retain their helper indices.
|
|
83
|
+
- C# crypto-vector fixtures and shared Erlang model support follow their pinned
|
|
84
|
+
formatter layouts.
|
|
85
|
+
- Quantified record headers retain the same layout after record braces expand;
|
|
86
|
+
repeated formatting remains stable.
|
|
87
|
+
- Browser formatter assets are published into an empty staging directory, so
|
|
88
|
+
obsolete content-hashed assemblies cannot accumulate in the package. Formatter
|
|
89
|
+
assembly metadata is independent of unrelated Git commits, and bundle paths
|
|
90
|
+
are anchored to the repository root regardless of the invocation directory.
|
|
91
|
+
- Release instructions, package versions and hosted Learn references identify
|
|
92
|
+
the same release while preserving the course's `preview-4` progress identity.
|
|
93
|
+
|
|
94
|
+
## [0.31.1] - 2026-10-29
|
|
95
|
+
|
|
96
|
+
### Added
|
|
97
|
+
|
|
98
|
+
- `lawspec learn` serves the packaged F#-first learning track without a project
|
|
99
|
+
manifest. Six executable lessons pair worked examples with practice in F#,
|
|
100
|
+
TypeScript or JavaScript, covering examples, property selection, generators,
|
|
101
|
+
shrinking, replay and kept regression cases. The same artifact replaces the
|
|
102
|
+
previous coffee-order tutorial on GoForge. Teaching review remains open;
|
|
103
|
+
later lessons, capstones and the complete API collection remain deferred.
|
|
104
|
+
- The browser workspace includes independent Laws, Solution and Harness tabs,
|
|
105
|
+
local formatting and execution, progressive hints, complete solutions,
|
|
106
|
+
autosaved drafts and progress backup/restore. F# executes through Fable and
|
|
107
|
+
the JavaScript harness with fast-check, separately from native .NET/FsCheck.
|
|
108
|
+
Samples, mandatory definition checks, missing results and execution failures
|
|
109
|
+
retain their own meanings; saved progress is not proof.
|
|
110
|
+
- A portable LawSpec tutor skill shares the generated course and executable
|
|
111
|
+
projects with the browser app.
|
|
112
|
+
### Fixed
|
|
113
|
+
|
|
114
|
+
- Quantified-claim formatting uses parsed header, body and closing boundaries,
|
|
115
|
+
keeping short arithmetic bodies together and long binders intact. Formatting
|
|
116
|
+
before a learning run saves and executes the same complete project snapshot.
|
|
117
|
+
- The local Learn server serves JavaScript modules with the correct MIME type,
|
|
118
|
+
including the compiler's JavaScript glue, and packages all required browser
|
|
119
|
+
compiler, editor, formatter, runtime and font assets for local execution.
|
|
120
|
+
|
|
9
121
|
## [0.31.0] - 2026-10-26
|
|
10
122
|
|
|
11
123
|
### Fixed
|
|
@@ -2348,7 +2460,10 @@ A maintenance release. The language, generated code and API are unchanged from
|
|
|
2348
2460
|
machine-sized bindings reject an architecture mismatch. Rust adapters take
|
|
2349
2461
|
owned values.
|
|
2350
2462
|
|
|
2351
|
-
[Unreleased]: https://github.com/brain-fuel/lawspec/compare/v0.31.
|
|
2463
|
+
[Unreleased]: https://github.com/brain-fuel/lawspec/compare/v0.31.3...HEAD
|
|
2464
|
+
[0.31.3]: https://github.com/brain-fuel/lawspec/compare/v0.31.2...v0.31.3
|
|
2465
|
+
[0.31.2]: https://github.com/brain-fuel/lawspec/compare/v0.31.0...v0.31.2
|
|
2466
|
+
[0.31.1]: https://www.npmjs.com/package/lawspec/v/0.31.1
|
|
2352
2467
|
[0.31.0]: https://github.com/brain-fuel/lawspec/compare/v0.30.0...v0.31.0
|
|
2353
2468
|
[0.30.0]: https://github.com/brain-fuel/lawspec/compare/v0.29.2...v0.30.0
|
|
2354
2469
|
[0.29.2]: https://github.com/brain-fuel/lawspec/compare/v0.29.1...v0.29.2
|
package/README.md
CHANGED
|
@@ -9,10 +9,8 @@ Haskell, Kotlin, Rust, C#, F#, Swift, Erlang, Elixir, Gleam, Clojure, Groovy and
|
|
|
9
9
|
Scala. The compiler is written in Haskell and distributed on npm as prebuilt
|
|
10
10
|
WebAssembly, with a Node CLI and a typed JavaScript API.
|
|
11
11
|
|
|
12
|
-
The
|
|
13
|
-
|
|
14
|
-
Install the development checkout as shown below. For released 0.24.0, use the
|
|
15
|
-
[0.24.0 documentation](https://github.com/brain-fuel/lawspec/tree/v0.24.0).
|
|
12
|
+
The examples below use the current canonical authoring profile. The npm package
|
|
13
|
+
includes the compiler and learning track; no Haskell installation is needed.
|
|
16
14
|
|
|
17
15
|
## Features
|
|
18
16
|
|
|
@@ -36,6 +34,17 @@ Install the development checkout as shown below. For released 0.24.0, use the
|
|
|
36
34
|
Node 22+ and the selected target's build tools are required. No Haskell
|
|
37
35
|
toolchain is needed. The reference platforms are macOS and Linux.
|
|
38
36
|
|
|
37
|
+
To open the learning track locally:
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
npm install --global lawspec@0.31.3
|
|
41
|
+
lawspec learn
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Open the printed loopback URL, or use [Learn on GoForge](https://goforge.dev/lawspec/learn/).
|
|
45
|
+
Six lessons pair worked examples with practice in F#, TypeScript or JavaScript.
|
|
46
|
+
The course is a teaching preview; later lessons and capstones remain deferred.
|
|
47
|
+
|
|
39
48
|
The checkout includes the development WASM package. To try it in a **new, empty
|
|
40
49
|
directory**, initialize before installing, so that LawSpec can create
|
|
41
50
|
`package.json` and its test script:
|
|
@@ -67,6 +76,74 @@ In an existing project, install the checkout's `npm` directory first, then run
|
|
|
67
76
|
apply the printed setup instructions before generating. See
|
|
68
77
|
[Install LawSpec and create a project](docs/how-to/install-and-init.md).
|
|
69
78
|
|
|
79
|
+
## Codex and Claude Code plugin
|
|
80
|
+
|
|
81
|
+
The Git-backed `brain-fuel` marketplace includes the LawSpec plugin with three
|
|
82
|
+
skills: `lawspec-author` for specifications and adapters, `lawspec-project` for
|
|
83
|
+
project discovery and changes, and `lawspec-learn` for tutoring. Each includes
|
|
84
|
+
its references, so installation does not require a compiler repository checkout.
|
|
85
|
+
Install the LawSpec CLI separately with Node 22+:
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
npm install --global lawspec@0.31.3
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
For **Codex**, run these commands in your terminal:
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
codex plugin marketplace add brain-fuel/lawspec \
|
|
95
|
+
--sparse .agents/plugins --sparse plugins/lawspec
|
|
96
|
+
codex plugin add lawspec@brain-fuel
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
For **Claude Code**, run:
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
claude plugin marketplace add brain-fuel/lawspec \
|
|
103
|
+
--sparse .claude-plugin plugins/lawspec
|
|
104
|
+
claude plugin install lawspec@brain-fuel
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Alternatively, inside Claude Code use `/plugin marketplace add brain-fuel/lawspec`
|
|
108
|
+
and `/plugin install lawspec@brain-fuel`. Start a new session after installation.
|
|
109
|
+
Ask Codex to use `lawspec-author`, or invoke `/lawspec:lawspec-author` in Claude
|
|
110
|
+
Code; the project and tutor skills follow the same naming pattern.
|
|
111
|
+
|
|
112
|
+
The terminal commands use sparse checkouts for the marketplace and plugin
|
|
113
|
+
directories. For a local checkout, omit `--sparse` and its paths and replace
|
|
114
|
+
`brain-fuel/lawspec` with the checkout's absolute path. To pin a release in Codex, append
|
|
115
|
+
`--ref v0.31.3` to its marketplace-add command. In Claude Code, use
|
|
116
|
+
`https://github.com/brain-fuel/lawspec.git#v0.31.3` as the marketplace source.
|
|
117
|
+
Private repository installations require your existing GitHub access.
|
|
118
|
+
|
|
119
|
+
To refresh the Git source, run `codex plugin marketplace upgrade brain-fuel` or
|
|
120
|
+
`claude plugin marketplace update brain-fuel`; in Claude Code then run
|
|
121
|
+
`claude plugin update lawspec@brain-fuel`. In Codex, reinstall with
|
|
122
|
+
`codex plugin add lawspec@brain-fuel` to select the refreshed package. Restart
|
|
123
|
+
the host to load updated skills.
|
|
124
|
+
|
|
125
|
+
This is a repository marketplace, not a listing in either host's curated public
|
|
126
|
+
directory. The plugin has its own version in `learn/plugin.json`; the course
|
|
127
|
+
remains a teaching preview. Maintainers regenerate both host manifests from that
|
|
128
|
+
file with `make generate`. See the official
|
|
129
|
+
[Codex marketplace documentation](https://developers.openai.com/plugins/build/plugins)
|
|
130
|
+
and [Claude Code marketplace documentation](https://code.claude.com/docs/en/plugin-marketplaces).
|
|
131
|
+
|
|
132
|
+
## MCP server
|
|
133
|
+
|
|
134
|
+
LawSpec can expose a project's compiler through a local MCP server. From the
|
|
135
|
+
project directory, run `npx lawspec mcp`; a host can also launch that command
|
|
136
|
+
as a child process. To inspect it interactively, run:
|
|
137
|
+
|
|
138
|
+
```sh
|
|
139
|
+
npx @modelcontextprotocol/inspector npx lawspec mcp
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
The server provides `lawspec_check`, `lawspec_list_laws`, and
|
|
143
|
+
`lawspec_explain`. It reads the project's `lawspec.edn`, validates definitions,
|
|
144
|
+
and reports the configured law verification and its evidence statuses. See the
|
|
145
|
+
[MCP server guide](docs/how-to/use-mcp.md) for host setup and details.
|
|
146
|
+
|
|
70
147
|
## Example
|
|
71
148
|
|
|
72
149
|
```lawspec
|
|
@@ -142,3 +219,8 @@ Syntax highlighting is available as a [VS Code extension](editors/vscode/README.
|
|
|
142
219
|
## License
|
|
143
220
|
|
|
144
221
|
MIT. See [LICENSE](LICENSE).
|
|
222
|
+
|
|
223
|
+
Start or adopt a project without choosing a language with `lawspec project init`
|
|
224
|
+
or `lawspec project adopt`. `lawspec project status` separates Canon decisions
|
|
225
|
+
from LawSpec evidence; `lawspec project validate` checks definitions and the
|
|
226
|
+
configured verification layers. [Project workflow](docs/how-to/manage-projects.md).
|
package/api.mjs
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
// Generated by lawspec-dev generate. Do not edit.
|
|
2
2
|
import {loadCore} from './launcher.mjs';
|
|
3
3
|
|
|
4
|
-
export async function createCompiler()
|
|
4
|
+
export async function createCompiler()
|
|
5
|
+
{
|
|
5
6
|
const call = await loadCore();
|
|
6
7
|
return {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
prelude: input => call({schemaVersion: 5, ...input, method: 'prelude'}),
|
|
9
|
+
inspect: input => call({schemaVersion: 5, ...input, method: 'inspect'}),
|
|
10
|
+
advise: async input =>
|
|
11
|
+
(await import('./authoring.mjs')).advise(call, input),
|
|
12
|
+
format: input => call({schemaVersion: 5, ...input, method: 'format'}),
|
|
13
|
+
check: input => call({schemaVersion: 5, ...input, method: 'check'}),
|
|
14
|
+
expand: input => call({schemaVersion: 5, ...input, method: 'expand'}),
|
|
15
|
+
explain: input => call({schemaVersion: 5, ...input, method: 'explain'}),
|
|
16
|
+
proofTasks: input =>
|
|
17
|
+
call({schemaVersion: 5, ...input, method: 'proofTasks'}),
|
|
18
|
+
planGeneration: input =>
|
|
19
|
+
call({schemaVersion: 5, ...input, method: 'planGeneration'}),
|
|
15
20
|
};
|
|
16
21
|
}
|