@curviate/cli 0.47.0 → 0.49.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +231 -1
  2. package/README.md +136 -88
  3. package/dist/{account-RFJ63QYL.js → account-2BH2Q6VG.js} +41 -31
  4. package/dist/chunk-3RCW7URJ.js +41 -0
  5. package/dist/{chunk-UJOTQPL6.js → chunk-5ZGTU4VD.js} +47 -14
  6. package/dist/chunk-D2S5OCYU.js +38 -0
  7. package/dist/{chunk-HOQ7EUHJ.js → chunk-FDJMAF7D.js} +1 -0
  8. package/dist/{chunk-ERBYEC5P.js → chunk-JYKYD57J.js} +1 -1
  9. package/dist/chunk-MGB6FE4A.js +58 -0
  10. package/dist/chunk-NNV2OYEF.js +23 -0
  11. package/dist/{chunk-76SWLAZ6.js → chunk-RXWODUWA.js} +43 -1
  12. package/dist/{chunk-V3MVOVQT.js → chunk-SA2QHAXG.js} +8 -1
  13. package/dist/chunk-TEAWYLPO.js +1493 -0
  14. package/dist/{chunk-PD2I5TYC.js → chunk-V7FJWTZW.js} +3 -3
  15. package/dist/{chunk-TC4ZPUWI.js → chunk-Y7MZZRYR.js} +21 -80
  16. package/dist/{chunk-FXYK2GTO.js → chunk-Z7OQSWBD.js} +38 -33
  17. package/dist/chunk-ZYURL5VK.js +83 -0
  18. package/dist/cli.js +79 -98
  19. package/dist/{comment-MCXE7B7V.js → comment-MRDPDA33.js} +29 -24
  20. package/dist/{company-EUUN372H.js → company-2AEHSGHA.js} +57 -52
  21. package/dist/{config-K4G3VSBA.js → config-NRBKHXES.js} +13 -5
  22. package/dist/{connect-2AL7XVJO.js → connect-4XEBV5V3.js} +42 -38
  23. package/dist/core-RGU2SCBN.js +46 -0
  24. package/dist/{doctor-WPYI7X2T.js → doctor-BZ4DA7DV.js} +9 -5
  25. package/dist/document-RKHRWXNT.js +27 -0
  26. package/dist/{draft-G65DVXT7.js → draft-C5N6EOO5.js} +27 -22
  27. package/dist/enrollment-BNQOUKI7.js +472 -0
  28. package/dist/examples-NIMSIXMV.js +53 -0
  29. package/dist/{exit-codes-AW6KHDDN.js → exit-codes-TLMKTLRI.js} +1 -1
  30. package/dist/{feed-HV24WME4.js → feed-DFUU7SUJ.js} +15 -11
  31. package/dist/{group-HADXNVJW.js → group-CSD2OWOZ.js} +17 -13
  32. package/dist/{inbox-G3EE54OB.js → inbox-SNSPWI7J.js} +23 -19
  33. package/dist/{inboxes-237XOBTP.js → inboxes-RIRHPS4H.js} +18 -14
  34. package/dist/{job-LIN6RWD7.js → job-6PNXXZNF.js} +31 -27
  35. package/dist/{login-OHAHNBRW.js → login-Y7JBAHCW.js} +10 -5
  36. package/dist/{message-U2O2JQSW.js → message-2IK4MBBG.js} +10 -8
  37. package/dist/motion-7ATUXO6R.js +946 -0
  38. package/dist/{notification-3VG32LWM.js → notification-VYK5NDEB.js} +19 -15
  39. package/dist/{post-ECDK2KJL.js → post-AN6T2OJF.js} +35 -30
  40. package/dist/{profile-JOHS6SDW.js → profile-UQY64642.js} +46 -42
  41. package/dist/{recruiter-7VXEIXN3.js → recruiter-OY4RN5HH.js} +122 -119
  42. package/dist/{sales-nav-K4BMBH7R.js → sales-nav-KLODLYMW.js} +36 -30
  43. package/dist/{search-C2UYO6PI.js → search-NWP5S6CF.js} +68 -58
  44. package/dist/{setup-GYEZFDEN.js → setup-YPPFLH2N.js} +14 -9
  45. package/dist/{webhook-KCOQOH7D.js → webhook-OHKBL3YS.js} +51 -55
  46. package/package.json +2 -2
  47. package/dist/chunk-KJ24DIAJ.js +0 -60
  48. package/dist/examples-IJL3A6SZ.js +0 -18
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-PD2I5TYC.js";
4
+ } from "./chunk-V7FJWTZW.js";
5
5
  import {
6
6
  buildPreviewOutput
7
7
  } from "./chunk-TCUYH5GO.js";
