v3.1.0 - Template Upgrade Feature
π New Feature: Template Upgrade
codesyncer update now automatically detects outdated templates and offers to upgrade them!
How it works
π¦ New Version Detected: v3.1.0
π my-project/
β’ CLAUDE.md (v3.0.0 β v3.1.0)
β’ COMMENT_GUIDE.md (no version β v3.1.0)
? Upgrade 2 template(s)?
> Yes - Upgrade (backup existing files to .backup)
No - Skip
Preview - Show files only
Features
- π Auto-detection: Reads version metadata from existing templates
- πΎ Safe backup: Creates
.backup.YYYY-MM-DDfiles before upgrading - π Variable preservation: Keeps your project name, tech stack, etc.
- ποΈ Preview mode: See what would change before upgrading
What's Changed
- Added version metadata (
<!-- codesyncer-version: X.Y.Z -->) to all templates - New utilities:
template-version.ts,template-upgrader.ts - Enhanced
updatecommand with upgrade flow - Updated README documentation
Installation / Update
npm install -g codesyncer@latestThen run in your project:
codesyncer updateFull Changelog: v3.0.1...v3.1.0