/**
 * Provider registry for image generation models.
 *
 * To add a new provider:
 *   1. Create src/server/sac/providers/<provider>.ts
 *   2. Import { registerProvider } from './store' and call it
 *   3. Add an import for your file in this file
 */
// Providers must be imported before any registry query.
import "./seaart.js";
import "./volces.js";
export { registerProvider } from "./store.js";
import { _registry } from "./store.js";
/** Look up the provider for a given model ID. Returns undefined if unknown. */
export function getProvider(model) {
    return _registry.get(model);
}
/** All registered model IDs in registration order */
export function allModels() {
    return Array.from(_registry.keys());
}
/** All registered model IDs grouped by provider name */
export function modelsByProvider() {
    const out = new Map();
    for (const [model, def] of _registry) {
        const list = out.get(def.provider) ?? [];
        list.push(model);
        out.set(def.provider, list);
    }
    return out;
}
//# sourceMappingURL=index.js.map