fix: BUG-006/015 (cross-plugin imports — contract-based access), BUG-013 (data-testid already present), BUG-070 (npm audit fix)
Check Cross-Plugin Imports / check (push) Has been cancelled

This commit is contained in:
Agent Zero
2026-08-22 07:25:48 +02:00
parent a0269248b4
commit 40cc99af5c
5 changed files with 29 additions and 14 deletions
+6 -1
View File
@@ -65,7 +65,12 @@ async def post_task_to_workstream(
unavailable.
"""
try:
from app.plugins.builtins.kommunikation.services import send_message
from app.plugins.builtins.contracts import get_contract
_komm = get_contract("kommunikation")
if _komm and hasattr(_komm, "send_message"):
send_message = _komm.send_message
else:
from app.plugins.builtins.kommunikation.services import send_message
block_type = "goal_card" if task.task_type in ("goal", "milestone") else "task_card"
block_data = _goal_card_data(task) if block_type == "goal_card" else _task_card_data(task)