The open source coding agent.
TypeScript
ci
Dax Raadc1ee6d6c41df
diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.tsindex 6e8bf4a861d..ff75bbb8daa 100755--- a/packages/opencode/script/publish.ts+++ b/packages/opencode/script/publish.ts@@ -37,10 +37,6 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write()const tags = [Script.channel]-if (!Script.preview) {- const major = Script.version.split(".")[0]- tags[0] = `latest-${major}`-}const tasks = Object.entries(binaries).map(async ([name]) => {if (process.platform !== "win32") {diff --git a/packages/opencode/src/installation/index.ts b/packages/opencode/src/installation/index.tsindex 18e9dc9e826..d630c3f93af 100644--- a/packages/opencode/src/installation/index.ts+++ b/packages/opencode/src/installation/index.ts@@ -184,7 +184,8 @@ export namespace Installation {return reg.endsWith("/") ? reg.slice(0, -1) : reg})const [major] = VERSION.split(".").map((x) => Number(x))- const channel = CHANNEL === "latest" ? `latest-${major}` : CHANNEL+ // const channel = CHANNEL === "latest" ? `latest-${major}` : CHANNEL+ const channel = CHANNELreturn fetch(`${registry}/opencode-ai/${channel}`).then((res) => {if (!res.ok) throw new Error(res.statusText)diff --git a/packages/script/src/index.ts b/packages/script/src/index.tsindex 2f3f96c8d8a..09ebb446356 100644--- a/packages/script/src/index.ts+++ b/packages/script/src/index.ts@@ -29,7 +29,7 @@ const IS_PREVIEW = CHANNEL !== "latest"const VERSION = await (async () => {if (env.OPENCODE_VERSION) return env.OPENCODE_VERSIONif (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()diff --git a/script/publish.ts b/script/publish.tsindex 1be0df20d62..ce0fd7d0d41 100755--- a/script/publish.ts+++ b/script/publish.ts@@ -9,7 +9,7 @@ const notes = [] as string[]console.log("=== publishing ===\n")if (!Script.preview) {- const previous = await fetch("https://registry.npmjs.org/opencode-ai/latest-1")+ const previous = await fetch("https://registry.npmjs.org/opencode-ai/latest").then((res) => {if (!res.ok) throw new Error(res.statusText)return res.json()