@hyperfixi/behaviors 5.1.0 → 6.1.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +81 -1
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -7,6 +7,84 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [6.1.0] - 2026-10-18
11
+
12
+ One validator and one translator: MCP `validate_and_compile` accepts the English the engine reads
13
+ and warns `NAME_COLLISION`, and `validate_hyperscript` and `translate_hyperscript` are deprecated for
14
+ 7.0. `@hyperfixi/vite-plugin`'s `slavic` and `south-asian` regions load their languages.
15
+
16
+ ### Added
17
+
18
+ - **`@lokascript/compilation-service`: `validate` warns `NAME_COLLISION`** on foreign input whose
19
+ variable is spelled like a word of its own language (es `si` is also `if`), with the rename
20
+ semantic's finder suggests: the one check MCP `validate_hyperscript` made that `validate_and_compile`
21
+ did not, with its wording and its confidence floor (#1568).
22
+ - **`@lokascript/compilation-service`: a README** (#1570). `files` listed one, but the package had
23
+ none.
24
+
25
+ ### Deprecated
26
+
27
+ - **`@hyperfixi/mcp-server`: `validate_hyperscript` and `translate_hyperscript`, removed in 7.0**
28
+ (#1569).
29
+ Measured 2026-10-18 on 6.0.0, through the server:
30
+ - `translate_hyperscript` returns `translate_code`'s text on 471 of 471 pairs, with the same 21
31
+ refusals; `translate_code` adds a fidelity `verification` and `NAME_COLLISION` warnings.
32
+ - On 672 inputs `validate_hyperscript` caught nothing `validate_and_compile` missed, and every
33
+ warning only it gave was a false alarm (a fixed list of 34 event names; an if/end count). Its one
34
+ useful check, `NAME_COLLISION`, is in `validate_and_compile` now.
35
+
36
+ Both still work. Their descriptions start "Deprecated", and each result carries a second text block
37
+ naming the replacement. The skills, the mcp-server README, MIGRATION.md and the LLM-tool checklist
38
+ name only `validate_and_compile` and `translate_code`. The lokascript-multilingual skill had called
39
+ `translate_hyperscript` keyword substitution that does not reorder words, which was not true.
40
+
41
+ ### Fixed
42
+
43
+ - **`@lokascript/compilation-service`: `validate` (MCP `validate_and_compile`) no longer rejects
44
+ English the engine reads.** Of the 1,128 command-shape cases `@hyperfixi/engine` reads, it
45
+ rejected 90:
46
+ - every behavior definition (a `BehaviorNode` keeps its name as a field, and the schema check read
47
+ it as a missing role; this also failed behaviors in every other language);
48
+ - 73 parses under semantic's default confidence bar (`init`, `when`, `def`, `live`, bare `hide`, …);
49
+ - a quoted event name semantic does not read, and `wait for <event>`.
50
+
51
+ For natural-language English the engine's parse now decides `ok`, and semantic's doubts come back
52
+ as warnings that say the IR may leave part of the code out. A request that sets `confidence`
53
+ keeps them as errors, as does foreign input, which runs as semantic's translation. On the agent
54
+ bench every correct rejection was already the engine's (16 of 16), so none moved.
55
+ testing-framework's `validate-agrees-with-engine.test.ts` holds the 1,128 at 0 rejected (#1566).
56
+
57
+ - **`@hyperfixi/vite-plugin`: `region: 'slavic'` and `region: 'south-asian'` load their languages**
58
+ (#1567).
59
+ Both were in the option's type and the README's language list, but the expansion had a
60
+ hand-written case per region and none for these two, so they loaded English alone. Regions now
61
+ expand from `REGIONS` itself, and the README's region table lists both. The debug size table
62
+ (`SEMANTIC_BUNDLE_SIZES`, January 2025) is re-measured by a new
63
+ `scripts/measure-semantic-sizes.ts`: semantic's core plus one language is ~163–175 KB gzipped,
64
+ not the ~14–20 KB it claimed (`all` ~383 KB, not ~61 KB).
65
+
66
+ ## [6.0.0] - 2026-10-18
67
+
68
+ Removes `@lokascript/compilation-service`'s test and component generation, deprecated in 5.1.0. For
69
+ every other package 6.0 is a renumber: `@lokascript/domains` 5.0.1+ accepts it.
70
+
71
+ ### Removed (BREAKING)
72
+
73
+ - **`@lokascript/compilation-service`: test and component generation** (deprecated in #1560).
74
+ Gone: `generateTests`, `generateComponent`, `registerTestRenderer`, `registerComponentRenderer`,
75
+ `PlaywrightRenderer`, `ReactRenderer`, `VueRenderer`, `SvelteRenderer` and their types,
76
+ `ServiceOptions.testRenderers` / `componentRenderers`, the HTTP routes `/generate-tests` and
77
+ `/generate-component`, and `generate()`'s react, vue and svelte targets (it answers
78
+ `UNKNOWN_TARGET`; `intent-element` stays). `@hyperfixi/mcp-server` drops the `generate_tests` and
79
+ `generate_component` tools: 96 defined, 91 listed by default (98, 93). The operation extractor
80
+ stays, behind `diff`; its per-operation tests now run through `/diff`. MIGRATION.md has the 6.0
81
+ table.
82
+
83
+ ### Changed
84
+
85
+ - **`@hyperfixi/mcp-server`: on `@lokascript/domains` 5.0.1**, which peers framework, semantic and
86
+ intent `^5.0.0 || ^6.0.0` (lokascript-domains #52, #53): the bridge that lets 6.0.0 publish.
87
+
10
88
  ## [5.1.0] - 2026-10-18
11
89
 
12
90
  Deprecates `@lokascript/compilation-service`'s test and component generation, which 6.0 removes;
@@ -1921,7 +1999,9 @@ _Synchronized version release. See git history for details._
1921
1999
  - npm access token stored in GitHub Secrets
1922
2000
  - 2FA recommended for npm organization
1923
2001
 
1924
- [Unreleased]: https://github.com/codetalcott/hyperfixi/compare/v5.1.0...HEAD
2002
+ [Unreleased]: https://github.com/codetalcott/hyperfixi/compare/v6.1.0...HEAD
2003
+ [6.1.0]: https://github.com/codetalcott/hyperfixi/compare/v6.0.0...v6.1.0
2004
+ [6.0.0]: https://github.com/codetalcott/hyperfixi/compare/v5.1.0...v6.0.0
1925
2005
  [5.1.0]: https://github.com/codetalcott/hyperfixi/compare/v5.0.0...v5.1.0
1926
2006
  [5.0.0]: https://github.com/codetalcott/hyperfixi/compare/v4.8.0...v5.0.0
1927
2007
  [4.8.0]: https://github.com/codetalcott/hyperfixi/compare/v4.7.0...v4.8.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperfixi/behaviors",
3
- "version": "5.1.0",
3
+ "version": "6.1.0",
4
4
  "description": "Reusable hyperscript behaviors for @hyperfixi/engine (hyperfixi-hs.js) and upstream _hyperscript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -114,10 +114,10 @@
114
114
  "test:check": "VITEST_QUIET=1 bash ../../scripts/vitest-run.sh --reporter=dot"
115
115
  },
116
116
  "peerDependencies": {
117
- "@hyperfixi/engine": "^5.1.0"
117
+ "@hyperfixi/engine": "^6.1.0"
118
118
  },
119
119
  "devDependencies": {
120
- "@hyperfixi/engine": "^5.1.0",
120
+ "@hyperfixi/engine": "^6.1.0",
121
121
  "tsup": "^8.0.0",
122
122
  "typescript": "^5.0.0",
123
123
  "vitest": "^5.0.2"