mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
f377ec000c
* feat(yuanbao): add browser adapter and docs * refactor(yuanbao): normalize adapter failures to CliError * refactor: extract shared yuanbao helpers to reduce duplication Move isOnYuanbao, ensureYuanbaoPage, hasLoginGate, authRequired, and IS_VISIBLE_JS to shared.ts. This eliminates identical copies across ask.ts and new.ts, reducing correctness risk when modifying shared logic. --------- Co-authored-by: jackwener <jakevingoo@gmail.com>