Conversation
…es, rules (#1420) Path fields in RaftersConfig now accept either a single string (status quo) or an array of entries to support multi-folder layouts. Unlocks @shingle/shared: each shingle site can declare its own composites folder plus the shared package without copy-paste, while per-site token overrides stay local. Schema: componentsPath / primitivesPath / compositesPath / rulesPath: string | (string | { path: string; root?: true })[] Resolution: 1. Entry tagged { root: true } wins as install root 2. Else first entry whose realpath resolves inside cwd 3. Else framework default at cwd Local always wins on collision. resolveReadSet puts the install root first in the returned array, so first-write-wins loaders produce local-wins reads. New helpers in utils/paths.ts: resolveRoot, resolveReadSet. MCP composite loader reads the resolved set instead of hardcoded .rafters/composites. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The two-branch check (one for existing path, one for non-existing) was doing the same thing -- tryRealpath already returns the abs path on ENOENT, so a single isInsideCwd check covers both. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The init.installed shape gained a rules array in the multi-folder paths change but the integration assertion still listed only three buckets. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
# Conflicts: # packages/cli/CHANGELOG.md
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.
Releases the multi-folder paths feature from #1421 (closing #1420).
Changes
packages/cli/package.jsonfrom0.0.53->0.0.54.UnreleasedCHANGELOG section to0.0.54.docs/CONFIG.mdwalking through the new path-field shape, the resolution rules, and the@shingle/sharedmotivation. Matches the voice of the existing topic docs (COLOR.md, SPACING.md, etc.).Test plan
pnpm preflightcleanlegion quality-gate recordclean for HEAD