Notes de release conformes, SKILLS archive a la migration

- notes reecrites sans tiret cadratin (convention du projet), avec la marche a
  suivre d'installation et la section de ce qui n'a pas ete teste
- migrate_07 archive aussi SKILLS/ (dossier mort depuis la fusion dans memory)
- commentaire d'en-tete de release.yml remis a jour
This commit is contained in:
nathaninline committed 2026-08-07 19:38:36 +02:00
1 parent 071caea516
commit f1c0917276
4 files changed
+44 -16

No files matched your search

+6
View File
@@ -131,6 +131,12 @@ func migrateFrom07(home string) error {
if err := importLegacyState(home); err != nil {
return err
}
// SKILLS/ : les skills ont été fondus dans la mémoire avant la 0.8, le
// dossier ne sert plus à rien mais peut contenir du travail de l'utilisateur.
// On l'archive au lieu de le laisser traîner ou de l'effacer.
if hasEntry(home, "SKILLS") {
_ = os.Rename(filepath.Join(home, "SKILLS"), filepath.Join(home, "avant-0.8", "SKILLS"))
}
fmt.Printf("%s reprise terminée — les anciens fichiers sont dans avant-0.8/\n\n", green("[ok]"))
return nil
}
+8 -2
View File
@@ -39,6 +39,7 @@ func fake07Home(t *testing.T) string {
write("mcp.json", `{"mcpServers":{"fs":{"command":"npx","enabled":true}}}`)
write("sysprompt.txt", "Tu es AJEAN.\n")
write("conversation.json", `{"seq":42,"messages":[{"role":"user","content":"salut"}]}`)
write("SKILLS/vieux-skill/SKILL.md", "# un skill d'avant\n")
return home
}
@@ -102,8 +103,13 @@ func TestMigration07(t *testing.T) {
}
// Les fichiers consommés sont rangés, pas détruits.
if _, err := os.Stat(filepath.Join(home, "avant-0.8", "config.env")); err != nil {
t.Error("config.env n'a pas été conservée dans avant-0.8/")
for _, archive := range []string{"config.env", "SKILLS"} {
if _, err := os.Stat(filepath.Join(home, "avant-0.8", archive)); err != nil {
t.Errorf("%s n'a pas été conservé dans avant-0.8/", archive)
}
}
if hasEntry(home, "SKILLS") {
t.Error("SKILLS/ traîne encore à la racine")
}
// Idempotence : relancer ne doit plus rien voir à migrer.