"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractTriageInputs = void 0;
exports.findTriageWorkflows = findTriageWorkflows;
exports.evaluateTriageMatch = evaluateTriageMatch;
const discovery_1 = require("../../workflows/shared/discovery");
Object.defineProperty(exports, "extractTriageInputs", { enumerable: true, get: function () { return discovery_1.extractWorkflowInputs; } });
const cache_1 = require("./cache");
async function findTriageWorkflows(prompt) {
    return (0, discovery_1.findCompiledWorkflows)(prompt, { yamlWorkflowMap: cache_1.yamlWorkflowMap, toolDefCache: cache_1.toolDefCache }, 'mcpTriage');
}
async function evaluateTriageMatch(prompt, candidates) {
    return (0, discovery_1.evaluateWorkflowMatch)(prompt, candidates, 'mcpTriage');
}
