mirror of https://github.com/kortix-ai/suna.git
- Created unified AgentLoader for all agent data operations - Eliminated 8 manual AgentResponse constructions across codebase - Reduced agent_runs.py complexity by 163 lines (85→35 lines in 2 functions) - Reduced core_utils.py from 553→69 lines (-87%) - Extracted focused utility modules: * utils/icon_generator.py (179 lines) * utils/limits_checker.py (245 lines) * utils/run_management.py (145 lines) * utils/project_helpers.py (113 lines) * utils/mcp_helpers.py (41 lines) - Fixed duplicate router inclusions in api.py - Renamed template_service.py → marketplace_service.py for clarity - Reduced template transformer from 73→17 lines (-77%) - Inlined module-specific helpers (moved agent_run access check) - Fixed version data false alarm warnings - Updated AgentResponse model to support optional fields for list operations Total impact: ~450 lines of duplicate code eliminated, dramatically improved maintainability |
||
---|---|---|
.. | ||
__init__.py | ||
agents.py | ||
common.py | ||
imports.py | ||
threads.py |