"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getUvBuildArgs = getUvBuildArgs;
const global_config_1 = require("../schemas/io/global-config");
/**
 * Return Docker --build-arg flags for UV index URLs configured in ~/.agentcore/config.json.
 * Returns an empty array when no custom indexes are configured.
 */
function getUvBuildArgs() {
    const config = (0, global_config_1.readGlobalConfigSync)();
    const args = [];
    if (config.uvDefaultIndex)
        args.push('--build-arg', `UV_DEFAULT_INDEX=${config.uvDefaultIndex}`);
    if (config.uvIndex)
        args.push('--build-arg', `UV_INDEX=${config.uvIndex}`);
    return args;
}
//# sourceMappingURL=build-args.js.map