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> |
||
|---|---|---|
| .. | ||
| channels | ||
| guides | ||
| integrations | ||
| scripts | ||
| skill | ||
| __init__.py | ||
| cli.py | ||
| config.py | ||
| cookie_extract.py | ||
| core.py | ||
| doctor.py | ||