webtap-tool 0.2.0__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.

webtap/commands/setup.py CHANGED
@@ -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)
@@ -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
@@ -28,7 +28,7 @@ webtap/commands/javascript.py,sha256=QpQdqqoQwwTyz1lpibZ92XKOL89scu_ndgSjkhaYuDk
28
28
  webtap/commands/launch.py,sha256=iZDLundKlxKRLKf3Vz5at42-tp2f-Uj5wZf7fbhBfA0,2202
29
29
  webtap/commands/navigation.py,sha256=Mapawp2AZTJQaws2uwlTgMUhqz7HlVTLxiZ06n_MQc0,6071
30
30
  webtap/commands/network.py,sha256=hwZshGGdVsJ_9MFjOKJXT07I990JjZInw2LLnKXLQ5Y,2910
31
- webtap/commands/setup.py,sha256=B60hajR8tKWLJcjlhEL4zYClB5DWd57AqnwJry_cHrs,10098
31
+ webtap/commands/setup.py,sha256=dov1LaN50nAEMNIuBLSK7mcnwhfn9rtqdTopBm1-PhA,9648
32
32
  webtap/services/README.md,sha256=rala_jtnNgSiQ1lFLM7x_UQ4SJZDceAm7dpkQMRTYaI,2346
33
33
  webtap/services/__init__.py,sha256=IjFqu0Ak6D-r18aokcQMtenDV3fbelvfjTCejGv6CZ0,570
34
34
  webtap/services/body.py,sha256=XQPa19y5eUc3XJ2TuwVK6kffO1VQoKqNs33MBBz7hzU,3913
@@ -37,12 +37,12 @@ webtap/services/fetch.py,sha256=nl6bpU2Vnf40kau4-mqAnIkhC-7Lx2vbTJKUglz9KnE,1360
37
37
  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
- webtap/services/setup/chrome.py,sha256=nNeb7j_yCSx5-Urw4RqbOE6x46gY_vR-s2-TCRMrc8U,7119
41
- webtap/services/setup/desktop.py,sha256=pMH5gk14iGEZ7SyaBNb4pYt7C1xJSx47oFzQCBIB_E4,7317
40
+ webtap/services/setup/chrome.py,sha256=zfPWeb6zm_xjIfiS2S_O9lR2BjGKaPXXo06pN_B9lAU,7187
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.0.dist-info/METADATA,sha256=e3ux3On__FO9C8B1LVQ12t30A-YtDhw-vHkbevZ7SlQ,17588
46
- webtap_tool-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
47
- webtap_tool-0.2.0.dist-info/entry_points.txt,sha256=iFe575I0CIb1MbfPt0oX2VYyY5gSU_dA551PKVR83TU,39
48
- webtap_tool-0.2.0.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,,