(category)
| 103 | } |
| 104 | |
| 105 | const addException = (category) => { |
| 106 | let nodes = [] |
| 107 | if (category) { |
| 108 | const nodeNames = exceptionsForAgentCanvas[category] || [] |
| 109 | nodes = nodesData.filter((nd) => nd.category === category && nodeNames.includes(nd.name)) |
| 110 | } else { |
| 111 | for (const category in exceptionsForAgentCanvas) { |
| 112 | const nodeNames = exceptionsForAgentCanvas[category] |
| 113 | nodes.push(...nodesData.filter((nd) => nd.category === category && nodeNames.includes(nd.name))) |
| 114 | } |
| 115 | } |
| 116 | return nodes |
| 117 | } |
| 118 | |
| 119 | // Fuzzy search utility function that calculates similarity score |
| 120 | const fuzzyScore = (searchTerm, text) => { |
no outgoing calls
no test coverage detected