native macOS codings agent orchestrator prowl.onev.cat
Something went wrong. Try again.
Python
1234567891011121314151617181920212223import pathlibimport reimport unittest
class AgentWaitScreenProviderTests(unittest.TestCase): def test_wait_screen_uses_detection_buffer(self): root = pathlib.Path(__file__).resolve().parents[1] source = (root / "supacode" / "App" / "supacodeApp.swift").read_text() match = re.search( r"screenProvider:\s*\{ target in(?P<body>.*?)\n\s*\}\n\s*\)", source, re.DOTALL, ) self.assertIsNotNone(match, "Agent wait screenProvider composition was not found") body = match.group("body") self.assertIn("readActiveContentsForCLI()", body) self.assertNotIn("readScreenContentsForCLI()", body)
if __name__ == "__main__": unittest.main()