Skip to content

Commit 3f249ab

Browse files
committed
commit and push
1 parent 5c6ec1c commit 3f249ab

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

packages/opencode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@
8989
"@ai-sdk/xai": "2.0.51",
9090
"@aws-sdk/credential-providers": "3.993.0",
9191
"@clack/prompts": "1.0.0-alpha.1",
92-
"gitlab-ai-provider": "5.2.2",
93-
"opencode-gitlab-auth": "2.0.0",
9492
"@effect/platform-node": "catalog:",
9593
"@hono/standard-validator": "0.1.5",
9694
"@hono/zod-validator": "catalog:",
@@ -123,6 +121,7 @@
123121
"drizzle-orm": "catalog:",
124122
"effect": "catalog:",
125123
"fuzzysort": "3.1.0",
124+
"gitlab-ai-provider": "5.2.2",
126125
"glob": "13.0.5",
127126
"google-auth-library": "10.5.0",
128127
"gray-matter": "4.0.3",
@@ -133,6 +132,7 @@
133132
"mime-types": "3.0.2",
134133
"minimatch": "10.0.3",
135134
"open": "10.1.2",
135+
"opencode-gitlab-auth": "2.0.0",
136136
"opentui-spinner": "0.0.6",
137137
"partial-json": "0.1.7",
138138
"remeda": "catalog:",

packages/opencode/script/build.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,19 @@ for (const item of targets) {
199199
},
200200
})
201201

202+
// Smoke test: only run if binary is for current platform
203+
if (item.os === process.platform && item.arch === process.arch) {
204+
const binaryPath = `dist/${name}/bin/opencode`
205+
console.log(`Running smoke test: ${binaryPath} --version`)
206+
try {
207+
const versionOutput = await $`${binaryPath} --version`.text()
208+
console.log(`Smoke test passed: ${versionOutput.trim()}`)
209+
} catch (e) {
210+
console.error(`Smoke test failed for ${name}:`, e)
211+
process.exit(1)
212+
}
213+
}
214+
202215
await $`rm -rf ./dist/${name}/bin/tui`
203216
await Bun.file(`dist/${name}/package.json`).write(
204217
JSON.stringify(

0 commit comments

Comments
 (0)