Skip to content

Commit daf317d

Browse files
k4cper-gclaude
andcommitted
feat: implement full Linux action support via AT-SPI2 + XTest
Replace the 43-line stub with a complete implementation (~550 lines) of all 15 CUP actions, press_keys, and launch_app for Linux. Uses AT-SPI2 Action/Value/EditableText/Selection/Component interfaces for semantic actions, with XTest (libXtst) fallbacks for keyboard/mouse input simulation and xdotool for Unicode typing. Also renames package from "cup" to "computer-use-protocol". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent daf80ff commit daf317d

File tree

4 files changed

+997
-15
lines changed

4 files changed

+997
-15
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<br>
1212

1313
<p align="center">
14-
<a href="https://pypi.org/project/cup"><img src="https://img.shields.io/pypi/v/cup?style=for-the-badge&color=FF6F61&labelColor=000000" alt="PyPI"></a>
14+
<a href="https://pypi.org/project/computer-use-protocol"><img src="https://img.shields.io/pypi/v/computer-use-protocol?style=for-the-badge&color=FF6F61&labelColor=000000" alt="PyPI"></a>
1515
<a href="https://github.com/computeruseprotocol/python-sdk/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-0cc0df?style=for-the-badge&labelColor=000000" alt="MIT License"></a>
1616
<a href="https://github.com/computeruseprotocol/computer-use-protocol"><img src="https://img.shields.io/badge/Spec-computer--use--protocol-7ed957?style=for-the-badge&labelColor=000000" alt="Spec"></a>
1717
</p>
@@ -21,16 +21,16 @@ The official Python SDK for the [Computer Use Protocol (CUP)](https://github.com
2121
## Installation
2222

2323
```bash
24-
pip install cup
24+
pip install computer-use-protocol
2525

2626
# Linux additionally requires system packages
2727
sudo apt install python3-gi gir1.2-atspi-2.0
2828

2929
# Web adapter (Chrome DevTools Protocol, works on any OS)
30-
pip install cup[web]
30+
pip install computer-use-protocol[web]
3131

3232
# MCP server for AI agent integration
33-
pip install cup[mcp]
33+
pip install computer-use-protocol[mcp]
3434
```
3535

3636
## Quick start

0 commit comments

Comments
 (0)