feat(persist): add --list-backups and --restore options for backup management

Add backup management functionality to the persist command:
- List available backups with timestamps and dates
- Restore from most recent or specific backup
- Improved error handling for corrupted settings.json
- Updated CLAUDE.md to document the persist command and the exception to the non-invasive constraint
This commit is contained in:
Leynier Gutiérrez González
2026-01-14 09:27:48 -05:00
committed by kaitranntt
parent 3b4c29ddcb
commit ef7e595b6f
5 changed files with 1006 additions and 1 deletions
+3
View File
@@ -233,6 +233,9 @@ Run ${color('ccs config', 'command')} for web dashboard`.trim();
['ccs config auth setup', 'Configure dashboard login'],
['ccs config auth show', 'Show dashboard auth status'],
['ccs config --port 3000', 'Use specific port'],
['ccs persist <profile>', 'Write profile env to ~/.claude/settings.json'],
['ccs persist --list-backups', 'List available settings.json backups'],
['ccs persist --restore', 'Restore settings.json from latest backup'],
['ccs sync', 'Sync delegation commands and skills'],
['ccs update', 'Update CCS to latest version'],
['ccs update --force', 'Force reinstall current version'],