Teknium
5ab334c6e7
refactor(gateway/slash): extract autonomy-loop commands into gateway/slash_commands_goals.py (GatewayGoalCommandsMixin)
2026-09-02 16:27:13 -07:00
Teknium
7916d8e41c
refactor(mcp): utility handlers become (rpc, render) pairs on one factory; join short multi-line statements
2026-09-02 16:27:05 -07:00
Teknium
c5777cfa22
refactor(state): one _rebuild_table helper for the three PK/table rebuilds
2026-09-02 16:26:34 -07:00
Teknium
6a9387f6f4
refactor(browser): table-driven registry.register loop for the 10 browser tools; bracket-hug compaction across browser_* modules (AST-identical)
2026-09-02 16:26:33 -07:00
Teknium
2b7d975b9b
refactor(gateway/hosted_rooms): rewrap driver DDL/prune SQL, tighten _transition docstring
2026-09-02 16:26:29 -07:00
Teknium
0437336b7d
refactor(mcp): contextlib.suppress for swallowed-error ladders in mcp_oauth storage/json helpers
2026-09-02 16:26:18 -07:00
Teknium
4ad1c6c1be
refactor(gateway): drop dead GatewayRunner._has_setup_skill (no production caller; tests only stub it)
2026-09-02 16:26:11 -07:00
Teknium
84191417ef
refactor(model_switch): extract provider-listing cluster into model_switch_providers
...
Verified state of the snapshotted WIP (0fd89c0ae5 ): list_authenticated_providers,
_lap_* row builders, list_picker_providers, _collect_authed_provider_slugs,
_prefetch_provider_models_parallel, prewarm_picker_cache_async and helpers now live
in hermes_cli/model_switch_providers.py (logger name kept as hermes_cli.model_switch;
every moved name re-imported into model_switch so patches keep resolving).
switch_model split into _route_*/_resolve_switch_credentials/_validate_switch/
_build_switch_result; show_status split into _render_<section>(ctx) over _SECTIONS.
Parity: /tmp/rf/r2m_switch_corpus.py (434 entries) and r2m_status_golden.py
(33 fixtures) byte-identical vs base 88b74d6ef00; 76 referencing test files green.
2026-09-02 16:26:11 -07:00
Teknium
7c144b8ad8
refactor(computer_use): extract _wait_or_kill and _socket_ready from the embedded daemon; compact prose
2026-09-02 16:26:07 -07:00
Teknium
6bbb13d625
refactor(gateway/slash): extract introspection commands into gateway/slash_commands_status.py (GatewayStatusCommandsMixin)
2026-09-02 16:25:35 -07:00
Teknium
dc4de83c62
refactor(update): lift ZIP download/swap and deps reinstall out of _update_via_zip (327 -> 137 LOC)
2026-09-02 16:25:31 -07:00
Teknium
bf16d5f996
refactor(doctor): trim re-exports to names referenced outside their module
2026-09-02 16:25:28 -07:00
Teknium
5cc3651b3b
refactor(kanban-cli): extract data-driven argparse tree to kanban_parser and output helpers to kanban_output
2026-09-02 16:25:20 -07:00
Teknium
ffa08e6591
refactor(hermes_cli/main): extract dashboard/serve support cluster to main_dashboard.py
2026-09-02 16:24:55 -07:00
Teknium
b2d1d4cc1f
refactor(mcp): compact mcp_oauth_provider token-request stamping and dashboard flow dataclass
...
- _stamp_token_user_agent -> _prepare_token_request (no external refs)
- DashboardOAuthFlow event fields via one _event_field() factory
2026-09-02 16:24:53 -07:00
Teknium
568afa038b
refactor(auth): trim re-export tuples to names with a caller outside the origin package
2026-09-02 16:24:36 -07:00
Teknium
6983794cb7
refactor(state): lift optimize_fts_storage vacuum/settle phases into helpers
2026-09-02 16:24:28 -07:00
Teknium
c40645ea2f
test(gateway): repoint two source-inspection/logger-patch tests to run_turn_runner / run_voice
2026-09-02 16:24:25 -07:00
Teknium
64cf496ca5
refactor(models): collapse deepinfra/custom-cache/provider-list helpers; module docstrings
2026-09-02 16:24:19 -07:00
Teknium
3507382469
refactor(mcp): health — one recycle-deadline table, shared owned-deregister helper, module-level stdio liveness probe
2026-09-02 16:24:16 -07:00
Teknium
49cef0bae3
refactor(computer_use): unify cua parse image sniff with backend.image_dimensions_from_bytes; inline _first_nonempty_list; compact prose
2026-09-02 16:23:58 -07:00
Teknium
c4bc0ada79
refactor(gateway/hosted_rooms): inline replica clock helper, collapse driver literal
2026-09-02 16:23:44 -07:00
Teknium
55248a133f
refactor(approval): unify the three human-approval gates behind one engine (_human_decision) + _GateSpec/_Unattended tables
2026-09-02 16:23:33 -07:00
Teknium
e118abc61a
refactor(update): lift manual-gateway restart, stuck-PID sweep and phase-abort recovery out of _restart_gateway_fleet_after_update (362 -> 154 LOC)
2026-09-02 16:23:31 -07:00
Teknium
2a9c5d8cf5
refactor(doctor_state): unify state.db repair path, memory-provider dispatch table; doctor.py header
2026-09-02 16:23:25 -07:00
Teknium
f78d519e5a
refactor(auth): collapse duplicate corrupt-store warning, drop dead _SUPPORTED_PREFIXES
2026-09-02 16:23:15 -07:00
Teknium
088eda22ae
refactor(mcp): compact mcp_oauth module docstring, helpers and CIMD constants by hand
...
- config-key reference folded into the module docstring (all WHY kept)
- _park_reserved_socket / _pick_cimd_port / _is_valid_cimd_url / _can_open_browser /
_resolve_redirect_uri / token_request_user_agent tightened, same results
- _maybe_preregister_client optional keys via dict unpacking
2026-09-02 16:23:14 -07:00
Teknium
f28dfda667
refactor(web_server): flatten nested guards in auth middleware + plugin cache; module docstring describes the split
2026-09-02 16:23:06 -07:00
Teknium
55ba3cbd61
refactor(tools_config): extract MCP checklist + enable/disable command into tools_config_mcp; compact checklist/reconfigure helpers
2026-09-02 16:22:15 -07:00
Teknium
2ae3e4d6bd
refactor(state): share /proc fd walker, collapse loops in generation/holder probes
2026-09-02 16:22:10 -07:00
Teknium
a138533157
refactor(state): fold docstring closers (whitespace only)
2026-09-02 16:21:39 -07:00
Teknium
fdaaa87ea4
refactor(browser): move session/daemon command execution to tools/browser_tool_session.py, CDP override + supervisor lifecycle to tools/browser_tool_cdp.py, vision helpers to tools/browser_tool_vision.py
2026-09-02 16:21:07 -07:00
Teknium
0048a5bc80
refactor(mcp): handlers — fold structuredContent cap + stdio-retry error tail into helpers, _pick for attr-picking entry builders
2026-09-02 16:21:00 -07:00
Teknium
975783c31e
refactor(models): table-drive opencode api-mode routing; collapse copilot/anthropic catalog helpers
2026-09-02 16:20:36 -07:00
Teknium
b422113061
refactor(state): compact long rationale comments (all rules kept)
2026-09-02 16:20:35 -07:00
Teknium
b97e5d96db
refactor(mcp): compact mcp_oauth SDK loader, callback handler, CIMD eligibility and legacy provider class
...
- _ensure_sdk_loaded binds SDK classes by name from the two auth modules
- _maybe_use_cimd if-ladder -> one ineligibility predicate (order and
short-circuit preserved, comments kept)
- SSH hint bodies -> module templates; browser-open notes -> one print
- _get_hermes_oauth_provider_class builds the class via type() (same name,
qualname, module, bases, _hermes_logger)
2026-09-02 16:20:30 -07:00
Teknium
7b30652d8f
refactor(auth): explicit-config check table, _store_section helper, docstring repairs, move orphaned section comments to their modules
2026-09-02 16:20:00 -07:00
Teknium
44e37bc7e3
refactor(gateway/hosted_rooms): table-driven task transitions in hosted_room_driver; fold replica schema init, share leaf helpers (-40% LOC, parity-neutral)
2026-09-02 16:19:39 -07:00
Teknium
d482bd534d
refactor(hermes_cli/main): split select_provider_and_model + cmd_dashboard into named helpers; drop unused imports
2026-09-02 16:19:17 -07:00
Teknium
8b34d23366
refactor(web_server): move skills-hub action helpers to web_server_profiles; trim fastapi import block to what web_server still uses
2026-09-02 16:19:10 -07:00
Teknium
acb12608e4
refactor(state): squeeze blank-line runs between constants (AST-neutral)
2026-09-02 16:19:09 -07:00
Teknium
95804887c1
refactor(doctor): tighten platform + tools checks — shared helpers, backend dispatch table, compact docstrings
2026-09-02 16:19:08 -07:00
Teknium
84d04094e3
refactor(cli): compact seven long narrative comment blocks (WHY kept, prose trimmed)
2026-09-02 16:19:03 -07:00
Teknium
bd30c9b6ac
refactor(browser): move cloud-provider/backend selection to tools/browser_tool_cloud.py and agent-browser/Chromium discovery+install to tools/browser_tool_install.py
2026-09-02 16:18:57 -07:00
Teknium
c3d789893f
refactor(computer_use): compact cua_backend docstrings/comments (WHYs preserved)
2026-09-02 16:18:47 -07:00
Teknium
6517b2d1c4
refactor(mcp): rewrap re-export blocks (formatting only)
2026-09-02 16:18:43 -07:00
Teknium
1b3f37b3eb
Merge branch 'simp/r2-rooms-w4' into simp/r2-gw-rest-rooms
2026-09-02 16:18:42 -07:00
Teknium
0686f3fdae
Merge branch 'simp/r2-rooms-w3' into simp/r2-gw-rest-rooms
2026-09-02 16:18:40 -07:00
Teknium
4d8d479e41
refactor(tools_config): split _get_platform_tools into explicit/composite resolvers; compact header comments
2026-09-02 16:18:39 -07:00
Teknium
3fefdd879b
refactor(computer_use): collapse redundant locals and branches in cua_backend_session
2026-09-02 16:18:32 -07:00