mirror of
https://github.com/saltbo/agent-kanban.git
synced 2026-09-19 09:01:47 +08:00
a2fa54a729
Replace the v1 Agent/Machine runtime and CLI architecture with the v2 Resource Server, AMA-backed projections, task lifecycle, session observation, BDD specifications, and a single-package layered codebase. BREAKING CHANGE: remove the v1 CLI, internal Agent/Machine runtime entities, workspace layout, and legacy runtime coordination APIs.
1.6 KiB
1.6 KiB
Contributing
Thanks for your interest in Agent Kanban! Here's how to get involved.
Getting Started
- Fork the repo and clone it locally
- Install dependencies:
pnpm install - Run migrations:
pnpm db:migrate - Start dev server:
pnpm dev - Run the exact tests selected for your changed behaviour
Making Changes
- Create a feature branch from
main - Keep changes focused — one concern per PR
- Change or add the scenario in
spec/*.featurefirst - Add
[spec: capability/scenario]to the cheapest proving test - Run
pnpm lint:specand the exact changed test cases before submitting
Code Style
- TypeScript throughout
- Thin repo layer for data access — no raw SQL in route handlers
- Centralized error handling via
HTTPException - Short functions (< 30 lines), small files (< 300 lines)
- Name things clearly — if it needs a comment to explain what, rename it
Commit Messages
Use Conventional Commits:
feat(api): add task dependency cycle detection
fix(cli): handle missing config file on first run
refactor(web): extract activity log into standalone component
Database Migrations
If your change modifies the D1 schema:
- Create a new SQL file in
migrations/ - Name it
NNNN_description.sql(sequential number) - Include both the schema change and any data backfill
- Test with
pnpm db:migrate
Reporting Issues
Open an issue with:
- What you expected vs. what happened
- Steps to reproduce
- Environment (OS, Node version, browser)
License
By contributing, you agree that your contributions will be licensed under the FSL-1.1-ALv2 license.