function findWorkflowCategoryPaths(workflowName, categories, prefix, results) {
    for (const node of categories) {
        const path = [...prefix, node.name];
        if (node.workflows.includes(workflowName)) {
            results.push(path.join(' / '));
        }
        findWorkflowCategoryPaths(workflowName, node.children, path, results);
    }
}
export function findWorkflowCategories(workflowName, categories) {
    const results = [];
    findWorkflowCategoryPaths(workflowName, categories, [], results);
    return results;
}
//# sourceMappingURL=workflowCategoryQueries.js.map