Commit bfe0930
feat(providers): add GitHub Copilot provider via @github/copilot-sdk
- Add 'copilot' to AgentRuntime union, AGENT_RUNTIMES, RUNTIME_LABELS, RUNTIME_ALIASES in shared types
- Implement CopilotProvider with execute(), getHistory(), fetchUsage()
- Map SDK SessionEvent → AgentEvent via mapCopilotEvent() generator
- Track active sessions for concurrency-safe getHistory() during execution
- Fetch usage via GET /copilot_internal/user with gh auth token
- Register provider in registry.ts and add COPILOT_CLI env var detection in runtime.ts
- Add 43 unit tests for mapCopilotEvent and copilot.test.ts
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7ec5232 commit bfe0930
8 files changed
Lines changed: 1057 additions & 2 deletions
File tree
- packages
- cli
- src
- agent
- providers
- tests
- tests/providers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
0 commit comments