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.

Files changed (58) hide show
  1. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/CHANGELOG.md +13 -0
  2. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/PKG-INFO +1 -1
  3. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/pyproject.toml +1 -1
  4. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/javascript.py +2 -2
  5. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/selections.py +2 -2
  6. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/setup/extension.py +8 -1
  7. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/.gitignore +0 -0
  8. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/ARCHITECTURE.md +0 -0
  9. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/README.md +0 -0
  10. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/data/filters.json +0 -0
  11. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/extension/content.js +0 -0
  12. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/extension/manifest.json +0 -0
  13. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/extension/sidepanel.html +0 -0
  14. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/extension/sidepanel.js +0 -0
  15. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/llms.txt +0 -0
  16. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/VISION.md +0 -0
  17. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/__init__.py +0 -0
  18. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/api.py +0 -0
  19. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/app.py +0 -0
  20. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/README.md +0 -0
  21. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/__init__.py +0 -0
  22. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/query.py +0 -0
  23. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/schema/README.md +0 -0
  24. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/schema/cdp_protocol.json +0 -0
  25. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/schema/cdp_version.json +0 -0
  26. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/cdp/session.py +0 -0
  27. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/DEVELOPER_GUIDE.md +0 -0
  28. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/TIPS.md +0 -0
  29. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/__init__.py +0 -0
  30. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/_builders.py +0 -0
  31. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/_tips.py +0 -0
  32. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/_utils.py +0 -0
  33. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/body.py +0 -0
  34. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/connection.py +0 -0
  35. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/console.py +0 -0
  36. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/events.py +0 -0
  37. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/fetch.py +0 -0
  38. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/filters.py +0 -0
  39. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/inspect.py +0 -0
  40. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/launch.py +0 -0
  41. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/navigation.py +0 -0
  42. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/network.py +0 -0
  43. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/server.py +0 -0
  44. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/commands/setup.py +0 -0
  45. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/filters.py +0 -0
  46. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/README.md +0 -0
  47. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/__init__.py +0 -0
  48. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/body.py +0 -0
  49. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/console.py +0 -0
  50. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/dom.py +0 -0
  51. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/fetch.py +0 -0
  52. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/main.py +0 -0
  53. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/network.py +0 -0
  54. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/setup/__init__.py +0 -0
  55. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/setup/chrome.py +0 -0
  56. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/setup/desktop.py +0 -0
  57. {webtap_tool-0.5.1 → webtap_tool-0.5.2}/src/webtap/services/setup/filters.py +0 -0
  58. {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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webtap-tool
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: Terminal-based web page inspector for AI debugging sessions
5
5
  Author-email: Fredrik Angelsen <fredrikangelsen@gmail.com>
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "webtap-tool"
3
- version = "0.5.1"
3
+ version = "0.5.2"
4
4
  description = "Terminal-based web page inspector for AI debugging sessions"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -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: # pyright: ignore[reportArgumentType]
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 popup",
42
- "Select elements on the page and submit a prompt",
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", "popup.html", "popup.js"]
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