Commit Graph

16 Commits

Author SHA1 Message Date
Teknium b7157691f1 refactor(hermes_cli): hug docstring closers (text-verified) 2026-09-02 23:35:32 -07:00
Teknium c540655e5f refactor(hermes_cli): _group_display_name extraction; small collapses 2026-09-02 23:33:14 -07:00
Teknium b6de18eb0b refactor(hermes_cli): section-4 group init via setdefault 2026-09-02 23:29:37 -07:00
Teknium ac6e584268 refactor(hermes_cli): inline single-use picker constants; creds ladder collapse 2026-09-02 23:24:16 -07:00
Teknium 6776acd5d3 refactor(hermes_cli): moa_config/model_switch_providers doc compaction 2026-09-02 23:22:02 -07:00
Teknium 363eb7c6a9 refactor(hermes_cli): _absorb_entry_models shared by picker sections 3/4 2026-09-02 23:16:56 -07:00
Teknium aeabe4374f refactor(hermes_cli): flag tokenizer via iterator; signature packing 2026-09-02 23:09:45 -07:00
Teknium 97ff1f5ad4 refactor(hermes_cli): _Switch.resolve_runtime; _PickerBuild norm properties 2026-09-02 22:56:54 -07:00
Teknium 3154403db3 refactor(hermes_cli): model_switch_providers _entry_credentials; docstring compaction 2026-09-02 22:40:03 -07:00
Teknium 8b7c584a27 refactor(hermes_cli): model_switch_providers defensive-layer collapse; moa_cmd tidy 2026-09-02 22:29:43 -07:00
Teknium 6d55980f39 refactor(hermes_cli): model_switch/moa pass 3 (_clean/_extend_unique helpers, stale-catalog predicate) 2026-09-02 21:47:15 -07:00
Teknium d83bb6fc85 refactor(hermes_cli): model_switch/moa pass 2 (row/result packing, finalize helper) 2026-09-02 21:32:32 -07:00
Teknium 2845e3faf7 refactor(hermes_cli): model_switch/moa layout compaction (AST-verified) 2026-09-02 21:13:56 -07:00
Teknium c90e85188b refactor(hermes_cli): model_switch/moa pass 1 2026-09-02 20:45:09 -07:00
Teknium ce54c8e04a refactor(model_switch): collapse duplicate bodies, flatten alias/flag parsing, trim re-exports
- parse_model_flags_detailed: boolean flags via _BOOL_FLAGS table; scope ladder as data
- _load_direct_aliases / _configured_provider_matches / _config_declares_model /
  resolve_alias: single scan or builder per shape instead of parallel branches
- _route_from_model_input split at the MoA/alias seam (-> _route_after_alias)
- re-export block trimmed to the names referenced through hermes_cli.model_switch
  (acp_adapter, cli.py, tui_gateway, inventory, gateway, tests); orphaned trailing
  comment blocks folded into model_switch_providers docstrings
- 2389 -> 2079 lines; largest function _model_sort_key (90 LOC)

Parity: r2m_switch_corpus.py 434 entries byte-identical vs base; 70 model_switch test
files + tests/test_tui_gateway_server.py green.
2026-09-02 16:54:55 -07:00
Teknium 0fd89c0ae5 wip(model_switch): snapshot of in-progress provider-listing extraction + status split (worker died mid-run) 2026-09-02 16:10:32 -07:00