Repository navigation
Commit 33d751d
chore(release): v0.12.2 (#1354)
* chore(release): v0.12.2
Promotes v0.12.2-beta.1 to `latest`, with the fixes from this release's
five-persona review and its adversarial test file:
- validate: fold SQL tokens only for names the schema itself folded — the
beta validated a wrong quoted `"SHIPPED_DATE"` against lowercase Postgres
metadata (review P0, reproduced); the quoted-lowercase collision on
Snowflake is pinned as a known limitation
- run: the "answered" step counter skips compaction steps, as the turn
budget does; the silent-turn directive bounds the tool name it interpolates
- tui: New in the skills browser is ctrl+o (ctrl+e is line-end in the filter
box); the adapter's `standalone: true` widening is explained in place
- finops: the BigQuery note names `datamate_bigquery_list_database_connections`
- CHANGELOG: the [0.12.2] entry, with the heads-ups every user needs
(documented env name now wins when both spellings are set, incl.
`ALTIMATE_CLI_DB`; headless `run` exits 1 where it exited 0); the FinOps
bullet labelled pilot-only
- test/skill/release-v0.12.2-adversarial.test.ts: hostile-input coverage for
the env rule, the lexer, unfold, the directive and the FinOps note
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6
* chore(release): v0.12.2 — fold only what the schema fold changed
Bot review on #1354: `foldedNames` listed a name as folded even when
`foldSchemaCase` kept it for a collision (`ORDERS` beside `orders`), and it
registered dotted segments of column names. It is derived from the original
and the folded definition now: a table key or column counts only if it was
stored folded and its original spelling is gone; segments are added for
table keys only. Tests for both. Changelog binding list corrected to
ctrl+a / ctrl+o / ctrl+g; the Postgres test asserts the error kind; the
directive labels the tool name as data.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6
* chore(release): v0.12.2 — no tool name in the synthetic prompt; heads-up covers the successful-tool case
Bot review on #1354. The silent-turn directive no longer carries the
tool's name (tool-controlled text in a user turn; the model has the failing
result in history) — the UI and stdout lines keep it. The changelog
heads-up says the exit-code change also applies after a tool that
succeeded. Adversarial file: control bytes escaped, timing limits relaxed.
The schema_path branch reuses the fold `loadSchemaFile` already computed.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6
* chore(release): v0.12.2 — no cross-table fold, no unfold inside literals
Consensus review of #1354 (6 models, two findings reproduced):
- CRITICAL: `foldedNames` pooled every table's folded columns, so `"ID"` against
table `a` (whose `id` was never folded) was rewritten because unrelated
table `b` had an uppercase `ID` — a validated query Postgres rejects. A
column name any table holds as written in lowercase is now never folded for
any table; mutation-checked test. The cost (a quoted `"ID"` against `b`
reported missing, as before 0.12.2) is documented in the changelog
- MAJOR: `unfoldText` rewrote quoted spans inside string literals, changing a
value; it steps over literals, dollar strings and comments as the fold does
- The adversarial file skips its fold cases where the native binding cannot
load; the hostile-tool-name test asserts the payload is absent (it was
vacuous after the name left the directive); the BigQuery note says the
listing tool is to be used where available
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 9943393 commit 33d751d
12 files changed
Lines changed: 421 additions & 55 deletions
File tree
- docs/docs/configure
- packages
- opencode
- src
- altimate
- native
- tools
- cli/cmd
- plugin/tui/altimate
- session
- test
- altimate
- session
- skill
- tui
- src/plugin
- test/ui
| 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 | + | |
8 | 28 | | |
9 | 29 | | |
10 | 30 | | |
| |||
14 | 34 | | |
15 | 35 | | |
16 | 36 | | |
17 | | - | |
| 37 | + | |
18 | 38 | | |
19 | 39 | | |
20 | 40 | | |
21 | | - | |
| 41 | + | |
22 | 42 | | |
23 | 43 | | |
24 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
Lines changed: 70 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
174 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
175 | 190 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
180 | 211 | | |
| 212 | + | |
181 | 213 | | |
182 | 214 | | |
183 | 215 | | |
| |||
259 | 291 | | |
260 | 292 | | |
261 | 293 | | |
262 | | - | |
263 | | - | |
| 294 | + | |
| 295 | + | |
264 | 296 | | |
265 | 297 | | |
266 | 298 | | |
267 | 299 | | |
268 | 300 | | |
269 | 301 | | |
270 | | - | |
| 302 | + | |
271 | 303 | | |
272 | 304 | | |
273 | 305 | | |
274 | 306 | | |
275 | | - | |
276 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
277 | 310 | | |
278 | 311 | | |
279 | 312 | | |
| |||
293 | 326 | | |
294 | 327 | | |
295 | 328 | | |
296 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
297 | 332 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
304 | 342 | | |
305 | 343 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
311 | 353 | | |
312 | 354 | | |
313 | 355 | | |
314 | 356 | | |
315 | 357 | | |
316 | | - | |
317 | | - | |
318 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
319 | 362 | | |
320 | 363 | | |
321 | 364 | | |
| |||
0 commit comments