@curviate/cli 0.33.0 → 0.34.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 +49 -0
- package/README.md +11 -1
- package/dist/{account-IPAW6YRD.js → account-463D5EVY.js} +6 -6
- package/dist/{chunk-REO2BCEX.js → chunk-6W7364S3.js} +1 -1
- package/dist/{chunk-4IPHFPLO.js → chunk-7JU4IXXG.js} +1 -1
- package/dist/{chunk-5SHLELR7.js → chunk-BN7L7WSY.js} +5 -5
- package/dist/{chunk-4EH6EWFW.js → chunk-DCZR4M7G.js} +1 -1
- package/dist/{chunk-27E2M2PS.js → chunk-MNDXMGPX.js} +63 -22
- package/dist/{chunk-4GXO42ZH.js → chunk-XDQHNUEU.js} +1 -1
- package/dist/{chunk-LJR4LJG6.js → chunk-XP2LN6F6.js} +53 -0
- package/dist/{chunk-YCLU5VSN.js → chunk-XZJQQJBE.js} +2 -2
- package/dist/{chunk-REVD4GXL.js → chunk-ZJ7D3NFS.js} +1 -1
- package/dist/cli.js +23 -23
- package/dist/{comment-F2O4UOSD.js → comment-G6RB2PBZ.js} +7 -7
- package/dist/{company-ANZGO2HT.js → company-OWND3W3L.js} +8 -8
- package/dist/{config-ZD3Y5MWP.js → config-RUBXWFQ3.js} +2 -2
- package/dist/{connect-HYJCGYFO.js → connect-3E7EC5ZM.js} +12 -12
- package/dist/{doctor-VPGGB5CW.js → doctor-Z6OSCGKT.js} +4 -4
- package/dist/{exit-codes-ZFWQJYOY.js → exit-codes-YSFFFWMS.js} +1 -1
- package/dist/{feed-IZZYSYYI.js → feed-VDTFIMKN.js} +6 -6
- package/dist/{group-ETDDF2PJ.js → group-KDJHY2IM.js} +6 -6
- package/dist/{inbox-XQQ4YRRO.js → inbox-DQLX2LR7.js} +18 -7
- package/dist/{inboxes-6KHXXEBC.js → inboxes-WMNHOPY7.js} +6 -6
- package/dist/{job-PBTJ5DWL.js → job-ESKS2LDJ.js} +7 -7
- package/dist/{login-HP5URYD6.js → login-YTVPIN27.js} +2 -2
- package/dist/{message-DQQPMRFU.js → message-5W2R3YHS.js} +6 -6
- package/dist/{notification-CXIRJB57.js → notification-IGNUH2GR.js} +6 -6
- package/dist/{post-2S7FYMZO.js → post-NLI76K74.js} +8 -8
- package/dist/{profile-UCERD6RR.js → profile-TBKKIICM.js} +21 -58
- package/dist/{recruiter-PJFUM2ZZ.js → recruiter-AEJRHIX5.js} +8 -8
- package/dist/{sales-nav-7XNJGVIX.js → sales-nav-SW6WJVMD.js} +7 -7
- package/dist/{search-DYGIIODT.js → search-CS6VN5AG.js} +16 -16
- package/dist/{setup-BRULZH53.js → setup-ANHJZJ2S.js} +4 -4
- package/dist/{webhook-2TKWOXYK.js → webhook-NGMRJMQ5.js} +4 -4
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
+
parseSectionsFlag,
|
|
3
4
|
slimProfile,
|
|
4
|
-
slimProfileMe
|
|
5
|
-
|
|
5
|
+
slimProfileMe,
|
|
6
|
+
withRequestedSections
|
|
7
|
+
} from "./chunk-XP2LN6F6.js";
|
|
6
8
|
import {
|
|
7
9
|
RETRIEVAL_FLAGS,
|
|
8
10
|
hasRetrievalFlags,
|
|
@@ -11,7 +13,7 @@ import {
|
|
|
11
13
|
import {
|
|
12
14
|
resolveMemberOrMeProviderId,
|
|
13
15
|
resolveMemberProviderId
|
|
14
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZJ7D3NFS.js";
|
|
15
17
|
import {
|
|
16
18
|
AttachError,
|
|
17
19
|
readAttachment,
|
|
@@ -22,7 +24,7 @@ import {
|
|
|
22
24
|
} from "./chunk-UEAX6KUB.js";
|
|
23
25
|
import {
|
|
24
26
|
requireAccount
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MNDXMGPX.js";
|
|
26
28
|
import {
|
|
27
29
|
buildPreviewOutput
|
|
28
30
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -37,59 +39,20 @@ import {
|
|
|
37
39
|
resolveEffectiveConfig,
|
|
38
40
|
streamAll,
|
|
39
41
|
writeNdjsonItem
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-7JU4IXXG.js";
|
|
43
|
+
import "./chunk-XZJQQJBE.js";
|
|
42
44
|
import {
|
|
43
45
|
createClient
|
|
44
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-DCZR4M7G.js";
|
|
45
47
|
import {
|
|
46
48
|
GLOBAL_FLAGS,
|
|
47
49
|
NON_STREAM_FLAGS,
|
|
48
50
|
READ_SINGLE_FLAGS,
|
|
49
51
|
WRITE_SINGLE_FLAGS
|
|
50
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-XDQHNUEU.js";
|
|
51
53
|
|
|
52
54
|
// src/commands/profile.ts
|
|
53
55
|
import { defineCommand } from "citty";
|
|
54
|
-
|
|
55
|
-
// src/lib/sections.ts
|
|
56
|
-
var SECTION_BASE_NAMES = [
|
|
57
|
-
"experience",
|
|
58
|
-
"education",
|
|
59
|
-
"languages",
|
|
60
|
-
"skills",
|
|
61
|
-
"certifications",
|
|
62
|
-
"volunteer_experience",
|
|
63
|
-
"projects",
|
|
64
|
-
"recommendations",
|
|
65
|
-
"interests"
|
|
66
|
-
];
|
|
67
|
-
var VALID_LINKEDIN_SECTIONS = /* @__PURE__ */ new Set([
|
|
68
|
-
"linkedin_*",
|
|
69
|
-
...SECTION_BASE_NAMES.flatMap((n) => [`linkedin_${n}`, `linkedin_${n}_preview`])
|
|
70
|
-
]);
|
|
71
|
-
var CANONICAL_SECTION_VALUES = [
|
|
72
|
-
"linkedin_*",
|
|
73
|
-
...SECTION_BASE_NAMES.map((n) => `linkedin_${n}`)
|
|
74
|
-
];
|
|
75
|
-
function parseSectionsFlag(raw) {
|
|
76
|
-
const values = raw.split(",").map((s) => s.trim()).filter(Boolean);
|
|
77
|
-
const sections = [];
|
|
78
|
-
for (const value of values) {
|
|
79
|
-
const canonical = value.startsWith("linkedin_") ? value : `linkedin_${value}`;
|
|
80
|
-
if (!VALID_LINKEDIN_SECTIONS.has(canonical)) {
|
|
81
|
-
return {
|
|
82
|
-
ok: false,
|
|
83
|
-
error: `error: --sections: unknown section "${value}". Valid values: ${CANONICAL_SECTION_VALUES.join(", ")} (each also has a _preview variant).
|
|
84
|
-
`
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
sections.push(canonical);
|
|
88
|
-
}
|
|
89
|
-
return { ok: true, sections };
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// src/commands/profile.ts
|
|
93
56
|
function rejectPreviewOnRead(preview, out) {
|
|
94
57
|
if (preview) {
|
|
95
58
|
out.stderr.write("error: --preview is only valid on write commands (mutations). Reads just run.\n");
|
|
@@ -220,7 +183,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
220
183
|
} catch (err) {
|
|
221
184
|
const { CurviateError } = await import("@curviate/sdk");
|
|
222
185
|
if (err instanceof CurviateError) {
|
|
223
|
-
const { getExitCode } = await import("./exit-codes-
|
|
186
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
224
187
|
renderError(err, outOpts, out);
|
|
225
188
|
process.exit(getExitCode(err));
|
|
226
189
|
}
|
|
@@ -241,12 +204,12 @@ async function runProfileMe(client, flags, out) {
|
|
|
241
204
|
}
|
|
242
205
|
try {
|
|
243
206
|
const result = await ns.users.get("me", params);
|
|
244
|
-
const slimOutOpts = { ...outOpts, slim: slimProfileMe };
|
|
207
|
+
const slimOutOpts = { ...outOpts, slim: withRequestedSections(slimProfileMe, params.linkedin_sections) };
|
|
245
208
|
renderSuccess(result, slimOutOpts, out);
|
|
246
209
|
} catch (err) {
|
|
247
210
|
const { CurviateError } = await import("@curviate/sdk");
|
|
248
211
|
if (err instanceof CurviateError) {
|
|
249
|
-
const { getExitCode } = await import("./exit-codes-
|
|
212
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
250
213
|
renderError(err, outOpts, out);
|
|
251
214
|
process.exit(getExitCode(err));
|
|
252
215
|
}
|
|
@@ -372,13 +335,13 @@ async function runProfileGet(client, flags, out) {
|
|
|
372
335
|
}
|
|
373
336
|
const getId = flags.sections ? await resolveMemberOrMeProviderId(ns, rawId, retrievalQuery) : resolvedId;
|
|
374
337
|
const result = await ns.users.get(getId, params);
|
|
375
|
-
const getOutOpts = { ...outOpts, slim: slimProfile };
|
|
338
|
+
const getOutOpts = { ...outOpts, slim: withRequestedSections(slimProfile, parsedSections) };
|
|
376
339
|
renderSuccess(result, getOutOpts, out);
|
|
377
340
|
}
|
|
378
341
|
} catch (err) {
|
|
379
342
|
const { CurviateError } = await import("@curviate/sdk");
|
|
380
343
|
if (err instanceof CurviateError) {
|
|
381
|
-
const { getExitCode } = await import("./exit-codes-
|
|
344
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
382
345
|
renderError(err, outOpts, out);
|
|
383
346
|
process.exit(getExitCode(err));
|
|
384
347
|
}
|
|
@@ -417,7 +380,7 @@ async function runProfileRelations(client, flags, out) {
|
|
|
417
380
|
} catch (err) {
|
|
418
381
|
const { CurviateError } = await import("@curviate/sdk");
|
|
419
382
|
if (err instanceof CurviateError) {
|
|
420
|
-
const { getExitCode } = await import("./exit-codes-
|
|
383
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
421
384
|
renderError(err, outOpts, out);
|
|
422
385
|
process.exit(getExitCode(err));
|
|
423
386
|
}
|
|
@@ -457,7 +420,7 @@ async function runProfileEndorse(client, flags, out) {
|
|
|
457
420
|
async function handleSdkError(err, outOpts, out) {
|
|
458
421
|
const { CurviateError } = await import("@curviate/sdk");
|
|
459
422
|
if (err instanceof CurviateError) {
|
|
460
|
-
const { getExitCode } = await import("./exit-codes-
|
|
423
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
461
424
|
renderError(err, outOpts, out);
|
|
462
425
|
process.exit(getExitCode(err));
|
|
463
426
|
}
|
|
@@ -698,7 +661,7 @@ var profileMeCommand = defineCommand({
|
|
|
698
661
|
...RETRIEVAL_FLAGS,
|
|
699
662
|
sections: {
|
|
700
663
|
type: "string",
|
|
701
|
-
description: "Comma-separated LinkedIn sections to fetch: linkedin_experience, linkedin_education, linkedin_languages, linkedin_skills, linkedin_certifications, linkedin_volunteer_experience, linkedin_projects, linkedin_recommendations, linkedin_interests, or linkedin_* for all (each also has a _preview variant). A bare value (e.g. skills) is auto-prefixed to linkedin_skills. Only applies to the base getMe call (no activity flag)."
|
|
664
|
+
description: "Comma-separated LinkedIn sections to fetch: linkedin_experience, linkedin_education, linkedin_languages, linkedin_skills, linkedin_certifications, linkedin_volunteer_experience, linkedin_projects, linkedin_recommendations, linkedin_interests, or linkedin_* for all (each also has a _preview variant). A bare value (e.g. skills) is auto-prefixed to linkedin_skills. Each requested section is added to the output under its own name (skills). Only applies to the base getMe call (no activity flag)."
|
|
702
665
|
},
|
|
703
666
|
posts: {
|
|
704
667
|
type: "boolean",
|
|
@@ -712,7 +675,7 @@ var profileMeCommand = defineCommand({
|
|
|
712
675
|
},
|
|
713
676
|
reactions: {
|
|
714
677
|
type: "boolean",
|
|
715
|
-
description: "List own reactions.",
|
|
678
|
+
description: "List own reactions. Items carry no time of the reaction: `parent_post.created_at` is when the post was created, not when it was reacted to, so the listing cannot be filtered by date; without `--all`, `--limit` caps the read at one page.",
|
|
716
679
|
default: false
|
|
717
680
|
},
|
|
718
681
|
followers: {
|
|
@@ -896,13 +859,13 @@ var profileCommand = defineCommand({
|
|
|
896
859
|
id: { type: "positional", description: "Member identifier (URL, slug, or URN). Optional for subcommands.", required: false },
|
|
897
860
|
posts: { type: "boolean", description: "List the profile's posts.", default: false },
|
|
898
861
|
comments: { type: "boolean", description: "List the profile's comments.", default: false },
|
|
899
|
-
reactions: { type: "boolean", description: "List the profile's reactions.", default: false },
|
|
862
|
+
reactions: { type: "boolean", description: "List the profile's reactions. Items carry no time of the reaction: `parent_post.created_at` is when the post was created, not when it was reacted to, so the listing cannot be filtered by date; without `--all`, `--limit` caps the read at one page.", default: false },
|
|
900
863
|
followers: { type: "boolean", description: "List the profile's followers.", default: false },
|
|
901
864
|
"is-company": { type: "boolean", description: "When listing posts, treat the profile as a company page.", default: false },
|
|
902
865
|
...RETRIEVAL_FLAGS,
|
|
903
866
|
sections: {
|
|
904
867
|
type: "string",
|
|
905
|
-
description: "Comma-separated LinkedIn sections to fetch: linkedin_experience, linkedin_education, linkedin_languages, linkedin_skills, linkedin_certifications, linkedin_volunteer_experience, linkedin_projects, linkedin_recommendations, linkedin_interests, or linkedin_* for all (each also has a _preview variant). A bare value (e.g. skills) is auto-prefixed to linkedin_skills."
|
|
868
|
+
description: "Comma-separated LinkedIn sections to fetch: linkedin_experience, linkedin_education, linkedin_languages, linkedin_skills, linkedin_certifications, linkedin_volunteer_experience, linkedin_projects, linkedin_recommendations, linkedin_interests, or linkedin_* for all (each also has a _preview variant). A bare value (e.g. skills) is auto-prefixed to linkedin_skills. Each requested section is added to the output under its own name (skills)."
|
|
906
869
|
}
|
|
907
870
|
},
|
|
908
871
|
subCommands: {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
DEFAULT_FILTER_READERS,
|
|
4
4
|
assembleFilters,
|
|
5
5
|
splitCsv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6W7364S3.js";
|
|
7
7
|
import {
|
|
8
8
|
slimJob
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XP2LN6F6.js";
|
|
10
10
|
import {
|
|
11
11
|
BinaryOutputError,
|
|
12
12
|
writeBinaryOutput
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-UEAX6KUB.js";
|
|
23
23
|
import {
|
|
24
24
|
requireAccount
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MNDXMGPX.js";
|
|
26
26
|
import {
|
|
27
27
|
buildPreviewOutput
|
|
28
28
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
resolveEffectiveConfig,
|
|
37
37
|
streamAll,
|
|
38
38
|
writeNdjsonItem
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-7JU4IXXG.js";
|
|
40
|
+
import "./chunk-XZJQQJBE.js";
|
|
41
41
|
import {
|
|
42
42
|
createClient,
|
|
43
43
|
downloadBinary
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-DCZR4M7G.js";
|
|
45
45
|
import {
|
|
46
46
|
GLOBAL_FLAGS,
|
|
47
47
|
NON_STREAM_FLAGS,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
WRITE_FLAGS,
|
|
50
50
|
WRITE_SINGLE_FLAGS,
|
|
51
51
|
isStdinToken
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-XDQHNUEU.js";
|
|
53
53
|
|
|
54
54
|
// src/commands/recruiter.ts
|
|
55
55
|
import { defineCommand } from "citty";
|
|
@@ -81,7 +81,7 @@ function normalizeAttachPaths(attach) {
|
|
|
81
81
|
async function handleSdkError(err, outOpts, out) {
|
|
82
82
|
const { CurviateError } = await import("@curviate/sdk");
|
|
83
83
|
if (err instanceof CurviateError) {
|
|
84
|
-
const { getExitCode } = await import("./exit-codes-
|
|
84
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
85
85
|
renderError(err, outOpts, out);
|
|
86
86
|
process.exit(getExitCode(err));
|
|
87
87
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DEFAULT_FILTER_READERS,
|
|
4
4
|
assembleFilters,
|
|
5
5
|
splitCsv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6W7364S3.js";
|
|
7
7
|
import {
|
|
8
8
|
AttachError,
|
|
9
9
|
readAttachment,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-UEAX6KUB.js";
|
|
15
15
|
import {
|
|
16
16
|
requireAccount
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MNDXMGPX.js";
|
|
18
18
|
import {
|
|
19
19
|
buildPreviewOutput
|
|
20
20
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -28,17 +28,17 @@ import {
|
|
|
28
28
|
resolveEffectiveConfig,
|
|
29
29
|
streamAll,
|
|
30
30
|
writeNdjsonItem
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-7JU4IXXG.js";
|
|
32
|
+
import "./chunk-XZJQQJBE.js";
|
|
33
33
|
import {
|
|
34
34
|
createClient
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-DCZR4M7G.js";
|
|
36
36
|
import {
|
|
37
37
|
GLOBAL_FLAGS,
|
|
38
38
|
NON_STREAM_FLAGS,
|
|
39
39
|
READ_SINGLE_FLAGS,
|
|
40
40
|
WRITE_FLAGS
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XDQHNUEU.js";
|
|
42
42
|
|
|
43
43
|
// src/commands/sales-nav.ts
|
|
44
44
|
import { defineCommand } from "citty";
|
|
@@ -68,7 +68,7 @@ function normalizeAttachPaths(attach) {
|
|
|
68
68
|
async function handleSdkError(err, outOpts, out) {
|
|
69
69
|
const { CurviateError } = await import("@curviate/sdk");
|
|
70
70
|
if (err instanceof CurviateError) {
|
|
71
|
-
const { getExitCode } = await import("./exit-codes-
|
|
71
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
72
72
|
renderError(err, outOpts, out);
|
|
73
73
|
process.exit(getExitCode(err));
|
|
74
74
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
assembleFilters,
|
|
5
5
|
splitCsv,
|
|
6
6
|
splitCsvNumbers
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6W7364S3.js";
|
|
8
8
|
import {
|
|
9
9
|
slimSearchCompanies,
|
|
10
10
|
slimSearchCompaniesItem,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
slimSearchPeopleItem,
|
|
15
15
|
slimSearchPosts,
|
|
16
16
|
slimSearchPostsItem
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XP2LN6F6.js";
|
|
18
18
|
import {
|
|
19
19
|
requireAccount
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MNDXMGPX.js";
|
|
21
21
|
import {
|
|
22
22
|
pageDelayFromFlags,
|
|
23
23
|
readablePage,
|
|
@@ -28,15 +28,15 @@ import {
|
|
|
28
28
|
resolveEffectiveConfig,
|
|
29
29
|
streamAll,
|
|
30
30
|
writeNdjsonItem
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-7JU4IXXG.js";
|
|
32
|
+
import "./chunk-XZJQQJBE.js";
|
|
33
33
|
import {
|
|
34
34
|
createClient
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-DCZR4M7G.js";
|
|
36
36
|
import {
|
|
37
37
|
GLOBAL_FLAGS,
|
|
38
38
|
NON_STREAM_FLAGS
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XDQHNUEU.js";
|
|
40
40
|
|
|
41
41
|
// src/commands/search.ts
|
|
42
42
|
import { defineCommand } from "citty";
|
|
@@ -224,7 +224,7 @@ async function runSearchPeople(client, flags, out, readers = DEFAULT_FILTER_READ
|
|
|
224
224
|
} catch (err) {
|
|
225
225
|
const { CurviateError } = await import("@curviate/sdk");
|
|
226
226
|
if (err instanceof CurviateError) {
|
|
227
|
-
const { getExitCode } = await import("./exit-codes-
|
|
227
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
228
228
|
renderError(err, outOpts, out);
|
|
229
229
|
process.exit(getExitCode(err));
|
|
230
230
|
}
|
|
@@ -267,7 +267,7 @@ async function runSearchCompanies(client, flags, out, readers = DEFAULT_FILTER_R
|
|
|
267
267
|
} catch (err) {
|
|
268
268
|
const { CurviateError } = await import("@curviate/sdk");
|
|
269
269
|
if (err instanceof CurviateError) {
|
|
270
|
-
const { getExitCode } = await import("./exit-codes-
|
|
270
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
271
271
|
renderError(err, outOpts, out);
|
|
272
272
|
process.exit(getExitCode(err));
|
|
273
273
|
}
|
|
@@ -310,7 +310,7 @@ async function runSearchPosts(client, flags, out, readers = DEFAULT_FILTER_READE
|
|
|
310
310
|
} catch (err) {
|
|
311
311
|
const { CurviateError } = await import("@curviate/sdk");
|
|
312
312
|
if (err instanceof CurviateError) {
|
|
313
|
-
const { getExitCode } = await import("./exit-codes-
|
|
313
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
314
314
|
renderError(err, outOpts, out);
|
|
315
315
|
process.exit(getExitCode(err));
|
|
316
316
|
}
|
|
@@ -353,7 +353,7 @@ async function runSearchJobs(client, flags, out, readers = DEFAULT_FILTER_READER
|
|
|
353
353
|
} catch (err) {
|
|
354
354
|
const { CurviateError } = await import("@curviate/sdk");
|
|
355
355
|
if (err instanceof CurviateError) {
|
|
356
|
-
const { getExitCode } = await import("./exit-codes-
|
|
356
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
357
357
|
renderError(err, outOpts, out);
|
|
358
358
|
process.exit(getExitCode(err));
|
|
359
359
|
}
|
|
@@ -386,7 +386,7 @@ async function runSearchParameters(client, flags, out) {
|
|
|
386
386
|
} catch (err) {
|
|
387
387
|
const { CurviateError } = await import("@curviate/sdk");
|
|
388
388
|
if (err instanceof CurviateError) {
|
|
389
|
-
const { getExitCode } = await import("./exit-codes-
|
|
389
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
390
390
|
renderError(err, outOpts, out);
|
|
391
391
|
process.exit(getExitCode(err));
|
|
392
392
|
}
|
|
@@ -428,7 +428,7 @@ async function runSearchGroups(client, flags, out) {
|
|
|
428
428
|
} catch (err) {
|
|
429
429
|
const { CurviateError } = await import("@curviate/sdk");
|
|
430
430
|
if (err instanceof CurviateError) {
|
|
431
|
-
const { getExitCode } = await import("./exit-codes-
|
|
431
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
432
432
|
renderError(err, outOpts, out);
|
|
433
433
|
process.exit(getExitCode(err));
|
|
434
434
|
}
|
|
@@ -472,7 +472,7 @@ async function runSearchServices(client, flags, out) {
|
|
|
472
472
|
} catch (err) {
|
|
473
473
|
const { CurviateError } = await import("@curviate/sdk");
|
|
474
474
|
if (err instanceof CurviateError) {
|
|
475
|
-
const { getExitCode } = await import("./exit-codes-
|
|
475
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
476
476
|
renderError(err, outOpts, out);
|
|
477
477
|
process.exit(getExitCode(err));
|
|
478
478
|
}
|
|
@@ -499,7 +499,7 @@ async function runSearchServiceParameters(client, flags, out) {
|
|
|
499
499
|
} catch (err) {
|
|
500
500
|
const { CurviateError } = await import("@curviate/sdk");
|
|
501
501
|
if (err instanceof CurviateError) {
|
|
502
|
-
const { getExitCode } = await import("./exit-codes-
|
|
502
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
503
503
|
renderError(err, outOpts, out);
|
|
504
504
|
process.exit(getExitCode(err));
|
|
505
505
|
}
|
|
@@ -538,7 +538,7 @@ async function runSearchFromUrl(client, flags, out) {
|
|
|
538
538
|
} catch (err) {
|
|
539
539
|
const { CurviateError } = await import("@curviate/sdk");
|
|
540
540
|
if (err instanceof CurviateError) {
|
|
541
|
-
const { getExitCode } = await import("./exit-codes-
|
|
541
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
542
542
|
renderError(err, outOpts, out);
|
|
543
543
|
process.exit(getExitCode(err));
|
|
544
544
|
}
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
readablePage,
|
|
7
7
|
resolveEffectiveConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7JU4IXXG.js";
|
|
9
9
|
import {
|
|
10
10
|
getExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XZJQQJBE.js";
|
|
12
12
|
import {
|
|
13
13
|
createClient,
|
|
14
14
|
getConfigPath,
|
|
15
15
|
writeProfile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DCZR4M7G.js";
|
|
17
17
|
import {
|
|
18
18
|
GLOBAL_FLAGS,
|
|
19
19
|
defaultReadStdin,
|
|
20
20
|
isStdinToken,
|
|
21
21
|
resolveTextOrStdin
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XDQHNUEU.js";
|
|
23
23
|
|
|
24
24
|
// src/commands/setup.ts
|
|
25
25
|
import { defineCommand } from "citty";
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
resolveEffectiveConfig,
|
|
13
13
|
streamAll,
|
|
14
14
|
writeNdjsonItem
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7JU4IXXG.js";
|
|
16
16
|
import {
|
|
17
17
|
createClient
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DCZR4M7G.js";
|
|
19
19
|
import {
|
|
20
20
|
GLOBAL_FLAGS,
|
|
21
21
|
NON_STREAM_FLAGS,
|
|
22
22
|
defaultReadStdin,
|
|
23
23
|
isStdinToken
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XDQHNUEU.js";
|
|
25
25
|
|
|
26
26
|
// src/commands/webhook.ts
|
|
27
27
|
import { defineCommand } from "citty";
|
|
@@ -54,7 +54,7 @@ function resolveOutputOpts(flags) {
|
|
|
54
54
|
async function handleError(err, outOpts, out) {
|
|
55
55
|
const { CurviateError } = await import("@curviate/sdk");
|
|
56
56
|
if (err instanceof CurviateError) {
|
|
57
|
-
const { getExitCode } = await import("./exit-codes-
|
|
57
|
+
const { getExitCode } = await import("./exit-codes-YSFFFWMS.js");
|
|
58
58
|
renderError(err, outOpts, out);
|
|
59
59
|
process.exit(getExitCode(err));
|
|
60
60
|
}
|