Existing GSD users have skills in ~/.gsd/agent/skills/ that would silently vanish after the directory switch. This adds: 1. One-time migration in initResources() — copies skill directories from ~/.gsd/agent/skills/ to ~/.agents/skills/ (collision-safe, writes .migrated-to-agents marker so it runs at most once). 2. Legacy fallback reads in loadSkills() and getSkillSearchDirs() — the old directory is scanned as a low-priority fallback so skills work immediately, even before the migration runs on next restart. The old directory is NOT deleted — users can safely downgrade to a pre-migration GSD version without losing skills. |
||
|---|---|---|
| .. | ||
| cli | ||
| core | ||
| modes | ||
| resources/extensions/memory | ||
| tests | ||
| utils | ||
| cli.ts | ||
| config.ts | ||
| index.ts | ||
| main.ts | ||
| migrations.ts | ||