webtap-tool 0.2.1__py3-none-any.whl → 0.2.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.

@@ -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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webtap-tool
3
- Version: 0.2.1
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
@@ -38,11 +38,11 @@ webtap/services/main.py,sha256=HcXdPuI7hzsxsNvfN0npGhj_M7HObc83Lr3fuy7BMeE,5673
38
38
  webtap/services/network.py,sha256=0o_--F6YvmXqqFqrcjL1gc6Vr9V1Ytb_U7r_DSUWupA,3444
39
39
  webtap/services/setup/__init__.py,sha256=rCi6HjyWQmtoBu6NwB1Aw3bEklxsC-bt1jPJ8rGeNgA,6635
40
40
  webtap/services/setup/chrome.py,sha256=zfPWeb6zm_xjIfiS2S_O9lR2BjGKaPXXo06pN_B9lAU,7187
41
- webtap/services/setup/desktop.py,sha256=pMH5gk14iGEZ7SyaBNb4pYt7C1xJSx47oFzQCBIB_E4,7317
41
+ webtap/services/setup/desktop.py,sha256=P5bBllQeiHsM2ELbVVmvOxE5k9UiooDh1cRQNKbWm6s,8038
42
42
  webtap/services/setup/extension.py,sha256=OvTLuSi5u-kBAkqWAzfYt5lTNZrduXoCMZhFCuMisew,3318
43
43
  webtap/services/setup/filters.py,sha256=lAPSLMH_KZQO-7bRkmURwzforx7C3SDrKEw2ZogN-Lo,3220
44
44
  webtap/services/setup/platform.py,sha256=RQrhvp8mLg5Bssy5Slfl5SPVGo3BlUIn3lxVm-ZmkAM,3987
45
- webtap_tool-0.2.1.dist-info/METADATA,sha256=HTlR5Z1l1xBdsleyRU0QmFSUvnuK6Fw2N6VSpY2JfO8,17588
46
- webtap_tool-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
47
- webtap_tool-0.2.1.dist-info/entry_points.txt,sha256=iFe575I0CIb1MbfPt0oX2VYyY5gSU_dA551PKVR83TU,39
48
- webtap_tool-0.2.1.dist-info/RECORD,,
45
+ webtap_tool-0.2.2.dist-info/METADATA,sha256=ukRef3zrO-0wrxzGksrDieJ7lBpNNgizETkRIApz_Tg,17588
46
+ webtap_tool-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
47
+ webtap_tool-0.2.2.dist-info/entry_points.txt,sha256=iFe575I0CIb1MbfPt0oX2VYyY5gSU_dA551PKVR83TU,39
48
+ webtap_tool-0.2.2.dist-info/RECORD,,