Skip to content

API Reference parrot.handlers.a2ui_transforms

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.handlers.a2ui_transforms

View source

Publish catalogued A2UI transform.ref modules into STATIC_DIR (FEAT-598 M9).

Files land in STATIC_DIR/a2ui/transforms/ and are served anonymously by the existing add_static("/static/", …) route. Sync by design — call via run_in_executor from async code.

Alias ManifestEntry

Re-exported from parrot.outputs.a2ui.linked.manifest.ManifestEntry.

Alias TransformManifest

Re-exported from parrot.outputs.a2ui.linked.manifest.TransformManifest.

Function compute_sri

Return the W3C SRI string sha384-<base64> for data.

compute_sri(data: bytes) -> str

Parameter Type Default Description
data bytes

Returns: str

Alias default_manifest_path

Re-exported from parrot.outputs.a2ui.linked.manifest.default_manifest_path.

Attribute logger

Function publish_transforms

Copy <name>@<version>.js modules from source_dir, compute SRI, write + sign manifest.json.

Never deletes existing versions (retirement = deprecated: true); refuses to overwrite a published version with different bytes.

publish_transforms(source_dir: Path, *, key: str) -> TransformManifest

Parameter Type Default Description
source_dir Path Directory containing <name>@<semver>.js module files to publish.
key str The HMAC signing key (must be non-empty).

Returns: TransformManifest — The signed :class:TransformManifest now on disk.

Raises:

  • ValueError — empty key, tampered manifest, or an immutable version would change.

Alias sign_entries

Re-exported from parrot.outputs.a2ui.linked.manifest.sign_entries.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally