Skip to content

refactor(provider): effectify Provider service - #20160

Merged
kitlangton merged 1 commit into
devfrom
effectify-provider
Mar 31, 2026
Merged

refactor(provider): effectify Provider service#20160
kitlangton merged 1 commit into
devfrom
effectify-provider

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

  • Convert Provider from Instance.state + async functions to the standard Effect service pattern (ServiceMap.Service, InstanceState.make, Layer.effect, Effect.fn, makeRuntime)
  • Async facades preserve the existing public API — no consumer changes needed
  • list and getProvider use InstanceState.use for concise property selection
  • Update effect migration checklist (also marks Session, SessionProcessor, SessionPrompt, SessionCompaction as done)

Test plan

  • bun run typecheck passes
  • All 1604 tests pass (0 failures)
  • Manual: run opencode, verify provider listing and model selection work
@kitlangton
kitlangton force-pushed the effectify-provider branch 2 times, most recently from c82ccd3 to 12ecb57 Compare March 31, 2026 01:09
Convert Provider from Instance.state + async functions to Effect service
pattern (ServiceMap.Service, InstanceState, Layer.effect, Effect.fn,
makeRuntime). Async facades preserve the existing public API so no
consumer changes are needed.
@kitlangton
kitlangton merged commit 3df18dc into dev Mar 31, 2026
8 checks passed
@kitlangton
kitlangton deleted the effectify-provider branch March 31, 2026 01:56
jeromelau pushed a commit to jeromelau/opencode that referenced this pull request Apr 2, 2026
vicary pushed a commit to vicary/opencode that referenced this pull request Apr 6, 2026
balcsida pushed a commit to balcsida/opencode that referenced this pull request Apr 8, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment