@curviate/cli 0.47.0 → 0.48.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 (43) hide show
  1. package/CHANGELOG.md +174 -1
  2. package/README.md +101 -87
  3. package/dist/{account-RFJ63QYL.js → account-WKQHMM7P.js} +39 -29
  4. package/dist/chunk-AYKKXGTR.js +1141 -0
  5. package/dist/{chunk-TC4ZPUWI.js → chunk-CVMSQ3OF.js} +19 -80
  6. package/dist/{chunk-HOQ7EUHJ.js → chunk-FDJMAF7D.js} +1 -0
  7. package/dist/chunk-GQKC6E5K.js +36 -0
  8. package/dist/{chunk-V3MVOVQT.js → chunk-MKGVNDMJ.js} +8 -1
  9. package/dist/chunk-NNV2OYEF.js +23 -0
  10. package/dist/{chunk-UJOTQPL6.js → chunk-OHXYFICP.js} +47 -14
  11. package/dist/{chunk-PD2I5TYC.js → chunk-Q63IIPL2.js} +2 -2
  12. package/dist/chunk-TSOIZBBU.js +41 -0
  13. package/dist/{chunk-ERBYEC5P.js → chunk-Y7K4UBFC.js} +1 -1
  14. package/dist/{chunk-FXYK2GTO.js → chunk-YFXLXION.js} +37 -32
  15. package/dist/chunk-ZYURL5VK.js +83 -0
  16. package/dist/cli.js +76 -97
  17. package/dist/{comment-MCXE7B7V.js → comment-7IQ6ZOJF.js} +27 -22
  18. package/dist/{company-EUUN372H.js → company-RD7RDGSA.js} +55 -50
  19. package/dist/{config-K4G3VSBA.js → config-EYBNYRGK.js} +13 -5
  20. package/dist/{connect-2AL7XVJO.js → connect-HVXT67A6.js} +35 -31
  21. package/dist/core-6XYGUNAY.js +46 -0
  22. package/dist/{doctor-WPYI7X2T.js → doctor-HUXQERLQ.js} +8 -4
  23. package/dist/document-AUUCGST2.js +27 -0
  24. package/dist/{draft-G65DVXT7.js → draft-DFO22K6Q.js} +26 -21
  25. package/dist/examples-64YT5V5K.js +53 -0
  26. package/dist/{feed-HV24WME4.js → feed-JWP6ANPI.js} +13 -9
  27. package/dist/{group-HADXNVJW.js → group-SIQFJEZV.js} +15 -11
  28. package/dist/{inbox-G3EE54OB.js → inbox-MMIMCA5O.js} +21 -17
  29. package/dist/{inboxes-237XOBTP.js → inboxes-RND3D4C7.js} +16 -12
  30. package/dist/{job-LIN6RWD7.js → job-ACFKBLFK.js} +29 -25
  31. package/dist/{login-OHAHNBRW.js → login-ZOB5KVKQ.js} +10 -5
  32. package/dist/{message-U2O2JQSW.js → message-OFK6UVXR.js} +9 -7
  33. package/dist/{notification-3VG32LWM.js → notification-KKGAZU7M.js} +17 -13
  34. package/dist/{post-ECDK2KJL.js → post-A5SBCFB2.js} +33 -28
  35. package/dist/{profile-JOHS6SDW.js → profile-4SOOQZ4K.js} +45 -41
  36. package/dist/{recruiter-7VXEIXN3.js → recruiter-YN73STDP.js} +123 -120
  37. package/dist/{sales-nav-K4BMBH7R.js → sales-nav-JXF5RY2K.js} +38 -32
  38. package/dist/{search-C2UYO6PI.js → search-JAL242A2.js} +58 -48
  39. package/dist/{setup-GYEZFDEN.js → setup-WICWH4JG.js} +13 -8
  40. package/dist/{webhook-KCOQOH7D.js → webhook-UGKVYWBC.js} +34 -36
  41. package/package.json +1 -1
  42. package/dist/chunk-KJ24DIAJ.js +0 -60
  43. package/dist/examples-IJL3A6SZ.js +0 -18
@@ -1,29 +1,28 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- reencodeInvitableFollowers,
4
- reencodeInviteTokenItem,
5
- slimCompany,
6
- slimCompanyInvitableFollowers,
7
- slimSearchJobs,
8
- slimSearchPeople,
9
- slimSearchPosts
10
- } from "./chunk-LCGXJGPB.js";
11
2
  import {
12
3
  sentAsNotice
13
- } from "./chunk-FXYK2GTO.js";
14
- import "./chunk-UWO2D4HW.js";
15
- import "./chunk-HOQ7EUHJ.js";
4
+ } from "./chunk-YFXLXION.js";
16
5
  import {
17
6
  AttachError,
18
7
  readAttachment,
19
8
  toAttachmentPayload
20
9
  } from "./chunk-5I6JJJIV.js";
