Spaces:
Running
Running
Commit History
-
feat: Demo mode for filming two robots conversing
RemiFabreApp/Demo toggle in the header. Demo mode shows only the live detection (big readout + scope + running conversation) and the alphabet — no compose box, so nothing reveals a message before it's heard. Hidden 'Demo setup' (gear) holds 'if you hear X, answer Y' rules + a per-rule 'Send' to kick one off. When this robot's mic decodes a finished message that matches a rule, it taps the reply on its own antennas. A self-echo guard (ctx.transmit sets a window covering the send + idle-finalize tail) stops a robot replying to its own taps. Matching is normalized so 'U OK?'/'U OK'/'UOK' are equivalent. Defaults: U OK->Y, SOS->WTF. Added lib/rules.js (+tests) and ctx.transmit; only the active page holds the mic.a33a583