GeezerVison is showing github.com — commit and push · cbarber/opencode@3f249ab
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/opencode/package.json +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 89 | 89 | "@ai-sdk/xai": "2.0.51", | 90 | 90 | "@aws-sdk/credential-providers": "3.993.0", | 91 | 91 | "@clack/prompts": "1.0.0-alpha.1", | 92 | | - "gitlab-ai-provider": "5.2.2", | 93 | | - "opencode-gitlab-auth": "2.0.0", | 94 | 92 | "@effect/platform-node": "catalog:", | 95 | 93 | "@hono/standard-validator": "0.1.5", | 96 | 94 | "@hono/zod-validator": "catalog:", | | 123 | 121 | "drizzle-orm": "catalog:", | 124 | 122 | "effect": "catalog:", | 125 | 123 | "fuzzysort": "3.1.0", | | 124 | + "gitlab-ai-provider": "5.2.2", | 126 | 125 | "glob": "13.0.5", | 127 | 126 | "google-auth-library": "10.5.0", | 128 | 127 | "gray-matter": "4.0.3", | | 133 | 132 | "mime-types": "3.0.2", | 134 | 133 | "minimatch": "10.0.3", | 135 | 134 | "open": "10.1.2", | | 135 | + "opencode-gitlab-auth": "2.0.0", | 136 | 136 | "opentui-spinner": "0.0.6", | 137 | 137 | "partial-json": "0.1.7", | 138 | 138 | "remeda": "catalog:", | |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/script/build.ts +13Lines changed: 13 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -199,6 +199,19 @@ for (const item of targets) { | 199 | 199 | }, | 200 | 200 | }) | 201 | 201 |
| | 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 | + | 202 | 215 | await $`rm -rf ./dist/${name}/bin/tui` | 203 | 216 | await Bun.file(`dist/${name}/package.json`).write( | 204 | 217 | JSON.stringify( | |
|