Function: serializeCatalog()
serializeCatalog(
catalog:Catalog,catalogId?:string):SerializedCatalog
Produce the JSON manifest the client should announce to the agent during channel handshake. Component entries require an attached schema so the advertised catalog can validate their props. Function entries serialize with their parameter schema and interface metadata when available.