Commit 7845951
refactor(cli): declare the scaffold emission policy once — os init and os create stop restating the tsconfig and the devtool ranges (#15974)
* refactor(cli): extract the restated scaffold emission policy into one module
`os init` and `os create` each restated the third-party ranges and the
`tsconfig.json` an emitted project carries. Measured on the tree, the
TypeScript range was written in six places across three scaffolders and had
split into three values (`^5.3.0` / `^5.8.0` / `^6.0.0`); vitest into two.
Both CLI scaffolders now read one definition per value. Surviving values:
`^5.3.0` for TypeScript (the floor two live doc pages already state) and
`^4.0.0` for vitest (no recorded decision for either; `^4.0.18` claimed a
patch-level floor nothing justifies). Neither changes what an emitted project
installs — `^5.3.0` and `^5.8.0` both resolve to typescript 5.9.3, `^4.0.0`
and `^4.0.18` both to vitest 4.1.11.
`create-objectstack`'s `^6.0.0` is deliberately untouched: it cannot import
from `@objectstack/cli` (the dependency edge runs the other way), and unifying
it would change what a scaffolded project installs.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N
* test(cli): pin the shared scaffold emission policy across all five emissions
Both ends of every expectation are derived — from the renderers, from the
other scaffolder, or from the doc pages that already state the TypeScript
floor — so a transcription cannot go green on a half-edited tree.
`os init` writes its `tsconfig.json` inside `run()`, so that half is measured
by driving the real command into a throwaway directory and reading the bytes
off disk; an exported renderer nobody calls would pass every in-process
assertion. The two doc pages the floor case reads are declared in
`scripts/cross-package-test-inputs.mjs` and mirrored into `turbo.json`.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N
* chore(changeset): record the scaffold emission policy extraction
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N
* fix(cli): correct the shipped provenance claim, and record the two new declarations in the CI filter-parity pin
Two review findings from PR #15974.
1. The head reddened `check-ci-filter-parity --self-test`: the pre-#10015
rollback now uncovers 21 globs, not 19. Measured, the delta is exactly the
two `content/docs` pages this branch declared for `@objectstack/cli`
(troubleshooting.mdx, getting-started/index.mdx) — an origin/main control
yields 19 with an empty symmetric difference otherwise. Both are recorded by
name, the way the pin's own comment prescribes for #14824's three, rather
than the count merely being bumped.
2. The shipped history claim was wrong. `dbb54e12f0c` (2026-05-25) added the
bundled template at `^5.3.0`, not `^6.0.0`; `eaff01425b7` (#2907,
2026-07-14) moved it to `^6.0.0` and recorded no reasoning about TypeScript
— in that same one-file diff the five `@objectstack/*` ranges move
`^6.0.0` to `^14.0.0` while the `typescript` line moves onto the `^6.0.0`
they are vacating. So the three-value split is 53 days old, not 102, and
the two-value split is 210 (the changeset said 211). Corrected in init.ts,
create.ts, the pin's header and the changeset, which now agree.
A dated provenance claim written into source comments is exactly the restated
fact nothing checks that this card exists to close; shipping a wrong one inside
the fix would have been self-refuting.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent b1817fe commit 7845951
7 files changed
Lines changed: 522 additions & 77 deletions
File tree
- .changeset
- packages/cli
- src/commands
- test
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
| |||
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| 93 | + | |
87 | 94 | | |
88 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
89 | 103 | | |
90 | 104 | | |
91 | 105 | | |
| |||
121 | 135 | | |
122 | 136 | | |
123 | 137 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | 138 | | |
141 | 139 | | |
142 | 140 | | |
| |||
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
256 | | - | |
| 254 | + | |
257 | 255 | | |
258 | 256 | | |
259 | | - | |
260 | | - | |
261 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
262 | 260 | | |
263 | 261 | | |
264 | 262 | | |
265 | 263 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
276 | 268 | | |
277 | 269 | | |
278 | 270 | | |
| |||
367 | 359 | | |
368 | 360 | | |
369 | 361 | | |
370 | | - | |
| 362 | + | |
371 | 363 | | |
372 | 364 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
377 | 369 | | |
378 | 370 | | |
379 | 371 | | |
| |||
445 | 437 | | |
446 | 438 | | |
447 | 439 | | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
458 | 444 | | |
459 | 445 | | |
460 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
222 | 361 | | |
223 | 362 | | |
224 | 363 | | |
| |||
381 | 520 | | |
382 | 521 | | |
383 | 522 | | |
384 | | - | |
| 523 | + | |
385 | 524 | | |
386 | 525 | | |
387 | 526 | | |
| |||
471 | 610 | | |
472 | 611 | | |
473 | 612 | | |
474 | | - | |
475 | | - | |
| 613 | + | |
| 614 | + | |
476 | 615 | | |
477 | 616 | | |
478 | 617 | | |
| |||
545 | 684 | | |
546 | 685 | | |
547 | 686 | | |
548 | | - | |
| 687 | + | |
549 | 688 | | |
550 | 689 | | |
551 | 690 | | |
| |||
856 | 995 | | |
857 | 996 | | |
858 | 997 | | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
874 | 1004 | | |
875 | 1005 | | |
876 | 1006 | | |
| |||
0 commit comments