@adia-ai/a2ui-compose 0.5.4 → 0.5.5
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 +16 -0
- package/package.json +2 -2
- package/strategies/monolithic/_shared.js +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,22 @@ generator graph.
|
|
|
12
12
|
|
|
13
13
|
_No pending changes._
|
|
14
14
|
|
|
15
|
+
## [0.5.5] - 2026-05-14
|
|
16
|
+
|
|
17
|
+
### Changed — §179 (v0.5.5) — principled `deprecated:` yaml field
|
|
18
|
+
|
|
19
|
+
Three new yaml schema fields under each prop:
|
|
20
|
+
|
|
21
|
+
- **`deprecated`** (boolean, default `false`) — when `true`, the LLM prompt builder appends `(deprecated, do not use)` to the prop's line in CORPUS CONTEXT.
|
|
22
|
+
- **`deprecated_since`** (string) — version when deprecation was introduced.
|
|
23
|
+
- **`deprecated_reason`** (string) — human-readable migration guidance.
|
|
24
|
+
|
|
25
|
+
Build pipeline (`scripts/build/components.mjs::compileProp`) collects deprecation metadata and inlines onto the prop schema. Prompt builder (`packages/a2ui/compose/strategies/monolithic/_shared.js`) reads `v.deprecated === true` FIRST; falls back to `/deprecated/i.test(v.description)` (the v0.5.4 §167a substring detection) for back-compat. Existing §167a-tagged props continue to work without yaml changes.
|
|
26
|
+
|
|
27
|
+
Demonstrated on `Avatar.name`. Verified via `buildSystemPrompt`: `name:String[] (deprecated, do not use)` surfaces in CORPUS CONTEXT.
|
|
28
|
+
|
|
29
|
+
Commit `0379dd498`. See root CHANGELOG and journal §179 for full context.
|
|
30
|
+
|
|
15
31
|
## [0.5.4] - 2026-05-14
|
|
16
32
|
|
|
17
33
|
### Fixed — §163 transpiler prop-fidelity; catalog-driven extractor closes the harvester drop class (v0.5.4)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/a2ui-compose",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "AdiaUI A2UI compose engine
|
|
3
|
+
"version": "0.5.5",
|
|
4
|
+
"description": "AdiaUI A2UI compose engine \u2014 framework-agnostic. Takes natural-language intents + a catalog and produces A2UI protocol messages. Pairs with `@adia-ai/a2ui-retrieval` (intent classification, catalog lookup) and `@adia-ai/a2ui-validator` (schema + semantic checks).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./index.js",
|
|
@@ -307,7 +307,8 @@ KEY RULES:
|
|
|
307
307
|
// but never read here, so deprecated props (Avatar.name, Field.persist
|
|
308
308
|
// alias, etc.) looked indistinguishable from canonical props. LLM
|
|
309
309
|
// would pick e.g. <avatar-ui name="..."> instead of text="...".
|
|
310
|
-
|
|
310
|
+
// §179 (v0.5.5): principled `deprecated:` field wins; falls back to §167a substring detection for back-compat.
|
|
311
|
+
if (v.deprecated === true || (v.description && /deprecated/i.test(v.description))) desc += ' (deprecated, do not use)';
|
|
311
312
|
return desc;
|
|
312
313
|
}).join(', ') : '';
|
|
313
314
|
const events = a2uiData.events?.length ? ` events: ${a2uiData.events.join(', ')}` : '';
|
|
@@ -350,7 +351,8 @@ KEY RULES:
|
|
|
350
351
|
// but never read here, so deprecated props (Avatar.name, Field.persist
|
|
351
352
|
// alias, etc.) looked indistinguishable from canonical props. LLM
|
|
352
353
|
// would pick e.g. <avatar-ui name="..."> instead of text="...".
|
|
353
|
-
|
|
354
|
+
// §179 (v0.5.5): principled `deprecated:` field wins; falls back to §167a substring detection for back-compat.
|
|
355
|
+
if (v.deprecated === true || (v.description && /deprecated/i.test(v.description))) desc += ' (deprecated, do not use)';
|
|
354
356
|
return desc;
|
|
355
357
|
}).join(', ') : '';
|
|
356
358
|
const events = comp.events?.length ? ` events: ${comp.events.join(', ')}` : '';
|