refactor(runtime_provider): split ladder into collaborators; extract custom-provider and backend modules
- resolve_runtime_provider 463 -> 95 LOC; rung order documented and preserved (17,589-case fixture corpus, 0 diffs vs base incl. exceptions + log records) - hermes_cli/runtime_provider_custom.py: providers:/custom_providers: lookup, identity recovery, custom pools, named-custom runtime - hermes_cli/runtime_provider_backends.py: azure-foundry, openrouter/bare-custom, bedrock, external-process builders - moved bodies resolve origin-internal names via the origin module at call time so monkeypatch.setattr(runtime_provider, ...) in tests keeps applying - _EXPLICIT_RESOLVERS dispatch for the explicit-creds path; shared _finalize_base_url / _nous_min_key_ttl / _refresh_nous_pool_entry helpers
This commit is contained in:
+689
-1816
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user