12 Commits

Author SHA1 Message Date
Hector Ros
08e6f66c7d Add HTTP MCP endpoints for agent communication
All checks were successful
Build and Push Backend / build (push) Successful in 4s
- Replace stdio MCP server with HTTP endpoints
- MCP tools available at /api/mcp/* endpoints
- Same backend port (3000), accessible via HTTPS
- Tools: get_next_task, update_task_status, create_branch, create_pull_request, ask_user_question
- Proper integration with database and agent status tracking

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-20 02:04:57 +01:00
Hector Ros
8a95c428c8 Add MCP Server for agent communication
All checks were successful
Build and Push Backend / build (push) Successful in 12s
- Implement MCP server on stdio for agent communication
- Tools: get_next_task, update_task_status, create_branch, create_pull_request, ask_user_question
- Full integration with database (tasks, agents tables)
- Proper error handling and responses
- Add 'mcp' script to package.json

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-20 02:04:04 +01:00
Hector Ros
1dc0ab515d Add authentication system with session-based auth
All checks were successful
Build and Push Backend / build (push) Successful in 20s
- Implement register, login, logout, and me endpoints
- Use bcryptjs for password hashing
- HTTPOnly secure cookies for sessions (Lucia Auth pattern)
- Users and sessions tables with proper relations
- 7-day session duration with auto-expiry

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-20 01:56:25 +01:00
Hector Ros
5672127593 Implement Backend API, MCP Server, and Gitea integration
All checks were successful
Build and Push Backend / build (push) Successful in 5s
- Add REST API routes for projects, tasks, and agents (CRUD operations)
- Implement MCP Server with 4 core tools:
  - get_next_task: Assign tasks to agents
  - update_task_status: Update task states
  - create_branch: Create Git branches via Gitea API
  - create_pull_request: Create PRs via Gitea API
- Add Gitea API client for repository operations
- Fix database migration error handling for existing tables
- Connect all routes to Bun.serve() main server

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-20 00:43:46 +01:00
Hector Ros
ebf5d74933 Fix Dockerfile: use bun.lock instead of bun.lockb
All checks were successful
Build and Push Backend / build (push) Successful in 41s
Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-20 00:16:32 +01:00
Hector Ros
d4c667e806 Trigger new build
Some checks failed
Build and Push Backend / build (push) Failing after 4s
Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-20 00:14:13 +01:00
Hector Ros
5fb921aeda Simplify workflow: use Docker commands directly
Some checks failed
Build and Push Backend / build (push) Failing after 33s
Works better with DinD runner setup

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-19 23:46:52 +01:00
Hector Ros
2563778a9b Switch to Kaniko for container builds
Some checks failed
Build and Push Backend / build (push) Failing after 5s
Kaniko doesn't require Docker daemon, works better in K8s

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-19 23:37:27 +01:00
Hector Ros
9c33992043 Update README
Some checks failed
Build and Push Backend / build (push) Failing after 2m28s
Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-19 23:30:28 +01:00
Hector Ros
be4bdf7cbe Add CI/CD: Dockerfile + Gitea Actions workflow
Some checks failed
Build and Push Backend / build (push) Failing after 2m34s
- Multi-stage Dockerfile with Bun 1.3.6
- Gitea Actions workflow for auto-build
- Push to git.fuq.tv container registry
- Build cache optimization

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-19 22:48:13 +01:00
Hector Ros
0f44ec34ba Initial commit: Backend with Bun.serve() + Drizzle ORM
- Bun 1.3.6 server setup
- MariaDB schema (projects, agents, tasks)
- Auto-migrations on startup
- WebSocket support
- Health check endpoint

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-19 22:47:05 +01:00
0a2f6a4e4f Initial commit 2026-01-19 21:45:57 +00:00