Skip to content

refactor(api): use canonical provider identifiers#1012

Draft
WebMad wants to merge 4 commits into
Zoo-Code-Org:mainfrom
WebMad:feat/955-canonical-provider-handler-identifiers
Draft

refactor(api): use canonical provider identifiers#1012
WebMad wants to merge 4 commits into
Zoo-Code-Org:mainfrom
WebMad:feat/955-canonical-provider-handler-identifiers

Conversation

@WebMad

@WebMad WebMad commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace raw provider string literals in buildApiHandler() with canonical providerIdentifiers
  • use retiredProviderIdentifiers.roo for the dedicated Roo removal path
  • preserve existing handler routing, retired-provider errors, and unsupported-provider fallback behavior
  • expand focused handler-factory coverage for representative active, retired, and unsupported providers

Closes #955

Test plan

  • cd src && npx vitest run api/__tests__/index.spec.ts api/providers/__tests__/friendli.spec.ts — 28 passed
  • cd src && npx vitest run api — 2,035 passed, 2 skipped
  • cd src && pnpm check-types
  • repository pre-commit lint — 11 packages passed
  • pre-push repository type checks — 11 packages passed

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 13d6a3d8-9763-4549-8a42-609996763bce

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

[ENHANCEMENT] Migrate API handler selection to canonical provider identifiers

1 participant