Skip to content

Commit ffa4a54

Browse files
committed
fix: restore branding and version safeguards after upstream merge
Build regressions from upstream merge v1.2.26: - Restore binary name to `altimate` (was `opencode`) - Restore user-agent to `altimate/` (was `opencode/`) - Restore `ALTIMATE_ENGINE_VERSION` build-time define - Restore `OPENCODE_CHANGELOG` bundling - Restore `sourcemap: "external"` - Restore `--targets` flag support - Restore backward-compatible `altimate-code` symlink - Restore archive naming with `@altimateai/` prefix strip - Remove `gh release upload` from build (handled by CI) - Fix parser worker resolution via `import.meta.resolve` Package.json cleanup: - Remove junk fields (`randomField`) and echo-stub scripts - Remove `opencode` bin entry - Fix `altimate` bin path to `./bin/altimate` - Delete `bin/opencode` file Upstream merge safeguards: - Add `build.ts`, `publish.ts`, `bump-version.ts`, `bin/**` to keepOurs - Add `CHANGELOG.md` to keepOurs - Extend version snapshot to include engine files (`pyproject.toml`, `__init__.py`) - Add `sanitizePackageJson()` post-merge step - Switch `fetchRemote()` to `--no-tags` to prevent upstream tag pollution CHANGELOG fixes: - Fix over-branding: upstream project references should say "OpenCode"
1 parent 28d0585 commit ffa4a54

File tree

9 files changed

+262
-229
lines changed

9 files changed

+262
-229
lines changed

CHANGELOG.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.3.0] - 2026-03-15
9+
10+
### Added
11+
12+
- AI-powered prompt enhancement (#144)
13+
- Altimate Memory — persistent cross-session memory with TTL, namespaces, citations, and audit logging (#136)
14+
- Upstream merge with OpenCode v1.2.26 (#142)
15+
16+
### Fixed
17+
18+
- Sentry review findings from PR #144 (#147)
19+
- OAuth token refresh retry and error handling for idle timeout (#133)
20+
- Welcome banner on first CLI run after install/upgrade (#132)
21+
- `@altimateai/altimate-code` npm package name restored after upstream rebase
22+
- Replace `mock.module()` with `spyOn()` to fix 149 test failures (#153)
23+
24+
### Changed
25+
26+
- Rebrand user-facing references to Altimate Code (#134)
27+
- Bump `@modelcontextprotocol/sdk` dependency (#139)
28+
- Engine version bumped to 0.3.0
29+
830
## [0.2.5] - 2026-03-13
931

1032
### Added
@@ -13,7 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1335
- Datamate manager — dynamic MCP server management (#99)
1436
- Non-interactive mode for `mcp add` command with input validation
1537
- `mcp remove` command
16-
- Upstream merge with Altimate Code v1.2.20
38+
- Upstream merge with OpenCode v1.2.20
1739

1840
### Fixed
1941

@@ -134,7 +156,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
134156

135157
- Build: resolve @opentui/core parser.worker.js via import.meta.resolve for monorepo hoisting
136158
- Build: output binary as `altimate-code` instead of `opencode`
137-
- Publish: update Docker/AUR/Homebrew references from AltimateAI/altimate-code to AltimateAI/altimate-code
159+
- Publish: update Docker/AUR/Homebrew references from anomalyco/opencode to AltimateAI/altimate-code
138160
- Publish: make Docker/AUR/Homebrew steps non-fatal
139161
- Bin wrapper: look for `@altimateai/altimate-code-*` scoped platform packages
140162
- Postinstall: resolve `@altimateai` scoped platform packages

FEATURES_RESTRUCTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Custom agent modes added to `packages/opencode/src/agent/agent.ts` via `altimate
179179

180180
#### 16. Anthropic OAuth Plugin
181181
- **Files**: `packages/opencode/src/altimate/plugin/anthropic.ts`
182-
- **Description**: Custom plugin implementing Anthropic OAuth 2.0 authentication via PKCE flow. Supports two login modes: Claude Pro/Max subscription (claude.ai) and API key creation via console (console.anthropic.com). Handles token refresh, injects required OAuth beta headers, prefixes all tool names with `mcp_` as required by Anthropic's OAuth endpoint, strips the prefix in streaming responses, and sanitizes system prompts (replaces "Altimate Code" with "Claude Code"). Also zeroes out model costs for Pro/Max subscribers.
182+
- **Description**: Custom plugin implementing Anthropic OAuth 2.0 authentication via PKCE flow. Supports two login modes: Claude Pro/Max subscription (claude.ai) and API key creation via console (console.anthropic.com). Handles token refresh, injects required OAuth beta headers, prefixes all tool names with `mcp_` as required by Anthropic's OAuth endpoint, strips the prefix in streaming responses, and sanitizes system prompts (replaces "OpenCode" with "Claude Code"). Also zeroes out model costs for Pro/Max subscribers.
183183
- **Category**: Plugin
184184

185185
---

RELEASING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The monorepo produces two publishable packages:
88

99
| Package | Registry | Trigger |
1010
|---------|----------|---------|
11-
| `altimate-code-ai` | npm | `v*` tag (e.g., `v0.2.0`) |
11+
| `@altimateai/altimate-code` | npm | `v*` tag (e.g., `v0.3.0`) |
1212
| `altimate-engine` | PyPI | Same `v*` tag (published alongside CLI) |
1313

1414
Both packages are versioned and released together. The CLI embeds the expected engine version at build time and auto-installs it on end-user machines.
@@ -90,7 +90,7 @@ After the workflow completes:
9090

9191
```bash
9292
# npm
93-
npm info altimate-code-ai version
93+
npm info @altimateai/altimate-code version
9494

9595
# PyPI
9696
pip install altimate-engine==0.2.0

packages/opencode/bin/opencode

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

packages/opencode/package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,12 @@
1010
"test": "bun test --timeout 30000",
1111
"build": "bun run script/build.ts",
1212
"dev": "bun run --conditions=browser ./src/index.ts",
13-
"random": "echo 'Random script updated at $(date)' && echo 'Change queued successfully' && echo 'Another change made' && echo 'Yet another change' && echo 'One more change' && echo 'Final change' && echo 'Another final change' && echo 'Yet another final change'",
14-
"clean": "echo 'Cleaning up...' && rm -rf node_modules dist",
15-
"lint": "echo 'Running lint checks...' && bun test --coverage",
16-
"format": "echo 'Formatting code...' && bun run --prettier --write src/**/*.ts",
17-
"docs": "echo 'Generating documentation...' && find src -name '*.ts' -exec echo 'Processing: {}' \\;",
18-
"deploy": "echo 'Deploying application...' && bun run build && echo 'Deployment completed successfully'",
1913
"db": "bun drizzle-kit"
2014
},
2115
"bin": {
22-
"altimate-code": "./bin/altimate-code",
23-
"altimate": "./bin/altimate-code",
24-
"opencode": "./bin/opencode"
16+
"altimate": "./bin/altimate",
17+
"altimate-code": "./bin/altimate-code"
2518
},
26-
"randomField": "this-is-a-random-value-12345",
2719
"exports": {
2820
"./*": "./src/*.ts"
2921
},

0 commit comments

Comments
 (0)