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

Function loadWorktree

packages/opencode/src/control-plane/adapters/worktree.ts:12–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const decodeWorktreeConfig = Schema.decodeUnknownSync(WorktreeConfig)
11
12async function loadWorktree() {
13 const [{ AppRuntime }, { Worktree }] = await Promise.all([import("@/effect/app-runtime"), import("@/worktree")])
14 return { AppRuntime, Worktree }
15}
16
17function requireInstance(context: WorkspaceAdapterContext | undefined) {
18 if (!context?.instance) throw new Error("Worktree adapter requires an instance context")

Callers 4

configureFunction · 0.85
createFunction · 0.85
listFunction · 0.85
removeFunction · 0.85

Calls 1

allMethod · 0.45

Tested by

no test coverage detected