fusiontest 0.2.38__tar.gz → 0.2.40__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.
- {fusiontest-0.2.38 → fusiontest-0.2.40}/PKG-INFO +1 -1
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/action_model.py +9 -3
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest.egg-info/PKG-INFO +1 -1
- {fusiontest-0.2.38 → fusiontest-0.2.40}/pyproject.toml +1 -1
- {fusiontest-0.2.38 → fusiontest-0.2.40}/README.md +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/__init__.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/bench/__init__.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/bench/sites/shop/bugs.js +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/bench/sites/shop/help.html +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/bench/sites/shop/index.html +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/bench/suites/shop-bugs.yaml +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/bench/suites/shop.yaml +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/bench/suites/todomvc.yaml +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/cli.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/__init__.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/app_errors.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/bugs.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/goal_verifier.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/netguard.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/promise_checker.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/replay.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/reproduce.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/runner.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/screen_parser.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/secrets.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/shared_traces.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/core/tokens.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/demos/__init__.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/demos/fusiontest_dashboard.yaml +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/demos/github.yaml +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/demos/hacker_news.yaml +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/demos/httpbin.yaml +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/demos/todomvc.yaml +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/demos/wikipedia.yaml +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/desktop/__init__.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/desktop/macos_adapter.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/desktop/playwright_adapter.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/desktop/windows_adapter.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/discovery/__init__.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/discovery/goal_generator.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/guardrails/__init__.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/guardrails/engine.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/mobile/__init__.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/mobile/android_adapter.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/mobile/ios_adapter.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/reporting/__init__.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/reporting/reporter.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/training/__init__.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/training/data_collector.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/training/dataset_builder.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest/training/trainer.py +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest.egg-info/SOURCES.txt +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest.egg-info/dependency_links.txt +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest.egg-info/entry_points.txt +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest.egg-info/not-zip-safe +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest.egg-info/requires.txt +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/fusiontest.egg-info/top_level.txt +0 -0
- {fusiontest-0.2.38 → fusiontest-0.2.40}/setup.cfg +0 -0
|
@@ -283,6 +283,11 @@ LLM_REQUEST_TIMEOUT_SECONDS = 120
|
|
|
283
283
|
_ACTION_CONTENT_CHARS = 1500
|
|
284
284
|
_ACTION_LABEL_CHARS = 80
|
|
285
285
|
_ACTION_ELEMENT_CHARS = 120
|
|
286
|
+
# A long label keeps its end too: cards that are one big link end with the call
|
|
287
|
+
# to action ("… 12 weeks See the engagement"), and a goal that names it must
|
|
288
|
+
# still match the element (seen on fusionleap.io: the model hunted for a
|
|
289
|
+
# separate "See the engagement" link after tapping the card).
|
|
290
|
+
_ACTION_ELEMENT_TAIL_CHARS = 40
|
|
286
291
|
_CONTENT_LINE_RE = re.compile(r'^\s*(\w+): "(.*)"$')
|
|
287
292
|
_ELEMENT_LINE_RE = re.compile(r'^\s*\[\d+\] ')
|
|
288
293
|
|
|
@@ -291,8 +296,8 @@ def compact_screen_for_action(screen_text: str) -> str:
|
|
|
291
296
|
"""Trim a screen's page-content section for the per-step action prompt.
|
|
292
297
|
|
|
293
298
|
Every interactive element is kept (the model can only act on what it sees),
|
|
294
|
-
but very long labels — e.g. list items holding whole paragraphs — are cut
|
|
295
|
-
the model acts by index. In the page content, headings are kept whole,
|
|
299
|
+
but very long labels — e.g. list items holding whole paragraphs — are cut in
|
|
300
|
+
the middle, keeping both ends: the model acts by index. In the page content, headings are kept whole,
|
|
296
301
|
other text is cut to 80 characters, and the section stops at ~1,500 characters.
|
|
297
302
|
"""
|
|
298
303
|
lines: list[str] = []
|
|
@@ -306,7 +311,8 @@ def compact_screen_for_action(screen_text: str) -> str:
|
|
|
306
311
|
if not in_content:
|
|
307
312
|
if (len(line) > _ACTION_ELEMENT_CHARS and _ELEMENT_LINE_RE.match(line)
|
|
308
313
|
and " options: " not in line): # a picker's choices must stay visible
|
|
309
|
-
|
|
314
|
+
head = _ACTION_ELEMENT_CHARS - _ACTION_ELEMENT_TAIL_CHARS
|
|
315
|
+
line = line[:head] + "…" + line[-_ACTION_ELEMENT_TAIL_CHARS:]
|
|
310
316
|
lines.append(line)
|
|
311
317
|
continue
|
|
312
318
|
match = _CONTENT_LINE_RE.match(line)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|