refactor(runtime): add transport profiles for provider execution - #876
refactor(runtime): add transport profiles for provider execution#876Allmight97 wants to merge 1 commit into
Conversation
|
Thanks for the work on this, @Allmight97! Unfortunately this PR is 270 commits behind main and conflicts fundamentally with changes that have landed since it was branched. What happened: Native Anthropic support was independently implemented on main via Why this can't merge:
If OpenCode Zen/Go support is desired: It should be built as a standard provider directly on the existing The rename of |
Summary
provider + modelWhy
Hermes currently resolves one runtime protocol per provider. That works for providers like OpenRouter or Codex, but it is too narrow for providers whose supported protocol depends on the selected model family.
OpenCode Zen is the motivating case:
Without an explicit transport profile, Hermes cannot add first-class OpenCode support cleanly.
What changed
hermes_cli.transport_profileswith explicit transports and legacyapi_modecompatibilityapi_modeassumptionsagent.transport_adaptersfor:Validation
./.venv/bin/python -m py_compile hermes_cli/transport_profiles.py hermes_cli/runtime_provider.py agent/transport_adapters.py run_agent.py cli.py gateway/run.py cron/scheduler.py tools/delegate_tool.py./.venv/bin/pytest tests/test_runtime_provider_resolution.py tests/test_transport_adapters.py tests/test_provider_parity.py tests/test_run_agent_codex_responses.py tests/test_cli_provider_resolution.py tests/test_api_key_providers.py -qNotes