import type { AdapterContext, AdapterFactory, Logger, SourceAdapter } from "@onenomad/przm-cortex-core"; import type { CortexConfig } from "../config.js"; /** * Look up an adapter factory by the short id used in wizard specs * (e.g. `github` → `@onenomad/przm-cortex-adapter-github`). The wizard registry * and the adapter registry use different keying (wizard id vs. * package name), so we map at the boundary. */ export declare function factoryByWizardId(wizardId: string): AdapterFactory | undefined; export interface AdapterRegistry { adapters: Record; shutdown(): Promise; } /** * Build the adapter registry from cortex.yaml. For each enabled adapter: * 1. Look up its factory by `package` name * 2. Validate its config block with the factory's own Zod schema * 3. Verify every `requiredSecrets` entry is in the environment * 4. Invoke `adapter.init(ctx)` * * Adapters that fail validation are logged and skipped — one bad adapter * shouldn't take down the rest. */ export declare function buildAdapterRegistry(args: { cfg: CortexConfig; env: Record; logger: Logger; buildContext: (adapterId: string, entryConfig: Record, secrets: Record) => AdapterContext; }): Promise; //# sourceMappingURL=adapters.d.ts.map