ai-code-battle/cmd
jedarden 70bde20472 Add Go index builder (cmd/acb-index-builder)
Per plan §11.1, the index builder reads PostgreSQL and generates all JSON
index files for Cloudflare Pages deployment:

- main.go: Build cycle orchestration with configurable timeout, self-restart
- config.go: Environment-based configuration with sensible defaults
- db.go: PostgreSQL data fetching for bots, matches, series, seasons, predictions
- generator.go: JSON index generation (leaderboard, bots, matches, playlists)
- deploy.go: Cloudflare Pages deployment via wrangler, R2 warm cache pruning
- Dockerfile: Multi-stage build with Go + Node.js + wrangler CLI
- main_test.go: Tests for config, index generation, playlists

Index builder runs on 15-minute cycles, deploys to Pages every ~90 minutes,
and prunes R2 warm cache weekly to stay within 10GB free tier.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 03:15:47 -04:00
..
acb-api Add map evolution pipeline (cmd/acb-map-evolver) 2026-03-29 02:35:33 -04:00
acb-evolver Add Phase 7-9 features: evolution dashboard, WASM sandbox, enhanced replay 2026-03-29 01:13:23 -04:00
acb-index-builder Add Go index builder (cmd/acb-index-builder) 2026-03-29 03:15:47 -04:00
acb-indexer Add Phase 9 features: embeddable replay widget and playlists 2026-03-29 02:03:45 -04:00
acb-local Implement Phase 1 core engine: grid, combat, fog of war, turn execution 2026-03-24 01:48:27 -04:00
acb-map-evolver Add map evolution pipeline (cmd/acb-map-evolver) 2026-03-29 02:35:33 -04:00
acb-mapgen Fix sin/cos math bug and add cellular automata map generation 2026-03-26 01:10:46 -04:00
acb-matchmaker Extract matchmaker into separate deployment (acb-matchmaker) 2026-03-29 00:55:46 -04:00
acb-wasm Add Phase 7-9 features: evolution dashboard, WASM sandbox, enhanced replay 2026-03-29 01:13:23 -04:00
acb-worker Add Prometheus metrics endpoint to match worker 2026-03-26 00:50:10 -04:00