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
Teknium
995367a3bf
refactor(gateway/slash): dispatch /goal subcommands; extract /status, /context, /usage, /agents, /reset, /resume render+resolve helpers
2026-09-02 15:46:19 -07:00
Teknium
9128bb5610
refactor(cli/setup.py): split wizard into setup_{tts,terminal,platforms,summary,migration,quick} modules; table-drive summary/agent settings; shared banner helper
2026-09-02 15:46:06 -07:00
Teknium
cbecd7d0c6
refactor(mcp): lift MCPServerTask lifecycle into MCPServerRunMixin; split run() into branch helpers
2026-09-02 15:46:06 -07:00
Teknium
048b1406f7
refactor(terminal): unify env-creation kwargs (_create_configured_env) and extract sandbox lifecycle (reaper/teardown/cleanup/ensure_task_env) to terminal_tool_lifecycle
2026-09-02 15:45:59 -07:00
Teknium
04de344f41
refactor(computer_use): compact backend/permissions/vision_routing/__init__ docs; tighten doctor helpers
2026-09-02 15:45:55 -07:00
Teknium
52a5127318
refactor(cli/plugins): move registration ledger/unload into PluginLedgerMixin (plugins_ledger.py)
2026-09-02 15:45:43 -07:00
Teknium
1172735295
refactor(cli/sessions_cmd): split cmd_sessions into per-subcommand handlers + dispatch dicts; extract browse picker to sessions_cmd_browse
2026-09-02 15:45:35 -07:00
Teknium
f5a04375cc
refactor(web_server): extract oauth pollers/status probes and messaging catalog/onboarding to web_server_oauth, web_server_messaging
2026-09-02 15:45:27 -07:00
Teknium
01242369b1
refactor(hermes_cli/main): extract web-UI build cluster to main_web_build.py
2026-09-02 15:45:23 -07:00
Teknium
c7d7e669c9
refactor(cli/plugins): unify manifest.key-or-name into manifest_key()/PluginContext.plugin_id (33 sites)
2026-09-02 15:44:28 -07:00
Teknium
3c7cd69abb
refactor(tools_config): extract cua-driver installer cluster into tools_config_cua
2026-09-02 15:43:44 -07:00
Teknium
21f11b4d29
refactor(web_server): extract session-DB access helpers to web_server_sessions
2026-09-02 15:43:37 -07:00
Teknium
b3ad91bef0
refactor(gateway): split GatewayRunner._run_agent_inner into 24 helper methods (1638 -> 241 LOC)
2026-09-02 15:43:35 -07:00
Teknium
e3b79addc6
refactor(computer_use): tool.py — compact comments/docstrings, hoist vision prompt, tighten layout
2026-09-02 15:43:11 -07:00
Teknium
1d99e2a2d1
refactor(gateway/stream): split _send_or_edit into per-transport collaborators; unify fallback send-with-flood-retry
2026-09-02 15:42:43 -07:00
Teknium
0360b71926
refactor(computer_use): split CuaDriverBackend into capture/input mixins and a driver-resolution module
2026-09-02 15:42:36 -07:00
Teknium
17df4741df
refactor(terminal): extract scope-aware TERMINAL_* config readers/cwd sanitizers to terminal_tool_config
2026-09-02 15:42:26 -07:00
Teknium
eb74a00c71
refactor(cli): split HermesCLI into 10 cohesive mixins (cli.py 22,284 -> 9,150)
...
326 methods lifted by AST (bodies identical; ast.dump-verified) into
hermes_cli/cli_{tui,status_bar,voice,model_switch,session,stream,modal,
terminal,info,loops}_mixin.py. cli.py-internal symbols resolve via lazy
'from cli import ...' inside each method (no import cycle; patch('cli.X')
keeps working). The three 'global' writers (_skill_commands, _cli_wake_owner)
now write the cli module attribute explicitly so the origin's readers still
see them. Dropped imports left unused in cli.py; kept display_hermes_home /
build_welcome_banner as re-exports (mixins + tests resolve them via cli).
Repointed two AST change-detector tests to cli_tui_mixin.py; one test
fixture now keeps 'cli' in sys.modules across its patch.dict scope.
2026-09-02 15:42:24 -07:00
Teknium
a0556c7ef1
refactor(gateway): split TurnRunner.run_sync into 11 helper methods (1229 -> 211 LOC)
2026-09-02 15:42:16 -07:00
Teknium
1f7beadae7
refactor(mcp): dedupe error classification ladders, optional-type import helper, cause-chain walker
2026-09-02 15:41:56 -07:00
Teknium
f0cfbb33e1
refactor(cli/plugins): move hook/event-bus/prompt-section dispatch into PluginDispatchMixin (plugins_dispatch.py)
2026-09-02 15:41:50 -07:00
Teknium
3c26e8c8d6
refactor(turn): compact log-call formatting in turn_context_compaction
2026-09-02 15:41:41 -07:00