Extract scan_addons_source_report + its _scan_python_file/_scan_xml_file/manifest helpers from agent_tools.py into a new core module addon_scanner.py. Re-export the names from agent_tools so imports and test monkeypatches keep working (see how server.py re-exports). Add the module to the core list in .importlinter. Gates: pytest, ruff, mypy, lint-imports.
Extract
scan_addons_source_report+ its_scan_python_file/_scan_xml_file/manifest helpers fromagent_tools.pyinto a new core moduleaddon_scanner.py. Re-export the names fromagent_toolsso imports and test monkeypatches keep working (see how server.py re-exports). Add the module to the core list in.importlinter. Gates: pytest, ruff, mypy, lint-imports.