Skip to content

feat(extension): local binary build from materialized tree (#1094) - #1108

Merged
jeonghun-jj-lee merged 1 commit into
jj/1091-absorb-opencode-forkfrom
jj/1094-local-binary-build
Sep 13, 2026
Merged

jeonghun-jj-lee merged 1 commit into
jj/1091-absorb-opencode-forkfrom
jj/1094-local-binary-build

Conversation

@jeonghun-jj-lee

Copy link
Copy Markdown
Contributor

Summary

Adds build:binary — compiles the opencode engine binary from the overlay-materialized monorepo instead of downloading from the fork's GitHub release. Phase 2a of the fork-absorption campaign (#1091).

What changed

  • New script packages/extension/scripts/build_binary.mjs (198 lines):
    • Materializes the full opencode monorepo (reuses materialize.mjs's .materialized/ tree)
    • Overlay staleness detection mirrors build_app_bundle.mjs's .overlay-stamp mechanism
    • Builds via script/build.ts --single --skip-install --skip-embed-web-ui with OPENCODE_CHANNEL=dev
    • OPENCODE_VERSION sourced from opencode.lock.json; OPENCODE_RELEASE defensively deleted
    • bun resolution follows the same ladder as fetch_opencode.mjs (env → PATH → ~/.bun/bin)
    • Post-build: copies binary to vendor/opencode/<platform>/opencode, stamps .sha256 and .source sidecars
  • package.json wired: pnpm --filter amicode run build:binary

Verification

  • Binary builds successfully: 103 MB, version 1.18.29
  • .sha256 sidecar: correct hash
  • .source sidecar: overlay 517921ee... (fork SHA from manifest)
  • Boot smoke test passes (test:smoke → [smoke] PASS)
  • 20 overlay tests pass
  • Build is idempotent (second run reuses materialized tree, produces identical hash)

Sidecars

File Content
.sha256 0a465806c0b4c317111100cc863e97efa66cfbe43b61450c26f0b24a1e506bde
.source overlay 517921eecaa56eb9861a7b96a5bd2ee36ee42e86

Closes #1094. Part of #1091.

Add build:binary — compiles the engine from the overlay-materialized
monorepo instead of downloading from the fork release.

- Materialize stock upstream + overlay → full opencode monorepo
- Build via script/build.ts with --single --skip-install --skip-embed-web-ui
- Copy binary to vendor/ with sha256 + overlay-provenance sidecars
- Wire as pnpm --filter amicode run build:binary
@jeonghun-jj-lee jeonghun-jj-lee added the afk Implementable without human interaction label Sep 13, 2026
@coderabbitai

coderabbitai Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: c4e96d2d-20af-47a1-b3aa-6eb860bcbb3e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jeonghun-jj-lee
jeonghun-jj-lee marked this pull request as ready for review September 13, 2026 22:41
@jeonghun-jj-lee
jeonghun-jj-lee merged commit 31c9283 into jj/1091-absorb-opencode-fork Sep 13, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

afk Implementable without human interaction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant