mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
resolve_sidecar_dir() probes the filesystem (touch/unlink) and can mirror sidecar files to HERMES_HOME. Doing that as a module-import side effect meant plugin discovery, `hermes --help`, and test collection all paid a filesystem probe (and possibly a mirror copy) just for importing the photon adapter or CLI. Convert _SIDECAR_DIR/_NPM_ERROR_LOG in adapter.py and cli.py to lazy cached accessors (_sidecar_dir()/_npm_error_log()); resolution now happens on first actual use. Existing tests that monkeypatch the _SIDECAR_DIR module global keep working — the accessors honor a non-None value. Adds a regression test proving import performs no resolution. |
||
|---|---|---|
| .. | ||
| test_auth.py | ||
| test_check_requirements_risks.py | ||
| test_fatal_notify_self_cancel.py | ||
| test_inbound.py | ||
| test_markdown.py | ||
| test_mention_gating.py | ||
| test_npm_error_log_regression.py | ||
| test_outbound_media.py | ||
| test_overflow_recovery.py | ||
| test_poll_clarify.py | ||
| test_presence_watchdog.py | ||
| test_reactions.py | ||
| test_rich_links.py | ||
| test_runtime_record.py | ||
| test_setup_access.py | ||
| test_sidecar_deps_stale.py | ||
| test_sidecar_lifecycle.py | ||
| test_sidecar_paths.py | ||
| test_spectrum_patch.py | ||
| test_streaming.py | ||
| test_url_send_path.py | ||
| test_zombie_stream_watchdog.py | ||