@curviate/cli 0.57.0 → 0.59.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 +114 -0
- package/README.md +9 -2
- package/dist/{account-IRIYB2SG.js → account-EUHYWIDH.js} +52 -16
- package/dist/{analytics-IRSCLVOL.js → analytics-SQQIMSLF.js} +6 -6
- package/dist/{beta-consent-NQVGFZL3.js → beta-consent-DFS7YMZR.js} +4 -4
- package/dist/billing-3FRIQFY3.js +19 -0
- package/dist/{chunk-OE4CY3ZL.js → chunk-5AJS2V4T.js} +1 -1
- package/dist/{chunk-AMTKGO37.js → chunk-5Z3CCE5N.js} +1 -1
- package/dist/{chunk-A6JGJGDF.js → chunk-72PYX57P.js} +16 -16
- package/dist/{billing-TCTP44ZB.js → chunk-7CSXYRSO.js} +125 -14
- package/dist/{chunk-SCUTAREU.js → chunk-EWSOIFG2.js} +17 -0
- package/dist/{chunk-3ZQNOKEK.js → chunk-F3FEY4D5.js} +2 -2
- package/dist/{chunk-F7CLAS5Y.js → chunk-HG2G5OAZ.js} +2 -2
- package/dist/{chunk-6OT6TS7N.js → chunk-HJ7YY4HE.js} +2 -2
- package/dist/{chunk-RKNW4UX4.js → chunk-JKOQX46J.js} +6 -0
- package/dist/{chunk-VHNF6OZD.js → chunk-JY26SUNH.js} +18 -2
- package/dist/{chunk-RXDG57B2.js → chunk-KD2XY7RS.js} +1 -1
- package/dist/{chunk-RTT75CXE.js → chunk-QRTMRTKA.js} +88 -15
- package/dist/{chunk-VPFV7YV3.js → chunk-R2MIDSMB.js} +6 -6
- package/dist/{chunk-AG6G3PRQ.js → chunk-TNLIV3SW.js} +17 -13
- package/dist/{chunk-3B5M2RUN.js → chunk-VKHAL6WT.js} +1 -1
- package/dist/{chunk-5LGKZBAY.js → chunk-ZC4S4B32.js} +4 -3
- package/dist/cli.js +33 -33
- package/dist/{comment-PNHEKGZX.js → comment-DA6XPY4F.js} +8 -8
- package/dist/{company-OUFF23SU.js → company-IWVNUBWS.js} +8 -8
- package/dist/{company-record-ULPDDB6L.js → company-record-ZJMW3NC6.js} +95 -10
- package/dist/{config-U6VDNL2P.js → config-P4HKPOCW.js} +2 -2
- package/dist/{connect-ICNXC37R.js → connect-AELFEVR7.js} +11 -11
- package/dist/{contact-K6RIVQWU.js → contact-FHN3A7MJ.js} +9 -9
- package/dist/{contact-groups-CNH2VB6A.js → contact-groups-HNZTN6I6.js} +11 -11
- package/dist/{contact-import-FK22UTN2.js → contact-import-PJFRLCHR.js} +11 -11
- package/dist/core-R7R44CVA.js +46 -0
- package/dist/{do-not-contact-BQHXNHTV.js → do-not-contact-KSH36NMT.js} +22 -20
- package/dist/{doctor-ZYPZF5BE.js → doctor-BEO4E227.js} +4 -4
- package/dist/{document-H65EXU4L.js → document-G6UND26L.js} +1 -1
- package/dist/{domain-HLOT6Y4A.js → domain-HF3WXWUT.js} +5 -5
- package/dist/{draft-JGQ36JSH.js → draft-2KBRHBBH.js} +5 -5
- package/dist/{enrollment-CF634DB4.js → enrollment-QPE54QQN.js} +14 -10
- package/dist/{examples-J4X5NEIE.js → examples-5FJS47QF.js} +2 -2
- package/dist/{exit-codes-P2FLCKM7.js → exit-codes-LQDMGDII.js} +1 -1
- package/dist/{export-ZQLDQYUZ.js → export-J4JQRE2A.js} +4 -4
- package/dist/{feed-RQHEDZVL.js → feed-PHF2ROIT.js} +6 -6
- package/dist/{group-LRMG76FN.js → group-SLXDOCHV.js} +6 -6
- package/dist/{inbox-5RGG5RQG.js → inbox-IDILZLPC.js} +6 -6
- package/dist/{inboxes-ZFY6ZP33.js → inboxes-QLP5PWTS.js} +6 -6
- package/dist/{incoming-3MJ4CP6H.js → incoming-XG6IBPU6.js} +8 -8
- package/dist/{job-QFIUTHHT.js → job-WUYHK6OX.js} +6 -6
- package/dist/{login-THXWX5HZ.js → login-3RIU257N.js} +2 -2
- package/dist/mailbox-CJRCYZGL.js +772 -0
- package/dist/{message-DM5OUKQS.js → message-EBVO4ZZI.js} +7 -7
- package/dist/{motion-NKOAK7NU.js → motion-7XQ3E4GI.js} +121 -16
- package/dist/{network-VKJUMZ2L.js → network-X5XL44GB.js} +12 -12
- package/dist/{notification-XW5J6KFA.js → notification-QNGHG5EO.js} +6 -6
- package/dist/{notifications-USYOV54R.js → notifications-MOLNELNE.js} +9 -9
- package/dist/{post-M2G3BK4A.js → post-XYSFN5OP.js} +8 -8
- package/dist/{profile-3SG64IEG.js → profile-7LJLU4Y5.js} +12 -12
- package/dist/{recruiter-7OUGZ776.js → recruiter-ALQNIRYR.js} +9 -9
- package/dist/{sales-nav-HHQLLM5C.js → sales-nav-HYZXNYCC.js} +9 -9
- package/dist/{search-5LMSLUH4.js → search-DNCPCFRR.js} +16 -16
- package/dist/{setup-6F4HYUSZ.js → setup-QI5FW6VD.js} +4 -4
- package/dist/{signal-LVODDBOY.js → signal-J2TLIT47.js} +126 -19
- package/dist/{team-MSOPELF6.js → team-PPPCJ5HT.js} +8 -8
- package/dist/{tier-RXHOAQ6L.js → tier-NFWWW34H.js} +4 -4
- package/dist/{unibox-UAA6WIGZ.js → unibox-52C7G5LK.js} +318 -16
- package/dist/{webhook-J2H7X766.js → webhook-J3JYMSY2.js} +12 -12
- package/package.json +3 -3
- package/dist/core-MPEBYNSL.js +0 -46
- package/dist/mailbox-54DPLNXA.js +0 -412
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
online,
|
|
4
4
|
preview
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-72PYX57P.js";
|
|
6
6
|
import {
|
|
7
7
|
sendChunked
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HJ7YY4HE.js";
|
|
9
9
|
import {
|
|
10
10
|
fail,
|
|
11
11
|
listFlag,
|
|
12
12
|
outputOpts,
|
|
13
13
|
usage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-F3FEY4D5.js";
|
|
15
15
|
import {
|
|
16
16
|
intFlag
|
|
17
17
|
} from "./chunk-NNV2OYEF.js";
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
readablePage,
|
|
24
24
|
rejectPaginationModifiersWithoutAll,
|
|
25
25
|
streamAll
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5AJS2V4T.js";
|
|
27
27
|
import {
|
|
28
28
|
renderSuccess,
|
|
29
29
|
writeNdjsonItem
|
|
30
30
|
} from "./chunk-QM57YDJE.js";
|
|
31
31
|
import {
|
|
32
32
|
withWireNotes
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KD2XY7RS.js";
|
|
34
34
|
import {
|
|
35
35
|
GLOBAL_FLAGS,
|
|
36
36
|
WRITE_SINGLE_FLAGS,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-QLKGOIWS.js";
|
|
39
39
|
import {
|
|
40
40
|
readFileFlag
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-JKOQX46J.js";
|
|
42
42
|
import {
|
|
43
43
|
isStdinToken
|
|
44
44
|
} from "./chunk-ZYURL5VK.js";
|
|
@@ -194,8 +194,9 @@ async function recover(c, body, rows, seen, started, notes, err, k, n) {
|
|
|
194
194
|
say(`Import ${k} of ${n}: the API did apply it. Import ${found.id} is ${found.status}${found.status === "completed" ? ` (${COUNTS.map((x) => `${x} ${found.counts?.[x] ?? 0}`).join(", ")})` : ""}.`);
|
|
195
195
|
return found;
|
|
196
196
|
}
|
|
197
|
-
var SOURCE_KINDS = ["people_search", "company_people", "sales_nav_search", "sales_nav_lead_list", "recruiter_search", "post_engagers", "group_members"];
|
|
197
|
+
var SOURCE_KINDS = ["people_search", "company_people", "sales_nav_search", "sales_nav_lead_list", "sales_nav_account_list", "sales_nav_company_people", "recruiter_search", "post_engagers", "group_members"];
|
|
198
198
|
function kindOfUrl(url) {
|
|
199
|
+
if (/linkedin\.com\/sales\/search\/compan/i.test(url)) return "sales_nav_company_people";
|
|
199
200
|
if (/linkedin\.com\/sales\//i.test(url)) return "sales_nav_search";
|
|
200
201
|
if (/linkedin\.com\/talent\//i.test(url)) return "recruiter_search";
|
|
201
202
|
if (/\/search\/results\/people/i.test(url)) return "people_search";
|
|
@@ -378,14 +379,17 @@ var importCmd = defineCommand({
|
|
|
378
379
|
delimiter: { type: "string", description: "A CSV's separator: comma, semicolon or tab. Default: found by the server." },
|
|
379
380
|
async: { type: "boolean", description: "Print the imports' ids as soon as each is accepted and exit 0, without waiting for them to finish; follow one with `curviate lead imports get IMPORT_ID`. Stops only on a refused request." },
|
|
380
381
|
"no-wait": { type: "boolean", description: "Same as --async." },
|
|
381
|
-
source: { type: "string", description: "Import from LinkedIn instead of a file: people_search, sales_nav_search, recruiter_search (a pasted --source-url or --filter), company_people (a company search plus --titles), sales_nav_lead_list (--list-id), post_engagers (--post-id) or group_members (--group-id). Default with --source-url: the kind the URL names." },
|
|
382
|
-
"source-url": { type: "string", description: "A pasted LinkedIn search URL (people, Sales Navigator, Recruiter or company search)." },
|
|
383
|
-
filter: {
|
|
382
|
+
source: { type: "string", description: "Import from LinkedIn instead of a file: people_search, sales_nav_search, recruiter_search (a pasted --source-url or --filter), company_people (a company search plus --titles), sales_nav_lead_list (--list-id), sales_nav_account_list (--list-id, --titles optional), sales_nav_company_people (a Sales Navigator account search --source-url or --filter, plus --titles), post_engagers (--post-id) or group_members (--group-id). Default with --source-url: the kind the URL names." },
|
|
383
|
+
"source-url": { type: "string", description: "A pasted LinkedIn search URL (people, Sales Navigator lead or account, Recruiter or company search)." },
|
|
384
|
+
filter: {
|
|
385
|
+
type: "string",
|
|
386
|
+
description: "A built search instead of a URL: key=value, repeatable (a key given twice becomes a list). The keys each kind offers: people_search: keywords, advanced_keywords (job title as text, use --filters-json), location, current_company, past_company, school, industry, service, network_distance (location and network_distance exclude each other); company_people (the company step): keywords, industry, location, headcount, has_job_postings; recruiter_search: keywords, job_function, workplace_type (ON_SITE, HYBRID, REMOTE), group; sales_nav_search: the Sales Navigator lead search filters (job titles are lookup ids from `curviate core sales-nav search parameters`); sales_nav_company_people (the account step): the Sales Navigator account search filters. Any other key is refused naming it (connections_of and followers_of are not offered on people_search)."
|
|
387
|
+
},
|
|
384
388
|
"filters-json": { type: "string", description: "The built search as one JSON object. Not with --filter." },
|
|
385
|
-
"list-id": { type: "string", description: "The Sales Navigator lead list id (sales_nav_lead_list)." },
|
|
389
|
+
"list-id": { type: "string", description: "The Sales Navigator lead list id (sales_nav_lead_list) or account list id (sales_nav_account_list)." },
|
|
386
390
|
"post-id": { type: "string", description: "The post id or URL (post_engagers)." },
|
|
387
391
|
"group-id": { type: "string", description: "A LinkedIn group id the Account belongs to (group_members)." },
|
|
388
|
-
titles: { type: "string", description: "Job titles to keep, repeatable or a comma list (company_people: required)." },
|
|
392
|
+
titles: { type: "string", description: "Job titles to keep, repeatable or a comma list (company_people and sales_nav_company_people: required; sales_nav_account_list: optional). Only people with one of them are imported, never a whole company." },
|
|
389
393
|
max: { type: "string", description: "Stop after this many people (default and maximum: the kind's cap)." },
|
|
390
394
|
continue: { type: "string", description: "Continue this earlier import of the same source (imp_...) from where it stopped." },
|
|
391
395
|
restart: { type: "boolean", description: "Read the source from the beginning, even when an earlier import of it could continue." }
|
|
@@ -476,7 +480,7 @@ var contactImportsCommand = defineCommand({
|
|
|
476
480
|
meta: { name: "imports", description: "Your Team's import records." },
|
|
477
481
|
subCommands: { list: importsList, get: importsGet, pause: importsPause, resume: importsResume, stop: importsStop },
|
|
478
482
|
async run() {
|
|
479
|
-
const { showHelp } = await import("./examples-
|
|
483
|
+
const { showHelp } = await import("./examples-5FJS47QF.js");
|
|
480
484
|
await showHelp(contactImportsCommand, ["curviate", "lead", "imports"]);
|
|
481
485
|
}
|
|
482
486
|
});
|
|
@@ -7,12 +7,13 @@ var DESCRIPTIONS = {
|
|
|
7
7
|
login: "Save an API key to a local profile. Run `curviate core profile me` to verify.",
|
|
8
8
|
config: "Manage CLI profiles and settings.",
|
|
9
9
|
account: "LinkedIn account connection management.",
|
|
10
|
-
campaign: "Campaigns: one Sequence run for the Leads of your Team's Lead lists, from its sending Accounts, paced on a schedule. Create and edit drafts, preview, start, pause, resume, archive, add or remove Leads; lint a Sequence and write a template offline; upload the audio of a voice note step (`curviate campaign voice-clip`). Your Team's data: every role reads; writes need send access to each sending Account, and Campaigns need the Automate plan.",
|
|
10
|
+
campaign: "Campaigns: one Sequence run for the Leads of your Team's Lead lists, from its sending Accounts, paced on a schedule. Create and edit drafts, preview, start, pause, resume, archive, add or remove Leads; lint a Sequence and write a template offline; upload the audio of a voice note step (`curviate campaign voice-clip`) and the files of an email step (`curviate campaign attachment`). Your Team's data: every role reads; writes need send access to each sending Account, and Campaigns need the Automate plan.",
|
|
11
|
+
campaignAttachment: "Campaign attachments: the files an email step sends. Upload one file (up to 20 MiB), then put its id in the step's `attachment_ids`; read one back. Nothing is sent until a Campaign that uses it is started. Uploads need the Automate plan.",
|
|
11
12
|
campaignVoiceClip: "Voice clips: the audio a `voice.send` step plays. Upload one audio file (1 to 120 seconds, up to 20 MiB), then put its id in a Sequence as `clip_id`; read one back. Nothing reaches LinkedIn until a Campaign that uses it is started. Uploads need the Automate plan.",
|
|
12
13
|
enrollment: "Enrollments: one Lead in one Campaign on one Account. List and read them; pause, resume, retry a failed Step, stop, send a custom event, reassign, or act on many at once. Your Team's data: every role reads; writes need operate on the Enrollment's Account.",
|
|
13
14
|
lead: "Leads: the people in your Team's lists, not LinkedIn actions. List, read, add, change and delete them; import and export; enrich from LinkedIn profiles. Subgroups: `curviate lead lists` (Lead lists, including combining lists), `curviate lead tags`, `curviate lead imports`. Your Team's data: every role reads and writes; deleting is for Owners and Managers.",
|
|
14
15
|
"do-not-contact": "Do-not-contact: your Team's one list of people no Campaign contacts and no write reaches (a write toward them exits 10). List, read, add, change the reason, remove, export and import a file. Any member adds and imports; removing and exporting are for Owners and Managers.",
|
|
15
|
-
mailbox: "Mailboxes: your Team's own email Mailboxes, the addresses Campaigns send from. List, read, set who a Mailbox sends for, its daily cap and signature, pause, resume, remove, find the settings for an address (discover), connect and reconnect (a password goes in only through --password-stdin). Every role reads; Owners and Managers change any Mailbox, a Member the ones they connected.
|
|
16
|
+
mailbox: "Mailboxes: your Team's own email Mailboxes, the addresses Campaigns send from. List, read, set who a Mailbox sends for, its daily cap and signature, pause, resume, remove, find the settings for an address (discover), connect and reconnect (a password goes in only through --password-stdin), run a placement test (test, tests). Every role reads; Owners and Managers change any Mailbox, a Member the ones they connected. Your own Mailbox takes no seat and is never billed; Mailboxes from Curviate are priced for your Team by the server (quote, buy, purchase; Owners only, and an order through an API key stays under the Team's cap on them).",
|
|
16
17
|
domain: "Domains: the DNS health of a sending domain (MX, SPF, DKIM, DMARC, tracking). `curviate domain check`, with --now to run the checks now.",
|
|
17
18
|
billing: "Billing: the price of seats, the spending cap, the change log, your Team's invoices (listed and downloaded as PDFs), and moving a previous price to the current one (`price move`, charges money). Owners only. Seats and the Tier are under `curviate account seats`, `curviate team` and `curviate tier`.",
|
|
18
19
|
contactImport: "Import Leads from a CSV, JSON or NDJSON file into a Lead list, splitting a large file into several imports.",
|
|
@@ -32,7 +33,7 @@ var DESCRIPTIONS = {
|
|
|
32
33
|
profile: "LinkedIn profile operations.",
|
|
33
34
|
company: "Fetch a company profile by URL, slug, or numeric id, and its sub-resources.",
|
|
34
35
|
companyRecord: "Your Team's own record of a company, by LinkedIn's numeric company id: what Curviate stored and your company fields ({{company.extra.<key>}} in a Sequence). No LinkedIn call. The LinkedIn company page is `curviate core company`.",
|
|
35
|
-
signal: "Signals: what people did around your Accounts in the last 7 days (reacted, commented, viewed a profile, followed, mentioned, reposted, posted, connected), each Account's Signal watch, and the rules that add those people to a Lead list or send `signal.matched` to your webhooks. Reads Curviate's own store: no LinkedIn call.",
|
|
36
|
+
signal: "Signals: what people did around your Accounts in the last 7 days (reacted, commented, viewed a profile, followed, mentioned, reposted, posted, connected), each Account's Signal watch and its switch, and the rules that add those people to a Lead list, enroll them in a Campaign or send `signal.matched` to your webhooks, with what each rule did. Reads Curviate's own store: no LinkedIn call.",
|
|
36
37
|
job: "Classic LinkedIn job-posting operations.",
|
|
37
38
|
connect: "Send or manage connection invitations. Connection requests may take 10-30 seconds to appear in the recipient's received list (LinkedIn propagation delay).",
|
|
38
39
|
search: "Search people, companies, posts, and jobs. Also runs a pasted search URL directly.",
|
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
intFlag
|
|
4
|
-
} from "./chunk-NNV2OYEF.js";
|
|
5
2
|
import {
|
|
6
3
|
SECRET_FLAGS
|
|
7
4
|
} from "./chunk-TCUYH5GO.js";
|
|
5
|
+
import {
|
|
6
|
+
intFlag
|
|
7
|
+
} from "./chunk-NNV2OYEF.js";
|
|
8
8
|
import {
|
|
9
9
|
GLOBAL_FLAGS,
|
|
10
10
|
STATE_WRITES,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-QLKGOIWS.js";
|
|
16
16
|
import {
|
|
17
17
|
lazy
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZC4S4B32.js";
|
|
19
19
|
import {
|
|
20
20
|
editDistance
|
|
21
21
|
} from "./chunk-FDJMAF7D.js";
|
|
@@ -45,37 +45,37 @@ var main = defineCommand({
|
|
|
45
45
|
// Subcommand registry, names and descriptions are static for help rendering;
|
|
46
46
|
// the handler implementation is loaded lazily on first invocation.
|
|
47
47
|
subCommands: {
|
|
48
|
-
setup: lazy("setup", () => import("./setup-
|
|
49
|
-
doctor: lazy("doctor", () => import("./doctor-
|
|
50
|
-
login: lazy("login", () => import("./login-
|
|
51
|
-
config: lazy("config", () => import("./config-
|
|
52
|
-
account: lazy("account", () => import("./account-
|
|
53
|
-
campaign: lazy("campaign", () => import("./motion-
|
|
54
|
-
enrollment: lazy("enrollment", () => import("./enrollment-
|
|
55
|
-
lead: lazy("lead", () => import("./contact-
|
|
56
|
-
company: lazy("companyRecord", () => import("./company-record-
|
|
57
|
-
signal: lazy("signal", () => import("./signal-
|
|
58
|
-
"do-not-contact": lazy("do-not-contact", () => import("./do-not-contact-
|
|
59
|
-
mailbox: lazy("mailbox", () => import("./mailbox-
|
|
60
|
-
domain: lazy("domain", () => import("./domain-
|
|
61
|
-
unibox: lazy("unibox", () => import("./unibox-
|
|
62
|
-
network: lazy("network", () => import("./network-
|
|
63
|
-
analytics: lazy("analytics", () => import("./analytics-
|
|
64
|
-
notification: lazy("notification", () => import("./notifications-
|
|
65
|
-
export: lazy("export", () => import("./export-
|
|
66
|
-
billing: lazy("billing", () => import("./billing-
|
|
67
|
-
tier: lazy("tier", () => import("./tier-
|
|
68
|
-
team: lazy("team", () => import("./team-
|
|
69
|
-
incoming: lazy("incoming", () => import("./incoming-
|
|
70
|
-
beta: lazy("beta", () => import("./beta-consent-
|
|
71
|
-
webhook: lazy("webhook", () => import("./webhook-
|
|
48
|
+
setup: lazy("setup", () => import("./setup-QI5FW6VD.js").then((m) => m.setupCommand)),
|
|
49
|
+
doctor: lazy("doctor", () => import("./doctor-BEO4E227.js").then((m) => m.doctorCommand)),
|
|
50
|
+
login: lazy("login", () => import("./login-3RIU257N.js").then((m) => m.loginCommand)),
|
|
51
|
+
config: lazy("config", () => import("./config-P4HKPOCW.js").then((m) => m.configCommand)),
|
|
52
|
+
account: lazy("account", () => import("./account-EUHYWIDH.js").then((m) => m.accountCommand)),
|
|
53
|
+
campaign: lazy("campaign", () => import("./motion-7XQ3E4GI.js").then((m) => m.campaignCommand)),
|
|
54
|
+
enrollment: lazy("enrollment", () => import("./enrollment-QPE54QQN.js").then((m) => m.enrollmentCommand)),
|
|
55
|
+
lead: lazy("lead", () => import("./contact-FHN3A7MJ.js").then((m) => m.contactCommand)),
|
|
56
|
+
company: lazy("companyRecord", () => import("./company-record-ZJMW3NC6.js").then((m) => m.companyRecordCommand)),
|
|
57
|
+
signal: lazy("signal", () => import("./signal-J2TLIT47.js").then((m) => m.signalCommand)),
|
|
58
|
+
"do-not-contact": lazy("do-not-contact", () => import("./do-not-contact-KSH36NMT.js").then((m) => m.doNotContactCommand)),
|
|
59
|
+
mailbox: lazy("mailbox", () => import("./mailbox-CJRCYZGL.js").then((m) => m.mailboxCommand)),
|
|
60
|
+
domain: lazy("domain", () => import("./domain-HF3WXWUT.js").then((m) => m.domainCommand)),
|
|
61
|
+
unibox: lazy("unibox", () => import("./unibox-52C7G5LK.js").then((m) => m.uniboxCommand)),
|
|
62
|
+
network: lazy("network", () => import("./network-X5XL44GB.js").then((m) => m.networkCommand)),
|
|
63
|
+
analytics: lazy("analytics", () => import("./analytics-SQQIMSLF.js").then((m) => m.analyticsCommand)),
|
|
64
|
+
notification: lazy("notification", () => import("./notifications-MOLNELNE.js").then((m) => m.notificationsCommand)),
|
|
65
|
+
export: lazy("export", () => import("./export-J4JQRE2A.js").then((m) => m.exportCommand)),
|
|
66
|
+
billing: lazy("billing", () => import("./billing-3FRIQFY3.js").then((m) => m.billingCommand)),
|
|
67
|
+
tier: lazy("tier", () => import("./tier-NFWWW34H.js").then((m) => m.tierCommand)),
|
|
68
|
+
team: lazy("team", () => import("./team-PPPCJ5HT.js").then((m) => m.teamCommand)),
|
|
69
|
+
incoming: lazy("incoming", () => import("./incoming-XG6IBPU6.js").then((m) => m.incomingCommand)),
|
|
70
|
+
beta: lazy("beta", () => import("./beta-consent-DFS7YMZR.js").then((m) => m.betaCommand)),
|
|
71
|
+
webhook: lazy("webhook", () => import("./webhook-J3JYMSY2.js").then((m) => m.webhookCommand)),
|
|
72
72
|
// The LinkedIn building blocks. Reserved product groups
|
|
73
73
|
// (unibox, network, analytics, team) land
|
|
74
74
|
// between `enrollment` and `webhook` with their owning specs.
|
|
75
|
-
core: lazy("core", () => import("./core-
|
|
75
|
+
core: lazy("core", () => import("./core-R7R44CVA.js").then((m) => m.coreCommand))
|
|
76
76
|
},
|
|
77
77
|
async run() {
|
|
78
|
-
const { showHelp } = await import("./examples-
|
|
78
|
+
const { showHelp } = await import("./examples-5FJS47QF.js");
|
|
79
79
|
await showHelp(main, ["curviate"]);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
@@ -367,7 +367,7 @@ async function dispatch(root, rawArgs) {
|
|
|
367
367
|
helpFor = "curviate";
|
|
368
368
|
if (rawArgs.includes("--help") || rawArgs.includes("-h")) {
|
|
369
369
|
const { leaf, path } = await resolveLeaf(root, rawArgs.filter((a) => a !== "--help" && a !== "-h"));
|
|
370
|
-
const { showHelp } = await import("./examples-
|
|
370
|
+
const { showHelp } = await import("./examples-5FJS47QF.js");
|
|
371
371
|
await showHelp(leaf, path);
|
|
372
372
|
await new Promise((done) => process.stdout.write("", () => done()));
|
|
373
373
|
process.exit(0);
|
|
@@ -391,7 +391,7 @@ async function dispatch(root, rawArgs) {
|
|
|
391
391
|
const inline = (end === -1 ? argsAfterBeta : argsAfterBeta.slice(0, end)).find((a) => /^--[a-z-]+-stdin=/.test(a));
|
|
392
392
|
if (inline !== void 0) {
|
|
393
393
|
const flag = inline.slice(0, inline.indexOf("="));
|
|
394
|
-
usageError(`${flag} takes no value: the secret is read from
|
|
394
|
+
usageError(`${flag} takes no value: the secret is read from standard input, typed by the person at their own terminal.`, "nothing was sent; a secret never passes through an agent: use a Connect request link instead (curviate account connect-request create, or the command without the flag)");
|
|
395
395
|
}
|
|
396
396
|
let hintLeaf;
|
|
397
397
|
try {
|
|
@@ -455,7 +455,7 @@ async function dispatch(root, rawArgs) {
|
|
|
455
455
|
if (code === "EARG") process.stderr.write(helpPointer());
|
|
456
456
|
const { CurviateError } = await import("@curviate/sdk");
|
|
457
457
|
if (err instanceof CurviateError) {
|
|
458
|
-
const { getExitCode } = await import("./exit-codes-
|
|
458
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
459
459
|
process.exit(getExitCode(err));
|
|
460
460
|
}
|
|
461
461
|
process.exit(code === "EARG" ? 2 : 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveMemberOrMeProviderId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VKHAL6WT.js";
|
|
5
5
|
import "./chunk-UEAX6KUB.js";
|
|
6
6
|
import {
|
|
7
7
|
AS_ACCOUNT,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
describeAttachment,
|
|
14
14
|
readAttachment,
|
|
15
15
|
toAttachmentPayload
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JY26SUNH.js";
|
|
17
17
|
import {
|
|
18
18
|
requireAccount
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HG2G5OAZ.js";
|
|
20
20
|
import {
|
|
21
21
|
buildPreviewOutput
|
|
22
22
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
readablePage,
|
|
28
28
|
rejectPaginationModifiersWithoutAll,
|
|
29
29
|
streamAll
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5AJS2V4T.js";
|
|
31
31
|
import {
|
|
32
32
|
renderError,
|
|
33
33
|
renderSuccess,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
createClient,
|
|
39
39
|
resolveEffectiveConfig
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-KD2XY7RS.js";
|
|
41
41
|
import {
|
|
42
42
|
GLOBAL_FLAGS,
|
|
43
43
|
WRITE_SINGLE_FLAGS,
|
|
@@ -45,11 +45,11 @@ import {
|
|
|
45
45
|
} from "./chunk-QLKGOIWS.js";
|
|
46
46
|
import {
|
|
47
47
|
DESCRIPTIONS
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ZC4S4B32.js";
|
|
49
49
|
import {
|
|
50
50
|
resolveTextOrStdin
|
|
51
51
|
} from "./chunk-ZYURL5VK.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-EWSOIFG2.js";
|
|
53
53
|
|
|
54
54
|
// src/commands/comment.ts
|
|
55
55
|
import { defineCommand } from "citty";
|
|
@@ -78,7 +78,7 @@ function buildListQuery(flags, out) {
|
|
|
78
78
|
async function handleSdkError(err, outOpts, out) {
|
|
79
79
|
const { CurviateError } = await import("@curviate/sdk");
|
|
80
80
|
if (err instanceof CurviateError) {
|
|
81
|
-
const { getExitCode } = await import("./exit-codes-
|
|
81
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
82
82
|
renderError(err, outOpts, out);
|
|
83
83
|
process.exit(getExitCode(err));
|
|
84
84
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-L7JH3W56.js";
|
|
7
7
|
import {
|
|
8
8
|
sentAsNotice
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R2MIDSMB.js";
|
|
10
10
|
import "./chunk-UWO2D4HW.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveIdentifier
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
AttachError,
|
|
29
29
|
readAttachment,
|
|
30
30
|
toAttachmentPayload
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JY26SUNH.js";
|
|
32
32
|
import {
|
|
33
33
|
requireAccount
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HG2G5OAZ.js";
|
|
35
35
|
import {
|
|
36
36
|
buildPreviewOutput
|
|
37
37
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
readablePage,
|
|
45
45
|
rejectPaginationModifiersWithoutAll,
|
|
46
46
|
streamAll
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5AJS2V4T.js";
|
|
48
48
|
import {
|
|
49
49
|
renderError,
|
|
50
50
|
renderSuccess,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import {
|
|
55
55
|
createClient,
|
|
56
56
|
resolveEffectiveConfig
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-KD2XY7RS.js";
|
|
58
58
|
import {
|
|
59
59
|
GLOBAL_FLAGS,
|
|
60
60
|
READ_SINGLE_FLAGS,
|
|
@@ -63,12 +63,12 @@ import {
|
|
|
63
63
|
} from "./chunk-QLKGOIWS.js";
|
|
64
64
|
import {
|
|
65
65
|
DESCRIPTIONS
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-ZC4S4B32.js";
|
|
67
67
|
import "./chunk-FDJMAF7D.js";
|
|
68
68
|
import {
|
|
69
69
|
resolveTextOrStdin
|
|
70
70
|
} from "./chunk-ZYURL5VK.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-EWSOIFG2.js";
|
|
72
72
|
|
|
73
73
|
// src/commands/company.ts
|
|
74
74
|
import { defineCommand } from "citty";
|
|
@@ -102,7 +102,7 @@ async function resolveCompanyId(ns, raw) {
|
|
|
102
102
|
async function handleSdkError(err, outOpts, out) {
|
|
103
103
|
const { CurviateError } = await import("@curviate/sdk");
|
|
104
104
|
if (err instanceof CurviateError) {
|
|
105
|
-
const { getExitCode } = await import("./exit-codes-
|
|
105
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
106
106
|
renderError(err, outOpts, out);
|
|
107
107
|
process.exit(getExitCode(err));
|
|
108
108
|
}
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
csvRecords
|
|
4
|
+
} from "./chunk-TNLIV3SW.js";
|
|
5
|
+
import "./chunk-72PYX57P.js";
|
|
6
|
+
import "./chunk-HG2G5OAZ.js";
|
|
7
|
+
import "./chunk-GOICALYQ.js";
|
|
8
|
+
import "./chunk-HJ7YY4HE.js";
|
|
2
9
|
import {
|
|
3
10
|
fail,
|
|
4
11
|
listFlag,
|
|
5
12
|
outputOpts,
|
|
6
13
|
rootClient,
|
|
7
14
|
usage
|
|
8
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-F3FEY4D5.js";
|
|
9
16
|
import {
|
|
10
17
|
buildPreviewOutput
|
|
11
18
|
} from "./chunk-TCUYH5GO.js";
|
|
19
|
+
import "./chunk-NNV2OYEF.js";
|
|
12
20
|
import {
|
|
13
21
|
readableObject
|
|
14
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5AJS2V4T.js";
|
|
15
23
|
import {
|
|
16
24
|
renderSuccess
|
|
17
25
|
} from "./chunk-QM57YDJE.js";
|
|
18
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-KD2XY7RS.js";
|
|
19
27
|
import {
|
|
20
28
|
READ_SINGLE_FLAGS,
|
|
21
29
|
WRITE_SINGLE_FLAGS,
|
|
@@ -23,11 +31,68 @@ import {
|
|
|
23
31
|
} from "./chunk-QLKGOIWS.js";
|
|
24
32
|
import {
|
|
25
33
|
DESCRIPTIONS
|
|
26
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ZC4S4B32.js";
|
|
35
|
+
import {
|
|
36
|
+
readFileFlag
|
|
37
|
+
} from "./chunk-JKOQX46J.js";
|
|
38
|
+
import "./chunk-FDJMAF7D.js";
|
|
27
39
|
import "./chunk-ZYURL5VK.js";
|
|
40
|
+
import "./chunk-EWSOIFG2.js";
|
|
28
41
|
|
|
29
42
|
// src/commands/company-record.ts
|
|
30
43
|
import { defineCommand } from "citty";
|
|
44
|
+
var FILE_MAX_COMPANIES = 1e3;
|
|
45
|
+
function csvCells(record) {
|
|
46
|
+
const cells = [];
|
|
47
|
+
let cur = "";
|
|
48
|
+
let quoted = false;
|
|
49
|
+
for (let i = 0; i < record.length; i++) {
|
|
50
|
+
const ch = record[i];
|
|
51
|
+
if (ch === '"') {
|
|
52
|
+
if (quoted && record[i + 1] === '"') {
|
|
53
|
+
cur += '"';
|
|
54
|
+
i++;
|
|
55
|
+
} else quoted = !quoted;
|
|
56
|
+
} else if (ch === "," && !quoted) {
|
|
57
|
+
cells.push(cur);
|
|
58
|
+
cur = "";
|
|
59
|
+
} else cur += ch;
|
|
60
|
+
}
|
|
61
|
+
cells.push(cur);
|
|
62
|
+
return cells.map((c) => c.trim());
|
|
63
|
+
}
|
|
64
|
+
var cellValue = (raw) => {
|
|
65
|
+
try {
|
|
66
|
+
return JSON.parse(raw);
|
|
67
|
+
} catch {
|
|
68
|
+
return raw;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
function companyRows(text) {
|
|
72
|
+
const [header, ...rows] = csvRecords(text);
|
|
73
|
+
const cols = csvCells(header ?? "");
|
|
74
|
+
if (cols[0] !== "company_id") usage("--file: the first column is company_id (LinkedIn's numeric company id), then one column per field key.");
|
|
75
|
+
const keys = cols.slice(1);
|
|
76
|
+
const badKey = keys.find((k) => !KEY.test(k));
|
|
77
|
+
if (!keys.length || badKey !== void 0) usage(`--file: each field column is a key of 1 to 64 letters, digits or _${badKey !== void 0 ? ` (got ${JSON.stringify(badKey)})` : ""}.`);
|
|
78
|
+
if (new Set(keys).size !== keys.length) usage("--file: a key appears twice in the header.");
|
|
79
|
+
if (rows.length > FILE_MAX_COMPANIES) usage(`--file: at most ${FILE_MAX_COMPANIES} companies a file (one request each); split it.`);
|
|
80
|
+
const seen = /* @__PURE__ */ new Set();
|
|
81
|
+
return rows.map((r, n) => {
|
|
82
|
+
const cells = csvCells(r);
|
|
83
|
+
const id = cells[0] ?? "";
|
|
84
|
+
if (!/^\d+$/.test(id)) usage(`--file line ${n + 2}: company_id must be LinkedIn's numeric company id.`);
|
|
85
|
+
if (seen.has(id)) usage(`--file line ${n + 2}: company ${id} appears twice.`);
|
|
86
|
+
seen.add(id);
|
|
87
|
+
const extra = {};
|
|
88
|
+
keys.forEach((k, i) => {
|
|
89
|
+
const raw = cells[i + 1] ?? "";
|
|
90
|
+
if (raw !== "") extra[k] = cellValue(raw);
|
|
91
|
+
});
|
|
92
|
+
if (!Object.keys(extra).length) usage(`--file line ${n + 2}: no field to set for company ${id}.`);
|
|
93
|
+
return { id, extra };
|
|
94
|
+
});
|
|
95
|
+
}
|
|
31
96
|
var KEY = /^[A-Za-z0-9_]{1,64}$/;
|
|
32
97
|
var companyId = (f) => {
|
|
33
98
|
const id = String(f.id ?? "").trim();
|
|
@@ -83,7 +148,7 @@ var getCmd = defineCommand({
|
|
|
83
148
|
var fieldsCmd = defineCommand({
|
|
84
149
|
meta: {
|
|
85
150
|
name: "fields",
|
|
86
|
-
description: "Set or remove your Team's own fields for one company, merged by key: set once for every Lead who works there and read in a Sequence as {{company.extra.<key>}}. Keys left out stay. At most 100 keys and 32 KiB once merged.",
|
|
151
|
+
description: "Set or remove your Team's own fields for one company, merged by key: set once for every Lead who works there and read in a Sequence as {{company.extra.<key>}}. Keys left out stay. At most 100 keys and 32 KiB once merged. --file sets many companies from a CSV (header company_id, then one column per key; an empty cell leaves that key): one request per company, in file order; it stops at the first refusal, and the companies before it are set.",
|
|
87
152
|
risk: "write",
|
|
88
153
|
rules: {
|
|
89
154
|
changes: "The company's fields in your Team; every Campaign text using {{company.extra.<key>}} reads the new value from its next send.",
|
|
@@ -94,16 +159,35 @@ var fieldsCmd = defineCommand({
|
|
|
94
159
|
},
|
|
95
160
|
errors: { RESOURCE_NOT_FOUND: "no Lead of your Team works at this company and your Team never read it.", INVALID_REQUEST: "a key outside the pattern, or the fields would pass 100 keys or 32 KiB once merged." },
|
|
96
161
|
seeAlso: ["curviate company get", "curviate campaign lint"],
|
|
97
|
-
examples: ['curviate company fields 1234567 --set tier=A --set owner="Ana Lopez"', "curviate company fields 1234567 --unset owner"]
|
|
162
|
+
examples: ['curviate company fields 1234567 --set tier=A --set owner="Ana Lopez"', "curviate company fields 1234567 --unset owner", "curviate company fields --file companies.csv"]
|
|
98
163
|
},
|
|
99
164
|
args: {
|
|
100
165
|
...WRITE_SINGLE_FLAGS,
|
|
101
|
-
id: ID,
|
|
166
|
+
id: { ...ID, required: false, description: "LinkedIn's numeric company id, for example 1234567. Not with --file." },
|
|
102
167
|
set: { type: "string", description: "key=value, repeatable. A JSON value (a number, true, a list) is stored as JSON, anything else as text." },
|
|
103
|
-
unset: { type: "string", description: "A key to remove, repeatable or a comma list." }
|
|
168
|
+
unset: { type: "string", description: "A key to remove, repeatable or a comma list." },
|
|
169
|
+
file: { type: "string", stdinArg: true, description: "A CSV of many companies: a path, or - for stdin. Header company_id, then one column per key. Not with an id, --set or --unset." }
|
|
104
170
|
},
|
|
105
171
|
run: async ({ args }) => {
|
|
106
172
|
const f = args;
|
|
173
|
+
if (f.file !== void 0) {
|
|
174
|
+
if (f.id !== void 0 || f.set !== void 0 || f.unset !== void 0) usage("--file sets companies from the file: pass no company id, --set or --unset with it.");
|
|
175
|
+
const rows = companyRows(await readFileFlag("file", f.file, { others: f }));
|
|
176
|
+
if (!rows.length) usage("--file holds no company row.");
|
|
177
|
+
if (f.preview) return void process.stdout.write(JSON.stringify(buildPreviewOutput({ method: "companies.update", args: { company_ids: rows.map((r) => r.id) }, body: { extra: rows[0].extra } })) + "\n");
|
|
178
|
+
const c2 = await rootClient(f);
|
|
179
|
+
const done = [];
|
|
180
|
+
for (const r of rows) {
|
|
181
|
+
try {
|
|
182
|
+
done.push(readableObject(await c2.companies.update(r.id, { extra: r.extra })));
|
|
183
|
+
} catch (err) {
|
|
184
|
+
process.stderr.write(`Stopped at company ${r.id}; the ${done.length} before it are set.
|
|
185
|
+
`);
|
|
186
|
+
return void await fail(err, f);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return renderSuccess({ object: "list", items: done }, outputOpts(f), process);
|
|
190
|
+
}
|
|
107
191
|
const id = companyId(f);
|
|
108
192
|
const body = extraBody(f);
|
|
109
193
|
if (f.preview) return void process.stdout.write(JSON.stringify(buildPreviewOutput({ method: "companies.update", args: { company_id: id }, body })) + "\n");
|
|
@@ -119,10 +203,11 @@ var companyRecordCommand = defineCommand({
|
|
|
119
203
|
meta: { name: "company", description: DESCRIPTIONS.companyRecord },
|
|
120
204
|
subCommands: { get: getCmd, fields: fieldsCmd },
|
|
121
205
|
async run() {
|
|
122
|
-
const { showHelp } = await import("./examples-
|
|
206
|
+
const { showHelp } = await import("./examples-5FJS47QF.js");
|
|
123
207
|
await showHelp(companyRecordCommand, ["curviate", "company"]);
|
|
124
208
|
}
|
|
125
209
|
});
|
|
126
210
|
export {
|
|
127
|
-
companyRecordCommand
|
|
211
|
+
companyRecordCommand,
|
|
212
|
+
companyRows
|
|
128
213
|
};
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
setActiveProfile,
|
|
13
13
|
updateProfileField,
|
|
14
14
|
withoutUserinfo
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KD2XY7RS.js";
|
|
16
16
|
import {
|
|
17
17
|
GLOBAL_FLAGS
|
|
18
18
|
} from "./chunk-QLKGOIWS.js";
|
|
19
19
|
import {
|
|
20
20
|
DESCRIPTIONS
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZC4S4B32.js";
|
|
22
22
|
import "./chunk-ZYURL5VK.js";
|
|
23
23
|
|
|
24
24
|
// src/commands/config.ts
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-JXDEV33Z.js";
|
|
16
16
|
import {
|
|
17
17
|
requireAccount
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HG2G5OAZ.js";
|
|
19
19
|
import {
|
|
20
20
|
buildPreviewOutput
|
|
21
21
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
readablePage,
|
|
27
27
|
rejectPaginationModifiersWithoutAll,
|
|
28
28
|
streamAll
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5AJS2V4T.js";
|
|
30
30
|
import {
|
|
31
31
|
renderError,
|
|
32
32
|
renderSuccess,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
createClient,
|
|
38
38
|
resolveEffectiveConfig
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KD2XY7RS.js";
|
|
40
40
|
import {
|
|
41
41
|
GLOBAL_FLAGS,
|
|
42
42
|
WRITE_FLAGS,
|
|
@@ -44,12 +44,12 @@ import {
|
|
|
44
44
|
} from "./chunk-QLKGOIWS.js";
|
|
45
45
|
import {
|
|
46
46
|
DESCRIPTIONS
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-ZC4S4B32.js";
|
|
48
48
|
import {
|
|
49
49
|
nearestSubcommand
|
|
50
50
|
} from "./chunk-FDJMAF7D.js";
|
|
51
51
|
import "./chunk-ZYURL5VK.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-EWSOIFG2.js";
|
|
53
53
|
|
|
54
54
|
// src/commands/connect.ts
|
|
55
55
|
import { defineCommand } from "citty";
|
|
@@ -93,7 +93,7 @@ async function runConnectSend(client, flags, out) {
|
|
|
93
93
|
} catch (err) {
|
|
94
94
|
const { CurviateError } = await import("@curviate/sdk");
|
|
95
95
|
if (err instanceof CurviateError) {
|
|
96
|
-
const { getExitCode } = await import("./exit-codes-
|
|
96
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
97
97
|
renderError(err, outOpts, out);
|
|
98
98
|
process.exit(getExitCode(err));
|
|
99
99
|
}
|
|
@@ -132,7 +132,7 @@ async function runConnectSent(client, flags, out) {
|
|
|
132
132
|
} catch (err) {
|
|
133
133
|
const { CurviateError } = await import("@curviate/sdk");
|
|
134
134
|
if (err instanceof CurviateError) {
|
|
135
|
-
const { getExitCode } = await import("./exit-codes-
|
|
135
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
136
136
|
renderError(err, outOpts, out);
|
|
137
137
|
process.exit(getExitCode(err));
|
|
138
138
|
}
|
|
@@ -171,7 +171,7 @@ async function runConnectReceived(client, flags, out) {
|
|
|
171
171
|
} catch (err) {
|
|
172
172
|
const { CurviateError } = await import("@curviate/sdk");
|
|
173
173
|
if (err instanceof CurviateError) {
|
|
174
|
-
const { getExitCode } = await import("./exit-codes-
|
|
174
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
175
175
|
renderError(err, outOpts, out);
|
|
176
176
|
process.exit(getExitCode(err));
|
|
177
177
|
}
|
|
@@ -200,7 +200,7 @@ async function runConnectAccept(client, flags, out) {
|
|
|
200
200
|
} catch (err) {
|
|
201
201
|
const { CurviateError } = await import("@curviate/sdk");
|
|
202
202
|
if (err instanceof CurviateError) {
|
|
203
|
-
const { getExitCode } = await import("./exit-codes-
|
|
203
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
204
204
|
renderError(err, outOpts, out);
|
|
205
205
|
process.exit(getExitCode(err));
|
|
206
206
|
}
|
|
@@ -229,7 +229,7 @@ async function runConnectDecline(client, flags, out) {
|
|
|
229
229
|
} catch (err) {
|
|
230
230
|
const { CurviateError } = await import("@curviate/sdk");
|
|
231
231
|
if (err instanceof CurviateError) {
|
|
232
|
-
const { getExitCode } = await import("./exit-codes-
|
|
232
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
233
233
|
renderError(err, outOpts, out);
|
|
234
234
|
process.exit(getExitCode(err));
|
|
235
235
|
}
|
|
@@ -258,7 +258,7 @@ async function runConnectCancel(client, flags, out) {
|
|
|
258
258
|
} catch (err) {
|
|
259
259
|
const { CurviateError } = await import("@curviate/sdk");
|
|
260
260
|
if (err instanceof CurviateError) {
|
|
261
|
-
const { getExitCode } = await import("./exit-codes-
|
|
261
|
+
const { getExitCode } = await import("./exit-codes-LQDMGDII.js");
|
|
262
262
|
renderError(err, outOpts, out);
|
|
263
263
|
process.exit(getExitCode(err));
|
|
264
264
|
}
|