MCPcopy Index your code
hub / github.com/anomalyco/opencode / adapter

Function adapter

packages/opencode/test/control-plane/adapters.test.ts:18–34  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

16}
17
18function adapter(dir: string) {
19 return {
20 name: dir,
21 description: dir,
22 configure(input: WorkspaceInfo) {
23 return input
24 },
25 async create() {},
26 async remove() {},
27 target() {
28 return {
29 type: "local" as const,
30 directory: dir,
31 }
32 },
33 }
34}
35
36describe("control-plane/adapters", () => {
37 test("isolates custom adapters by project", async () => {

Callers 5

adapters.test.tsFile · 0.85
readFunction · 0.85
writeFunction · 0.85
removeFunction · 0.85
listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected