Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"""Build aggregated registry.json from individual agent directories."""

import argparse
import base64
import copy
import json
import os
Expand Down Expand Up @@ -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, []

Expand Down
4 changes: 4 additions & 0 deletions agent.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down