Commit Graph

28243 Commits

Author SHA1 Message Date
Teknium fd2bfa1893 refactor(gateway/kanban): lift notifier delivery into _KanbanNotification + event-formatter table, dispatcher into _DispatcherSettings/_KanbanDispatcher; unify board enumeration/tick sleep 2026-09-02 15:57:11 -07:00
Teknium 3ab00ea93a refactor(cli/setup.py): shared _info() line printer; pack print_info runs across setup modules 2026-09-02 15:57:06 -07:00
Teknium b98a4246c3 refactor(hermes_cli/main): extract desktop (Electron) cluster to main_desktop.py 2026-09-02 15:56:56 -07:00
Teknium 61c83bafef refactor(config_defaults): compact comments by hand (keep rules/invariants, drop history) 2026-09-02 15:56:54 -07:00
Teknium 9b05f0df55 refactor(doctor): split config and host-platform checks into doctor_config.py / doctor_platform.py 2026-09-02 15:56:21 -07:00
Teknium a4f17d7a4b refactor(stt): shared REST transcript helper, flatten command-provider except ladder and hook override loop 2026-09-02 15:56:00 -07:00
Teknium 096826bf7d refactor(update): split gateway fleet restart/verify into update_cmd_fleet.py 2026-09-02 15:55:50 -07:00
Teknium ade852f1d5 refactor(mcp): extract atomic snapshot publish from refresh_agent_mcp_tools; compact docstrings by hand 2026-09-02 15:55:38 -07:00
Teknium f8d7733640 refactor(gateway/slash): dedupe /reset hook payloads + tool-state clears, /branch row copy 2026-09-02 15:55:22 -07:00
Teknium 0679a0ca15 refactor(state): compact module-level comments/docstrings (keep every WHY) 2026-09-02 15:54:56 -07:00
Teknium 7e939af627 refactor(computer_use): compact permissions/vision_routing/backend/__init__ docstrings and spacing 2026-09-02 15:54:54 -07:00
Teknium a8f3dc4946 refactor(termhub): derive ensure_hub_dirs seeds from state-file EMPTY shapes; module docstrings name the split companions 2026-09-02 15:54:47 -07:00
Teknium 337267f00e refactor(computer_use): compact cua_backend origin (best-effort helper, trimmed re-exports) 2026-09-02 15:54:29 -07:00
Teknium 428dcfd3a6 refactor(terminal): lift pre-exec block sequence into _pre_exec_block 2026-09-02 15:54:15 -07:00
Teknium d4b59e044c refactor(computer_use): tool.py — nullcontext in _stop_backend 2026-09-02 15:54:13 -07:00
Teknium cb5af57623 refactor(models): dict-dispatch provider_model_ids; extract static catalog tables and unified reasoning-caps cache into models_catalog_static / models_reasoning_caps 2026-09-02 15:53:59 -07:00
Teknium d7c64815a7 refactor(cli/plugins): repack multi-line statements to <=100 cols (AST-identical) across plugins*.py 2026-09-02 15:53:53 -07:00
Teknium 4e64c5d1a1 refactor(cli/setup.py): drop dead _DEFAULT_PROVIDER_MODELS table and _setup_qqbot shim; compact prose, imports and banners 2026-09-02 15:53:44 -07:00
Teknium 7f9f274cde refactor(cli): chat() 855 -> ~240 LOC via _ChatTurn dataclass + 5 phase methods
Per-turn locals (result, TTS pipeline state, voice prefix) move onto a
_ChatTurn dataclass shared with the agent worker thread (same-object
visibility, so the abandoned-thread late write still lands). Four zero-
back-ref regions and the run_agent closure body become
_chat_setup_turn_audio / _chat_run_agent / _chat_monitor_agent_thread /
_chat_settle_turn / _chat_render_turn. Bodies are ast.dump-identical after
the rename; each helper passed the unresolved-free-names check.
2026-09-02 15:53:22 -07:00
Teknium 208e5b2312 refactor(skills_hub): table-driven hub path resolvers; extract index fetch + source router + parallel search to skills_hub_search 2026-09-02 15:53:18 -07:00
Teknium 5233cbf50f refactor(web_server): extract config schema + model-assignment logic to web_server_config 2026-09-02 15:52:53 -07:00
Teknium d4602539d8 refactor(mcp): move discovery lock + loop scheduling into mcp_tool_loop.py 2026-09-02 15:52:38 -07:00
Teknium d3b4d1cbe3 refactor(gateway/slash): unify diff rendering, nested-config writes, background task tracking; extract restart payload and detached update spawn 2026-09-02 15:52:37 -07:00
Teknium bf427a20a1 refactor(stt): collapse duplicate validators/process-error detail/CAF converter, managed-gateway helper, read-block guard 2026-09-02 15:52:30 -07:00
Teknium 819f1ccba0 refactor(cli/plugins): collapse pre_tool_call wrapper family onto kwargs forwarding; compact VALID_HOOKS literal 2026-09-02 15:52:07 -07:00
Teknium f59fb2e292 refactor(mcp): tighten registration candidates and sampling handler; drop dead _extract_tool_result_text 2026-09-02 15:51:24 -07:00
Teknium a47a35f44b refactor(gateway/stream): split GatewayStreamConsumer into transport/fallback/think mixins + fences leaf; drop dead _MEDIA_RE 2026-09-02 15:51:05 -07:00
Teknium 6417d5dfbc refactor(computer_use): doctor — inline fallback seam into run_doctor, shared CLI output helper 2026-09-02 15:51:02 -07:00
Teknium 46697da751 refactor(mcp): move connect/lazy-start/discovery/public API into mcp_tool_discovery.py 2026-09-02 15:50:54 -07:00
Teknium a1066d0317 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
2026-09-02 15:50:50 -07:00
Teknium 1d676837e0 refactor(computer_use): tool.py — reflow long literals, tighten signatures 2026-09-02 15:50:49 -07:00
Teknium 687884416d refactor(doctor): move output primitives + Finding to doctor_report.py leaf 2026-09-02 15:50:45 -07:00
Teknium 98a528a65a refactor(gateway): split _handle_message_with_agent into _hmwa_* helpers (2365 -> 242 LOC, max helper 249) 2026-09-02 15:50:25 -07:00
Teknium 2242f55e9f refactor(state): unify session CRUD helpers, list filter builder, compact re-exports 2026-09-02 15:49:46 -07:00
Teknium f92267f6f6 refactor(gateway): split TurnRunner.send_progress_messages into state carrier + 8 helpers (333 -> 168 LOC) 2026-09-02 15:49:24 -07:00
Teknium 83dc167c1c refactor(gateway/slash): extract /model picker send, kanban auto-subscribe, shared refine/review and approve/deny preludes 2026-09-02 15:49:22 -07:00
Teknium 88f97462ff refactor(skills_hub): extract install/uninstall/update operations to skills_hub_install 2026-09-02 15:49:10 -07:00
Teknium faceb45337 refactor(mcp): split orphan reaper/config/schema/agent-refresh helpers; table-build utility schemas and injection patterns 2026-09-02 15:48:34 -07:00
Teknium e016546db6 refactor(cli/plugins): unify PluginContext type-gate warnings (_wrong_type, 5 sites) and refusal errors (_refuse, 4 sites); drop in-class section banners 2026-09-02 15:48:29 -07:00
Teknium b083383770 refactor(computer_use): dedupe capture/input mixins (shared CLI re-fetch, refusal + window helpers) 2026-09-02 15:48:22 -07:00
Teknium d32014a4a6 refactor(auth): split OAuth-grant hygiene, device-flow helpers, model picker and Kimi/Z.AI detection into modules 2026-09-02 15:48:08 -07:00
Teknium a1314db032 refactor(computer_use): tool.py — single-blank layout, **delivery kwargs for input handlers, staged try/except merge 2026-09-02 15:47:52 -07:00
Teknium 29d24bfbc0 refactor(doctor): extract API connectivity probes to doctor_connectivity.py; unify result rows 2026-09-02 15:47:50 -07:00
Teknium 1b8af7350b refactor(gateway/stream): flatten approval-boundary handling, unify final-delivered flag marking, compact __init__ state notes 2026-09-02 15:47:03 -07:00
Teknium 31729ddcff refactor(state): unify search routes in hermes_state_search (_match_rows/_search_cjk, dispatch table for sort) 2026-09-02 15:46:58 -07:00
Teknium 9f92710ca1 refactor(web_server): extract memory-provider dashboard helpers to web_server_memory 2026-09-02 15:46:50 -07:00
Teknium c89819bec2 refactor(gateway/session): split the two >200-LOC methods into collaborators, unify entry mutators, table-drive platform prompt notes 2026-09-02 15:46:47 -07:00
Teknium dea3f60bc4 refactor(turn): drop section-banner comments in turn_facade_lease 2026-09-02 15:46:46 -07:00
Teknium 925f8061ff refactor(stt): provider spec table + builtin model table, shared OpenAI-SDK/REST failure helpers, trim dead re-exports 2026-09-02 15:46:46 -07:00
Teknium 53a24170ab refactor(auth): split Nous Portal OAuth flow into hermes_cli/auth_nous.py 2026-09-02 15:46:40 -07:00