/** * OpenRouter implementation of `ActionAdvisor`. Default model is * `google/gemini-2.5-flash` per the design doc; any * vision-capable OpenAI-compatible model OpenRouter exposes will work * by overriding `model`. * * Soft-failure protocol: this provider returns `null` on every recoverable * problem (HTTP non-2xx, malformed JSON, missing fields, USD budget * exhausted). The crawler treats `null` as "no opinion, fall back to * heuristic". The provider does not throw on bad model output — * exceptions only escape on programmer errors (e.g. asset missing). */ import type { ActionAdvisor } from "./types.js"; export interface OpenRouterAdvisorOptions { apiKey: string; /** Default: "google/gemini-2.5-flash". */ model?: string; /** Default: "https://openrouter.ai/api/v1". */ baseUrl?: string; /** Override fetch for tests. Default: globalThis.fetch. */ fetch?: typeof globalThis.fetch; /** Cumulative USD ceiling. After this the advisor returns null without hitting the network. */ budgetUsd?: number; } export declare function openRouterAdvisor(opts: OpenRouterAdvisorOptions): ActionAdvisor; //# sourceMappingURL=openrouter.d.ts.map