webtap-tool 0.2.0__tar.gz → 0.2.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 (55) hide show
  1. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/CHANGELOG.md +26 -0
  2. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/PKG-INFO +1 -1
  3. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/pyproject.toml +1 -1
  4. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/setup.py +3 -12
  5. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/setup/chrome.py +2 -0
  6. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/setup/desktop.py +27 -4
  7. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/.gitignore +0 -0
  8. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/ARCHITECTURE.md +0 -0
  9. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/README.md +0 -0
  10. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/data/filters.json +0 -0
  11. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/extension/manifest.json +0 -0
  12. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/extension/popup.html +0 -0
  13. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/extension/popup.js +0 -0
  14. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/llms.txt +0 -0
  15. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/VISION.md +0 -0
  16. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/__init__.py +0 -0
  17. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/api.py +0 -0
  18. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/app.py +0 -0
  19. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/cdp/README.md +0 -0
  20. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/cdp/__init__.py +0 -0
  21. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/cdp/query.py +0 -0
  22. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/cdp/schema/README.md +0 -0
  23. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/cdp/schema/cdp_protocol.json +0 -0
  24. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/cdp/schema/cdp_version.json +0 -0
  25. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/cdp/session.py +0 -0
  26. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/DEVELOPER_GUIDE.md +0 -0
  27. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/TIPS.md +0 -0
  28. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/__init__.py +0 -0
  29. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/_builders.py +0 -0
  30. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/_errors.py +0 -0
  31. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/_tips.py +0 -0
  32. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/_utils.py +0 -0
  33. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/body.py +0 -0
  34. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/connection.py +0 -0
  35. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/console.py +0 -0
  36. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/events.py +0 -0
  37. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/fetch.py +0 -0
  38. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/filters.py +0 -0
  39. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/inspect.py +0 -0
  40. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/javascript.py +0 -0
  41. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/launch.py +0 -0
  42. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/navigation.py +0 -0
  43. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/commands/network.py +0 -0
  44. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/filters.py +0 -0
  45. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/README.md +0 -0
  46. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/__init__.py +0 -0
  47. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/body.py +0 -0
  48. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/console.py +0 -0
  49. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/fetch.py +0 -0
  50. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/main.py +0 -0
  51. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/network.py +0 -0
  52. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/setup/__init__.py +0 -0
  53. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/setup/extension.py +0 -0
  54. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/setup/filters.py +0 -0
  55. {webtap_tool-0.2.0 → webtap_tool-0.2.2}/src/webtap/services/setup/platform.py +0 -0
@@ -15,6 +15,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
 
16
16
  ### Removed
17
17
 
18
+ ## [0.2.2] - 2025-09-12
19
+
20
+ ### Added
21
+
22
+ ### Changed
23
+
24
+ ### Fixed
25
+ - macOS Chrome Debug.app now launches Chrome directly to avoid Rosetta warnings on Apple Silicon
26
+ - Added LSArchitecturePriority to Info.plist for native architecture support
27
+
28
+ ### Removed
29
+
30
+ ## [0.2.1] - 2025-09-12
31
+
32
+ ### Added
33
+
34
+ ### Changed
35
+
36
+ ### Fixed
37
+ - Chrome wrapper on macOS now includes `--remote-allow-origins='*'` flag to allow WebSocket connections
38
+ - All Chrome wrappers (Linux standard, Linux bindfs, macOS) now consistently include the flag
39
+ - Removed incorrect Linux-specific instructions from setup-desktop command output on macOS
40
+ - Fixed setup-chrome usage instructions to correctly reference `chrome-debug` instead of `google-chrome-stable`
41
+
42
+ ### Removed
43
+
18
44
  ## [0.2.0] - 2025-09-12
19
45
 
20
46
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webtap-tool
3
- Version: 0.2.0
3
+ Version: 0.2.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.2.0"
3
+ version = "0.2.2"
4
4
  description = "Terminal-based web page inspector for AI debugging sessions"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -150,23 +150,14 @@ def _format_setup_result(result: dict, component: str) -> dict:
