hermes-agent/tests/plugins/platforms/photon
Teknium b62fc24dfa refactor(photon): resolve sidecar dir lazily, not at import time
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.
2026-07-28 22:41:32 -07:00
..
test_auth.py test(photon): allow auth.lock sentinel in temp-file leak assertions 2026-07-28 18:20:06 -07:00
test_check_requirements_risks.py fix(photon): support immutable install trees for the sidecar (NS-606) 2026-07-28 22:41:32 -07:00
test_fatal_notify_self_cancel.py fix(photon): dispatch fatal-error notification from a detached task 2026-07-28 21:45:52 -07:00
test_inbound.py fix(photon): ignore iMessage media placeholders 2026-07-28 18:17:52 -07:00
test_markdown.py feat(photon): upgrade to spectrum-ts 3.0.0 (pinned) with markdown + reactions 2026-06-12 01:07:38 -07:00
test_mention_gating.py feat(photon): gRPC-native iMessage channel (no webhook) 2026-06-08 21:03:58 -07:00
test_npm_error_log_regression.py fix(photon): support immutable install trees for the sidecar (NS-606) 2026-07-28 22:41:32 -07:00
test_outbound_media.py feat(photon): add native message effects 2026-07-28 22:10:57 -07:00
test_overflow_recovery.py test(photon): fix PlatformConfig kwargs in target_not_allowed standalone test 2026-07-28 21:45:52 -07:00
test_poll_clarify.py feat(photon): render multiple-choice clarify as a native iMessage poll 2026-07-28 22:10:57 -07:00
test_presence_watchdog.py fix(photon): rework zombie-stream watchdog for spectrum-ts 8 with strict probe semantics 2026-07-28 22:22:42 -07:00
test_reactions.py fix(photon): correlate tapbacks to bot message context 2026-06-27 00:51:34 -07:00
test_rich_links.py feat(photon): support rich link previews 2026-07-28 22:10:57 -07:00
test_runtime_record.py fix(photon): un-shadow the U+FFFC deferred-wait handler; fix stale sidecar-deps fixture 2026-07-28 21:28:25 -07:00
test_setup_access.py test(photon): stub token validation in setup tests to avoid network 2026-07-28 18:20:06 -07:00
test_sidecar_deps_stale.py fix(photon): auto-reinstall stale sidecar deps before start 2026-07-05 17:38:32 -07:00
test_sidecar_lifecycle.py fix(photon): support immutable install trees for the sidecar (NS-606) 2026-07-28 22:41:32 -07:00
test_sidecar_paths.py refactor(photon): resolve sidecar dir lazily, not at import time 2026-07-28 22:41:32 -07:00
test_spectrum_patch.py test(photon): copy sidecar helper modules into the spectrum-patch fixture 2026-07-28 22:22:42 -07:00
test_streaming.py fix(photon): mark adapter as not supporting message editing to suppress streaming cursor 2026-07-28 18:17:52 -07:00
test_url_send_path.py test(photon): replace source-grep URL-routing tests with behavior tests 2026-07-28 22:22:42 -07:00
test_zombie_stream_watchdog.py test(photon): drain detached fatal-notification task in zombie watchdog test 2026-07-28 22:22:42 -07:00