Thanks for your interest in contributing! AIFlowBridge is an open-source VS Code extension that brings DeepSeek, MiniMax, and Xiaomi MiMo into GitHub Copilot Chat. Every contribution is welcome.
- Fork the repository on GitHub
- Clone your fork:
git clone https://github.com/<you>/aiflowbridge - Install dependencies:
npm ci - Open in VS Code:
code . - Run in development: press
F5to launch the Extension Development Host
npm run compile # TypeScript compile (0 errors required)
npm test # vitest, 237 tests must pass
npm run package # Build the .vsix locallyAlways run npm run compile and npm test before opening a pull request.
- TypeScript with strict typing - no
anyunless unavoidable - ES modules (
import/export) - async/await for asynchronous code
- English only for all code, comments, and documentation
- No Chinese localization files (this project is English-only by design)
- Use interfaces for object shapes, types for unions/aliases
- Use const over let wherever possible
See AGENTS.md for the full file structure, key architectural decisions, and common tasks (adding a provider, adding a model).
- Add the model definition to
src/consts.ts(MODELSarray) - Register the provider in
package.json(contributes.languageModelChatProviders) - Create the provider implementation in
src/provider/<vendor>.ts - Add gateway provider normalization in
src/aiflowbridge/providers.ts - Add the API key command in
package.json(contributes.commands) - Add external URLs to
src/consts.ts(EXTERNAL_URLS) - Update
package.nls.jsonwith the provider'smodel.<id>.detailstrings - Update the README provider table
- Add to
MODELSinsrc/consts.ts - Follow the
ModelDefinitioninterface (src/types.ts) with the correct capabilities flags - Add a
model.<id>.detailstring topackage.nls.json - Update the README provider table
- Add unit tests if the model has provider-specific behavior
- One feature per PR - keep changes focused
- Include tests for any new behavior
- Update the CHANGELOG under an "Unreleased" section if you change user-facing behavior
- Reference the issue if your PR fixes a bug ("Fixes #123")
- Run
npm run compile && npm testlocally before pushing
Open a GitHub issue with:
- A clear, descriptive title
- VS Code version (
Help > About) - AIFlowBridge version
- Steps to reproduce
- Expected vs actual behavior
- Relevant log output (
AIFlowBridge: Show Logscommand)
Do not open a public issue for security vulnerabilities. See SECURITY.md for the private disclosure process.
Be respectful, constructive, and welcoming. We are all here to build good software together.
By contributing, you agree that your contributions will be licensed under the MIT License.