/** * MiniMax Search Adapter (DESIGN.md §5, §7, §12 — P2-04). * * Implements the real MiniMax Provider Descriptor with Search support * on top of the transitional `mmx-cli/sdk`. The Adapter owns * credentials, SDK lifecycle, Provider field mapping, and failure * normalization; shared execution owns cache and retry policy. * * Boundary rules (ARCHITECTURE.md §2): * - May import capability types, normalized errors, Provider identity * types, and the Adapter-local SDK client factory. * - Must NOT import `mmx-cli/sdk` directly (only sdk-client.ts does), * command presentation, output mode, or another Provider's Adapter. * * Field mapping (DESIGN.md §7 MiniMax mapping): * organic[].title -> title * organic[].link -> url * organic[].snippet -> summary * organic[].date -> date (optional) * * The Adapter sends ONLY the query string to `sdk.search.query`. It * NEVER sends count or unsupported controls. MiniMax rejects domain, * recency, contentSize, and location controls with * `UNSUPPORTED_OPTION` before SDK construction or credential access * (FR-012). */ import type { MiniMaxAdapterDependencies, ProviderDescriptor } from "../types.js"; import { type MiniMaxQuotaClientDeps } from "./quota-client.js"; /** * Options for the MiniMax DiagnosticsCapability. Configuration is * loaded from `env`; transport dependencies (`fetch`, timer) are the * same Adapter-local quota transport used by the quota Capability so * tests inject a single fake for both. */ export interface MiniMaxDiagnosticsCapabilityOptions extends MiniMaxQuotaClientDeps { readonly env: NodeJS.ProcessEnv; } /** * Build the MiniMax Provider Descriptor. The descriptor advertises the * Search Capability and constructs an Adapter whose `search` Capability * owns credentials, transport, Provider field mapping, and failure * normalization. Construction is side-effect-free; the transport is * invoked per Capability call. Tests pass `transport` (typically a * fake-fetch wrapper); production uses the no-argument factory which * resolves to the global `fetch` and timers inside each transport * Module. */ export declare function createMiniMaxDescriptor(dependencies?: MiniMaxAdapterDependencies): ProviderDescriptor; //# sourceMappingURL=adapter.d.ts.map