- Node.js 18+
- PostgreSQL 14+
- Redis (optional for Phase 4+)
npm install- Copy
.env.exampleto.env - Update database credentials and OpenAI API key
cp .env.example .envnpm run db:migrateDevelopment:
npm run devProduction:
npm run build
npm startnpm test
npm run typecheckGET /health- Health checkPOST /api/tasks- Create taskGET /api/tasks- List all tasksGET /api/tasks/:id- Get task detailsPOST /api/tasks/process- Process task (async)GET /api/tasks/:id/logs- Get task logsGET /api/logs- Get recent logs
- Task system with CRUD operations
- Brain Core with planning loop
- Database schema (tasks, steps, memories, logs)
- REST API with Fastify
- OpenAI integration for planning
- Audit logging
- TypeScript type checking
- Unit tests