[SKY-6] Backend: Enable 2FA code detection without TOTP credentials (#4786)

This commit is contained in:
Aaron Perez
2026-02-18 17:21:58 -05:00
committed by GitHub
parent b48bf707c3
commit e3b6d22fb6
28 changed files with 1989 additions and 41 deletions

View File

@@ -0,0 +1,14 @@
from skyvern.forge.sdk.notification.base import BaseNotificationRegistry
from skyvern.forge.sdk.notification.local import LocalNotificationRegistry
class NotificationRegistryFactory:
__registry: BaseNotificationRegistry = LocalNotificationRegistry()
@staticmethod
def set_registry(registry: BaseNotificationRegistry) -> None:
NotificationRegistryFactory.__registry = registry
@staticmethod
def get_registry() -> BaseNotificationRegistry:
return NotificationRegistryFactory.__registry