Commit Graph

3587 Commits

Author SHA1 Message Date
Teknium fe25c59281 refactor(tts): plugin-provider layer into tts_tool_plugins with one lookup helper 2026-09-02 16:44:13 -07:00
Teknium caf37e23d4 refactor(tts): importer factory, requirements table, caps to delivery, legacy strip to text_normalize, single-chunk dedupe 2026-09-02 16:44:13 -07:00
Teknium ef9f860284 refactor(tts): extract OpenAI/DeepInfra backend and lifecycle leases into sibling modules 2026-09-02 16:44:12 -07:00
Teknium d913175067 refactor(tts): move command-provider config layer into tts_command_provider
Completes the half-done move snapshotted by the parent (wip commit 283f63b):
the tts.providers.<name> config layer (_get_named_provider_config,
_resolve_command_provider_config, _generate_command_tts, ...) now lives in
tools/tts_command_provider.py; tts_tool re-imports the historical names.
2026-09-02 16:44:05 -07:00
Teknium 325a505602 refactor(approval): move smart-verdict observer + elicitation consent to their leaf modules; hoist re-exports 2026-09-02 16:42:18 -07:00
Teknium d507b71e7c Merge branch 'simp/r2a-mcp-oauth' into simp/r2a-mcp 2026-09-02 16:41:11 -07:00
Teknium 40e4338d27 Merge branch 'simp/r2a-mcp-transport' into simp/r2a-mcp 2026-09-02 16:41:11 -07:00
Teknium 4711e8105d refactor(delegate): child_run dedupe — shared close/attach/detach/stop helpers, _defer_close_after_timeout, _build_tool_trace, _num; single _fabricated_entry 2026-09-02 16:37:47 -07:00
Teknium 8f877d40f9 refactor(computer_use): single-blank layout between top-level defs (AST-identical) 2026-09-02 16:35:33 -07:00
Teknium 1623697cb7 refactor(mcp): compact session-expired marker table 2026-09-02 16:34:23 -07:00
Teknium 546bb4eefc refactor(mcp): repack wrapped message literals (AST-identical) 2026-09-02 16:33:18 -07:00
Teknium c1f8fd4e40 wip(delegate): child_run dedupe snapshot (unverified; worker died at 401) 2026-09-02 16:33:00 -07:00
Teknium 343269e125 Merge branch 'simp/r2-cua-sess' into simp/r2-tools-b-cua 2026-09-02 16:32:08 -07:00
Teknium 7926cf5e59 refactor(approval): extract approval_context / approval_prompt / approval_floors modules (re-exported from tools.approval) 2026-09-02 16:31:41 -07:00
Teknium 2c389b5a2f refactor(mcp): compact mcp_oauth listener, cached-registration lookups and stderr messages by hand 2026-09-02 16:31:39 -07:00
Teknium 62fa7a8519 refactor(browser): blank-line normalisation (E302/E303/E305) after block moves 2026-09-02 16:30:46 -07:00
Teknium 9c706605fe refactor(browser): drop the unreferenced __main__ demo block 2026-09-02 16:30:28 -07:00
Teknium 2bebe0ba9b refactor(mcp): tighten section headers in mcp_oauth / mcp_oauth_manager 2026-09-02 16:30:18 -07:00
Teknium 304118797b refactor(mcp): join short multi-line statements across the transport/handlers subset (AST-identical) 2026-09-02 16:29:53 -07:00
Teknium 7825ab98d1 refactor(browser): _json_with_fallback/_failed_response helpers replace 6 repeated dumps(_copy_fallback_warning(...)) tails 2026-09-02 16:29:05 -07:00
Teknium 00958829bb refactor(computer_use): collapse embedded daemon branch/field boilerplate 2026-09-02 16:28:40 -07:00
Teknium 41f873da6e refactor(mcp): HermesProviderMixin reuses HermesTokenStorage._coerce_secret_auth_method for the in-memory client-secret coercion 2026-09-02 16:28:35 -07:00
Teknium 61c60b5673 refactor(browser): one _blocked_private_page helper behind the three private-page refusal payloads (strings byte-identical) 2026-09-02 16:27:49 -07:00
Teknium 069338f7bb refactor(mcp): compact mcp_oauth_manager docstrings and metadata prefetch loop by hand 2026-09-02 16:27:29 -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 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 0437336b7d refactor(mcp): contextlib.suppress for swallowed-error ladders in mcp_oauth storage/json helpers 2026-09-02 16:26:18 -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 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 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 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 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 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 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 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 3fefdd879b refactor(computer_use): collapse redundant locals and branches in cua_backend_session 2026-09-02 16:18:32 -07:00
Teknium b1d29ecf87 refactor(mcp): unify connect success/failure bookkeeping (3 sites -> 2 helpers) 2026-09-02 16:18:06 -07:00
Teknium 96280b4cc7 refactor(mcp): split register_mcp_servers/discover_mcp_tools into candidate/lazy/discovery-pass/summary helpers 2026-09-02 16:17:20 -07:00
Teknium d2add66648 refactor(computer_use): tool.py — verdict-field table, payload merge, stub/record cleanups 2026-09-02 16:16:54 -07:00
Teknium e94cc545d5 refactor(mcp): unify HTTP/SSE/legacy transport serve+teardown into _serve_transport; split _run_stdio into ledger/preflight helpers 2026-09-02 16:16:45 -07:00
Teknium 2086987cdc refactor(computer_use): route unknown-outcome results directly through _outcome_unknown 2026-09-02 16:16:30 -07:00
Teknium 70282b6baf refactor(browser): lifecycle module imports hermes_constants directly; drop origin imports left unused by the move 2026-09-02 16:15:20 -07:00
Teknium 4cf35a68f2 Merge branch 'simp/r2a-mcp-reg' into simp/r2a-mcp 2026-09-02 16:15:20 -07:00
Teknium b9ec602392 refactor(mcp): update mcp_tool module map for the new siblings 2026-09-02 16:15:11 -07:00
Teknium 369dbe4320 refactor(browser): move session lifecycle cluster (janitor, orphan reaper, teardown, atexit cleanup) to tools/browser_tool_lifecycle.py 2026-09-02 16:14:39 -07:00
Teknium a09512c3ad refactor(mcp): move loop start/stop + reconnect signalling into mcp_tool_loop.py (writes via origin module) 2026-09-02 16:14:37 -07:00