Skip to content

Commit 78915a0

Browse files
committed
refactor(update): rename updates service to update
1 parent 1ead175 commit 78915a0

11 files changed

Lines changed: 79 additions & 78 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
- name: Deploy update service
5050
if: github.ref_name == 'v2'
51-
working-directory: services/updates
51+
working-directory: services/update
5252
run: bun run deploy
5353
env:
5454
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

bun.lock

Lines changed: 70 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# OpenCode Updates
1+
# OpenCode Update
22

3-
The updates Worker serves all selected artifacts for a channel.
3+
The update Worker serves all selected artifacts for a channel.
44

55
```sh
66
curl 'https://opencode.ai/update/api/latest'
File renamed without changes.

services/updates/migrations/0002_artifact_time_created.sql renamed to services/update/migrations/0002_artifact_time_created.sql

File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
3-
"name": "@opencode/updates",
3+
"name": "@opencode/update",
44
"version": "1.18.4",
55
"private": true,
66
"type": "module",
77
"scripts": {
88
"deploy": "wrangler deploy",
99
"dev": "wrangler dev",
10-
"db:migrate": "wrangler d1 migrations apply opencode-updates --remote",
10+
"db:migrate": "wrangler d1 migrations apply DB --remote",
1111
"test": "bun test",
1212
"typecheck": "tsgo --noEmit"
1313
},
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default {
6464
]).catch(() => console.error("Failed to send update request event to the data lake")),
6565
)
6666

67-
if (pathname === "/") return json({ service: "opencode-updates" })
67+
if (pathname === "/") return json({ service: "opencode-update" })
6868
if (pathname === "/admin" && request.method === "GET") return admin(request, env, prefix)
6969
if (pathname === "/admin/activate" && request.method === "POST") return markArtifact(request, env, "active", prefix)
7070
if (pathname === "/admin/minimum" && request.method === "POST") return markArtifact(request, env, "minimum", prefix)
@@ -285,7 +285,7 @@ async function admin(request: Request, env: Env, prefix: string) {
285285
<head>
286286
<meta charset="utf-8">
287287
<meta name="viewport" content="width=device-width, initial-scale=1">
288-
<title>OpenCode Updates</title>
288+
<title>OpenCode Update</title>
289289
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/basecoat-css@1.0.2/dist/basecoat.cdn.min.css">
290290
<style>
291291
body { min-height: 100vh; background: var(--background); }

0 commit comments

Comments
 (0)