Willie
30f8fb0131
feat(agents): add project-mode backup and restore for agents
...
Add -p/--project support to 'backup agents' and 'restore agents' commands.
Project-mode backups are stored under .skillshare/backups/ (parallel to
.skillshare/trash/).
Backup engine changes:
- Add ProjectBackupDir(), CreateInDir(), ListInDir() to internal/backup
- Add RestoreLatestInDir(), FindBackupsForTargetInDir(),
GetBackupByTimestampInDir() to restore.go
- Existing global functions become thin wrappers (zero caller churn)
Command layer changes:
- Allow project mode through for kind=agents in cmdBackup/cmdRestore
- Auto-detect project mode when .skillshare/config.yaml exists
- Refactor backup_agents.go with resolveAgentBackupContext() to
resolve backup dir + agent targets per mode
Skills backup in project mode remains unsupported (error unchanged).
2026-04-07 18:27:08 +08:00
..
2026-04-07 18:27:08 +08:00
2026-04-07 18:05:40 +08:00
2026-04-07 18:05:40 +08:00
2026-04-07 18:05:40 +08:00
2026-04-07 18:05:40 +08:00
2026-04-07 18:05:40 +08:00
2026-03-26 23:47:28 +08:00
2026-02-28 03:44:02 +08:00
2026-02-25 07:02:54 +08:00
2026-03-06 23:10:48 +08:00
2026-03-02 02:23:50 +08:00
2026-02-21 06:07:35 +08:00
2026-02-25 07:02:54 +08:00
2026-02-26 22:27:23 +08:00
2026-02-28 18:48:51 +08:00
2026-02-16 00:08:59 +08:00
2026-03-29 04:59:23 +08:00
2026-02-25 07:02:54 +08:00
2026-03-02 02:23:50 +08:00
2026-03-18 00:19:30 +08:00
2026-03-29 04:59:23 +08:00
2026-03-18 22:35:02 +08:00
2026-03-20 02:36:50 +08:00
2026-02-16 00:08:59 +08:00
2026-02-11 03:40:54 +08:00
2026-02-13 14:21:37 +08:00
2026-02-13 14:21:37 +08:00
2026-03-17 04:48:42 +08:00
2026-03-17 04:48:42 +08:00
2026-04-07 18:05:40 +08:00
2026-02-23 04:18:01 +08:00
2026-02-21 06:07:35 +08:00
2026-02-18 22:23:50 +08:00
2026-04-01 00:32:49 +08:00
2026-02-18 22:23:50 +08:00
2026-03-18 00:19:30 +08:00
2026-03-26 22:50:03 +08:00
2026-03-26 22:50:03 +08:00
2026-02-18 22:23:50 +08:00
2026-02-18 22:23:50 +08:00
2026-02-25 07:02:54 +08:00
2026-02-23 04:18:01 +08:00
2026-02-24 01:47:38 +08:00
2026-02-25 07:02:54 +08:00
2026-02-24 01:47:38 +08:00
2026-03-06 02:15:36 +08:00
2026-02-21 06:07:35 +08:00
2026-02-25 07:02:54 +08:00
2026-02-25 07:02:54 +08:00
2026-04-07 18:05:40 +08:00
2026-02-16 00:08:59 +08:00
2026-02-24 01:47:38 +08:00
2026-03-18 22:35:02 +08:00
2026-02-22 15:13:10 +08:00
2026-02-21 21:12:51 +08:00
2026-03-26 22:44:44 +08:00
2026-03-02 02:23:50 +08:00
2026-02-27 05:39:49 +08:00
2026-03-06 02:15:36 +08:00
2026-02-11 03:40:54 +08:00
2026-03-18 22:35:02 +08:00
2026-02-16 00:08:59 +08:00
2026-03-18 00:19:30 +08:00
2026-03-19 04:16:36 +08:00
2026-02-27 05:39:49 +08:00
2026-03-25 21:14:16 +08:00
2026-04-07 17:26:37 +08:00
2026-02-26 22:27:23 +08:00
2026-03-02 10:05:57 +08:00
2026-04-01 00:32:49 +08:00
2026-02-20 13:45:52 +08:00
2026-04-06 17:28:10 +08:00
2026-02-16 00:08:59 +08:00
2026-02-21 06:07:35 +08:00
2026-03-17 04:48:42 +08:00
2026-03-02 02:23:50 +08:00
2026-03-04 12:16:32 +08:00
2026-02-16 00:08:59 +08:00
2026-03-18 22:35:02 +08:00
2026-02-25 07:02:54 +08:00
2026-03-26 22:50:03 +08:00
2026-02-16 10:41:14 +08:00
2026-02-21 06:07:35 +08:00
2026-02-23 04:18:01 +08:00
2026-03-03 16:08:11 +08:00
2026-03-26 22:50:03 +08:00
2026-03-03 16:08:11 +08:00
2026-03-25 21:14:16 +08:00
2026-02-11 03:40:54 +08:00
2026-02-16 10:41:14 +08:00