mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
feat(skills_sync): surface collision with reset-hint
When a newly-bundled skill's name collides with a pre-existing user
skill, sync silently kept the user's copy. Users never learned that
a bundled version shipped by that name.
Now (on non-quiet sync only) print:
⚠ <name>: bundled version shipped but you already have a local
skill by this name — yours was kept. Run `hermes skills reset
<name>` to replace it with the bundled version.
No behavior change to manifest writes or to the kept user copy —
purely additive warning on the existing collision-skip path.
This commit is contained in:
parent
3a97fb3d47
commit
24e8a6e701
2 changed files with 29 additions and 0 deletions
|
|
@ -218,6 +218,13 @@ def sync_skills(quiet: bool = False) -> dict:
|
|||
skipped += 1
|
||||
if _dir_hash(dest) == bundled_hash:
|
||||
manifest[skill_name] = bundled_hash
|
||||
elif not quiet:
|
||||
print(
|
||||
f" ⚠ {skill_name}: bundled version shipped but you "
|
||||
f"already have a local skill by this name — yours "
|
||||
f"was kept. Run `hermes skills reset {skill_name}` "
|
||||
f"to replace it with the bundled version."
|
||||
)
|
||||
else:
|
||||
dest.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copytree(skill_src, dest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue