feat(linkedin): summarize post counters#1725
Closed
gauravsaxena1997 wants to merge 1 commit into
Closed
Conversation
1e5039b to
4af5d68
Compare
jackwener
added a commit
that referenced
this pull request
May 23, 2026
Owner
Owner
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.
What and why
Once LinkedIn posts can be read from the browser session, agents often need a compact summary of the visible counters across recent posts. That summary should stay raw and auditable instead of adding custom ranking, scoring, or classification that may not match user intent.
This PR adds a read-only raw post analytics command built on the same visible post extraction path.
What this PR does
Adds a
Strategy.COOKIELinkedIn browser adapter:Implementation details:
posts-core.jsfor shared post extraction without registering an extra commandpost-analyticsreturns raw aggregate counters only: posts analyzed, total reactions, total comments, total reposts, total impressions, posts with media, posts with URLs, and latest-post counters--limitfrom 1 to 100Live verification
Verified against a logged-in LinkedIn profile session:
Returned raw aggregate counters for 5 visible posts, including total reactions, comments, reposts, impressions, and latest-post counters. No custom score or classification was included.
Checklist
npm run buildnpx vitest run --project adapter clis/linkedin/post-analytics.test.jsnpm run typechecknode scripts/check-typed-error-lint.mjsnode scripts/check-silent-column-drop.mjs