fix(e7): CI-Gate-Vorbereitung — ruff über app/ von 105 auf 0 Findings bereinigt; 8 echte F821-NameError-Produktionsbugs behoben (external_api stream_chat-Call-Signatur an stream_chat_comm angepasst, agent_runner uuid vor lokalem Import, automation/plugin UserTenant-Import, tasks delete-audit user_id, workflows/engine timedelta, unified_search/contracts Any); py311-kompatibles StepHandler-Alias statt type-Statement; E402/F841 bereinigt; Verifikation 85/89 grün (4 Failures = bekannter Vorbestand BUG-099)
Check Cross-Plugin Imports / check (push) Has been cancelled
Check Cross-Plugin Imports / check (push) Has been cancelled
This commit is contained in:
@@ -14,7 +14,6 @@ import uuid
|
||||
from datetime import UTC, datetime, timedelta
|
||||
from typing import Any
|
||||
|
||||
from sqlalchemy import select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from app.models.workflow import WorkflowInstance
|
||||
@@ -45,7 +44,8 @@ class StepResult:
|
||||
self.abort = abort
|
||||
|
||||
|
||||
type StepHandler = Any # Callable[..., Awaitable[StepResult]]
|
||||
# Callable[..., Awaitable[StepResult]] — classic alias for py3.11 compat
|
||||
StepHandler = Any
|
||||
|
||||
|
||||
# ─── Registry ────────────────────────────────────────────────────────────────
|
||||
@@ -534,6 +534,7 @@ async def _handle_webhook(
|
||||
return StepResult(error=f"URL blocked by SSRF protection: {url}", abort=True)
|
||||
|
||||
import json
|
||||
|
||||
import httpx
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user