feat(bootstrap): integrate adf migrate into bootstrap flow (closes #7)#17
Merged
SmartBrandStrategies merged 2 commits intomainfrom Mar 3, 2026
Merged
feat(bootstrap): integrate adf migrate into bootstrap flow (closes #7)#17SmartBrandStrategies merged 2 commits intomainfrom
SmartBrandStrategies merged 2 commits intomainfrom
Conversation
… keywords When heading-based routing returns core.adf, the classifier now checks element content against ON_DEMAND trigger keywords from manifest.adf (e.g. React → frontend.adf, API → backend.adf). This routes domain- specific rules under generic headings to the correct on-demand module instead of dumping everything into core.adf. Closes #6 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a migrate phase (step 4/6) between ADF init and dependency install. When agent config files (CLAUDE.md, .cursorrules, agents.md, etc.) exist with migratable content, bootstrap now handles migration automatically: - With --yes: auto-migrates using dedupe strategy, converts originals to thin pointers with backups - Without --yes: shows dry-run summary and suggests running manually or with --yes Exports migrateSource and SourceMigrationResult from adf-migrate.ts so bootstrap can call the per-file migration directly. Step numbering updated from [1/5]…[5/5] to [1/6]…[6/6]. Closes #7 Co-Authored-By: Claude Opus 4.6 <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.
Summary
--yes: auto-migrates using dedupe strategy, creates backups, converts to thin pointers--yes: shows dry-run summary and suggests running manually[1/5]…[5/5]to[1/6]…[6/6]migrateSourceandSourceMigrationResultfrom adf-migrate.ts for reuseDepends on: PR #15 (#6 — content-based routing). This PR includes that commit; merge #15 first, then this PR will be a clean single-commit diff.
Test plan
charter bootstrap --yeswith existing CLAUDE.md containing rules → migration runs at step [4/6], rules land in ADF modulescharter bootstrap(no --yes) with migratable files → dry-run summary shown, no files modifiedcharter bootstrap --yeswith no agent config files → step [4/6] shows "Skipped"charter bootstrap --yeswith thin-pointer CLAUDE.md → step [4/6] shows "Skipped" (already migrated)charter doctorpasses cleanly after bootstrap with migration🤖 Generated with Claude Code