Commit c5612a4c authored by 郭阔's avatar 郭阔

feat: login recipe auto-discovery (discover command)

- discover <source>: open homepage → find login entry by visible text
  (fallback to common login paths) → click/open → detect main-frame vs
  iframe form (captcha/challenge iframes excluded) → enumerate fields →
  generate recipe (single-page / two-step / password-only) with
  remember-me checkbox ticking → write logins/<source>.json → optional
  live login verification (--no-login to skip)
- loggedOutText: login-state check by visible button/link text
  (regex), for sites whose login control has no stable class
- honest boundaries: CAPTCHA/OTP/perimeter protection exits with a
  clear human-required message and writes nothing (validated against
  wsj's DataDome layer); validated green path against nikkei Piano ID
parent 84c54a30
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment