Automates Focusmate session booking from task metadata using Playwright with stealth mode.
cp .env.example .env
npm install
npm run prepareEdit .env with your Focusmate credentials.
npm run server # run a server to allow sp-focusmate-planner plugin to book
npm run inspect # opens booking page for selector inspection
npm run book # runs a sample booking- Update selectors in
src/booking/focusmate.booker.tsafter inspecting the actual Focusmate UI withnpm run inspect STATE_FILEsaves browser cookies between runs so you don't log in every time- Use
HEADLESS=falsefor debugging