feat(boss): add chatlist, chatmsg, and send commands#95
Open
huangsen365 wants to merge 1 commit intojackwener:mainfrom
Open
feat(boss): add chatlist, chatmsg, and send commands#95huangsen365 wants to merge 1 commit intojackwener:mainfrom
huangsen365 wants to merge 1 commit intojackwener:mainfrom
Conversation
- boss/chatlist: List chat conversations (招聘端聊天列表) Uses getBossFriendListV2 API with pagination and job filter support. - boss/chatmsg: Read chat message history with a candidate Resolves encryptUid to numeric uid/securityId, fetches via historyMsg API. - boss/send: Send chat message to a candidate via UI automation BOSS chat uses MQTT protocol (not HTTP), so this command automates the web chat UI: clicks on user in list → types in contenteditable editor → clicks the send button. All three commands use Strategy.COOKIE and require an active BOSS直聘 login session in Chrome.
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.
Summary
Add three new BOSS直聘 (zhipin.com) chat commands for the recruiting (Boss) side:
New Commands
boss/chatlistboss/chatmsgboss/sendUsage
Implementation Details
getBossFriendListV2.jsonAPI with cookie auth, returns name, job, last message, uid, and security_id.encryptUid→ numeric uid + securityId via friend list, then fetches history viahistoryMsgAPI..boss-chat-editor-input).submit)All commands require
Strategy.COOKIEwith an active BOSS直聘 login in Chrome.Testing
Tested end-to-end on macOS with Chrome browser bridge:
chatlistreturns conversations with correct fieldschatmsgreads message history with timestampssendsuccessfully delivers messages (verified viachatmsg)