Open an issue using the bug report template.
Include the output of cc-router status --json and your OS/Node version.
Open an issue using the feature request template before writing code — this avoids duplicate work.
git clone https://github.com/VictorMinemu/cc-router.git
cd cc-router
npm install
# Run in dev mode (tsx, no build step)
npm run dev -- --help
# Build
npm run build
# Type-check only (no emit)
npm run lint
# Tests
npm test- TypeScript strict mode — no
anyexcept where unavoidable, no@ts-ignore - ESM throughout — imports use
.jsextension on relative paths - No shell injection — use
execFilewith argument arrays, neverexecwith string interpolation - Atomic file writes — use
writeFileSync(.tmp)+renameSyncfor anything that stores credentials - No global side effects on import — only
startServer()and similar explicit calls should do I/O
- Fork, create a branch (
fix/token-refresh-lock,feat/windows-service) - Make your changes with tests where applicable
npm run build && npm testmust pass- Open a PR against
mainusing the PR template - One approving review required before merge
# Bump version in package.json, then:
git tag v0.2.0
git push origin v0.2.0
# GitHub Actions will build, test and publish to npm automatically