import { SACError as CLIError, ExitCode } from "../errors.js";
import { registerProvider } from "./store.js";
// ── Model lists ──────────────────────────────────────────────────────────────
const IMAGE_MODELS = [
    'nano_banana_2',
];
// ── Image generation ─────────────────────────────────────────────────────────
registerProvider({
    provider: 'nano',
    category: 'image',
    models: IMAGE_MODELS,
    buildBody(model, prompt, flags) {
        const params = { prompt };
        if (flags.aspectRatio)
            params['aspect_ratio'] = flags.aspectRatio;
        if (flags.resolution)
            params['resolution'] = flags.resolution;
        const imageUrls = flags.imageUrls;
        if (imageUrls) {
            params['image_urls'] = Array.isArray(imageUrls) ? imageUrls : [imageUrls];
        }
        else if (flags.imageUrl) {
            params['image_urls'] = [flags.imageUrl];
        }
        return {
            model,
            dash_scope: true,
            moderation: true,
            input: [{ params }],
            metadata: {},
        };
    },
});
// suppress unused
void CLIError;
void ExitCode;
//# sourceMappingURL=nano.js.map