Skip to content

chore: type Provider.list() as Record<ProviderID, Info>, delete dead code#18123

Merged
kitlangton merged 1 commit intodevfrom
chore/effect-cleanup
Mar 18, 2026
Merged

chore: type Provider.list() as Record<ProviderID, Info>, delete dead code#18123
kitlangton merged 1 commit intodevfrom
chore/effect-cleanup

Conversation

@kitlangton
Copy link
Contributor

Summary

  • Provider.list() return type narrowed from Record<string, Info> to Record<ProviderID, Info> — catches string-indexed access at compile time
  • Added gitlab to well-known ProviderID constants
  • Updated all test string-literal indexing to use ProviderID.make() or well-known constants (ProviderID.anthropic, ProviderID.amazonBedrock, etc.)
  • Deleted src/util/eventloop.ts (zero imports, dead code)

Test plan

  • tsc --noEmit passes
  • 172 provider tests pass

@kitlangton kitlangton force-pushed the chore/effect-cleanup branch from c3b7eb2 to 54aabdd Compare March 18, 2026 19:02
@kitlangton kitlangton enabled auto-merge (squash) March 18, 2026 19:06
@kitlangton kitlangton disabled auto-merge March 18, 2026 19:06
@kitlangton kitlangton enabled auto-merge (squash) March 18, 2026 19:06
…d eventloop.ts

- Provider.list() return type narrowed from Record<string, Info> to
  Record<ProviderID, Info>
- Added gitlab to well-known ProviderID constants
- Updated all test string-literal indexing to use ProviderID.make()
  or well-known constants (ProviderID.anthropic, etc.)
- Deleted src/util/eventloop.ts (zero imports, dead code)
@kitlangton kitlangton force-pushed the chore/effect-cleanup branch from 54aabdd to 1346c31 Compare March 18, 2026 19:07
@kitlangton kitlangton disabled auto-merge March 18, 2026 23:43
@kitlangton kitlangton merged commit 5ddfe4a into dev Mar 18, 2026
6 of 8 checks passed
@kitlangton kitlangton deleted the chore/effect-cleanup branch March 18, 2026 23:43
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