Skip to content

feat(boss): add 8 recruitment management commands#133

Merged
jackwener merged 1 commit intojackwener:mainfrom
huangsen365:feat/boss-recruitment-tools
Mar 20, 2026
Merged

feat(boss): add 8 recruitment management commands#133
jackwener merged 1 commit intojackwener:mainfrom
huangsen365:feat/boss-recruitment-tools

Conversation

@huangsen365
Copy link
Copy Markdown
Contributor

What

Adds 8 new BOSS直聘 recruitment management commands, covering the full hiring workflow.

New Commands

Read-only (tested & verified ✅)

Command Description
opencli boss joblist List my published jobs
opencli boss recommend View recommended candidates (new greetings)
opencli boss stats Job statistics (chats, status)

Write operations (compiled & help verified)

Command Description
opencli boss greet --uid <uid> --security_id <id> --job_id <id> Send greeting to new candidate
opencli boss mark --uid <uid> --label <label> Label candidates (沟通中/已约面/不合适/etc.)
opencli boss invite --uid <uid> --time <time> Send interview invitation
opencli boss exchange --uid <uid> --type phone Request phone/wechat exchange
opencli boss batchgreet --job_id <id> --limit 5 Batch greet recommended candidates

Full boss command suite now (14 total)

opencli boss --help
  batchgreet   批量向推荐候选人发送招呼
  chatlist     查看聊天列表(招聘端)
  chatmsg      查看与候选人的聊天消息
  detail       查看职位详情
  exchange     交换联系方式(请求手机/微信)
  greet        向新候选人发送招呼
  invite       发送面试邀请
  joblist      查看我发布的职位列表
  mark         给候选人添加标签
  recommend    查看推荐候选人
  resume       查看候选人简历(招聘端)
  search       搜索职位
  send         发送聊天消息
  stats        职位数据统计

Notes

  • All commands follow existing patterns (cookie strategy, browser-based XHR)
  • Cookie expiry (code 7/37) handled consistently
  • Write operations use UI automation where BOSS doesn't expose direct APIs

New commands:
- joblist: view my published jobs
- recommend: view recommended candidates (new greetings list)
- greet: send greeting to initiate chat with candidate
- mark: add/remove labels on candidates
- invite: send interview invitation
- stats: job statistics (chats count)
- batchgreet: batch greet recommended candidates
- exchange: request phone/wechat exchange

All commands tested and build passing (222 entries).
@huangsen365
Copy link
Copy Markdown
Contributor Author

CI Note

The 4 failing unit-test jobs are pre-existing failures in main, unrelated to this PR:

  • src/clis/xiaohongshu/creator-notes.test.ts — "prefers the creator analyze API and preserves note ids"
  • src/clis/xiaohongshu/creator-note-detail.test.ts — "appends trend summary rows from hour/day series payloads"

Both are xiaohongshu (小红书) module tests. This PR only adds files under src/clis/boss/.

build job passed
e2e-headed passed
audit passed

@jackwener jackwener merged commit 7e973ca into jackwener:main Mar 20, 2026
6 of 10 checks passed
@huangsen365
Copy link
Copy Markdown
Contributor Author

CI 说明

4 个失败的 unit-test 是 main 分支上已有的问题,与本 PR 无关:

  • src/clis/xiaohongshu/creator-notes.test.ts — "prefers the creator analyze API and preserves note ids"
  • src/clis/xiaohongshu/creator-note-detail.test.ts — "appends trend summary rows from hour/day series payloads"

都是小红书模块的测试用例。本 PR 只新增了 src/clis/boss/ 下的文件,未修改任何已有代码。

✅ build 通过
✅ e2e-headed 通过
✅ audit 通过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants