@curviate/cli 0.49.0 → 0.50.0-next.1

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 (70) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +12 -5
  3. package/dist/{account-2BH2Q6VG.js → account-U7UJIE3H.js} +784 -116
  4. package/dist/analytics-MZU2WKON.js +27 -0
  5. package/dist/beta-consent-67IDUV3K.js +81 -0
  6. package/dist/billing-QAW75YE7.js +124 -0
  7. package/dist/{chunk-RXWODUWA.js → chunk-2W4RN5ON.js} +18 -2
  8. package/dist/{chunk-MGB6FE4A.js → chunk-3Z6PXS6N.js} +6 -6
  9. package/dist/chunk-5S3MJVI5.js +22 -0
  10. package/dist/{chunk-V7FJWTZW.js → chunk-6LBOGIVE.js} +4 -4
  11. package/dist/{chunk-Z7OQSWBD.js → chunk-6PLDAEMO.js} +85 -10
  12. package/dist/chunk-73DJ3KNE.js +54 -0
  13. package/dist/{chunk-3RCW7URJ.js → chunk-A57ZILRU.js} +1 -1
  14. package/dist/chunk-AVI7J47S.js +52 -0
  15. package/dist/{chunk-JYKYD57J.js → chunk-CKVCBGQX.js} +1 -1
  16. package/dist/chunk-EIA66ESN.js +339 -0
  17. package/dist/{chunk-YLSJ4HKU.js → chunk-ENBIMEKS.js} +26 -1
  18. package/dist/{chunk-LCGXJGPB.js → chunk-GHMRPX5H.js} +7 -1
  19. package/dist/chunk-GOICALYQ.js +28 -0
  20. package/dist/{chunk-PQWDDSV7.js → chunk-L7JH3W56.js} +1 -1
  21. package/dist/chunk-LCPPXOPN.js +528 -0
  22. package/dist/chunk-LRMPS4UQ.js +144 -0
  23. package/dist/{chunk-5ZGTU4VD.js → chunk-LULN3II2.js} +78 -5
  24. package/dist/chunk-PPGKQJKU.js +38 -0
  25. package/dist/chunk-Q3ZPRFUX.js +20 -0
  26. package/dist/{chunk-SA2QHAXG.js → chunk-QM57YDJE.js} +13 -201
  27. package/dist/{chunk-Y7MZZRYR.js → chunk-RYWWSZUH.js} +14 -2
  28. package/dist/{chunk-TEAWYLPO.js → chunk-TYNVJDYK.js} +49 -18
  29. package/dist/cli.js +34 -18
  30. package/dist/{comment-MRDPDA33.js → comment-6NRZILAS.js} +90 -11
  31. package/dist/{company-2AEHSGHA.js → company-VXE7IEPT.js} +65 -15
  32. package/dist/{config-NRBKHXES.js → config-3WP7OD35.js} +53 -4
  33. package/dist/{connect-4XEBV5V3.js → connect-FBK6UWZP.js} +63 -18
  34. package/dist/contact-HFPZ3KGL.js +32 -0
  35. package/dist/contact-groups-AI4MLGQS.js +399 -0
  36. package/dist/contact-import-54Y7EMU2.js +336 -0
  37. package/dist/core-RLMWMQEI.js +46 -0
  38. package/dist/do-not-contact-LQ5V6SPE.js +200 -0
  39. package/dist/{doctor-BZ4DA7DV.js → doctor-KKRL7TEF.js} +65 -11
  40. package/dist/{document-RKHRWXNT.js → document-GFRWPQFV.js} +1 -1
  41. package/dist/{draft-C5N6EOO5.js → draft-VSWZOCDR.js} +60 -14
  42. package/dist/{enrollment-BNQOUKI7.js → enrollment-OACCSBM5.js} +31 -19
  43. package/dist/{examples-NIMSIXMV.js → examples-JJB4DZKK.js} +2 -2
  44. package/dist/{exit-codes-TLMKTLRI.js → exit-codes-7DBETBDT.js} +1 -1
  45. package/dist/export-AQHAFVAB.js +96 -0
  46. package/dist/{feed-DFUU7SUJ.js → feed-HY4HT75U.js} +13 -10
  47. package/dist/{group-CSD2OWOZ.js → group-A3SMBFU5.js} +18 -10
  48. package/dist/{inbox-SNSPWI7J.js → inbox-YHUO2RPI.js} +31 -12
  49. package/dist/{inboxes-RIRHPS4H.js → inboxes-GKLMHPDR.js} +14 -10
  50. package/dist/incoming-NHROOOIZ.js +218 -0
  51. package/dist/{job-6PNXXZNF.js → job-QBW3PGWL.js} +65 -13
  52. package/dist/{login-Y7JBAHCW.js → login-GWIYHKYO.js} +13 -4
  53. package/dist/{message-2IK4MBBG.js → message-BFLN2VHS.js} +9 -7
  54. package/dist/{motion-7ATUXO6R.js → motion-LTWU2GPC.js} +39 -117
  55. package/dist/network-CNSBX2SR.js +235 -0
  56. package/dist/{notification-VYK5NDEB.js → notification-DCCFJPXU.js} +38 -11
  57. package/dist/notifications-AQBXBK4K.js +231 -0
  58. package/dist/{post-AN6T2OJF.js → post-PINZHSPS.js} +92 -12
  59. package/dist/{profile-UQY64642.js → profile-MJQJSNYR.js} +76 -20
  60. package/dist/{recruiter-OY4RN5HH.js → recruiter-X6GX4A2G.js} +133 -22
  61. package/dist/{sales-nav-KLODLYMW.js → sales-nav-44GYWDYE.js} +74 -19
  62. package/dist/{search-NWP5S6CF.js → search-SULIN6TB.js} +55 -23
  63. package/dist/{setup-YPPFLH2N.js → setup-ZQRHMRMB.js} +69 -17
  64. package/dist/team-TM6LRUY5.js +450 -0
  65. package/dist/tier-Z3U6AT7H.js +61 -0
  66. package/dist/unibox-BIMI2KY5.js +402 -0
  67. package/dist/{webhook-OHKBL3YS.js → webhook-EHXRTHBG.js} +257 -27
  68. package/package.json +2 -2
  69. package/dist/chunk-D2S5OCYU.js +0 -38
  70. package/dist/core-RGU2SCBN.js +0 -46
