Skip to content

chore(release): rafters v0.0.54#1422

Merged
ssilvius merged 5 commits intomainfrom
chore/release-v0.0.54
Apr 27, 2026
Merged

chore(release): rafters v0.0.54#1422
ssilvius merged 5 commits intomainfrom
chore/release-v0.0.54

Conversation

@ssilvius
Copy link
Copy Markdown
Collaborator

Releases the multi-folder paths feature from #1421 (closing #1420).

Changes

  • Bumps packages/cli/package.json from 0.0.53 -> 0.0.54.
  • Renames the Unreleased CHANGELOG section to 0.0.54.
  • Adds docs/CONFIG.md walking through the new path-field shape, the resolution rules, and the @shingle/shared motivation. Matches the voice of the existing topic docs (COLOR.md, SPACING.md, etc.).

Test plan

  • pnpm preflight clean
  • legion quality-gate record clean for HEAD

ssilvius and others added 5 commits April 24, 2026 22:00
…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>
Bumps the CLI from 0.0.53 -> 0.0.54 to ship the multi-folder paths
feature merged in #1421 (#1420). Adds docs/CONFIG.md walking through
the path field shape, resolution rules, and the @shingle/shared
motivation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ssilvius ssilvius merged commit d4ffad4 into main Apr 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant