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
This commit is contained in:
Denton Social committed 2026-09-28 15:24:44 -05:00
1 parent d46fbdca19
commit ddc5cb66c8
31 files changed
+1702 -1088

No files matched your search

+4 -3
View File
@@ -74,10 +74,11 @@ A stdlib-only Python script that:
Assert the server actually received the expected request (method, path,
headers, body) where practical. The loopback address exists only in the test;
the body must read its endpoint from config.
- For a messaging skill (a body that talks to the gateway bridge), stand up a
- For a messaging skill (a body that talks to a bridge service), stand up a
loopback server implementing the bridge endpoints the body uses (`GET /inbox`,
`GET /inbox/next?contact=`, `POST /send`) and assert the body built the real
requests. Never connect to a real `simplex-chat` daemon or the live bridge.
`GET /inbox/next?contact=`, `GET /address`, `POST /send`) and assert the body
built the real requests. Never connect to a real `simplex-chat` daemon or a
live bridge.
- For non-HTTP transports (IMAP, SMTP, subprocess, ...), exercise config
resolution, argument construction, and error paths (missing or misconfigured
values) without performing the real I/O.