@@ -3,28 +3,33 @@ import {
3
3
  RETRIEVAL_FLAGS,
4
4
  hasRetrievalFlags,
5
5
  parseRetrievalFlags
6
- } from "./chunk-PQWDDSV7.js";
6
+ } from "./chunk-L7JH3W56.js";
7
7
  import {
8
8
  resolveMemberOrMeProviderId,
9
9
  resolveMemberProviderId
10
- } from "./chunk-JYKYD57J.js";
10
+ } from "./chunk-CKVCBGQX.js";
11
11
  import {
12
12
  AttachError,
13
13
  readAttachment,
14
14
  toAttachmentPayload
15
15
  } from "./chunk-5I6JJJIV.js";
16
+ import {
17
+ AS_ACCOUNT,
18
+ BUDGET,
19
+ TARGET
20
+ } from "./chunk-Q3ZPRFUX.js";
16
21
  import {
17
22
  resolveIdentifier
18
23
  } from "./chunk-UEAX6KUB.js";
19
- import {
20
- requireAccount
21
- } from "./chunk-V7FJWTZW.js";
22
24
  import {
23
25
  parseSectionsFlag,
24
26
  slimProfile,
25
27
  slimProfileMe,
26
28
  withRequestedSections
27
- } from "./chunk-LCGXJGPB.js";
29
+ } from "./chunk-GHMRPX5H.js";
30
+ import {
31
+ requireAccount
32
+ } from "./chunk-6LBOGIVE.js";
28
33
  import {
29
34
  buildPreviewOutput
30
35
  } from "./chunk-TCUYH5GO.js";
@@ -36,27 +41,29 @@ import {
36
41
  readableObject,
37
42
  readablePage,
38
43
  rejectPaginationModifiersWithoutAll,
44
+ streamAll
45
+ } from "./chunk-LRMPS4UQ.js";
46
+ import {
39
47
  renderError,
40
48
  renderSuccess,
41
49
  renderUnexpectedError,
42
- resolveEffectiveConfig,
43
- streamAll,
44
50
  writeNdjsonItem
45
- } from "./chunk-SA2QHAXG.js";
46
- import "./chunk-RXWODUWA.js";
51
+ } from "./chunk-QM57YDJE.js";
47
52
  import {
48
- createClient
49
- } from "./chunk-5ZGTU4VD.js";
53
+ createClient,
54
+ resolveEffectiveConfig
55
+ } from "./chunk-LULN3II2.js";
50
56
  import {
51
57
  GLOBAL_FLAGS,
52
58
  READ_SINGLE_FLAGS,
53
59
  WRITE_SINGLE_FLAGS,
54
60
  readOnly
55
- } from "./chunk-Y7MZZRYR.js";
61
+ } from "./chunk-RYWWSZUH.js";
56
62
  import {
57
63
  DESCRIPTIONS
58
- } from "./chunk-D2S5OCYU.js";
64
+ } from "./chunk-73DJ3KNE.js";
59
65
  import "./chunk-ZYURL5VK.js";
66
+ import "./chunk-2W4RN5ON.js";
60
67
 
61
68
  // src/commands/profile.ts
62
69
  import { defineCommand } from "citty";
