"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractWorkflowInputs = void 0;
exports.findCompiledWorkflows = findCompiledWorkflows;
exports.evaluateWorkflowMatch = evaluateWorkflowMatch;
const discovery_1 = require("../../shared/discovery");
Object.defineProperty(exports, "extractWorkflowInputs", { enumerable: true, get: function () { return discovery_1.extractWorkflowInputs; } });
const caches_1 = require("./caches");
async function findCompiledWorkflows(prompt) {
    return (0, discovery_1.findCompiledWorkflows)(prompt, { yamlWorkflowMap: caches_1.yamlWorkflowMap, toolDefCache: caches_1.toolDefCache }, 'mcpQuery');
}
async function evaluateWorkflowMatch(prompt, candidates) {
    return (0, discovery_1.evaluateWorkflowMatch)(prompt, candidates, 'mcpQuery');
}
