import path from "node:path";
export function resolveEvalCliTarget(input) {
    if (input.evalId !== ".") {
        return {
            sourceDir: path.resolve(input.sourceDir ?? process.cwd()),
            evalId: input.evalId
        };
    }
    const evalDir = path.resolve(input.sourceDir ?? process.cwd());
    return {
        sourceDir: path.dirname(evalDir),
        evalId: path.basename(evalDir)
    };
}
