/**
 * CliConfigAdapter — resolves pipeline config from Commander CLI flags.
 *
 * This is the default adapter — it wraps the existing option resolution
 * pipeline: PipelineCliOptions → computeResolvedOptions → mapToResolvedConfig.
 *
 * @see packages/eval/src/commands/pipeline-action.ts — underlying implementation
 */
import { computeResolvedOptions } from "../../commands/pipeline-action.js";
import { mapToResolvedConfig } from "../../orchestration/build-app-context.js";
export class CliConfigAdapter {
    cliOpts;
    rootDir;
    label = "CLI flags";
    constructor(cliOpts, rootDir) {
        this.cliOpts = cliOpts;
        this.rootDir = rootDir;
    }
    async resolve() {
        const resolved = computeResolvedOptions(this.cliOpts);
        return mapToResolvedConfig(resolved, this.rootDir);
    }
}
