(sourceId)
| 132 | } |
| 133 | |
| 134 | function requireSourceById(sourceId) { |
| 135 | const source = getSourceById(sourceId); |
| 136 | |
| 137 | if (!sourceSupportsOrchestrator(source)) { |
| 138 | throw new Error(`Source '${sourceId}' is not supported by the AI orchestrator.`); |
| 139 | } |
| 140 | |
| 141 | return source; |
| 142 | } |
| 143 | |
| 144 | function formatSupportedSourceList() { |
| 145 | return getOrchestratorSources().map((source) => source.name).join(", "); |
no test coverage detected