feat(provider): add github copilot device flow provider (#364)

This commit is contained in:
LiBr
2026-04-13 19:38:33 +08:00
committed by GitHub
parent a40207ab6d
commit df8fbd8859
36 changed files with 2659 additions and 246 deletions
@@ -0,0 +1,21 @@
-- 0062_github_copilot_user_oauth (rollback)
-- Remove user-scoped provider OAuth tokens and github-copilot client type.
DROP INDEX IF EXISTS idx_user_provider_oauth_tokens_state;
DROP TABLE IF EXISTS user_provider_oauth_tokens;
DELETE FROM providers WHERE client_type = 'github-copilot';
ALTER TABLE IF EXISTS providers DROP CONSTRAINT IF EXISTS providers_client_type_check;
ALTER TABLE IF EXISTS providers
ADD CONSTRAINT providers_client_type_check CHECK (
client_type IN (
'openai-responses',
'openai-completions',
'anthropic-messages',
'google-generative-ai',
'openai-codex',
'edge-speech'
)
);