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