/** * `@elves-ai/dsh-web-search-firecrawl`: registers a Firecrawl-backed `WebSearchProvider` * with `ctx.web`. A function/namespace plugin (NOT a default-export service): * a search provider does not own the `ctx.web` key — it registers INTO the * seam's provider registry, exactly as `@deepseek-ai/dsh-llm-deepseek` * registers an adapter into `ctx.llm`. The key is owned by `@deepseek-ai/dsh-web`. * * The provider's user-facing configuration lives in the DSH Settings page * ("Firecrawl" section). The host registers the `web-search-firecrawl` * settings namespace with the settings seam; the browser half edits it * through the plugin's own fenced `/firecrawl/api` route. Environment and * bundle-entry values remain available as fallback/composition layers. * * @module @elves-ai/dsh-web-search-firecrawl */ import type { Context } from '@deepseek-ai/cordis'; import z from '@deepseek-ai/schemastery'; import { type FirecrawlSearchProviderOptions } from './provider.ts'; import { type FirecrawlSettings } from './settings-shared.ts'; export { FIRECRAWL_DEFAULT_BASE_URL, FIRECRAWL_DEFAULT_MAX_SNIPPET_CHARS, FIRECRAWL_PROVIDER_ID, FirecrawlSearchProvider, } from './provider.ts'; export type { FirecrawlSearchProviderOptions } from './provider.ts'; export { FIRECRAWL_SETTINGS_NAMESPACE } from './settings-shared.ts'; export type { FirecrawlSettings } from './settings-shared.ts'; /** Cordis plugin name used by loader diagnostics. */ export declare const name = "web-search-firecrawl"; /** The web seam this provider registers into. */ export declare const inject: string[]; /** * Plugin config (all optional — `apply` fills env-var and constant defaults). * This same shape is registered as the `web-search-firecrawl` settings * namespace, so these values are also the composition/base layer under the * Firecrawl settings page. */ export type Config = FirecrawlSettings; export declare const Config: z; /** * Resolve one settings section into the options the already-registered * provider serves its next search with. A non-empty settings `apiKey` wins; * otherwise the provider keeps its historical `$FIRECRAWL_API_KEY` fallback. */ export declare function resolveFirecrawlOptions(ctx: Context, config: Config): FirecrawlSearchProviderOptions; /** Register the Firecrawl search provider with `ctx.web`. */ export declare function apply(ctx: Context, config?: Config): void;