fusiontest 0.2.41__tar.gz → 0.2.43__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.41 → fusiontest-0.2.43}/PKG-INFO +1 -1
  2. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/action_model.py +9 -1
  3. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/goal_verifier.py +7 -2
  4. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/PKG-INFO +1 -1
  5. {fusiontest-0.2.41 → fusiontest-0.2.43}/pyproject.toml +1 -1
  6. {fusiontest-0.2.41 → fusiontest-0.2.43}/README.md +0 -0
  7. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/__init__.py +0 -0
  8. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/__init__.py +0 -0
  9. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/sites/shop/bugs.js +0 -0
  10. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/sites/shop/help.html +0 -0
  11. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/sites/shop/index.html +0 -0
  12. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/suites/shop-bugs.yaml +0 -0
  13. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/suites/shop.yaml +0 -0
  14. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/bench/suites/todomvc.yaml +0 -0
  15. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/cli.py +0 -0
  16. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/__init__.py +0 -0
  17. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/app_errors.py +0 -0
  18. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/bugs.py +0 -0
  19. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/netguard.py +0 -0
  20. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/promise_checker.py +0 -0
  21. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/replay.py +0 -0
  22. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/reproduce.py +0 -0
  23. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/runner.py +0 -0
  24. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/screen_parser.py +0 -0
  25. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/secrets.py +0 -0
  26. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/shared_traces.py +0 -0
  27. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/core/tokens.py +0 -0
  28. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/__init__.py +0 -0
  29. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/fusiontest_dashboard.yaml +0 -0
  30. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/github.yaml +0 -0
  31. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/hacker_news.yaml +0 -0
  32. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/httpbin.yaml +0 -0
  33. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/todomvc.yaml +0 -0
  34. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/demos/wikipedia.yaml +0 -0
  35. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/desktop/__init__.py +0 -0
  36. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/desktop/macos_adapter.py +0 -0
  37. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/desktop/playwright_adapter.py +0 -0
  38. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/desktop/windows_adapter.py +0 -0
  39. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/discovery/__init__.py +0 -0
  40. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/discovery/goal_generator.py +0 -0
  41. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/guardrails/__init__.py +0 -0
  42. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/guardrails/engine.py +0 -0
  43. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/mobile/__init__.py +0 -0
  44. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/mobile/android_adapter.py +0 -0
  45. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/mobile/ios_adapter.py +0 -0
  46. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/reporting/__init__.py +0 -0
  47. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/reporting/reporter.py +0 -0
  48. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/training/__init__.py +0 -0
  49. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/training/data_collector.py +0 -0
  50. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/training/dataset_builder.py +0 -0
  51. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest/training/trainer.py +0 -0
  52. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/SOURCES.txt +0 -0
  53. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/dependency_links.txt +0 -0
  54. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/entry_points.txt +0 -0
  55. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/not-zip-safe +0 -0
  56. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/requires.txt +0 -0
  57. {fusiontest-0.2.41 → fusiontest-0.2.43}/fusiontest.egg-info/top_level.txt +0 -0
  58. {fusiontest-0.2.41 → fusiontest-0.2.43}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fusiontest
3
- Version: 0.2.41
3
+ Version: 0.2.43
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
 
@@ -1028,7 +1036,7 @@ class ActionModel(LLMCaller):
1028
1036
  ]
1029
1037
 
1030
1038
  if history:
1031
- 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:]]]
1032
1040
 
1033
1041
  if invalid_actions:
1034
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.41
3
+ Version: 0.2.43
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.41"
7
+ version = "0.2.43"
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