From 2017378db04ea1488ba092da0ca8cb672b02f1e4 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Sun, 16 Aug 2026 05:16:58 +0000 Subject: [PATCH] Fix beta integration --- packages/cli/package.json | 2 +- packages/cli/script/build.ts | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index e255181f63b..981e5a94a24 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -41,8 +41,8 @@ "solid-js": "catalog:", "tree-sitter-bash": "0.25.0", "tree-sitter-powershell": "0.25.10", - "web-tree-sitter": "0.25.10", "uqr": "0.1.3", + "web-tree-sitter": "0.25.10", "ws": "8.21.0" }, "devDependencies": { diff --git a/packages/cli/script/build.ts b/packages/cli/script/build.ts index b70462bfb51..1ead598995f 100755 --- a/packages/cli/script/build.ts +++ b/packages/cli/script/build.ts @@ -102,6 +102,17 @@ for (const item of targets) { const name = target.replace(binary, "cli") const executablePath = await compileExecutable(item) console.log(`building ${name}`) + const compileTarget = { + autoloadBunfig: false, + autoloadDotenv: false, + autoloadTsconfig: true, + autoloadPackageJson: true, + target: target.replace(binary, "bun") as Bun.Build.CompileTarget, + ...(executablePath ? { executablePath } : {}), + outfile: path.join(outdir, name, "bin", binary), + execArgv: [`--user-agent=${binary}/${Script.version}`, "--use-system-ca", "--no-warnings", "--"], + windows: {}, + } const result = await Bun.build({ entrypoints: ["./src/index.ts"], tsconfig: "./tsconfig.json", @@ -111,17 +122,7 @@ for (const item of targets) { minify: true, sourcemap: "inline", splitting: true, - compile: { - autoloadBunfig: false, - autoloadDotenv: false, - autoloadTsconfig: true, - autoloadPackageJson: true, - target: target.replace(binary, "bun") as Bun.Build.CompileTarget, - executablePath, - outfile: path.join(outdir, name, "bin", binary), - execArgv: [`--user-agent=${binary}/${Script.version}`, "--use-system-ca", "--no-warnings", "--"], - windows: {}, - }, + compile: compileTarget, define: { OPENCODE_VERSION: `'${Script.version}'`, OPENCODE_CLI_NAME: `'${binary}'`,