import aliases from "./aliases.js";
import { logger } from "./utils/logger.js";
export function resolveModelAlias(alias, provider) {
    if (!provider) {
        return alias;
    }
    const aliasEntry = aliases[alias];
    if (aliasEntry) {
        if (aliasEntry[provider.toLowerCase()]) {
            const resolved = aliasEntry[provider.toLowerCase()];
            logger.debug(`Resolved model alias '${alias}' → '${resolved}' for provider '${provider}'`);
            return resolved;
        }
    }
    logger.debug(`No alias mapping found for '${alias}' with provider '${provider}', using as-is`);
    return alias;
}
