refactor: reorganize core report and tui modules

This commit is contained in:
0xallam
2026-04-26 14:28:50 -07:00
parent c163ef882b
commit 629ea60b02
37 changed files with 1185 additions and 1061 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ from typing import Any, Literal
from agents import RunContextWrapper, function_tool
from strix.orchestration.coordinator import coordinator_from_context
from strix.core.agents import coordinator_from_context
logger = logging.getLogger(__name__)
+3 -3
View File
@@ -9,7 +9,7 @@ from typing import Any
from agents import RunContextWrapper, function_tool
from strix.orchestration.coordinator import coordinator_from_context
from strix.core.agents import coordinator_from_context
logger = logging.getLogger(__name__)
@@ -44,9 +44,9 @@ def _do_finish(
return {"success": False, "message": "Validation failed", "errors": errors}
try:
from strix.telemetry.scan_store import get_global_scan_store
from strix.report.state import get_global_report_state
scan_store = get_global_scan_store()
scan_store = get_global_report_state()
if scan_store is None:
logger.warning("No global scan store; scan results not persisted")
return {
+2 -2
View File
@@ -214,9 +214,9 @@ async def _do_create( # noqa: PLR0912
cvss_score, severity, _vector = _calculate_cvss(cvss_breakdown)
try:
from strix.telemetry.scan_store import get_global_scan_store
from strix.report.state import get_global_report_state
scan_store = get_global_scan_store()
scan_store = get_global_report_state()
if scan_store is None:
logger.warning("No global scan store; vulnerability report not persisted")
return {