hud-python 0.3.1__py3-none-any.whl → 0.3.2__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.

Potentially problematic release.


This version of hud-python might be problematic. Click here for more details.

hud/task.py CHANGED
@@ -62,6 +62,7 @@ class Task(BaseModel):
62
62
  # Description of the task, for extra information about its purpose and context
63
63
  description: str | None = None
64
64
 
65
+ # Gold file url for the task
65
66
  gold_file_url: str | None = None
66
67
 
67
68
  @classmethod
hud/tools/computer/hud.py CHANGED
@@ -31,6 +31,7 @@ class HudComputerTool:
31
31
  height: int | None = None,
32
32
  display_num: int | None = None,
33
33
  platform_type: Literal["auto", "xdo", "pyautogui"] = "auto",
34
+ executor: BaseExecutor | None = None,
34
35
  rescale_images: bool = False,
35
36
  ) -> None:
36
37
  """
@@ -44,6 +45,7 @@ class HudComputerTool:
44
45
  - "auto": Automatically detect based on platform
45
46
  - "xdo": Use XDOExecutor (Linux/X11 only)
46
47
  - "pyautogui": Use PyAutoGUIExecutor (cross-platform)
48
+ executor: The executor to use. If None, will be auto-detected based on platform_type.
47
49
  rescale_images: If True, rescale screenshots. If False, only rescale action coordinates
48
50
  """
49
51
  # Use provided dimensions or defaults
@@ -70,6 +72,17 @@ class HudComputerTool:
70
72
  # Check if we need to scale
71
73
  self.needs_scaling = self.scale != 1.0
72
74
 
75
+ if executor is None:
76
+ self._choose_executor(platform_type, display_num)
77
+ else:
78
+ self.executor = executor
79
+
80
+ def _choose_executor(
81
+ self,
82
+ platform_type: Literal["auto", "xdo", "pyautogui"],
83
+ display_num: int | None,
84
+ ) -> None:
85
+ """Choose executor based on platform_type."""
73
86
  # Choose executor based on platform_type
74
87
  if platform_type == "auto":
75
88
  # Auto-detect based on platform
@@ -5,4 +5,4 @@ def test_import():
5
5
  """Test that the package can be imported."""
6
6
  import hud
7
7
 
8
- assert hud.__version__ == "0.3.1"
8
+ assert hud.__version__ == "0.3.2"
hud/version.py CHANGED
@@ -4,4 +4,4 @@ Version information for the HUD SDK.
4
4
 
5
5
  from __future__ import annotations
6
6
 
7
- __version__ = "0.3.1"
7
+ __version__ = "0.3.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hud-python
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: SDK for the HUD platform.
5
5
  Project-URL: Homepage, https://github.com/hud-evals/hud-python
6
6
  Project-URL: Bug Tracker, https://github.com/hud-evals/hud-python/issues
@@ -4,11 +4,11 @@ hud/exceptions.py,sha256=Xna_pdEK_ESwkcffsRmT5GXq4xSHLV5cu7Qu3MjstSE,5516
4
4
  hud/gym.py,sha256=-hp5HdPBWf6-j0CgSoX_f2CTLssf1Wo5UhfyrnPbvkc,4774
5
5
  hud/job.py,sha256=0vWbr3E5bYstVRzXS_6l-57JGUFcrZpmFrNkOSQ8Aa0,26969
6
6
  hud/settings.py,sha256=KPzeF9OUecApYH8YYMW-8vIRhFP_6htzzZvC4RCUARc,2183
7
- hud/task.py,sha256=Lhr-pHJEXGKUPxaT4UrJRvC3KwZcl2szM_sEM1l6xmU,5418
7
+ hud/task.py,sha256=l2mQM5Yc45kWjMXJkg1hVJfG0DLzTHAIXEvl4WLG-ho,5451
8
8
  hud/taskset.py,sha256=QjHbcxSy7h7fmtzRHW1ewxtOIydtH7ZotttDoiABTEY,6573
9
9
  hud/trajectory.py,sha256=LBVkFz6U_rmyooCZHN81tdOx0Z7DuAgzf0KQLejc4Fo,3937
10
10
  hud/types.py,sha256=h7fUowbdyGF4Fg8TUnvCFoa2fflRRPi6xx7YgpBwFis,3109