10
+ import "./chunk-UWO2D4HW.js";
21
11
  import {
22
12
  resolveIdentifier
23
13
  } from "./chunk-UEAX6KUB.js";
24
14
  import {
25
15
  requireAccount
26
- } from "./chunk-PD2I5TYC.js";
16
+ } from "./chunk-Q63IIPL2.js";
17
+ import {
18
+ reencodeInvitableFollowers,
19
+ reencodeInviteTokenItem,
20
+ slimCompany,
21
+ slimCompanyInvitableFollowers,
22
+ slimSearchJobs,
23
+ slimSearchPeople,
24
+ slimSearchPosts
25
+ } from "./chunk-LCGXJGPB.js";
27
26
  import {
28
27
  buildPreviewOutput
29
28
  } from "./chunk-TCUYH5GO.js";
@@ -41,18 +40,24 @@ import {
41
40
  resolveEffectiveConfig,
42
41
  streamAll,
43
42
  writeNdjsonItem
44
- } from "./chunk-V3MVOVQT.js";
43
+ } from "./chunk-MKGVNDMJ.js";
45
44
  import "./chunk-76SWLAZ6.js";
46
45
  import {
47
46
  createClient
48
- } from "./chunk-UJOTQPL6.js";
47
+ } from "./chunk-OHXYFICP.js";
49
48
  import {
50
49
  GLOBAL_FLAGS,
51
50
  READ_SINGLE_FLAGS,
52
51
  WRITE_FLAGS,
53
- readOnly,
52
+ readOnly
53
+ } from "./chunk-CVMSQ3OF.js";
54
+ import {
55
+ DESCRIPTIONS
56
+ } from "./chunk-GQKC6E5K.js";
57
+ import "./chunk-FDJMAF7D.js";
58
+ import {
54
59
  resolveTextOrStdin
55
- } from "./chunk-TC4ZPUWI.js";
60
+ } from "./chunk-ZYURL5VK.js";
56
61
 
57
62
  // src/commands/company.ts
58
63
  import { defineCommand } from "citty";
