feat: add CometAPI as a new provider
CometAPI integration
Overview
Add CometAPI as a new router/provider so users can fetch and pick CometAPI models alongside existing sources.
Changes
- Provider: add
cometapito router models flow (parallel fetch + per-provider error events). - Settings: support CometAPI Key (and Base URL, defaulting to
https://api.cometapi.com/v1/). - Models: integrate CometAPI into model cache and selection UI; failed fetch returns
{}and emits a single error message. - Tests: cover success/failure paths and event payloads for
cometapi.
Setup & Usage
- Get an API key from CometAPI: https://api.cometapi.com/console/token
- Put the key into Kilocode settings (CometAPI Key).
- Refresh router models; CometAPI models will appear if the key is valid.
Testing
- Unit tests updated; full repo tests are green.
- Manual: with a valid key, router models include
cometapi; on errors, an error event is posted and the provider is empty in the final map.
Screenshots
⚠️ No Changeset found
Latest commit: d93bf6c0dc698827a98e9a62d1b909017101d8ab
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
@Juice10 @kevinvandijk @drakonen @beatlevic @mrubens @saoudrizwan Hi ! Can you help me complete this PR?
Please let me know if anything else is needed.
Best regards !
By the way, I fixed the error in pnpm test at the same time.😊