@hyperfixi/server-bridge 7.0.0 → 7.2.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 +88 -1
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -7,6 +7,90 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [7.2.0] - 2026-10-20
11
+
12
+ `@hyperfixi/mcp-server` moves to `@lokascript/domains` 7.1.0: learn left the domains for
13
+ lokascript-learn, its only user, and the server's four learn tools went with it. A minor, though
14
+ it removes tools: there are no known users of them, and `translate_code` writes what they wrote.
15
+
16
+ ### Changed
17
+
18
+ - **`@hyperfixi/mcp-server` is on `@lokascript/domains` 7.1.0.** The domain DSLs take each
19
+ language's grammar from `@lokascript/framework/languages` (framework 7.1); the six that remain
20
+ read and write exactly as on 5.0.4 (the domains' round-trip gate: 0 worse, 0 better, 0 parses
21
+ moved). Domains 7.1.0 peers framework and intent `^7.1.0`; semantic is no longer a peer
22
+ (#1604, #1605).
23
+
24
+ ### Removed
25
+
26
+ - **`@hyperfixi/mcp-server`'s four learn tools** (`parse_learn`, `compile_learn`,
27
+ `validate_learn`, `translate_learn`), and learn in `detect_domain` and the composite tools.
28
+ learn left `@lokascript/domains` in 7.1.0 for lokascript-learn, its only user. Its commanding
29
+ sentence was `@lokascript/semantic`'s translation, which `translate_code` writes. A default
30
+ connection lists 84 tools (88 before) (#1605).
31
+
32
+ ## [7.1.0] - 2026-10-20
33
+
34
+ Each language's grammar is framework's data now (`@lokascript/framework/languages/<code>`), and
35
+ semantic's profiles extend it unchanged, so a domain can take a language's grammar without
36
+ hyperscript's. Installs get smaller: i18n and testing-framework stop pulling bundlers, browsers and
37
+ the repo's own gates.
38
+
39
+ ### Added
40
+
41
+ - **`@lokascript/framework/languages/<code>`: each language's grammar, as data.** 24 modules, and a
42
+ `languages` barrel, export what holds for a language whatever a DSL says in it: its names,
43
+ direction, script, word order, marking strategy, spacing, role markers, verb placement,
44
+ tokenization particles, the default command-verb form, the markers it writes onto their word, and
45
+ how it builds "X's Y" (framework's new `GrammarProfile` type, a superset of `GrammarProfileSlice`).
46
+ They are plain objects with no side effects, in ESM and CJS. `@lokascript/semantic`'s 24 profiles
47
+ are now that grammar with hyperscript's vocabulary over it, so a domain can take a language's
48
+ grammar without importing semantic, whose `languages/<code>` also registers hyperscript's
49
+ tokenizer and patterns. No profile changed: all 24 are deep-equal to 7.0.0's, the 27,194 parses
50
+ of the command-shape corpus are unchanged, and the domains' gate reads every sentence as before.
51
+ Semantic's ESM files are smaller (the data is framework's); its browser bundles grew by at most
52
+ 0.6 KB gzipped (0.3%) (#1602).
53
+
54
+ ### Fixed
55
+
56
+ - **`npm run add-language` runs again.** The scaffolder read `__dirname` in an ES module and threw
57
+ before writing a file. It now also writes the language's grammar to framework (`--script` sets
58
+ the writing system, default `latin`) and the profile over it (#1602).
59
+
60
+ - **`@hyperfixi/mcp-server` no longer reports a stale build when it runs from npm.** At startup it
61
+ compares each `@hyperfixi/*` / `@lokascript/*` dependency's `src/` against its `dist/`, which
62
+ catches a monorepo package edited and not rebuilt. An npm or npx install ships `src/` too, and
63
+ writes it a few milliseconds after `dist/`, so every `npx @hyperfixi/mcp-server` launch (the
64
+ hyperfixi plugin's) called five packages stale and printed `npm run build` commands for the npx
65
+ cache. The check now runs only for packages that resolve outside `node_modules` (workspace
66
+ links); the check that refuses a tool call when a `dist/` changes under the running server is
67
+ unchanged (#1599).
68
+
69
+ ### Changed
70
+
71
+ - **`@lokascript/i18n` no longer installs `vite`, `esbuild` and `happy-dom`.** They were runtime
72
+ `dependencies`, but nothing in the package imports them when it runs: the one use is a type, the
73
+ `Plugin` that `./plugins/vite` returns. So every install, `@lokascript/hyperscript-adapter`'s
74
+ optional one included, pulled a bundler and a DOM: 145 MB and 40 packages for i18n 7.0.0, against
75
+ about 74 MB and 11 without them (macOS arm64). They are devDependencies now, and `vite` is an
76
+ optional peer (`>=4.0.0`, as `@hyperfixi/vite-plugin` declares it), so the plugin's types
77
+ resolve where vite is installed (#1597).
78
+
79
+ - **`@hyperfixi/testing-framework` installs what its published files import: `diff` and `jsdom`.**
80
+ Its three entries (`.`, `./runner`, `./assertions`) import those two, and `runner` loads
81
+ `playwright` or `puppeteer` with `import()` only for a browser run. The other eleven runtime
82
+ dependencies (semantic, i18n, compilation-service, patterns-reference, vite, esbuild, happy-dom,
83
+ tsx, url-parse, and both browsers) back the repo's own gates, which are not in `dist/`: an
84
+ install was 262 MB in 116 packages, and puppeteer's install script downloaded Chrome on top
85
+ (`--ignore-scripts`, macOS arm64). Now about 28 MB in 38. `playwright` and `puppeteer` are
86
+ optional peers: install the one a browser run uses. The built files are byte-identical (#1598).
87
+
88
+ ### Removed
89
+
90
+ - **`@hyperfixi/testing-framework`'s `hyperfixi-test` and `hyperfixi-test-multilingual` bins.**
91
+ They named `dist/cli.js` and `dist/multilingual/cli.js`, which the build has never produced, so
92
+ neither command ever ran from the package (#1598).
93
+
10
94
  ## [7.0.0] - 2026-10-19
11
95
 
12
96
  Removes what 6.x deprecated or never shipped: three MCP tools that duplicated `validate_and_compile`
@@ -2132,7 +2216,10 @@ _Synchronized version release. See git history for details._
2132
2216
  - npm access token stored in GitHub Secrets
2133
2217
  - 2FA recommended for npm organization
2134
2218
 
2135
- [Unreleased]: https://github.com/codetalcott/hyperfixi/compare/v6.3.0...HEAD
2219
+ [Unreleased]: https://github.com/codetalcott/hyperfixi/compare/v7.2.0...HEAD
2220
+ [7.2.0]: https://github.com/codetalcott/hyperfixi/compare/v7.1.0...v7.2.0
2221
+ [7.1.0]: https://github.com/codetalcott/hyperfixi/compare/v7.0.0...v7.1.0
2222
+ [7.0.0]: https://github.com/codetalcott/hyperfixi/compare/v6.3.0...v7.0.0
2136
2223
  [6.3.0]: https://github.com/codetalcott/hyperfixi/compare/v6.2.0...v6.3.0
2137
2224
  [6.2.0]: https://github.com/codetalcott/hyperfixi/compare/v6.1.0...v6.2.0
2138
2225
  [6.1.0]: https://github.com/codetalcott/hyperfixi/compare/v6.0.0...v6.1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperfixi/server-bridge",
3
- "version": "7.0.0",
3
+ "version": "7.2.0",
4
4
  "description": "Extract server route contracts from hyperscript/htmx HTML and generate server-side route scaffolding",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -29,11 +29,11 @@
29
29
  "glob": "^13.0.6"
30
30
  },
31
31
  "devDependencies": {
32
- "@lokascript/domains": "^5.0.0",
33
- "@types/node": "^26.6.3",
32
+ "@lokascript/domains": "^7.1.0",
33
+ "@types/node": "^26.6.5",
34
34
  "tsup": "^9.0.0",
35
35
  "typescript": "^5.0.0",
36
- "vitest": "^5.0.2"
36
+ "vitest": "^5.0.5"
37
37
  },
38
38
  "files": [
39
39
  "dist",