|
|
2 weeks ago | |
|---|---|---|
| .. | ||
| migrations | c821d49386 feat(updates): add artifact build endpoints | 2 weeks ago |
| src | c821d49386 feat(updates): add artifact build endpoints | 2 weeks ago |
| README.md | c821d49386 feat(updates): add artifact build endpoints | 2 weeks ago |
| package.json | c944048bcf feat(updates): add release control service | 2 weeks ago |
| tsconfig.json | c944048bcf feat(updates): add release control service | 2 weeks ago |
| wrangler.jsonc | c944048bcf feat(updates): add release control service | 2 weeks ago |
The updates Worker serves all selected artifacts for a channel.
curl 'https://update.opencode.ai/api/latest'
curl 'https://update.opencode.ai/api/latest/cli'
curl 'https://update.opencode.ai/api/latest/cli/npm'
The /admin* route must be protected by a Cloudflare Access self-hosted application. Configure the application with:
update.opencode.aiadmin*The Worker has workers_dev and preview URLs disabled so the custom hostname is its only public entry point.
GitHub Actions publishes artifacts through POST /api/publish using a short-lived OIDC token with audience https://update.opencode.ai. The Worker accepts only tokens signed by GitHub for repository ID 975734319, owner ID 66570915, and .github/workflows/publish.yml on configured publishing refs.
Apply migrations and deploy from this directory:
bun run db:migrate
bun run deploy