"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCustomAIApplication = isCustomAIApplication;
exports.isCustomAIUploadMode = isCustomAIUploadMode;
exports.requiresCliApplicationPath = requiresCliApplicationPath;
function isCustomAIApplication(application) {
    return application?.provider_config?.config?.custom_provider_type === 'Custom AI Application';
}
/** Upload-mode apps run on the server (Azure Sessions + stored bundle). */
function isCustomAIUploadMode(application) {
    if (!isCustomAIApplication(application)) {
        return false;
    }
    const provider = application?.provider_config?.config?.provider;
    const setupMethod = provider?.setupMethod ?? 'shell';
    return setupMethod === 'upload' && Boolean(provider?.bundleBlobUrl);
}
/** Shell-mode Custom AI requires a local file path via CLI (--applicationPath). */
function requiresCliApplicationPath(application) {
    return isCustomAIApplication(application) && !isCustomAIUploadMode(application);
}
//# sourceMappingURL=customAICliHelpers.js.map