mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-12 19:50:57 +05:00
* Stop initializing Git repositories for OpenCode sessions * Isolate optional AI failures behind a lazy plugin adapter * Keep explicit plugin enable flags boolean after config resolution * Use Django login redirect encoding at the optional agent boundary * Cover cold-start failures and real browser storage isolation * Verify persisted dismissal and native storage denial variants * Keep headless browser interaction independent of display timing * Install optional OpenCode clients through the plugin extra * Authenticate and route optional OpenCode WebSockets with real browser coverage * Apply control-plane policy and proxy authentication to agent sockets
25 lines
666 B
Python
25 lines
666 B
Python
"""
|
|
ASGI config for archivebox project.
|
|
|
|
It exposes the ASGI callable as a module-level variable named ``application``.
|
|
|
|
For more information on this file, see
|
|
https://docs.djangoproject.com/en/stable/howto/deployment/asgi/
|
|
"""
|
|
|
|
from django.core.asgi import get_asgi_application
|
|
|
|
from archivebox.config.django import setup_django
|
|
|
|
setup_django(check_db=True)
|
|
|
|
django_application = get_asgi_application()
|
|
|
|
|
|
async def application(scope, receive, send):
|
|
if scope["type"] == "websocket":
|
|
from archivebox.opencode.views import websocket_view
|
|
|
|
return await websocket_view(scope, receive, send)
|
|
return await django_application(scope, receive, send)
|