This commit is contained in:
Dax Raad
2025-12-09 21:57:03 -05:00
committed by opencode
parent a3fbbece9a
commit c1ee6d6c41
4 changed files with 4 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ const IS_PREVIEW = CHANNEL !== "latest"
const VERSION = await (async () => {
if (env.OPENCODE_VERSION) return env.OPENCODE_VERSION
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-1")
const version = await fetch("https://registry.npmjs.org/opencode-ai/latest")
.then((res) => {
if (!res.ok) throw new Error(res.statusText)
return res.json()