Commit Graph

9 Commits

Author SHA1 Message Date
Deathwing 8371cdb7c0 refactor: address all 7 PR review comments
1. Fix header comment — document correct env var precedence
   (apiKey → GITHUB_COPILOT_TOKEN → GITHUB_TOKEN → device flow)
2. Use application/x-www-form-urlencoded for device code endpoint
3. Use application/x-www-form-urlencoded for poll endpoint
4. Add mutex (promise-based) on #getSessionToken to prevent
   concurrent token refreshes and duplicate device flow prompts
5. Add DeviceCodeCallback + CopilotAdapterOptions so callers can
   control device flow output instead of hardcoded console.log
6. Extract shared OpenAI wire-format helpers into openai-common.ts,
   imported by both openai.ts and copilot.ts (-142 lines net)
7. Update createAdapter JSDoc to mention copilot env vars
2026-04-02 02:19:06 +02:00
Deathwing eedfeb17a2 feat: add GitHub Copilot as LLM provider
- Add CopilotAdapter with OAuth2 device flow authentication
- Token exchange via /copilot_internal/v2/token with caching
- Premium request multiplier system (getCopilotMultiplier)
- Full model metadata catalog (COPILOT_MODELS)
- Add 'copilot' to SupportedProvider and provider union types
- Add example: examples/05-copilot-test.ts
2026-04-02 01:45:43 +02:00
JackChen ad317610ff Bust GitHub cache for star history chart, ignore non-tech dirs 2026-04-02 00:56:15 +08:00
JackChen 376785c3fa Add Chinese README and GitHub topic tags for discoverability 2026-04-01 16:24:43 +08:00
JackChen ae6968a52c Publish to npm as @jackchen_me/open-multi-agent 2026-04-01 13:44:23 +08:00
JackChen 0c02327a56 Switch install method to GitHub, remove npm badges 2026-04-01 13:14:29 +08:00
JackChen 3b24b99056 Improve README: clearer intro, fewer code walls, contributing section 2026-04-01 13:04:40 +08:00
JackChen 6cbc5582fe Add star history chart to README and update .gitignore 2026-04-01 12:12:28 +08:00
JackChen a6244cfe64 Initial release: open-multi-agent v0.1.0
Production-grade multi-agent orchestration framework.
Model-agnostic, supports team collaboration, task scheduling
with dependency resolution, and inter-agent communication.
2026-04-01 04:33:15 +08:00