fusiontest 0.2.40__tar.gz → 0.2.42__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.40 → fusiontest-0.2.42}/PKG-INFO +1 -1
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/action_model.py +15 -2
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/goal_verifier.py +7 -2
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/PKG-INFO +1 -1
- {fusiontest-0.2.40 → fusiontest-0.2.42}/pyproject.toml +1 -1
- {fusiontest-0.2.40 → fusiontest-0.2.42}/README.md +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/__init__.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/__init__.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/sites/shop/bugs.js +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/sites/shop/help.html +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/sites/shop/index.html +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/suites/shop-bugs.yaml +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/suites/shop.yaml +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/suites/todomvc.yaml +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/cli.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/__init__.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/app_errors.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/bugs.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/netguard.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/promise_checker.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/replay.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/reproduce.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/runner.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/screen_parser.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/secrets.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/shared_traces.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/tokens.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/__init__.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/fusiontest_dashboard.yaml +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/github.yaml +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/hacker_news.yaml +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/httpbin.yaml +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/todomvc.yaml +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/wikipedia.yaml +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/desktop/__init__.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/desktop/macos_adapter.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/desktop/playwright_adapter.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/desktop/windows_adapter.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/discovery/__init__.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/discovery/goal_generator.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/guardrails/__init__.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/guardrails/engine.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/mobile/__init__.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/mobile/android_adapter.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/mobile/ios_adapter.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/reporting/__init__.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/reporting/reporter.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/training/__init__.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/training/data_collector.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/training/dataset_builder.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/training/trainer.py +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/SOURCES.txt +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/dependency_links.txt +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/entry_points.txt +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/not-zip-safe +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/requires.txt +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/top_level.txt +0 -0
- {fusiontest-0.2.40 → fusiontest-0.2.42}/setup.cfg +0 -0
|
@@ -288,6 +288,14 @@ _ACTION_ELEMENT_CHARS = 120
|
|
|
288
288
|
# still match the element (seen on fusionleap.io: the model hunted for a
|
|
289
289
|
# separate "See the engagement" link after tapping the card).
|
|
290
290
|
_ACTION_ELEMENT_TAIL_CHARS = 40
|
|
291
|
+
|
|
292
|
+
# How many of the goal's actions (each with what it changed) the action and
|
|
293
|
+
# verifier prompts show. A goal like "check every FAQ answer" spends one action
|
|
294
|
+
# per item, and on an accordion where opening one closes the last, the earlier
|
|
295
|
+
# items' evidence exists only in the history: with only the last 5 shown, the
|
|
296
|
+
# model re-checked items it had already verified until it ran out of steps.
|
|
297
|
+
# History is per goal and capped by max_steps_per_goal (12 in prod).
|
|
298
|
+
PROMPT_HISTORY_ACTIONS = 15
|
|
291
299
|
_CONTENT_LINE_RE = re.compile(r'^\s*(\w+): "(.*)"$')
|
|
292
300
|
_ELEMENT_LINE_RE = re.compile(r'^\s*\[\d+\] ')
|
|
293
301
|
|
|
@@ -795,12 +803,17 @@ class LLMCaller:
|
|
|
795
803
|
max_tokens=request.max_output_tokens,
|
|
796
804
|
system=request.system,
|
|
797
805
|
messages=[{"role": "user", "content": prompt + request.reminder}],
|
|
806
|
+
# Newer models (Haiku 5.5…) think by default, which would spend the
|
|
807
|
+
# short output budget and put a thinking block first. These are
|
|
808
|
+
# short JSON answers: no thinking, as for Gemini Flash.
|
|
809
|
+
**({} if request.thinking else {"thinking": {"type": "disabled"}}),
|
|
798
810
|
)
|
|
799
811
|
usage = TokenUsage(
|
|
800
812
|
input_tokens=getattr(getattr(resp, "usage", None), "input_tokens", 0) or 0,
|
|
801
813
|
output_tokens=getattr(getattr(resp, "usage", None), "output_tokens", 0) or 0,
|
|
802
814
|
)
|
|
803
|
-
|
|
815
|
+
text = next((b.text for b in resp.content if b.type == "text"), None)
|
|
816
|
+
return (text or request.empty), usage
|
|
804
817
|
|
|
805
818
|
if backend == "gemini":
|
|
806
819
|
from google.genai import types as genai_types
|
|
@@ -1023,7 +1036,7 @@ class ActionModel(LLMCaller):
|
|
|
1023
1036
|
]
|
|
1024
1037
|
|
|
1025
1038
|
if history:
|
|
1026
|
-
sections += ["", "ACTIONS TAKEN SO FAR:", *[f" - {h}" for h in history[-
|
|
1039
|
+
sections += ["", "ACTIONS TAKEN SO FAR:", *[f" - {h}" for h in history[-PROMPT_HISTORY_ACTIONS:]]]
|
|
1027
1040
|
|
|
1028
1041
|
if invalid_actions:
|
|
1029
1042
|
# Keep only the most recent unique failures; a long blacklist
|
|
@@ -26,7 +26,12 @@ import logging
|
|
|
26
26
|
import re
|
|
27
27
|
from dataclasses import dataclass, field, replace
|
|
28
28
|
|
|
29
|
-
from fusiontest.core.action_model import
|
|
29
|
+
from fusiontest.core.action_model import (
|
|
30
|
+
GROQ_FAST_MODEL,
|
|
31
|
+
PROMPT_HISTORY_ACTIONS,
|
|
32
|
+
LLMCaller,
|
|
33
|
+
LLMRequest,
|
|
34
|
+
)
|
|
30
35
|
from fusiontest.core.tokens import TokenUsage
|
|
31
36
|
|
|
32
37
|
logger = logging.getLogger("fusiontest.goal_verifier")
|
|
@@ -214,7 +219,7 @@ class GoalVerifier:
|
|
|
214
219
|
screen_text[:20000],
|
|
215
220
|
]
|
|
216
221
|
if history:
|
|
217
|
-
parts += ["", "ACTIONS TAKEN:", *[f" - {a}" for a in history[-
|
|
222
|
+
parts += ["", "ACTIONS TAKEN:", *[f" - {a}" for a in history[-PROMPT_HISTORY_ACTIONS:]]]
|
|
218
223
|
parts += [
|
|
219
224
|
"",
|
|
220
225
|
"Has the goal been achieved, judging by what is visible on screen now and by "
|
|
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
|