mirror of
https://github.com/storytold/effectcraft.git
synced 2026-12-05 08:21:21 -05:00
96094c7cad
Every connection to `effectcraft --control PORT` must sign in before anything runs: the
shared handshake of the agents channel (auth.challenge + proof, or auth {token}), within
10 s of connecting. The launch keeps a random token in control/PORT.token in the settings
folder, owner-only, removed at exit (the shared craft_control::auth files);
EFFECTCRAFT_CONTROL_TOKEN sets it for both sides. `effectcraft-cli --bridge PORT` reads
the file on every connection and signs in with the challenge, so the token never crosses
the wire.
Builds on Barzabel's design in #2165 (per-launch token in the settings folder, auth first,
10 s deadline, client discovery), rebuilt on the shared craft-libs pieces.
Co-authored-by: Barzabel <38911974+Barzabel@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>