Implement full GitHub Copilot integration in coding-agent, including:
-
Generate GitHub Copilot models in @mariozechner/pi-ai
- Update packages/ai/scripts/generate-models.ts to add github-copilot provider
- Filter available models, exclude deprecated ones
- Set API to openai-completions, add static headers
- Update KnownProvider type
-
Implement device flow OAuth in packages/coding-agent
- Create src/oauth/github-copilot.ts with loginGitHubCopilot() and refreshGitHubCopilotToken()
- Update src/oauth/index.ts and src/model-config.ts to handle github-copilot
-
Add GitHub Copilot to TUI
- Update src/tui/oauth-selector.ts to add github-copilot provider and show device flow UI
- Update src/tui/tui-renderer.ts to show Copilot models
- Update src/main.ts to add github-copilot to default providers
-
Test end-to-end
- Login via TUI, select Copilot model, test chat and tool calls
- Verify usage/cost tracking works
Implement full GitHub Copilot integration in coding-agent, including:
Generate GitHub Copilot models in @mariozechner/pi-ai
Implement device flow OAuth in packages/coding-agent
Add GitHub Copilot to TUI
Test end-to-end