Skip to content

Commit 3df18dc

Browse files
authored
refactor(provider): effectify Provider service (#20160)
1 parent a898c2e commit 3df18dc

2 files changed

Lines changed: 581 additions & 518 deletions

File tree

packages/opencode/specs/effect-migration.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,13 @@ Fully migrated (single namespace, InstanceState where needed, flattened facade):
210210
- [x] `Vcs``project/vcs.ts`
211211
- [x] `Worktree``worktree/index.ts`
212212

213-
Still open and likely worth migrating:
214-
215213
- [x] `Session``session/index.ts`
216-
- [ ] `SessionProcessor`blocked by AI SDK v6 PR (#18433)
217-
- [ ] `SessionPrompt`blocked by AI SDK v6 PR (#18433)
218-
- [ ] `SessionCompaction`blocked by AI SDK v6 PR (#18433)
219-
- [ ] `Provider`blocked by AI SDK v6 PR (#18433)
214+
- [x] `SessionProcessor``session/processor.ts`
215+
- [x] `SessionPrompt``session/prompt.ts`
216+
- [x] `SessionCompaction``session/compaction.ts`
217+
- [x] `Provider``provider/provider.ts`
220218

221-
Other services not yet migrated:
219+
Still open:
222220

223221
- [ ] `SessionSummary``session/summary.ts`
224222
- [ ] `SessionTodo``session/todo.ts`
@@ -235,7 +233,7 @@ Once individual tools are effectified, change `Tool.Info` (`tool/tool.ts`) so `i
235233

236234
1. Migrate each tool to return Effects
237235
2. Update `Tool.define()` factory to work with Effects
238-
3. Update `SessionPrompt` to `yield*` tool results instead of `await`ing — blocked by AI SDK v6 PR (#18433)
236+
3. Update `SessionPrompt` to `yield*` tool results instead of `await`ing
239237

240238
Individual tools, ordered by value:
241239

0 commit comments

Comments
 (0)