The world's first agentic reverse engineer.
feat: add SYNTHESIS phase and event types
Amruth11c0b77162eb
diff --git a/kong/agent/events.py b/kong/agent/events.pyindex e5d0e03..6f82fbc 100644--- a/kong/agent/events.py+++ b/kong/agent/events.py@@ -12,6 +12,7 @@ class Phase(Enum):TRIAGE = "triage"ANALYSIS = "analysis"CLEANUP = "cleanup"+ SYNTHESIS = "synthesis"EXPORT = "export"@@ -35,6 +36,10 @@ class EventType(Enum):CLEANUP_TYPE_CREATED = "cleanup_type_created"CLEANUP_SIGNATURES_RETRIED = "cleanup_signatures_retried"+ SYNTHESIS_GLOBALS_UNIFIED = "synthesis_globals_unified"+ SYNTHESIS_STRUCTS_SYNTHESIZED = "synthesis_structs_synthesized"+ SYNTHESIS_NAMES_REFINED = "synthesis_names_refined"+DEOBFUSCATION_DETECTED = "deobfuscation_detected"DEOBFUSCATION_TOOL_CALL = "deobfuscation_tool_call"DEOBFUSCATION_COMPLETE = "deobfuscation_complete"diff --git a/tests/test_events.py b/tests/test_events.pynew file mode 100644index 0000000..538fe66--- /dev/null+++ b/tests/test_events.py@@ -0,0 +1,13 @@+from __future__ import annotations++from kong.agent.events import EventType, Phase+++def test_synthesis_phase_exists() -> None:+ assert Phase.SYNTHESIS.value == "synthesis"+++def test_synthesis_event_types_exist() -> None:+ assert EventType.SYNTHESIS_GLOBALS_UNIFIED.value == "synthesis_globals_unified"+ assert EventType.SYNTHESIS_STRUCTS_SYNTHESIZED.value == "synthesis_structs_synthesized"+ assert EventType.SYNTHESIS_NAMES_REFINED.value == "synthesis_names_refined"