molecule-ai-workspace-templ.../tests
Hongming Wang ae3bf3196e fix(hermes): align env vars with upstream + add 12 missing providers
Three small but real cleanups against hermes-agent v0.12.0
(NousResearch/hermes-agent, 2026-04-30):

1. Rename HERMES_DEFAULT_MODEL -> HERMES_INFERENCE_MODEL (upstream's
   actual env name). Reads BOTH for one release cycle so workspace-server
   (which still writes the legacy name) doesn't break — drop the legacy
   fallback after workspace-server is updated in a follow-up PR.

2. Drop HERMES_API_KEY from start.sh's .env heredoc. That var only feeds
   hermes-agent's TUI gateway bridge, NOT any LLM provider. Provider
   credentials go through OPENROUTER_API_KEY / OPENAI_API_KEY / etc.

3. Add 12 missing provider prefixes to derive-provider.sh so model slugs
   like xai/grok-4, bedrock/anthropic.claude-sonnet-4, lmstudio/local,
   copilot/gpt-4o, etc., route to the correct provider instead of
   falling through to "auto".

New tests/test_derive_provider.sh — 26 sh-style assertions covering the
legacy fallback, the precedence rule, all 12 new providers, and a few
regression cases for adjacent prefixes (minimax vs minimax-oauth, qwen
vs qwen-oauth, alibaba vs alibaba-coding-plan).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 19:23:43 -07:00
..
__init__.py feat(workspace): runtime adapter uses hermes plugin /a2a/inbound path 2026-05-02 03:50:55 -07:00
conftest.py feat(workspace): runtime adapter uses hermes plugin /a2a/inbound path 2026-05-02 03:50:55 -07:00
test_adapter.py hotfix(adapter): default MOLECULE_A2A_PLATFORM_ENABLED=false 2026-05-02 18:51:00 -07:00
test_derive_provider.sh fix(hermes): align env vars with upstream + add 12 missing providers 2026-05-02 19:23:43 -07:00
test_executor_plugin_path.py hotfix(adapter): default MOLECULE_A2A_PLATFORM_ENABLED=false 2026-05-02 18:51:00 -07:00