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

Function attachSDK

packages/opencode/src/cli/cmd/run.ts:349–355  ·  view source on GitHub ↗
(dir?: string)

Source from the content-addressed store, hash-verified

347 ? ServerAuth.headers({ password: args.password, username: args.username })
348 : undefined
349 const attachSDK = (dir?: string) => {
350 return createOpencodeClient({
351 baseUrl: args.attach!,
352 directory: dir,
353 headers: attachHeaders,
354 })
355 }
356
357 const files: FilePart[] = []
358 if (args.file) {

Callers 2

executeFunction · 0.85
run.tsFile · 0.85

Calls 1

createOpencodeClientFunction · 0.90

Tested by

no test coverage detected