MCPcopy Create free account
hub / github.com/anomalyco/opencode / configure

Function configure

packages/opencode/src/control-plane/adapters/worktree.ts:31–44  ·  view source on GitHub ↗
(info, context)

Source from the content-addressed store, hash-verified

29 name: "Worktree",
30 description: "Create a git worktree",
31 async configure(info, context) {
32 const { AppRuntime, Worktree } = await loadWorktree()
33 const next = await AppRuntime.runPromise(
34 provideContext(
35 Worktree.Service.use((svc) => svc.makeWorktreeInfo({ detached: true })),
36 context,
37 ),
38 )
39 return {
40 ...info,
41 name: next.name,
42 directory: next.directory,
43 }
44 },
45 async create(info, _env, _from, context) {
46 const { AppRuntime, Worktree } = await loadWorktree()
47 const config = decodeWorktreeConfig(info)

Callers

nothing calls this directly

Calls 3

loadWorktreeFunction · 0.85
provideContextFunction · 0.85
useMethod · 0.45

Tested by

no test coverage detected