chore: add .hypothesis to .gitignore and commit remaining modified files

This commit is contained in:
2026-04-27 11:01:29 +02:00
parent 9ad49500f9
commit 3c4dd84a61
9 changed files with 24 additions and 12 deletions

View File

@@ -46,7 +46,7 @@ class ObstacleGuardPlugin(BehaviorPlugin):
if situation == SituationType.OBSTACLE_MODAL:
if misses >= 2:
logger.error("🛑 [ObstacleGuard] Failed to recover from OBSTACLE_MODAL after multiple attempts.")
sae.unlearn_current_state()
sae.unlearn_current_state(xml)
dump_ui_state(ctx.device, f"fatal_obstacle_{ctx.session_state.job_target}")
return BehaviorResult(executed=True, should_skip=True, metadata={"return_code": "CONTEXT_LOST"})

View File

@@ -49,7 +49,8 @@ class ResonanceEvaluatorPlugin(BehaviorPlugin):
tele = ctx.cognitive_stack.get("telepathic")
if tele:
logger.info("✨ [Resonance] Performing visual vibe check...")
vibe = tele.evaluate_post_vibe()
persona_interests = getattr(ctx.configs.args, "persona_interests", [])
vibe = tele.evaluate_post_vibe(ctx.device, persona_interests)
vibe_score = vibe.get("quality_score", 5) / 10.0
if vibe.get("matches_niche"):
vibe_score = min(1.0, vibe_score + 0.2)

View File

@@ -5,7 +5,7 @@ from time import sleep
logger = logging.getLogger(__name__)
def ghost_type(device, text: str):
def ghost_type(device, text: str, speed: str = "normal"):
"""
Tesla Stealth Ghost Keyboard.
Bypasses UIAutomator virtual IME completely and sends raw Native InputEvents.
@@ -48,6 +48,10 @@ def ghost_type(device, text: str):
else:
_adb_inject_text(device, chunk)
if speed == "fast":
sleep(random.uniform(0.01, 0.05))
continue
# Realistic pause between semantic bursts (humans think while typing)
if chunk.endswith((" ", ".", ",", "!", "?")):
sleep(random.uniform(0.2, 0.5))