oagi 0.4.0__py3-none-any.whl → 0.4.1__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 oagi might be problematic. Click here for more details.
- oagi/async_short_task.py +3 -3
- oagi/pyautogui_action_handler.py +4 -0
- oagi/short_task.py +3 -3
- oagi/types/models/action.py +1 -0
- {oagi-0.4.0.dist-info → oagi-0.4.1.dist-info}/METADATA +1 -1
- {oagi-0.4.0.dist-info → oagi-0.4.1.dist-info}/RECORD +8 -8
- {oagi-0.4.0.dist-info → oagi-0.4.1.dist-info}/WHEEL +0 -0
- {oagi-0.4.0.dist-info → oagi-0.4.1.dist-info}/licenses/LICENSE +0 -0
oagi/async_short_task.py
CHANGED
|
@@ -41,14 +41,14 @@ class AsyncShortTask(AsyncTask):
|
|
|
41
41
|
logger.debug(f"Async auto mode step {i + 1}/{max_steps}")
|
|
42
42
|
image = await image_provider()
|
|
43
43
|
step = await self.step(image)
|
|
44
|
+
if executor:
|
|
45
|
+
logger.debug(f"Executing {len(step.actions)} actions asynchronously")
|
|
46
|
+
await executor(step.actions)
|
|
44
47
|
if step.stop:
|
|
45
48
|
logger.info(
|
|
46
49
|
f"Async auto mode completed successfully after {i + 1} steps"
|
|
47
50
|
)
|
|
48
51
|
return True
|
|
49
|
-
if executor:
|
|
50
|
-
logger.debug(f"Executing {len(step.actions)} actions asynchronously")
|
|
51
|
-
await executor(step.actions)
|
|
52
52
|
|
|
53
53
|
logger.warning(
|
|
54
54
|
f"Async auto mode reached max steps ({max_steps}) without completion"
|
oagi/pyautogui_action_handler.py
CHANGED
|
@@ -115,6 +115,10 @@ class PyautoguiActionHandler:
|
|
|
115
115
|
x, y = self._parse_coords(arg)
|
|
116
116
|
pyautogui.doubleClick(x, y)
|
|
117
117
|
|
|
118
|
+
case ActionType.LEFT_TRIPLE:
|
|
119
|
+
x, y = self._parse_coords(arg)
|
|
120
|
+
pyautogui.tripleClick(x, y)
|
|
121
|
+
|
|
118
122
|
case ActionType.RIGHT_SINGLE:
|
|
119
123
|
x, y = self._parse_coords(arg)
|
|
120
124
|
pyautogui.rightClick(x, y)
|
oagi/short_task.py
CHANGED
|
@@ -41,12 +41,12 @@ class ShortTask(Task):
|
|
|
41
41
|
logger.debug(f"Auto mode step {i + 1}/{max_steps}")
|
|
42
42
|
image = image_provider()
|
|
43
43
|
step = self.step(image)
|
|
44
|
-
if step.stop:
|
|
45
|
-
logger.info(f"Auto mode completed successfully after {i + 1} steps")
|
|
46
|
-
return True
|
|
47
44
|
if executor:
|
|
48
45
|
logger.debug(f"Executing {len(step.actions)} actions")
|
|
49
46
|
executor(step.actions)
|
|
47
|
+
if step.stop:
|
|
48
|
+
logger.info(f"Auto mode completed successfully after {i + 1} steps")
|
|
49
|
+
return True
|
|
50
50
|
|
|
51
51
|
logger.warning(f"Auto mode reached max steps ({max_steps}) without completion")
|
|
52
52
|
return False
|
oagi/types/models/action.py
CHANGED
|
@@ -2,15 +2,15 @@ oagi/__init__.py,sha256=m-Z121YCIwQOPXpTC8kd_UIJizcX8QuHyrSSguQ0KE0,2187
|
|
|
2
2
|
oagi/async_client.py,sha256=oDj4kIdtaV37uopoAeClCFQTxrYRwHV2HwMAcMdVYwE,8455
|
|
3
3
|
oagi/async_pyautogui_action_handler.py,sha256=F-lKyePCONWI03WnSxpX_QwxONbvnfdQu51wTod6mdw,1614
|
|
4
4
|
oagi/async_screenshot_maker.py,sha256=pI-dbLcYOzcO1ffgTmozAdbYJQNBPKA7hmqj1RxEmIY,1688
|
|
5
|
-
oagi/async_short_task.py,sha256=
|
|
5
|
+
oagi/async_short_task.py,sha256=jvFTbmXTxFlkpAwmWeZlxbTSv_RB7V561hxw6gUcigw,1961
|
|
6
6
|
oagi/async_single_step.py,sha256=QawXO4GyfMz6O9jV8QBC1vKxFuS9vjKQxxJ1nwgHBzI,2838
|
|
7
7
|
oagi/async_task.py,sha256=bclqtgg7mI2WAp-62jOz044tVk4wruycpn9NYDncnA8,4145
|
|
8
8
|
oagi/exceptions.py,sha256=VMwVS8ouE9nHhBpN3AZMYt5_U2kGcihWaTnBhoQLquo,1662
|
|
9
9
|
oagi/logging.py,sha256=CWe89mA5MKTipIvfrqSYkv2CAFNBSwHMDQMDkG_g64g,1350
|
|
10
10
|
oagi/pil_image.py,sha256=Zp7YNwyE_AT25ZEFsWKbzMxbO8JOQsJ1Espph5ye8k8,3804
|
|
11
|
-
oagi/pyautogui_action_handler.py,sha256=
|
|
11
|
+
oagi/pyautogui_action_handler.py,sha256=ix_Zl9uHch3Oz1H6bNEb7-1ee3-qiW_MsT-4SbWBf7g,6610
|
|
12
12
|
oagi/screenshot_maker.py,sha256=sVuW7jn-K4FmLhmYI-akdNI-UVcTeBzh9P1_qJhoq1s,1282
|
|
13
|
-
oagi/short_task.py,sha256=
|
|
13
|
+
oagi/short_task.py,sha256=9l1PDX70vDUEX2CIJ66yaAtb96P3mK_m95JffspnYFI,1779
|
|
14
14
|
oagi/single_step.py,sha256=djhGOHzA5Y3-9_ity9QiJr_ObZZ04blSmNZsLXXXfkg,2939
|
|
15
15
|
oagi/sync_client.py,sha256=E6EgFIe-H91rdsPhF1puwrBTpOnKaL6JA1WHR4R-CLY,9395
|
|
16
16
|
oagi/task.py,sha256=JfsugIhBrwDmi1xOEVQdqmXsGFK-H4p17-B4rM8kbWs,4001
|
|
@@ -21,10 +21,10 @@ oagi/types/async_image_provider.py,sha256=wnhRyPtTmuALt45Qore74-RCkP5yxU9sZGjvOz
|
|
|
21
21
|
oagi/types/image.py,sha256=KgPCCTJ6D5vHIaGZdbTE7eQEa1WlT6G9tf59ZuUCV2U,537
|
|
22
22
|
oagi/types/image_provider.py,sha256=oYFdOYznrK_VOR9egzOjw5wFM5w8EY2sY01pH0ANAgU,1112
|
|
23
23
|
oagi/types/models/__init__.py,sha256=bVzzGxb6lVxAQyJpy0Z1QknSe-xC3g4OIDr7t-p_3Ys,467
|
|
24
|
-
oagi/types/models/action.py,sha256=
|
|
24
|
+
oagi/types/models/action.py,sha256=hh6mRRSSWgrW4jpZo71zGMCOcZpV5_COu4148uG6G48,967
|
|
25
25
|
oagi/types/models/image_config.py,sha256=tl6abVg_-IAPLwpaWprgknXu7wRWriMg-AEVyUX73v0,1567
|
|
26
26
|
oagi/types/models/step.py,sha256=RSI4H_2rrUBq_xyCoWKaq7JHdJWNobtQppaKC1l0aWU,471
|
|
27
|
-
oagi-0.4.
|
|
28
|
-
oagi-0.4.
|
|
29
|
-
oagi-0.4.
|
|
30
|
-
oagi-0.4.
|
|
27
|
+
oagi-0.4.1.dist-info/METADATA,sha256=AGVosMgpoFwLAB9BWAknn7a3aXwVAiUAWvTQJm0w3RY,4620
|
|
28
|
+
oagi-0.4.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
29
|
+
oagi-0.4.1.dist-info/licenses/LICENSE,sha256=sy5DLA2M29jFT4UfWsuBF9BAr3FnRkYtnAu6oDZiIf8,1075
|
|
30
|
+
oagi-0.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|