hermes-agent/tests/honcho_plugin
Erosika 5a6a0e2d38 style(honcho): hoist hashlib import; validate baseUrl scheme before 'local' sentinel
Two small follow-ups to the PR review:

- Hoist hashlib import from _enforce_session_id_limit() to module top.
  stdlib imports are free after first cache, but keeping all imports at
  module top matches the rest of the codebase.

- _resolve_api_key now URL-parses baseUrl and requires http/https +
  non-empty netloc before returning the 'local' sentinel.  A typo like
  baseUrl: 'true' (or bare 'localhost') no longer silently passes the
  credential guard; the CLI correctly reports 'not configured'.

Three new tests cover the new validation (garbage strings, non-http
schemes, valid https).
2026-04-24 18:48:10 -04:00
..
__init__.py feat(memory): pluggable memory provider interface with profile isolation, review fixes, and honcho CLI restoration (#4623) 2026-04-02 15:33:51 -07:00
test_async_memory.py fix(honcho): dialectic lifecycle — defaults, retry, prewarm consumption 2026-04-18 22:50:55 -07:00
test_cli.py style(honcho): hoist hashlib import; validate baseUrl scheme before 'local' sentinel 2026-04-24 18:48:10 -04:00
test_client.py fix(plugins/memory/honcho): default Honcho SDK HTTP timeout to 30s 2026-04-24 18:48:10 -04:00
test_pin_peer_name.py fix(honcho): pinPeerName opt-in keeps memory unified across platforms (#14984) 2026-04-24 18:48:10 -04:00
test_session.py fix: harden memory-context leak boundaries 2026-04-24 18:48:10 -04:00