Agent-Reach/agent_reach/channels
Pnant f3daa5cf97
fix(xiaoyuzhou): correct groq-api-key→groq-key in doctor hint and fix check() reading config after configure (#129)
Fixes #128

Two bugs:
1. doctor warn message said 'agent-reach configure groq-api-key' but the
   actual CLI arg is 'groq-key' (see cli.py:75 choices list and :993 handler).
   Same typo existed in cli.py _install_xiaoyuzhou_deps() output.

2. check() had a logic flaw: the inner 'if not has_key' was nested inside
   'if not os.environ.get(...)', so when GROQ_API_KEY env var was absent but
   config.json read succeeded, the outer condition never triggered the warning.
   Refactored to a flat has_key variable — cleaner and correct.

Verified: 36/36 tests pass, manual unit tests confirm warn uses 'groq-key'
and ok is returned when groq_api_key is present in config.json.

Co-authored-by: 小白(Agent) <neo@agent-reach.dev>
2026-03-09 18:18:15 +08:00
..
__init__.py feat: 新增小宇宙播客转文字渠道 (#124) 2026-03-09 00:34:22 +08:00
base.py refactor: strip to installer + doctor + docs, remove read/search wrapper layer 2026-02-26 08:15:56 +01:00
bilibili.py refactor: strip to installer + doctor + docs, remove read/search wrapper layer 2026-02-26 08:15:56 +01:00
bosszhipin.py fix: make doctor checks resilient to slow mcporter calls (#103) 2026-03-08 22:25:50 +08:00
douyin.py fix: YouTube JS runtime check, Douyin health check, cli bare except, config permission race (#104) 2026-03-08 21:24:05 +08:00
exa_search.py fix: Windows encoding + .cmd subprocess resolution (#64) (#66) 2026-03-04 17:30:11 +08:00
github.py fix: Windows encoding + .cmd subprocess resolution (#64) (#66) 2026-03-04 17:30:11 +08:00
linkedin.py fix: Windows encoding + .cmd subprocess resolution (#64) (#66) 2026-03-04 17:30:11 +08:00
reddit.py refactor: strip to installer + doctor + docs, remove read/search wrapper layer 2026-02-26 08:15:56 +01:00
rss.py refactor: strip to installer + doctor + docs, remove read/search wrapper layer 2026-02-26 08:15:56 +01:00
twitter.py fix: Windows encoding + .cmd subprocess resolution (#64) (#66) 2026-03-04 17:30:11 +08:00
web.py refactor: strip to installer + doctor + docs, remove read/search wrapper layer 2026-02-26 08:15:56 +01:00
wechat.py feat: add WeChat search via miku_ai (sogou) (#68) 2026-03-04 18:02:05 +08:00
weibo.py feat: add Weibo as default-install channel via Panniantong fork (#118) 2026-03-08 22:25:40 +08:00
xiaohongshu.py fix: make doctor checks resilient to slow mcporter calls (#103) 2026-03-08 22:25:50 +08:00
xiaoyuzhou.py fix(xiaoyuzhou): correct groq-api-key→groq-key in doctor hint and fix check() reading config after configure (#129) 2026-03-09 18:18:15 +08:00
youtube.py fix: YouTube JS runtime check, Douyin health check, cli bare except, config permission race (#104) 2026-03-08 21:24:05 +08:00