Skip to content

effectify Worktree service#18323

Draft
kitlangton wants to merge 1 commit intodevfrom
kit/effectify-worktree
Draft

effectify Worktree service#18323
kitlangton wants to merge 1 commit intodevfrom
kit/effectify-worktree

Conversation

@kitlangton
Copy link
Contributor

Summary

  • Migrate Worktree from direct Instance ALS reads to the Effect service pattern (Interface, Service, layer yielding InstanceContext, promise facades via runPromiseInstance)
  • Wire Worktree.Service into InstanceServices union and lookup() in instances.ts
  • Mark Worktree as done in effect-migration.md

Test plan

  • Verify bun run typecheck in packages/opencode shows no new errors (pre-existing effect version mismatch errors remain)
  • Grep for Instance.directory, Instance.worktree, Instance.project in worktree/index.ts — only Instance.provide (for bootstrapping new worktree contexts) should remain
  • Smoke test worktree create/remove/reset via the experimental API routes

Migrate Worktree from direct Instance ALS reads to the Effect service
pattern: define Interface, Service, layer (yielding InstanceContext),
and promise facades using runPromiseInstance. Wire into instances.ts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant