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
5 changes: 5 additions & 0 deletions packages/agentenv-protocol/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ macos = [
"pyobjc-framework-Quartz>=11; sys_platform == 'darwin'",
"pyobjc-framework-ScreenCaptureKit>=11; sys_platform == 'darwin'",
]
# A Linux driver on X11Driver: mss captures the X display and XTEST sends its input, through python-xlib.
x11 = [
"mss>=9,<11",
"python-xlib>=0.33,<0.34",
]
dev = [
"a2a-sdk[http-server]>=0.3.26,<0.4",
"python-multipart>=0.0.13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,18 @@
)
from .driver import DEFAULT_IDENTITY, ComputerDriverEnvironment, DriverDeclaration, computer_driver
from ._macos import MacOSDriver
from ._x11 import X11Driver
from .recording import RecordedFrame, RecordedSegment, RecordHints, Recording, frames_in_thread

# The names whose modules need the computer extra (mcp, av and Pillow), by module; MacOSDriver's, the macos extra too,
# on first use of the Mac.
# on first use of the Mac, and X11Driver's, the x11 extra.
_ON_USE = {
"driver": ("ComputerDriverEnvironment", "computer_driver", "DEFAULT_IDENTITY", "DriverDeclaration"),
"card": ("COMPUTER", "COMPUTER_READY", "COMPUTER_DISPLAY", "COMPUTER_SPACES", "COMPUTER_POINTER",
"COMPUTER_KEYBOARD", "COMPUTER_PAGE", "COMPUTER_EXEC", "COMPUTER_RECORDING"),
"recording": ("Recording", "RecordHints", "RecordedFrame", "RecordedSegment", "frames_in_thread"),
"_macos": ("MacOSDriver",),
"_x11": ("X11Driver",),
}


Expand All @@ -120,6 +122,7 @@ def __getattr__(name: str) -> Any:

__all__ = [
"ComputerDriverEnvironment", "computer_driver", "DEFAULT_IDENTITY", "DriverDeclaration", "MacOSDriver",
"X11Driver",
"ComputerAppEnvironment", "computer_app", "install", "linux", "install_step", "ready_check", "Linux", "Service",
"Launch", "Ready", "Packages", "AptSource", "Download", "RunScript",
"AppDeclaration", "AppOs",
Expand Down
Loading
Loading