motely-wasm 23.3.0 → 24.0.0
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
CHANGED
|
@@ -36,7 +36,7 @@ await bootsharp.boot();
|
|
|
36
36
|
|
|
37
37
|
## Parse and validate JAML
|
|
38
38
|
|
|
39
|
-
Use `fromYaml` or `fromJson` once, then pass the returned `JamlConfig` to analyzer/search calls. Invalid filters fail loudly
|
|
39
|
+
Use `fromYaml` or `fromJson` once, then pass the returned `JamlConfig` to analyzer/search calls. Invalid filters fail loudly, and unknown keys raise errors too, so every mistake surfaces at parse time.
|
|
40
40
|
|
|
41
41
|
```js
|
|
42
42
|
const jaml = MotelyJaml.fromYaml(`
|
|
@@ -124,7 +124,7 @@ MotelyJaml.canonicalizeLine("Showman in antes 1, 2"); // "Showman in ant
|
|
|
124
124
|
|
|
125
125
|
## Vocabulary
|
|
126
126
|
|
|
127
|
-
`MotelyJaml.listItems(kind, query)` serves the real engine vocabulary — jokers, vouchers, tags, bosses, and the rest — for autocomplete and agent grounding. Names come straight from the engine enums, so
|
|
127
|
+
`MotelyJaml.listItems(kind, query)` serves the real engine vocabulary — jokers, vouchers, tags, bosses, and the rest — for autocomplete and agent grounding. Names come straight from the engine enums, so the vocabulary stays in lockstep with the engine by construction.
|
|
128
128
|
|
|
129
129
|
```js
|
|
130
130
|
MotelyJaml.listItems("joker", "lucky"); // ["LuckyCat", ...] — case-insensitive substring match
|
|
@@ -152,7 +152,7 @@ npm run serve # hand-drive the test UI at http://127.0.0.1:4173/
|
|
|
152
152
|
npm run pack:check
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
The test UI (`testui/index.html`) is a plain ES-module page with a CodeMirror 6 editor: live engine-driven lint and completion while you type, a Jimmolate filter box compiled straight into the browser search, and a results table — feedback is continuous,
|
|
155
|
+
The test UI (`testui/index.html`) is a plain ES-module page with a CodeMirror 6 editor: live engine-driven lint and completion while you type, a Jimmolate filter box compiled straight into the browser search, and a results table — feedback is continuous — live linting validates every keystroke, which is why the UI stays button-free. The Playwright specs in `tests-ui/` prove the package where UX lives: a real browser.
|
|
156
156
|
|
|
157
157
|
Releasing, from `Motely.Wasm/`: sync `"version"` in `package.json` to `<MotelyVersion>` in the repo-root `Directory.Packages.props`, run `npm test` and `npm run test:ui` green, then `npm publish`.
|
|
158
158
|
|