Skip to content

Centralize provider adapter capabilities into a single registry#25

Merged
aaditagrawal merged 1 commit intomainfrom
provider-adapter-capabilities-registry
Mar 19, 2026
Merged

Centralize provider adapter capabilities into a single registry#25
aaditagrawal merged 1 commit intomainfrom
provider-adapter-capabilities-registry

Conversation

@aaditagrawal
Copy link
Owner

Summary

  • Extracts per-provider capabilities (transport, model discovery, resume, rollback, attachments, persistent runtime) into a canonical PROVIDER_CAPABILITIES_BY_PROVIDER map with getProviderCapabilities() accessor
  • Replaces inline capability objects in all 8 adapters with centralized lookups, ensuring consistency
  • Adds validateProviderAdapterConformance() to verify adapters expose required operations and match expected capability declarations
  • Suppresses redundant tool completion events in Kilo/OpenCode event handlers when title and detail are unchanged
  • Adds Amp "large" mode to model options and slug aliases

Test plan

  • New conformance test (ProviderAdapterConformance.test.ts) validates all adapters
  • New unit tests for Kilo and OpenCode event handlers and server managers
  • Existing adapter registry and provider service tests updated for expanded capabilities
  • Run bun typecheck to verify no type regressions

- Extract per-provider capabilities (transport, model discovery, resume,
  rollback, attachments, persistent runtime) into a canonical
  PROVIDER_CAPABILITIES_BY_PROVIDER map in ProviderAdapter.ts
- Replace inline capability objects in all 8 adapters with
  getProviderCapabilities() lookups
- Add conformance validation (validateProviderAdapterConformance) to
  verify adapters expose required operations and match expected capabilities
- Suppress redundant tool completion events in Kilo/OpenCode event
  handlers when title and detail haven't changed
- Add Amp "large" mode to model options and slug aliases
- Add new test files for Kilo, OpenCode event handlers, server managers,
  and provider adapter conformance
@github-actions github-actions bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL 1,000+ changed lines (additions + deletions). labels Mar 19, 2026
@aaditagrawal aaditagrawal merged commit 36c98a6 into main Mar 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL 1,000+ changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant