Skip to content

1.2.2#7

Merged
puterjam merged 2 commits intomasterfrom
dev
Feb 19, 2026
Merged

1.2.2#7
puterjam merged 2 commits intomasterfrom
dev

Conversation

@puterjam
Copy link
Owner

Features

  • Sync Command - New command to sync templates and themes from GitHub
    • persona sync - Sync all (templates and themes)
    • persona sync --templates - Sync only templates
    • persona sync --themes - Sync only themes
    • persona sync --force - Force overwrite existing files

Improvements

  • Directory Resolution - Optimized template and theme loading order:
    1. User directory: ~/.persona/templates/, ~/.persona/themes/
    2. Current working directory (for pnpm dev)
    3. Environment variable: $PERSONA_ROOT/
    4. Built-in fallback

Installation

  • Install script now automatically syncs templates and themes on first install

- Add persona sync command to download templates and themes from GitHub
- Support --templates, --themes, --all, --force options
- Extract findWorkDir utility for reusable directory lookup
- Update install.sh to sync assets on install
- Update README with sync command documentation
- Optimize loading order: user dir > cwd > env > fallback
@puterjam puterjam merged commit 4c9197f into master Feb 19, 2026
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