Commit 8653003
authored
fix: v0.3.0 post-release — upgrade crash, install banner, upgrade detection (#161)
* fix: v0.3.0 post-release — upgrade crash, install banner, upgrade detection
- Backfill NULL migration names in `__drizzle_migrations` before Drizzle
`migrate()` runs. Drizzle beta.16 matches by `name` field; old DBs from
v0.2.x have NULL names causing all migrations to re-run and crash on
`CREATE TABLE project` (table already exists).
- Move postinstall `printWelcome()` from `console.log` to
`process.stderr.write` so the banner is visible under npm v7+ (which
silences postinstall stdout).
- Remove changelog dump from `showWelcomeBannerIfNeeded()` — the
postinstall banner now handles the install notification.
- Fix `method()` package detection: `opencode-ai` → `@altimateai/altimate-code`,
brew formula `opencode` → `altimate-code`.
- Fix `latest()` npm registry URL and brew formulae URL to use
`@altimateai/altimate-code` and `altimate-code.json`.
- Fix `getBrewFormula()` to reference `AltimateAI/tap/altimate-code`.
- Add `altimate_change` markers to all modified upstream-shared files.
- Add `db.ts` to required marker files in upstream-merge-guard test.
- Add 5 branding guard tests for installation detection, brew formula,
npm registry URL, and `getBrewFormula()`.
- Add 8 E2E install tests covering new user (clean DB) and existing user
(v0.2.x upgrade) scenarios, including backfill correctness,
idempotency, and edge cases.
- Add 5 unit tests for migration name backfill logic.
Closes #160
* fix: use precise `altimate-code` match in `getBrewFormula()`
Address code review finding: `includes("altimate")` could match
unrelated packages. Narrowed to `includes("altimate-code")`.
* fix: restore brief upgrade banner in `welcome.ts`
The previous commit removed the entire banner display, leaving
`showWelcomeBannerIfNeeded()` as dead code. Brew and curl install
users don't run postinstall.mjs, so they'd never see any feedback.
Restore a single-line "installed successfully!" message on stderr.
The verbose changelog dump remains removed — only the postinstall
box shows the full get-started hints.
Addresses review feedback from GPT 5.2 Codex, GLM-5, MiniMax M2.5.
* docs: fix stale @opencode-ai/plugin reference in CONTRIBUTING.md
Update to @altimateai/altimate-code-plugin to match the rebranded
npm package name.
* docs: fix .opencode/memory/ references to .altimate-code/memory/
Update 7 occurrences in memory-tools.md to use the rebranded
project config directory name.
* ci: skip unaffected jobs using path-based change detection
Add a `changes` job using dorny/paths-filter to detect which areas
of the codebase were modified. Jobs now skip when their paths are
unaffected:
- TypeScript tests: only on packages/opencode/**, bun.lock, etc.
- Python tests (3 matrix jobs): only on packages/altimate-engine/**
- Lint: only on packages/altimate-engine/src/**
- Marker Guard: always runs on PRs (unchanged)
Push to main always runs all jobs (safety net).
For a docs-only or CI-config-only change, this skips ~4 minutes of
unnecessary TypeScript + Python test runs.1 parent f17eb99 commit 8653003
File tree
12 files changed
+649
-55
lines changed- .github/workflows
- docs/docs/data-engineering/tools
- packages/opencode
- script
- src
- cli
- installation
- storage
- test
- branding
- install
- storage
12 files changed
+649
-55
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
14 | 47 | | |
15 | 48 | | |
| 49 | + | |
| 50 | + | |
16 | 51 | | |
17 | 52 | | |
18 | 53 | | |
| |||
77 | 112 | | |
78 | 113 | | |
79 | 114 | | |
| 115 | + | |
| 116 | + | |
80 | 117 | | |
81 | 118 | | |
82 | 119 | | |
| |||
95 | 132 | | |
96 | 133 | | |
97 | 134 | | |
| 135 | + | |
| 136 | + | |
98 | 137 | | |
99 | 138 | | |
100 | 139 | | |
| |||
116 | 155 | | |
117 | 156 | | |
118 | 157 | | |
119 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 54 | | |
76 | 55 | | |
77 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
127 | 128 | | |
| 129 | + | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| |||
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| 150 | + | |
148 | 151 | | |
149 | | - | |
| 152 | + | |
| 153 | + | |
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
| |||
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
| 169 | + | |
165 | 170 | | |
166 | 171 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
171 | 176 | | |
| 177 | + | |
172 | 178 | | |
173 | 179 | | |
174 | 180 | | |
| |||
280 | 286 | | |
281 | 287 | | |
282 | 288 | | |
283 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
284 | 292 | | |
285 | 293 | | |
286 | 294 | | |
| |||
295 | 303 | | |
296 | 304 | | |
297 | 305 | | |
298 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
299 | 309 | | |
300 | 310 | | |
301 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
83 | 121 | | |
84 | 122 | | |
85 | 123 | | |
| |||
110 | 148 | | |
111 | 149 | | |
112 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
113 | 154 | | |
114 | 155 | | |
115 | 156 | | |
| |||
0 commit comments