Thanks for your interest in contributing!
# Clone the repo
git clone https://github.com/numman-ali/cc-mirror.git
cd cc-mirror
# Install dependencies
npm install
# Run in development mode
npm run dev -- --help
npm run tui
# Run tests
npm test
# Type check
npm run typecheck
# Bundle for distribution
npm run bundlesrc/
├── cli/ # CLI entry point and argument parsing
├── core/ # Core logic (create, update, remove variants)
├── tui/ # Interactive TUI (ink/React)
│ ├── screens/ # Screen components
│ └── components/# Reusable UI components
├── brands/ # Provider theme presets
└── providers/ # Provider templates (zai, minimax, etc.)
test/ # Tests (node:test)
scripts/ # Build scripts
- Add the provider template in
src/providers/index.ts - Add a brand preset in
src/brands/(optional) - Update help text in
src/cli/help.ts - Add tests in
test/
- TypeScript with strict mode
- ESM modules
- Functional style preferred
- No emojis in code/output unless user requests
# Run all tests
npm test
# Run specific test file
npm test -- test/core.test.tsUse conventional commits:
feat:New featurefix:Bug fixdocs:Documentationrefactor:Code refactoringtest:Testschore:Maintenance
- Fork and create a branch
- Make your changes
- Run tests and type check
- Submit PR with clear description
Open an issue or reach out on Twitter @nummanali.