@adia-ai/a2ui-retrieval 0.5.3 → 0.5.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 +12 -0
- package/component-catalog.js +24 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
|
|
7
7
|
|
|
8
8
|
_No pending changes._
|
|
9
9
|
|
|
10
|
+
## [0.5.4] - 2026-05-14
|
|
11
|
+
|
|
12
|
+
### Changed — lockstep ride-along; no source changes
|
|
13
|
+
|
|
14
|
+
`version`: `0.5.3` → `0.5.4`. Source byte-identical to `0.5.3`.
|
|
15
|
+
Tarball changes: none.
|
|
16
|
+
|
|
17
|
+
Tracking the v0.5.4 cycle's prop-fidelity arcs (§163 transpiler fix,
|
|
18
|
+
§164 chunk re-harvest, §165 validator check #19, §166a/b/c audit-script
|
|
19
|
+
family slots 12+13 + smoke shift-left): see root `CHANGELOG.md` for the
|
|
20
|
+
full narrative. This package carries no source changes this cycle.
|
|
21
|
+
|
|
10
22
|
## [0.5.3] - 2026-05-14
|
|
11
23
|
|
|
12
24
|
_No pending changes._
|
package/component-catalog.js
CHANGED
|
@@ -62,6 +62,30 @@ async function _loadNode() {
|
|
|
62
62
|
} catch {
|
|
63
63
|
// No .a2ui.json for this component — skip
|
|
64
64
|
}
|
|
65
|
+
// §172 (v0.5.4): also pick up SIBLING .a2ui.json files in the same
|
|
66
|
+
// component dir. Some components live as sibling files inside a
|
|
67
|
+
// parent's folder (e.g. <chat-input-ui> in components/chat-thread/).
|
|
68
|
+
// Pre-§172 these were invisible to the retrieval catalog +
|
|
69
|
+
// system-prompt's getComponentData() lookup, causing the LLM to emit
|
|
70
|
+
// them without schema awareness (e.g. the 2026-05-14 redundant-send-
|
|
71
|
+
// button regression on ChatInput). The build scanner gained the same
|
|
72
|
+
// sibling-discovery treatment in `scripts/build/components.mjs`.
|
|
73
|
+
try {
|
|
74
|
+
const sibs = await fs.readdir(path.join(componentsDir, compEntry.name), { withFileTypes: true });
|
|
75
|
+
for (const s of sibs) {
|
|
76
|
+
if (!s.isFile() || !s.name.endsWith('.a2ui.json')) continue;
|
|
77
|
+
if (s.name === `${compEntry.name}.a2ui.json`) continue; // already loaded
|
|
78
|
+
try {
|
|
79
|
+
const raw = await fs.readFile(path.join(componentsDir, compEntry.name, s.name), 'utf8');
|
|
80
|
+
const data = JSON.parse(raw);
|
|
81
|
+
if (data?.title) _componentData.set(data.title, data);
|
|
82
|
+
} catch {
|
|
83
|
+
// skip malformed sibling sidecar
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
} catch {
|
|
87
|
+
// skip on read error
|
|
88
|
+
}
|
|
65
89
|
}
|
|
66
90
|
}
|
|
67
91
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/a2ui-retrieval",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.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",
|