You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces comprehensive support for GitHub Copilot, including:
- **UI Integration**:
- Adds a new `copilot.png` icon for GitHub Copilot.
- Updates `ProvidersPage` to display GitHub Copilot as an available provider.
- Implements the device code flow for Copilot authentication, showing the user code and verification URL.
- Adds Copilot-specific fields to `ProviderState` for managing the device flow.
- Updates `getProviderIconPath` to correctly display the Copilot icon.
- **Quota Management**:
- Extends `QuotaPage` to recognize and display GitHub Copilot quota information.
- Adds `copilot` to `getProviderType` and `ProviderSection` for proper categorization.
- Implements `fetchCopilot` in `quotaApi` to retrieve Copilot entitlement details.
- Adds `COPILOT_ENTITLEMENT_URL` and `COPILOT_HEADERS` for API requests.
- Introduces `parseCopilotQuota` to interpret the Copilot entitlement response, including plan type and usage snapshots.
- **API Enhancements**:
- Adds `copilot` to `OAuthProvider` type.
- Updates `oauthApi.startAuth` to use a `AUTH_URL_PROVIDER_MAP` for mapping `copilot` to `github` endpoint.
- Extends `OAuthStartResponse` with `user_code` and `verification_uri` for device flow.
- **General**:
- Bumps package version to `1.0.8`.
- Adds `copilot` to the `PROVIDERS` list in `src/types/index.ts`.
0 commit comments