Repository navigation
feat(linkedin): add finite contact-add pass package - #847
Open
JerryLingjieMei wants to merge 1 commit into
Open
JerryLingjieMei wants to merge 1 commit into
JerryLingjieMei wants to merge 1 commit into
Conversation
Adds packages/dsh-linkedin-contacts, a standalone CLI that owns the saved LinkedIn contact-add queue: deduplicated ledger, identity review against LinkedIn, and connection requests verified in the destination UI. Personal data stays outside the repository under the DSH home. The CDP client uses Node's built-in WebSocket against the running Chrome, so the package has no runtime dependencies and no host-plugin surface. Replaces the Codex heartbeat of the same name, which is now paused.
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
Adds
packages/dsh-linkedin-contacts, a standalone CLI that owns the saved LinkedIn contact-add queue: deduplicated ledger, identity review, and connection requests verified in the destination UI.Why in the repo
The queue was produced by an external Codex heartbeat and had no durable home. This package gives it a maintained implementation, tests and a documented policy. It is not a host plugin — no
dsh.cliententry, no slot registration, and the renderer never loads it.Personal data
The queue, action ledger and vCard baseline stay under
~/.dsh/automations/linkedin-contact-add/(mode 0600) and are never committed. Nothing in the package hard-codes a person, profile URL or machine path; the ledger path is a flag orDSH_LINKEDIN_LEDGER.Implementation
ledger.mjs— queue selection, atomic checkpointing, duplicate merging, and the identity policy (assessCandidate).chrome.mjs— CDP client over Node's built-inWebSocket, attaching to the already signed-in Chrome viaDevToolsActivePort. No runtime dependencies, no cookie copying.linkedin.mjs— search parsing, profile state, and theConnect→Send without a note→ verifyPendingsequence.cli.mjs—status,scan(review only),run(review + send).A name alone never confirms a person: confirmation needs an organization match, at least two mutual connections, or a previously verified profile. Rows already invited are never selected again.
Verification
./node_modules/.bin/vitest run test/linkedin-contacts-ledger.test.mjs # 11 passedDry runs against a copy of the real ledger classified 1st-degree contacts as
existing_connection, a 9-mutual contact as confirmed, and name-only matches asheld_ambiguous.