Skip to content

The agent that grows with you

fix(catalog): move catalog_name onto the shared _AgentPluginInstallBody in web_models

Tekniumf7a26d8f9da0
diff --git a/hermes_cli/web_models.py b/hermes_cli/web_models.py
index fa5dd37243b..32dcc815f65 100644
--- a/hermes_cli/web_models.py
+++ b/hermes_cli/web_models.py
@@ -739,6 +739,8 @@ class _AgentPluginInstallBody(BaseModel):
identifier: str
force: bool = False
enable: bool = True
+ # Install by curated-catalog name (resolves repo + pinned SHA server-side).
+ catalog_name: Optional[str] = None
# --- from web_server.py (originally lines 19896-19898) ---
diff --git a/hermes_cli/web_server.py b/hermes_cli/web_server.py
index 869596de16c..bdbdb2f7a46 100644
--- a/hermes_cli/web_server.py
+++ b/hermes_cli/web_server.py
@@ -18691,13 +18691,6 @@ async def rescan_dashboard_plugins():
return {"ok": True, "count": len(plugins)}
-class _AgentPluginInstallBody(BaseModel):
- identifier: str
- force: bool = False
- enable: bool = True
- catalog_name: Optional[str] = None
-
-
def _strip_dashboard_manifest(p: Dict[str, Any]) -> Dict[str, Any]:
return {k: v for k, v in p.items() if not k.startswith("_")}