(kind: HarnessKind)
| 9 | |
| 10 | /** Look up an adapter by kind. Throws on unknown kind. */ |
| 11 | export function getAdapter(kind: HarnessKind): HarnessAdapter { |
| 12 | const found = ALL.find((a) => a.kind === kind); |
| 13 | if (!found) throw new Error(`Unknown harness: ${kind}`); |
| 14 | return found; |
| 15 | } |
| 16 | |
| 17 | /** Adapters whose host binary is on PATH or at a known stock location. */ |
| 18 | export function getInstalledAdapters(): HarnessAdapter[] { |
no outgoing calls
no test coverage detected