150
150
  {
151
151
  "type": "list",
152
152
  "items": [
153
- "Run `google-chrome-stable` to start Chrome with debugging",
153
+ "Run `chrome-debug` to start Chrome with debugging",
154
154
  "Or use `run-chrome` command for direct launch",
155
155
  ],
156
156
  }
157
157
  )
158
158
  elif component == "desktop":
159
- elements.append({"type": "text", "content": "\n**Next steps:**"})
160
- elements.append(
161
- {
162
- "type": "list",
163
- "items": [
164
- "Log out and log back in (or run `update-desktop-database ~/.local/share/applications`)",
165
- "Chrome will now launch with debugging enabled from GUI",
166
- "The wrapper at ~/.local/bin/wrappers/google-chrome-stable will be used",
167
- ],
168
- }
169
- )
159
+ # Platform-specific instructions are already in the service's details
160
+ pass
170
161
 
171
162
  return {"elements": elements}
172
163
 
@@ -75,6 +75,7 @@ fi
75
75
  # Launch Chrome with debugging
76
76
  exec "$CHROME_BIN" \\
77
77
  --remote-debugging-port="$PORT" \\
78
+ --remote-allow-origins='*' \\
78
79
  --user-data-dir="$PROFILE_DIR" \\
79
80
  --no-first-run \\
80
81
  --no-default-browser-check \\
@@ -103,6 +104,7 @@ fi
103
104
  # Launch Chrome with debugging
104
105
  exec "$CHROME_APP" \\
105
106
  --remote-debugging-port="$PORT" \\
107
+ --remote-allow-origins='*' \\
106
108
  --user-data-dir="$PROFILE_DIR" \\
107
109
  --no-first-run \\
108
110
  --no-default-browser-check \\
@@ -62,6 +62,11 @@ MACOS_INFO_PLIST = """<?xml version="1.0" encoding="UTF-8"?>
62
62
  <string>????</string>
63
63
  <key>LSMinimumSystemVersion</key>
64
64
  <string>10.12</string>
65
+ <key>LSArchitecturePriority</key>
66
+ <array>
67
+ <string>arm64</string>
68
+ <string>x86_64</string>
69
+ </array>
65
70
  <key>CFBundleDocumentTypes</key>
66
71
  <array>
67
72
  <dict>
@@ -160,12 +165,30 @@ class DesktopSetupService:
160
165
  macos_dir = contents_dir / "MacOS"
161
166
  macos_dir.mkdir(parents=True, exist_ok=True)
162
167
 
163
- # Create launcher script
168
+ # Create launcher script that directly launches Chrome
169
+ # This avoids Rosetta warnings from nested bash scripts
164
170
  launcher_path = macos_dir / "Chrome Debug"
171
+
172
+ # Get Chrome path from platform info
173
+ chrome_path = self.chrome["path"]
174
+ profile_dir = self.paths["data_dir"] / "profiles" / "default"
175
+
165
176
  launcher_content = f"""#!/bin/bash
166
- # Chrome Debug app launcher
167
- # Uses absolute path to wrapper
168
- exec "{self.wrapper_path.expanduser()}" "$@"
177
+ # Chrome Debug app launcher - direct Chrome execution
178
+ # Avoids Rosetta warnings by directly launching Chrome
179
+
180
+ PORT=${{WEBTAP_PORT:-9222}}
181
+ PROFILE_DIR="{profile_dir}"
182
+ mkdir -p "$PROFILE_DIR"
183
+
184
+ # Launch Chrome directly with debugging
185
+ exec "{chrome_path}" \\
186
+ --remote-debugging-port="$PORT" \\
187
+ --remote-allow-origins='*' \\
188
+ --user-data-dir="$PROFILE_DIR" \\
189
+ --no-first-run \\
190
+ --no-default-browser-check \\
191
+ "$@"
169
192
  """
170
193
  launcher_path.write_text(launcher_content)
171
194
  launcher_path.chmod(0o755)
File without changes
File without changes
File without changes
File without changes