Merge branch 'dev' into sqlite2

This commit is contained in:
Dax Raad
2026-01-31 16:08:47 -05:00
146 changed files with 12852 additions and 4207 deletions
+2 -2
View File
@@ -14,11 +14,11 @@ process.chdir(dir)
import pkg from "../package.json"
import { Script } from "@opencode-ai/script"
const modelsUrl = process.env.OPENCODE_MODELS_URL || "https://models.dev"
// Fetch and generate models.dev snapshot
const modelsData = process.env.MODELS_DEV_API_JSON
? await Bun.file(process.env.MODELS_DEV_API_JSON).text()
: await fetch(`https://models.dev/api.json`).then((x) => x.text())
: await fetch(`${modelsUrl}/api.json`).then((x) => x.text())
await Bun.write(
path.join(dir, "src/provider/models-snapshot.ts"),
`// Auto-generated by build.ts - do not edit\nexport const snapshot = ${modelsData} as const\n`,
-4
View File
@@ -37,7 +37,6 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
),
)
/*
const tasks = Object.entries(binaries).map(async ([name]) => {
if (process.platform !== "win32") {
await $`chmod -R 755 .`.cwd(`./dist/${name}`)
@@ -53,7 +52,6 @@ const platforms = "linux/amd64,linux/arm64"
const tags = [`${image}:${version}`, `${image}:${Script.channel}`]
const tagFlags = tags.flatMap((t) => ["-t", t])
await $`docker buildx build --platform ${platforms} ${tagFlags} --push .`
*/
// registries
if (!Script.preview) {
@@ -65,7 +63,6 @@ if (!Script.preview) {
const [pkgver, _subver = ""] = Script.version.split(/(-.*)/, 2)
/*
// arch
const binaryPkgbuild = [
"# Maintainer: dax",
@@ -179,7 +176,6 @@ if (!Script.preview) {
}
}
}
*/
// Homebrew formula
const homebrewFormula = [