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.
Files changed (58) hide show
  1. {fusiontest-0.2.40 → fusiontest-0.2.42}/PKG-INFO +1 -1
  2. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/action_model.py +15 -2
  3. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/goal_verifier.py +7 -2
  4. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/PKG-INFO +1 -1
  5. {fusiontest-0.2.40 → fusiontest-0.2.42}/pyproject.toml +1 -1
  6. {fusiontest-0.2.40 → fusiontest-0.2.42}/README.md +0 -0
  7. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/__init__.py +0 -0
  8. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/__init__.py +0 -0
  9. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/sites/shop/bugs.js +0 -0
  10. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/sites/shop/help.html +0 -0
  11. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/sites/shop/index.html +0 -0
  12. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/suites/shop-bugs.yaml +0 -0
  13. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/suites/shop.yaml +0 -0
  14. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/bench/suites/todomvc.yaml +0 -0
  15. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/cli.py +0 -0
  16. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/__init__.py +0 -0
  17. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/app_errors.py +0 -0
  18. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/bugs.py +0 -0
  19. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/netguard.py +0 -0
  20. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/promise_checker.py +0 -0
  21. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/replay.py +0 -0
  22. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/reproduce.py +0 -0
  23. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/runner.py +0 -0
  24. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/screen_parser.py +0 -0
  25. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/secrets.py +0 -0
  26. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/shared_traces.py +0 -0
  27. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/core/tokens.py +0 -0
  28. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/__init__.py +0 -0
  29. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/fusiontest_dashboard.yaml +0 -0
  30. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/github.yaml +0 -0
  31. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/hacker_news.yaml +0 -0
  32. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/httpbin.yaml +0 -0
  33. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/todomvc.yaml +0 -0
  34. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/demos/wikipedia.yaml +0 -0
  35. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/desktop/__init__.py +0 -0
  36. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/desktop/macos_adapter.py +0 -0
  37. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/desktop/playwright_adapter.py +0 -0
  38. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/desktop/windows_adapter.py +0 -0
  39. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/discovery/__init__.py +0 -0
  40. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/discovery/goal_generator.py +0 -0
  41. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/guardrails/__init__.py +0 -0
  42. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/guardrails/engine.py +0 -0
  43. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/mobile/__init__.py +0 -0
  44. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/mobile/android_adapter.py +0 -0
  45. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/mobile/ios_adapter.py +0 -0
  46. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/reporting/__init__.py +0 -0
  47. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/reporting/reporter.py +0 -0
  48. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/training/__init__.py +0 -0
  49. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/training/data_collector.py +0 -0
  50. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/training/dataset_builder.py +0 -0
  51. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest/training/trainer.py +0 -0
  52. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/SOURCES.txt +0 -0
  53. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/dependency_links.txt +0 -0
  54. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/entry_points.txt +0 -0
  55. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/not-zip-safe +0 -0
  56. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/requires.txt +0 -0
  57. {fusiontest-0.2.40 → fusiontest-0.2.42}/fusiontest.egg-info/top_level.txt +0 -0
  58. {fusiontest-0.2.40 → fusiontest-0.2.42}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fusiontest
3
- Version: 0.2.40
3
+ Version: 0.2.42
4
4
  Summary: AI-powered UI testing for mobile and desktop — by FusionLeap.io
5
5
  Author-email: FusionLeap <hello@fusionleap.io>
6
6
  License: MIT
@@ -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
- return (resp.content[0].text if resp.content else request.empty), usage
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[-5:]]]
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 GROQ_FAST_MODEL, LLMCaller, LLMRequest
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[-5:]]]
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 "
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fusiontest
3
- Version: 0.2.40
3
+ Version: 0.2.42
4
4
  Summary: AI-powered UI testing for mobile and desktop — by FusionLeap.io
5
5
  Author-email: FusionLeap <hello@fusionleap.io>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "fusiontest"
7
- version = "0.2.40"
7
+ version = "0.2.42"
8
8
  description = "AI-powered UI testing for mobile and desktop — by FusionLeap.io"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes