Commit ffa4a54
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- packages/opencode
- bin
- script
- script/upstream
- utils
9 files changed
+262
-229
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
8 | 30 | | |
9 | 31 | | |
10 | 32 | | |
| |||
13 | 35 | | |
14 | 36 | | |
15 | 37 | | |
16 | | - | |
| 38 | + | |
17 | 39 | | |
18 | 40 | | |
19 | 41 | | |
| |||
134 | 156 | | |
135 | 157 | | |
136 | 158 | | |
137 | | - | |
| 159 | + | |
138 | 160 | | |
139 | 161 | | |
140 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 13 | | |
20 | 14 | | |
21 | 15 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 16 | + | |
| 17 | + | |
25 | 18 | | |
26 | | - | |
27 | 19 | | |
28 | 20 | | |
29 | 21 | | |
| |||
0 commit comments