mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
1239798d04
Recruiter-only BOSS commands (recommend, joblist, stats, resume, mark, exchange, invite, greet, batchgreet) returned a generic `COMMAND_EXEC: 请切换身份后再试 (code=24)` when called from a job-seeker account. The original error hid the actionable bit: this command set needs a recruiter (BOSS-side) account. chatlist / chatmsg already special-case code=24 by falling back to the geek-side fetch when --side=auto. Recruiter-only commands have no geek-side equivalent and were just leaking the raw API code. Fix: add a `checkRecruiterSide` step inside `assertOk` that maps code=24 to AuthRequiredError with a clear message. All 9 recruiter-only commands inherit it through their existing `bossFetch` calls; no adapter-level changes needed. chatlist / chatmsg are unaffected because they use `allowNonZero: true` and never hit the auto-error path. Closes #1572.