- Add /api/data/export endpoint to worker-api for data export - Create cmd/acb-indexer/ TypeScript container: - API client for fetching data from Worker API - Index generator for leaderboard, bot profiles, match index - File writer for outputting JSON files - Optional Cloudflare Pages deploy support - Unit tests (6 tests) - Update PROGRESS.md to mark Phase 4 complete Phase 4 is now complete. All exit criteria met: - Matchmaker cron creates jobs in D1 - Workers claim and execute matches - Replays land in R2 - Results flow into D1 - Ratings update via Glicko-2 - Leaderboard.json rebuilds automatically - Stale job reaper recovers from worker disappearance Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
594 B
JSON
24 lines
594 B
JSON
{
|
|
"name": "acb-indexer",
|
|
"version": "1.0.0",
|
|
"description": "AI Code Battle Index Builder - Generates static JSON index files for Cloudflare Pages",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"dev": "tsx src/index.ts",
|
|
"test": "vitest"
|
|
},
|
|
"keywords": ["aicodebattle", "indexer", "cloudflare-pages"],
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"dotenv": "^16.4.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.11.24",
|
|
"tsx": "^4.7.1",
|
|
"typescript": "^5.3.3",
|
|
"vitest": "^1.3.1"
|
|
}
|
|
}
|