@lobu/runtime-device 24.5.0 → 24.6.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.
- package/dist/component.json +1 -1
- package/dist/dependencies.bun.lock +32 -17
- package/npm-shrinkwrap.json +140 -89
- package/package.json +2 -1
- package/vendor/cli/dist/bundled-skills/lobu/SKILL.md +57 -9
- package/vendor/cli/dist/commands/_lib/view-bundler.js +9 -1
- package/vendor/cli/dist/connectors/linkedin-identity.ts +43 -0
- package/vendor/cli/dist/connectors/linkedin.ts +154 -3
- package/vendor/cli/dist/connectors/x-like-follow.ts +329 -0
- package/vendor/cli/dist/connectors/x.ts +709 -80
- package/vendor/cli/dist/internal/connector-compiler.js +3 -1
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/package.json +2 -1
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/connector-worker/dist/compile/index.d.ts +4 -3
- package/vendor/connector-worker/dist/compile/index.js +6 -3
- package/vendor/connector-worker/package.json +1 -1
- package/vendor/core/dist/contracts/tools/view-host.d.ts +7 -0
- package/vendor/core/dist/contracts/tools/view-host.js +28 -0
- package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -4
- package/vendor/core/dist/contracts/tools/view-runtime.js +19 -7
- package/vendor/core/package.json +11 -1
- package/vendor/views/dist/api.d.ts +290 -0
- package/vendor/views/dist/api.js +714 -0
- package/vendor/views/dist/bridge.d.ts +157 -0
- package/vendor/views/dist/bridge.js +372 -0
- package/vendor/views/dist/components.d.ts +172 -0
- package/vendor/views/dist/components.js +376 -0
- package/vendor/views/dist/index.d.ts +13 -0
- package/vendor/views/dist/index.js +3 -0
- package/vendor/views/dist/native.d.ts +327 -0
- package/vendor/views/dist/native.js +57 -0
- package/vendor/views/package.json +53 -0
|
@@ -27,6 +27,12 @@ export const LINKEDIN_IDENTITY = {
|
|
|
27
27
|
* sender's messages auto-create.
|
|
28
28
|
*/
|
|
29
29
|
USER_MEMBER_ID: "linkedin_user_member_id",
|
|
30
|
+
/**
|
|
31
|
+
* Canonical `/company/<vanity>` page slug, the identity of a company page
|
|
32
|
+
* that authors a post. Like the member slug it is mutable, so it stays an
|
|
33
|
+
* equal-weight identity.
|
|
34
|
+
*/
|
|
35
|
+
COMPANY_SLUG: "linkedin_company_slug",
|
|
30
36
|
} as const;
|
|
31
37
|
|
|
32
38
|
export type LinkedInIdentityNamespace =
|
|
@@ -47,6 +53,41 @@ export function normalizeLinkedInSlug(
|
|
|
47
53
|
return slug;
|
|
48
54
|
}
|
|
49
55
|
|
|
56
|
+
/**
|
|
57
|
+
* Extract a canonical LinkedIn company-page slug from a `/company/<slug>` URL
|
|
58
|
+
* or bare slug. An all-digit value is LinkedIn's numeric company id rather than
|
|
59
|
+
* the vanity slug; accepting it would key the same page under two identifiers,
|
|
60
|
+
* so it is rejected.
|
|
61
|
+
*/
|
|
62
|
+
export function normalizeLinkedInCompanySlug(
|
|
63
|
+
raw: string | null | undefined,
|
|
64
|
+
): string | null {
|
|
65
|
+
if (typeof raw !== "string") return null;
|
|
66
|
+
const value = raw.trim();
|
|
67
|
+
if (!value) return null;
|
|
68
|
+
const slug = (
|
|
69
|
+
value.includes("/") ? companyPathSlug(value) : value
|
|
70
|
+
)?.toLowerCase();
|
|
71
|
+
if (!slug || !/^[a-z0-9\-_%]+$/.test(slug) || /^\d+$/.test(slug)) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return slug;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** The path segment after `company` in an absolute or site-relative URL. */
|
|
78
|
+
function companyPathSlug(url: string): string | null {
|
|
79
|
+
let segments: string[];
|
|
80
|
+
try {
|
|
81
|
+
segments = new URL(url, "https://www.linkedin.com").pathname.split("/");
|
|
82
|
+
} catch {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
const index = segments.findIndex(
|
|
86
|
+
(segment) => segment.toLowerCase() === "company",
|
|
87
|
+
);
|
|
88
|
+
return index >= 0 ? (segments[index + 1] ?? null) : null;
|
|
89
|
+
}
|
|
90
|
+
|
|
50
91
|
/**
|
|
51
92
|
* Extract the immutable member id from a LinkedIn person URN or bare id.
|
|
52
93
|
*/
|
|
@@ -73,6 +114,8 @@ export function normalizeLinkedInIdentityValue(
|
|
|
73
114
|
switch (namespace) {
|
|
74
115
|
case LINKEDIN_IDENTITY.SLUG:
|
|
75
116
|
return normalizeLinkedInSlug(raw);
|
|
117
|
+
case LINKEDIN_IDENTITY.COMPANY_SLUG:
|
|
118
|
+
return normalizeLinkedInCompanySlug(raw);
|
|
76
119
|
case LINKEDIN_IDENTITY.MEMBER_ID:
|
|
77
120
|
case LINKEDIN_IDENTITY.USER_MEMBER_ID:
|
|
78
121
|
return normalizeLinkedInMemberId(raw);
|
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
} from "@lobu/connector-sdk";
|
|
53
53
|
import {
|
|
54
54
|
LINKEDIN_IDENTITY,
|
|
55
|
+
normalizeLinkedInCompanySlug,
|
|
55
56
|
normalizeLinkedInMemberId,
|
|
56
57
|
normalizeLinkedInSlug,
|
|
57
58
|
} from "./linkedin-identity.js";
|
|
@@ -121,6 +122,7 @@ interface LinkedInConfig extends LocalTakeoutConfig {
|
|
|
121
122
|
company_url?: string;
|
|
122
123
|
max_scrolls?: number;
|
|
123
124
|
min_scrolls?: number;
|
|
125
|
+
create_engager_people?: boolean;
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
interface LinkedInPost {
|
|
@@ -132,6 +134,8 @@ interface LinkedInPost {
|
|
|
132
134
|
authorMemberId?: string;
|
|
133
135
|
/** Canonical `/in/<slug>` vanity id — soft identity, bridges to takeout. */
|
|
134
136
|
authorSlug?: string;
|
|
137
|
+
/** Canonical `/company/<slug>` when the actor is a company page. */
|
|
138
|
+
authorCompanySlug?: string;
|
|
135
139
|
likes: number;
|
|
136
140
|
comments: number;
|
|
137
141
|
shares: number;
|
|
@@ -228,6 +232,47 @@ const LINKEDIN_MESSAGE_ATTRIBUTIONS: EventAttributionRule[] = [
|
|
|
228
232
|
},
|
|
229
233
|
];
|
|
230
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Link a post written by a company page to a `company` entity keyed on the
|
|
237
|
+
* page's `/company/<slug>`. Like person authors, a company that authors a post
|
|
238
|
+
* is a real source, so it is minted on no match; a workspace without a
|
|
239
|
+
* `company` entity type skips the mint. Companies that are only mentioned or
|
|
240
|
+
* anchored in someone else's post get no rule, matching person mentions.
|
|
241
|
+
*/
|
|
242
|
+
const LINKEDIN_COMPANY_AUTHOR_ATTRIBUTION: EventAttributionRule = {
|
|
243
|
+
name: "company_author",
|
|
244
|
+
role: "authored_by",
|
|
245
|
+
autoCreate: true,
|
|
246
|
+
target: {
|
|
247
|
+
entityType: "company",
|
|
248
|
+
titlePath: "author_name",
|
|
249
|
+
identities: [
|
|
250
|
+
{
|
|
251
|
+
namespace: LINKEDIN_IDENTITY.COMPANY_SLUG,
|
|
252
|
+
eventPath: "metadata.author_company_slug",
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
},
|
|
256
|
+
traits: {
|
|
257
|
+
linkedin_url: {
|
|
258
|
+
eventPath: "metadata.author_company_url",
|
|
259
|
+
mergeStrategy: "prefer_non_empty",
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Engager-type people (reactors, commenters, the comment being replied to) are
|
|
266
|
+
* mostly one-off strangers. The home_feed `create_engager_people` setting is
|
|
267
|
+
* stamped on each event; when it is false these roles still link to people who
|
|
268
|
+
* already exist but never create new ones. Events without the stamp keep
|
|
269
|
+
* creating, so the default and older events are unchanged.
|
|
270
|
+
*/
|
|
271
|
+
const CREATE_ENGAGER_PEOPLE_GATE = {
|
|
272
|
+
path: "metadata.create_engager_people",
|
|
273
|
+
notEquals: false,
|
|
274
|
+
} as const;
|
|
275
|
+
|
|
231
276
|
/**
|
|
232
277
|
* Link a live `post` to its author. The Voyager feed (company_updates) exposes
|
|
233
278
|
* the actor's immutable `urn:li:fsd_profile:<id>` as `author_member_id` plus the
|
|
@@ -273,6 +318,7 @@ const LINKEDIN_POST_AUTHOR_ATTRIBUTIONS: EventAttributionRule[] = [
|
|
|
273
318
|
},
|
|
274
319
|
},
|
|
275
320
|
},
|
|
321
|
+
LINKEDIN_COMPANY_AUTHOR_ATTRIBUTION,
|
|
276
322
|
];
|
|
277
323
|
|
|
278
324
|
/**
|
|
@@ -304,12 +350,14 @@ const LINKEDIN_HOME_FEED_ATTRIBUTIONS: EventAttributionRule[] = [
|
|
|
304
350
|
},
|
|
305
351
|
},
|
|
306
352
|
},
|
|
353
|
+
LINKEDIN_COMPANY_AUTHOR_ATTRIBUTION,
|
|
307
354
|
{
|
|
308
355
|
name: "engager",
|
|
309
356
|
role: "performed_by",
|
|
310
357
|
autoCreate: true,
|
|
311
358
|
target: {
|
|
312
359
|
entityType: "person",
|
|
360
|
+
createWhen: CREATE_ENGAGER_PEOPLE_GATE,
|
|
313
361
|
titlePath: "metadata.social_actor",
|
|
314
362
|
identities: [
|
|
315
363
|
{
|
|
@@ -335,6 +383,7 @@ const LINKEDIN_HOME_COMMENT_ATTRIBUTIONS: EventAttributionRule[] = [
|
|
|
335
383
|
autoCreate: true,
|
|
336
384
|
target: {
|
|
337
385
|
entityType: "person",
|
|
386
|
+
createWhen: CREATE_ENGAGER_PEOPLE_GATE,
|
|
338
387
|
titlePath: "author_name",
|
|
339
388
|
identities: [
|
|
340
389
|
{
|
|
@@ -377,6 +426,7 @@ const LINKEDIN_HOME_COMMENT_ATTRIBUTIONS: EventAttributionRule[] = [
|
|
|
377
426
|
autoCreate: true,
|
|
378
427
|
target: {
|
|
379
428
|
entityType: "person",
|
|
429
|
+
createWhen: CREATE_ENGAGER_PEOPLE_GATE,
|
|
380
430
|
titlePath: "metadata.parent_comment_author",
|
|
381
431
|
identities: [
|
|
382
432
|
{
|
|
@@ -1168,6 +1218,10 @@ export function homeFeedObjectAllSupported(rows: HomeFeedRow[]): boolean {
|
|
|
1168
1218
|
return withLinks.some((r) => Array.isArray(r.links));
|
|
1169
1219
|
}
|
|
1170
1220
|
|
|
1221
|
+
function companyPageUrl(slug: string): string {
|
|
1222
|
+
return `https://www.linkedin.com/company/${slug}`;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1171
1225
|
/** Whether an href points at a `/company/` page rather than a member. */
|
|
1172
1226
|
function isCompanyHref(href?: string): boolean {
|
|
1173
1227
|
return /\/company\//i.test(href ?? "");
|
|
@@ -1204,6 +1258,32 @@ function resolveMemberSlug(
|
|
|
1204
1258
|
return [...memberSlugs][0];
|
|
1205
1259
|
}
|
|
1206
1260
|
|
|
1261
|
+
/**
|
|
1262
|
+
* Resolve a company author's `/company/<slug>` the same way: the target name
|
|
1263
|
+
* must match exactly one company page and no member, so a same-named person
|
|
1264
|
+
* (or two same-named pages) leaves the author unattributed rather than guessed.
|
|
1265
|
+
*/
|
|
1266
|
+
function resolveCompanySlug(
|
|
1267
|
+
links: HomeFeedLink[],
|
|
1268
|
+
targetName: string
|
|
1269
|
+
): string | undefined {
|
|
1270
|
+
const target = nameKey(targetName);
|
|
1271
|
+
if (!target) return undefined;
|
|
1272
|
+
const companySlugs = new Set<string>();
|
|
1273
|
+
let memberMatch = false;
|
|
1274
|
+
for (const link of links) {
|
|
1275
|
+
if (nameKey(linkDisplayName(link)) !== target) continue;
|
|
1276
|
+
if (normalizeLinkedInSlug(link.href)) {
|
|
1277
|
+
memberMatch = true;
|
|
1278
|
+
continue;
|
|
1279
|
+
}
|
|
1280
|
+
const slug = normalizeLinkedInCompanySlug(link.href);
|
|
1281
|
+
if (slug) companySlugs.add(slug);
|
|
1282
|
+
}
|
|
1283
|
+
if (memberMatch || companySlugs.size !== 1) return undefined;
|
|
1284
|
+
return [...companySlugs][0];
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1207
1287
|
/**
|
|
1208
1288
|
* The home feed mixes in ads, suggestions, and non-post noise. These never
|
|
1209
1289
|
* become useful events, so drop them before emitting. Heuristic by necessity —
|
|
@@ -1249,6 +1329,8 @@ interface HomeFeedCommentIdentity {
|
|
|
1249
1329
|
interface HomeFeedRowContext {
|
|
1250
1330
|
author: string;
|
|
1251
1331
|
authorSlug?: string;
|
|
1332
|
+
/** Set when the row's author is a company page rather than a member. */
|
|
1333
|
+
authorCompanySlug?: string;
|
|
1252
1334
|
postUrl?: string;
|
|
1253
1335
|
metadata: Record<string, unknown>;
|
|
1254
1336
|
}
|
|
@@ -1508,6 +1590,9 @@ function buildHomeFeedRowContext(row: HomeFeedRow): HomeFeedRowContext {
|
|
|
1508
1590
|
const links = normalizeHomeFeedLinks(row.links);
|
|
1509
1591
|
const engagement = banner?.kind === "actor" ? banner : null;
|
|
1510
1592
|
const authorSlug = resolveMemberSlug(links, author);
|
|
1593
|
+
const authorCompanySlug = authorSlug
|
|
1594
|
+
? undefined
|
|
1595
|
+
: resolveCompanySlug(links, author);
|
|
1511
1596
|
const engagerSlug = engagement
|
|
1512
1597
|
? resolveMemberSlug(links, engagement.actor)
|
|
1513
1598
|
: undefined;
|
|
@@ -1544,6 +1629,7 @@ function buildHomeFeedRowContext(row: HomeFeedRow): HomeFeedRowContext {
|
|
|
1544
1629
|
return {
|
|
1545
1630
|
author,
|
|
1546
1631
|
authorSlug,
|
|
1632
|
+
...(authorCompanySlug ? { authorCompanySlug } : {}),
|
|
1547
1633
|
postUrl: postUrl || undefined,
|
|
1548
1634
|
metadata,
|
|
1549
1635
|
};
|
|
@@ -1712,7 +1798,15 @@ export function buildHomeFeedEvents(
|
|
|
1712
1798
|
// source_url is the durable post handle action callers (prepare_comment)
|
|
1713
1799
|
// resolve directly.
|
|
1714
1800
|
...(sourceUrl ? { source_url: sourceUrl } : {}),
|
|
1715
|
-
|
|
1801
|
+
// A company author belongs to the post only: comment rows share the row
|
|
1802
|
+
// context, but their author is always the commenter.
|
|
1803
|
+
metadata: context.authorCompanySlug
|
|
1804
|
+
? {
|
|
1805
|
+
...context.metadata,
|
|
1806
|
+
author_company_slug: context.authorCompanySlug,
|
|
1807
|
+
author_company_url: companyPageUrl(context.authorCompanySlug),
|
|
1808
|
+
}
|
|
1809
|
+
: context.metadata,
|
|
1716
1810
|
});
|
|
1717
1811
|
}
|
|
1718
1812
|
return events;
|
|
@@ -2613,6 +2707,12 @@ export function parseCompanyUpdates(
|
|
|
2613
2707
|
// normalizeLinkedInSlug pulls the `/in/<slug>` segment from a full URL (and
|
|
2614
2708
|
// returns null for a company `/company/…` URL or anything slug-invalid).
|
|
2615
2709
|
const authorSlug = normalizeLinkedInSlug(authorProfileUrl);
|
|
2710
|
+
// A company actor navigates to its `/company/<slug>` page. Require the
|
|
2711
|
+
// `/company/` path: a bare publicIdentifier is a member's vanity slug.
|
|
2712
|
+
const authorCompanySlug =
|
|
2713
|
+
!authorMemberId && !authorSlug && isCompanyHref(authorProfileUrl)
|
|
2714
|
+
? normalizeLinkedInCompanySlug(authorProfileUrl)
|
|
2715
|
+
: null;
|
|
2616
2716
|
|
|
2617
2717
|
// Get social counts
|
|
2618
2718
|
const socialRef = el["*socialDetail"] ?? el.socialDetail;
|
|
@@ -2640,6 +2740,7 @@ export function parseCompanyUpdates(
|
|
|
2640
2740
|
authorHeadline: typeof authorDesc === "string" ? authorDesc : undefined,
|
|
2641
2741
|
authorMemberId: authorMemberId || undefined,
|
|
2642
2742
|
authorSlug: authorSlug ?? undefined,
|
|
2743
|
+
authorCompanySlug: authorCompanySlug ?? undefined,
|
|
2643
2744
|
likes: counts.numLikes ?? 0,
|
|
2644
2745
|
comments: counts.numComments ?? 0,
|
|
2645
2746
|
shares: counts.numShares ?? 0,
|
|
@@ -2737,6 +2838,12 @@ const homeFeedConfigSchema = {
|
|
|
2737
2838
|
description:
|
|
2738
2839
|
"Optional lower bound. When set below max_scrolls, each sync picks a uniform random scroll count in [min_scrolls, max_scrolls].",
|
|
2739
2840
|
},
|
|
2841
|
+
create_engager_people: {
|
|
2842
|
+
type: "boolean",
|
|
2843
|
+
default: true,
|
|
2844
|
+
description:
|
|
2845
|
+
"Create a new person for each member who reacted to, commented on, or was replied to on a feed post (default: true). When off, those members are still linked to people that already exist, but no new people are created for them. Post authors are always created.",
|
|
2846
|
+
},
|
|
2740
2847
|
},
|
|
2741
2848
|
};
|
|
2742
2849
|
|
|
@@ -3072,6 +3179,17 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3072
3179
|
author: { type: "string" },
|
|
3073
3180
|
author_linkedin_slug: { type: "string" },
|
|
3074
3181
|
author_profile_url: { type: "string" },
|
|
3182
|
+
author_company_slug: {
|
|
3183
|
+
type: "string",
|
|
3184
|
+
description:
|
|
3185
|
+
"The `/company/<slug>` of the company page that wrote the post, when the author is a company.",
|
|
3186
|
+
},
|
|
3187
|
+
author_company_url: { type: "string" },
|
|
3188
|
+
create_engager_people: {
|
|
3189
|
+
type: "boolean",
|
|
3190
|
+
description:
|
|
3191
|
+
"The connection's create_engager_people setting when the post was read.",
|
|
3192
|
+
},
|
|
3075
3193
|
social_actor: {
|
|
3076
3194
|
type: "string",
|
|
3077
3195
|
description:
|
|
@@ -3114,6 +3232,11 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3114
3232
|
parent_comment_author_linkedin_slug: { type: "string" },
|
|
3115
3233
|
parent_comment_author_profile_url: { type: "string" },
|
|
3116
3234
|
is_reply: { type: "boolean" },
|
|
3235
|
+
create_engager_people: {
|
|
3236
|
+
type: "boolean",
|
|
3237
|
+
description:
|
|
3238
|
+
"The connection's create_engager_people setting when the comment was read.",
|
|
3239
|
+
},
|
|
3117
3240
|
reactions: { type: "number" },
|
|
3118
3241
|
comments: { type: "number" },
|
|
3119
3242
|
reposts: { type: "number" },
|
|
@@ -3138,6 +3261,12 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3138
3261
|
author_headline: { type: "string" },
|
|
3139
3262
|
author_member_id: { type: "string" },
|
|
3140
3263
|
author_linkedin_slug: { type: "string" },
|
|
3264
|
+
author_company_slug: {
|
|
3265
|
+
type: "string",
|
|
3266
|
+
description:
|
|
3267
|
+
"The `/company/<slug>` of the company page that wrote the post, when the author is a company.",
|
|
3268
|
+
},
|
|
3269
|
+
author_company_url: { type: "string" },
|
|
3141
3270
|
likes: { type: "number" },
|
|
3142
3271
|
comments: { type: "number" },
|
|
3143
3272
|
shares: { type: "number" },
|
|
@@ -3747,7 +3876,12 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3747
3876
|
// company_url — it always reads LINKEDIN_HOME_URL.
|
|
3748
3877
|
if (feedKey === "home_feed") {
|
|
3749
3878
|
const homeScrolls = readHomeScrollBudget(config);
|
|
3750
|
-
return this.syncHomeFeed(
|
|
3879
|
+
return this.syncHomeFeed(
|
|
3880
|
+
homeScrolls,
|
|
3881
|
+
config.create_engager_people !== false,
|
|
3882
|
+
checkpoint,
|
|
3883
|
+
requireBrowser(ctx)
|
|
3884
|
+
);
|
|
3751
3885
|
}
|
|
3752
3886
|
|
|
3753
3887
|
if (!config.company_url) {
|
|
@@ -3778,6 +3912,7 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3778
3912
|
*/
|
|
3779
3913
|
private async syncHomeFeed(
|
|
3780
3914
|
maxScrolls: number,
|
|
3915
|
+
createEngagerPeople: boolean,
|
|
3781
3916
|
checkpoint: LinkedInCheckpoint,
|
|
3782
3917
|
dispatcher: ChromeActionDispatcher
|
|
3783
3918
|
): Promise<LinkedInSyncPage> {
|
|
@@ -3827,7 +3962,17 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3827
3962
|
|
|
3828
3963
|
const commentCoverage = summarizeHomeFeedCommentCoverage(resolvedRows);
|
|
3829
3964
|
|
|
3830
|
-
|
|
3965
|
+
// Stamp the connection's engager setting on every event so the engager,
|
|
3966
|
+
// commenter, and replied-to rules can gate person creation on it.
|
|
3967
|
+
const events = buildHomeFeedEvents(resolvedRows, new Date()).map(
|
|
3968
|
+
(event) => ({
|
|
3969
|
+
...event,
|
|
3970
|
+
metadata: {
|
|
3971
|
+
...event.metadata,
|
|
3972
|
+
create_engager_people: createEngagerPeople,
|
|
3973
|
+
},
|
|
3974
|
+
})
|
|
3975
|
+
);
|
|
3831
3976
|
if (events.length === 0) {
|
|
3832
3977
|
throw new Error(
|
|
3833
3978
|
"LinkedIn is logged in and returned feed rows, but no row combined usable content with a durable identity. Confirm that the paired browser is signed into LinkedIn and retry."
|
|
@@ -3908,6 +4053,12 @@ export default class LinkedInConnector extends ConnectorRuntime<
|
|
|
3908
4053
|
// Voyager exposed the actor's fsd_profile urn; slug bridges to takeout.
|
|
3909
4054
|
author_member_id: post.authorMemberId,
|
|
3910
4055
|
author_linkedin_slug: post.authorSlug,
|
|
4056
|
+
...(post.authorCompanySlug
|
|
4057
|
+
? {
|
|
4058
|
+
author_company_slug: post.authorCompanySlug,
|
|
4059
|
+
author_company_url: companyPageUrl(post.authorCompanySlug),
|
|
4060
|
+
}
|
|
4061
|
+
: {}),
|
|
3911
4062
|
likes: post.likes,
|
|
3912
4063
|
comments: post.comments,
|
|
3913
4064
|
shares: post.shares,
|