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:
1 parent
5df560a922
commit
756d4b47b7
3 files changed
+84
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user