Agent-Reach/agent_reach
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
..
channels 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
guides Merge pull request #46 from Panniantong/migrate-bird-to-xreach 2026-02-27 15:21:25 +08:00
integrations feat: migrate Twitter backend from bird CLI to xreach CLI 2026-02-27 08:17:51 +01:00
scripts feat: 新增小宇宙播客转文字渠道 (#124) 2026-03-09 00:34:22 +08:00
skill feat: auto-install WeChat article tools during install (#80) 2026-03-05 18:29:33 +08:00
__init__.py release: v1.3.0 (#70) 2026-03-04 18:18:18 +08:00
cli.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
config.py fix: YouTube JS runtime check, Douyin health check, cli bare except, config permission race (#104) 2026-03-08 21:24:05 +08:00
cookie_extract.py fix: sync xfetch session.json when using --from-browser (closes #109) (#112) 2026-03-08 14:32:24 +08:00
core.py feat: migrate Twitter backend from bird CLI to xreach CLI 2026-02-27 08:17:51 +01:00
doctor.py fix: remove emoji from CLI output for Windows GBK compatibility 2026-03-07 05:46:38 +01:00