pub fn generate_metadata(registry_root: &Path) -> Result<(), Error>Expand description
Scans the entire registry to generate optimized JSON index files.
This function is the “Build Pipeline” for Zoi registries. It:
- Chronologically assigns permanent IDs to new security advisories.
- Parses every
.pkg.luafile to extract static metadata. - Populates
packages.json(the primary index) andadvisories.json. - Enables clients to resolve packages and vulnerabilities without cloning the entire Git repository or parsing thousands of Lua scripts.