linkedin-relay-mcp 3.26.0 → 3.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -129,6 +129,17 @@ and `lnrelay job 4479248573 4475225930 4476083905`.
129
129
  (`--top-applicant`). LinkedIn's own list of jobs where it says the user would be a top
130
130
  applicant: job cards as `jobs` returns them, 100 a call, usually all in one. It takes no
131
131
  keywords, location or filters; rank and read finalists as with any search.
132
+ - **Jobs where the user is more likely to hear back (Premium): `jobs` with `hearBack:true`**
133
+ (`--hear-back`). LinkedIn ranks these by the profile, the job's criteria and how recruiters
134
+ answered similar applicants. 25 per job-search call, then read in full (a job read per 100), so
135
+ the rows are whole jobs with apply links, as `job` returns them. No keywords or filters.
136
+ - **Does the user fit this job (Premium): `job` with `match:true`** (`--match`). Asks LinkedIn's AI
137
+ assistant, as the job page's "Show match details" does, and adds `match`: `summary` (the
138
+ verdict, "Job match is high"), `met` and `missing` (the required qualifications, in the
139
+ assistant's words), and `text` (the whole answer, a paragraph a line). In the user's language.
140
+ About 3 page calls and a few seconds per job, and each question is added to the user's
141
+ assistant history on LinkedIn, so finalists only. `matchError` says why there is none (not
142
+ every job offers it).
132
143
 
133
144
  - **Put every keyword set in one `jobs` call**, never one call per keyword: the tool merges them by
134
145
  job id, so you read each job once and `job` reads it once. Separate calls leave the merging to you
package/README.md CHANGED
@@ -157,6 +157,8 @@ lnrelay job <id> <id> <id> # finalist
157
157
  lnrelay job <id> --team # + who posted it, who is hiring
158
158
  lnrelay job <id> --insights # Premium: who applied, company headcount and insights
159
159
  lnrelay jobs --top-applicant --compact # Premium: jobs where you'd be a top applicant
160
+ lnrelay jobs --hear-back --compact # Premium: jobs where you're more likely to hear back
161
+ lnrelay job <id> --match # Premium: LinkedIn's AI on how well you fit
160
162
  ```
161
163
 
162
164
  - **Every filter the jobs page has:** location or exact geo id, distance, date posted, experience,
package/dist/cli.js CHANGED
@@ -1124,6 +1124,24 @@ var CONTRACTS = {
1124
1124
  provenance: "verified",
1125
1125
  capturedAt: "2026-11-22"
1126
1126
  },
1127
+ // LinkedIn's AI assistant, as a job's "Show match details" asks it
1128
+ // (2026-11-22). See engine/job-premium.ts.
1129
+ guideMessage: {
1130
+ name: "guideMessage",
1131
+ transport: "voyager-graphql",
1132
+ path: `${VOYAGER}/graphql`,
1133
+ queryId: "voyagerGuideDashMessage.7eaf64013d9f7cc6c5c32038dfc3fb81",
1134
+ provenance: "verified",
1135
+ capturedAt: "2026-11-22"
1136
+ },
1137
+ guideMessages: {
1138
+ name: "guideMessages",
1139
+ transport: "voyager-graphql",
1140
+ path: `${VOYAGER}/graphql`,
1141
+ queryId: "voyagerGuideDashBionicMessageV2.6c3ccc4bfc5030c09d28a50e5332ac06",
1142
+ provenance: "verified",
1143
+ capturedAt: "2026-11-22"
1144
+ },
1127
1145
  jobPosting: {
1128
1146
  name: "jobPosting",
1129
1147
  transport: "voyager-restli",
@@ -1593,6 +1611,8 @@ function encodeBody(spec) {
1593
1611
  async function fetchRaw(spec, session, deps) {
1594
1612
  const requestHeaders = buildHeaders(session);
1595
1613
  if (spec.body !== void 0) requestHeaders["content-type"] = "application/json; charset=UTF-8";
1614
+ if (spec.url.includes("linkedin.com/flagship-web/"))
1615
+ requestHeaders.referer = "https://www.linkedin.com/feed/";
1596
1616
  Object.assign(requestHeaders, spec.headers);
1597
1617
  const body = encodeBody(spec);
1598
1618
  try {
@@ -5204,6 +5224,164 @@ function parseJobInsights(json) {
5204
5224
  unknownSections
5205
5225
  };
5206
5226
  }
5227
+ var HEAR_BACK_PAGE = 25;
5228
+ var SEARCH_RESULTS = "https://www.linkedin.com/flagship-web/jobs/search-results/";
5229
+ var HEAR_BACK_HEADERS = {
5230
+ "x-li-rsc-stream": "true",
5231
+ referer: "https://www.linkedin.com/jobs/"
5232
+ };
5233
+ function hearBackUrl(start) {
5234
+ return `${SEARCH_RESULTS}?showHowYouFit=HOW_YOU_FIT&origin=QUALIFICATION_LANDING&start=${start}`;
5235
+ }
5236
+ function hearBackBody() {
5237
+ return {
5238
+ requestedArguments: {
5239
+ payload: {
5240
+ showHowYouFit: "HOW_YOU_FIT",
5241
+ shouldHideLoadingSpinner: true,
5242
+ origin: "JobSearchOrigin_QUALIFICATION_LANDING"
5243
+ },
5244
+ states: [],
5245
+ requestMetadata: { $type: "proto.sdui.common.RequestMetadata" },
5246
+ screenId: "com.linkedin.sdui.flagshipnav.jobs.SemanticJobDetails",
5247
+ knownTemplateIds: []
5248
+ }
5249
+ };
5250
+ }
5251
+ function parseJobIds(stream) {
5252
+ if (/^\s*</.test(stream)) return drift5("LinkedIn answered the page, not its data");
5253
+ const ids = [...stream.matchAll(/job-card-component-ref-(\d+)/g)].map((m) => m[1]);
5254
+ return { ok: true, ids: [...new Set(ids)] };
5255
+ }
5256
+ var HOW_YOU_FIT = "com.linkedin.sdui.generated.jobseeker.dsl.impl.howYouFitGuide";
5257
+ var HOW_YOU_FIT_URL = `https://www.linkedin.com/flagship-web/rsc-action/actions/component?componentId=${HOW_YOU_FIT}&sduiid=${HOW_YOU_FIT}`;
5258
+ function howYouFitBody(jobId) {
5259
+ const key = `jdpApplyState_${jobId}`;
5260
+ return {
5261
+ componentId: HOW_YOU_FIT,
5262
+ clientArguments: {
5263
+ payload: { jobId, isPremium: true, applyState: { key, namespace: "MemoryNamespace" } },
5264
+ states: [
5265
+ {
5266
+ key,
5267
+ namespace: "MemoryNamespace",
5268
+ value: "Initial",
5269
+ originalProtoCase: "stringValue",
5270
+ protoKey: { $type: "proto.sdui.Key", value: { $case: "id", id: key } }
5271
+ }
5272
+ ],
5273
+ requestMetadata: { $type: "proto.sdui.common.RequestMetadata" },
5274
+ screenId: "com.linkedin.sdui.flagshipnav.jobs.SemanticJobDetails",
5275
+ knownTemplateIds: []
5276
+ }
5277
+ };
5278
+ }
5279
+ var FIT = "JobSeekerAgentIntent_JOB_FIT_EXPLANATION";
5280
+ function parseMatchLink(stream, jobId) {
5281
+ for (const m of stream.matchAll(/"url":"(\/preload\/guideOverlay\/\?[^"]*)"/g)) {
5282
+ const q2 = new URL(`https://www.linkedin.com${m[1]}`).searchParams;
5283
+ const customContext = (q2.get("customContext") ?? "").split(",").flatMap((pair) => {
5284
+ const at = pair.indexOf("~:");
5285
+ return at === -1 ? [] : [{ key: pair.slice(0, at), value: pair.slice(at + 2) }];
5286
+ });
5287
+ const sub = customContext.find((c) => c.key === "subIntent")?.value;
5288
+ const job = customContext.find((c) => c.key === "jobPostingId")?.value;
5289
+ const query = q2.get("query");
5290
+ const mailbox2 = q2.get("originalThreadMailbox");
5291
+ if (sub !== FIT || job !== jobId || query === null || mailbox2 === null) continue;
5292
+ return {
5293
+ ok: true,
5294
+ link: {
5295
+ query,
5296
+ intent: q2.get("intent") ?? "GuideIntent_JOB_SEEKING_AGENT",
5297
+ mailbox: mailbox2,
5298
+ contextUrns: (q2.get("contextUrns") ?? "").split(",").filter((u) => u !== ""),
5299
+ customContext
5300
+ }
5301
+ };
5302
+ }
5303
+ return {
5304
+ ok: false,
5305
+ code: "NOT_FOUND",
5306
+ message: "the job offers no match details (Premium only, and not on every job)"
5307
+ };
5308
+ }
5309
+ var randomId = () => String.fromCharCode(...crypto.getRandomValues(new Uint8Array(16)));
5310
+ function matchMessageUrl() {
5311
+ const c = graphql("guideMessage");
5312
+ return `${c.path}?action=execute&queryId=${c.queryId}`;
5313
+ }
5314
+ function matchMessageBody(link, jobId, ids = { interaction: randomId(), session: randomId() }) {
5315
+ const c = graphql("guideMessage");
5316
+ return {
5317
+ variables: {
5318
+ guideInteractionId: ids.interaction,
5319
+ guideQueryContext: {
5320
+ customContext: link.customContext,
5321
+ intent: link.intent,
5322
+ pageContext: {
5323
+ origin: "",
5324
+ companyUrns: null,
5325
+ profileUrns: null,
5326
+ jobPostingUrns: [`urn:li:fsd_jobPosting:${jobId}`]
5327
+ },
5328
+ contextUrns: link.contextUrns,
5329
+ originalIntent: link.intent,
5330
+ originalThreadMailbox: link.mailbox,
5331
+ isZeroState: false
5332
+ },
5333
+ guideSessionId: ids.session,
5334
+ query: link.query
5335
+ },
5336
+ queryId: c.queryId,
5337
+ includeWebMetadata: true
5338
+ };
5339
+ }
5340
+ function parseMatchSent(json) {
5341
+ const root = json;
5342
+ const message = nodes(root?.included).find(
5343
+ (n) => typeof n.conversationV2Urn === "string" && n.content?.["*aiResponse"]
5344
+ );
5345
+ const conversation = message?.conversationV2Urn;
5346
+ const response = message?.content?.["*aiResponse"];
5347
+ if (typeof conversation !== "string" || typeof response !== "string") {
5348
+ const why = nodes(root?.data?.errors)[0]?.message;
5349
+ return drift5(
5350
+ `the assistant did not take the question${typeof why === "string" ? `: ${why}` : ""}`
5351
+ );
5352
+ }
5353
+ return { ok: true, conversation, response };
5354
+ }
5355
+ function matchAnswerUrl(conversation) {
5356
+ const c = graphql("guideMessages");
5357
+ const urn = encodeURIComponent(conversation);
5358
+ return `${c.path}?includeWebMetadata=true&variables=(guideConversationV2Urn:${urn},syncToken:null)&queryId=${c.queryId}`;
5359
+ }
5360
+ function matchOf(t) {
5361
+ const spans = (style) => (t.attributesV2 ?? []).filter((a) => a.detailData?.style === style).map((a) => t.text.slice(a.start ?? 0, (a.start ?? 0) + (a.length ?? 0)).trim());
5362
+ const first = (t.attributesV2 ?? [])[0];
5363
+ const lines = spans("PARAGRAPH").filter((l) => l !== "");
5364
+ const marked = (mark) => lines.filter((l) => l.startsWith(mark)).map((l) => l.slice(mark.length).trim());
5365
+ return defined5({
5366
+ summary: first?.detailData?.style === "BOLD" && first.start === 0 ? spans("BOLD")[0] : void 0,
5367
+ met: marked("\u2713"),
5368
+ missing: marked("?"),
5369
+ text: lines.join("\n")
5370
+ });
5371
+ }
5372
+ function parseMatchAnswer(json, response) {
5373
+ const root = json;
5374
+ if (!Array.isArray(root?.included)) return drift5("the conversation came back without messages");
5375
+ const answer = root.included.find((n) => n.entityUrn === response);
5376
+ const streaming = answer?.responseV2?.streamingResponse ?? {};
5377
+ if (typeof streaming.finalComponentPosition !== "number") return { ok: true, done: false };
5378
+ for (const part2 of nodes(streaming.responseComponent)) {
5379
+ const t = part2.component?.aiResponse?.text;
5380
+ if (typeof t?.text === "string")
5381
+ return { ok: true, done: true, match: matchOf(t) };
5382
+ }
5383
+ return drift5("the assistant finished without a written answer");
5384
+ }
5207
5385
 
