@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.
- package/CHANGELOG.md +231 -1
- package/README.md +136 -88
- package/dist/{account-RFJ63QYL.js → account-2BH2Q6VG.js} +41 -31
- package/dist/chunk-3RCW7URJ.js +41 -0
- package/dist/{chunk-UJOTQPL6.js → chunk-5ZGTU4VD.js} +47 -14
- package/dist/chunk-D2S5OCYU.js +38 -0
- package/dist/{chunk-HOQ7EUHJ.js → chunk-FDJMAF7D.js} +1 -0
- package/dist/{chunk-ERBYEC5P.js → chunk-JYKYD57J.js} +1 -1
- package/dist/chunk-MGB6FE4A.js +58 -0
- package/dist/chunk-NNV2OYEF.js +23 -0
- package/dist/{chunk-76SWLAZ6.js → chunk-RXWODUWA.js} +43 -1
- package/dist/{chunk-V3MVOVQT.js → chunk-SA2QHAXG.js} +8 -1
- package/dist/chunk-TEAWYLPO.js +1493 -0
- package/dist/{chunk-PD2I5TYC.js → chunk-V7FJWTZW.js} +3 -3
- package/dist/{chunk-TC4ZPUWI.js → chunk-Y7MZZRYR.js} +21 -80
- package/dist/{chunk-FXYK2GTO.js → chunk-Z7OQSWBD.js} +38 -33
- package/dist/chunk-ZYURL5VK.js +83 -0
- package/dist/cli.js +79 -98
- package/dist/{comment-MCXE7B7V.js → comment-MRDPDA33.js} +29 -24
- package/dist/{company-EUUN372H.js → company-2AEHSGHA.js} +57 -52
- package/dist/{config-K4G3VSBA.js → config-NRBKHXES.js} +13 -5
- package/dist/{connect-2AL7XVJO.js → connect-4XEBV5V3.js} +42 -38
- package/dist/core-RGU2SCBN.js +46 -0
- package/dist/{doctor-WPYI7X2T.js → doctor-BZ4DA7DV.js} +9 -5
- package/dist/document-RKHRWXNT.js +27 -0
- package/dist/{draft-G65DVXT7.js → draft-C5N6EOO5.js} +27 -22
- package/dist/enrollment-BNQOUKI7.js +472 -0
- package/dist/examples-NIMSIXMV.js +53 -0
- package/dist/{exit-codes-AW6KHDDN.js → exit-codes-TLMKTLRI.js} +1 -1
- package/dist/{feed-HV24WME4.js → feed-DFUU7SUJ.js} +15 -11
- package/dist/{group-HADXNVJW.js → group-CSD2OWOZ.js} +17 -13
- package/dist/{inbox-G3EE54OB.js → inbox-SNSPWI7J.js} +23 -19
- package/dist/{inboxes-237XOBTP.js → inboxes-RIRHPS4H.js} +18 -14
- package/dist/{job-LIN6RWD7.js → job-6PNXXZNF.js} +31 -27
- package/dist/{login-OHAHNBRW.js → login-Y7JBAHCW.js} +10 -5
- package/dist/{message-U2O2JQSW.js → message-2IK4MBBG.js} +10 -8
- package/dist/motion-7ATUXO6R.js +946 -0
- package/dist/{notification-3VG32LWM.js → notification-VYK5NDEB.js} +19 -15
- package/dist/{post-ECDK2KJL.js → post-AN6T2OJF.js} +35 -30
- package/dist/{profile-JOHS6SDW.js → profile-UQY64642.js} +46 -42
- package/dist/{recruiter-7VXEIXN3.js → recruiter-OY4RN5HH.js} +122 -119
- package/dist/{sales-nav-K4BMBH7R.js → sales-nav-KLODLYMW.js} +36 -30
- package/dist/{search-C2UYO6PI.js → search-NWP5S6CF.js} +68 -58
- package/dist/{setup-GYEZFDEN.js → setup-YPPFLH2N.js} +14 -9
- package/dist/{webhook-KCOQOH7D.js → webhook-OHKBL3YS.js} +51 -55
- package/package.json +2 -2
- package/dist/chunk-KJ24DIAJ.js +0 -60
- 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-
|
|
14
|
-
import "./chunk-UWO2D4HW.js";
|
|
15
|
-
import "./chunk-HOQ7EUHJ.js";
|
|
4
|
+
} from "./chunk-Z7OQSWBD.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-
|
|
16
|
+
} from "./chunk-V7FJWTZW.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-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-SA2QHAXG.js";
|
|
44
|
+
import "./chunk-RXWODUWA.js";
|
|
46
45
|
import {
|
|
47
46
|
createClient
|
|
48
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
49
48
|
import {
|
|
50
49
|
GLOBAL_FLAGS,
|
|
51
50
|
READ_SINGLE_FLAGS,
|
|
52
51
|
WRITE_FLAGS,
|
|
53
|
-
readOnly
|
|
52
|
+
readOnly
|
|
53
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
54
|
+
import {
|
|
55
|
+
DESCRIPTIONS
|
|
56
|
+
} from "./chunk-D2S5OCYU.js";
|
|
57
|
+
import "./chunk-FDJMAF7D.js";
|
|
58
|
+
import {
|
|
54
59
|
resolveTextOrStdin
|
|
55
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ZYURL5VK.js";
|
|
56
61
|
|
|
57
62
|
// src/commands/company.ts
|
|
58
63
|
import { defineCommand } from "citty";
|
|
@@ -86,7 +91,7 @@ async function resolveCompanyId(ns, raw) {
|
|
|
86
91
|
async function handleSdkError(err, outOpts, out) {
|
|
87
92
|
const { CurviateError } = await import("@curviate/sdk");
|
|
88
93
|
if (err instanceof CurviateError) {
|
|
89
|
-
const { getExitCode } = await import("./exit-codes-
|
|
94
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
90
95
|
renderError(err, outOpts, out);
|
|
91
96
|
process.exit(getExitCode(err));
|
|
92
97
|
}
|
|
@@ -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:
|
|
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-
|
|
15
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
16
16
|
import {
|
|
17
17
|
GLOBAL_FLAGS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
19
|
+
import {
|
|
20
|
+
DESCRIPTIONS
|
|
21
|
+
} from "./chunk-D2S5OCYU.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:
|
|
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
|
-
|
|
118
|
-
|
|
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-V7FJWTZW.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-
|
|
33
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-SA2QHAXG.js";
|
|
30
|
+
import "./chunk-RXWODUWA.js";
|
|
34
31
|
import {
|
|
35
32
|
createClient
|
|
36
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
37
34
|
import {
|
|
38
35
|
GLOBAL_FLAGS,
|
|
39
36
|
WRITE_FLAGS,
|
|
40
37
|
readOnly
|
|
41
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
39
|
+
import {
|
|
40
|
+
DESCRIPTIONS
|
|
41
|
+
} from "./chunk-D2S5OCYU.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";
|
|
@@ -82,7 +86,7 @@ async function runConnectSend(client, flags, out) {
|
|
|
82
86
|
} catch (err) {
|
|
83
87
|
const { CurviateError } = await import("@curviate/sdk");
|
|
84
88
|
if (err instanceof CurviateError) {
|
|
85
|
-
const { getExitCode } = await import("./exit-codes-
|
|
89
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
86
90
|
renderError(err, outOpts, out);
|
|
87
91
|
process.exit(getExitCode(err));
|
|
88
92
|
}
|
|
@@ -121,7 +125,7 @@ async function runConnectSent(client, flags, out) {
|
|
|
121
125
|
} catch (err) {
|
|
122
126
|
const { CurviateError } = await import("@curviate/sdk");
|
|
123
127
|
if (err instanceof CurviateError) {
|
|
124
|
-
const { getExitCode } = await import("./exit-codes-
|
|
128
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
125
129
|
renderError(err, outOpts, out);
|
|
126
130
|
process.exit(getExitCode(err));
|
|
127
131
|
}
|
|
@@ -160,7 +164,7 @@ async function runConnectReceived(client, flags, out) {
|
|
|
160
164
|
} catch (err) {
|
|
161
165
|
const { CurviateError } = await import("@curviate/sdk");
|
|
162
166
|
if (err instanceof CurviateError) {
|
|
163
|
-
const { getExitCode } = await import("./exit-codes-
|
|
167
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
164
168
|
renderError(err, outOpts, out);
|
|
165
169
|
process.exit(getExitCode(err));
|
|
166
170
|
}
|
|
@@ -189,7 +193,7 @@ async function runConnectAccept(client, flags, out) {
|
|
|
189
193
|
} catch (err) {
|
|
190
194
|
const { CurviateError } = await import("@curviate/sdk");
|
|
191
195
|
if (err instanceof CurviateError) {
|
|
192
|
-
const { getExitCode } = await import("./exit-codes-
|
|
196
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
193
197
|
renderError(err, outOpts, out);
|
|
194
198
|
process.exit(getExitCode(err));
|
|
195
199
|
}
|
|
@@ -218,7 +222,7 @@ async function runConnectDecline(client, flags, out) {
|
|
|
218
222
|
} catch (err) {
|
|
219
223
|
const { CurviateError } = await import("@curviate/sdk");
|
|
220
224
|
if (err instanceof CurviateError) {
|
|
221
|
-
const { getExitCode } = await import("./exit-codes-
|
|
225
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
222
226
|
renderError(err, outOpts, out);
|
|
223
227
|
process.exit(getExitCode(err));
|
|
224
228
|
}
|
|
@@ -247,7 +251,7 @@ async function runConnectCancel(client, flags, out) {
|
|
|
247
251
|
} catch (err) {
|
|
248
252
|
const { CurviateError } = await import("@curviate/sdk");
|
|
249
253
|
if (err instanceof CurviateError) {
|
|
250
|
-
const { getExitCode } = await import("./exit-codes-
|
|
254
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
251
255
|
renderError(err, outOpts, out);
|
|
252
256
|
process.exit(getExitCode(err));
|
|
253
257
|
}
|
|
@@ -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:
|
|
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: "
|
|
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-D2S5OCYU.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-UQY64642.js").then((m) => m.profileCommand)),
|
|
23
|
+
company: lazy("company", () => import("./company-2AEHSGHA.js").then((m) => m.companyCommand)),
|
|
24
|
+
job: lazy("job", () => import("./job-6PNXXZNF.js").then((m) => m.jobCommand)),
|
|
25
|
+
connect: lazy("connect", () => import("./connect-4XEBV5V3.js").then((m) => m.connectCommand)),
|
|
26
|
+
search: lazy("search", () => import("./search-NWP5S6CF.js").then((m) => m.searchCommand)),
|
|
27
|
+
inbox: lazy("inbox", () => import("./inbox-SNSPWI7J.js").then((m) => m.inboxCommand)),
|
|
28
|
+
inboxes: lazy("inboxes", () => import("./inboxes-RIRHPS4H.js").then((m) => m.inboxesCommand)),
|
|
29
|
+
message: lazy("message", () => import("./message-2IK4MBBG.js").then((m) => m.messageCommand)),
|
|
30
|
+
post: lazy("post", () => import("./post-AN6T2OJF.js").then((m) => m.postCommand)),
|
|
31
|
+
comment: lazy("comment", () => import("./comment-MRDPDA33.js").then((m) => m.commentCommand)),
|
|
32
|
+
"sales-nav": lazy("sales-nav", () => import("./sales-nav-KLODLYMW.js").then((m) => m.salesNavCommand)),
|
|
33
|
+
recruiter: lazy("recruiter", () => import("./recruiter-OY4RN5HH.js").then((m) => m.recruiterCommand)),
|
|
34
|
+
group: lazy("group", () => import("./group-CSD2OWOZ.js").then((m) => m.groupCommand)),
|
|
35
|
+
feed: lazy("feed", () => import("./feed-DFUU7SUJ.js").then((m) => m.feedCommand)),
|
|
36
|
+
notification: lazy("notification", () => import("./notification-VYK5NDEB.js").then((m) => m.notificationCommand)),
|
|
37
|
+
draft: lazy("draft", () => import("./draft-C5N6EOO5.js").then((m) => m.draftCommand))
|
|
38
|
+
},
|
|
39
|
+
async run() {
|
|
40
|
+
const { showHelp } = await import("./examples-NIMSIXMV.js");
|
|
41
|
+
await showHelp(coreCommand, ["curviate", "core"]);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
coreCommand
|
|
46
|
+
};
|
|
@@ -2,20 +2,24 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readablePage,
|
|
4
4
|
resolveEffectiveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SA2QHAXG.js";
|
|
6
6
|
import {
|
|
7
7
|
getExitCode
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RXWODUWA.js";
|
|
9
9
|
import {
|
|
10
10
|
createClient,
|
|
11
11
|
getConfigPath,
|
|
12
12
|
isPlainObject,
|
|
13
13
|
readConfigFile,
|
|
14
14
|
withoutUserinfo
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
16
16
|
import {
|
|
17
17
|
GLOBAL_FLAGS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
19
|
+
import {
|
|
20
|
+
DESCRIPTIONS
|
|
21
|
+
} from "./chunk-D2S5OCYU.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:
|
|
177
|
+
description: DESCRIPTIONS.doctor,
|
|
174
178
|
examples: [
|
|
175
179
|
"curviate doctor",
|
|
176
180
|
"curviate doctor --json"
|