Skip to content

feat/ref(*): auto-detect provider#9

Merged
vdice merged 1 commit intomainfrom
feat/auto-detect-provider
Mar 25, 2026
Merged

feat/ref(*): auto-detect provider#9
vdice merged 1 commit intomainfrom
feat/auto-detect-provider

Conversation

@vdice
Copy link
Member

@vdice vdice commented Mar 24, 2026

Updates this utility to automatically detect the correct (supported) provider based on each token provided.

In doing so, I refactored things; mostly moving token checking and request logic closer to each provider, with base implementations that can be used if special logic is not needed.

As of the latest commit, this is a breaking change, as it drops the --provider flag/arg. If we like the looks of this change but would rather not break things, it shouldn't be too hard to add it back, perhaps with a deprecation warning. Thoughts?

@vdice vdice requested a review from lann March 24, 2026 22:53
@vdice vdice force-pushed the feat/auto-detect-provider branch 3 times, most recently from 9a68cc2 to e816765 Compare March 24, 2026 23:09
Signed-off-by: Vaughn Dice <vdice@akamai.com>
@vdice vdice force-pushed the feat/auto-detect-provider branch from e816765 to c214974 Compare March 25, 2026 18:14
@vdice
Copy link
Member Author

vdice commented Mar 25, 2026

The amended commit just re-adds the --provider flag as hidden/deprecated, plus logic to inform that providers are auto-detected when used.

@vdice vdice merged commit fe51d15 into main Mar 25, 2026
2 checks passed
@vdice vdice deleted the feat/auto-detect-provider branch March 25, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants