/** * Firecrawl Diagnostics Capability (firecrawl tech-plan §3, D8). * * Probes Firecrawl connectivity with a single, cheapest-possible request * — one basic /v2/scrape of a small stub URL — so the doctor command can * verify a credential authenticates without burning many credits. * * The probe intentionally avoids /team/credit-usage (rate-limit safety, * mirroring the Tavily doctor which probes with /search rather than the * throttled /usage endpoint). A basic scrape costs one credit and is * bounded by the scrape rate limit. * * Boundary rules (ARCHITECTURE.md §2): * - May import the diagnostics contract, Adapter-local config, * Adapter-local scrape transport, and normalized errors. * - Must NOT import command presentation or another Provider's Adapter. */ import type { DiagnosticsCapability } from "../../capabilities/diagnostics.js"; import { type FirecrawlTransportDeps } from "./client.js"; export interface FirecrawlDiagnosticsCapabilityOptions { readonly env: NodeJS.ProcessEnv; readonly transport?: FirecrawlTransportDeps; } /** * Build the Firecrawl DiagnosticsCapability. The probe performs ONE * /v2/scrape of a small stub URL (`formats:["markdown"]`, `proxy:"basic"`) * so it costs a single credit — the cheapest credible authentication * probe. Shared execution owns the retry policy; this transport performs * exactly one attempt per invocation. * * When `diagOptions.probe` is false, `invoke` resolves immediately without * touching the network — the doctor command skips probing unconfigured or * tools-disabled Providers before reaching this Capability. */ export declare function createFirecrawlDiagnosticsCapability(options: FirecrawlDiagnosticsCapabilityOptions): DiagnosticsCapability; //# sourceMappingURL=diagnostics.d.ts.map