/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * @file The adapter phase: drive each configured adapter to its own `canonical.jsonl`, or reuse the run a * previous build finished. */ import type { PathBuilder } from "path-ts"; import type { BuildStage } from "#build/types"; import { type AdapterRunManifest } from "#runner"; import type { AdapterOptions, CorpusAdapter } from "#types"; export interface AdapterPhaseOptions { adapters: readonly CorpusAdapter[]; adapterInputs: Record; corpusVersion: string; intermediateDir: PathBuilder; onProgress?: (stage: BuildStage, message: string) => void; } export interface AdapterPhaseResult { /** * One manifest per adapter that ran or was reused, in the order they were driven. */ runs: AdapterRunManifest[]; /** * Adapter ids with no entry in `adapterInputs`. */ skipped: string[]; } /** * Drive every configured adapter, reusing whatever a previous build already finished. */ export declare function runAdapterPhase(opts: AdapterPhaseOptions): Promise; //# sourceMappingURL=adapters.d.ts.map