@adia-ai/a2ui-retrieval 0.4.2 → 0.4.4

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
@@ -7,6 +7,24 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
7
7
 
8
8
  _No pending changes._
9
9
 
10
+ ## [0.4.4] - 2026-05-12
11
+
12
+ ### Ride-along (no source changes)
13
+
14
+ 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.
15
+
16
+ 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.
17
+
18
+ ## [0.4.3] - 2026-05-11
19
+
20
+ ### Fixed
21
+
22
+ - **`process.env` browser-compat guard** — `feedback/dialog-recorder.js` was reading `process.env.A2UI_RETRIEVAL_DIALOG_RECORD` directly, which throws `ReferenceError: process is not defined` in browser execution paths. Now guarded by `const IS_NODE = typeof process !== 'undefined' && process.versions?.node;` before the env-lookup. Dialog recording is Node-only by design (writes to filesystem); the guard short-circuits cleanly in browser callers.
23
+
24
+ ### Lockstep
25
+
26
+ 9-package coordinated PATCH cut to v0.4.3. Internal `@adia-ai/*` dep ranges stay at `^0.4.0` (patch-cut asymmetry). Source change scoped to one file (`feedback/dialog-recorder.js`); pairs with the same fix in `@adia-ai/a2ui-compose` v0.4.3. See root [CHANGELOG.md `## [0.4.3]`](../../../CHANGELOG.md).
27
+
10
28
  ## [0.4.2] - 2026-05-11
11
29
 
12
30
  ### Ride-along (no source changes)
@@ -181,5 +181,11 @@ export async function recordTurn(record) {
181
181
  * recorder is off (the common case).
182
182
  */
183
183
  export function isRecording() {
184
- return ENABLED || !!process.env.A2UI_COMPOSE_TRACE;
184
+ // ENABLED is already gated by IS_NODE at module init. The A2UI_COMPOSE_TRACE
185
+ // bypass must guard `process` again — without it, browser callers
186
+ // (compose/core/generator.js → generate-pro.js → isRecording()) throw
187
+ // `ReferenceError: process is not defined` after a successful LLM round-trip.
188
+ if (ENABLED) return true;
189
+ const IS_NODE = typeof process !== 'undefined' && process.versions?.node;
190
+ return IS_NODE ? !!process.env.A2UI_COMPOSE_TRACE : false;
185
191
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adia-ai/a2ui-retrieval",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "AdiaUI A2UI retrieval layer — catalog lookup, intent classification, domain routing, pattern + anti-pattern matching, clarity + context assembly. Consumed by the compose engine and any A2UI-protocol tooling that needs to reason about user intent against the catalog.",
5
5
  "type": "module",
6
6
  "main": "./index.js",