Contributing to @shareai-lab/kode
August 27, 2026 · View on GitHub
Development Setup
-
Install Bun
curl -fsSL https://bun.sh/install | bash -
Clone and Install
git clone https://github.com/shareAI-lab/Kode-CLI.git cd kode bun install --frozen-lockfile -
Run in Development
bun run dev
Project Structure
.
├── apps/ # Entrypoints (build to dist/)
├── packages/ # Internal workspace modules and shipped assets
├── scripts/ # Build and utility scripts
├── docs/ # Maintained user and developer documentation
├── examples/ # Copyable configuration examples
└── package.json # Package boundary and development commands
Building
bun run build
This runs scripts/build.mjs and creates ignored artifacts:
cli.js/cli-acp.js- runtime wrappersdist/**- bundled runtime (Node) + assets
Testing
# Run tests
bun test
# Test CLI
./cli.js --help
./cli.js -p "test prompt"
Code Style
- Run
bun run formatbefore committing - TypeScript/TSX for all source files
- Prefer English for code identifiers and comments (bilingual docs are OK)
- Follow existing patterns and keep changes focused
Git Hooks & CI Gating
This repo uses Husky to keep changes consistent:
- Pre-commit runs
bun run format:checkandbun run typecheck. - CI also enforces architecture boundaries, audits high-severity dependency vulnerabilities, runs tests, and builds on macOS, Linux, and Windows.
Run the complete local gate before opening a release change:
bun run check
Publishing
Publishing is CI-only. See docs/develop/releasing.md.