- Add worker-api/ with TypeScript + Wrangler setup - D1 database schema (bots, matches, jobs, rating_history) - Glicko-2 rating system implementation with unit tests - Job coordination endpoints (claim, heartbeat, result, fail) - Bot management endpoints (register, list, update, rotate-key) - Cron handlers (matchmaker, health checker, stale job reaper) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
357 B
JSON
17 lines
357 B
JSON
{
|
|
"name": "acb-api",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "wrangler dev",
|
|
"deploy": "wrangler deploy",
|
|
"cf-typegen": "wrangler types",
|
|
"test": "vitest"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^4.20250310.0",
|
|
"typescript": "^5.8.2",
|
|
"vitest": "^3.0.9",
|
|
"wrangler": "^4.4.0"
|
|
}
|
|
}
|