fix: Replace automation stubs with real execution engine

- Replace automation execute stub with run_automation() from execution_engine.py
- Replace agent execute stub with run_agent() from agent_runner.py
- Persist automation settings in system_settings.automation_config JSONB
- Add migration 0034 for automation_config column
- Settings are now saved and loaded from database instead of being ignored
This commit is contained in:
Agent Zero
2026-07-25 02:52:07 +02:00
parent 46cadb5165
commit 6412eb03a8
4 changed files with 160 additions and 30 deletions
+3
View File
@@ -50,3 +50,6 @@ class SystemSettings(Base, TenantMixin):
theme_accent_color: Mapped[str] = mapped_column(String(20), nullable=False, default="#d946ef")
theme_font_family: Mapped[str] = mapped_column(String(100), nullable=False, default="Inter")
theme_border_radius: Mapped[str] = mapped_column(String(20), nullable=False, default="0.5rem")
# Automation plugin settings (JSONB)
from sqlalchemy.dialects.postgresql import JSONB
automation_config: Mapped[dict | None] = mapped_column(JSONB, nullable=True)