yuan-lab-llm--clawmanager
58c19856fd
* feat(runtime): improve Lite gateway scheduling and proxy stability - Expand the runtime gateway port range to match 100 instances per pod - Scale runtime deployments based on pending backlog - Serialize gateway creation per pod and handle starting/creating states - Clean up missing gateway bindings from runtime agent reports - Improve Lite gateway proxy token stripping and auth header injection - Update deployment manifests, docs, and related tests * fix(runtime): harden Hermes Lite gateway recovery - Add hashed gateway token aliases for short-term token compatibility - Fix /resume conversations failing when old sessions use mismatched gateway tokens - Recover ports only from stale error bindings without affecting active gateways * feat(runtime): enable bidirectional desktop clipboard and direct proxy - Enable WebTop/Selkies/Kasm clipboard by default with per-instance overrides - Document clipboard verification, configuration pitfalls, and IME troubleshooting - Enable direct desktop proxy in the K8s and K3s manifests --------- Co-authored-by: litiantian03 <litiantian03@ieisystem.com>
ClawReef Backend
ClawReef virtual desktop management platform backend API.
Tech Stack
- Golang 1.21+
- Gin 1.9+
- upper/db 4.x
- MySQL 8.0+
- JWT Authentication
Quick Start
Prerequisites
- Go 1.21 or higher
- MySQL 8.0+
- Docker (optional)
Development Setup
-
Install dependencies
make deps -
Start MySQL with Docker
make docker-up -
Run database migration
make migrate -
Start the server
make run
API Endpoints
Server runs on port 9001.
Authentication
POST /api/v1/auth/register- User registrationPOST /api/v1/auth/login- User loginPOST /api/v1/auth/refresh- Refresh tokenPOST /api/v1/auth/logout- User logoutGET /api/v1/auth/me- Get current user
Default Admin Account
- Username:
admin - Password:
admin123
Project Structure
backend/
├── cmd/server/ # Application entry point
├── internal/
│ ├── config/ # Configuration
│ ├── db/ # Database connection & migrations
│ ├── models/ # Data models
│ ├── repository/ # Data access layer
│ ├── services/ # Business logic
│ ├── handlers/ # HTTP handlers
│ ├── middleware/ # HTTP middleware
│ └── utils/ # Utilities
├── deployments/ # Docker & K8s configs
└── configs/ # Configuration files
Make Commands
make build- Build the binarymake run- Run the servermake test- Run testsmake fmt- Format codemake lint- Run lintermake docker-up- Start MySQL containermake migrate- Run database migrations