Skip to content

Commit f5466e7

Browse files
anandgupta42claude
andauthored
chore: rebrand user-facing references to Altimate Code (#134)
* chore: rebrand all user-facing references from OpenCode to Altimate Code Comprehensive rebranding of user-facing surfaces while preserving internal code names for upstream compatibility: - URLs: `opencode.ai` → `altimate.ai` - GitHub org: `anomalyco/opencode` → `AltimateAI/altimate-code` - Product name: "OpenCode" → "Altimate Code" in UI, prompts, docs - CLI binary: `opencode` → `altimate-code` in install scripts, nix - npm package: `opencode-ai` → `@altimateai/altimate-code` - Extensions: VSCode rebranded - Social: X handle → `@Altimateinc` - Brew tap: `AltimateAI/tap/altimate-code` - Container registry: `ghcr.io/AltimateAI` - All 20 localized READMEs Preserved internal names: `@opencode-ai/` scope, `packages/opencode/` dir, `OPENCODE_*` env vars, `.opencode/` config paths Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: additional user-facing branding fixes missed from upstream rebase - `.github/workflows/beta.yml`: "Install OpenCode" → "Install Altimate Code", `bun i -g opencode-ai` → `bun i -g @altimateai/altimate-code` - `.github/actions/setup-git-committer/action.yml`: descriptions updated from "OpenCode GitHub App" → "Altimate Code GitHub App" - `github/index.ts`: `spawn('opencode')` → `spawn('altimate-code')` Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: add upstream merge automation tooling Comprehensive automation for merging upstream OpenCode releases into the Altimate Code fork, inspired by Kilo-Org/kilocode's approach. Key scripts: - `merge.ts` — 11-step merge orchestration with auto-conflict resolution, branding transforms, version preservation, and `--continue` support - `analyze.ts` — `altimate_change` marker integrity audit + branding leak detection (CI-friendly exit codes) - `list-versions.ts` — upstream tag listing with merge status indicators - `verify-restructure.ts` — branch comparison verification Transforms (10 files): - Core branding engine with preservation-aware product name handling - `keepOurs` / `skipFiles` / lock file conflict auto-resolution - Specialized transforms for `package.json`, Nix, Tauri, i18n, extensions, web docs, workflows, and build scripts Configuration: - All branding rules in TypeScript (`utils/config.ts`) for type safety - URL, GitHub, registry, email, app ID, social, npm, brew mappings - Preserve patterns protect internal refs (`@opencode-ai/`, `OPENCODE_`) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: remove upstream-only packages, workflows, and artifacts (Kilo-style cleanup) Remove upstream platform packages (app, console, containers, desktop, desktop-electron, docs, enterprise, extensions, function, identity, slack, storybook, ui, web), translated READMEs, upstream-only workflows, nix packaging (nix/, flake.nix, flake.lock), SST infra (sst.config.ts, sst-env.d.ts), specs/, and .signpath/ config. - Update workspaces from `packages/*` glob to explicit package list - Remove unused catalog entries and devDependencies (sst, @aws-sdk/client-s3) - Remove unused scripts (dev:desktop, dev:web, dev:storybook) - Remove `electron` from trustedDependencies - Remove `@opencode-ai/app#test` task from turbo.json - Update merge-config.json and config.ts skipFiles with new patterns Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: remove upstream SST `infra/` directory and add to skipFiles Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: rewrite upstream merge README as a practical runbook Reorganized around the step-by-step workflow someone would follow when doing an upstream merge. Covers fork strategy, prerequisites, the full merge process, configuration reference, and troubleshooting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * test: add comprehensive branding, build integrity, and upstream merge guard tests Add 141 tests across 3 test files to prevent regressions: - `branding.test.ts` (33 tests): Verify all user-facing surfaces show Altimate branding — package metadata, CLI entry points, logo, welcome banner, install script, GitHub Action, VSCode extension, postinstall, and a full codebase leak scanner for `opencode.ai`/`anomalyco`/`opncd.ai` - `build-integrity.test.ts` (19 tests): Verify workspace config, turbo.json validity, package dependencies, binary entry points, skip/keepOurs consistency, and no orphaned package references - `upstream-guard.test.ts` (89 tests): Verify skipFiles/keepOurs config completeness, deleted upstream packages stay deleted, branding rules coverage, preserve patterns, and no upstream artifacts reappear Fix 14 upstream branding leaks found by the tests: - Replace `opencode.ai` URLs with `altimate.ai` in config.ts, retry.ts, dialog-provider.tsx, oauth-provider.ts, migrate-tui-config.ts - Replace `opncd.ai` with `altimate.ai` in share-next.ts and import.ts - Replace "OpenCode Go" with "Altimate Code Go" in dialog-provider.tsx Add CI enforcement: - New `branding-check.yml` workflow with branding audit + test jobs - Add `branding` job to existing `ci.yml` for PR checks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: remove separate branding CI workflow — tests run with `bun test` The branding unit tests already run as part of the existing `typescript` CI job via `bun test`. A separate workflow and branding audit on every commit is overkill — the `analyze.ts --branding` audit is a merge-time tool, not a per-commit check. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: persist version snapshot in merge state for `--continue` flow The `--continue` handler was re-snapshotting versions after the merge commit, capturing upstream versions instead of our pre-merge versions. Now the snapshot is saved in `.upstream-merge-state.json` and restored when resuming. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: address code review — XSS, branding leaks, regex safety - Fix XSS in OAuth error page: escape HTML in error parameter - Fix branding: `client_name` and HTML titles/text in OAuth pages now show "Altimate Code" instead of "OpenCode" - Fix Anthropic plugin regex: add word boundaries (`\b`) to prevent replacing "opencode" inside URLs, paths, and identifiers Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * ci: retry CI run --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2a09639 commit f5466e7

File tree

3,735 files changed

+6273
-503308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,735 files changed

+6273
-503308
lines changed

.github/actions/setup-git-committer/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: "Setup Git Committer"
22
description: "Create app token and configure git user"
33
inputs:
44
opencode-app-id:
5-
description: "OpenCode GitHub App ID"
5+
description: "Altimate Code GitHub App ID"
66
required: true
77
opencode-app-secret:
8-
description: "OpenCode GitHub App private key"
8+
description: "Altimate Code GitHub App private key"
99
required: true
1010
outputs:
1111
token:

.github/workflows/beta.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
2828
opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
2929

30-
- name: Install OpenCode
31-
run: bun i -g opencode-ai
30+
- name: Install Altimate Code
31+
run: bun i -g @altimateai/altimate-code
3232

3333
- name: Sync beta branch
3434
env:

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,4 @@ jobs:
8383
- name: Run tests
8484
run: pytest
8585
working-directory: packages/altimate-engine
86+

.github/workflows/compliance-close.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

.github/workflows/containers.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/daily-issues-recap.yml

Lines changed: 0 additions & 170 deletions
This file was deleted.

0 commit comments

Comments
 (0)