5208
5386
  // src/commands/jobs.ts
5209
5387
  function liveFetch5(command, quiet) {
@@ -5211,10 +5389,11 @@ function liveFetch5(command, quiet) {
5211
5389
  if (session.state !== "ok")
5212
5390
  return err(command, "AUTH_FAILED", "no LinkedIn session \u2014 run `lnrelay login`");
5213
5391
  const client = createLiveClient(session.session, void 0, quiet);
5214
- return async (url, spendClass, body) => {
5392
+ return async (url, spendClass, body, headers2) => {
5215
5393
  const r = await client.request({
5216
5394
  url,
5217
5395
  ...body !== void 0 ? { method: "POST", body } : {},
5396
+ ...headers2 !== void 0 ? { headers: headers2 } : {},
5218
5397
  spendClass,
5219
5398
  operation: command
5220
5399
  });
@@ -5281,7 +5460,11 @@ async function addDetails(get, rows, withDescription) {
5281
5460
  return read.stoppedBy === void 0 ? { unread } : { unread, stoppedBy: read.stoppedBy };
5282
5461
  }
5283
5462
  async function runJobs(req, opts = {}, fetch2) {
5284
- if (req.collection !== void 0) return runCollection(req, req.collection, opts, fetch2);
5463
+ if (req.collection !== void 0) {
5464
+ const misuse = collectionMisuse(req, req.collection);
5465
+ if (misuse !== null) return misuse;
5466
+ return req.collection === "hear-back" ? runHearBack(req, opts, fetch2) : runCollection(req, req.collection, opts, fetch2);
5467
+ }
5285
5468
  const sets = keywordSets(req.keywords);
5286
5469
  const hasQuery = sets.length > 0 || [req.location, req.geoId].some((v) => v !== void 0 && v !== "");
5287
5470
  if (!hasQuery) {
@@ -5348,16 +5531,66 @@ async function runJobs(req, opts = {}, fetch2) {
5348
5531
  meta
5349
5532
  });
5350
5533
  }
5351
- async function runCollection(req, collection2, opts, fetch2) {
5534
+ function collectionMisuse(req, collection2) {
5352
5535
  const searched = keywordSets(req.keywords).length > 0 || req.location || req.geoId;
5353
5536
  const selection3 = jobFilterSelection(req.filter ?? {});
5354
5537
  const filtered = !selection3.ok || Object.keys(selection3.filters).length > 0;
5355
- if (searched || filtered)
5356
- return err(
5357
- "jobs",
5358
- "INVALID_INPUT",
5359
- `--${collection2} is LinkedIn's own list: it takes no keywords, location or filters`
5360
- );
5538
+ return searched || filtered ? err(
5539
+ "jobs",
5540
+ "INVALID_INPUT",
5541
+ `--${collection2} is LinkedIn's own list: it takes no keywords, location or filters`
5542
+ ) : null;
5543
+ }
5544
+ async function hearBackIds(get, upTo) {
5545
+ const ids = [];
5546
+ for (let start = 0; start < PAGING3.max; start += HEAR_BACK_PAGE) {
5547
+ const res = await get(hearBackUrl(start), "jobSearch", hearBackBody(), {
5548
+ ...HEAR_BACK_HEADERS
5549
+ });
5550
+ const page = res.ok ? parseJobIds(res.raw ?? "") : res;
5551
+ if (!page.ok) return { ids, ended: false, failure: page };
5552
+ const fresh = page.ids.filter((id) => !ids.includes(id));
5553
+ ids.push(...fresh);
5554
+ if (page.ids.length < HEAR_BACK_PAGE || fresh.length === 0) return { ids, ended: true };
5555
+ if (ids.length >= upTo) return { ids, ended: false };
5556
+ }
5557
+ return { ids, ended: false };
5558
+ }
5559
+ async function runHearBack(req, opts, fetch2) {
5560
+ const get = fetch2 ?? liveFetch5("jobs", opts.quiet === true);
5561
+ if (typeof get !== "function") return get;
5562
+ const first = Math.max(0, req.start ?? 0);
5563
+ const want = Math.max(1, Math.min(req.limit, PAGING3.max - first));
5564
+ const listed2 = await hearBackIds(get, first + want);
5565
+ if (listed2.ids.length === 0 && listed2.failure !== void 0) {
5566
+ const f = listed2.failure;
5567
+ return err("jobs", f.code, f.message, f.hint);
5568
+ }
5569
+ const slice = listed2.ids.slice(first, first + want);
5570
+ const read = await readJobs(get, slice);
5571
+ const rows = slice.flatMap((id) => read.jobs.get(id) ?? []);
5572
+ const unread = slice.filter((id) => !read.jobs.has(id));
5573
+ const whole = listed2.ended && first + want >= listed2.ids.length;
5574
+ return ok("jobs", {
5575
+ collection: "hear-back",
5576
+ items: shape2(
5577
+ rows,
5578
+ opts,
5579
+ (j) => compactJob({ ...j, easyApply: j.apply?.type === "easy-apply", promoted: false })
5580
+ ),
5581
+ meta: {
5582
+ state: whole && unread.length === 0 ? "complete" : "partial",
5583
+ operation: "jobs",
5584
+ ...listed2.ended ? { claimedCount: listed2.ids.length } : {},
5585
+ returnedCount: rows.length,
5586
+ start: first,
5587
+ ...unread.length > 0 ? { unread } : {},
5588
+ ...listed2.failure !== void 0 ? { stoppedBy: listed2.failure.code } : {},
5589
+ ...read.stoppedBy !== void 0 ? { readStop: read.stoppedBy } : {}
5590
+ }
5591
+ });
5592
+ }
5593
+ async function runCollection(req, collection2, opts, fetch2) {
5361
5594
  const get = fetch2 ?? liveFetch5("jobs", opts.quiet === true);
5362
5595
  if (typeof get !== "function") return get;
5363
5596
  const first = Math.max(0, req.start ?? 0);
@@ -5392,6 +5625,35 @@ async function runCollection(req, collection2, opts, fetch2) {
5392
5625
  meta: metaOf("jobs", merged, true, first, { unread: 0, ...extra })
5393
5626
  });
5394
5627
  }
5628
+ var sleep = (ms) => new Promise((r) => setTimeout(r, ms));
5629
+ var MATCH_POLLS = 8;
5630
+ async function matchFor(get, jobId, pollMs) {
5631
+ const linked = await get(HOW_YOU_FIT_URL, "page", howYouFitBody(jobId));
5632
+ const link = linked.ok ? parseMatchLink(linked.raw ?? "", jobId) : linked;
5633
+ if (!link.ok) return link;
5634
+ const sentRes = await get(matchMessageUrl(), "page", matchMessageBody(link.link, jobId));
5635
+ const sent = sentRes.ok ? parseMatchSent(sentRes.json) : sentRes;
5636
+ if (!sent.ok) return sent;
5637
+ for (let i = 0; i < MATCH_POLLS; i++) {
5638
+ await sleep(pollMs);
5639
+ const res = await get(matchAnswerUrl(sent.conversation), "page");
5640
+ const answer = res.ok ? parseMatchAnswer(res.json, sent.response) : res;
5641
+ if (!answer.ok) return answer;
5642
+ if (answer.done) return { ok: true, match: answer.match };
5643
+ }
5644
+ return {
5645
+ ok: false,
5646
+ code: "TIMEOUT",
5647
+ message: `the assistant had not finished after ${MATCH_POLLS} looks; it may still be in its history`
5648
+ };
5649
+ }
5650
+ async function addMatches(get, jobs, pollMs) {
5651
+ for (const job of jobs) {
5652
+ const r = await matchFor(get, job.id, pollMs);
5653
+ if (r.ok) job.match = r.match;
5654
+ else job.matchError = `${r.code}: ${r.message}`;
5655
+ }
5656
+ }
5395
5657
  async function addInsights(get, jobs) {
5396
5658
  for (const job of jobs) {
5397
5659
  const res = await get(jobInsightsUrl(job.id), "jobRead");
@@ -5415,6 +5677,11 @@ async function addTeams(get, jobs) {
5415
5677
  else job.hiringTeamError = `${team.code}: ${team.message}`;
5416
5678
  }
5417
5679
  }
5680
+ async function enrich(get, jobs, req) {
5681
+ if (req.team === true) await addTeams(get, jobs);
5682
+ if (req.insights === true) await addInsights(get, jobs);
5683
+ if (req.match === true) await addMatches(get, jobs, req.pollMs ?? 4e3);
5684
+ }
5418
5685
  async function runJob(input, opts = {}, fetch2, req = {}) {
5419
5686
  const given = input === void 0 ? [] : Array.isArray(input) ? input : [input];
5420
5687
  const ids = [...new Set(given.map(jobIdOf))];
@@ -5436,8 +5703,7 @@ async function runJob(input, opts = {}, fetch2, req = {}) {
5436
5703
  const detail = parseJobDetail(res.json);
5437
5704
  if (!detail.ok) return err("job", detail.code, detail.message, detail.hint);
5438
5705
  const job = detail.job;
5439
- if (req.team === true) await addTeams(get, [job]);
5440
- if (req.insights === true) await addInsights(get, [job]);
5706
+ await enrich(get, [job], req);
5441
5707
  return ok("job", job);
5442
5708
  }
5443
5709
  const read = await readJobs(get, wanted);
@@ -5445,8 +5711,7 @@ async function runJob(input, opts = {}, fetch2, req = {}) {
5445
5711
  return err("job", read.stoppedBy, "no job could be read");
5446
5712
  const unread = wanted.filter((id) => !read.jobs.has(id));
5447
5713
  const jobs = wanted.flatMap((id) => read.jobs.get(id) ?? []);
5448
- if (req.team === true) await addTeams(get, jobs);
5449
- if (req.insights === true) await addInsights(get, jobs);
5714
+ await enrich(get, jobs, req);
5450
5715
  return ok("job", {
5451
5716
  items: shape2(
5452
5717
  jobs,
@@ -8043,16 +8308,16 @@ var COMMANDS = [
8043
8308
  name: "jobs",
8044
8309
  cost: "1 job-search call per 100 jobs; --details adds 1 job read per 100 jobs",
8045
8310
  summary: "Job search with every filter the jobs page has. Cards carry id, title, company, place, workplace, listed date, Easy Apply. Read finalists with `job`.",
8046
- usage: 'lnrelay jobs "<keywords>" ["<more keywords>" ...] [--location "<place>" | --geo <id>]\n [--distance <miles>]\n [--posted 24h|week|month|<N>h|<N>d] [--experience internship,entry,associate,\n mid-senior,director,executive] [--type full-time,part-time,contract,temporary,\n volunteer,internship,other] [--workplace on-site,remote,hybrid] [--easy-apply]\n [--under-10] [--verified] [--in-network] [--fair-chance] [--company <ids>]\n [--industry <ids>] [--function <codes>] [--title <ids>] [--place <geo-ids>]\n [--filter key=v1,v2 ...] [--sort recent|relevant] [--limit N] [--start N]\n [--details [--description]] [--compact | --fields a,b,c]\n Ids for --company/--industry/--title/--place/--filter come from `job-filters`.\n The resolved place is in data.location: check it, "Vienna" may resolve narrow.\nlnrelay jobs --top-applicant [--limit N] [--details] [--compact | --fields a,b,c]\n Premium: the jobs where LinkedIn says you would be a top applicant, 100 a call.',
8311
+ usage: 'lnrelay jobs "<keywords>" ["<more keywords>" ...] [--location "<place>" | --geo <id>]\n [--distance <miles>]\n [--posted 24h|week|month|<N>h|<N>d] [--experience internship,entry,associate,\n mid-senior,director,executive] [--type full-time,part-time,contract,temporary,\n volunteer,internship,other] [--workplace on-site,remote,hybrid] [--easy-apply]\n [--under-10] [--verified] [--in-network] [--fair-chance] [--company <ids>]\n [--industry <ids>] [--function <codes>] [--title <ids>] [--place <geo-ids>]\n [--filter key=v1,v2 ...] [--sort recent|relevant] [--limit N] [--start N]\n [--details [--description]] [--compact | --fields a,b,c]\n Ids for --company/--industry/--title/--place/--filter come from `job-filters`.\n The resolved place is in data.location: check it, "Vienna" may resolve narrow.\nlnrelay jobs --top-applicant | --hear-back [--limit N] [--details] [--compact | --fields a,b,c]\n Premium: the jobs where LinkedIn says you would be a top applicant (100 a call), or\n where you are more likely to hear back (25 a call, then read in full).',
8047
8312
  audience: ["cli", "mcp"],
8048
8313
  risk: "read",
8049
8314
  implemented: true
8050
8315
  },
8051
8316
  {
8052
8317
  name: "job",
8053
- cost: "1 job read per 100 jobs; --team adds 1 page call per job; --insights 1 job read per job",
8054
- summary: "Jobs in full: description, apply link (external or Easy Apply), applicants, state. Several ids are read together, 100 a call. --team adds who posted it and who is hiring. --insights (Premium) adds who applied (count, last day, seniority, education) and the company's insights: headcount over two years, the job's function, tenure, competitors.",
8055
- usage: "lnrelay job <id|job-url> [<id|job-url> ...] [--team] [--insights] [--compact | --fields a,b,c]",
8318
+ cost: "1 job read per 100 jobs; --team adds 1 page call per job; --insights 1 job read per job; --match about 3 page calls per job",
8319
+ summary: "Jobs in full: description, apply link (external or Easy Apply), applicants, state. Several ids are read together, 100 a call. --team adds who posted it and who is hiring. --insights (Premium) adds who applied (count, last day, seniority, education) and the company's insights: headcount over two years, the job's function, tenure, competitors. --match (Premium) asks LinkedIn's AI how well you fit: verdict, met and missing qualifications.",
8320
+ usage: "lnrelay job <id|job-url> [<id|job-url> ...] [--team] [--insights] [--match]\n [--compact | --fields a,b,c]",
8056
8321
  audience: ["cli", "mcp"],
8057
8322
  risk: "read",
8058
8323
  implemented: true
@@ -11140,6 +11405,7 @@ function jobsRequest(args) {
11140
11405
  if (bool(args, "details")) req.details = true;
11141
11406
  if (bool(args, "description")) req.description = true;
11142
11407
  if (bool(args, "top-applicant")) req.collection = "top-applicant";
11408
+ if (bool(args, "hear-back")) req.collection = "hear-back";
11143
11409
  return req;
11144
11410
  }
11145
11411
  function orgs(args, name) {
@@ -11443,7 +11709,8 @@ async function dispatch(argv, now) {
11443
11709
  case "job":
11444
11710
  return runJob(args.positionals, output(args), void 0, {
11445
11711
  team: bool(args, "team"),
11446
- insights: bool(args, "insights")
11712
+ insights: bool(args, "insights"),
11713
+ match: bool(args, "match")
11447
11714
  });
11448
11715
  case "job-filters":
11449
11716
  return runJobFilters(jobsRequest(args), output(args));