motely-wasm 7.0.3 → 7.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/index.mjs +468 -433
- package/jaml.schema.json +1 -1
- package/package.json +46 -46
- package/types/bindings.g.d.ts +831 -0
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# motely-wasm (NativeAOT-LLVM + Bootsharp)
|
|
2
2
|
|
|
3
|
-
This project compiles Motely to **browser WASM** with **Bootsharp** interop. Prefer **`
|
|
3
|
+
This project compiles Motely to **browser WASM** with **Bootsharp** interop. Prefer **`MotelyJamlSearchBuilder`** for new code (`loadJaml`/`compileJummy` → search mode → `run`). The legacy **`MotelyWasmHost`** `start*` helpers are still exported for compatibility. Progress/results go through **`SearchEvents`**.
|
|
4
4
|
|
|
5
5
|
The **`Program`** class here is only the **runtime bootstrap** (`Main` → `RunBootsharp()`). Do not confuse it with `Motely.CLI`.
|
|
6
6
|
|
|
7
|
-
**Bootsharp glue** (`JSExport` / `JSImport` / `JSPreferences`) is isolated in **`BootsharpInterop.cs`** so you can ignore it while working in C#.
|
|
7
|
+
**Bootsharp glue** (`JSExport` / `JSImport` / `JSPreferences`) is isolated in **`BootsharpInterop.cs`** so you can ignore it while working in C#. **`MotelyJamlSearchBuilder`** (preferred search API), **`MotelyWasmHost`** (compatibility wrapper), **`MotelySingleSearchContext`** (seed inspection), and **`SearchEvents`** (progress/results) are the real API surface.
|
|
8
8
|
|
|
9
9
|
After `dotnet publish` on this project, the npm package is emitted under `motely-wasm/` (and `motely-wasm-compat/` is built by the csproj target).
|
|
10
10
|
|
|
11
|
-
**
|
|
11
|
+
**API note:** `MotelyJamlSearchBuilder` is the preferred API (`loadJaml` → `random`/`sequential`/etc → `run`), but `MotelyWasmHost` remains available for older callers (`loadJaml`, `startRandomSearch`, `stopSearch`, etc.).
|
|
12
12
|
|
|
13
13
|
**Sequential batch size:** `batchCharCount` applies only to **sequential** search (`startSequentialSearch*`, and `startConfiguredSearch` when the JAML has **no** `aesthetics`). Keyword/random/aesthetic/seed-list modes are **provider** searches and do **not** take `batchCharCount` (the engine uses fixed vector-width batches).
|
|
14
14
|
|