Choose which orchestration skills get installed (#2680)
* feat(settings): choose which orchestration skills to install The skills row installed the whole bundle or nothing. A settings control next to it now opens a sheet where you keep every bundled skill or pick a subset, and saving converges ~/.agents, ~/.claude, and ~/.codex to it. "All skills" reads the bundle directory instead of a hardcoded catalog, so a skill added in a later release installs itself without another code change. Retired bundle names stay in a separate cleanup list so old copies on disk are still removed but never become selectable. The selection persists under Electron user data, separate from install state, so uninstalling does not erase the choice — a later install brings back exactly the chosen set. Installs with no saved selection read as "all", which is what they already had. * Restore skill selection after failed save * fix(settings): don't save a skill selection that never reached disk A failed save wrote the preference, converged, then wrote the old preference back. That leaves a window where a selection the user was told did not save is the one on disk, and a crash inside it makes the window permanent. Converge first and persist only on success — nothing to roll back, and a failed save now leaves disk and preference exactly as Cancel would. Resolving the bundle path when the command handlers are wired also broke daemon-manager's tests: the packaged branch reads process.resourcesPath, which is undefined outside Electron. Resolve targets per command instead — registering handlers should not touch the environment. * fix(settings): make skills convergence single-writer and confirm removals Startup auto-update and the settings commands were separate writers over the same skill directories. Either could apply a plan computed from a selection the other had already replaced — narrow the selection while startup is repairing drift and the repair puts the removed skill back. There is now one controller that owns scan, apply, and persist, and every entry point queues through it, so concurrent callers see a consistent result instead of an interleaved one. Save also had no recovery once it had converged: if the selection could not be committed afterwards, disk was changed while the preference still said the old thing, and the next startup silently undid the change. Save now puts the managed directories back to what the committed selection describes before it reports the failure, so a failed Save lands where Cancel would. Deselecting a skill deletes its directory in all three agent homes, including files the user put inside it. That is now confirmed like every other destructive action, naming the skills and the directories. Adding skills or saving an unchanged selection still saves without a prompt, and a skill the host has not installed yet deletes nothing so it does not prompt either. * fix(settings): confirm removal for skills installed in only some agent homes The removal confirmation read an `add` op as "not on disk yet". An `add` op means "missing from at least one target", so a skill sitting in ~/.claude but not the other two looked absent, and deselecting it deleted that directory — with anything the user had put inside it — without asking. The status snapshot now carries the installed skill names directly, taken from union presence across the three agent homes, and the confirmation reads that. `ops` keeps its one meaning. A host that predates the field cannot say what is on disk, so the app bridge assumes the saved selection is installed. Asking about a directory that turns out to be absent is harmless; the reverse is not. * fix(settings): warn about every skill directory a save deletes The confirmation asked "was this selected before and is it selected now", which is a different question from the one the host answers. The host converges to the desired set and deletes every managed directory outside it, so a skill on disk that the saved preference never mentioned — reinstalled by hand, restored by a sync, left behind by drift — was deleted with no warning, user files included. The predicate now mirrors the host rule: everything installed that the draft will not keep, regardless of what was saved before. It moved out of the sheet into its own module so the rule has one owner and can be tested directly. Saving with nothing to delete still does not prompt. * fix(settings): a failed save keeps files the user added inside a skill Save converges before it commits, and convergence deletes whole skill directories. When the commit then failed, the recovery re-installed the committed selection — which rebuilds the bundled files and nothing else, so notes, hooks, and anything else the user had put inside a deselected skill were gone for good. Cancel does not do that, and a failed save is supposed to land where Cancel would. Save now runs as a transaction. Before converging it stages a copy of every managed skill directory across the three agent homes, next to the tree so the copy stays on one filesystem. Committing drops the staging; failing anywhere puts each directory back exactly as it was, deletes the ones the candidate had created, and then drops the staging. Staging left by a process that died mid-save is cleaned up by the next one. The controller only sees begin/commit/rollback; the filesystem work lives in skills-transaction.ts. * fix(settings): make skill removal confirmation authoritative * fix(settings): verify skill convergence before commit * fix(settings): preserve concurrent skill edits on rollback * fix(settings): preserve staged skill metadata * fix(settings): stage skill deletions atomically * fix(settings): stage removals per filesystem * fix(settings): restore staged skill symlinks * fix(settings): canonicalize skill transaction roots * fix(settings): keep automatic skill updates non-destructive * fix(settings): report committed skill saves accurately * fix(settings): keep skill updates non-destructive * fix(settings): route skill removals through selection * fix(settings): close skill selection edge cases * fix(settings): preserve skill data during maintenance * fix(settings): hide unavailable skill install * fix(desktop): keep install policy at command boundary * fix(desktop): restore staged skill directories atomically * test(app): retry transient skills sandbox cleanup * fix(desktop): recover externally deleted skill stages * fix(desktop): preserve conflicting skill rollback data * fix(desktop): generalize skill rollback conflicts * fix(desktop): preserve skill rollback collisions * fix(desktop): recover quarantined skill backups * fix(app): inset adaptive sheet content on compact The compact Choose skills sheet rendered edge to edge: the All skills card touched both screen edges, the section label was glued to it, and the skill list ran to the edges too. Desktop was correct. AdaptiveModalSheet expressed its content inset through BottomSheetScrollView.contentContainerStyle. That is a library prop, not the style prop Unistyles registers, and gorhom's scroller was never rewritten by the Babel plugin, so on web the emitted class was never applied and the padding and gap resolved to nothing. The desktop card uses a real ScrollView, which Unistyles does track, which is why only compact was affected. The inset now lives on a View the sheet owns, rendered by every presentation, so one definition covers compact and desktop and a scroller only ever gets theme-free layout. The caller-facing prop is contentStyle, since it no longer lands on a scroll content container. Choose skills drops its ad-hoc label for SettingsSection, so the label carries the app's section rhythm instead of sitting equidistant between two cards. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(desktop): prevent skill rollback data loss Preserve externally replaced directory trees during recovery and reject managed child symlinks before synchronization can write outside a skill directory. --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
f3fee73976
commit
91da0bac4d
@@ -1160,6 +1160,7 @@ export const ar: TranslationResources = {
|
||||
installFailed: "غير قادر على تثبيت مهارات التنسيق.",
|
||||
updateFailed: "غير قادر على تحديث مهارات التنسيق.",
|
||||
uninstallFailed: "غير قادر على إلغاء تثبيت مهارات التنسيق.",
|
||||
saveSelectionFailed: "غير قادر على حفظ اختيار مهارات التنسيق.",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -1863,6 +1864,15 @@ export const ar: TranslationResources = {
|
||||
updateFallback: "مزامنة المهارات المجمعة لجهازك.",
|
||||
uninstallTitle: "إلغاء تثبيت مهارات Paseo ؟",
|
||||
uninstallMessage: "يزيل جميع مهارات تنسيق Paseo من ~/.agents ، ~/.claude ، ~/.codex.",
|
||||
choose: "اختيار المهارات",
|
||||
chooseAll: "كل المهارات",
|
||||
chooseAllHint: "أبقِ جميع المهارات المرفقة مثبتة، بما فيها ما يُضاف لاحقًا.",
|
||||
chooseList: "المهارات المرفقة",
|
||||
chooseEmpty: "لا تتضمن هذه النسخة أي مهارات.",
|
||||
removeTitle: "إزالة المهارات غير المحددة؟",
|
||||
removeMessage:
|
||||
"سيتم حذف {{skills}} من ~/.agents و~/.claude و~/.codex. كما يُحذف كل ما أضفته داخل مجلدات المهارات تلك.",
|
||||
saveFailed: "تعذر حفظ اختيار المهارات.",
|
||||
},
|
||||
actions: {
|
||||
install: "ثَبَّتَ",
|
||||
@@ -1870,7 +1880,10 @@ export const ar: TranslationResources = {
|
||||
installed: "تم التثبيت",
|
||||
update: "تحديث",
|
||||
working: "عمل...",
|
||||
remove: "إزالة",
|
||||
uninstall: "إلغاء التثبيت",
|
||||
save: "حفظ",
|
||||
saving: "جارٍ الحفظ...",
|
||||
},
|
||||
operations: {
|
||||
add: "أضف مهارة",
|
||||
|
||||
@@ -1170,6 +1170,7 @@ export const en = {
|
||||
installFailed: "Unable to install orchestration skills.",
|
||||
updateFailed: "Unable to update orchestration skills.",
|
||||
uninstallFailed: "Unable to uninstall orchestration skills.",
|
||||
saveSelectionFailed: "Unable to save the orchestration skills selection.",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -1874,6 +1875,15 @@ export const en = {
|
||||
uninstallTitle: "Uninstall Paseo skills?",
|
||||
uninstallMessage:
|
||||
"Removes all Paseo orchestration skills from ~/.agents, ~/.claude, ~/.codex.",
|
||||
choose: "Choose skills",
|
||||
chooseAll: "All skills",
|
||||
chooseAllHint: "Keep every bundled skill installed, including ones added later.",
|
||||
chooseList: "Bundled skills",
|
||||
chooseEmpty: "This build bundles no skills.",
|
||||
removeTitle: "Remove deselected skills?",
|
||||
removeMessage:
|
||||
"{{skills}} will be deleted from ~/.agents, ~/.claude, and ~/.codex. Anything you added inside those skill folders is deleted too.",
|
||||
saveFailed: "Could not save your skill selection.",
|
||||
},
|
||||
actions: {
|
||||
install: "Install",
|
||||
@@ -1881,7 +1891,10 @@ export const en = {
|
||||
installed: "Installed",
|
||||
update: "Update",
|
||||
working: "Working...",
|
||||
remove: "Remove",
|
||||
uninstall: "Uninstall",
|
||||
save: "Save",
|
||||
saving: "Saving...",
|
||||
},
|
||||
operations: {
|
||||
add: "Add skill",
|
||||
|
||||
@@ -1200,6 +1200,7 @@ export const es: TranslationResources = {
|
||||
installFailed: "No se pueden instalar habilidades de orquestación.",
|
||||
updateFailed: "No se pueden actualizar las habilidades de orquestación.",
|
||||
uninstallFailed: "No se pueden desinstalar las habilidades de orquestación.",
|
||||
saveSelectionFailed: "No se puede guardar la selección de habilidades de orquestación.",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -1912,6 +1913,16 @@ export const es: TranslationResources = {
|
||||
uninstallTitle: "¿Desinstalar las habilidadesPaseo?",
|
||||
uninstallMessage:
|
||||
"Elimina todas las habilidades de orquestaciónPaseode ~/.agents, ~/.claude, ~/.codex.",
|
||||
choose: "Elegir habilidades",
|
||||
chooseAll: "Todas las habilidades",
|
||||
chooseAllHint:
|
||||
"Mantén instaladas todas las habilidades incluidas, también las que se agreguen después.",
|
||||
chooseList: "Habilidades incluidas",
|
||||
chooseEmpty: "Esta versión no incluye habilidades.",
|
||||
removeTitle: "¿Eliminar las habilidades deseleccionadas?",
|
||||
removeMessage:
|
||||
"{{skills}} se eliminarán de ~/.agents, ~/.claude y ~/.codex. También se elimina todo lo que hayas añadido dentro de esas carpetas de habilidades.",
|
||||
saveFailed: "No se pudo guardar tu selección de habilidades.",
|
||||
},
|
||||
actions: {
|
||||
install: "Instalar",
|
||||
@@ -1919,7 +1930,10 @@ export const es: TranslationResources = {
|
||||
installed: "Instalado",
|
||||
update: "Actualizar",
|
||||
working: "Laboral...",
|
||||
remove: "Eliminar",
|
||||
uninstall: "Desinstalar",
|
||||
save: "Guardar",
|
||||
saving: "Guardando...",
|
||||
},
|
||||
operations: {
|
||||
add: "Agregar habilidad",
|
||||
|
||||
@@ -1202,6 +1202,8 @@ export const fr: TranslationResources = {
|
||||
installFailed: "Impossible d'installer les compétences d'orchestration.",
|
||||
updateFailed: "Impossible de mettre à jour les compétences d'orchestration.",
|
||||
uninstallFailed: "Impossible de désinstaller les compétences d'orchestration.",
|
||||
saveSelectionFailed:
|
||||
"Impossible d'enregistrer la sélection des compétences d'orchestration.",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -1915,6 +1917,16 @@ export const fr: TranslationResources = {
|
||||
uninstallTitle: "Désinstaller les compétencesPaseo?",
|
||||
uninstallMessage:
|
||||
"Supprime toutes les compétences d'orchestrationPaseode ~/.agents, ~/.claude, ~/.codex.",
|
||||
choose: "Choisir les compétences",
|
||||
chooseAll: "Toutes les compétences",
|
||||
chooseAllHint:
|
||||
"Gardez installées toutes les compétences fournies, y compris celles ajoutées plus tard.",
|
||||
chooseList: "Compétences fournies",
|
||||
chooseEmpty: "Cette version ne fournit aucune compétence.",
|
||||
removeTitle: "Supprimer les compétences décochées ?",
|
||||
removeMessage:
|
||||
"{{skills}} seront supprimées de ~/.agents, ~/.claude et ~/.codex. Tout ce que vous avez ajouté dans ces dossiers de compétences est également supprimé.",
|
||||
saveFailed: "Impossible d'enregistrer votre sélection de compétences.",
|
||||
},
|
||||
actions: {
|
||||
install: "Installer",
|
||||
@@ -1922,7 +1934,10 @@ export const fr: TranslationResources = {
|
||||
installed: "Installé",
|
||||
update: "Mise à jour",
|
||||
working: "Fonctionnement...",
|
||||
remove: "Supprimer",
|
||||
uninstall: "Désinstaller",
|
||||
save: "Enregistrer",
|
||||
saving: "Enregistrement...",
|
||||
},
|
||||
operations: {
|
||||
add: "Ajouter une compétence",
|
||||
|
||||
@@ -1173,6 +1173,7 @@ export const ja: TranslationResources = {
|
||||
installFailed: "オーケストレーションスキルをインストールできません。",
|
||||
updateFailed: "オーケストレーションスキルを更新できません。",
|
||||
uninstallFailed: "オーケストレーションスキルをアンインストールできません。",
|
||||
saveSelectionFailed: "オーケストレーションスキルの選択を保存できません。",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -1881,6 +1882,16 @@ export const ja: TranslationResources = {
|
||||
uninstallTitle: "Paseoスキルをアンインストールしますか?",
|
||||
uninstallMessage:
|
||||
"~/.agents、~/.claude、~/.codexからすべてのPaseoオーケストレーションスキルを削除します。",
|
||||
choose: "スキルを選択",
|
||||
chooseAll: "すべてのスキル",
|
||||
chooseAllHint:
|
||||
"後から追加されるものも含め、バンドルされたスキルをすべてインストールしたままにします。",
|
||||
chooseList: "バンドルされたスキル",
|
||||
chooseEmpty: "このビルドにはスキルが含まれていません。",
|
||||
removeTitle: "選択を外したスキルを削除しますか?",
|
||||
removeMessage:
|
||||
"{{skills}} を ~/.agents、~/.claude、~/.codex から削除します。それらのスキルフォルダー内に追加したものもすべて削除されます。",
|
||||
saveFailed: "スキルの選択を保存できませんでした。",
|
||||
},
|
||||
actions: {
|
||||
install: "インストール",
|
||||
@@ -1888,7 +1899,10 @@ export const ja: TranslationResources = {
|
||||
installed: "インストール済み",
|
||||
update: "更新",
|
||||
working: "処理中...",
|
||||
remove: "削除",
|
||||
uninstall: "アンインストール",
|
||||
save: "保存",
|
||||
saving: "保存中...",
|
||||
},
|
||||
operations: {
|
||||
add: "スキルを追加",
|
||||
|
||||
@@ -1186,6 +1186,7 @@ export const ptBR: TranslationResources = {
|
||||
installFailed: "Não foi possível instalar as skills de orquestração.",
|
||||
updateFailed: "Não foi possível atualizar as skills de orquestração.",
|
||||
uninstallFailed: "Não foi possível desinstalar as skills de orquestração.",
|
||||
saveSelectionFailed: "Não foi possível salvar a seleção de skills de orquestração.",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -1896,6 +1897,16 @@ export const ptBR: TranslationResources = {
|
||||
uninstallTitle: "Desinstalar Paseo skills?",
|
||||
uninstallMessage:
|
||||
"Remove todas as skills de orquestração do Paseo de ~/.agents, ~/.claude e ~/.codex.",
|
||||
choose: "Escolher skills",
|
||||
chooseAll: "Todas as skills",
|
||||
chooseAllHint:
|
||||
"Mantenha instaladas todas as skills incluídas, inclusive as adicionadas depois.",
|
||||
chooseList: "Skills incluídas",
|
||||
chooseEmpty: "Esta versão não inclui skills.",
|
||||
removeTitle: "Remover as skills desmarcadas?",
|
||||
removeMessage:
|
||||
"{{skills}} serão excluídas de ~/.agents, ~/.claude e ~/.codex. Tudo o que você adicionou dentro dessas pastas de skills também é excluído.",
|
||||
saveFailed: "Não foi possível salvar sua seleção de skills.",
|
||||
},
|
||||
actions: {
|
||||
install: "Instalar",
|
||||
@@ -1903,7 +1914,10 @@ export const ptBR: TranslationResources = {
|
||||
installed: "Instalado",
|
||||
update: "Atualizar",
|
||||
working: "Trabalhando...",
|
||||
remove: "Remover",
|
||||
uninstall: "Desinstalar",
|
||||
save: "Salvar",
|
||||
saving: "Salvando...",
|
||||
},
|
||||
operations: {
|
||||
add: "Adicionar skill",
|
||||
|
||||
@@ -1189,6 +1189,7 @@ export const ru: TranslationResources = {
|
||||
installFailed: "Невозможно установить навыки оркестровки.",
|
||||
updateFailed: "Невозможно обновить навыки оркестровки.",
|
||||
uninstallFailed: "Невозможно удалить навыки оркестровки.",
|
||||
saveSelectionFailed: "Не удалось сохранить выбор навыков оркестровки.",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -1901,6 +1902,15 @@ export const ru: TranslationResources = {
|
||||
updateFallback: "Синхронизируйте связанные навыки с вашим компьютером.",
|
||||
uninstallTitle: "Удалить навыки Paseo?",
|
||||
uninstallMessage: "Удаляет все навыки оркестровки Paseo из ~/.agents, ~/.claude, ~/.codex.",
|
||||
choose: "Выбрать навыки",
|
||||
chooseAll: "Все навыки",
|
||||
chooseAllHint: "Держите установленными все входящие навыки, включая добавленные позже.",
|
||||
chooseList: "Входящие навыки",
|
||||
chooseEmpty: "В этой сборке нет навыков.",
|
||||
removeTitle: "Удалить снятые навыки?",
|
||||
removeMessage:
|
||||
"{{skills}} будут удалены из ~/.agents, ~/.claude и ~/.codex. Всё, что вы добавили внутри этих папок навыков, тоже удаляется.",
|
||||
saveFailed: "Не удалось сохранить выбор навыков.",
|
||||
},
|
||||
actions: {
|
||||
install: "Установить",
|
||||
@@ -1908,7 +1918,10 @@ export const ru: TranslationResources = {
|
||||
installed: "Установлено",
|
||||
update: "Обновлять",
|
||||
working: "Работающий...",
|
||||
remove: "Удалить",
|
||||
uninstall: "Удалить",
|
||||
save: "Сохранить",
|
||||
saving: "Сохранение...",
|
||||
},
|
||||
operations: {
|
||||
add: "Добавить навык",
|
||||
|
||||
@@ -1144,6 +1144,7 @@ export const zhCN: TranslationResources = {
|
||||
installFailed: "无法安装编排 skills。",
|
||||
updateFailed: "无法更新编排 skills。",
|
||||
uninstallFailed: "无法卸载编排 skills。",
|
||||
saveSelectionFailed: "无法保存编排 skills 的选择。",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -1842,6 +1843,15 @@ export const zhCN: TranslationResources = {
|
||||
updateFallback: "将内置 skills 同步到你的机器。",
|
||||
uninstallTitle: "卸载 Paseo skills?",
|
||||
uninstallMessage: "会从 ~/.agents、~/.claude、~/.codex 移除所有 Paseo 编排 skills。",
|
||||
choose: "选择 skills",
|
||||
chooseAll: "全部 skills",
|
||||
chooseAllHint: "保持安装所有内置 skills,包括以后新增的。",
|
||||
chooseList: "内置 skills",
|
||||
chooseEmpty: "此版本未内置 skills。",
|
||||
removeTitle: "移除取消勾选的 skills?",
|
||||
removeMessage:
|
||||
"将从 ~/.agents、~/.claude、~/.codex 中删除 {{skills}}。你在这些 skill 文件夹里添加的内容也会一并删除。",
|
||||
saveFailed: "无法保存你的 skills 选择。",
|
||||
},
|
||||
actions: {
|
||||
install: "安装",
|
||||
@@ -1849,7 +1859,10 @@ export const zhCN: TranslationResources = {
|
||||
installed: "已安装",
|
||||
update: "更新",
|
||||
working: "处理中...",
|
||||
remove: "移除",
|
||||
uninstall: "卸载",
|
||||
save: "保存",
|
||||
saving: "正在保存...",
|
||||
},
|
||||
operations: {
|
||||
add: "添加 skill",
|
||||
|
||||
Reference in New Issue
Block a user