openhands 1.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. openhands-1.3.0.dist-info/METADATA +56 -0
  2. openhands-1.3.0.dist-info/RECORD +43 -0
  3. openhands-1.3.0.dist-info/WHEEL +4 -0
  4. openhands-1.3.0.dist-info/entry_points.txt +3 -0
  5. openhands-1.3.0.dist-info/licenses/LICENSE +21 -0
  6. openhands_cli/__init__.py +9 -0
  7. openhands_cli/acp_impl/README.md +68 -0
  8. openhands_cli/acp_impl/__init__.py +1 -0
  9. openhands_cli/acp_impl/agent.py +483 -0
  10. openhands_cli/acp_impl/event.py +512 -0
  11. openhands_cli/acp_impl/main.py +21 -0
  12. openhands_cli/acp_impl/test_utils.py +174 -0
  13. openhands_cli/acp_impl/utils/__init__.py +14 -0
  14. openhands_cli/acp_impl/utils/convert.py +103 -0
  15. openhands_cli/acp_impl/utils/mcp.py +66 -0
  16. openhands_cli/acp_impl/utils/resources.py +189 -0
  17. openhands_cli/agent_chat.py +236 -0
  18. openhands_cli/argparsers/main_parser.py +78 -0
  19. openhands_cli/argparsers/serve_parser.py +31 -0
  20. openhands_cli/gui_launcher.py +224 -0
  21. openhands_cli/listeners/__init__.py +4 -0
  22. openhands_cli/listeners/pause_listener.py +83 -0
  23. openhands_cli/locations.py +14 -0
  24. openhands_cli/pt_style.py +33 -0
  25. openhands_cli/runner.py +190 -0
  26. openhands_cli/setup.py +136 -0
  27. openhands_cli/simple_main.py +71 -0
  28. openhands_cli/tui/__init__.py +6 -0
  29. openhands_cli/tui/settings/mcp_screen.py +225 -0
  30. openhands_cli/tui/settings/settings_screen.py +226 -0
  31. openhands_cli/tui/settings/store.py +132 -0
  32. openhands_cli/tui/status.py +110 -0
  33. openhands_cli/tui/tui.py +120 -0
  34. openhands_cli/tui/utils.py +14 -0
  35. openhands_cli/tui/visualizer.py +22 -0
  36. openhands_cli/user_actions/__init__.py +18 -0
  37. openhands_cli/user_actions/agent_action.py +82 -0
  38. openhands_cli/user_actions/exit_session.py +18 -0
  39. openhands_cli/user_actions/settings_action.py +176 -0
  40. openhands_cli/user_actions/types.py +17 -0
  41. openhands_cli/user_actions/utils.py +199 -0
  42. openhands_cli/utils.py +122 -0
  43. openhands_cli/version_check.py +83 -0
