Repository navigation
Make init --with composition independent of argument order - #342
Merged
Merged
Conversation
Treat --with as an unordered set. ScaffoldResult gains optional provides, requires, after and conflicts; core orders host setup, activation entries and README sections topologically (lexical tie-break) and refuses a missing requirement, conflict or cycle before writing, naming the extensions. Store reads the pin under its own identifier; ui, auth and admin declare their kit and service requirements. Co-Authored-By: Claude Sonnet 5 <[email protected]>
jimhoyd
force-pushed
the
feat/init-with-order-independent
branch
from
September 20, 2026 21:30
3183466 to
6880fb5
Compare
This was referenced Sep 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #337 (does not close it).
What
--withis an unordered set. Core sorts names for the scaffold request, then orders host setup, activation entries, routes and README sections by the scaffolds' declared contract: optionalprovides,requires,after,conflictsonScaffoldResult(Kahn, lexically smallest ready first). Every permutation emits the same site and revision.storeProjectSha256(self-contained);after: ['ui.kit']keeps the historical ui-then-store order. ui providesui.kit; auth requires it; admin requiresui.kitandauth.service. Old order-based scaffold refusals removed.Tests
Fake-scaffold permutations, refusal-before-write (missing/conflict/cycle), real ui,auth,admin permutations and ui,auth,store vs store,auth,ui equivalence (same revision) in workspace integration.
Verification
npm ci,npm run verify(incl. verify:workspaces, audit:packages, workspace-integration) andcheck:docspass locally.Package sizes (unpacked / cap): core 2,150,255 / 2,355,200, 428 files / 440; ui 356,800 / 358,400 (unchanged); auth 827,638; admin 205,627; store 49,732. Caps untouched.
🤖 Generated with Claude Code