feat: add plugin runtime and cross-device task orchestration
This commit is contained in:
1 parent
3ee4a5f7a8
commit
6663233ab8
82 files changed
+4147
-124
No files matched your search
@@ -60,6 +60,7 @@ class ScreenData(BaseModel):
|
||||
height: int = Field(default=2400, description="Device screen height in pixels")
|
||||
timestamp: float = Field(default_factory=time.time, description="Capture timestamp")
|
||||
platform: str = Field(default="android", description="Platform identifier")
|
||||
observation_text: str = ""
|
||||
|
||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
||||
|
||||
|
||||
@@ -33,6 +33,11 @@ logger = get_logger(__name__)
|
||||
|
||||
def create_driver(ctx: "ArtemisContext") -> BaseDeviceDriver:
|
||||
"""Instantiates the appropriate BaseDeviceDriver based on the runtime context."""
|
||||
if getattr(ctx, "execution_target", None) == "computer":
|
||||
from artemis.plugins.desktop import PluginScreenDriver
|
||||
|
||||
return PluginScreenDriver(ctx)
|
||||
|
||||
# 1. Cloud mode check. Cloud devices are reached through the gateway's
|
||||
# RemoteUIAutomatorClient; ARTEMIS_HIERARCHY_BACKEND does not apply there
|
||||
# because the Accessibility Helper needs a local adb forward.
|
||||
|
||||
Reference in new issue
Block a user