mirror of
https://github.com/usestrix/strix.git
synced 2026-09-15 23:31:27 +00:00
26 lines
787 B
Python
26 lines
787 B
Python
"""Report/finding helpers."""
|
|
|
|
from importlib import import_module
|
|
from typing import TYPE_CHECKING, Any
|
|
|
|
from strix.report.state import ReportState, get_global_report_state, set_global_report_state
|
|
|
|
|
|
if TYPE_CHECKING:
|
|
from strix.report.dedupe import check_duplicate
|
|
|
|
__all__ = [
|
|
"ReportState",
|
|
"check_duplicate",
|
|
"get_global_report_state",
|
|
"set_global_report_state",
|
|
]
|
|
|
|
|
|
def __getattr__(name: str) -> Any:
|
|
# check_duplicate pulls in the agents SDK import graph, so it resolves
|
|
# lazily: importing this package must stay lightweight and never enter
|
|
# that graph (the import warm-up thread may be walking it concurrently).
|
|
if name == "check_duplicate":
|
|
return import_module("strix.report.dedupe").check_duplicate
|
|
raise AttributeError(name)
|