Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ browser = [
"hai-drivers[web]>=0.1.3",
]
workstation = [
"hai-drivers[browser-cli,desktop-cli]>=0.1.6",
"hai-drivers[browser-cli,cua-cli,desktop-cli]>=0.1.9",
]
all = [
"hai-agents[browser,cli,desktop,workstation]",
Expand Down
3 changes: 2 additions & 1 deletion src/hai_agents_local/workstation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Local workstation bridge: the agent's shell runs on this machine and drives it through the desk and web CLIs."""
"""Local workstation bridge: the agent's shell runs on this machine and drives it through the desk, cua and web CLIs."""

from __future__ import annotations

Expand Down Expand Up @@ -58,6 +58,7 @@ def create_driver(self) -> ManagedCodeSandboxInterface:
str(self.workspace),
environment_variables={
"COORDINATE_SYSTEM": "0-1000",
"CUA_SESSION": self.session_id,
"PATH": os.pathsep.join([os.path.dirname(desk), path]),
},
)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,12 +689,12 @@ def test_workstation_serves_a_shell_in_its_session_folder_with_the_cli_commands(
bridge._driver = bridge.create_driver()
try:
result, error = bridge._dispatch(
"execute", {"command": "pwd -P; echo $COORDINATE_SYSTEM; command -v desk web click"}
"execute", {"command": "pwd -P; echo $COORDINATE_SYSTEM $CUA_SESSION; command -v desk web cua click"}
)
assert error is None and result["exit_code"] == 0
out = result["stdout"].split()
assert out[0] == str((tmp_path / "hai" / bridge.session_id).resolve())
assert out[1] == "0-1000" and len(out) == 5
assert out[1:3] == ["0-1000", bridge.session_id] and len(out) == 7
finally:
bridge._driver.close()

Expand Down
27 changes: 22 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading