Commit graph

6 commits

Author SHA1 Message Date
jedarden
00069b1870 feat(acb-api): implement bot registration, job coordination, and replay endpoints per plan §12 Phase 4
- POST /api/register: bot registration with URL + shared secret validation
- GET /api/job: worker polls for next pending match job (authenticated)
- POST /api/job/:id/result: worker submits match result (winner, replay JSON)
- GET /api/replay/🆔 serve replay JSON from R2 warm cache (falls back to B2)
- GET /api/bot/🆔 bot profile JSON (rating, elo, record, metadata)
- GET /api/bots: leaderboard snapshot with pagination
- POST /api/ui-feedback: accept Agentation UI feedback

Authentication via Bearer token (worker API key). Shared secrets encrypted
with AES-256-GCM using ACB_ENCRYPTION_KEY.
2026-04-21 08:58:42 -04:00
jedarden
fb0ae2b603 docs(phase6): add deployment checklist and make scripts executable
- Add comprehensive Phase 6 deployment checklist (docs/phase6-deployment-checklist.md)
- Make all deployment scripts executable (chmod +x scripts/*.sh)
- Document remaining Cloudflare setup steps requiring account access
- Include verification commands and expected URLs
- Document data flow architecture

Phase 6 code is complete. Remaining infrastructure setup requires
Cloudflare account access for:
- Cloudflare Pages project creation
- R2 bucket creation and custom domain
- DNS configuration

All deployment scripts are ready to run once Cloudflare access is available.
2026-04-08 17:29:02 -04:00
jedarden
a23c94ad1f feat(ci): add Cloudflare Pages deployment configuration
Add wrangler.toml, deployment script, and documentation for deploying
the AI Code Battle SPA to Cloudflare Pages.

- wrangler.toml: Cloudflare Pages project configuration
- scripts/deploy-pages.sh: Manual deployment script using wrangler CLI
- web/CLOUDFLARE_DEPLOYMENT.md: Deployment guide with GitHub Actions setup

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 16:53:09 -04:00
jedarden
77832bc144 feat(scripts): add R2 bucket setup script with custom domain config
Add automated script for creating R2 bucket and configuring custom domain
r2.aicodebattle.com for replay storage.

- Create scripts/setup-r2.sh:
  - Creates acb-data R2 bucket if it doesn't exist
  - Configures custom domain via Cloudflare API
  - Includes verification and usage instructions
- Update DEPLOYMENT.md to reference the new script

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 06:42:53 -04:00
jedarden
e02541ce46 docs(scripts): add DNS configuration script with Cloudflare API
Add configure-dns.sh for automated DNS record setup:
- aicodebattle.com CNAME to Pages
- r2.aicodebattle.com CNAME to R2
- api.aicodebattle.com A record to Traefik (optional)

Includes manual dashboard instructions as fallback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 20:12:26 -04:00
jedarden
26244d1066 feat(scripts): add Cloudflare setup and verification scripts
Add helper scripts for Cloudflare Pages and R2 deployment:
- cloudflare-setup.sh: Creates Pages project, deploys dist, creates R2 bucket
- verify-deployment.sh: End-to-end verification of all endpoints

These scripts require wrangler authentication via `wrangler login`.

Note: worker-api deployment removed from scope (legacy code was removed
in commit b06350d).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 14:50:08 -04:00