The open source coding agent.
TypeScript
ci: upgrade bun
Dax Raad6ed661c14024
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.ymlindex cc89914fe19..99d96eeb803 100644--- a/.github/workflows/deploy.yml+++ b/.github/workflows/deploy.yml@@ -17,7 +17,7 @@ jobs:- uses: oven-sh/setup-bun@v1with:- bun-version: latest+ bun-version: 1.2.17- run: bun installdiff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 58726815ff7..7a15729d801 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -32,7 +32,7 @@ jobs:- uses: oven-sh/setup-bun@v2with:- bun-version: 1.2.16+ bun-version: 1.2.17- name: Install makepkgrun: |diff --git a/packages/opencode/src/index.ts b/packages/opencode/src/index.tsindex 6546958b29c..d5890e8d7c4 100644--- a/packages/opencode/src/index.ts+++ b/packages/opencode/src/index.ts@@ -92,21 +92,22 @@ const cli = yargs(hideBin(process.argv))},})- ; (async () => {- if (Installation.VERSION === "dev") return- if (Installation.isSnapshot()) return- const config = await Config.global()- if (config.autoupdate === false) return- const latest = await Installation.latest()- if (Installation.VERSION === latest) return- const method = await Installation.method()- if (method === "unknown") return- await Installation.upgrade(method, latest)- .then(() => {- Bus.publish(Installation.Event.Updated, { version: latest })- })- .catch(() => { })- })()+ ;(async () => {+ if (Installation.VERSION === "dev") return+ if (Installation.isSnapshot()) return+ const config = await Config.global()+ if (config.autoupdate === false) return+ const latest = await Installation.latest().catch(() => {})+ if (!latest) return+ if (Installation.VERSION === latest) return+ const method = await Installation.method()+ if (method === "unknown") return+ await Installation.upgrade(method, latest)+ .then(() => {+ Bus.publish(Installation.Event.Updated, { version: latest })+ })+ .catch(() => {})+ })()await proc.exitedserver.stop()