Skip to content

The agent that grows with you

fix(plugins): treat every guard code extension as revision-owned on no-git carry

kshitijk4poorb2d6fed3f186
diff --git a/hermes_cli/plugins_cmd_catalog.py b/hermes_cli/plugins_cmd_catalog.py
index 38e691d394d..677dc15cd94 100644
--- a/hermes_cli/plugins_cmd_catalog.py
+++ b/hermes_cli/plugins_cmd_catalog.py
@@ -294,8 +294,9 @@ _NO_GIT_REVISION_DIRS = frozenset({"desktop", "skills", "sidecar", "node_modules
def _revision_owned_without_git(rel: Path) -> bool:
"""True for plugin code/control surfaces an update must never resurrect from the old tree."""
+ from tools.plugin_guard import CODE_FILE_EXTENSIONS
return (
- rel.suffix == ".py"
+ rel.suffix.lower() in CODE_FILE_EXTENSIONS
or rel.as_posix() in _NO_GIT_REVISION_FILES
or bool(rel.parts and rel.parts[0] in _NO_GIT_REVISION_DIRS)
)