@render-policy/a2ui 0.1.5 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +7 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -71,7 +71,9 @@ const markdown = createA2uiMarkdownRenderer({ guard }); // share the guard with
71
71
  ```
72
72
 
73
73
  This is the compatibility path, and it is weaker than a fragment: the HTML is serialized here and
74
- parsed again by the renderer. Where you render `Text` yourself, use `guard.renderText()`.
74
+ parsed again by the renderer. Where you render `Text` yourself, use `guard.renderText()`, or the
75
+ `Text` and `Image` components of [`@render-policy/react/a2ui`](../react#a2ui-text-and-image) and
76
+ [`@render-policy/angular/a2ui`](../angular#a2ui-text-and-image), which are built on the guard.
75
77
 
76
78
  ## Proofs
77
79
 
@@ -81,5 +83,7 @@ carries Markdown images, raw HTML and links; a button calls `openUrl('javascript
81
83
  no request reaches a host outside the allowlist, the token assembled by `formatString` never leaves,
82
84
  and nothing opens. The same messages without the guard are the control: they make those requests.
83
85
 
84
- Not covered yet: a static scan of A2UI messages for literal hazards (planned as `mcp-app-lint`
85
- rules), and A2UI cases in the evil-Markdown corpus. A2UI v1.0 follows when that version is stable.
86
+ For CI, [`mcp-app-lint --a2ui`](../mcp-app-lint#a2ui-rules) scans recorded A2UI message streams
87
+ for the same hazards before anything renders. The evil-Markdown corpus has 24 A2UI cases
88
+ ([`corpus/evil-a2ui.json`](../../corpus/evil-a2ui.json)) that any A2UI renderer can run through a
89
+ corpus adapter. A2UI v1.0 follows when that version is stable.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@render-policy/a2ui",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Render-policy checks for A2UI (v0.9) surfaces: image, media, icon and openUrl values checked after data binding, and the catalog's Text contract (no HTML, images or links) enforced.",
5
5
  "license": "MIT",
6
6
  "type": "module",