@adia-ai/llm 0.5.5 → 0.5.7

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/CHANGELOG.md CHANGED
@@ -3,11 +3,21 @@
3
3
  All notable changes to this package are documented here.
4
4
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
-
7
6
  ## [Unreleased]
8
7
 
9
8
  _No pending changes._
10
9
 
10
+ ## [0.5.7] - 2026-05-15
11
+
12
+ _Lockstep ride-along (no source change)._
13
+
14
+ ## [0.5.6] - 2026-05-14
15
+
16
+ ### Fixed — §190 (v0.5.6) — `loadGenerators()` resolves packages-root in both dev + prod
17
+
18
+ `server.js` learns to resolve `_packagesRoot` first-existing-wins between the dev layout (repo-relative `packages/<name>/…`) and prod layout (rsync'd `/srv/adia-ui/dist/packages/<name>/…` per `scripts/build/site.mjs`). Pre-§190 the generator imports referenced the dev path absolutely, which failed at runtime on the production VM after the §188 cutover took the LLM-gateway path live but left `/api/generate` (zettel + mcp generator imports) unresolved. The fix: cache `_packagesRoot` once, fall back across layouts, then use it for every dynamic import path. Tested locally via `node packages/llm/server.js` against both layouts; production verified by operator post-deploy.
19
+
20
+ Plus README polish noting the §188 LLM-gateway routing + the dev-vs-prod packages-root resolution. No public API change.
11
21
  ## [0.5.5] - 2026-05-14
12
22
 
13
23
  ### Removed — §188 (v0.5.5) — replace `handleLlmPassthrough` with exe.dev LLM Gateway
@@ -38,7 +48,6 @@ These existed to proxy LLM API calls from the browser to upstream providers (Ant
38
48
  These were defenses against per-key API billing drain when AdiaUI owned the API key. With subscription-billed exe.dev gateway, the subscription IS the cost cap. Per user direction, accepted.
39
49
 
40
50
  Commit `656b39dd1`. See root CHANGELOG and journal §181-§188 for the full architectural arc.
41
-
42
51
  ## [0.5.4] - 2026-05-14
43
52
 
44
53
  ### Changed — lockstep ride-along; no source changes
@@ -50,28 +59,21 @@ Tracking the v0.5.4 cycle's prop-fidelity arcs (§163 transpiler fix,
50
59
  §164 chunk re-harvest, §165 validator check #19, §166a/b/c audit-script
51
60
  family slots 12+13 + smoke shift-left): see root `CHANGELOG.md` for the
52
61
  full narrative. This package carries no source changes this cycle.
53
-
54
62
  ## [0.5.3] - 2026-05-14
55
63
 
56
64
  _No pending changes._
57
-
58
65
  ## [0.5.2] - 2026-05-13
59
66
 
60
67
  _Lockstep ride-along (no source change)._
61
-
62
-
63
68
  ## [0.5.1] - 2026-05-13
64
69
 
65
70
  _Lockstep ride-along (no source change)._
66
-
67
71
  ## [0.5.0] - 2026-05-13
68
72
 
69
73
  _Lockstep ride-along (no source change)._
70
-
71
74
  ## [0.4.9] - 2026-05-13
72
75
 
73
76
  _No pending changes._
74
-
75
77
  ## [0.4.8] - 2026-05-12
76
78
 
77
79
  ### Ride-along (no source changes)
@@ -79,7 +81,6 @@ _No pending changes._
79
81
  Lockstep PATCH cut alongside `@adia-ai/web-components@0.4.8` (§80 event-types codegen for 38 non-form primitives + §85 class-subpath script fix + §89 icons.js split + B+C+D consumer-friction infra), `@adia-ai/web-modules@0.4.8` (FEEDBACK-02 #1 `.d.ts` shipment + `composes:` ADR-0027 wiring), `@adia-ai/a2ui-compose@0.4.8` (§87 zettel `ensureBooted()` race fix + §88 free-form composition mode), `@adia-ai/a2ui-corpus@0.4.8` (catalog regen ride-along), `@adia-ai/a2ui-mcp@0.4.8` (§87 eval threshold rebaseline). Source byte-identical to v0.4.7.
80
82
 
81
83
  Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4.0` covers `0.4.x` under semver). See root [CHANGELOG.md `## [0.4.8]`](../../../CHANGELOG.md) for the cut narrative.
82
-
83
84
  ## [0.4.7] - 2026-05-12
84
85
 
85
86
  ### Ride-along (no source changes)
@@ -87,19 +88,16 @@ Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4
87
88
  Lockstep PATCH cut alongside `@adia-ai/web-components@0.4.7` (§74 `.d.ts` codegen for 73 non-form primitives + §77 non-side-effect `class` subpath per component + class.js helper extractions in agent + toolbar primitives), `@adia-ai/web-modules@0.4.7`, `@adia-ai/a2ui-compose@0.4.7` (§72 `getComponentCatalog()` reads canonical catalog), `@adia-ai/a2ui-corpus@0.4.7` (§72 `corpus/patterns/` + `corpus/compositions/` retired from disk + tarball — v0.4.6 §65 carry-over closed), `@adia-ai/a2ui-mcp@0.4.7`, `@adia-ai/a2ui-retrieval@0.4.7` (§72 vocab reads canonical catalog + dead pattern-embeddings retired). Source byte-identical to v0.4.6.
88
89
 
89
90
  Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4.0` covers `0.4.x` under semver). See root [CHANGELOG.md `## [0.4.7]`](../../../CHANGELOG.md) for the cut narrative.
90
-
91
91
  ## [0.4.6] - 2026-05-12
92
92
 
93
93
  ### Changed — README currency sweep
94
94
 
95
95
  - **`README.md`** — currency + consumer-guide sweep aligned with v0.4.6 [Unreleased] (commit `c94374c9`). Doc-only; no API change.
96
-
97
96
  ## [0.4.5] - 2026-05-12
98
97
 
99
98
  ### Changed — doc-comment refresh (§54)
100
99
 
101
100
  - **`models.js`** — header docstring path-rename `apps/genui/gen-ui-ux/` → `apps/genui/app/factory-chat/`. Cross-doc sweep from the §54 GenUI overhaul rename arc. No API change.
102
-
103
101
  ## [0.4.4] - 2026-05-12
104
102
 
105
103
  ### Ride-along (no source changes)
@@ -107,7 +105,6 @@ Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4
107
105
  Lockstep PATCH cut alongside `@adia-ai/web-components@0.4.4` (14 yaml gap closures from corpus simplification arc), `@adia-ai/a2ui-runtime@0.4.4` (registry expansion +27 web-modules + renderer kebab-case fix), `@adia-ai/a2ui-compose@0.4.4` (composition-library rename + transpiler `<a>` → Link), `@adia-ai/a2ui-corpus@0.4.4` (corpus simplification arc §36–§51), `@adia-ai/a2ui-mcp@0.4.4` (`get_fragment` tool retirement). Source byte-identical to v0.4.3.
108
106
 
109
107
  Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4.0` covers `0.4.x` under semver). See root [CHANGELOG.md `## [0.4.4]`](../../../CHANGELOG.md) for the cut narrative.
110
-
111
108
  ## [0.4.3] - 2026-05-11
112
109
 
113
110
  ### Added
@@ -119,7 +116,6 @@ Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4
119
116
  Lockstep PATCH cut alongside `@adia-ai/web-components@0.4.3` (input-ui type=number locale + thousands grouping + hold-to-repeat) + `@adia-ai/a2ui-compose@0.4.3` + `@adia-ai/a2ui-retrieval@0.4.3` (process.env browser-compat fix) + `@adia-ai/a2ui-corpus@0.4.3` (catalog regen + chunks re-harvest with new settings-appearance pattern). Apart from the `llm-bridge.js` addition above, source byte-identical to v0.4.2.
120
117
 
121
118
  Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4.0` covers `0.4.x` under semver). See root [CHANGELOG.md `## [0.4.3]`](../../CHANGELOG.md) for the cut narrative.
122
-
123
119
  ## [0.4.2] - 2026-05-11
124
120
 
125
121
  ### Ride-along (no source changes)
@@ -127,7 +123,6 @@ Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4
127
123
  Lockstep PATCH cut alongside `@adia-ai/web-components@0.4.2` (`<input-ui type="number">` rewrite drops native `<input type=number>` wrapping) + `@adia-ai/web-modules@0.4.2` (`<editor-sidebar>` grid-track width-mirror fix). Source byte-identical to v0.4.1.
128
124
 
129
125
  Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4.0` covers `0.4.x` under semver). See root [CHANGELOG.md `## [0.4.2]`](../../../CHANGELOG.md) for the cut narrative.
130
-
131
126
  ## [0.4.1] - 2026-05-10
132
127
 
133
128
  ### Ride-along (no source changes)
@@ -135,7 +130,6 @@ Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry — `^0.4
135
130
  Lockstep PATCH cut alongside `@adia-ai/web-modules@0.4.1` (simple cluster) + `@adia-ai/a2ui-validator@0.4.1` (Phase 3 foundation) + `@adia-ai/a2ui-corpus@0.4.1` (fragment metrics reconciliation). Source byte-identical to v0.4.0.
136
131
 
137
132
  Internal `@adia-ai/*` dep ranges bumped from `^0.4.0` to `^0.4.1`. See root [CHANGELOG.md `## [0.4.1]`](../../CHANGELOG.md) for the cut narrative.
138
-
139
133
  ## [0.4.0] - 2026-05-10
140
134
 
141
135
  ### Ride-along (no source changes)
@@ -143,25 +137,21 @@ Internal `@adia-ai/*` dep ranges bumped from `^0.4.0` to `^0.4.1`. See root [CHA
143
137
  Lockstep MINOR cut alongside `@adia-ai/web-modules@0.4.0` (ADR-0024 legacy shell shapes retired). Source byte-identical to v0.3.6.
144
138
 
145
139
  Internal `@adia-ai/*` dep ranges bumped from `^0.3.0` to `^0.4.0`. See root [CHANGELOG.md `## [0.4.0]`](../../CHANGELOG.md) for the cut narrative.
146
-
147
140
  ## [0.3.6] - 2026-05-10
148
141
 
149
142
  ### Ride-along (no source changes)
150
143
 
151
144
  Lockstep version bump only — source byte-identical to v0.3.5. Internal `@adia-ai/*` dep ranges remain at `^0.3.0`. See root [CHANGELOG.md `## [0.3.6]`](../../CHANGELOG.md) for the cut narrative.
152
-
153
145
  ## [0.3.5] - 2026-05-07
154
146
 
155
147
  ### Ride-along (no source changes)
156
148
 
157
149
  Lockstep version bump only — source byte-identical to v0.3.4. Internal `@adia-ai/*` dep ranges remain at `^0.3.0`. See root [CHANGELOG.md `## [0.3.5]`](../../CHANGELOG.md) for the cut narrative.
158
-
159
150
  ## [0.3.4] - 2026-05-07
160
151
 
161
152
  ### Ride-along (no source changes)
162
153
 
163
154
  Lockstep version bump only — source byte-identical to v0.3.3. Internal `@adia-ai/*` dep ranges remain at `^0.3.0`. See root [CHANGELOG.md `## [0.3.4]`](../../CHANGELOG.md) for the cut narrative.
164
-
165
155
  ## [0.3.3] - 2026-05-07
166
156
 
167
157
  **Lockstep cut.** All 9 published `@adia-ai/*` packages now share version `0.3.3`, governed by [`docs/specs/package-architecture.md` § 15](../../../docs/specs/package-architecture.md#15-versioning-policy). Internal `@adia-ai/*` ranges stay at `^0.3.0` (patch-cut asymmetry — caret floats `0.3.x`).
@@ -202,7 +192,6 @@ Lockstep version bump only — source byte-identical to v0.3.3. Internal `@adia-
202
192
  - `adapters/client.test.js` (4) — createClient defaults + override
203
193
  - `llm-stub.test.js` (8) — StubLLMAdapter contract for free-tier evals
204
194
  - New `npm run test:llm` script for package-scoped runs.
205
-
206
195
  ## [0.3.2] - 2026-05-06
207
196
 
208
197
  **9-package lockstep patch cut to v0.3.2.** All lockstep members share
@@ -217,7 +206,6 @@ version only.
217
206
  ### Changed
218
207
 
219
208
  - `version`: `0.3.1` → `0.3.2`.
220
-
221
209
  ## [0.3.1] - 2026-05-06
222
210
 
223
211
  **9-package lockstep patch cut.** All 9 published `@adia-ai/*` packages bump 0.3.0 → 0.3.1 per [`docs/specs/package-architecture.md` § 15](../../docs/specs/package-architecture.md#15-versioning-policy). Internal `@adia-ai/*` dep ranges remain at `^0.3.0` (covers `0.3.1` under semver — patch-cut asymmetry).
@@ -228,7 +216,6 @@ This package itself ships **no source changes** in v0.3.1. The cut bumps version
228
216
 
229
217
  - `version`: `0.3.0` → `0.3.1`.
230
218
  - Internal `@adia-ai/*` dep ranges: unchanged at `^0.3.0` (covers `0.3.1` under semver — patch-cut asymmetry).
231
-
232
219
  ## [0.3.0] - 2026-05-05
233
220
 
234
221
  **Initial release as the 9th `@adia-ai/*` lockstep package.** Joins the lockstep at the cut version. All 9 published `@adia-ai/*` packages now share one version, governed by [`docs/specs/package-architecture.md` § 15](../../docs/specs/package-architecture.md#15-versioning-policy).
package/llm-stub.js CHANGED
@@ -55,7 +55,7 @@ export class StubLLMAdapter {
55
55
  return [
56
56
  { id: 'root', component: 'Card', children: ['hdr', 'sec'] },
57
57
  { id: 'hdr', component: 'Header', children: ['title'] },
58
- { id: 'title', component: 'Text', variant: 'h3', textContent: 'Generated UI' },
58
+ { id: 'title', component: 'Text', variant: 'heading', textContent: 'Generated UI' },
59
59
  { id: 'sec', component: 'Section', children: ['col'] },
60
60
  { id: 'col', component: 'Column', children: ['desc'] },
61
61
  { id: 'desc', component: 'Text', variant: 'body', textContent: intent || 'No intent provided' },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adia-ai/llm",
3
- "version": "0.5.5",
4
- "description": "Provider-agnostic LLM client \u2014 anthropic / openai / gemini adapters with a unified chat() + streamChat() facade. Used by AdiaUI's chat-shell and the A2UI generation pipeline; works in browser (with proxyUrl) and Node.",
3
+ "version": "0.5.7",
4
+ "description": "Provider-agnostic LLM client anthropic / openai / gemini adapters with a unified chat() + streamChat() facade. Used by AdiaUI's chat-shell and the A2UI generation pipeline; works in browser (with proxyUrl) and Node.",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./index.js",