feat(config)!: discover cella files under the cella/ folder - #16
Merged
Conversation
Move the three cella-owned control files out of the fork repo root into the existing cella/ folder, so all cella machinery lives in one place: cella.config.ts -> cella/cella.config.ts cella.manifest.json -> cella/cella.manifest.json The config loader, MANIFEST_FILE, and the managed-file/ignore match now resolve each file at its cella/ path via a single CONFIG_FILE constant. writeSyncManifest creates cella/ first, so a fresh fork's initial sync does not fail on a missing folder. BREAKING CHANGE: forks must move cella.config.ts and cella.manifest.json into their cella/ folder; the CLI no longer looks at the repo root. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
Move the cella-owned control files out of the fork repo root into the existing
cella/folder, so all cella machinery lives in one place:cella.config.ts→cella/cella.config.tscella.manifest.json→cella/cella.manifest.jsonHow
CONFIG_FILE = 'cella/cella.config.ts'constant inmanaged-files.ts, consumed by the config loader (config.ts) and the fork existence check (fork-utils.ts).MANIFEST_FILE → 'cella/cella.manifest.json'. All readers/writers already route through this constant.writeSyncManifestnow createscella/before writing, so a fresh fork's first sync doesn't fail on a missing folder.cella/and write the manifest/config into it).Companion change
Pairs with cellajs/cella (
refactor/cella-config-relocation), whichgit mvs the files, updatescella/migrations/run.ts, and ships an app migration to relocate existing forks' files. This CLI release must publish first, then cella bumps its@cellajs/clidependency to the published version.Verification
pnpm tscleanvitest run— 145/145 passBreaking change
Forks must move
cella.config.tsandcella.manifest.jsoninto theircella/folder; the CLI no longer looks at the repo root. The cella-side migration drives that move for apps.🤖 Generated with Claude Code