Teknium
9cf2c364ab
refactor(computer_use): _recreate_session helper for the two restart+restore paths
2026-09-02 16:14:11 -07:00
Teknium
88c5d4670d
refactor(auth): OAUTH_PROVIDER_FLOWS table (status/resolve/terminal-codes/logout), name-keyed status dispatch, base-URL resolver table
2026-09-02 16:13:37 -07:00
Teknium
0fe9d5f5ae
refactor(state): AST-neutral formatting compaction (blank lines, signatures, arg lists)
2026-09-02 16:13:30 -07:00
Teknium
95714f6d93
refactor(state): AST-neutral line packing; derive v22 session_model_usage DDL from the heal DDL
2026-09-02 16:13:05 -07:00
Teknium
96d8883986
refactor(models): collapse copilot catalog filter, probe/dedupe helpers, static-detect ladders; compact comments
2026-09-02 16:12:56 -07:00
Teknium
04403a5632
refactor(computer_use): compact schema.py literal (value byte-identical; verified via tool-schema dump)
2026-09-02 16:12:51 -07:00
Teknium
d7cdfbc36b
refactor(stt): openai-availability reason helper, one-line section banners, docstring compaction
2026-09-02 16:12:29 -07:00
Teknium
66ecaa31e7
refactor(computer_use): dedupe capability-state reset, tighten CLI result and error-text helpers
2026-09-02 16:12:02 -07:00
Teknium
13e7cb8eb9
refactor(tools_config): merge provider-selection extraction (tools_config_providers)
2026-09-02 16:11:56 -07:00
Teknium
66366d3dab
refactor(gateway): split GatewayRunner into 13 run_* mixins + TurnRunner module (run.py 31332 -> 6957)
...
AST-driven, body-identical move of 359 GatewayRunner methods into cohesive
mixin modules (gateway/run_{voice,adapters,topics,turn,shutdown,busy,
config_loaders,startup,watchers,notifications,inbound,goals,agent_cache}.py)
plus TurnRunner -> gateway/run_turn_runner.py. run.py-internal symbols are
imported lazily inside method bodies so patch('gateway.run.X') keeps
intercepting; neutral deps are top-level; logger name stays 'gateway.run'.
_UNSET moved to leaf gateway/run_common.py (def-time default-arg sentinel).
Whole-module inspect.getsource(gateway_run) AST-walker tests repointed to
the module that now holds the walked code.
2026-09-02 16:11:50 -07:00
Teknium
7424035a11
refactor(mcp): split tool handler into breaker check, server acquire, stdio-death-racing call, pure result renderer and one shared recovery ladder
2026-09-02 16:11:48 -07:00
Teknium
0d32adbbb5
refactor(hermes_cli/main): extract provider-setup helpers to main_provider_setup.py
2026-09-02 16:11:38 -07:00
Teknium
3f0e1165b3
refactor(tools_config): extract post-setup hooks into tools_config_post_setup
2026-09-02 16:11:26 -07:00
Teknium
fc2972b299
refactor(state): common — shared freshest-of/after-marker SQL builders, msvcrt lock helper, compact preview constants
2026-09-02 16:11:04 -07:00
Teknium
a59680217f
refactor(update): hand-compact comments/docstrings in split modules (AST-identical); re-export get_hermes_home/shutil; repoint source-inspection tests
2026-09-02 16:11:02 -07:00
Teknium
7e250ce03e
refactor(cli): no function over 300 LOC — split __init__/main/run/load_cli_config + two TUI builders
...
__init__ 659 -> 39 (_init_display_options / _init_model_routing / _init_runtime_state);
main 651 -> 403 (_install_single_query_signal_handlers, _collect_kanban_task_images,
_route_single_query_images, _run_quiet_single_query as module-level helpers);
run 384 -> 293 (_tui_shutdown); load_cli_config 366 -> 115 (_cli_config_defaults,
_mirror_config_to_env); cli_tui_mixin: _tui_build_layout 352 -> 196 (_tui_build_input_area,
_tui_set_base_style), _tui_handle_enter 333 -> 192 (_tui_enter_overlay -> bool).
All regions are zero-back-ref lifts, ast.dump-identical bodies, unresolved-free-names
check clean. Two source-inspection tests repointed at the helper that now owns the code.
2026-09-02 16:11:02 -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
Teknium
c4ce73edc2
refactor(browser): compact sibling modules — supervisor event dispatch inline, dialog responder unified (_respond/_respond_quiet/_cdp_quiet), dead ConsoleEvent ring buffer removed, browser_use_cli _quiet helper
2026-09-02 16:10:20 -07:00
Teknium
60aa491f3d
refactor(stt): local backend detection helper, CPU-eviction helper, module docstrings and import packing
2026-09-02 16:10:20 -07:00
Teknium
7d43c20af7
refactor(web_server): move _process_start_marker with the lifecycle cluster
2026-09-02 16:10:10 -07:00
Teknium
9780739e12
refactor(turn): extract per-iteration request assembly (api_messages/MoA/cache plan/pressure) into agent/turn_request_assembly.py
2026-09-02 16:10:07 -07:00
Teknium
c990225fa0
refactor(auth): relocate single-consumer helpers next to their users; _decode_jwt_claims to constants leaf
2026-09-02 16:09:47 -07:00
Teknium
a011c32975
refactor(mcp): compact mcp_oauth redirect/callback closures and dashboard contextvar helper
...
- _make_redirect_handler: lift URL announcement into _announce_authorization_url
- _make_callback_waiter: lift poll loop (_poll_callback_result) and result
interpretation (_callback_outcome) out of the _wait closure
- mcp_dashboard_oauth.contextvar_set shared by force/suppress_interactive_oauth
- mcp_dashboard_oauth imported at module top (stdlib-only leaf, no cycle)
- docstrings compacted by hand; all WHY sentences kept
2026-09-02 16:09:23 -07:00
Teknium
c023f00c9c
refactor(state): compact session-CRUD comments/docstrings (keep every WHY)
2026-09-02 16:09:13 -07:00
Teknium
67ac6cc619
refactor(computer_use): table-drive unknown-outcome messages; hoist _tool_field helper
2026-09-02 16:09:13 -07:00
Teknium
a42c78bd2e
Merge branch 'simp/r2-cua-misc' into simp/r2-tools-b-cua
2026-09-02 16:08:20 -07:00
Teknium
a739007d77
Merge branch 'simp/r2-cua-tool' into simp/r2-tools-b-cua
2026-09-02 16:08:17 -07:00
Teknium
07cd3ba7c9
refactor(hermes_cli/main): extract install/update recovery cluster to main_install_repair.py
2026-09-02 16:08:08 -07:00
Teknium
2e9294fd7c
refactor(web_server): extract serve-process lifecycle helpers to web_server_lifecycle
2026-09-02 16:07:59 -07:00
Teknium
9fda4e5bac
refactor(turn): extract retry-loop API error handler, request build, provider call and response check into agent/turn_api_*.py + agent/turn_response_check.py
2026-09-02 16:07:51 -07:00
Teknium
c43eb6a8d5
refactor(computer_use): shared driver-JSON probe + flattened MCP invocation resolution
2026-09-02 16:07:50 -07:00
Teknium
f3810c4b97
refactor(skills_hub): keep ensure_hub_dirs seed literals (tests stub HubLockFile with a lambda)
2026-09-02 16:07:36 -07:00
Teknium
7202269cee
refactor(stt): compact xAI/ElevenLabs/DeepInfra bodies and OpenAI credential resolver
2026-09-02 16:07:29 -07:00
Teknium
eb837d2e36
refactor(computer_use): unify session redeclare path, inline single-use session helpers
2026-09-02 16:07:05 -07:00
Teknium
ade1c5a746
refactor(models): extract models_local + models_pricing; unify json disk-cache I/O, portal recommendation union, live-catalog index, copilot token exchange, probe/cache-entry builders
2026-09-02 16:06:33 -07:00
Teknium
c11fa53d92
refactor(tools_config): extract provider selection cluster into tools_config_providers
2026-09-02 16:05:46 -07:00
Teknium
c4920cc8be
refactor(gateway/hosted_rooms): dispatch-table event validation and terminal effects in discussion; split checkpoint sync and compact SQL
2026-09-02 16:05:18 -07:00
Teknium
538b9eedae
refactor(mcp): flatten child-pid snapshot and MCP-child filter
2026-09-02 16:05:08 -07:00
Teknium
3530e4e024
refactor(state): split import_sessions into validate/insert/attach-parents helpers; shared rich SELECT builder
2026-09-02 16:04:59 -07:00
Teknium
063517e745
refactor(stt): shared lazy-install helper, compact trim/validation/local-kwargs bodies, repack re-export block
2026-09-02 16:04:57 -07:00
Teknium
324701cd84
refactor(cli/setup_*): table-drive bluebubbles/vercel prompts, flatten telegram allowlist branches, compact prose
2026-09-02 16:04:47 -07:00
Teknium
5a9970ad4b
refactor(cli/sessions_cmd): lift recover progress printer + verdict out of _cmd_recover
2026-09-02 16:04:45 -07:00
Teknium
5629d0fe3d
refactor(computer_use): compact cua_backend_session prose and multi-line expressions
2026-09-02 16:04:11 -07:00
Teknium
ad301948df
refactor(gateway/hosted_rooms): dedupe SQL/validation via hosted_rooms_common, table-drive schema, split create_room/probes (2270->1648 LOC)
2026-09-02 16:03:46 -07:00
Teknium
04fc5ea9ee
refactor(gateway/slash): extract session-transcript commands into gateway/slash_commands_session.py (GatewaySessionCommandsMixin)
2026-09-02 16:03:07 -07:00
Teknium
5f48aad2d8
refactor(mcp): _wait_for_lazy_reconnect -> _wait_for_reconnect_or_shutdown (same wait shape)
2026-09-02 16:02:55 -07:00
Teknium
41628ca157
refactor(cli/plugins): keep register_secret_source(source) parameter name in the table-driven registrar
2026-09-02 16:02:50 -07:00
Teknium
176458cdd9
refactor(state): wal — _warn_once/_mode_from_row/_apply_wal_companions helpers, shared delete-verify message, compact docs
2026-09-02 16:02:42 -07:00
Teknium
755e83fb5c
refactor(web_server): extract files policy, MCP, and profile-scope/catalog helpers to web_server_{files,mcp,profiles}
2026-09-02 16:02:07 -07:00
Teknium
410e95e100
refactor(mcp): restore E305 spacing after squeeze
2026-09-02 16:01:37 -07:00