Commit Graph

218 Commits

Author SHA1 Message Date
Teknium a7c1ec6ecb refactor(computer_use): capture mixin disarm-on-failure contextmanager + shared MCP-empty->CLI re-fetch helper; table-driven list_apps/_match_windows_for_app 2026-09-02 20:24:06 -07:00
Teknium e04fa94299 refactor(computer_use): one _write_cache_file helper for spill/screenshot; _NoopBackend input stubs from a factory 2026-09-02 20:17:44 -07:00
Teknium 3bc55cb2c6 refactor(computer_use): flatten vision_routing lookup + permissions doctor/mac probes 2026-09-02 20:16:27 -07:00
Teknium 198eede489 refactor(computer_use): single _ACTIONS spec table replaces destructive/click/summary/simple/input tables 2026-09-02 20:13:15 -07:00
Teknium 48c517a04f refactor(computer_use): input mixin target/pointer arg resolution via _target_args + _pointer_args 2026-09-02 20:12:24 -07:00
Teknium 8225c7110e refactor(computer_use): one _tool_envelope builder for MCP/CLI/fail-closed results; _int_or_none core; fold _cli_command + recreate/restart shapes 2026-09-02 20:11:36 -07:00
Teknium b9e5bb362a refactor(computer_use): doctor fallback checks driven by _FALLBACK_PROBES table; one _cli_text core for CLI probes 2026-09-02 20:10:24 -07:00
Teknium c4668fa77e fix(integration): restore explicit utf-8 encoding on codesign/loginctl subprocess calls flagged by footgun scanners 2026-09-02 19:39:38 -07:00
Teknium 06fb390212 fix(integration): restore stdin=DEVNULL on computer_use subprocess calls dropped in simplification 2026-09-02 17:48:26 -07:00
Teknium 440200a7e4 Merge branch 'simp/r2-cua-tool2' into simp/r2-tools-b-cua 2026-09-02 17:12:01 -07:00
Teknium 0b60cceb0d refactor(computer_use): wrap wide lines, fold approval verdict branches and drag arg parsing (898->897 LOC) 2026-09-02 17:10:39 -07:00
Teknium 741886e576 refactor(computer_use): dict-literal action payload/escalation, single capture call in follow-up, drop unused noop state (912->898 LOC) 2026-09-02 17:09:06 -07:00
Teknium 770ad1f28d refactor(computer_use): single staged try in aux-vision routing, lambda summaries, tighter docstrings (929->912 LOC) 2026-09-02 17:06:42 -07:00
Teknium 1b29d9fe81 Merge branch 'simp/r2-tools-b-cua' into simp/integration2 2026-09-02 17:05:18 -07:00
Teknium 0223eeca66 refactor(computer_use): walrus-fold guard checks, wrap wide lines (931->929 LOC) 2026-09-02 17:03:36 -07:00
Teknium 21372a16b2 refactor(computer_use): compact response helpers, NoopBackend recorder, docstrings/comments (976->931 LOC) 2026-09-02 17:00:40 -07:00
Teknium 015639a6d7 refactor(computer_use): compact capture mixin (name helper, flat signatures/log calls) 2026-09-02 16:53:14 -07:00
Teknium 18fa584366 refactor(computer_use): _CaptureView shares capture-derived facts across response branches; _detach_locked, _bounds_hints, _best_effort_write dedupe (997->976 LOC) 2026-09-02 16:52:47 -07:00
Teknium 2a9e16fded refactor(computer_use): compact cua_backend re-export imports (AST-identical) 2026-09-02 16:46:34 -07:00
Teknium a61298a21c refactor(computer_use): doctor — shared structured/first-line helpers, unified version message 2026-09-02 16:45:39 -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 343269e125 Merge branch 'simp/r2-cua-sess' into simp/r2-tools-b-cua 2026-09-02 16:32:08 -07:00
Teknium 00958829bb refactor(computer_use): collapse embedded daemon branch/field boilerplate 2026-09-02 16:28:40 -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 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 c3d789893f refactor(computer_use): compact cua_backend docstrings/comments (WHYs preserved) 2026-09-02 16:18:47 -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 d2add66648 refactor(computer_use): tool.py — verdict-field table, payload merge, stub/record cleanups 2026-09-02 16:16:54 -07:00
Teknium 2086987cdc refactor(computer_use): route unknown-outcome results directly through _outcome_unknown 2026-09-02 16:16:30 -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 66ecaa31e7 refactor(computer_use): dedupe capability-state reset, tighten CLI result and error-text helpers 2026-09-02 16:12:02 -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 eb837d2e36 refactor(computer_use): unify session redeclare path, inline single-use session helpers 2026-09-02 16:07:05 -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 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 7e939af627 refactor(computer_use): compact permissions/vision_routing/backend/__init__ docstrings and spacing 2026-09-02 15:54:54 -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 d4b59e044c refactor(computer_use): tool.py — nullcontext in _stop_backend 2026-09-02 15:54:13 -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 1d676837e0 refactor(computer_use): tool.py — reflow long literals, tighten signatures 2026-09-02 15:50:49 -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 04de344f41 refactor(computer_use): compact backend/permissions/vision_routing/__init__ docs; tighten doctor helpers 2026-09-02 15:45:55 -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 0360b71926 refactor(computer_use): split CuaDriverBackend into capture/input mixins and a driver-resolution module 2026-09-02 15:42:36 -07:00
Teknium 80affc7ee3 refactor(computer_use): doctor — reuse permissions._child_env, split fallback/report rendering into helpers 2026-09-02 15:37:58 -07:00