feat(boss/chatmsg): add --raw to expose full JD card body#1720
Closed
GreyC wants to merge 17 commits into
Closed
Conversation
Migrate multi-profile support to upstream contextId routing
Add fallback extraction for Facebook feed posts when [role=article] nodes exist but contain empty text. Includes diagnostic errors, content/author cleanup, nested-container dedupe, and an evaluate-script syntax regression test.
Closes #9. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…e, dedup auto path - Regenerate cli-manifest.json so --side is recognized by the CLI - readEncryptSystemId: expand to script tags, broader window scan, localStorage values; return '' instead of throwing so API can surface its own error - chatlist: slice labelList before fetchGeekFriendInfoList to skip unnecessary batch calls - chatmsg: refactor bossChatMsg to accept optional friend, eliminating duplication in auto path Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…rmance entries
Add Option 1 (Vue app runtime state) and Option 2 (performance resource entries)
as the primary extraction paths, demoting the previous guesswork approaches to
fallbacks. The page itself issues geekFilterByLabel with encryptSystemId already
in the URL, so performance.getEntriesByType('resource') gives a deterministic
source. Pinia stores and $route.query cover the Vue runtime state path.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ved flag The live geek historyMsg API returns received:true for all messages including outgoing ones. Determine direction by comparing m.from.uid against the boss numeric uid instead. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
feat(boss): add job-seeker side for chatlist and chatmsg
# Conflicts: # extension/src/background.test.ts # skills/opencli-browser/SKILL.md # src/cli.ts
Captures conventions the upstream maintainer enforces by amending PRs before merging (observed across jackwener#1538-jackwener#1542): typed errors, fail-fast arg validation, imperative func over pipeline, JSON.parse type guards, merge-then-filter, scored Array.find replacement, stale socket guards, error-path tests, lifecycle docs, manifest rebuild. Claude Code auto-loads CLAUDE.md; AGENTS.md points other AI tools to it. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
# Conflicts: # clis/boss/chatlist.js # clis/boss/chatlist.test.js # clis/boss/chatmsg.js # clis/boss/chatmsg.test.js # clis/boss/utils.js # clis/facebook/feed.js # clis/facebook/feed.test.js # docs/guide/browser-bridge.md # docs/zh/guide/browser-bridge.md # extension/dist/background.js # extension/src/background.test.ts # extension/src/background.ts # skills/opencli-browser/SKILL.md
Contributor
Author
|
Misfiled — should be on the GreyC/OpenCLI fork first. Reopening there. |
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
boss chatmsg --side geekcurrently truncates non-text bodies to 120 chars inmapGeekMsg, destroying JD cards. This PR adds a--rawflag that emits structured per-message objects with the fullbodypreserved, so callers can extractbody.jobDesc.urland other fields needed forboss detail.Closes GreyC#13.
Changes
clis/boss/chatmsg.js— add--rawboolean arg; bothmapBossMsg/mapGeekMsgnow accept{ raw }and appendsecurity_id+ fullbodyto the row when raw is true; threaded the flag through all four call sites (boss-side, geek-side, auto-recruiter, auto-fallback-geek)clis/boss/chatmsg.test.js— 3 new tests in a--raw mode (JD card exposure)block using a JD-card fixture with a longbody.jobDesc.contentcli-manifest.json— rebuilt; the newrawarg lands inside theboss/chatmsgentryDesign notes
['from', 'type', 'text', 'time'].src/output.ts'srenderJson/renderYamlignore thecolumnsarray (they stringify the full object), whilerenderTable/renderMarkdown/renderCsv/renderPlainuse it. Raw mode's extra fields therefore surface naturally in--fmt json/yaml(the intended consumption path for JD card extraction byboss detail) while the table view keeps showing the same four columns — no regression for existing callerssecurity_id+bodyalongside the existing four fields, doesn't replacetext. Callers parsing JSON output continue to workcontentlives underbody.jobDesc.content(not top-levelbody.content) somapGeekMsg'sm.body?.contentshort-circuit can't catch it — this guarantees theJSON.stringify(...).slice(0, 120)truncation branch is exercised by the compact-mode regression testTest plan
npx vitest run clis/boss/chatmsg.test.js→ 14/14 pass (11 previous + 3 new)npx vitest run clis/boss/→ full boss suite 29/29 passnpm run typecheck→ cleannpm run build-manifest→rawarg lands incli-manifest.json🤖 Generated with Claude Code