@@ -0,0 +1,56 @@
1
+ Metadata-Version: 2.4
2
+ Name: openhands
3
+ Version: 1.3.0
4
+ Summary: OpenHands CLI - Terminal User Interface for OpenHands AI Agent
5
+ Author-email: OpenHands Team <contact@all-hands.dev>
6
+ License: MIT
7
+ License-File: LICENSE
8
+ Classifier: Programming Language :: Python :: 3 :: Only
9
+ Classifier: Programming Language :: Python :: 3.12
10
+ Classifier: Programming Language :: Python :: 3.13
11
+ Requires-Python: ==3.12.*
12
+ Requires-Dist: agent-client-protocol>=0.6.3
13
+ Requires-Dist: openhands-sdk==1.3.0
14
+ Requires-Dist: openhands-tools==1.3.0
15
+ Requires-Dist: prompt-toolkit>=3
16
+ Requires-Dist: pydantic>=2.7
17
+ Requires-Dist: typer>=0.17.4
18
+ Description-Content-Type: text/markdown
19
+
20
+ # OpenHands V1 CLI
21
+
22
+ A **lightweight, modern CLI** to interact with the OpenHands agent (powered by [OpenHands Software Agent SDK](https://github.com/OpenHands/software-agent-sdk)).
23
+
24
+ ---
25
+
26
+ ## Quickstart
27
+
28
+ - Prerequisites: Python 3.12+, curl
29
+ - Install uv (package manager):
30
+
31
+ ```bash
32
+ curl -LsSf https://astral.sh/uv/install.sh | sh
33
+ # Restart your shell so "uv" is on PATH, or follow the installer hint
34
+ ```
35
+
36
+ ### Run the CLI locally
37
+
38
+ ```bash
39
+ make install
40
+
41
+ # Start the CLI
42
+ make run
43
+ # or
44
+ uv run openhands
45
+ ```
46
+
47
+ ### Build a standalone executable
48
+
49
+ ```bash
50
+ # Build (installs PyInstaller if needed)
51
+ ./build.sh --install-pyinstaller
52
+
53
+ # The binary will be in dist/
54
+ ./dist/openhands # macOS/Linux
55
+ # dist/openhands.exe # Windows
56
+ ```
@@ -0,0 +1,43 @@
1
+ openhands_cli/__init__.py,sha256=OOEyXT_0NA9j-_8JxHrNviJnxq5XBOG2G2qMeJYqSuI,188
2
+ openhands_cli/agent_chat.py,sha256=A3Goz9S2doDsXz0Izh-fKttRsLtWHAeiKwAz4w7eDiI,7903
3
+ openhands_cli/gui_launcher.py,sha256=4R5BtSID6BHM_6BATvXcXD_DzGLgr1JkZGNFM2fm8aQ,7245
4
+ openhands_cli/locations.py,sha256=JaSSf6_X9hYztjlah46aYvn7DgM-nvXwemPQ8-UymXA,439
5
+ openhands_cli/pt_style.py,sha256=ppW6OTlhsXTQeZBnHRvRjkBboAukGo6e6gT5E3M8nCU,1296
6
+ openhands_cli/runner.py,sha256=UuyBdhK_9dOOlLlxjMjwCqcsmeL-CSgt1GxZADgTRe0,6398
7
+ openhands_cli/setup.py,sha256=wi9-1EXOKxdD0swa9piAlIq3hSgqb8tRqc74yHO0pWE,4637
8
+ openhands_cli/simple_main.py,sha256=HoPRXd9o2Z7cSk2zbwxMpPskaeJ9rjePOJfVMsH5Xs0,2079
9
+ openhands_cli/utils.py,sha256=kuIFkguoFdXM7srXClLgbL_Hk3ma1oR4ojs0Vq9_MRc,3454
10
+ openhands_cli/version_check.py,sha256=oLRnL2vso0-zmj4hLwXs-aBDrw2r7FllV0TELUuowFo,2339
11
+ openhands_cli/acp_impl/README.md,sha256=4SV8XTnGF6ey7U_rPMl2vKonFHRyZZ5weWCyKvtanok,1808
12
+ openhands_cli/acp_impl/__init__.py,sha256=wmjE30vECeQBesqXPxMZQt5kbsiqs6GGcR84sK2scC8,60
13
+ openhands_cli/acp_impl/agent.py,sha256=Nj0J_oiF8VTUuHwXACwJ7xC615AWNWP4BG7YYFvSQVs,18068
14
+ openhands_cli/acp_impl/event.py,sha256=YSAg3i9RsZ712nwx6WvKUoCKqlxhrqhtyaosmvrj-R4,19375
15
+ openhands_cli/acp_impl/main.py,sha256=y8XdBcVWBoLnZEKV9FGnz9GXjEveD2C9S-mAVue5N28,402
16
+ openhands_cli/acp_impl/test_utils.py,sha256=RdChYOXaa3m-NIiOp4lSo36TR9wIvsd54wo8V1DTiHQ,4932
17
+ openhands_cli/acp_impl/utils/__init__.py,sha256=rbZuhTDwFCLztuRlPLz60A9ojjdYgCcu6TP3HTDG6RI,423
18
+ openhands_cli/acp_impl/utils/convert.py,sha256=4Ot7piq1usfcZFBJqmOmhetodqQdhsHCNV2klEJu_tg,3622
19
+ openhands_cli/acp_impl/utils/mcp.py,sha256=ojjhzdjXOS8hcokk6tFPNfvi1IwJi__3cj8xg06pVqk,2064
20
+ openhands_cli/acp_impl/utils/resources.py,sha256=B6mCd4WINePy9ioZkJNSuQeensOLZP0C9pDPNIyeQ34,6687
21
+ openhands_cli/argparsers/main_parser.py,sha256=kTi0A4quWP-4ct4nTBRRcpJxl9daPn9gYsuODn0NnYY,2540
22
+ openhands_cli/argparsers/serve_parser.py,sha256=XEZolYh9785rCn5873jelwo9wQAPe8TpKCT6USh5oQQ,892
23
+ openhands_cli/listeners/__init__.py,sha256=WPp6gg1Xo4Ms87nOAnnHrrB_JQHU6tbPyANsu1r6ofY,95
24
+ openhands_cli/listeners/pause_listener.py,sha256=VF814vftAsMw3MUg50jNlR7orAT7lfK0Ug5W_65ffHw,2622
25
+ openhands_cli/tui/__init__.py,sha256=u3C2-KMUwc0FCgzy252qQZ6e8-fryQaFayrXFH99NPM,85
26
+ openhands_cli/tui/status.py,sha256=mmum5q8bj0c1p4oWacqKuGqrEhTh83VO00y7_VPPVTs,3631
27
+ openhands_cli/tui/tui.py,sha256=_maGy9QdQbILcbu7p1R7UuoeuyppO8JPlZBNsBiWP5E,4191
28
+ openhands_cli/tui/utils.py,sha256=0FwckO1StXmYNhd5rIgqA1wfuFVHTQTts8lmxwfG25w,536
29
+ openhands_cli/tui/visualizer.py,sha256=H8_AWZcuG_VzGIxdCu2MfCGLoihSRi_OqwW1fI0UDAQ,775
30
+ openhands_cli/tui/settings/mcp_screen.py,sha256=TJIN33SWS6NmVRJsWaELQ-ym3pv3gAkV8Bwd4eZ23g0,8369
31
+ openhands_cli/tui/settings/settings_screen.py,sha256=rFjSrdC9b10BzSivSnh9DWrO_lxGBaX2ZGAR_bGQZvg,7616
32
+ openhands_cli/tui/settings/store.py,sha256=2mZgYXXRnznTiE-pylg1OJZY8Y7Yruyr2sMEsUg-VaQ,5007
33
+ openhands_cli/user_actions/__init__.py,sha256=JXVhV9rAbr3Iu5Oe2pCfJDyXGJsGMraIGdE0nXB9-zg,502
34
+ openhands_cli/user_actions/agent_action.py,sha256=U9eOuL7ILzJplTmDbNFc9DdxSxvctwXMQvCVtaJF6zE,2756
35
+ openhands_cli/user_actions/exit_session.py,sha256=sddcUgIU8x0ZlLl3tDqJC6y9bWARBKaWZPDWYM6Fi28,624
36
+ openhands_cli/user_actions/settings_action.py,sha256=MxSJKBwG9ZLxUN2SoHM8rkFHoaVHS8kXJaoNNkFK3Yc,5816
37
+ openhands_cli/user_actions/types.py,sha256=9fQt-WzFEdNx1Jzzw2GzOh6eUHKXcbD0tEcPKYWDDvU,376
38
+ openhands_cli/user_actions/utils.py,sha256=wkCyneUaZis2QEzy_N5sZKfVz-UY5UCvtgIskpNjWXg,6341
39
+ openhands-1.3.0.dist-info/METADATA,sha256=aIA-yesnIzYkMkmtooGqxMFEITOlgpGlVCvpt4lS_Uc,1388
40
+ openhands-1.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
+ openhands-1.3.0.dist-info/entry_points.txt,sha256=osuGbXdgR0j4VVjADhmI1rJVdLaIC_msiX7N2p0gwpk,100
42
+ openhands-1.3.0.dist-info/licenses/LICENSE,sha256=CMN1TvlWHkk2fclMEclStpUdNUO8J8CtnY1MWUOiBXs,1069
43
+ openhands-1.3.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ openhands = openhands_cli.simple_main:main
3
+ openhands-acp = openhands_cli.acp:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 All Hands AI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,9 @@
1
+ """OpenHands package."""
2
+
3
+ from importlib.metadata import PackageNotFoundError, version
4
+
5
+
6
+ try:
7
+ __version__ = version("openhands")
8
+ except PackageNotFoundError:
9
+ __version__ = "0.0.0"
@@ -0,0 +1,68 @@
1
+ # ACP Implementation
2
+
3
+ ## What is the Agent Client Protocol (ACP)?
4
+
5
+ The [Agent Client Protocol (ACP)](https://agentclientprotocol.com/protocol/overview) is a standardized communication protocol that enables code editors and IDEs to interact with AI agents. ACP defines how clients (like code editors) and agents (like OpenHands) communicate through a JSON-RPC 2.0 interface.
6
+
7
+ For more details about the protocol, see the [ACP documentation](https://agentclientprotocol.com/protocol/overview).
8
+
9
+ ## Development Guide
10
+
11
+ ### Setup with Zed IDE
12
+
13
+ Follow the documentation at [OpenHands ACP Guide](https://docs.openhands.dev/openhands/usage/run-openhands/acp#zed-ide) for general setup instructions.
14
+
15
+ #### Option 1: Test with PR Branch
16
+
17
+ Add this agent configuration to test with the PR branch:
18
+
19
+ ```json
20
+ "OpenHands-uvx": {
21
+ "command": "uvx",
22
+ "args": [
23
+ "--from",
24
+ "git+https://github.com/OpenHands/OpenHands-CLI.git@xw/acp-simplification",
25
+ "openhands",
26
+ "acp"
27
+ ],
28
+ "env": {}
29
+ }
30
+ ```
31
+
32
+ #### Option 2: Launch Local Instance
33
+
34
+ Use this configuration to run your local development version:
35
+
36
+ ```json
37
+ "OpenHands-local": {
38
+ "command": "uv",
39
+ "args": [
40
+ "run",
41
+ "--project",
42
+ "/YOUR_LOCAL_PATH/OpenHands-CLI",
43
+ "openhands",
44
+ "acp"
45
+ ],
46
+ "env": {}
47
+ }
48
+ ```
49
+
50
+ ### Debugging
51
+
52
+ In Zed IDE, open ACP logs before starting a conversation:
53
+ - Press `Cmd+Shift+P`
54
+ - Search for **"dev: open acp log"**
55
+ - This visualizes all events between the ACP server and client
56
+
57
+ ### Testing with JSON-RPC CLI
58
+
59
+ To reproduce errors or test manually, send JSON-RPC events directly using the test script:
60
+
61
+ ```bash
62
+ uv run python scripts/acp/jsonrpc_cli.py ./dist/openhands acp
63
+ ```
64
+
65
+ This interactive CLI allows you to:
66
+ - Send JSON-RPC messages as single lines
67
+ - View stdout/stderr responses
68
+ - Exit with `:q`, `:quit`, or `:exit`
@@ -0,0 +1 @@
1
+ """OpenHands Agent Client Protocol (ACP) Implementation."""