feat(boss): add ask-resume (#1068)#1377
Open
can4hou6joeng4 wants to merge 1 commit into
Open
Conversation
Adds a new recruiter-side command that triggers the "求简历"
(request attachment resume) action via POST /wapi/zpchat/exchange/request
with type=3 — the same endpoint exchange.js already uses for type=1 (phone)
and type=2 (wechat).
Field schema sends the union of OpenCLI's existing exchange.js convention
(securityId / uniqueId / name) and boss-agent-cli's verified type=3
convention (uid / jobId / gid). Marked Draft pending maintainer choice
on which schema to keep long-term — see issue thread for A/B/C options.
Tests: 5 cases covering registration, main path, --job-id override,
greet-list fallback, and not-found error. typecheck clean. Manifest
auto-regenerates with the new ('boss', 'ask-resume') entry.
Contributor
This was referenced May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1068.
What this adds
A new recruiter-side command that triggers the 求简历 (request attachment resume) action — the same button BOSS Zhipin's web UI exposes in the candidate panel.
One-line endpoint extension, not a new wapi route
clis/boss/exchange.jsalready callsPOST /wapi/zpchat/exchange/requestwithtype=1(phone) andtype=2(wechat). The 求简历 action hits the same endpoint withtype=3. This was reverse-engineered and verified in production by boss-agent-cli (Python) — seerecruiter_client.pyexchange_request().I left a comment on #1068 laying out three options:
exchange.js(current)This PR currently sends the union of both schemas (option A — defensive). Will rewrite to:
uid/gid, keepjobId, OpenCLI-style fields onlyexchange.jswith--type resumeinstead of new filewithin ~30 min once a maintainer picks. Marking this PR as Draft until then.
What's tested
clis/boss/ask-resume.js— 62 lines, followsinvite.jstemplateclis/boss/ask-resume.test.js— 99 lines, 5 cases:boss/ask-resumekey--job-idoverridesfriend.encryptJobIdfallback未找到该候选人error on not-foundcli-manifest.jsonauto-picks up('boss', 'ask-resume')as the new entry.Checklist
boss/search.test.js@T-Programmer @Astro-Han @jackwener