/**
 * OpenRouter App Attribution extension.
 *
 * Adds HTTP headers required by OpenRouter's app attribution system so that
 * Aexol / Spectral appears in OpenRouter rankings, analytics, and model
 * "Apps" tabs. Without these headers our usage is anonymous to OpenRouter.
 *
 * @see https://openrouter.ai/docs/app-attribution
 */
export default function openrouterAttributionExtension(ext) {
    ext.registerProvider("openrouter", {
        headers: {
            "HTTP-Referer": "https://aexol.ai",
            "X-OpenRouter-Title": "Aexol",
            "X-OpenRouter-Categories": "cli-agent,cloud-agent",
        },
    });
    process.stderr.write("[openrouter-attribution] Registered OpenRouter app attribution headers.\n");
}
