Commit 3f7b4ff
* fix(spec): declare EngineAggregateOptions.groupBy as the GroupByNodeSchema union (#8032)
The engine has always read structured { field, dateGranularity, alias }
buckets on this key (date bucketing, credential-aggregation guard); the
declaration said string[], so every correct caller had to cast. Catch the
declaration up to the enforced contract:
- spec: EngineAggregateOptionsSchema.groupBy -> z.array(GroupByNodeSchema),
pin tests in both directions (structured buckets parse; plain strings
parse byte-identically; bad dateGranularity / field-less bucket rejected)
- objectql: engine drops its own groupBy casts; the two landed test casts
removed (internal-fields structured-bucket case now type-checks honestly;
filter-array-lowering cast narrowed to the deliberately off-contract
where slot)
- mcp: McpDataBridge.aggregate retyped onto the engine's own
EngineAggregateOptions slices - closes function:string vs the six-name
enum, dateGranularity:string vs the five-name vocabulary, and
distinct?:boolean vs the #6815 retiredKey tombstone; stdio bridge
compiles with zero casts
No engine/runtime behavior change.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0123k4cam2jEAkPmbJeoaY3r
* docs(spec): regenerate references for the EngineAggregateOptions.groupBy union (#8032)
check:generated proved exactly one artifact stale (gen:docs); regenerated
that one only. gen:openapi restored after gen:schema's cleanup (untracked,
kept for the local rest runs).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0123k4cam2jEAkPmbJeoaY3r
* merge origin/main (os-regen artifacts taken from main; regeneration follows)
* docs(spec): re-apply the groupBy union reference rows after os-regen merge (#8032)
os-regen-merge took main's side of references/**; gen:docs re-applies the
three EngineAggregateOptions.groupBy rows on top of the merged state.
check:generated: all 13 artifacts up to date.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0123k4cam2jEAkPmbJeoaY3r
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 021d8dd commit 3f7b4ff
10 files changed
Lines changed: 108 additions & 46 deletions
File tree
- .changeset
- content/docs/references/data
- packages
- mcp/src
- objectql/src
- spec/src/data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
83 | 92 | | |
84 | 93 | | |
85 | 94 | | |
86 | 95 | | |
87 | 96 | | |
88 | | - | |
89 | | - | |
| 97 | + | |
| 98 | + | |
90 | 99 | | |
91 | 100 | | |
92 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 54 | | |
59 | 55 | | |
60 | 56 | | |
| |||
210 | 206 | | |
211 | 207 | | |
212 | 208 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
230 | 214 | | |
231 | 215 | | |
232 | | - | |
233 | | - | |
| 216 | + | |
| 217 | + | |
234 | 218 | | |
235 | 219 | | |
236 | 220 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
443 | 447 | | |
444 | | - | |
445 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
446 | 452 | | |
447 | 453 | | |
448 | 454 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9897 | 9897 | | |
9898 | 9898 | | |
9899 | 9899 | | |
9900 | | - | |
9901 | | - | |
| 9900 | + | |
| 9901 | + | |
9902 | 9902 | | |
9903 | 9903 | | |
9904 | 9904 | | |
| |||
9934 | 9934 | | |
9935 | 9935 | | |
9936 | 9936 | | |
9937 | | - | |
| 9937 | + | |
9938 | 9938 | | |
9939 | 9939 | | |
9940 | 9940 | | |
| |||
9961 | 9961 | | |
9962 | 9962 | | |
9963 | 9963 | | |
9964 | | - | |
| 9964 | + | |
9965 | 9965 | | |
9966 | 9966 | | |
9967 | 9967 | | |
9968 | | - | |
| 9968 | + | |
9969 | 9969 | | |
9970 | 9970 | | |
9971 | 9971 | | |
| |||
9977 | 9977 | | |
9978 | 9978 | | |
9979 | 9979 | | |
9980 | | - | |
| 9980 | + | |
9981 | 9981 | | |
9982 | 9982 | | |
9983 | 9983 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
374 | 373 | | |
375 | 374 | | |
376 | 375 | | |
377 | 376 | | |
378 | | - | |
| 377 | + | |
379 | 378 | | |
380 | 379 | | |
381 | 380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
479 | 526 | | |
480 | 527 | | |
481 | 528 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
330 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
331 | 338 | | |
332 | 339 | | |
333 | 340 | | |
| |||
0 commit comments