summaryrefslogtreecommitdiffhomepage
path: root/packages/script
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-10-14 14:57:25 -0400
committerDax Raad <[email protected]>2025-10-14 14:57:34 -0400
commitf17a7cde8d7bd39ec28e9daf6bee2065be90fdfa (patch)
tree9eecb93a6d2a345226ab7362e3b03cdd00b82eba /packages/script
parent6d446c2a0319e425c3310251a9a8c77db4b2bbd8 (diff)
downloadopencode-f17a7cde8d7bd39ec28e9daf6bee2065be90fdfa.tar.gz
opencode-f17a7cde8d7bd39ec28e9daf6bee2065be90fdfa.zip
sync
Diffstat (limited to 'packages/script')
-rw-r--r--packages/script/src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/script/src/index.ts b/packages/script/src/index.ts
index 70232d3ab..d5b2c9e4a 100644
--- a/packages/script/src/index.ts
+++ b/packages/script/src/index.ts
@@ -7,7 +7,7 @@ if (process.versions.bun !== "1.3.0") {
const CHANNEL = process.env["OPENCODE_CHANNEL"] ?? (await $`git branch --show-current`.text().then((x) => x.trim()))
const IS_PREVIEW = CHANNEL !== "latest"
const VERSION = await (async () => {
- if (IS_PREVIEW) return `0.0.0-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}`
+ if (IS_PREVIEW) return `0.0.0-${CHANNEL}-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}`
const version = await fetch("https://registry.npmjs.org/opencode-ai/latest")
.then((res) => {
if (!res.ok) throw new Error(res.statusText)