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
Check Cross-Plugin Imports / check (push) Has been cancelled
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user