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:
1 parent
d46fbdca19
commit
ddc5cb66c8
31 files changed
+1702
-1088
No files matched your search
@@ -1,11 +1,11 @@
|
||||
"""Hermetic mechanics test for simplex.next_message.
|
||||
|
||||
Run from this folder: `python skill.test.py`. No external network: a loopback
|
||||
http.server plays the messenger gateway's bridge. This proves the body peeks the
|
||||
http.server plays the standalone SimpleX forwarding bridge. This proves the body peeks the
|
||||
inbox, resolves the conversation through a SemIf sub-decision (or a configured
|
||||
default), pops the real `next` message, and fails honestly when the bridge is
|
||||
unreachable. It does NOT prove the live integration — only a real run against
|
||||
the gateway and a real contact does.
|
||||
the bridge and a real contact does.
|
||||
"""
|
||||
|
||||
import json
|
||||
@@ -89,7 +89,7 @@ def message(identifier, contact, name, text):
|
||||
|
||||
|
||||
def config(url, default=""):
|
||||
return {"messaging_bridge_url": url, "simplex_default_contact": default}
|
||||
return {"simplex_bridge_url": url, "simplex_default_contact": default}
|
||||
|
||||
|
||||
def test_multiple_senders_uses_semif_decision():
|
||||
|
||||
Reference in new issue
Block a user