Scaffold SimpleX Orchestrate: supervisor over official binaries
A standalone control-plane app that spawns and drives the official SimpleX binaries (never modifies simplex source). Validated against simplex-chat built from source (stable v6.5.4, GHC 9.6.3). - CLAUDE.md: architecture notes mined from the upstream docs (WebSocket bot API, per-profile DBs, directory/broadcast bot config) - supervisor/: process registry + port allocation (supervisor.py), corrId/cmd<->resp WebSocket client (ws_client.py), binary locator (binaries.py), FastAPI front with REST control + /events stream (server.py) - smoke_test.py: Pattern-1 handshake (spawn simplex-chat -p, create+read user) — PASS - group_test.py: two accounts, invitation connect + group invite/join, verified membership over the real SMP network — PASS - build_chat.sh / install_ghc.sh: reproducible toolchain + from-source build Key finding: fresh DB prompts for a display name on stdin; spawn with --create-bot-display-name to start the WebSocket server non-interactively. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
14
build_chat.sh
Executable file
14
build_chat.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
export PATH="$HOME/.ghcup/bin:$PATH"
|
||||
cd /home/user/code/simplex-orchestrate/simplex-chat
|
||||
echo "=== toolchain ==="; ghc --version; cabal --version
|
||||
echo "=== cabal update ==="; cabal update
|
||||
echo "=== building exe:simplex-chat (long) ==="
|
||||
cabal build exe:simplex-chat
|
||||
BIN="$(cabal list-bin exe:simplex-chat)"
|
||||
echo "=== built: $BIN ==="
|
||||
cp "$BIN" /home/user/code/simplex-orchestrate/bin/simplex-chat
|
||||
chmod +x /home/user/code/simplex-orchestrate/bin/simplex-chat
|
||||
/home/user/code/simplex-orchestrate/bin/simplex-chat --help >/dev/null 2>&1 && echo "binary runs OK"
|
||||
echo "=== BUILD COMPLETE ==="
|
||||
Reference in New Issue
Block a user