mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-29 06:31:32 +00:00
fix(skills): keep manual skills out of curator
This commit is contained in:
parent
cac4f2c0e6
commit
abcaf05229
5 changed files with 102 additions and 18 deletions
|
|
@ -786,8 +786,10 @@ def skill_manage(
|
|||
# that mutate an existing skill's guidance), drop the record on delete.
|
||||
# Best-effort; telemetry failures never break the tool.
|
||||
try:
|
||||
from tools.skill_usage import bump_patch, forget
|
||||
if action in ("patch", "edit", "write_file", "remove_file"):
|
||||
from tools.skill_usage import bump_patch, forget, mark_agent_created
|
||||
if action == "create":
|
||||
mark_agent_created(name)
|
||||
elif action in ("patch", "edit", "write_file", "remove_file"):
|
||||
bump_patch(name)
|
||||
elif action == "delete":
|
||||
forget(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue