MCPcopy Create free account
hub / github.com/cortexkit/magic-context / getAdapter

Function getAdapter

packages/cli/src/adapters/index.ts:11–15  ·  view source on GitHub ↗
(kind: HarnessKind)

Source from the content-addressed store, hash-verified

9
10/** Look up an adapter by kind. Throws on unknown kind. */
11export 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. */
18export function getInstalledAdapters(): HarnessAdapter[] {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected