Files
Denton Social ddc5cb66c8 bridges: standalone third-party API bridges; isolate the command gateway
Split messaging UX (invite links, read, send) out of the command gateway into a
new `semif_agent.bridges` layer. Each bridge is its own process (`cli bridge`)
against its own service daemon/profile; the SimpleX bridge owns a second
simplex-chat daemon and buffers every inbound DM, so a message sent to the
connect-link address shows up in `simplex.next_message`.

- new: bridges/{base,inbox,registry,simplex}.py + neutral semif_agent/simplex_ws.py
- gateway: delete bridge.py; drop address/observer/pull-mode from the command path
- codegen: inject the bridge catalog (describe_bridges) into body + elicitation prompts
- seeds: repoint simplex.next_message/connect_link to top-level `simplex_bridge_url`
- config/bootstrap: new top-level `bridges` block + `simplex_bridge_url`; render
  semif-simplex-forward + semif-bridge units; gateway config loses bridge/inbox
- docs: AGENTS.md gateway isolation is non-negotiable
2026-09-28 15:24:44 -05:00

24 lines
869 B
Python

"""Messaging gateway: external messenger intake/reply for the SemIf agent.
The gateway is the agent's **command** surface and nothing else. A
`GatewayAdapter` owns a transport (SimpleX first), and `GatewayService` maps
inbound text onto the scheduler's existing gate/score/queue/dispatch pipeline
and routes results, questions, and repairs back to the originating chat.
Messaging *UX* — invite links, reading a contact's messages, composing sends —
does not live here; it belongs to the standalone bridge services in
`semif_agent.bridges`. Keeping the command surface free of that functionality
is a hard boundary (see AGENTS.md "gateway isolation").
"""
from .base import GatewayAdapter, InboundMessage, OutboundMessage
from .service import GatewayService
__all__ = [
"GatewayAdapter",
"InboundMessage",
"OutboundMessage",
"GatewayService",
]