webtap-tool 0.5.1__py3-none-any.whl → 0.5.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 webtap-tool might be problematic. Click here for more details.
- webtap/commands/javascript.py +2 -2
- webtap/commands/selections.py +2 -2
- webtap/services/setup/extension.py +8 -1
- {webtap_tool-0.5.1.dist-info → webtap_tool-0.5.2.dist-info}/METADATA +1 -1
- {webtap_tool-0.5.1.dist-info → webtap_tool-0.5.2.dist-info}/RECORD +7 -7
- {webtap_tool-0.5.1.dist-info → webtap_tool-0.5.2.dist-info}/WHEEL +0 -0
- {webtap_tool-0.5.1.dist-info → webtap_tool-0.5.2.dist-info}/entry_points.txt +0 -0
webtap/commands/javascript.py
CHANGED
|
@@ -18,11 +18,11 @@ mcp_desc = get_mcp_description("js")
|
|
|
18
18
|
def js(
|
|
19
19
|
state,
|
|
20
20
|
code: str,
|
|
21
|
-
selection: int = None,
|
|
21
|
+
selection: int = None, # pyright: ignore[reportArgumentType]
|
|
22
22
|
persist: bool = False,
|
|
23
23
|
wait_return: bool = True,
|
|
24
24
|
await_promise: bool = False,
|
|
25
|
-
) -> dict:
|
|
25
|
+
) -> dict:
|
|
26
26
|
"""Execute JavaScript in the browser with optional element selection.
|
|
27
27
|
|
|
28
28
|
Args:
|
webtap/commands/selections.py
CHANGED
|
@@ -38,8 +38,8 @@ def selections(state, expr: str = None) -> dict: # pyright: ignore[reportArgume
|
|
|
38
38
|
"No browser selections available",
|
|
39
39
|
suggestions=[
|
|
40
40
|
"Use the Chrome extension to select elements",
|
|
41
|
-
"Click 'Start Selection Mode' in the extension
|
|
42
|
-
"Select elements on the page
|
|
41
|
+
"Click 'Start Selection Mode' in the extension side panel",
|
|
42
|
+
"Select elements on the page",
|
|
43
43
|
],
|
|
44
44
|
)
|
|
45
45
|
|
|
@@ -12,7 +12,7 @@ logger = logging.getLogger(__name__)
|
|
|
12
12
|
|
|
13
13
|
# GitHub URLs for extension files
|
|
14
14
|
EXTENSION_BASE_URL = "https://raw.githubusercontent.com/angelsen/tap-tools/main/packages/webtap/extension"
|
|
15
|
-
EXTENSION_FILES = ["manifest.json", "
|
|
15
|
+
EXTENSION_FILES = ["manifest.json", "content.js", "sidepanel.html", "sidepanel.js"]
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class ExtensionSetupService:
|
|
@@ -46,6 +46,13 @@ class ExtensionSetupService:
|
|
|
46
46
|
# Ensure base directories exist
|
|
47
47
|
ensure_directories()
|
|
48
48
|
|
|
49
|
+
# If force, clean out old extension files first
|
|
50
|
+
if force and self.extension_dir.exists():
|
|
51
|
+
import shutil
|
|
52
|
+
|
|
53
|
+
shutil.rmtree(self.extension_dir)
|
|
54
|
+
logger.info(f"Cleaned old extension directory: {self.extension_dir}")
|
|
55
|
+
|
|
49
56
|
# Create extension directory
|
|
50
57
|
self.extension_dir.mkdir(parents=True, exist_ok=True)
|
|
51
58
|
|
|
@@ -23,11 +23,11 @@ webtap/commands/events.py,sha256=dsS6xd8GfkZ4VOnAQSCMxyEvwdha9J0Kh9oeK0CaU5Y,405
|
|
|
23
23
|
webtap/commands/fetch.py,sha256=8J6TPBWhStbkN5c5Q4KmK6nB5WiIgnAk0BkPFbh9ggg,7737
|
|
24
24
|
webtap/commands/filters.py,sha256=jDZ8JcYIZv_K6aupwuAo9uqAi85e3EIKbf38BXz5nnI,10316
|
|
25
25
|
webtap/commands/inspect.py,sha256=QonZigFYnfEVWYQY__r0n1aVvTqFBukFV-AWzc5KmfA,5711
|
|
26
|
-
webtap/commands/javascript.py,sha256=
|
|
26
|
+
webtap/commands/javascript.py,sha256=j0gKl6Y6-TWBYuN8SjoRHFPOhns9C1h8NkpIQkhRXG0,4879
|
|
27
27
|
webtap/commands/launch.py,sha256=iZDLundKlxKRLKf3Vz5at42-tp2f-Uj5wZf7fbhBfA0,2202
|
|
28
28
|
webtap/commands/navigation.py,sha256=aRVW-t2YJ0Haf6Wkg7uq8GstiRftklop9W1TicUk3oo,6036
|
|
29
29
|
webtap/commands/network.py,sha256=gEOg_u7VF9A5aKv5myzLCuvfAUkF1OPxsuj4UAgbS44,3111
|
|
30
|
-
webtap/commands/selections.py,sha256=
|
|
30
|
+
webtap/commands/selections.py,sha256=M001d_Gc51aSTuVeXGa19LDh2ZGR_qBJEjVGKpcGGFM,4895
|
|
31
31
|
webtap/commands/server.py,sha256=DOcIgYuKp0ydwrK9EA3hGwqOwfwM9DABhdPu3hk_jjo,6948
|
|
32
32
|
webtap/commands/setup.py,sha256=dov1LaN50nAEMNIuBLSK7mcnwhfn9rtqdTopBm1-PhA,9648
|
|
33
33
|
webtap/services/README.md,sha256=rala_jtnNgSiQ1lFLM7x_UQ4SJZDceAm7dpkQMRTYaI,2346
|
|
@@ -41,10 +41,10 @@ webtap/services/network.py,sha256=0o_--F6YvmXqqFqrcjL1gc6Vr9V1Ytb_U7r_DSUWupA,34
|
|
|
41
41
|
webtap/services/setup/__init__.py,sha256=lfoKCAroc-JoE_r7L-KZkF85ZWiB41MBIgrR7ZISSoE,7157
|
|
42
42
|
webtap/services/setup/chrome.py,sha256=zfPWeb6zm_xjIfiS2S_O9lR2BjGKaPXXo06pN_B9lAU,7187
|
|
43
43
|
webtap/services/setup/desktop.py,sha256=fXwQa201W-s2mengm_dJZ9BigJopVrO9YFUQcW_TSFQ,8022
|
|
44
|
-
webtap/services/setup/extension.py,sha256=
|
|
44
|
+
webtap/services/setup/extension.py,sha256=iJY43JlQO6Vicgd9Mz6Mw0LQfbBNUGhnwI8n-LnvHBY,3602
|
|
45
45
|
webtap/services/setup/filters.py,sha256=lAPSLMH_KZQO-7bRkmURwzforx7C3SDrKEw2ZogN-Lo,3220
|
|
46
46
|
webtap/services/setup/platform.py,sha256=7yn-7LQFffgerWzWRtOG-yNEsR36ICThYUAu_N2FAso,4532
|
|
47
|
-
webtap_tool-0.5.
|
|
48
|
-
webtap_tool-0.5.
|
|
49
|
-
webtap_tool-0.5.
|
|
50
|
-
webtap_tool-0.5.
|
|
47
|
+
webtap_tool-0.5.2.dist-info/METADATA,sha256=Tcq1QufQPMu8KhNGAOnV0UIc6_y1jiXag6Oe0yuipgE,17588
|
|
48
|
+
webtap_tool-0.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
49
|
+
webtap_tool-0.5.2.dist-info/entry_points.txt,sha256=iFe575I0CIb1MbfPt0oX2VYyY5gSU_dA551PKVR83TU,39
|
|
50
|
+
webtap_tool-0.5.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|