Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
Add CI: frontend build and tests, Clippy and cargo test
Pixel (kwant bot)c1c03f2d27ab
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 00000000..033a8019--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,62 @@+name: CI++on:+ push:+ branches: [main]+ pull_request:++permissions:+ contents: read++concurrency:+ group: ci-${{ github.ref }}+ cancel-in-progress: true++env:+ CARGO_TERM_COLOR: always+ CARGO_INCREMENTAL: 0++jobs:+ frontend:+ name: frontend+ runs-on: ubuntu-latest+ defaults:+ run:+ working-directory: frontend+ steps:+ - uses: actions/checkout@v4+ - uses: actions/setup-node@v4+ with:+ node-version: 20+ cache: npm+ cache-dependency-path: frontend/package-lock.json+ - run: npm ci+ - name: Type-check and build+ run: npm run build+ - name: Tests+ run: npm test+ - uses: actions/upload-artifact@v4+ with:+ name: frontend-dist+ path: frontend/dist+ retention-days: 1++ rust:+ name: rust+ runs-on: ubuntu-latest+ needs: frontend+ steps:+ - uses: actions/checkout@v4+ # The binary embeds frontend/dist, so the Rust build needs it+ - uses: actions/download-artifact@v4+ with:+ name: frontend-dist+ path: frontend/dist+ - uses: dtolnay/rust-toolchain@stable+ with:+ components: clippy+ - uses: Swatinem/rust-cache@v2+ - name: Clippy+ run: cargo clippy --all-targets --locked -- -D warnings+ - name: Tests+ run: cargo test --lockeddiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex aee09fdc..f257c399 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -58,7 +58,7 @@ CI runs the same commands on every pull request: see [.github/workflows/ci.yml](## Style-- **Rust:** keep to the style of the file you're editing. Run `cargo clippy --all-targets` and don't add new warnings. The codebase isn't fully `rustfmt`-formatted yet, so format only the code you change rather than whole files; that keeps diffs reviewable.+- **Rust:** keep to the style of the file you're editing. `cargo clippy --all-targets -- -D warnings` must pass: the code has no Clippy warnings today, and CI keeps it that way. The codebase isn't fully `rustfmt`-formatted yet, so format only the code you change rather than whole files; that keeps diffs reviewable.- **TypeScript:** `npm run build` must pass with no type errors. Tailwind classes, no new CSS frameworks.- **Interface text:** short, plain sentences. Name things the way the app already does (bots, spaces, accounts, routines).- **Tests:** add or update a test for every behaviour change. Use neutral sample data: names like "Alex", `example.com` addresses, `/Users/alex/project` paths, and obviously fake keys. Never commit a real key, token, password or personal email.