@@ -512,15 +517,15 @@ var companyEmployeesCommand = defineCommand({
512
517
  name: "employees",
513
518
  description: "List people who currently work at the company.",
514
519
  examples: [
515
- "curviate company employees acmecorp",
516
- 'curviate company employees 1234567 --keywords "machine learning"'
520
+ "curviate core company employees acmecorp",
521
+ 'curviate core company employees 1234567 --keywords "machine learning"'
517
522
  ]
518
523
  },
519
524
  args: {
520
525
  ...readOnly(GLOBAL_FLAGS),
521
526
  id: { type: "positional", description: "Company identifier (URL, slug, or numeric id), a slug/URL is resolved to the numeric id first." },
522
527
  keywords: { type: "string", description: "Free-text keyword filter across employee profile fields." },
523
- location: { type: "string", description: "Opaque location id from `curviate search parameters --type LOCATION`." }
528
+ location: { type: "string", description: "Opaque location id from `curviate core search parameters --type LOCATION`." }
524
529
  },
525
530
  async run({ args }) {
526
531
  const flags = args;
@@ -545,8 +550,8 @@ var companyPostsCommand = defineCommand({
545
550
  name: "posts",
546
551
  description: "List the company's posts.",
547
552
  examples: [
548
- "curviate company posts acmecorp",
549
- "curviate company posts 1234567 --limit 5"
553
+ "curviate core company posts acmecorp",
554
+ "curviate core company posts 1234567 --limit 5"
550
555
  ]
551
556
  },
552
557
  args: {
@@ -576,8 +581,8 @@ var companyJobsCommand = defineCommand({
576
581
  name: "jobs",
577
582
  description: "List the company's open job postings.",
578
583
  examples: [
579
- "curviate company jobs acmecorp",
580
- "curviate company jobs 1234567 --keywords engineer"
584
+ "curviate core company jobs acmecorp",
585
+ "curviate core company jobs 1234567 --keywords engineer"
581
586
  ]
582
587
  },
583
588
  args: {
@@ -606,9 +611,9 @@ var companyJobsCommand = defineCommand({
606
611
  var companyInvitableFollowersCommand = defineCommand({
607
612
  meta: {
608
613
  name: "invitable-followers",
609
- description: "List the account's 1st-degree connections who are eligible to be invited to follow the company page. This is the read that seeds `company follow-invite`. Items carry no name or headline (a wire limitation), so hydrate a candidate via `profile <id>` before deciding who to invite. `invite_token` is always returned as base64 (the raw value can carry binary bytes unsafe to print).",
614
+ description: "List the account's 1st-degree connections who are eligible to be invited to follow the company page. This is the read that seeds `curviate core company follow-invite`. Items carry no name or headline (a wire limitation), so hydrate a candidate via `curviate core profile <id>` before deciding who to invite. `invite_token` is always returned as base64 (the raw value can carry binary bytes unsafe to print).",
610
615
  examples: [
611
- "curviate company invitable-followers 1234567"
616
+ "curviate core company invitable-followers 1234567"
612
617
  ]
613
618
  },
614
619
  args: {
@@ -636,9 +641,9 @@ var companyInvitableFollowersCommand = defineCommand({
636
641
  var companyFollowInviteCommand = defineCommand({
637
642
  meta: {
638
643
  name: "follow-invite",
639
- description: "Invite the account's 1st-degree connections to follow the administered company page. Write, admin-gated (the account must administer the page with invite rights). Pass the AC... member ids from `company invitable-followers`, one --invitee per invitee. All-or-nothing: for an all-valid request you get one outcome per invitee, in request order (invited/already_invited/ineligible/not_found); if any invitee id is invalid the whole request rejects with a 404, not a partial result. Re-inviting an already-invited member is a safe no-op (the same invitation id, never a duplicate).",
644
+ description: "Invite the account's 1st-degree connections to follow the administered company page. Write, admin-gated (the account must administer the page with invite rights). Pass the AC... member ids from `curviate core company invitable-followers`, one --invitee per invitee. All-or-nothing: for an all-valid request you get one outcome per invitee, in request order (invited/already_invited/ineligible/not_found); if any invitee id is invalid the whole request rejects with a 404, not a partial result. Re-inviting an already-invited member is a safe no-op (the same invitation id, never a duplicate).",
640
645
  examples: [
641
- "curviate company follow-invite 1234567 --invitee ACoAAB1cDeFgHiJkLmNoP"
646
+ "curviate core company follow-invite 1234567 --invitee ACoAAB1cDeFgHiJkLmNoP"
642
647
  ]
643
648
  },
644
649
  args: {
@@ -646,7 +651,7 @@ var companyFollowInviteCommand = defineCommand({
646
651
  id: { type: "positional", description: "Company identifier (URL, slug, or numeric id), resolved to the numeric id first, including under --preview." },
647
652
  invitee: {
648
653
  type: "string",
649
- description: "AC... member id to invite (from `company invitable-followers`). Repeatable, at least one required, max 50 per request.",
654
+ description: "AC... member id to invite (from `curviate core company invitable-followers`). Repeatable, at least one required, max 50 per request.",
650
655
  required: true
651
656
  }
652
657
  },
@@ -673,7 +678,7 @@ var companyManagedCommand = defineCommand({
673
678
  name: "managed",
674
679
  description: "List the company pages the connected account administers. An empty result is valid, the account administers no pages.",
675
680
  examples: [
676
- "curviate company managed"
681
+ "curviate core company managed"
677
682
  ]
678
683
  },
679
684
  args: { ...readOnly(GLOBAL_FLAGS) },
@@ -698,10 +703,10 @@ var companyManagedCommand = defineCommand({
698
703
  var companyFollowersCommand = defineCommand({
699
704
  meta: {
700
705
  name: "followers",
701
- description: "List a company page's followers, newest first. Admin-gated: the account must administer the page (see `company managed`).",
706
+ description: "List a company page's followers, newest first. Admin-gated: the account must administer the page (see `curviate core company managed`).",
702
707
  examples: [
703
- "curviate company followers 1234567",
704
- "curviate company followers 1234567 --all"
708
+ "curviate core company followers 1234567",
709
+ "curviate core company followers 1234567 --all"
705
710
  ]
706
711
  },
707
712
  args: {
@@ -731,7 +736,7 @@ var companyChatsCommand = defineCommand({
731
736
  name: "chats",
732
737
  description: "List the conversations in a company page's admin message inbox, newest-activity-first. Admin-gated. Beta.",
733
738
  examples: [
734
- "curviate company chats 1234567"
739
+ "curviate core company chats 1234567"
735
740
  ]
736
741
  },
737
742
  args: {
@@ -761,13 +766,13 @@ var companyChatCommand = defineCommand({
761
766
  name: "chat",
762
767
  description: "Retrieve one conversation from a company page's admin inbox. Admin-gated.",
763
768
  examples: [
764
- "curviate company chat 1234567 2-YTQ3ODU3Njgt"
769
+ "curviate core company chat 1234567 2-YTQ3ODU3Njgt"
765
770
  ]
766
771
  },
767
772
  args: {
768
773
  ...readOnly(READ_SINGLE_FLAGS),
769
774
  id: { type: "positional", description: "Company identifier (URL, slug, or numeric id), a slug/URL is resolved to the numeric id first." },
770
- chatId: { type: "positional", description: "The 2-... chat id from `company chats`, passed through verbatim." }
775
+ chatId: { type: "positional", description: "The 2-... chat id from `curviate core company chats`, passed through verbatim." }
771
776
  },
772
777
  async run({ args }) {
773
778
  const flags = args;
@@ -792,13 +797,13 @@ var companyMessagesCommand = defineCommand({
792
797
  name: "messages",
793
798
  description: "List a company-inbox conversation's messages, newest first. Admin-gated.",
794
799
  examples: [
795
- "curviate company messages 1234567 2-YTQ3ODU3Njgt"
800
+ "curviate core company messages 1234567 2-YTQ3ODU3Njgt"
796
801
  ]
797
802
  },
798
803
  args: {
799
804
  ...readOnly(GLOBAL_FLAGS),
800
805
  id: { type: "positional", description: "Company identifier (URL, slug, or numeric id), a slug/URL is resolved to the numeric id first." },
801
- chatId: { type: "positional", description: "The 2-... chat id from `company chats`, passed through verbatim." }
806
+ chatId: { type: "positional", description: "The 2-... chat id from `curviate core company chats`, passed through verbatim." }
802
807
  },
803
808
  async run({ args }) {
804
809
  const flags = args;
@@ -821,16 +826,16 @@ var companyMessagesCommand = defineCommand({
821
826
  var companyMessageCommand = defineCommand({
822
827
  meta: {
823
828
  name: "message",
824
- description: "Retrieve one message from a company-inbox conversation. Admin-gated. See also: `company reply` (send).",
829
+ description: "Retrieve one message from a company-inbox conversation. Admin-gated. See also: `curviate core company reply` (send).",
825
830
  examples: [
826
- "curviate company message 1234567 2-YTQ3ODU3Njgt MSG_ID"
831
+ "curviate core company message 1234567 2-YTQ3ODU3Njgt MSG_ID"
827
832
  ]
828
833
  },
829
834
  args: {
830
835
  ...readOnly(READ_SINGLE_FLAGS),
831
836
  id: { type: "positional", description: "Company identifier (URL, slug, or numeric id), a slug/URL is resolved to the numeric id first." },
832
- chatId: { type: "positional", description: "The 2-... chat id from `company chats`, passed through verbatim." },
833
- messageId: { type: "positional", description: "The message id from `company messages`, passed through verbatim." }
837
+ chatId: { type: "positional", description: "The 2-... chat id from `curviate core company chats`, passed through verbatim." },
838
+ messageId: { type: "positional", description: "The message id from `curviate core company messages`, passed through verbatim." }
834
839
  },
835
840
  async run({ args }) {
836
841
  const flags = args;
@@ -855,8 +860,8 @@ var companySearchChatsCommand = defineCommand({
855
860
  name: "search-chats",
856
861
  description: "Search or filter a company page's admin inbox. Exactly one mode per call: free-text <query>, --topic, or --unread; mutually exclusive, enforced server-side. Admin-gated. Beta.",
857
862
  examples: [
858
- "curviate company search-chats 1234567 sophie",
859
- "curviate company search-chats 1234567 sophie --unread"
863
+ "curviate core company search-chats 1234567 sophie",
864
+ "curviate core company search-chats 1234567 sophie --unread"
860
865
  ]
861
866
  },
862
867
  args: {
@@ -887,9 +892,9 @@ var companySearchChatsCommand = defineCommand({
887
892
  var companyReplyCommand = defineCommand({
888
893
  meta: {
889
894
  name: "reply",
890
- description: "Reply to a company-inbox conversation, as the page (write, admin-gated: the account must administer the page). Takes the normal 2-... chat id from `company chats`; the endpoint resolves the page mailbox internally from the company id. Reply-only, this cannot start a new conversation on the page's behalf. See also: `company chats` (the read that returns the chat id) and `message send` (the personal equivalent).",
895
+ description: "Reply to a company-inbox conversation, as the page (write, admin-gated: the account must administer the page). Takes the normal 2-... chat id from `curviate core company chats`; the endpoint resolves the page mailbox internally from the company id. Reply-only, this cannot start a new conversation on the page's behalf. See also: `curviate core company chats` (the read that returns the chat id) and `curviate core message send` (the personal equivalent).",
891
896
  examples: [
892
- 'curviate company reply 1234567 2-YTQ3ODU3Njgt "Thanks for reaching out, happy to help."'
897
+ 'curviate core company reply 1234567 2-YTQ3ODU3Njgt "Thanks for reaching out, happy to help."'
893
898
  ]
894
899
  },
895
900
  args: {
@@ -897,7 +902,7 @@ var companyReplyCommand = defineCommand({
897
902
  id: { type: "positional", description: "Company identifier (URL, slug, or numeric id), resolved to the numeric id first, including under --preview." },
898
903
  chatId: {
899
904
  type: "positional",
900
- description: "The 2-... chat id from `company chats`, passed through verbatim (no client-side check)."
905
+ description: "The 2-... chat id from `curviate core company chats`, passed through verbatim (no client-side check)."
901
906
  },
902
907
  text: { type: "positional", stdinArg: true, description: "Reply text. Pass - to read from stdin (e.g. via heredoc or pipe)." },
903
908
  attach: { type: "string", description: "File to attach (repeatable)." }
@@ -923,10 +928,10 @@ var companyReplyCommand = defineCommand({
923
928
  var companyCommand = defineCommand({
924
929
  meta: {
925
930
  name: "company",
926
- description: "Fetch a company profile by URL, slug, or numeric id, and its sub-resources.",
931
+ description: DESCRIPTIONS.company,
927
932
  examples: [
928
- "curviate company acmecorp",
929
- "curviate company https://www.linkedin.com/company/acmecorp"
933
+ "curviate core company acmecorp",
934
+ "curviate core company https://www.linkedin.com/company/acmecorp"
930
935
  ]
931
936
  },
932
937
  args: {
@@ -12,10 +12,14 @@ import {
12
12
  setActiveProfile,
13
13
  updateProfileField,
14
14
  withoutUserinfo
15
- } from "./chunk-UJOTQPL6.js";
15
+ } from "./chunk-OHXYFICP.js";
16
16
  import {
17
17
  GLOBAL_FLAGS
18
- } from "./chunk-TC4ZPUWI.js";
18
+ } from "./chunk-CVMSQ3OF.js";
19
+ import {
20
+ DESCRIPTIONS
21
+ } from "./chunk-GQKC6E5K.js";
22
+ import "./chunk-ZYURL5VK.js";
19
23
 
20
24
  // src/commands/config.ts
21
25
  import { defineCommand } from "citty";
@@ -31,7 +35,7 @@ function redactKeyForDisplay(key) {
31
35
  var configCommand = defineCommand({
32
36
  meta: {
33
37
  name: "config",
34
- description: "Manage CLI profiles and settings."
38
+ description: DESCRIPTIONS.config
35
39
  },
36
40
  subCommands: {
37
41
  list: defineCommand({
@@ -114,8 +118,10 @@ var configCommand = defineCommand({
114
118
  "curviate config path"
115
119
  ]
116
120
  },
117
- async run() {
118
- process.stdout.write(getConfigPath() + "\n");
121
+ // `--json` (a wrapper prepends it to every call) gets JSON; plain stays a bare path for `$(...)`.
122
+ args: { json: GLOBAL_FLAGS.json },
123
+ async run({ args }) {
124
+ process.stdout.write((args.json ? JSON.stringify({ config_path: getConfigPath() }) : getConfigPath()) + "\n");
119
125
  }
120
126
  }),
121
127
  use: defineCommand({
@@ -127,6 +133,7 @@ var configCommand = defineCommand({
127
133
  ]
128
134
  },
129
135
  args: {
136
+ json: GLOBAL_FLAGS.json,
130
137
  name: { type: "positional", description: "Profile name to activate." }
131
138
  },
132
139
  async run({ args }) {
@@ -153,6 +160,7 @@ var configCommand = defineCommand({
153
160
  ]
154
161
  },
155
162
  args: {
163
+ json: GLOBAL_FLAGS.json,
156
164
  old: { type: "positional", description: "Current profile name." },
157
165
  new: { type: "positional", description: "New profile name." }
158
166
  },
@@ -1,19 +1,16 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ resolveIdentifier
4
+ } from "./chunk-UEAX6KUB.js";
5
+ import {
6
+ requireAccount
7
+ } from "./chunk-Q63IIPL2.js";
2
8
  import {
3
9
  slimInviteReceived,
4
10
  slimInviteReceivedItem,
5
11
  slimInviteSent,
6
12
  slimInviteSentItem
7
13
  } from "./chunk-LCGXJGPB.js";
8
- import {
9
- nearestSubcommand
10
- } from "./chunk-HOQ7EUHJ.js";
11
- import {
12
- resolveIdentifier
13
- } from "./chunk-UEAX6KUB.js";
14
- import {
15
- requireAccount
16
- } from "./chunk-PD2I5TYC.js";
17
14
  import {
18
15
  buildPreviewOutput
19
16
  } from "./chunk-TCUYH5GO.js";
@@ -29,16 +26,23 @@ import {
29
26
  resolveEffectiveConfig,
30
27
  streamAll,
31
28
  writeNdjsonItem
32
- } from "./chunk-V3MVOVQT.js";
29
+ } from "./chunk-MKGVNDMJ.js";
33
30
  import "./chunk-76SWLAZ6.js";
34
31
  import {
35
32
  createClient
36
- } from "./chunk-UJOTQPL6.js";
33
+ } from "./chunk-OHXYFICP.js";
37
34
  import {
38
35
  GLOBAL_FLAGS,
39
36
  WRITE_FLAGS,
40
37
  readOnly
41
- } from "./chunk-TC4ZPUWI.js";
38
+ } from "./chunk-CVMSQ3OF.js";
39
+ import {
40
+ DESCRIPTIONS
41
+ } from "./chunk-GQKC6E5K.js";
42
+ import {
43
+ nearestSubcommand
44
+ } from "./chunk-FDJMAF7D.js";
45
+ import "./chunk-ZYURL5VK.js";
42
46
 
43
47
  // src/commands/connect.ts
44
48
  import { defineCommand } from "citty";
@@ -258,10 +262,10 @@ async function runConnectCancel(client, flags, out) {
258
262
  var connectSentCommand = defineCommand({
259
263
  meta: {
260
264
  name: "sent",
261
- description: "Returns pending sent invitations only. Accepted and declined invitations are not returned (LinkedIn API limitation). Use `id` with `connect cancel`; use `user.id` (native member URN; the sent-variant carries no public slug) to identify the recipient. `created_at` is the platform's own ISO-8601 timestamp (not an approximation). No total count is available; use `connect sent --all` and count client-side. A very recently sent invitation may take a few minutes to appear here (LinkedIn-side indexing).",
265
+ description: "Returns pending sent invitations only. Accepted and declined invitations are not returned (LinkedIn API limitation). Use `id` with `curviate core connect cancel`; use `user.id` (native member URN; the sent-variant carries no public slug) to identify the recipient. `created_at` is the platform's own ISO-8601 timestamp (not an approximation). No total count is available; use `curviate core connect sent --all` and count client-side. A very recently sent invitation may take a few minutes to appear here (LinkedIn-side indexing).",
262
266
  examples: [
263
- "curviate connect sent",
264
- "curviate connect sent --all"
267
+ "curviate core connect sent",
268
+ "curviate core connect sent --all"
265
269
  ]
266
270
  },
267
271
  args: { ...readOnly(GLOBAL_FLAGS) },
@@ -286,10 +290,10 @@ var connectSentCommand = defineCommand({
286
290
  var connectReceivedCommand = defineCommand({
287
291
  meta: {
288
292
  name: "received",
289
- description: "Returns pending received invitations only. Already-handled invitations are not returned. The `user.*` fields (`public_identifier`, `display_name`, `first_name`, `last_name`) identify who sent the request. Use the `id` field with `connect accept` or `connect decline`. A very recently received invitation may take a few minutes to appear here (LinkedIn-side indexing).",
293
+ description: "Returns pending received invitations only. Already-handled invitations are not returned. The `user.*` fields (`public_identifier`, `display_name`, `first_name`, `last_name`) identify who sent the request. Use the `id` field with `curviate core connect accept` or `curviate core connect decline`. A very recently received invitation may take a few minutes to appear here (LinkedIn-side indexing).",
290
294
  examples: [
291
- "curviate connect received",
292
- "curviate connect received --json"
295
+ "curviate core connect received",
296
+ "curviate core connect received --json"
293
297
  ]
294
298
  },
295
299
  args: { ...readOnly(GLOBAL_FLAGS) },
@@ -316,14 +320,14 @@ var connectAcceptCommand = defineCommand({
316
320
  name: "accept",
317
321
  description: "Accept a received invitation.",
318
322
  examples: [
319
- "curviate connect accept INVITATION_ID"
323
+ "curviate core connect accept INVITATION_ID"
320
324
  ]
321
325
  },
322
326
  args: {
323
327
  ...WRITE_FLAGS,
324
328
  id: {
325
329
  type: "positional",
326
- description: "Invitation id to accept. Use the `id` field from `connect received`."
330
+ description: "Invitation id to accept. Use the `id` field from `curviate core connect received`."
327
331
  }
328
332
  },
329
333
  async run({ args }) {
@@ -349,14 +353,14 @@ var connectDeclineCommand = defineCommand({
349
353
  name: "decline",
350
354
  description: "Decline a received invitation.",
351
355
  examples: [
352
- "curviate connect decline INVITATION_ID"
356
+ "curviate core connect decline INVITATION_ID"
353
357
  ]
354
358
  },
355
359
  args: {
356
360
  ...WRITE_FLAGS,
357
361
  id: {
358
362
  type: "positional",
359
- description: "Invitation id to decline. Use the `id` field from `connect received`."
363
+ description: "Invitation id to decline. Use the `id` field from `curviate core connect received`."
360
364
  }
361
365
  },
362
366
  async run({ args }) {
@@ -382,7 +386,7 @@ var connectCancelCommand = defineCommand({
382
386
  name: "cancel",
383
387
  description: "Cancel a sent invitation.",
384
388
  examples: [
385
- "curviate connect cancel INVITATION_ID"
389
+ "curviate core connect cancel INVITATION_ID"
386
390
  ]
387
391
  },
388
392
  args: {
@@ -408,15 +412,15 @@ var connectCancelCommand = defineCommand({
408
412
  }
409
413
  });
410
414
  var CONNECT_SUBCOMMANDS = ["sent", "received", "accept", "decline", "cancel"];
411
- var CONNECT_USAGE = "Usage: curviate connect <id> [--note <text>]\n curviate connect sent\n curviate connect received\n curviate connect accept <invitation_id>\n curviate connect decline <invitation_id>\n curviate connect cancel <invitation_id>\n";
415
+ var CONNECT_USAGE = "Usage: curviate core connect <id> [--note <text>]\n curviate core connect sent\n curviate core connect received\n curviate core connect accept <invitation_id>\n curviate core connect decline <invitation_id>\n curviate core connect cancel <invitation_id>\n";
412
416
  function guardBareConnectForm(id, out) {
413
417
  const suggestion = nearestSubcommand(id, [...CONNECT_SUBCOMMANDS]);
414
418
  if (suggestion === null) return;
415
419
  out.stderr.write(
416
- `error: \`${id}\` looks like a mistyped \`${suggestion}\` subcommand, and \`curviate connect <id>\` SENDS a connection invitation, so this is refused rather than guessed.
420
+ `error: \`${id}\` looks like a mistyped \`${suggestion}\` subcommand, and \`curviate core connect <id>\` SENDS a connection invitation, so this is refused rather than guessed.
417
421
  `
418
422
  );
419
- out.stderr.write(`hint: did you mean \`curviate connect ${suggestion}\`?
423
+ out.stderr.write(`hint: did you mean \`curviate core connect ${suggestion}\`?
420
424
  `);
421
425
  out.stderr.write(
422
426
  `hint: if \`${id}\` really is the profile you meant, pass the full profile URL (https://www.linkedin.com/in/${id}) or the provider id instead.
@@ -428,22 +432,22 @@ function guardBareConnectForm(id, out) {
428
432
  var connectCommand = defineCommand({
429
433
  meta: {
430
434
  name: "connect",
431
- description: "Send or manage connection invitations. Connection requests may take 10-30 seconds to appear in the recipient's received list (LinkedIn propagation delay).",
435
+ description: DESCRIPTIONS.connect,
432
436
  examples: [
433
- "curviate connect janesmith",
434
- 'curviate connect https://www.linkedin.com/in/janesmith --note "Enjoyed your talk on agents, would love to connect."'
437
+ "curviate core connect janesmith",
438
+ 'curviate core connect https://www.linkedin.com/in/janesmith --note "Enjoyed your talk on agents, would love to connect."'
435
439
  ]
436
440
  },
437
441
  args: {
438
442
  ...WRITE_FLAGS,
439
443
  id: {
440
444
  type: "positional",
441
- description: "Recipient's LinkedIn URL, public slug, or provider_id (ACoAAA... from `curviate profile`). LinkedIn URN (`urn:li:member:N`) also accepted but the numeric member ID is not exposed by this API.",
445
+ description: "Recipient's LinkedIn URL, public slug, or provider_id (ACoAAA... from `curviate core profile`). LinkedIn URN (`urn:li:member:N`) also accepted but the numeric member ID is not exposed by this API.",
442
446
  required: false
443
447
  },
444
448
  note: {
445
449
  type: "string",
446
- description: "Personalized message shown to the recipient alongside the connection request (<=300 chars; LinkedIn cap). Omit to send a generic note. Personalized messages increase acceptance rates."
450
+ description: "Note shown with the invitation. Up to 300 characters on LinkedIn Premium; LinkedIn allows 200 on a free account and a note on about 5 invitations a month (budget row `connection_requests_with_note`, see `curviate account get`). Omit it to send the invitation without a note."
447
451
  }
448
452
  },
449
453
  subCommands: {
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ DESCRIPTIONS,
4
+ lazy
5
+ } from "./chunk-GQKC6E5K.js";
6
+
7
+ // src/commands/core.ts
8
+ import { defineCommand } from "citty";
9
+ var coreCommand = defineCommand({
10
+ meta: {
11
+ name: "core",
12
+ description: DESCRIPTIONS.core,
13
+ rules: {
14
+ notes: [
15
+ "Writes reach LinkedIn immediately and are seen by the people they touch.",
16
+ "A retry after a timeout can repeat a write: requests carry no idempotency key. Read the current state before retrying.",
17
+ "Budget rows, ceilings and what is left: `curviate account get <account_id>`."
18
+ ]
19
+ }
20
+ },
21
+ subCommands: {
22
+ profile: lazy("profile", () => import("./profile-4SOOQZ4K.js").then((m) => m.profileCommand)),
23
+ company: lazy("company", () => import("./company-RD7RDGSA.js").then((m) => m.companyCommand)),
24
+ job: lazy("job", () => import("./job-ACFKBLFK.js").then((m) => m.jobCommand)),
25
+ connect: lazy("connect", () => import("./connect-HVXT67A6.js").then((m) => m.connectCommand)),
26
+ search: lazy("search", () => import("./search-JAL242A2.js").then((m) => m.searchCommand)),
27
+ inbox: lazy("inbox", () => import("./inbox-MMIMCA5O.js").then((m) => m.inboxCommand)),
28
+ inboxes: lazy("inboxes", () => import("./inboxes-RND3D4C7.js").then((m) => m.inboxesCommand)),
29
+ message: lazy("message", () => import("./message-OFK6UVXR.js").then((m) => m.messageCommand)),
30
+ post: lazy("post", () => import("./post-A5SBCFB2.js").then((m) => m.postCommand)),
31
+ comment: lazy("comment", () => import("./comment-7IQ6ZOJF.js").then((m) => m.commentCommand)),
32
+ "sales-nav": lazy("sales-nav", () => import("./sales-nav-JXF5RY2K.js").then((m) => m.salesNavCommand)),
33
+ recruiter: lazy("recruiter", () => import("./recruiter-YN73STDP.js").then((m) => m.recruiterCommand)),
34
+ group: lazy("group", () => import("./group-SIQFJEZV.js").then((m) => m.groupCommand)),
35
+ feed: lazy("feed", () => import("./feed-JWP6ANPI.js").then((m) => m.feedCommand)),
36
+ notification: lazy("notification", () => import("./notification-KKGAZU7M.js").then((m) => m.notificationCommand)),
37
+ draft: lazy("draft", () => import("./draft-DFO22K6Q.js").then((m) => m.draftCommand))
38
+ },
39
+ async run() {
40
+ const { showHelp } = await import("./examples-64YT5V5K.js");
41
+ await showHelp(coreCommand, ["curviate", "core"]);
42
+ }
43
+ });
44
+ export {
45
+ coreCommand
46
+ };
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readablePage,
4
4
  resolveEffectiveConfig
5
- } from "./chunk-V3MVOVQT.js";
5
+ } from "./chunk-MKGVNDMJ.js";
6
6
  import {
7
7
  getExitCode
8
8
  } from "./chunk-76SWLAZ6.js";
@@ -12,10 +12,14 @@ import {
12
12
  isPlainObject,
13
13
  readConfigFile,
14
14
  withoutUserinfo
15
- } from "./chunk-UJOTQPL6.js";
15
+ } from "./chunk-OHXYFICP.js";
16
16
  import {
17
17
  GLOBAL_FLAGS
18
- } from "./chunk-TC4ZPUWI.js";
18
+ } from "./chunk-CVMSQ3OF.js";
19
+ import {
20
+ DESCRIPTIONS
21
+ } from "./chunk-GQKC6E5K.js";
22
+ import "./chunk-ZYURL5VK.js";
19
23
 
20
24
  // src/commands/doctor.ts
21
25
  import { defineCommand } from "citty";
@@ -170,7 +174,7 @@ function renderHuman(report, io) {
170
174
  var doctorCommand = defineCommand({
171
175
  meta: {
172
176
  name: "doctor",
173
- description: "Check that this machine can call the API: config, credential source, workspace, reachability and connected accounts.",
177
+ description: DESCRIPTIONS.doctor,
174
178
  examples: [
175
179
  "curviate doctor",
176
180
  "curviate doctor --json"
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ ANNOTATIONS,
4
+ ENFORCED,
5
+ MAX_DOCUMENT_BYTES,
6
+ documentSchema,
7
+ parseDocument,
8
+ readFileFlag,
9
+ readStdinCapped,
10
+ renderDocument,
11
+ reportIssues,
12
+ validate
13
+ } from "./chunk-AYKKXGTR.js";
14
+ import "./chunk-FDJMAF7D.js";
15
+ import "./chunk-ZYURL5VK.js";
16
+ export {
17
+ ANNOTATIONS,
18
+ ENFORCED,
19
+ MAX_DOCUMENT_BYTES,
20
+ documentSchema,
21
+ parseDocument,
22
+ readFileFlag,
23
+ readStdinCapped,
24
+ renderDocument,
25
+ reportIssues,
26
+ validate
27
+ };