mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(restructure): fix stale references missed by import rewrite
- plugins_cmd.py: import rewriter changed `import hermes_cli` to `import hermes_agent.cli` but left variable usage as `hermes_cli.__file__`, causing a NameError at runtime - scripts/hermes-gateway: stale `from gateway.run import` (no .py extension so it was missed by **/*.py globs) - scripts/install.ps1: stale `tools\skills_sync.py` path, use hermes-skills-sync console_script instead
This commit is contained in:
parent
ff99611e16
commit
25072fe690
3 changed files with 6 additions and 6 deletions
|
|
@ -631,8 +631,8 @@ def _plugin_exists(name: str) -> bool:
|
|||
return True
|
||||
# Bundled: <repo>/plugins/<name>/
|
||||
from pathlib import Path as _P
|
||||
import hermes_agent.cli
|
||||
repo_plugins = _P(hermes_cli.__file__).resolve().parent.parent / "plugins"
|
||||
import hermes_agent.cli as _cli_pkg
|
||||
repo_plugins = _P(_cli_pkg.__file__).resolve().parent.parent / "plugins"
|
||||
if repo_plugins.is_dir():
|
||||
candidate = repo_plugins / name
|
||||
if candidate.is_dir() and (
|
||||
|
|
@ -659,8 +659,8 @@ def _discover_all_plugins() -> list:
|
|||
seen: dict = {} # name -> (name, version, description, source, path)
|
||||
|
||||
# Bundled (<repo>/plugins/<name>/), excluding memory/ and context_engine/
|
||||
import hermes_agent.cli
|
||||
repo_plugins = Path(hermes_cli.__file__).resolve().parent.parent / "plugins"
|
||||
import hermes_agent.cli as _cli_pkg
|
||||
repo_plugins = Path(_cli_pkg.__file__).resolve().parent.parent / "plugins"
|
||||
for base, source in ((repo_plugins, "bundled"), (_plugins_dir(), "user")):
|
||||
if not base.is_dir():
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ def is_windows() -> bool:
|
|||
|
||||
def run_gateway():
|
||||
"""Run the gateway in foreground."""
|
||||
from gateway.run import start_gateway
|
||||
from hermes_agent.gateway.run import start_gateway
|
||||
print("Starting Hermes Gateway...")
|
||||
print("Press Ctrl+C to stop.")
|
||||
print()
|
||||
|
|
|
|||
|
|
@ -689,7 +689,7 @@ Delete the contents (or this file) to use the default personality.
|
|||
$pythonExe = "$InstallDir\venv\Scripts\python.exe"
|
||||
if (Test-Path $pythonExe) {
|
||||
try {
|
||||
& $pythonExe "$InstallDir\tools\skills_sync.py" 2>$null
|
||||
& "$InstallDir\venv\Scripts\hermes-skills-sync.exe" 2>$null
|
||||
Write-Success "Skills synced to ~/.hermes/skills/"
|
||||
} catch {
|
||||
# Fallback: simple directory copy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue