diff --git a/.github/workflows/build_registry.py b/.github/workflows/build_registry.py index 4d595bc0..404443eb 100644 --- a/.github/workflows/build_registry.py +++ b/.github/workflows/build_registry.py @@ -2,6 +2,7 @@ """Build aggregated registry.json from individual agent directories.""" import argparse +import base64 import copy import json import os @@ -513,6 +514,9 @@ def process_entry( f" - {e}" for e in icon_errors ] entry["icon"] = f"{base_url}/{entry_id}.svg" + entry["icon_data"] = ( + "data:image/svg+xml;base64," + base64.b64encode(icon_path.read_bytes()).decode() + ) return entry, [] diff --git a/agent.schema.json b/agent.schema.json index 3f2303f4..0bb56bd0 100644 --- a/agent.schema.json +++ b/agent.schema.json @@ -51,6 +51,10 @@ "type": "string", "description": "Icon URL (set automatically by the build from the required icon.svg file)" }, + "icon_data": { + "type": "string", + "description": "Icon as a base64-encoded data URI (set automatically by the build from the required icon.svg file)" + }, "distribution": { "type": "object", "minProperties": 1,