Teknium
9a066f7374
refactor(mcp): split _make_hermes_provider_class into module-level _HermesRuntimeProviderMixin
...
- 322-LOC factory body -> _HermesRuntimeProviderMixin (largest method now
async_auth_flow ~70 LOC); returned class keeps name, MRO tail, attributes
- invalid_client token-endpoint match -> _is_invalid_client_at_token_endpoint
- three non-fatal debug logs -> _log_nonfatal (same message shapes)
- handle_401's _do_handle closure -> MCPOAuthManager._recover_401
- HermesProviderMixin imported at module top (leaf module; no cycle);
tools.mcp_tool.sdk_httpx stays lazy
2026-09-02 16:14:36 -07:00
Teknium
9cf2c364ab
refactor(computer_use): _recreate_session helper for the two restart+restore paths
2026-09-02 16:14:11 -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
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
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
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
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
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
538b9eedae
refactor(mcp): flatten child-pid snapshot and MCP-child filter
2026-09-02 16:05:08 -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
5629d0fe3d
refactor(computer_use): compact cua_backend_session prose and multi-line expressions
2026-09-02 16:04:11 -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
410e95e100
refactor(mcp): restore E305 spacing after squeeze
2026-09-02 16:01:37 -07:00
Teknium
38ef892613
refactor(computer_use): split _CuaDriverSession CLI fallback into _cli_command/_cli_run_json/_cli_result
2026-09-02 16:01:25 -07:00
Teknium
d9f6d9eda0
refactor(mcp): wrap overlong lines in reg/sampling/schema/agent
2026-09-02 16:01:24 -07:00
Teknium
7be1f2abe0
refactor(mcp): table-driven SDK symbol binding in _ensure_mcp_sdk
2026-09-02 16:01:09 -07:00
Teknium
a3a9cacf93
refactor(mcp): collapse post-build re-injection getters and saved-prefix lookup
2026-09-02 16:00:08 -07:00
Teknium
5844839639
refactor(stt): fold no-provider error tail, drop _normalize_local_command_model alias, compact dispatcher call sites
2026-09-02 15:59:38 -07:00
Teknium
d320d5f741
refactor(termhub): compact re-export blocks and wrap companion-module docstrings
2026-09-02 15:59:18 -07:00
Teknium
dc1401425d
refactor(mcp): drop 33 round-1 re-export shims nothing outside the group imports
2026-09-02 15:58:35 -07:00
Teknium
97fbd7e232
refactor(mcp): table-drive elicitation answers, unify sampling response log, tighten collision diagnostics
2026-09-02 15:57:42 -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
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
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
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
d4602539d8
refactor(mcp): move discovery lock + loop scheduling into mcp_tool_loop.py
2026-09-02 15:52:38 -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
f59fb2e292
refactor(mcp): tighten registration candidates and sampling handler; drop dead _extract_tool_result_text
2026-09-02 15:51:24 -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
1d676837e0
refactor(computer_use): tool.py — reflow long literals, tighten signatures
2026-09-02 15:50:49 -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
b083383770
refactor(computer_use): dedupe capture/input mixins (shared CLI re-fetch, refusal + window helpers)
2026-09-02 15:48:22 -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
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
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