motely-wasm 7.0.0 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/index.mjs +55 -82
- package/jaml.schema.json +64 -30
- package/monaco/index.js +1 -1
- package/package.json +1 -1
- package/types/bindings.g.d.ts +45 -1140
package/README.md
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
# motely-wasm (NativeAOT-LLVM + Bootsharp)
|
|
2
2
|
|
|
3
|
-
This project compiles Motely to **browser WASM** with **Bootsharp** interop.
|
|
3
|
+
This project compiles Motely to **browser WASM** with **Bootsharp** interop. Prefer **`createPlan` → chain on `settings` (same as `JamlSearchBuilder` / `IMotelySearchSettings` in C#) → `runSearch`**; the `start*` helpers are optional shortcuts. 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#. **MotelyWasmHost.cs** is the real API surface.
|
|
8
|
+
|
|
7
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).
|
|
8
10
|
|
|
9
11
|
**Breaking change (vs older builds):** the exported host type was renamed from `MotelyProgram` to `MotelyWasmHost`.
|
|
10
12
|
|
|
11
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
|
+
|
|
15
|
+
**Threads:** the browser host runs search with **one** worker (`threadCount` is not a parameter). Use the CLI/TUI for configurable parallelism.
|
|
16
|
+
|
|
17
|
+
**Seed list:** `startSeedListSearch` takes **`string[]` seeds** (trimmed, empties dropped), not a CSV string.
|
|
18
|
+
|
|
19
|
+
**Cancel:** `runSearch` / each `start*` returns **`IMotelySearch`** — call **`cancel()`** on that object. There is no host-level “current search” slot.
|