/** * Spider.cloud Diagnostics Capability. * * Probes Spider.cloud connectivity with a single, cheapest-possible * request — one GET /data/credits — so the doctor command can verify a * credential authenticates without burning any credit. Unlike the * Firecrawl probe (a one-credit scrape), the credits endpoint is free, * so the probe rides the exact same transport as the Quota capability. * * Boundary rules (ARCHITECTURE.md §2): * - May import the diagnostics contract, Adapter-local config, * Adapter-local credits transport, and normalized errors. * - Must NOT import command presentation or another Provider's Adapter. */ import type { DiagnosticsCapability } from "../../capabilities/diagnostics.js"; import { type SpiderTransportDeps } from "./client.js"; export interface SpiderDiagnosticsCapabilityOptions { readonly env: NodeJS.ProcessEnv; readonly transport?: SpiderTransportDeps; } /** * Build the Spider.cloud DiagnosticsCapability. The probe performs ONE * GET /data/credits — a free authentication check, the cheapest * credible 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 createSpiderDiagnosticsCapability(options: SpiderDiagnosticsCapabilityOptions): DiagnosticsCapability; //# sourceMappingURL=diagnostics.d.ts.map