()
| 436 | } |
| 437 | |
| 438 | export const getLoadedAgentsData = (): { |
| 439 | agents: LocalAgentInfo[] |
| 440 | agentsDir: string |
| 441 | } | null => { |
| 442 | const agents = loadLocalAgents() |
| 443 | const agentsDir = findAgentsDirectory() |
| 444 | |
| 445 | if (!agentsDir || !agents.length) { |
| 446 | return null |
| 447 | } |
| 448 | |
| 449 | return { agents, agentsDir } |
| 450 | } |
| 451 | |
| 452 | // ============================================================================ |
| 453 | // Testing utilities |
no test coverage detected