11
- hud/version.py,sha256=F0AzPXU574XP1t-vO3NkNHIuwe8Z3Q9rbT90d2vq07Q,104
11
+ hud/version.py,sha256=xXGUzDnO0wgnaDf7cvjChhGymzp3vrfpGjE5wBibi8E,104
12
12
  hud/adapters/__init__.py,sha256=zz24KdC_e9TJPgWo6y57_8SzevEE5ak4Cm6tXzMxwRk,266
13
13
  hud/adapters/claude/__init__.py,sha256=i7QEF-29FLb9qxp1eYtXs-adIk_tG54tL-9g6d3xodk,100
14
14
  hud/adapters/claude/adapter.py,sha256=vCpotJ5gzQs4PP2iCXVavIcyG8c_4m1P6fuXStwUxSo,6675
@@ -75,7 +75,7 @@ hud/tools/playwright_tool.py,sha256=IQT1hk5U4H8BI988iZq0B2oS_fbgkaX01Z-ZXL4r71o,
75
75
  hud/tools/utils.py,sha256=bfVyYMcBOJvr1QdptCjVb6jaHVGIL5WUxmY59kzMekQ,1447
76
76
  hud/tools/computer/__init__.py,sha256=ehKY7u0_4cZ9h7YQlOQjbKPWfd5LhQq8ZQn2w2-l2mY,302
77
77
  hud/tools/computer/anthropic.py,sha256=M-djQmd0vPZm95FDszaMh4wSaLFPhlcCUb-JkSuflnU,16104
78
- hud/tools/computer/hud.py,sha256=xyFYLqVoLsps0Dbs9kAfg941kXLnMHx7SL8a2skhjHw,13351
78
+ hud/tools/computer/hud.py,sha256=13_xjvf5-yO-7lYBoI44Br31CxL5EumSCQxq876h7rs,13840
79
79
  hud/tools/computer/openai.py,sha256=pcMGfoT6O8Rh9IrW_H1Mw2cIwk-FzCswrgjW19piRU8,10538
80
80
  hud/tools/executors/__init__.py,sha256=jHxfus9SLhkL6YGtebR5RyKYyVAix3yu5EkUp2Q27Kg,732
81
81
  hud/tools/executors/base.py,sha256=4h04Byt4ktaNk_aLOOI798pkMCLiqA7pE2PoaEn_hfg,11647
@@ -111,9 +111,9 @@ hud/utils/tests/test_config.py,sha256=dPlXYWuMrxX-NOYbf0vdJ27TJpfacKG8eiKOSGOcfD
111
111
  hud/utils/tests/test_init.py,sha256=UxlNTwjlSE2q3M0R86EmMYmmXmbRvzZaC-S2av26QXI,529
112
112
  hud/utils/tests/test_progress.py,sha256=QunwDgi_heQXhDgmC25zgjr-sFUu5FdJ_1aYigMKeIc,6351
113
113
  hud/utils/tests/test_telemetry.py,sha256=t0An1RTBaE0dZVEpF4uwuq5k1R-PXFR5k4u71h60tx8,1224
114
- hud/utils/tests/test_version.py,sha256=E3nH6EanHfkbILycFXBLt8KxHF2wXah-SjJS4199ZmA,159
114
+ hud/utils/tests/test_version.py,sha256=b0JOKjG9oz4PvBZxUS3hbQYWi8yTEz52VHqTlLXgSYM,159
115
115
  hud/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
116
- hud_python-0.3.1.dist-info/METADATA,sha256=qJBkPKsjYPHijWfbwTX81aEITSUtnk_zP9Twu5juQ80,10249
117
- hud_python-0.3.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
118
- hud_python-0.3.1.dist-info/licenses/LICENSE,sha256=yIzBheVUf86FC1bztAcr7RYWWNxyd3B-UJQ3uddg1HA,1078
119
- hud_python-0.3.1.dist-info/RECORD,,
116
+ hud_python-0.3.2.dist-info/METADATA,sha256=p5VyDJbUHnHXC1cUh50DJnVF8j8NIFqjEi-bdd8vP8c,10249
117
+ hud_python-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
118
+ hud_python-0.3.2.dist-info/licenses/LICENSE,sha256=yIzBheVUf86FC1bztAcr7RYWWNxyd3B-UJQ3uddg1HA,1078
119
+ hud_python-0.3.2.dist-info/RECORD,,