feat: implement skeleton phase

This commit is contained in:
hh
2026-05-19 14:19:15 +02:00
parent 75a23d231e
commit 221e660c5c
21 changed files with 586 additions and 3 deletions
+24
View File
@@ -0,0 +1,24 @@
"""Frontend ABC.
A frontend is anything that listens on a port and routes inbound traffic
into the agent/MCP registries. ``configure`` is called once after the
``Gateway`` is built; ``serve`` runs the listening loop.
"""
from __future__ import annotations
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from beaver_gateway.core.registry import Gateway
class Frontend(ABC):
"""Listens on a port, dispatches into the gateway."""
@abstractmethod
def configure(self, gateway: Gateway) -> None: ...
@abstractmethod
async def serve(self) -> None: ...