feat: update build scripts

This commit is contained in:
Catriel Müller
2026-01-27 16:09:11 +01:00
parent 7f01f1456d
commit 48a8d80e1e
5 changed files with 129 additions and 70 deletions
+1 -1
View File
@@ -32,7 +32,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")
const version = await fetch("https://registry.npmjs.org/@kilocode/cli/latest")
.then((res) => {
if (!res.ok) throw new Error(res.statusText)
return res.json()