Skip to content

refactor(prompt): use Provider service in effect layers - #20167

Merged
kitlangton merged 5 commits into
devfrom
kit/provider-service-followup
Apr 1, 2026
Merged

refactor(prompt): use Provider service in effect layers#20167
kitlangton merged 5 commits into
devfrom
kit/provider-service-followup

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

  • switch effect-backed Agent, SessionCompaction, and SessionPrompt paths from async Provider.* facades to Provider.Service
  • export Provider.defaultLayer so internal effect layers can depend on the provider service directly
  • update affected tests to provide the provider service and keep existing provider spies working

Verification

  • bun typecheck
  • bun run test -- test/session/compaction.test.ts test/session/prompt-effect.test.ts test/agent/agent.test.ts
@kitlangton
kitlangton merged commit b715dbf into dev Apr 1, 2026
8 checks passed
@kitlangton
kitlangton deleted the kit/provider-service-followup branch April 1, 2026 00:08
jeromelau pushed a commit to jeromelau/opencode that referenced this pull request Apr 2, 2026
cavaldos pushed a commit to cavaldos/openpentest 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