vibesurf 0.1.42__py3-none-any.whl → 0.1.43__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.
- vibe_surf/_version.py +2 -2
- vibe_surf/browser/watchdogs/dom_watchdog.py +11 -2
- vibe_surf/tools/vibesurf_tools.py +10 -2
- {vibesurf-0.1.42.dist-info → vibesurf-0.1.43.dist-info}/METADATA +1 -1
- {vibesurf-0.1.42.dist-info → vibesurf-0.1.43.dist-info}/RECORD +9 -9
- {vibesurf-0.1.42.dist-info → vibesurf-0.1.43.dist-info}/WHEEL +0 -0
- {vibesurf-0.1.42.dist-info → vibesurf-0.1.43.dist-info}/entry_points.txt +0 -0
- {vibesurf-0.1.42.dist-info → vibesurf-0.1.43.dist-info}/licenses/LICENSE +0 -0
- {vibesurf-0.1.42.dist-info → vibesurf-0.1.43.dist-info}/top_level.txt +0 -0
vibe_surf/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.1.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 1,
|
|
31
|
+
__version__ = version = '0.1.43'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 1, 43)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -120,7 +120,8 @@ class CustomDOMWatchdog(DOMWatchdog):
|
|
|
120
120
|
try:
|
|
121
121
|
self.logger.debug(
|
|
122
122
|
'🔍 DOMWatchdog.on_BrowserStateRequestEvent: 🎨 Applying Python-based highlighting...')
|
|
123
|
-
from browser_use.browser.python_highlights import create_highlighted_screenshot_async
|
|
123
|
+
# from browser_use.browser.python_highlights import create_highlighted_screenshot_async
|
|
124
|
+
from vibe_surf.browser.utils import create_highlighted_screenshot_async
|
|
124
125
|
|
|
125
126
|
# Get CDP session for viewport info
|
|
126
127
|
cdp_session = await self.browser_session.get_or_create_cdp_session()
|
|
@@ -129,8 +130,16 @@ class CustomDOMWatchdog(DOMWatchdog):
|
|
|
129
130
|
screenshot_b64,
|
|
130
131
|
content.selector_map,
|
|
131
132
|
cdp_session,
|
|
132
|
-
self.browser_session.browser_profile.filter_highlight_ids,
|
|
133
133
|
)
|
|
134
|
+
#
|
|
135
|
+
# import base64
|
|
136
|
+
# import os
|
|
137
|
+
# image_data = base64.b64decode(screenshot_b64)
|
|
138
|
+
# output_path = os.path.join("/Users/warmshao/AIBrowsers/VibeSurf/vibe_surf/tmp/vibesurf_workspace/", "screenshots", f"{time.time()}.png")
|
|
139
|
+
# os.makedirs(os.path.dirname(output_path), exist_ok=True)
|
|
140
|
+
# with open(output_path, 'wb') as f:
|
|
141
|
+
# f.write(image_data)
|
|
142
|
+
# pdb.set_trace()
|
|
134
143
|
|
|
135
144
|
self.logger.debug(
|
|
136
145
|
f'🔍 DOMWatchdog.on_BrowserStateRequestEvent: ✅ Applied highlights to {len(content.selector_map)} elements'
|
|
@@ -463,8 +463,16 @@ Format: [index1, index2, index3, ...]
|
|
|
463
463
|
|
|
464
464
|
page_html_content = await browser_session.get_html_content()
|
|
465
465
|
web_page_html = clean_html_basic(page_html_content)
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
|
|
467
|
+
max_html_len = 60000
|
|
468
|
+
if len(web_page_html) > max_html_len:
|
|
469
|
+
gap_len = (len(web_page_html) - max_html_len) // 2
|
|
470
|
+
clip_len = max_html_len // 3
|
|
471
|
+
web_page_html = (web_page_html[:clip_len] + "\n\n...\n\n" +
|
|
472
|
+
web_page_html[
|
|
473
|
+
clip_len + gap_len: clip_len + gap_len + clip_len + 10000] + "\n\n...\n\n" +
|
|
474
|
+
web_page_html[
|
|
475
|
+
clip_len + gap_len * 2 + clip_len: clip_len + gap_len * 2 + 2 * clip_len - 10000])
|
|
468
476
|
|
|
469
477
|
# Get current page URL for context
|
|
470
478
|
current_url = await browser_session.get_current_page_url()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
vibe_surf/__init__.py,sha256=WtduuMFGauMD_9dpk4fnRnLTAP6ka9Lfu0feAFNzLfo,339
|
|
2
|
-
vibe_surf/_version.py,sha256=
|
|
2
|
+
vibe_surf/_version.py,sha256=YPum5FQalsbt59zh9Uf_QO-wbAWl6bLq1oAvIJTN3Kg,706
|
|
3
3
|
vibe_surf/cli.py,sha256=pzJs--bjV6ZU7njJnxK_lh76l3pQ3opg_5V9Hw17PQw,21924
|
|
4
4
|
vibe_surf/common.py,sha256=_WWMxen5wFwzUjEShn3yDVC1OBFUiJ6Vccadi6tuG6w,1215
|
|
5
5
|
vibe_surf/logger.py,sha256=k53MFA96QX6t9OfcOf1Zws8PP0OOqjVJfhUD3Do9lKw,3043
|
|
@@ -49,7 +49,7 @@ vibe_surf/browser/browser_manager.py,sha256=PFJ9flmqR2uokuRZ3PDh_Dy6_6qcQ6kH_eRc
|
|
|
49
49
|
vibe_surf/browser/utils.py,sha256=bBtpMiyz2ixWOr31GbJwZ8pVYcnxztKjTJJO92z1BDY,35742
|
|
50
50
|
vibe_surf/browser/watchdogs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
51
|
vibe_surf/browser/watchdogs/action_watchdog.py,sha256=6J7ox8hlA3EeRI6YiBxpKCdaybe7n_zp9UpdBWSTc4s,609
|
|
52
|
-
vibe_surf/browser/watchdogs/dom_watchdog.py,sha256=
|
|
52
|
+
vibe_surf/browser/watchdogs/dom_watchdog.py,sha256=AYGyjzGMfgvsk2vcvjgA3CmRv_r_zAu9D0Gkk7L705I,11571
|
|
53
53
|
vibe_surf/chrome_extension/background.js,sha256=9YLbLmBl__PPUwN6Edf0EQfE53Br1VfjlUiIkznf4n4,30181
|
|
54
54
|
vibe_surf/chrome_extension/config.js,sha256=nHjjyWcmr1UgiLRJZa5qN-Jgz1CqK3EUzLe-VPA0Z3Q,1387
|
|
55
55
|
vibe_surf/chrome_extension/content.js,sha256=cB67jK3vIE5zrpXAfi3p50H3EyTqK5xockOph0Q4kQg,13708
|
|
@@ -104,7 +104,7 @@ vibe_surf/tools/mcp_client.py,sha256=ZrwzboDBf7-rtzO8JYpBhvKGg88CMfbrXlhtIs8pXSQ
|
|
|
104
104
|
vibe_surf/tools/report_writer_tools.py,sha256=2CyTTXOahTKZo7XwyWDDhJ--1mRA0uTtUWxu_DACAY0,776
|
|
105
105
|
vibe_surf/tools/utils.py,sha256=-Hu60Qu0M_gJpU7Ow8WpgBbZzMv_76DsYYj7eFk6M08,4219
|
|
106
106
|
vibe_surf/tools/vibesurf_registry.py,sha256=Z-8d9BrJl3RFMEK0Tw1Q5xNHX2kZGsnIGCTBZ3RM-pw,2159
|
|
107
|
-
vibe_surf/tools/vibesurf_tools.py,sha256=
|
|
107
|
+
vibe_surf/tools/vibesurf_tools.py,sha256=UZ-X1XwJE_M5zYQHUZG10PQOwPaInipx2vEs1Ncdvw4,113851
|
|
108
108
|
vibe_surf/tools/views.py,sha256=r_xHyBHR-d8cSgvZ-GJVnB4k7pQq9g5gsp882zM70mM,12897
|
|
109
109
|
vibe_surf/tools/voice_asr.py,sha256=AJG0yq_Jq-j8ulDlbPhVFfK1jch9_ASesis73iki9II,4702
|
|
110
110
|
vibe_surf/tools/website_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -120,9 +120,9 @@ vibe_surf/tools/website_api/xhs/helpers.py,sha256=Dq2RyYKClBQ2ha2yEfpS1mtZswx0z9
|
|
|
120
120
|
vibe_surf/tools/website_api/youtube/__init__.py,sha256=QWmZWSqo1O6XtaWP-SuL3HrBLYINjEWEyOy-KCytGDw,1145
|
|
121
121
|
vibe_surf/tools/website_api/youtube/client.py,sha256=0kKy7fkBNc63hRvDgXaKnguDpDJ92rG8T2nT_Y1F5MQ,51989
|
|
122
122
|
vibe_surf/tools/website_api/youtube/helpers.py,sha256=GPgqfNirLYjIpk1OObvoXd2Ktq-ahKOOKHO2WwQVXCw,12931
|
|
123
|
-
vibesurf-0.1.
|
|
124
|
-
vibesurf-0.1.
|
|
125
|
-
vibesurf-0.1.
|
|
126
|
-
vibesurf-0.1.
|
|
127
|
-
vibesurf-0.1.
|
|
128
|
-
vibesurf-0.1.
|
|
123
|
+
vibesurf-0.1.43.dist-info/licenses/LICENSE,sha256=vRmTjOYvD8RLiSGYYmFHnveYNswtO1uvSk1sd-Eu7sg,2037
|
|
124
|
+
vibesurf-0.1.43.dist-info/METADATA,sha256=1mQgM2v5nia4METnVkXCUaI1SFHyugPFGmumxnkB0YM,6787
|
|
125
|
+
vibesurf-0.1.43.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
126
|
+
vibesurf-0.1.43.dist-info/entry_points.txt,sha256=UxqpvMocL-PR33S6vLF2OmXn-kVzM-DneMeZeHcPMM8,48
|
|
127
|
+
vibesurf-0.1.43.dist-info/top_level.txt,sha256=VPZGHqSb6EEqcJ4ZX6bHIuWfon5f6HXl3c7BYpbRqnY,10
|
|
128
|
+
vibesurf-0.1.43.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|