@@ -17,16 +17,20 @@ import {
17
17
  resolveEffectiveConfig,
18
18
  streamAll,
19
19
  writeNdjsonItem
20
- } from "./chunk-V3MVOVQT.js";
21
- import "./chunk-76SWLAZ6.js";
20
+ } from "./chunk-SA2QHAXG.js";
21
+ import "./chunk-RXWODUWA.js";
22
22
  import {
23
23
  createClient
24
- } from "./chunk-UJOTQPL6.js";
24
+ } from "./chunk-5ZGTU4VD.js";
25
25
  import {
26
26
  GLOBAL_FLAGS,
27
27
  WRITE_SINGLE_FLAGS,
28
28
  readOnly
29
- } from "./chunk-TC4ZPUWI.js";
29
+ } from "./chunk-Y7MZZRYR.js";
30
+ import {
31
+ DESCRIPTIONS
32
+ } from "./chunk-D2S5OCYU.js";
33
+ import "./chunk-ZYURL5VK.js";
30
34
 
31
35
  // src/commands/notification.ts
32
36
  import { defineCommand } from "citty";
@@ -47,7 +51,7 @@ function resolveOutputOpts(flags) {
47
51
  async function handleSdkError(err, outOpts, out) {
48
52
  const { CurviateError } = await import("@curviate/sdk");
49
53
  if (err instanceof CurviateError) {
50
- const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
54
+ const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
51
55
  renderError(err, outOpts, out);
52
56
  process.exit(getExitCode(err));
53
57
  }
@@ -124,8 +128,8 @@ var notificationListCommand = defineCommand({
124
128
  name: "list",
125
129
  description: "List the connected account's notification cards, newest first, plus the unread badge and a poll watermark.",
126
130
  examples: [
127
- "curviate notification list",
128
- "curviate notification list --filter mentions"
131
+ "curviate core notification list",
132
+ "curviate core notification list --filter mentions"
129
133
  ]
130
134
  },
131
135
  args: {
@@ -156,14 +160,14 @@ var notificationListCommand = defineCommand({
156
160
  var notificationDeleteCommand = defineCommand({
157
161
  meta: {
158
162
  name: "delete",
159
- description: "Delete one of your notification cards by its card urn. Self-action, safe to repeat, cannot be undone. An injected card (injected: true) has no card urn and cannot be deleted. LinkedIn may bring editorial and promotional cards back after a delete; `show-less` is the reliable way to suppress those.",
163
+ description: "Delete one of your notification cards by its card urn. Self-action, safe to repeat, cannot be undone. An injected card (injected: true) has no card urn and cannot be deleted. LinkedIn may bring editorial and promotional cards back after a delete; `curviate core notification show-less` is the reliable way to suppress those.",
160
164
  examples: [
161
- 'curviate notification delete "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
165
+ 'curviate core notification delete "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
162
166
  ]
163
167
  },
164
168
  args: {
165
169
  ...WRITE_SINGLE_FLAGS,
166
- cardUrn: { type: "positional", description: "The card_urn field of a `notification list` item (not object_urn)." }
170
+ cardUrn: { type: "positional", description: "The card_urn field of a `curviate core notification list` item (not object_urn)." }
167
171
  },
168
172
  async run({ args }) {
169
173
  const flags = args;
@@ -188,12 +192,12 @@ var notificationShowLessCommand = defineCommand({
188
192
  name: "show-less",
189
193
  description: "Apply 'show less like this' to the source of one of your notification cards. For network-activity cards this removes the card, same as delete. Self-action, safe to repeat, cannot be undone.",
190
194
  examples: [
191
- 'curviate notification show-less "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
195
+ 'curviate core notification show-less "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
192
196
  ]
193
197
  },
194
198
  args: {
195
199
  ...WRITE_SINGLE_FLAGS,
196
- cardUrn: { type: "positional", description: "The card_urn field of a `notification list` item (not object_urn)." }
200
+ cardUrn: { type: "positional", description: "The card_urn field of a `curviate core notification list` item (not object_urn)." }
197
201
  },
198
202
  async run({ args }) {
199
203
  const flags = args;
@@ -214,7 +218,7 @@ var notificationShowLessCommand = defineCommand({
214
218
  }
215
219
  });
216
220
  var notificationCommand = defineCommand({
217
- meta: { name: "notification", description: "Read and act on LinkedIn notification cards." },
221
+ meta: { name: "notification", description: DESCRIPTIONS.notification },
218
222
  subCommands: {
219
223
  list: notificationListCommand,
220
224
  delete: notificationDeleteCommand,
@@ -222,7 +226,7 @@ var notificationCommand = defineCommand({
222
226
  },
223
227
  async run() {
224
228
  process.stderr.write(
225
- "Usage: curviate notification <subcommand>\n list [--filter <f>]\n delete <card_urn>\n show-less <card_urn>\n"
229
+ "Usage: curviate core notification <subcommand>\n list [--filter <f>]\n delete <card_urn>\n show-less <card_urn>\n"
226
230
  );
227
231
  }
228
232
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolveMemberOrMeProviderId
4
- } from "./chunk-ERBYEC5P.js";
4
+ } from "./chunk-JYKYD57J.js";
5
5
  import {
6
6
  AttachError,
7
7
  readAttachment,
@@ -10,7 +10,7 @@ import {
10
10
  import "./chunk-UEAX6KUB.js";
11
11
  import {
12
12
  requireAccount
13
- } from "./chunk-PD2I5TYC.js";
13
+ } from "./chunk-V7FJWTZW.js";
14
14
  import {
15
15
  buildPreviewOutput
16
16
  } from "./chunk-TCUYH5GO.js";
@@ -27,19 +27,24 @@ import {
27
27
  resolveEffectiveConfig,
28
28
  streamAll,
29
29
  writeNdjsonItem
30
- } from "./chunk-V3MVOVQT.js";
31
- import "./chunk-76SWLAZ6.js";
30
+ } from "./chunk-SA2QHAXG.js";
31
+ import "./chunk-RXWODUWA.js";
32
32
  import {
33
33
  createClient
34
- } from "./chunk-UJOTQPL6.js";
34
+ } from "./chunk-5ZGTU4VD.js";
35
35
  import {
36
36
  GLOBAL_FLAGS,
37
37
  READ_SINGLE_FLAGS,
38
38
  WRITE_FLAGS,
39
39
  WRITE_SINGLE_FLAGS,
40
- readOnly,
40
+ readOnly
41
+ } from "./chunk-Y7MZZRYR.js";
42
+ import {
43
+ DESCRIPTIONS
44
+ } from "./chunk-D2S5OCYU.js";
45
+ import {
41
46
  resolveTextOrStdin
42
- } from "./chunk-TC4ZPUWI.js";
47
+ } from "./chunk-ZYURL5VK.js";
43
48
 
44
49
  // src/commands/post.ts
45
50
  import { defineCommand } from "citty";
@@ -77,7 +82,7 @@ function normalizeAttachPaths(attach) {
77
82
  async function handleSdkError(err, outOpts, out) {
78
83
  const { CurviateError } = await import("@curviate/sdk");
79
84
  if (err instanceof CurviateError) {
80
- const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
85
+ const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
81
86
  renderError(err, outOpts, out);
82
87
  process.exit(getExitCode(err));
83
88
  }
@@ -382,21 +387,21 @@ async function runPostUserReactions(client, flags, out) {
382
387
  await handleSdkError(err, outOpts, out);
383
388
  }
384
389
  }
385
- var POST_ID_FORMS = "Post id in any form the CLI returns: the `id` from search posts or a post read, a bare numeric activity id, urn:li:activity|ugcPost|share:N, or a full LinkedIn post URL (activity-, ugcPost- or share- slug).";
390
+ var POST_ID_FORMS = "Post id in any form the CLI returns: the `id` from `curviate core search posts` or a post read, a bare numeric activity id, urn:li:activity|ugcPost|share:N, or a full LinkedIn post URL (activity-, ugcPost- or share- slug).";
386
391
  var postGetCommand = defineCommand({
387
392
  meta: {
388
393
  name: "get",
389
394
  description: "Get a post by id.",
390
395
  examples: [
391
- "curviate post get 7290000000000000000",
392
- "curviate post get urn:li:activity:7290000000000000000"
396
+ "curviate core post get 7290000000000000000",
397
+ "curviate core post get urn:li:activity:7290000000000000000"
393
398
  ]
394
399
  },
395
400
  args: {
396
401
  ...readOnly(READ_SINGLE_FLAGS),
397
402
  postId: {
398
403
  type: "positional",
399
- description: POST_ID_FORMS + " POSTID is always the post's id. To list comments on a post, use 'comment list <post_id>'."
404
+ description: POST_ID_FORMS + " POSTID is always the post's id. To list comments on a post, use `curviate core comment list <post_id>`."
400
405
  }
401
406
  },
402
407
  async run({ args }) {
@@ -422,8 +427,8 @@ var postCreateCommand = defineCommand({
422
427
  name: "create",
423
428
  description: "Create a new post.",
424
429
  examples: [
425
- 'curviate post create "We just shipped webhooks for inbox events."',
426
- 'curviate post create "Our latest product update." --attach screenshot.png'
430
+ 'curviate core post create "We just shipped webhooks for inbox events."',
431
+ 'curviate core post create "Our latest product update." --attach screenshot.png'
427
432
  ]
428
433
  },
429
434
  args: {
@@ -458,8 +463,8 @@ var postReactCommand = defineCommand({
458
463
  name: "react",
459
464
  description: "React to a post.",
460
465
  examples: [
461
- "curviate post react 7290000000000000000 like",
462
- "curviate post react 7290000000000000000 celebrate --as-organization 1234567"
466
+ "curviate core post react 7290000000000000000 like",
467
+ "curviate core post react 7290000000000000000 celebrate --as-organization 1234567"
463
468
  ]
464
469
  },
465
470
  args: {
@@ -507,8 +512,8 @@ var postReactionsCommand = defineCommand({
507
512
  name: "reactions",
508
513
  description: "List reactions on a post.",
509
514
  examples: [
510
- "curviate post reactions 7290000000000000000",
511
- "curviate post reactions 7290000000000000000 --all"
515
+ "curviate core post reactions 7290000000000000000",
516
+ "curviate core post reactions 7290000000000000000 --all"
512
517
  ]
513
518
  },
514
519
  args: {
@@ -557,7 +562,7 @@ var postDeleteCommand = defineCommand({
557
562
  name: "delete",
558
563
  description: "Delete a post you own.",
559
564
  examples: [
560
- "curviate post delete 7290000000000000000"
565
+ "curviate core post delete 7290000000000000000"
561
566
  ]
562
567
  },
563
568
  args: {
@@ -573,7 +578,7 @@ var postUnreactCommand = defineCommand({
573
578
  name: "unreact",
574
579
  description: "Remove your reaction from a post.",
575
580
  examples: [
576
- "curviate post unreact 7290000000000000000 like"
581
+ "curviate core post unreact 7290000000000000000 like"
577
582
  ]
578
583
  },
579
584
  args: {
@@ -590,7 +595,7 @@ var postSavedCommand = defineCommand({
590
595
  name: "saved",
591
596
  description: "List your own saved posts (a private bookmark list, newest-saved-first). Each item is a preview (snippet capped at 140 chars).",
592
597
  examples: [
593
- "curviate post saved"
598
+ "curviate core post saved"
594
599
  ]
595
600
  },
596
601
  args: { ...readOnly(GLOBAL_FLAGS) },
@@ -603,7 +608,7 @@ var postSaveCommand = defineCommand({
603
608
  name: "save",
604
609
  description: "Save a post to your private bookmark list. Never notifies the author, never visible to third parties. Saving a saved post changes nothing.",
605
610
  examples: [
606
- "curviate post save 7290000000000000000"
611
+ "curviate core post save 7290000000000000000"
607
612
  ]
608
613
  },
609
614
  args: {
@@ -619,7 +624,7 @@ var postUnsaveCommand = defineCommand({
619
624
  name: "unsave",
620
625
  description: "Remove a post from your saved-posts bookmark list. Unsaving a post that is not saved changes nothing.",
621
626
  examples: [
622
- "curviate post unsave 7290000000000000000"
627
+ "curviate core post unsave 7290000000000000000"
623
628
  ]
624
629
  },
625
630
  args: {
@@ -633,10 +638,10 @@ var postUnsaveCommand = defineCommand({
633
638
  var postUserPostsCommand = defineCommand({
634
639
  meta: {
635
640
  name: "user-posts",
636
- description: "List a member's own posts (accepts 'me'). A very recent create/delete may take a few minutes to appear or clear here (LinkedIn-side indexing); `post get <post_id>` reflects it immediately.",
641
+ description: "List a member's own posts (accepts 'me'). A very recent create/delete may take a few minutes to appear or clear here (LinkedIn-side indexing); `curviate core post get <post_id>` reflects it immediately.",
637
642
  examples: [
638
- "curviate post user-posts me",
639
- "curviate post user-posts janesmith --limit 10"
643
+ "curviate core post user-posts me",
644
+ "curviate core post user-posts janesmith --limit 10"
640
645
  ]
641
646
  },
642
647
  args: {
@@ -652,8 +657,8 @@ var postUserReactionsCommand = defineCommand({
652
657
  name: "user-reactions",
653
658
  description: "List a member's own reactions (accepts 'me'). Items carry no time of the reaction: `parent_post.created_at` is when the post was created, not when it was reacted to, so the listing cannot be filtered by date; without `--all`, `--limit` caps the read at one page.",
654
659
  examples: [
655
- "curviate post user-reactions me",
656
- "curviate post user-reactions me --all"
660
+ "curviate core post user-reactions me",
661
+ "curviate core post user-reactions me --all"
657
662
  ]
658
663
  },
659
664
  args: {
@@ -665,7 +670,7 @@ var postUserReactionsCommand = defineCommand({
665
670
  }
666
671
  });
667
672
  var postCommand = defineCommand({
668
- meta: { name: "post", description: "Create and manage LinkedIn posts." },
673
+ meta: { name: "post", description: DESCRIPTIONS.post },
669
674
  subCommands: {
670
675
  get: postGetCommand,
671
676
  create: postCreateCommand,
@@ -681,7 +686,7 @@ var postCommand = defineCommand({
681
686
  },
682
687
  async run() {
683
688
  process.stderr.write(
684
- 'Usage: curviate post <subcommand>\n get <post_id>\n create "<text>" [--attach <file>...]\n react <post_id> <reaction> [--as-organization <org_id>]\n reactions <post_id>\n delete <post_id>\n unreact <post_id> <reaction>\n saved\n save <post_id>\n unsave <post_id>\n user-posts <user_id>\n user-reactions <user_id>\n\nComment operations moved to the `comment` command group.\n'
689
+ 'Usage: curviate core post <subcommand>\n get <post_id>\n create "<text>" [--attach <file>...]\n react <post_id> <reaction> [--as-organization <org_id>]\n reactions <post_id>\n delete <post_id>\n unreact <post_id> <reaction>\n saved\n save <post_id>\n unsave <post_id>\n user-posts <user_id>\n user-reactions <user_id>\n\nComment operations moved to the `curviate core comment` command group.\n'
685
690
  );
686
691
  }
687
692
  });
@@ -1,10 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- parseSectionsFlag,
4
- slimProfile,
5
- slimProfileMe,
6
- withRequestedSections
7
- } from "./chunk-LCGXJGPB.js";
8
2
  import {
9
3
  RETRIEVAL_FLAGS,
10
4
  hasRetrievalFlags,
@@ -13,7 +7,7 @@ import {
13
7
  import {
14
8
  resolveMemberOrMeProviderId,
15
9
  resolveMemberProviderId
16
- } from "./chunk-ERBYEC5P.js";
10
+ } from "./chunk-JYKYD57J.js";
17
11
  import {
18
12
  AttachError,
19
13
  readAttachment,
@@ -24,7 +18,13 @@ import {
24
18
  } from "./chunk-UEAX6KUB.js";
25
19
  import {
26
20
  requireAccount
27
- } from "./chunk-PD2I5TYC.js";
21
+ } from "./chunk-V7FJWTZW.js";
22
+ import {
23
+ parseSectionsFlag,
24
+ slimProfile,
25
+ slimProfileMe,
26
+ withRequestedSections
27
+ } from "./chunk-LCGXJGPB.js";
28
28
  import {
29
29
  buildPreviewOutput
30
30
  } from "./chunk-TCUYH5GO.js";
@@ -42,17 +42,21 @@ import {
42
42
  resolveEffectiveConfig,
43
43
  streamAll,
44
44
  writeNdjsonItem
45
- } from "./chunk-V3MVOVQT.js";
46
- import "./chunk-76SWLAZ6.js";
45
+ } from "./chunk-SA2QHAXG.js";
46
+ import "./chunk-RXWODUWA.js";
47
47
  import {
48
48
  createClient
49
- } from "./chunk-UJOTQPL6.js";
49
+ } from "./chunk-5ZGTU4VD.js";
50
50
  import {
51
51
  GLOBAL_FLAGS,
52
52
  READ_SINGLE_FLAGS,
53
53
  WRITE_SINGLE_FLAGS,
54
54
  readOnly
55
- } from "./chunk-TC4ZPUWI.js";
55
+ } from "./chunk-Y7MZZRYR.js";
56
+ import {
57
+ DESCRIPTIONS
58
+ } from "./chunk-D2S5OCYU.js";
59
+ import "./chunk-ZYURL5VK.js";
56
60
 
57
61
  // src/commands/profile.ts
58
62
  import { defineCommand } from "citty";
@@ -180,7 +184,7 @@ async function runProfileMe(client, flags, out) {
180
184
  } catch (err) {
181
185
  const { CurviateError } = await import("@curviate/sdk");
182
186
  if (err instanceof CurviateError) {
183
- const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
187
+ const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
184
188
  renderError(err, outOpts, out);
185
189
  process.exit(getExitCode(err));
186
190
  }
@@ -207,7 +211,7 @@ async function runProfileMe(client, flags, out) {
207
211
  } catch (err) {
208
212
  const { CurviateError } = await import("@curviate/sdk");
209
213
  if (err instanceof CurviateError) {
210
- const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
214
+ const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
211
215
  renderError(err, outOpts, out);
212
216
  process.exit(getExitCode(err));
213
217
  }
@@ -339,7 +343,7 @@ async function runProfileGet(client, flags, out) {
339
343
  } catch (err) {
340
344
  const { CurviateError } = await import("@curviate/sdk");
341
345
  if (err instanceof CurviateError) {
342
- const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
346
+ const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
343
347
  renderError(err, outOpts, out);
344
348
  process.exit(getExitCode(err));
345
349
  }
@@ -377,7 +381,7 @@ async function runProfileRelations(client, flags, out) {
377
381
  } catch (err) {
378
382
  const { CurviateError } = await import("@curviate/sdk");
379
383
  if (err instanceof CurviateError) {
380
- const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
384
+ const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
381
385
  renderError(err, outOpts, out);
382
386
  process.exit(getExitCode(err));
383
387
  }
@@ -417,7 +421,7 @@ async function runProfileEndorse(client, flags, out) {
417
421
  async function handleSdkError(err, outOpts, out) {
418
422
  const { CurviateError } = await import("@curviate/sdk");
419
423
  if (err instanceof CurviateError) {
420
- const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
424
+ const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
421
425
  renderError(err, outOpts, out);
422
426
  process.exit(getExitCode(err));
423
427
  }
@@ -655,8 +659,8 @@ var profileMeCommand = defineCommand({
655
659
  name: "me",
656
660
  description: "Get your own profile, or list own activity with --posts/--comments/--reactions/--followers.",
657
661
  examples: [
658
- "curviate profile me",
659
- "curviate profile me --posts"
662
+ "curviate core profile me",
663
+ "curviate core profile me --posts"
660
664
  ],
661
665
  requires: [
662
666
  "--all, --max-pages and --page-delay only with a list flag: --posts, --comments, --reactions or --followers."
@@ -671,7 +675,7 @@ var profileMeCommand = defineCommand({
671
675
  },
672
676
  posts: {
673
677
  type: "boolean",
674
- description: "List own activity feed (posts + reposts). For authored-only posts, use 'post user-posts me'.",
678
+ description: "List own activity feed (posts + reposts). For authored-only posts, use `curviate core post user-posts me`.",
675
679
  default: false
676
680
  },
677
681
  comments: {
@@ -713,8 +717,8 @@ var profileRelationsCommand = defineCommand({
713
717
  name: "relations",
714
718
  description: "List your 1st-degree connections.",
715
719
  examples: [
716
- "curviate profile relations",
717
- "curviate profile relations --all"
720
+ "curviate core profile relations",
721
+ "curviate core profile relations --all"
718
722
  ]
719
723
  },
720
724
  args: { ...readOnly(GLOBAL_FLAGS) },
@@ -741,7 +745,7 @@ var profileEndorseCommand = defineCommand({
741
745
  name: "endorse",
742
746
  description: "Endorse a skill on a member's profile.",
743
747
  examples: [
744
- "curviate profile endorse janesmith --endorsement-id 12345"
748
+ "curviate core profile endorse janesmith --endorsement-id 12345"
745
749
  ]
746
750
  },
747
751
  args: {
@@ -749,7 +753,7 @@ var profileEndorseCommand = defineCommand({
749
753
  id: { type: "positional", description: "Member identifier (URL, slug, or provider id). A URL/slug is resolved to the provider id automatically (a slug is not accepted directly by the endorse endpoint)." },
750
754
  "endorsement-id": {
751
755
  type: "string",
752
- description: "Endorsement ID to endorse. Get it from the target's skills section via `curviate profile <id> --sections linkedin_skills`.",
756
+ description: "Endorsement ID to endorse. Get it from the target's skills section via `curviate core profile <id> --sections linkedin_skills`.",
753
757
  required: true
754
758
  }
755
759
  },
@@ -792,8 +796,8 @@ var profileUpdateCommand = defineCommand({
792
796
  name: "update",
793
797
  description: "Update your own profile (headline, bio, name, skills, photos).",
794
798
  examples: [
795
- 'curviate profile update --headline "Building agent infrastructure"',
796
- 'curviate profile update --skills "TypeScript,Agents"'
799
+ 'curviate core profile update --headline "Building agent infrastructure"',
800
+ 'curviate core profile update --skills "TypeScript,Agents"'
797
801
  ],
798
802
  requires: [
799
803
  "At least one of --first-name, --last-name, --headline, --bio, --skills, --picture, --background-picture."
@@ -818,7 +822,7 @@ var profileFollowCommand = defineCommand({
818
822
  name: "follow",
819
823
  description: "Follow a member (sends a connect request if their profile is private).",
820
824
  examples: [
821
- "curviate profile follow janesmith"
825
+ "curviate core profile follow janesmith"
822
826
  ]
823
827
  },
824
828
  args: {
@@ -834,7 +838,7 @@ var profileUnfollowCommand = defineCommand({
834
838
  name: "unfollow",
835
839
  description: "Unfollow a member. Unfollowing someone you do not follow changes nothing.",
836
840
  examples: [
837
- "curviate profile unfollow janesmith"
841
+ "curviate core profile unfollow janesmith"
838
842
  ]
839
843
  },
840
844
  args: {
@@ -850,8 +854,8 @@ var profileFollowersCommand = defineCommand({
850
854
  name: "followers",
851
855
  description: "List a member's followers (accepts 'me').",
852
856
  examples: [
853
- "curviate profile followers me",
854
- "curviate profile followers janesmith --limit 20"
857
+ "curviate core profile followers me",
858
+ "curviate core profile followers janesmith --limit 20"
855
859
  ]
856
860
  },
857
861
  args: {
@@ -867,8 +871,8 @@ var profileFollowingCommand = defineCommand({
867
871
  name: "following",
868
872
  description: "List who a member follows (accepts 'me').",
869
873
  examples: [
870
- "curviate profile following me",
871
- "curviate profile following me --all"
874
+ "curviate core profile following me",
875
+ "curviate core profile following me --all"
872
876
  ]
873
877
  },
874
878
  args: {
@@ -884,7 +888,7 @@ var profileSubscriptionCommand = defineCommand({
884
888
  name: "subscription",
885
889
  description: "Read your premium subscription: entitlements, primary plan, and LinkedIn management links. A free account is a valid result (has_premium:false).",
886
890
  examples: [
887
- "curviate profile subscription"
891
+ "curviate core profile subscription"
888
892
  ]
889
893
  },
890
894
  args: { ...readOnly(READ_SINGLE_FLAGS) },
@@ -897,7 +901,7 @@ var profileAnalyticsCommand = defineCommand({
897
901
  name: "analytics",
898
902
  description: "Read your performance headline metrics: profile viewers, followers, post impressions, and search appearances (fixed LinkedIn reporting windows, no window selector).",
899
903
  examples: [
900
- "curviate profile analytics"
904
+ "curviate core profile analytics"
901
905
  ]
902
906
  },
903
907
  args: { ...readOnly(READ_SINGLE_FLAGS) },
@@ -910,8 +914,8 @@ var profileVisitorsCommand = defineCommand({
910
914
  name: "visitors",
911
915
  description: "List people who recently viewed your profile, classified by disclosure fidelity (identified, semi-anonymous, or aggregate; Premium sees more identified viewers).",
912
916
  examples: [
913
- "curviate profile visitors",
914
- "curviate profile visitors --limit 20"
917
+ "curviate core profile visitors",
918
+ "curviate core profile visitors --limit 20"
915
919
  ]
916
920
  },
917
921
  args: { ...readOnly(GLOBAL_FLAGS) },
@@ -924,7 +928,7 @@ var profileSsiCommand = defineCommand({
924
928
  name: "ssi",
925
929
  description: "Read your Social Selling Index: the overall score, its four pillar breakdowns, and industry/network percentile ranks.",
926
930
  examples: [
927
- "curviate profile ssi"
931
+ "curviate core profile ssi"
928
932
  ]
929
933
  },
930
934
  args: { ...readOnly(READ_SINGLE_FLAGS) },
@@ -935,11 +939,11 @@ var profileSsiCommand = defineCommand({
935
939
  var profileCommand = defineCommand({
936
940
  meta: {
937
941
  name: "profile",
938
- description: "LinkedIn profile operations.",
942
+ description: DESCRIPTIONS.profile,
939
943
  examples: [
940
- "curviate profile janesmith",
941
- "curviate profile https://www.linkedin.com/in/janesmith --posts",
942
- "curviate profile janesmith --sections experience,skills"
944
+ "curviate core profile janesmith",
945
+ "curviate core profile https://www.linkedin.com/in/janesmith --posts",
946
+ "curviate core profile janesmith --sections experience,skills"
943
947
  ],
944
948
  requires: [
945
949
  "--all, --max-pages and --page-delay only with a list flag: --posts, --comments, --reactions or --followers."
@@ -977,7 +981,7 @@ var profileCommand = defineCommand({
977
981
  const flags = args;
978
982
  if (!flags.id) {
979
983
  process.stderr.write(
980
- "Usage: curviate profile <id> [--posts|--comments|--reactions|--followers]\n curviate profile me\n curviate profile relations\n curviate profile followers <id> | following <id>\n curviate profile follow <id> | unfollow <id>\n curviate profile update [--headline|--bio|--first-name|--last-name|--skills|--picture]\n curviate profile endorse <id> --endorsement-id <id>\n"
984
+ "Usage: curviate core profile <id> [--posts|--comments|--reactions|--followers]\n curviate core profile me\n curviate core profile relations\n curviate core profile followers <id> | following <id>\n curviate core profile follow <id> | unfollow <id>\n curviate core profile update [--headline|--bio|--first-name|--last-name|--skills|--picture]\n curviate core profile endorse <id> --endorsement-id <id>\n curviate core profile subscription | analytics | visitors | ssi\n"
981
985
  );
982
986
  process.exit(2);
983
987
  }