__init__.py 765 B

123456789101112
  1. """Computer use toolset — universal (any-model) desktop control via cua-driver.
  2. Drives apps through cua-driver's background primitive (focus-without-raise + pid-scoped
  3. event posting): it does NOT steal the user's cursor, keyboard focus, or Space. Plain
  4. OpenAI function-calling schema; vision models get SOM captures (numbered overlays + AX
  5. tree) and click by index, non-vision models use the AX tree alone. Model-facing guidance
  6. lives in the schema description and each action result's `verdict`.
  7. Modules: `tool.py` (handler, approval gate, response shaping), `backend.py` (abstract
  8. `ComputerUseBackend` + result dataclasses), `cua_backend.py` (default MCP-over-stdio
  9. backend + `cua_backend_parse`/`_session`/`_daemon` siblings), `schema.py` (byte-frozen).
  10. """