Centralize provider adapter capabilities into a single registry#25
Merged
aaditagrawal merged 1 commit intomainfrom Mar 19, 2026
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PROVIDER_CAPABILITIES_BY_PROVIDERmap withgetProviderCapabilities()accessorvalidateProviderAdapterConformance()to verify adapters expose required operations and match expected capability declarationsTest plan
ProviderAdapterConformance.test.ts) validates all adaptersbun typecheckto verify no type regressions