Repository navigation
v0.2.0 introduces a dual-engine authentication architecture with chromedp as the default engine, retains Playwright as an opt-in backend, and integrates authentication management directly into the TUI via Ctrl+L.
Authentication Engines
- Sets
chromedp(direct Chrome DevTools Protocol in Go) as the default authentication engine using an already-installed Chromium-family browser (Chrome, Chromium, Microsoft Edge, or Brave >= 120), removing the mandatory Node.js driver and browser download. - Retains Playwright (Firefox) as an opt-in engine selectable via
Ctrl+L,prefs.json,LAZYTEAMS_AUTH_ENGINE=playwright, or--engine playwright. - Isolates browser profiles and single-owner locks per engine (
sessions/chromedp-<browser>/with.meta.jsonexecutable pinning vs.browser-session/). - Adds
lazyteams-auth --list-browsersto inspect the active engine, override source, config directory, and detected browsers without launching a browser.
Integrated Authentication Menu (Ctrl+L)
- Adds the
Ctrl+LAuthentication popup inside the TUI with local, non-secret status indicators (Engine,Silent renewal, andCredentials). - Supports visible browser sign-in/re-authentication, on-demand headless token renewal, and persistent engine switching (
auth_enginesaved inprefs.json). - Allows the TUI to start cleanly without pre-existing
tokens.envand guides interactive sign-in when needed.
Configuration, Renewal, and Reliability
- Enforces strict configuration precedence:
CLI flags > Environment variables > prefs.json > Default (chromedp / auto). CLI flags (--engine,--browser,--browser-path) apply to the current invocation without modifyingprefs.json. - Supports
LAZYTEAMS_CONFIG_DIRto isolate tokens, preferences, profiles, and logs in a custom directory. - Stops headless renewals cleanly with
interaction_requiredwhen Microsoft requires MFA, Conditional Access, or re-login, prompting interactive recovery viaCtrl+L. - Preserves
(oid, tid)identity binding for Graph tokens, HTTP 200 validation for EDU tokens, and Stage 7B Fabric exclusion (TEAMS_FABRIC_TOKENremains disabled). - Adds prerelease suffix handling to semantic version comparison and fixes a race condition in
chromedpbrowser PID tracking.
Upgrade Notes
- Update
lazyteamsandlazyteams-authtogether (paired binaries are verified againstSHA256SUMSbylazyteams --updateand[u] Update). - Existing
tokens.env,prefs.json, and Playwrightbrowser-session/directories are preserved. When first using the defaultchromedpengine, sign in once viaCtrl+Lto initialize its isolated profile. - End-to-end live Microsoft validation for
chromedphas been completed on Linux (x86_64); macOS and Windows browser discovery and profile protections are implemented and covered by unit tests, with live host validation pending.
Full Changelog: v0.1.6...v0.2.0