gateway: add simplex-address helper for onboarding

The daemon does not print its contact address; query /_show_address over the
WebSocket API. scripts/simplex-address.py reads ws_url from config.json and
prints the bot's short/full contact link so a human can add it in their
SimpleX app. bootstrap.sh points at it in the next-steps hint.
This commit is contained in:
Denton Social committed 2026-09-26 17:29:40 -05:00
1 parent 5df560a922
commit 756d4b47b7
3 files changed
+84 -2

No files matched your search

+4
View File
@@ -578,6 +578,10 @@ unit tests (24) + box integration tests (2).
logout/reboot. The gateway is its own process — the REPL and the gateway are
independent front ends onto the same on-disk logs/registry (do not run two
scheduler processes over one skill store concurrently).
- **Bot address.** `python scripts/simplex-address.py` queries the running
daemon for the bot's contact link (`/_show_address <userId>`), which a human
adds in their SimpleX app to start a DM. `bootstrap.sh` prints this hint; the
address is created automatically on the daemon's first `--headless` run.
- **Transport contract** (`gateway/base.py`): `GatewayAdapter.run(on_inbound,
outbound_queue)` blocks, delivering `InboundMessage`s and draining a stdlib
`queue.Queue[OutboundMessage | None]`. Scheduler work is synchronous and can