Extend modality enum to support video and music, then register the non-text MiniMax models that were already declared in media_capabilities but had no concrete entries: - image-01 ($0.0035/image) - speech-2.8/2.6 hd & turbo ($60-$100 per 1M chars) - Hailuo 2.3 Fast / 2.3 / 02 video models ($0.10-$0.56 per video) - music-2.6, lyrics_generation Per-call pricing is documented in inline comments since the schema's token-based cost fields don't naturally fit per-call billing. schema.toml and scripts/validate.py both updated; the change is additive (existing modality values remain valid).
Scripts
Utility scripts for maintaining the LibreFang registry.
validate.py
Validates all TOML content files across the registry.
python scripts/validate.py
What It Checks
Per content type:
- Providers -- required fields, valid tiers, non-negative costs, no duplicate model IDs
- Agents -- required fields (name, description, module), name matches directory
- Hands -- required fields (id, name, description), valid category, [agent] section, id matches directory
- Integrations -- required fields (id, name), [transport] section, id matches filename
- Skills -- [skill] section with name, [runtime] with valid type
- Plugins -- name matches directory, [hooks] section, hook files exist
Cross-type checks:
- Routing alias collisions between agents and hands (reported as warnings)
- Cross-file duplicate model IDs within the same provider
Requirements
- Python 3.11+ (uses
tomllib) - Or Python 3.8+ with
pip install tomli
Exit Codes
0-- all checks passed1-- one or more validation errors