Skip to content
Closed

Exa main #42111

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/exa-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Exa release — builds the CLI binaries for every platform from ONE runner
# (the build script cross-compiles via bun --target) and uploads them as
# release assets whose names match Exasol Studio's installer expectations
# (opencode-darwin-arm64.zip, opencode-linux-x64.tar.gz, ...).
#
# Trigger: push a tag like v1.18.12-exa.1 (upstream version + our patch rev).
name: exa-release

on:
push:
tags: ["v*-exa.*"]

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14 # matches root package.json packageManager

- name: Install dependencies
run: bun install

- name: Create the GitHub release (assets attach below)
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "${GITHUB_REF_NAME}" \
--title "${GITHUB_REF_NAME}" \
--notes "Exa engine — opencode ${GITHUB_REF_NAME%-exa.*} with Exa branding patches. See EXA.md for the patch series." \
--repo "${GITHUB_REPOSITORY}" || true

- name: Build all targets and upload assets
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
# v1.18.12-exa.1 -> 1.18.12-exa.1 (build script prefixes the v)
OPENCODE_RELEASE: "1"
run: |
export OPENCODE_VERSION="${GITHUB_REF_NAME#v}"
bun ./packages/opencode/script/build.ts
43 changes: 43 additions & 0 deletions EXA.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Exa — Exasol Studio's engine fork of opencode

This repository is a fork of [anomalyco/opencode](https://github.com/anomalyco/opencode)
(MIT license — see `LICENSE`, which is preserved unchanged). It powers the
**Exa** agent inside [Exasol Studio](https://github.com/Sheetaldharshan200/Exasol-studio),
which installs the engine from THIS repo's GitHub Releases as a managed
component. All credit for the engine belongs to the opencode project; this
fork only carries a minimal branding patch series on top.

## Branching & release model

- `exa-main` — the release branch: upstream tag + the patch series below.
- Tags: `v<upstream-version>-exa.<patch-rev>` (e.g. `v1.18.12-exa.1`).
Pushing a tag triggers `.github/workflows/exa-release.yml`, which builds
every platform binary on one runner (the upstream build script
cross-compiles via bun) and uploads assets with the SAME names upstream
uses (`opencode-darwin-arm64.zip`, `opencode-linux-x64.tar.gz`, …), so
Studio's installer needs only the repo + tag switched.
- Binary and asset names intentionally stay `opencode` — Studio's installer,
supervisor, and CLI shim depend on them; renaming buys nothing.

## Patch series (keep it MINIMAL — every patch must survive a rebase)

1. **oauth-page-branding** — `packages/core/src/oauth/page.ts`: the OAuth
callback page shown after ChatGPT/Copilot sign-ins renders "Exa" instead
of the upstream wordmark (user-visible strings + a simple original text
mark). Upstream has no whitelabel option for this page; if one lands,
drop this patch.

## Syncing with upstream

```sh
git remote add upstream https://github.com/anomalyco/opencode # once
git fetch upstream --tags
git checkout -b exa-rebase vX.Y.Z # the new upstream tag
git cherry-pick <patch commits from exa-main>
# resolve, verify: bun install && bun ./packages/opencode/script/build.ts --single
git branch -f exa-main exa-rebase && git push fork exa-main --force-with-lease
git tag vX.Y.Z-exa.1 && git push fork vX.Y.Z-exa.1 # CI releases
```

Then bump Exasol Studio: `verified_version` in `local_database.rs`,
`catalog.json`, and `ENGINE_TAG` in `ExaEnginePanel.tsx`.
56 changes: 28 additions & 28 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opencode-ai/app",
"version": "1.18.11",
"version": "1.18.12",
"description": "",
"type": "module",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/cli",
"version": "1.18.11",
"version": "1.18.12",
"type": "module",
"license": "MIT",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion packages/codemode/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/codemode",
"version": "1.18.11",
"version": "1.18.12",
"description": "Effect-native confined code execution over schema-described tools",
"private": true,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/console/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opencode-ai/console-app",
"version": "1.18.11",
"version": "1.18.12",
"type": "module",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/console/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/console-core",
"version": "1.18.11",
"version": "1.18.12",
"private": true,
"type": "module",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/console/function/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opencode-ai/console-function",
"version": "1.18.11",
"version": "1.18.12",
"$schema": "https://json.schemastore.org/package.json",
"private": true,
"type": "module",
Expand Down
Loading
Loading