"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCustomProviderTestRun = void 0;
const customProviderEvaluationService_1 = require("../../services/customProviderEvaluationService");
const createCustomProviderTestRun = async (req, res) => {
    try {
        const { applicationPath, library, ...rest } = req.body;
        if (!applicationPath || !library) {
            res.status(400).json({ success: false, message: 'applicationPath and library are required' });
            return;
        }
        const result = await (0, customProviderEvaluationService_1.customProviderEvaluationService)({ applicationPath, library, ...rest });
        res.json({ success: true, ...result });
    }
    catch (error) {
        res
            .status(500)
            .json({ success: false, message: error.message || 'Error in custom provider evaluation' });
    }
};
exports.createCustomProviderTestRun = createCustomProviderTestRun;
//# sourceMappingURL=create-custom-provider-test-run.js.map