MCPcopy
hub / github.com/anomalyco/opencode / init

Function init

packages/opencode/src/acp/agent.ts:24–30  ·  view source on GitHub ↗
({ sdk: _sdk }: { sdk: OpencodeClient })

Source from the content-addressed store, hash-verified

22import * as ACPService from "./service"
23
24export function init({ sdk: _sdk }: { sdk: OpencodeClient }) {
25 return {
26 create: (connection: AgentSideConnection) => {
27 return new Agent(ACPService.make({ sdk: _sdk, connection }))
28 },
29 }
30}
31
32export class Agent implements ACPAgent {
33 constructor(private readonly service: ACPService.Interface) {}

Callers 8

withTmpFunction · 0.50
vcs.test.tsFile · 0.50
read.test.tsFile · 0.50
lsp.test.tsFile · 0.50
write.test.tsFile · 0.50
edit.test.tsFile · 0.50
index.tsFile · 0.50
makeFunction · 0.50

Calls 1

makeMethod · 0.45

Tested by 1

withTmpFunction · 0.40