teknium1
23036e20a6
fix(ux): plain-language, actionable user-facing messages (core)
...
Squashed integration of the user-facing message audit for this surface set.
Full per-finding receipts: /tmp/ux-audit/lanes/*-receipt.md (campaign artifacts).
2026-09-15 04:12:13 -07:00
Teknium
0e78694c72
simplify(compat): hermes_cli.main — drop 198 re-exports/aliases (155 eager + 45 lazy PEP 562 + _warn_stale_dashboard_processes alias + _time/_self/_LAZY_* machinery), repoint 17 source callers + 91 test files
2026-09-03 15:07:39 -07:00
Teknium
e83816a4d1
review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)
...
For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
2026-09-03 09:44:26 -07:00
Teknium
31bc234a66
refactor(hermes_cli): compact setup-flow docstrings/comments; fold env-ref identity indexing
2026-09-02 21:54:56 -07:00
Teknium
0f767135f8
refactor(hermes_cli): unify curses radiolist-or-fallback into _radiolist (3 sites)
2026-09-02 21:17:50 -07:00
Teknium
a6e3fe5f5b
refactor(hermes_cli): try/except-pass -> contextlib.suppress in setup flows
2026-09-02 21:05:31 -07:00
Teknium
3709a7334e
refactor(hermes_cli): join remaining closer lines in setup flows
2026-09-02 21:00:49 -07:00
Teknium
9f9401cf05
refactor(hermes_cli): azure flow — current-settings dataclass, transport-detection phase helper; squeeze import blanks
2026-09-02 20:49:52 -07:00
Teknium
b5f96ab3e5
refactor(hermes_cli): AST-neutral layout compaction of provider/platform setup flows
2026-09-02 20:03:18 -07:00
Teknium
72490fa6cd
refactor(model_setup_flows): extract custom-endpoint, Azure Foundry and Bedrock wizards into concern modules
...
hermes_cli/model_setup_flows_custom.py (_model_flow_custom, _model_flow_named_custom + helpers),
model_setup_flows_azure.py (_model_flow_azure_foundry + Entra preflight / picker),
model_setup_flows_bedrock.py (BEDROCK_GEO_PREFIXES, routability predicates, both Bedrock flows).
Bodies moved verbatim (AST slices); every name re-exported from model_setup_flows (noqa: F401)
so hermes_cli.main and test imports keep resolving. Origin: 1975 -> 1159 lines.
Flow corpus (396 cases): 0 diffs; 34 test files / 364 tests green.
2026-09-02 16:39:35 -07:00
Teknium
57f828a3da
refactor(model_setup_flows): shared wizard skeleton in model_setup_flows_common, flows rebuilt on it (2849 -> 1975 lines)
...
- new hermes_cli/model_setup_flows_common.py: _say/_ask prompt primitives, _persist_model/
_finish_model (save model choice -> provider/base_url/api_mode -> scrub creds -> save),
_activate_provider_model (OAuth providers), _oauth_gate (login / use / reauth / cancel),
_curses_choice + _print_numbered (radio picker with numbered fallback); every existing
helper moved there and re-exported from the origin (noqa: F401).
- god flows split: azure_foundry -> _azure_entra_preflight/_azure_pick_model, custom ->
_probe_custom_endpoint/_pick_detected_model/_parse_context_length, named_custom ->
_configured_model_ids/_discover_named_custom_models/_pick_named_custom_model, nous ->
_nous_model_catalog, copilot -> _copilot_obtain_token, bedrock -> _bedrock_text_model_ids.
- 396-case scripted flow corpus (transcript/config.yaml/.env/auth.json): 0 diffs vs base.
2026-09-02 16:33:41 -07:00