webtap-tool 0.5.1__tar.gz → 0.5.2__tar.gz
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_tool-0.5.1 → webtap_tool-0.5.2}/CHANGELOG.md +13 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/PKG-INFO +1 -1
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/pyproject.toml +1 -1
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/javascript.py +2 -2
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/selections.py +2 -2
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/setup/extension.py +8 -1
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/.gitignore +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/ARCHITECTURE.md +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/README.md +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/data/filters.json +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/extension/content.js +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/extension/manifest.json +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/extension/sidepanel.html +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/extension/sidepanel.js +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/llms.txt +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/VISION.md +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/__init__.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/api.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/app.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/README.md +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/__init__.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/query.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/schema/README.md +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/schema/cdp_protocol.json +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/schema/cdp_version.json +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/session.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/DEVELOPER_GUIDE.md +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/TIPS.md +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/__init__.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/_builders.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/_tips.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/_utils.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/body.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/connection.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/console.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/events.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/fetch.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/filters.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/inspect.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/launch.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/navigation.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/network.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/server.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/setup.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/filters.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/README.md +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/__init__.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/body.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/console.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/dom.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/fetch.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/main.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/network.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/setup/__init__.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/setup/chrome.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/setup/desktop.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/setup/filters.py +0 -0
- {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/setup/platform.py +0 -0
|
@@ -15,6 +15,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
15
15
|
|
|
16
16
|
### Removed
|
|
17
17
|
|
|
18
|
+
## [0.5.2] - 2025-10-09
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
- **setup-extension**: Update to download new side panel files (content.js, sidepanel.html, sidepanel.js) instead of old popup files
|
|
26
|
+
- **setup-extension --force**: Now properly cleans old extension directory before downloading new files
|
|
27
|
+
- **selections() command**: Updated error message to reference "side panel" instead of "popup"
|
|
28
|
+
|
|
29
|
+
### Removed
|
|
30
|
+
|
|
18
31
|
## [0.5.1] - 2025-10-09
|
|
19
32
|
|
|
20
33
|
### Added
|
|
@@ -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:
|
|
@@ -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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|