@@ -184,7 +191,7 @@ async function runProfileMe(client, flags, out) {
184
191
  } catch (err) {
185
192
  const { CurviateError } = await import("@curviate/sdk");
186
193
  if (err instanceof CurviateError) {
187
- const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
194
+ const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
188
195
  renderError(err, outOpts, out);
189
196
  process.exit(getExitCode(err));
190
197
  }
@@ -211,7 +218,7 @@ async function runProfileMe(client, flags, out) {
211
218
  } catch (err) {
212
219
  const { CurviateError } = await import("@curviate/sdk");
213
220
  if (err instanceof CurviateError) {
214
- const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
221
+ const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
215
222
  renderError(err, outOpts, out);
216
223
  process.exit(getExitCode(err));
217
224
  }
@@ -343,7 +350,7 @@ async function runProfileGet(client, flags, out) {
343
350
  } catch (err) {
344
351
  const { CurviateError } = await import("@curviate/sdk");
345
352
  if (err instanceof CurviateError) {
346
- const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
353
+ const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
347
354
  renderError(err, outOpts, out);
348
355
  process.exit(getExitCode(err));
349
356
  }
@@ -381,7 +388,7 @@ async function runProfileRelations(client, flags, out) {
381
388
  } catch (err) {
382
389
  const { CurviateError } = await import("@curviate/sdk");
383
390
  if (err instanceof CurviateError) {
384
- const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
391
+ const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
385
392
  renderError(err, outOpts, out);
386
393
  process.exit(getExitCode(err));
387
394
  }
@@ -421,7 +428,7 @@ async function runProfileEndorse(client, flags, out) {
421
428
  async function handleSdkError(err, outOpts, out) {
422
429
  const { CurviateError } = await import("@curviate/sdk");
423
430
  if (err instanceof CurviateError) {
424
- const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
431
+ const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
425
432
  renderError(err, outOpts, out);
426
433
  process.exit(getExitCode(err));
427
434
  }
@@ -658,6 +665,7 @@ var profileMeCommand = defineCommand({
658
665
  meta: {
659
666
  name: "me",
660
667
  description: "Get your own profile, or list own activity with --posts/--comments/--reactions/--followers.",
668
+ risk: "read",
661
669
  examples: [
662
670
  "curviate core profile me",
663
671
  "curviate core profile me --posts"
@@ -715,7 +723,9 @@ var profileMeCommand = defineCommand({
715
723
  var profileRelationsCommand = defineCommand({
716
724
  meta: {
717
725
  name: "relations",
718
- description: "List your 1st-degree connections.",
726
+ description: "List your 1st-degree connections, live from LinkedIn.",
727
+ seeAlso: ["curviate network list (the stored Connections of every Account, no LinkedIn call)"],
728
+ risk: "read",
719
729
  examples: [
720
730
  "curviate core profile relations",
721
731
  "curviate core profile relations --all"
@@ -744,6 +754,15 @@ var profileEndorseCommand = defineCommand({
744
754
  meta: {
745
755
  name: "endorse",
746
756
  description: "Endorse a skill on a member's profile.",
757
+ risk: "write",
758
+ rules: {
759
+ changes: "Adds your endorsement to one skill on the member's profile.",
760
+ visible_to: "The member, on their profile.",
761
+ budget_rows: ["endorsements"],
762
+ retry: "Not safe: requests carry no idempotency key, so a retry after a timeout can repeat it. Read the member's skills with `curviate core profile <id> --sections skills` first.",
763
+ undo: "Cannot be undone from the CLI: remove the endorsement on LinkedIn."
764
+ },
765
+ errors: { ...AS_ACCOUNT, ...BUDGET, ...TARGET },
747
766
  examples: [
748
767
  "curviate core profile endorse janesmith --endorsement-id 12345"
749
768
  ]
@@ -795,6 +814,15 @@ var profileUpdateCommand = defineCommand({
795
814
  meta: {
796
815
  name: "update",
797
816
  description: "Update your own profile (headline, bio, name, skills, photos).",
817
+ risk: "write",
818
+ rules: {
819
+ changes: "Overwrites the profile fields you pass; fields you omit stay as they are.",
820
+ visible_to: "Everyone who can view your LinkedIn profile.",
821
+ budget_rows: [],
822
+ retry: "Safe: the same values written again leave the profile the same.",
823
+ undo: "Run it again with the previous values; the CLI keeps no copy of them."
824
+ },
825
+ errors: { ...AS_ACCOUNT },
798
826
  examples: [
799
827
  'curviate core profile update --headline "Building agent infrastructure"',
800
828
  'curviate core profile update --skills "TypeScript,Agents"'
@@ -821,6 +849,15 @@ var profileFollowCommand = defineCommand({
821
849
  meta: {
822
850
  name: "follow",
823
851
  description: "Follow a member (sends a connect request if their profile is private).",
852
+ risk: "write",
853
+ rules: {
854
+ changes: "Follows the member; for a private profile it sends a connection request instead.",
855
+ visible_to: "The member.",
856
+ budget_rows: ["follows"],
857
+ retry: "Following a member you already follow adds nothing; read `curviate core profile following me` first to be sure.",
858
+ undo: "`curviate core profile unfollow <id>`; a connection request stays pending until you cancel it."
859
+ },
860
+ errors: { ...AS_ACCOUNT, ...BUDGET, ...TARGET },
824
861
  examples: [
825
862
  "curviate core profile follow janesmith"
826
863
  ]
@@ -837,6 +874,15 @@ var profileUnfollowCommand = defineCommand({
837
874
  meta: {
838
875
  name: "unfollow",
839
876
  description: "Unfollow a member. Unfollowing someone you do not follow changes nothing.",
877
+ risk: "write",
878
+ rules: {
879
+ changes: "Stops following the member.",
880
+ visible_to: "The member's follower count drops.",
881
+ budget_rows: [],
882
+ retry: "Safe: unfollowing a member you do not follow changes nothing.",
883
+ undo: "`curviate core profile follow <id>`."
884
+ },
885
+ errors: { ...AS_ACCOUNT, ...TARGET },
840
886
  examples: [
841
887
  "curviate core profile unfollow janesmith"
842
888
  ]
@@ -853,6 +899,7 @@ var profileFollowersCommand = defineCommand({
853
899
  meta: {
854
900
  name: "followers",
855
901
  description: "List a member's followers (accepts 'me').",
902
+ risk: "read",
856
903
  examples: [
857
904
  "curviate core profile followers me",
858
905
  "curviate core profile followers janesmith --limit 20"
@@ -870,6 +917,7 @@ var profileFollowingCommand = defineCommand({
870
917
  meta: {
871
918
  name: "following",
872
919
  description: "List who a member follows (accepts 'me').",
920
+ risk: "read",
873
921
  examples: [
874
922
  "curviate core profile following me",
875
923
  "curviate core profile following me --all"
@@ -887,6 +935,7 @@ var profileSubscriptionCommand = defineCommand({
887
935
  meta: {
888
936
  name: "subscription",
889
937
  description: "Read your premium subscription: entitlements, primary plan, and LinkedIn management links. A free account is a valid result (has_premium:false).",
938
+ risk: "read",
890
939
  examples: [
891
940
  "curviate core profile subscription"
892
941
  ]
@@ -900,6 +949,7 @@ var profileAnalyticsCommand = defineCommand({
900
949
  meta: {
901
950
  name: "analytics",
902
951
  description: "Read your performance headline metrics: profile viewers, followers, post impressions, and search appearances (fixed LinkedIn reporting windows, no window selector).",
952
+ risk: "read",
903
953
  examples: [
904
954
  "curviate core profile analytics"
905
955
  ]
@@ -913,6 +963,7 @@ var profileVisitorsCommand = defineCommand({
913
963
  meta: {
914
964
  name: "visitors",
915
965
  description: "List people who recently viewed your profile, classified by disclosure fidelity (identified, semi-anonymous, or aggregate; Premium sees more identified viewers).",
966
+ risk: "read",
916
967
  examples: [
917
968
  "curviate core profile visitors",
918
969
  "curviate core profile visitors --limit 20"
@@ -927,6 +978,7 @@ var profileSsiCommand = defineCommand({
927
978
  meta: {
928
979
  name: "ssi",
929
980
  description: "Read your Social Selling Index: the overall score, its four pillar breakdowns, and industry/network percentile ranks.",
981
+ risk: "read",
930
982
  examples: [
931
983
  "curviate core profile ssi"
932
984
  ]
@@ -940,6 +992,10 @@ var profileCommand = defineCommand({
940
992
  meta: {
941
993
  name: "profile",
942
994
  description: DESCRIPTIONS.profile,
995
+ risk: "read",
996
+ rules: {
997
+ budget_rows: ["profile_views"]
998
+ },
943
999
  examples: [
944
1000
  "curviate core profile janesmith",
945
1001
  "curviate core profile https://www.linkedin.com/in/janesmith --posts",
@@ -1,9 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- DEFAULT_FILTER_READERS,
4
- assembleFilters,
5
- splitCsv
6
- } from "./chunk-3RCW7URJ.js";
7
2
  import {
8
3
  AttachError,
9
4
  readAttachment,
@@ -13,39 +8,50 @@ import {
13
8
  BinaryOutputError,
14
9
  writeBinaryOutput
15
10
  } from "./chunk-UWO2D4HW.js";
11
+ import {
12
+ AS_ACCOUNT,
13
+ BUDGET,
14
+ TARGET
15
+ } from "./chunk-Q3ZPRFUX.js";
16
16
  import {
17
17
  resolveIdentifier,
18
18
  resolveJobIdentifier
19
19
  } from "./chunk-UEAX6KUB.js";
20
20
  import {
21
- requireAccount
22
- } from "./chunk-V7FJWTZW.js";
21
+ DEFAULT_FILTER_READERS,
22
+ assembleFilters,
23
+ splitCsv
24
+ } from "./chunk-A57ZILRU.js";
23
25
  import {
24
26
  slimJob
25
- } from "./chunk-LCGXJGPB.js";
27
+ } from "./chunk-GHMRPX5H.js";
28
+ import {
29
+ requireAccount
30
+ } from "./chunk-6LBOGIVE.js";
26
31
  import {
27
32
  buildPreviewOutput
28
33
  } from "./chunk-TCUYH5GO.js";
29
34
  import {
30
- isJsonMode,
31
35
  pageDelayFromFlags,
32
36
  readCursorFlag,
33
37
  readMaxPagesFlag,
34
38
  readableObject,
35
39
  readablePage,
36
40
  rejectPaginationModifiersWithoutAll,
41
+ streamAll
42
+ } from "./chunk-LRMPS4UQ.js";
43
+ import {
44
+ isJsonMode,
37
45
  renderError,
38
46
  renderSuccess,
39
47
  renderUnexpectedError,
40
- resolveEffectiveConfig,
41
- streamAll,
42
48
  writeNdjsonItem
43
- } from "./chunk-SA2QHAXG.js";
44
- import "./chunk-RXWODUWA.js";
49
+ } from "./chunk-QM57YDJE.js";
45
50
  import {
46
51
  createClient,
47
- downloadBinary
48
- } from "./chunk-5ZGTU4VD.js";
52
+ downloadBinary,
53
+ resolveEffectiveConfig
54
+ } from "./chunk-LULN3II2.js";
49
55
  import {
50
56
  GLOBAL_FLAGS,
51
57
  NON_STREAM_FLAGS,
@@ -53,19 +59,20 @@ import {
53
59
  WRITE_FLAGS,
54
60
  WRITE_SINGLE_FLAGS,
55
61
  readOnly
56
- } from "./chunk-Y7MZZRYR.js";
62
+ } from "./chunk-RYWWSZUH.js";
57
63
  import {
58
64
  DESCRIPTIONS
59
- } from "./chunk-D2S5OCYU.js";
65
+ } from "./chunk-73DJ3KNE.js";
60
66
  import {
61
67
  documentSchema,
62
68
  parseDocument,
63
69
  readFileFlag,
64
70
  reportIssues,
65
71
  validate
66
- } from "./chunk-TEAWYLPO.js";
72
+ } from "./chunk-TYNVJDYK.js";
67
73
  import "./chunk-FDJMAF7D.js";
68
74
  import "./chunk-ZYURL5VK.js";
75
+ import "./chunk-2W4RN5ON.js";
69
76
 
70
77
  // src/commands/recruiter.ts
71
78
  import { defineCommand } from "citty";
@@ -90,7 +97,7 @@ function normalizeAttachPaths(attach) {
90
97
  async function handleSdkError(err, outOpts, out) {
91
98
  const { CurviateError } = await import("@curviate/sdk");
92
99
  if (err instanceof CurviateError) {
93
- const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
100
+ const { getExitCode } = await import("./exit-codes-7DBETBDT.js");
94
101
  renderError(err, outOpts, out);
95
102
  process.exit(getExitCode(err));
96
103
  }
@@ -883,6 +890,15 @@ var recruiterMessageNewCommand = defineCommand({
883
890
  meta: {
884
891
  name: "new",
885
892
  description: "Start a new Recruiter chat with a member.",
893
+ risk: "write",
894
+ rules: {
895
+ changes: "Starts a Recruiter chat with the member and sends the opening message.",
896
+ visible_to: "The recipient.",
897
+ budget_rows: ["inmail"],
898
+ retry: "Not safe: requests carry no idempotency key, so a retry after a timeout can repeat it. Read `curviate core inbox list` first.",
899
+ undo: "Cannot be undone."
900
+ },
901
+ errors: { ...AS_ACCOUNT, ...BUDGET, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription.", RECIPIENT_UNREACHABLE: "LinkedIn will not let the Account message this person." },
886
902
  examples: [
887
903
  'curviate core recruiter message new --to AEMAAA1234567 --subject "Staff Engineer role" --signature "Jane, Acme" "Hi Sam, your work on evals caught my eye."'
888
904
  ]
@@ -898,9 +914,9 @@ var recruiterMessageNewCommand = defineCommand({
898
914
  subject: { type: "string", description: "Message subject line (required for Recruiter InMail).", required: true },
899
915
  signature: { type: "string", description: "Sender signature (required for Recruiter InMail).", required: true },
900
916
  text: { type: "positional", description: "Opening message text." },
901
- attach: { type: "string", description: "File to attach (repeatable, max 7 MiB each)." },
902
- voice: { type: "string", description: "Voice message file (max 7 MiB)." },
903
- video: { type: "string", description: "Video message file (max 7 MiB)." }
917
+ attach: { type: "string", description: "File to attach (repeatable)." },
918
+ voice: { type: "string", description: "Voice message file." },
919
+ video: { type: "string", description: "Video message file." }
904
920
  },
905
921
  async run({ args }) {
906
922
  const flags = args;
@@ -934,6 +950,10 @@ var recruiterProfileCommand = defineCommand({
934
950
  meta: {
935
951
  name: "profile",
936
952
  description: "Get a Recruiter enriched member profile.",
953
+ risk: "read",
954
+ rules: {
955
+ budget_rows: ["profile_views"]
956
+ },
937
957
  examples: [
938
958
  "curviate core recruiter profile https://www.linkedin.com/in/janesmith"
939
959
  ]
@@ -965,6 +985,10 @@ var recruiterSearchPeopleCommand = defineCommand({
965
985
  meta: {
966
986
  name: "people",
967
987
  description: "Search Recruiter member profiles.",
988
+ risk: "read",
989
+ rules: {
990
+ budget_rows: ["search"]
991
+ },
968
992
  examples: [
969
993
  'curviate core recruiter search people --keywords "staff engineer"',
970
994
  "curviate core recruiter search people --filters-file filters.json"
@@ -1001,6 +1025,7 @@ var recruiterSearchParametersCommand = defineCommand({
1001
1025
  meta: {
1002
1026
  name: "parameters",
1003
1027
  description: "Resolve Recruiter filter parameter IDs (POST, source-scoped).",
1028
+ risk: "read",
1004
1029
  examples: [
1005
1030
  "curviate core recruiter search parameters --source SEARCH --type LOCATION --keywords Berlin"
1006
1031
  ],
@@ -1051,6 +1076,10 @@ var recruiterSearchCommand = defineCommand({
1051
1076
  meta: {
1052
1077
  name: "search",
1053
1078
  description: "Recruiter search operations. Also runs a pasted Recruiter search/talent-pool/applicant URL directly.",
1079
+ risk: "read",
1080
+ rules: {
1081
+ budget_rows: ["search"]
1082
+ },
1054
1083
  examples: [
1055
1084
  'curviate core recruiter search "https://www.linkedin.com/talent/search?searchContextId=YOUR_SEARCH"'
1056
1085
  ]
@@ -1095,6 +1124,7 @@ var recruiterProjectsCommand = defineCommand({
1095
1124
  meta: {
1096
1125
  name: "projects",
1097
1126
  description: "List Recruiter hiring projects.",
1127
+ risk: "read",
1098
1128
  examples: [
1099
1129
  "curviate core recruiter projects",
1100
1130
  "curviate core recruiter projects --all"
@@ -1123,6 +1153,15 @@ var recruiterProjectUpdateCommand = defineCommand({
1123
1153
  meta: {
1124
1154
  name: "update",
1125
1155
  description: "Edit a Recruiter project's config. All fields optional; omitted fields are left unchanged.",
1156
+ risk: "write",
1157
+ rules: {
1158
+ changes: "Changes the fields you pass on a Recruiter project.",
1159
+ visible_to: "Your Recruiter seat and the project's collaborators.",
1160
+ budget_rows: [],
1161
+ retry: "Safe: the same values written again leave the project the same.",
1162
+ undo: "Run it again with the previous values."
1163
+ },
1164
+ errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
1126
1165
  examples: [
1127
1166
  'curviate core recruiter project update PROJECT_ID --name "Staff Engineer 2026"',
1128
1167
  "curviate core recruiter project update PROJECT_ID --visibility PRIVATE"
@@ -1164,6 +1203,7 @@ var recruiterProjectCommand = defineCommand({
1164
1203
  meta: {
1165
1204
  name: "project",
1166
1205
  description: "Get a Recruiter hiring project by ID.",
1206
+ risk: "read",
1167
1207
  examples: [
1168
1208
  "curviate core recruiter project PROJECT_ID"
1169
1209
  ]
@@ -1204,6 +1244,7 @@ var recruiterPipelineCommand = defineCommand({
1204
1244
  meta: {
1205
1245
  name: "pipeline",
1206
1246
  description: "List candidates in a project's pipeline (POST-as-list).",
1247
+ risk: "read",
1207
1248
  examples: [
1208
1249
  "curviate core recruiter pipeline PROJECT_ID",
1209
1250
  "curviate core recruiter pipeline PROJECT_ID --sort-by LAST_MODIFIED"
@@ -1239,6 +1280,15 @@ var recruiterSaveCandidateCommand = defineCommand({
1239
1280
  meta: {
1240
1281
  name: "save-candidate",
1241
1282
  description: "Save a candidate to a project's pipeline at a given stage.",
1283
+ risk: "write",
1284
+ rules: {
1285
+ changes: "Adds the candidate to the project's pipeline at the given stage.",
1286
+ visible_to: "Your Recruiter seat and the project's collaborators.",
1287
+ budget_rows: [],
1288
+ retry: "Read `curviate core recruiter pipeline <project_id>` first.",
1289
+ undo: "Remove the candidate from the pipeline in Recruiter; the CLI has no command for it."
1290
+ },
1291
+ errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
1242
1292
  examples: [
1243
1293
  "curviate core recruiter save-candidate PROJECT_ID --stage-id STAGE_ID --candidate-id CANDIDATE_ID"
1244
1294
  ]
@@ -1272,6 +1322,7 @@ var recruiterJobsCommand = defineCommand({
1272
1322
  meta: {
1273
1323
  name: "jobs",
1274
1324
  description: "List Recruiter job postings.",
1325
+ risk: "read",
1275
1326
  examples: [
1276
1327
  "curviate core recruiter jobs",
1277
1328
  "curviate core recruiter jobs --all"
@@ -1317,6 +1368,15 @@ var recruiterJobCreateCommand = defineCommand({
1317
1368
  meta: {
1318
1369
  name: "create",
1319
1370
  description: "Create a Recruiter job posting draft, opening a brand-new hiring project.",
1371
+ risk: "write",
1372
+ rules: {
1373
+ changes: "Creates a job-posting draft and a new hiring project for it; nothing is published.",
1374
+ visible_to: "Your Recruiter seat, until you publish it.",
1375
+ budget_rows: [],
1376
+ retry: "Not safe: each call creates another project and draft.",
1377
+ undo: "The CLI cannot delete a project or draft: remove them in Recruiter."
1378
+ },
1379
+ errors: { ...AS_ACCOUNT, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
1320
1380
  examples: [
1321
1381
  'curviate core recruiter job create --project-name "Staff Engineer 2026" --file job.json',
1322
1382
  `curviate core recruiter job create --project-name "Staff Engineer 2026" --file - <<'EOF'
@@ -1359,6 +1419,17 @@ var recruiterJobPublishCommand = defineCommand({
1359
1419
  meta: {
1360
1420
  name: "publish",
1361
1421
  description: "Publish a Recruiter job posting draft. PROMOTED/PROMOTED_PLUS spend real money and require --budget-amount, --budget-currency, and --budget-scope.",
1422
+ risk: "high",
1423
+ rules: {
1424
+ changes: "Publishes the draft on LinkedIn; PROMOTED and PROMOTED_PLUS also spend the budget you pass.",
1425
+ visible_to: "Anyone on LinkedIn who can see job postings.",
1426
+ budget_rows: [],
1427
+ retry: "Not safe for a promoted posting: a repeat can spend again. Read `curviate core recruiter project-job budget <project_id> <job_id>` and the posting first.",
1428
+ undo: "`curviate core recruiter job close <project_id> <job_id>` stops applications; money spent is not returned by the CLI.",
1429
+ blast_radius: "One job posting; with PROMOTED or PROMOTED_PLUS, the --budget-amount in --budget-currency."
1430
+ },
1431
+ errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
1432
+ seeAlso: ["curviate core recruiter project-job budget", "curviate core recruiter job close"],
1362
1433
  examples: [
1363
1434
  "curviate core recruiter job publish PROJECT_ID JOB_ID --mode FREE"
1364
1435
  ],
@@ -1398,6 +1469,7 @@ var recruiterApplicantsCommand = defineCommand({
1398
1469
  meta: {
1399
1470
  name: "applicants",
1400
1471
  description: "List applicants in a Recruiter project's talent pool.",
1472
+ risk: "read",
1401
1473
  examples: [
1402
1474
  "curviate core recruiter applicants PROJECT_ID --channel-id CHANNEL_ID"
1403
1475
  ]
@@ -1431,6 +1503,7 @@ var recruiterJobGetCommand = defineCommand({
1431
1503
  meta: {
1432
1504
  name: "get",
1433
1505
  description: "Get a job posting via the Recruiter lens (any public posting, not only your own).",
1506
+ risk: "read",
1434
1507
  examples: [
1435
1508
  "curviate core recruiter job get 4100000000",
1436
1509
  "curviate core recruiter job get https://www.linkedin.com/jobs/view/4100000000"
@@ -1462,6 +1535,17 @@ var recruiterJobCloseCommand = defineCommand({
1462
1535
  meta: {
1463
1536
  name: "close",
1464
1537
  description: "Stop a project's job posting from accepting applications (irreversible once LISTED).",
1538
+ risk: "high",
1539
+ rules: {
1540
+ changes: "Stops the project's job posting from accepting applications.",
1541
+ visible_to: "Anyone viewing the posting: it no longer takes applications.",
1542
+ budget_rows: [],
1543
+ retry: "Read `curviate core recruiter project-job get <project_id>` first: a closed posting has nothing left to close.",
1544
+ undo: "Cannot be undone once the posting is listed.",
1545
+ blast_radius: "One job posting."
1546
+ },
1547
+ errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
1548
+ seeAlso: ["curviate core recruiter project-job get", "curviate core recruiter applicants"],
1465
1549
  examples: [
1466
1550
  "curviate core recruiter job close PROJECT_ID JOB_ID"
1467
1551
  ]
@@ -1509,6 +1593,7 @@ var recruiterProjectJobGetCommand = defineCommand({
1509
1593
  meta: {
1510
1594
  name: "get",
1511
1595
  description: "Get the single job posting attached to a project (404 when none is attached).",
1596
+ risk: "read",
1512
1597
  examples: [
1513
1598
  "curviate core recruiter project-job get PROJECT_ID"
1514
1599
  ]
@@ -1540,6 +1625,15 @@ var recruiterProjectJobCreateCommand = defineCommand({
1540
1625
  meta: {
1541
1626
  name: "create",
1542
1627
  description: "Create a job-posting draft attached to an existing project.",
1628
+ risk: "write",
1629
+ rules: {
1630
+ changes: "Creates a job-posting draft on an existing project; nothing is published.",
1631
+ visible_to: "Your Recruiter seat, until you publish it.",
1632
+ budget_rows: [],
1633
+ retry: "Not safe: each call creates another draft.",
1634
+ undo: "The CLI cannot delete a draft: remove it in Recruiter."
1635
+ },
1636
+ errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
1543
1637
  examples: [
1544
1638
  "curviate core recruiter project-job create PROJECT_ID --file job.json",
1545
1639
  `curviate core recruiter project-job create PROJECT_ID --file - <<'EOF'
@@ -1582,6 +1676,7 @@ var recruiterProjectJobBudgetCommand = defineCommand({
1582
1676
  meta: {
1583
1677
  name: "budget",
1584
1678
  description: "Get pricing to publish a project's job posting.",
1679
+ risk: "read",
1585
1680
  examples: [
1586
1681
  "curviate core recruiter project-job budget PROJECT_ID JOB_ID"
1587
1682
  ]
@@ -1614,6 +1709,15 @@ var recruiterProjectJobUpdateCommand = defineCommand({
1614
1709
  meta: {
1615
1710
  name: "update",
1616
1711
  description: "Apply a partial update to a project's job posting.",
1712
+ risk: "write",
1713
+ rules: {
1714
+ changes: "Changes the fields you pass on the project's job posting.",
1715
+ visible_to: "Your Recruiter seat while it is a draft; anyone who can see the posting once it is published.",
1716
+ budget_rows: [],
1717
+ retry: "Safe: the same values written again leave the posting the same.",
1718
+ undo: "Run it again with the previous values."
1719
+ },
1720
+ errors: { ...AS_ACCOUNT, ...TARGET, LINKEDIN_FEATURE_NOT_SUBSCRIBED: "the Account has no Recruiter subscription." },
1617
1721
  examples: [
1618
1722
  "curviate core recruiter project-job update PROJECT_ID JOB_ID --workplace-type HYBRID",
1619
1723
  `curviate core recruiter project-job update PROJECT_ID JOB_ID --file - <<'EOF'
@@ -1651,6 +1755,7 @@ var recruiterProjectJobCommand = defineCommand({
1651
1755
  meta: {
1652
1756
  name: "project-job",
1653
1757
  description: "The single job posting attached to a Recruiter project.",
1758
+ risk: "read",
1654
1759
  examples: [
1655
1760
  "curviate core recruiter project-job PROJECT_ID"
1656
1761
  ]
@@ -1693,6 +1798,10 @@ var recruiterTalentSearchCommand = defineCommand({
1693
1798
  meta: {
1694
1799
  name: "talent-search",
1695
1800
  description: "Search a project's talent pool.",
1801
+ risk: "read",
1802
+ rules: {
1803
+ budget_rows: ["search"]
1804
+ },
1696
1805
  examples: [
1697
1806
  "curviate core recruiter talent-search PROJECT_ID --channel-id CHANNEL_ID",
1698
1807
  "curviate core recruiter talent-search PROJECT_ID --channel-id CHANNEL_ID --keywords typescript"
@@ -1728,6 +1837,7 @@ var recruiterApplicantResumeCommand = defineCommand({
1728
1837
  meta: {
1729
1838
  name: "resume",
1730
1839
  description: "Download a job applicant's resume.",
1840
+ risk: "read",
1731
1841
  examples: [
1732
1842
  "curviate core recruiter applicant resume PROJECT_ID APPLICANT_ID -o resume.pdf"
1733
1843
  ]
@@ -1766,6 +1876,7 @@ var recruiterApplicantCommand = defineCommand({
1766
1876
  meta: {
1767
1877
  name: "applicant",
1768
1878
  description: "Recruiter job applicant operations.",
1879
+ risk: "read",
1769
1880
  examples: [
1770
1881
  "curviate core recruiter applicant PROJECT_ID APPLICANT_ID"
1771
1882
  ]