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

Function remove

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

Source from the content-addressed store, hash-verified

77 }))
78 },
79 async remove(info, context) {
80 const { AppRuntime, Worktree } = await loadWorktree()
81 const config = decodeWorktreeConfig(info)
82 await AppRuntime.runPromise(
83 provideContext(
84 Worktree.Service.use((svc) => svc.remove({ directory: config.directory })),
85 context,
86 ),
87 )
88 },
89 target(info) {
90 const config = decodeWorktreeConfig(info)
91 return {

Callers

nothing calls this directly

Calls 4

loadWorktreeFunction · 0.85
provideContextFunction · 0.85
removeMethod · 0.65
useMethod · 0.45

Tested by

no test coverage detected