@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
|
@@ -3,30 +3,31 @@ import {
|
|
|
3
3
|
DEFAULT_FILTER_READERS,
|
|
4
4
|
assembleFilters,
|
|
5
5
|
splitCsv
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
slimJob
|
|
9
|
-
} from "./chunk-LCGXJGPB.js";
|
|
10
|
-
import {
|
|
11
|
-
BinaryOutputError,
|
|
12
|
-
writeBinaryOutput
|
|
13
|
-
} from "./chunk-UWO2D4HW.js";
|
|
6
|
+
} from "./chunk-3RCW7URJ.js";
|
|
14
7
|
import {
|
|
15
8
|
AttachError,
|
|
16
9
|
readAttachment,
|
|
17
10
|
toAttachmentPayload
|
|
18
11
|
} from "./chunk-5I6JJJIV.js";
|
|
12
|
+
import {
|
|
13
|
+
BinaryOutputError,
|
|
14
|
+
writeBinaryOutput
|
|
15
|
+
} from "./chunk-UWO2D4HW.js";
|
|
19
16
|
import {
|
|
20
17
|
resolveIdentifier,
|
|
21
18
|
resolveJobIdentifier
|
|
22
19
|
} from "./chunk-UEAX6KUB.js";
|
|
23
20
|
import {
|
|
24
21
|
requireAccount
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-V7FJWTZW.js";
|
|
23
|
+
import {
|
|
24
|
+
slimJob
|
|
25
|
+
} from "./chunk-LCGXJGPB.js";
|
|
26
26
|
import {
|
|
27
27
|
buildPreviewOutput
|
|
28
28
|
} from "./chunk-TCUYH5GO.js";
|
|
29
29
|
import {
|
|
30
|
+
isJsonMode,
|
|
30
31
|
pageDelayFromFlags,
|
|
31
32
|
readCursorFlag,
|
|
32
33
|
readMaxPagesFlag,
|
|
@@ -39,25 +40,35 @@ import {
|
|
|
39
40
|
resolveEffectiveConfig,
|
|
40
41
|
streamAll,
|
|
41
42
|
writeNdjsonItem
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-SA2QHAXG.js";
|
|
44
|
+
import "./chunk-RXWODUWA.js";
|
|
44
45
|
import {
|
|
45
46
|
createClient,
|
|
46
47
|
downloadBinary
|
|
47
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
48
49
|
import {
|
|
49
50
|
GLOBAL_FLAGS,
|
|
50
51
|
NON_STREAM_FLAGS,
|
|
51
52
|
READ_SINGLE_FLAGS,
|
|
52
53
|
WRITE_FLAGS,
|
|
53
54
|
WRITE_SINGLE_FLAGS,
|
|
54
|
-
isStdinToken,
|
|
55
55
|
readOnly
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
57
|
+
import {
|
|
58
|
+
DESCRIPTIONS
|
|
59
|
+
} from "./chunk-D2S5OCYU.js";
|
|
60
|
+
import {
|
|
61
|
+
documentSchema,
|
|
62
|
+
parseDocument,
|
|
63
|
+
readFileFlag,
|
|
64
|
+
reportIssues,
|
|
65
|
+
validate
|
|
66
|
+
} from "./chunk-TEAWYLPO.js";
|
|
67
|
+
import "./chunk-FDJMAF7D.js";
|
|
68
|
+
import "./chunk-ZYURL5VK.js";
|
|
57
69
|
|
|
58
70
|
// src/commands/recruiter.ts
|
|
59
71
|
import { defineCommand } from "citty";
|
|
60
|
-
import { readFile } from "fs/promises";
|
|
61
72
|
function buildOutputStreams() {
|
|
62
73
|
return {
|
|
63
74
|
stdout: { write: (s) => process.stdout.write(s) },
|
|
@@ -79,7 +90,7 @@ function normalizeAttachPaths(attach) {
|
|
|
79
90
|
async function handleSdkError(err, outOpts, out) {
|
|
80
91
|
const { CurviateError } = await import("@curviate/sdk");
|
|
81
92
|
if (err instanceof CurviateError) {
|
|
82
|
-
const { getExitCode } = await import("./exit-codes-
|
|
93
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
83
94
|
renderError(err, outOpts, out);
|
|
84
95
|
process.exit(getExitCode(err));
|
|
85
96
|
}
|
|
@@ -98,36 +109,13 @@ async function readStdin() {
|
|
|
98
109
|
}
|
|
99
110
|
return Buffer.concat(chunks).toString("utf8");
|
|
100
111
|
}
|
|
101
|
-
var DEFAULT_JOB_CREATE_READERS = {
|
|
102
|
-
readFile: (path) => readFile(path, "utf8"),
|
|
103
|
-
readStdin
|
|
104
|
-
};
|
|
112
|
+
var DEFAULT_JOB_CREATE_READERS = { readStdin };
|
|
105
113
|
async function assembleRecruiterJobBody(flags, readers) {
|
|
106
114
|
let base = {};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
if (flags["body-file"] !== void 0) {
|
|
110
|
-
source = `--body-file ${flags["body-file"]}`;
|
|
111
|
-
try {
|
|
112
|
-
raw = await readers.readFile(flags["body-file"]);
|
|
113
|
-
} catch {
|
|
114
|
-
return { error: `cannot read ${source}` };
|
|
115
|
-
}
|
|
116
|
-
} else if (isStdinToken(flags.body)) {
|
|
117
|
-
source = "--body - (stdin)";
|
|
118
|
-
raw = await readers.readStdin();
|
|
119
|
-
} else if (flags.body !== void 0) {
|
|
120
|
-
return { error: "--body only accepts '-' (read JSON from stdin); use --body-file <path> for a file." };
|
|
121
|
-
}
|
|
122
|
-
if (raw !== void 0) {
|
|
123
|
-
let parsed;
|
|
124
|
-
try {
|
|
125
|
-
parsed = JSON.parse(raw);
|
|
126
|
-
} catch {
|
|
127
|
-
return { error: `${source} is not valid JSON` };
|
|
128
|
-
}
|
|
115
|
+
if (flags.file !== void 0) {
|
|
116
|
+
const parsed = parseDocument("file", await readFileFlag("file", flags.file, { readStdin: readers === DEFAULT_JOB_CREATE_READERS ? void 0 : readers.readStdin, others: flags }));
|
|
129
117
|
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
130
|
-
return { error:
|
|
118
|
+
return { error: "--file must hold a JSON object" };
|
|
131
119
|
}
|
|
132
120
|
base = parsed;
|
|
133
121
|
}
|
|
@@ -157,28 +145,25 @@ async function assembleRecruiterJobBody(flags, readers) {
|
|
|
157
145
|
if (flags["project-name"] !== void 0) base["project_name"] = flags["project-name"];
|
|
158
146
|
return { body: base };
|
|
159
147
|
}
|
|
160
|
-
var
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
process.exit(2);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
148
|
+
var RECRUITER_JOB_FIELD_FLAGS = {
|
|
149
|
+
job_title: "--job-title-id with --job-title",
|
|
150
|
+
company: "--company-id or --company-name",
|
|
151
|
+
workplace_type: "--workplace-type",
|
|
152
|
+
location: "--location",
|
|
153
|
+
employment_status: "--employment-status",
|
|
154
|
+
seniority_level: "--seniority-level",
|
|
155
|
+
description: "--description",
|
|
156
|
+
industry: "--industry",
|
|
157
|
+
job_function: "--job-function",
|
|
158
|
+
apply_method: "--apply-method",
|
|
159
|
+
project_name: "--project-name"
|
|
160
|
+
};
|
|
161
|
+
function validateRecruiterJob(command, body, flags, out) {
|
|
162
|
+
const empty = Object.keys(RECRUITER_JOB_FIELD_FLAGS).filter((k) => Array.isArray(body[k]) && body[k].length === 0);
|
|
163
|
+
const issues = [...validate(documentSchema(command), body), ...empty.map((path) => ({ path, rule: "required" }))].map(
|
|
164
|
+
(i) => i.rule === "required" && RECRUITER_JOB_FIELD_FLAGS[i.path] ? { ...i, rule: `required (${RECRUITER_JOB_FIELD_FLAGS[i.path]}, or ${i.path} in --file)` } : i
|
|
165
|
+
);
|
|
166
|
+
if (issues.length) reportIssues(issues, isJsonMode(resolveOutputOpts(flags)), out);
|
|
182
167
|
}
|
|
183
168
|
async function runRecruiterMessageNew(client, flags, out) {
|
|
184
169
|
const subject = flags.subject ?? "";
|
|
@@ -597,7 +582,6 @@ async function runRecruiterListJobs(client, flags, out) {
|
|
|
597
582
|
}
|
|
598
583
|
}
|
|
599
584
|
async function runRecruiterCreateJob(client, flags, out, readers = DEFAULT_JOB_CREATE_READERS) {
|
|
600
|
-
const accountId = await requireAccount(client, flags, out);
|
|
601
585
|
const outOpts = resolveOutputOpts(flags);
|
|
602
586
|
const assembled = await assembleRecruiterJobBody(flags, readers);
|
|
603
587
|
if ("error" in assembled) {
|
|
@@ -606,7 +590,8 @@ async function runRecruiterCreateJob(client, flags, out, readers = DEFAULT_JOB_C
|
|
|
606
590
|
process.exit(2);
|
|
607
591
|
}
|
|
608
592
|
const body = assembled.body;
|
|
609
|
-
|
|
593
|
+
validateRecruiterJob("core recruiter job create", body, flags, out);
|
|
594
|
+
const accountId = await requireAccount(client, flags, out);
|
|
610
595
|
if (flags.preview) {
|
|
611
596
|
const preview = buildPreviewOutput({
|
|
612
597
|
method: "recruiter.createJob",
|
|
@@ -626,7 +611,6 @@ async function runRecruiterCreateJob(client, flags, out, readers = DEFAULT_JOB_C
|
|
|
626
611
|
}
|
|
627
612
|
}
|
|
628
613
|
async function runRecruiterCreateProjectJob(client, flags, out, readers = DEFAULT_JOB_CREATE_READERS) {
|
|
629
|
-
const accountId = await requireAccount(client, flags, out);
|
|
630
614
|
const projectId = flags.projectId ?? "";
|
|
631
615
|
const outOpts = resolveOutputOpts(flags);
|
|
632
616
|
const assembled = await assembleRecruiterJobBody(flags, readers);
|
|
@@ -636,7 +620,8 @@ async function runRecruiterCreateProjectJob(client, flags, out, readers = DEFAUL
|
|
|
636
620
|
process.exit(2);
|
|
637
621
|
}
|
|
638
622
|
const body = assembled.body;
|
|
639
|
-
|
|
623
|
+
validateRecruiterJob("core recruiter project-job create", body, flags, out);
|
|
624
|
+
const accountId = await requireAccount(client, flags, out);
|
|
640
625
|
if (flags.preview) {
|
|
641
626
|
const preview = buildPreviewOutput({
|
|
642
627
|
method: "recruiter.createProjectJob",
|
|
@@ -656,7 +641,6 @@ async function runRecruiterCreateProjectJob(client, flags, out, readers = DEFAUL
|
|
|
656
641
|
}
|
|
657
642
|
}
|
|
658
643
|
async function runRecruiterUpdateProjectJob(client, flags, out, readers = DEFAULT_JOB_CREATE_READERS) {
|
|
659
|
-
const accountId = await requireAccount(client, flags, out);
|
|
660
644
|
const projectId = flags.projectId ?? "";
|
|
661
645
|
const jobId = flags.jobId ?? "";
|
|
662
646
|
const outOpts = resolveOutputOpts(flags);
|
|
@@ -667,6 +651,8 @@ async function runRecruiterUpdateProjectJob(client, flags, out, readers = DEFAUL
|
|
|
667
651
|
process.exit(2);
|
|
668
652
|
}
|
|
669
653
|
const body = assembled.body;
|
|
654
|
+
validateRecruiterJob("core recruiter project-job update", body, flags, out);
|
|
655
|
+
const accountId = await requireAccount(client, flags, out);
|
|
670
656
|
if (flags.preview) {
|
|
671
657
|
const preview = buildPreviewOutput({
|
|
672
658
|
method: "recruiter.updateProjectJob",
|
|
@@ -898,7 +884,7 @@ var recruiterMessageNewCommand = defineCommand({
|
|
|
898
884
|
name: "new",
|
|
899
885
|
description: "Start a new Recruiter chat with a member.",
|
|
900
886
|
examples: [
|
|
901
|
-
'curviate recruiter message new --to AEMAAA1234567 --subject "Staff Engineer role" --signature "Jane, Acme" "Hi Sam, your work on evals caught my eye."'
|
|
887
|
+
'curviate core recruiter message new --to AEMAAA1234567 --subject "Staff Engineer role" --signature "Jane, Acme" "Hi Sam, your work on evals caught my eye."'
|
|
902
888
|
]
|
|
903
889
|
},
|
|
904
890
|
args: {
|
|
@@ -941,7 +927,7 @@ var recruiterMessageCommand = defineCommand({
|
|
|
941
927
|
new: recruiterMessageNewCommand
|
|
942
928
|
},
|
|
943
929
|
async run() {
|
|
944
|
-
process.stderr.write('Usage: curviate recruiter message new --to <id> "<text>" [--attach <file>...]\n');
|
|
930
|
+
process.stderr.write('Usage: curviate core recruiter message new --to <id> "<text>" [--attach <file>...]\n');
|
|
945
931
|
}
|
|
946
932
|
});
|
|
947
933
|
var recruiterProfileCommand = defineCommand({
|
|
@@ -949,7 +935,7 @@ var recruiterProfileCommand = defineCommand({
|
|
|
949
935
|
name: "profile",
|
|
950
936
|
description: "Get a Recruiter enriched member profile.",
|
|
951
937
|
examples: [
|
|
952
|
-
"curviate recruiter profile https://www.linkedin.com/in/janesmith"
|
|
938
|
+
"curviate core recruiter profile https://www.linkedin.com/in/janesmith"
|
|
953
939
|
]
|
|
954
940
|
},
|
|
955
941
|
args: {
|
|
@@ -980,15 +966,15 @@ var recruiterSearchPeopleCommand = defineCommand({
|
|
|
980
966
|
name: "people",
|
|
981
967
|
description: "Search Recruiter member profiles.",
|
|
982
968
|
examples: [
|
|
983
|
-
'curviate recruiter search people --keywords "staff engineer"',
|
|
984
|
-
"curviate recruiter search people --filters-file filters.json"
|
|
969
|
+
'curviate core recruiter search people --keywords "staff engineer"',
|
|
970
|
+
"curviate core recruiter search people --filters-file filters.json"
|
|
985
971
|
]
|
|
986
972
|
},
|
|
987
973
|
args: {
|
|
988
974
|
...readOnly(GLOBAL_FLAGS),
|
|
989
975
|
keywords: { type: "string", description: "Keyword search string." },
|
|
990
976
|
filters: { type: "string", stdinArg: true, description: "Filter body as a JSON object (escape hatch for the full filter surface); '-' reads JSON from stdin." },
|
|
991
|
-
"filters-file": { type: "string", description: "
|
|
977
|
+
"filters-file": { type: "string", stdinArg: true, description: "The filter body as a JSON file: a path, or - to read it from stdin." },
|
|
992
978
|
"employment-type": { type: "string", description: "Employment type ids (comma-separated)." },
|
|
993
979
|
function: { type: "string", description: "Job function ids (comma-separated); maps to the API's job_function." },
|
|
994
980
|
"profile-language": { type: "string", description: "Profile language codes (comma-separated)." }
|
|
@@ -1016,7 +1002,7 @@ var recruiterSearchParametersCommand = defineCommand({
|
|
|
1016
1002
|
name: "parameters",
|
|
1017
1003
|
description: "Resolve Recruiter filter parameter IDs (POST, source-scoped).",
|
|
1018
1004
|
examples: [
|
|
1019
|
-
"curviate recruiter search parameters --source SEARCH --type LOCATION --keywords Berlin"
|
|
1005
|
+
"curviate core recruiter search parameters --source SEARCH --type LOCATION --keywords Berlin"
|
|
1020
1006
|
],
|
|
1021
1007
|
requires: [
|
|
1022
1008
|
"--project-id with --source APPLICANTS or PIPELINE."
|
|
@@ -1066,7 +1052,7 @@ var recruiterSearchCommand = defineCommand({
|
|
|
1066
1052
|
name: "search",
|
|
1067
1053
|
description: "Recruiter search operations. Also runs a pasted Recruiter search/talent-pool/applicant URL directly.",
|
|
1068
1054
|
examples: [
|
|
1069
|
-
'curviate recruiter search "https://www.linkedin.com/talent/search?searchContextId=YOUR_SEARCH"'
|
|
1055
|
+
'curviate core recruiter search "https://www.linkedin.com/talent/search?searchContextId=YOUR_SEARCH"'
|
|
1070
1056
|
]
|
|
1071
1057
|
},
|
|
1072
1058
|
args: {
|
|
@@ -1085,7 +1071,7 @@ var recruiterSearchCommand = defineCommand({
|
|
|
1085
1071
|
const flags = args;
|
|
1086
1072
|
if (!flags.url) {
|
|
1087
1073
|
process.stderr.write(
|
|
1088
|
-
"Usage: curviate recruiter search <url>\n curviate recruiter search people [--keywords <k>]\n curviate recruiter search parameters --source <s> --type <t>\n"
|
|
1074
|
+
"Usage: curviate core recruiter search <url>\n curviate core recruiter search people [--keywords <k>]\n curviate core recruiter search parameters --source <s> --type <t>\n"
|
|
1089
1075
|
);
|
|
1090
1076
|
return;
|
|
1091
1077
|
}
|
|
@@ -1110,8 +1096,8 @@ var recruiterProjectsCommand = defineCommand({
|
|
|
1110
1096
|
name: "projects",
|
|
1111
1097
|
description: "List Recruiter hiring projects.",
|
|
1112
1098
|
examples: [
|
|
1113
|
-
"curviate recruiter projects",
|
|
1114
|
-
"curviate recruiter projects --all"
|
|
1099
|
+
"curviate core recruiter projects",
|
|
1100
|
+
"curviate core recruiter projects --all"
|
|
1115
1101
|
]
|
|
1116
1102
|
},
|
|
1117
1103
|
args: { ...readOnly(GLOBAL_FLAGS) },
|
|
@@ -1138,8 +1124,8 @@ var recruiterProjectUpdateCommand = defineCommand({
|
|
|
1138
1124
|
name: "update",
|
|
1139
1125
|
description: "Edit a Recruiter project's config. All fields optional; omitted fields are left unchanged.",
|
|
1140
1126
|
examples: [
|
|
1141
|
-
'curviate recruiter project update PROJECT_ID --name "Staff Engineer 2026"',
|
|
1142
|
-
"curviate recruiter project update PROJECT_ID --visibility PRIVATE"
|
|
1127
|
+
'curviate core recruiter project update PROJECT_ID --name "Staff Engineer 2026"',
|
|
1128
|
+
"curviate core recruiter project update PROJECT_ID --visibility PRIVATE"
|
|
1143
1129
|
]
|
|
1144
1130
|
},
|
|
1145
1131
|
args: {
|
|
@@ -1153,7 +1139,7 @@ var recruiterProjectUpdateCommand = defineCommand({
|
|
|
1153
1139
|
"company-name": { type: "string", description: "Target company as free text (used when no id is given)." },
|
|
1154
1140
|
"job-title-id": { type: "string", description: "Target job-title parameter id." },
|
|
1155
1141
|
"job-title": { type: "string", description: "Target job-title display name." },
|
|
1156
|
-
location: { type: "string", description: "A LOCATION parameter id (
|
|
1142
|
+
location: { type: "string", description: "A LOCATION parameter id (from `curviate core recruiter search parameters --source SEARCH --type LOCATION --keywords <place>`)." },
|
|
1157
1143
|
"seniority-level": { type: "string", description: "Target seniority level: INTERNSHIP|ENTRY_LEVEL|ASSOCIATE|MID_SENIOR_LEVEL|DIRECTOR|EXECUTIVE|NOT_APPLICABLE." }
|
|
1158
1144
|
},
|
|
1159
1145
|
async run({ args }) {
|
|
@@ -1179,7 +1165,7 @@ var recruiterProjectCommand = defineCommand({
|
|
|
1179
1165
|
name: "project",
|
|
1180
1166
|
description: "Get a Recruiter hiring project by ID.",
|
|
1181
1167
|
examples: [
|
|
1182
|
-
"curviate recruiter project PROJECT_ID"
|
|
1168
|
+
"curviate core recruiter project PROJECT_ID"
|
|
1183
1169
|
]
|
|
1184
1170
|
},
|
|
1185
1171
|
args: {
|
|
@@ -1194,7 +1180,7 @@ var recruiterProjectCommand = defineCommand({
|
|
|
1194
1180
|
const flags = args;
|
|
1195
1181
|
if (!flags.projectId) {
|
|
1196
1182
|
process.stderr.write(
|
|
1197
|
-
"Usage: curviate recruiter project <project_id>\n curviate recruiter project update <project_id> [flags...]\n"
|
|
1183
|
+
"Usage: curviate core recruiter project <project_id>\n curviate core recruiter project update <project_id> [flags...]\n"
|
|
1198
1184
|
);
|
|
1199
1185
|
return;
|
|
1200
1186
|
}
|
|
@@ -1219,8 +1205,8 @@ var recruiterPipelineCommand = defineCommand({
|
|
|
1219
1205
|
name: "pipeline",
|
|
1220
1206
|
description: "List candidates in a project's pipeline (POST-as-list).",
|
|
1221
1207
|
examples: [
|
|
1222
|
-
"curviate recruiter pipeline PROJECT_ID",
|
|
1223
|
-
"curviate recruiter pipeline PROJECT_ID --sort-by LAST_MODIFIED"
|
|
1208
|
+
"curviate core recruiter pipeline PROJECT_ID",
|
|
1209
|
+
"curviate core recruiter pipeline PROJECT_ID --sort-by LAST_MODIFIED"
|
|
1224
1210
|
]
|
|
1225
1211
|
},
|
|
1226
1212
|
args: {
|
|
@@ -1254,7 +1240,7 @@ var recruiterSaveCandidateCommand = defineCommand({
|
|
|
1254
1240
|
name: "save-candidate",
|
|
1255
1241
|
description: "Save a candidate to a project's pipeline at a given stage.",
|
|
1256
1242
|
examples: [
|
|
1257
|
-
"curviate recruiter save-candidate PROJECT_ID --stage-id STAGE_ID --candidate-id CANDIDATE_ID"
|
|
1243
|
+
"curviate core recruiter save-candidate PROJECT_ID --stage-id STAGE_ID --candidate-id CANDIDATE_ID"
|
|
1258
1244
|
]
|
|
1259
1245
|
},
|
|
1260
1246
|
args: {
|
|
@@ -1287,8 +1273,8 @@ var recruiterJobsCommand = defineCommand({
|
|
|
1287
1273
|
name: "jobs",
|
|
1288
1274
|
description: "List Recruiter job postings.",
|
|
1289
1275
|
examples: [
|
|
1290
|
-
"curviate recruiter jobs",
|
|
1291
|
-
"curviate recruiter jobs --all"
|
|
1276
|
+
"curviate core recruiter jobs",
|
|
1277
|
+
"curviate core recruiter jobs --all"
|
|
1292
1278
|
]
|
|
1293
1279
|
},
|
|
1294
1280
|
args: { ...readOnly(GLOBAL_FLAGS) },
|
|
@@ -1311,8 +1297,7 @@ var recruiterJobsCommand = defineCommand({
|
|
|
1311
1297
|
}
|
|
1312
1298
|
});
|
|
1313
1299
|
var RECRUITER_JOB_BODY_FLAGS = {
|
|
1314
|
-
|
|
1315
|
-
body: { type: "string", stdinArg: true, description: "Read the JSON job body from stdin (pass '-')." },
|
|
1300
|
+
file: { type: "string", stdinArg: true, description: "The job document: a path to a JSON file, or - to read it from stdin. Named flags merge over it." },
|
|
1316
1301
|
"job-title-id": { type: "string", description: "Resolved job-title parameter id (merged with --job-title into job_title:{id,name})." },
|
|
1317
1302
|
"job-title": { type: "string", description: "Job title display name (merged with --job-title-id into job_title:{id,name})." },
|
|
1318
1303
|
"company-id": { type: "string", description: "Resolved company id (or use --company-name for free text)." },
|
|
@@ -1333,11 +1318,18 @@ var recruiterJobCreateCommand = defineCommand({
|
|
|
1333
1318
|
name: "create",
|
|
1334
1319
|
description: "Create a Recruiter job posting draft, opening a brand-new hiring project.",
|
|
1335
1320
|
examples: [
|
|
1336
|
-
'curviate recruiter job create --project-name "Staff Engineer 2026" --
|
|
1321
|
+
'curviate core recruiter job create --project-name "Staff Engineer 2026" --file job.json',
|
|
1322
|
+
`curviate core recruiter job create --project-name "Staff Engineer 2026" --file - <<'EOF'
|
|
1323
|
+
{"job_title": {"id": "9", "name": "Staff Engineer"}, "company": {"name": "Acme"},
|
|
1324
|
+
"workplace_type": "REMOTE", "location": "106967730", "employment_status": "FULL_TIME", "seniority_level": "MID_SENIOR_LEVEL",
|
|
1325
|
+
"description": "Acme is hiring a staff engineer to build the agent infrastructure our customers run in production: queues, schedulers, observability and the APIs on top. You will own design reviews, mentor two engineers and ship weekly.",
|
|
1326
|
+
"industry": ["4"], "job_function": ["8"], "apply_method": {"method": "external", "website_url": "https://acme.example/jobs/1"}}
|
|
1327
|
+
EOF`
|
|
1337
1328
|
],
|
|
1338
1329
|
requires: [
|
|
1339
|
-
"Each job field from its flag or from --
|
|
1340
|
-
]
|
|
1330
|
+
"Each job field from its flag or from --file: --job-title-id with --job-title, --company-id or --company-name, --workplace-type, --location, --employment-status, --seniority-level, --description, --industry, --job-function, --apply-method."
|
|
1331
|
+
],
|
|
1332
|
+
document: "core recruiter job create"
|
|
1341
1333
|
},
|
|
1342
1334
|
args: {
|
|
1343
1335
|
// Write command: WRITE_FLAGS omits pagination/projection flags
|
|
@@ -1368,7 +1360,7 @@ var recruiterJobPublishCommand = defineCommand({
|
|
|
1368
1360
|
name: "publish",
|
|
1369
1361
|
description: "Publish a Recruiter job posting draft. PROMOTED/PROMOTED_PLUS spend real money and require --budget-amount, --budget-currency, and --budget-scope.",
|
|
1370
1362
|
examples: [
|
|
1371
|
-
"curviate recruiter job publish PROJECT_ID JOB_ID --mode FREE"
|
|
1363
|
+
"curviate core recruiter job publish PROJECT_ID JOB_ID --mode FREE"
|
|
1372
1364
|
],
|
|
1373
1365
|
requires: [
|
|
1374
1366
|
"--budget-currency, --budget-amount and --budget-scope with --mode PROMOTED or PROMOTED_PLUS."
|
|
@@ -1407,7 +1399,7 @@ var recruiterApplicantsCommand = defineCommand({
|
|
|
1407
1399
|
name: "applicants",
|
|
1408
1400
|
description: "List applicants in a Recruiter project's talent pool.",
|
|
1409
1401
|
examples: [
|
|
1410
|
-
"curviate recruiter applicants PROJECT_ID --channel-id CHANNEL_ID"
|
|
1402
|
+
"curviate core recruiter applicants PROJECT_ID --channel-id CHANNEL_ID"
|
|
1411
1403
|
]
|
|
1412
1404
|
},
|
|
1413
1405
|
args: {
|
|
@@ -1440,8 +1432,8 @@ var recruiterJobGetCommand = defineCommand({
|
|
|
1440
1432
|
name: "get",
|
|
1441
1433
|
description: "Get a job posting via the Recruiter lens (any public posting, not only your own).",
|
|
1442
1434
|
examples: [
|
|
1443
|
-
"curviate recruiter job get 4100000000",
|
|
1444
|
-
"curviate recruiter job get https://www.linkedin.com/jobs/view/4100000000"
|
|
1435
|
+
"curviate core recruiter job get 4100000000",
|
|
1436
|
+
"curviate core recruiter job get https://www.linkedin.com/jobs/view/4100000000"
|
|
1445
1437
|
]
|
|
1446
1438
|
},
|
|
1447
1439
|
args: {
|
|
@@ -1471,7 +1463,7 @@ var recruiterJobCloseCommand = defineCommand({
|
|
|
1471
1463
|
name: "close",
|
|
1472
1464
|
description: "Stop a project's job posting from accepting applications (irreversible once LISTED).",
|
|
1473
1465
|
examples: [
|
|
1474
|
-
"curviate recruiter job close PROJECT_ID JOB_ID"
|
|
1466
|
+
"curviate core recruiter job close PROJECT_ID JOB_ID"
|
|
1475
1467
|
]
|
|
1476
1468
|
},
|
|
1477
1469
|
args: {
|
|
@@ -1509,7 +1501,7 @@ var recruiterJobCommand = defineCommand({
|
|
|
1509
1501
|
},
|
|
1510
1502
|
async run() {
|
|
1511
1503
|
process.stderr.write(
|
|
1512
|
-
"Usage: curviate recruiter job create [flags...]\n curviate recruiter job publish <project_id> <job_id> --mode <FREE|PROMOTED|PROMOTED_PLUS>\n curviate recruiter job close <project_id> <job_id>\n curviate recruiter job get <url|id>\n"
|
|
1504
|
+
"Usage: curviate core recruiter job create [flags...]\n curviate core recruiter job publish <project_id> <job_id> --mode <FREE|PROMOTED|PROMOTED_PLUS>\n curviate core recruiter job close <project_id> <job_id>\n curviate core recruiter job get <url|id>\n"
|
|
1513
1505
|
);
|
|
1514
1506
|
}
|
|
1515
1507
|
});
|
|
@@ -1518,7 +1510,7 @@ var recruiterProjectJobGetCommand = defineCommand({
|
|
|
1518
1510
|
name: "get",
|
|
1519
1511
|
description: "Get the single job posting attached to a project (404 when none is attached).",
|
|
1520
1512
|
examples: [
|
|
1521
|
-
"curviate recruiter project-job get PROJECT_ID"
|
|
1513
|
+
"curviate core recruiter project-job get PROJECT_ID"
|
|
1522
1514
|
]
|
|
1523
1515
|
},
|
|
1524
1516
|
args: {
|
|
@@ -1549,11 +1541,18 @@ var recruiterProjectJobCreateCommand = defineCommand({
|
|
|
1549
1541
|
name: "create",
|
|
1550
1542
|
description: "Create a job-posting draft attached to an existing project.",
|
|
1551
1543
|
examples: [
|
|
1552
|
-
"curviate recruiter project-job create PROJECT_ID --
|
|
1544
|
+
"curviate core recruiter project-job create PROJECT_ID --file job.json",
|
|
1545
|
+
`curviate core recruiter project-job create PROJECT_ID --file - <<'EOF'
|
|
1546
|
+
{"job_title": {"id": "9", "name": "Staff Engineer"}, "company": {"name": "Acme"},
|
|
1547
|
+
"workplace_type": "REMOTE", "location": "106967730", "employment_status": "FULL_TIME", "seniority_level": "MID_SENIOR_LEVEL",
|
|
1548
|
+
"description": "Acme is hiring a staff engineer to build the agent infrastructure our customers run in production: queues, schedulers, observability and the APIs on top. You will own design reviews, mentor two engineers and ship weekly.",
|
|
1549
|
+
"industry": ["4"], "job_function": ["8"], "apply_method": {"method": "external", "website_url": "https://acme.example/jobs/1"}}
|
|
1550
|
+
EOF`
|
|
1553
1551
|
],
|
|
1554
1552
|
requires: [
|
|
1555
|
-
"Each job field from its flag or from --
|
|
1556
|
-
]
|
|
1553
|
+
"Each job field from its flag or from --file: --job-title-id with --job-title, --company-id or --company-name, --workplace-type, --location, --employment-status, --seniority-level, --description, --industry, --job-function, --apply-method."
|
|
1554
|
+
],
|
|
1555
|
+
document: "core recruiter project-job create"
|
|
1557
1556
|
},
|
|
1558
1557
|
args: {
|
|
1559
1558
|
// Write command: WRITE_SINGLE_FLAGS omits pagination flags, keeps --fields
|
|
@@ -1584,7 +1583,7 @@ var recruiterProjectJobBudgetCommand = defineCommand({
|
|
|
1584
1583
|
name: "budget",
|
|
1585
1584
|
description: "Get pricing to publish a project's job posting.",
|
|
1586
1585
|
examples: [
|
|
1587
|
-
"curviate recruiter project-job budget PROJECT_ID JOB_ID"
|
|
1586
|
+
"curviate core recruiter project-job budget PROJECT_ID JOB_ID"
|
|
1588
1587
|
]
|
|
1589
1588
|
},
|
|
1590
1589
|
args: {
|
|
@@ -1616,8 +1615,12 @@ var recruiterProjectJobUpdateCommand = defineCommand({
|
|
|
1616
1615
|
name: "update",
|
|
1617
1616
|
description: "Apply a partial update to a project's job posting.",
|
|
1618
1617
|
examples: [
|
|
1619
|
-
"curviate recruiter project-job update PROJECT_ID JOB_ID --workplace-type HYBRID"
|
|
1620
|
-
|
|
1618
|
+
"curviate core recruiter project-job update PROJECT_ID JOB_ID --workplace-type HYBRID",
|
|
1619
|
+
`curviate core recruiter project-job update PROJECT_ID JOB_ID --file - <<'EOF'
|
|
1620
|
+
{"workplace_type": "HYBRID", "salary": {"currency": "EUR", "pay_frequency": "YEARLY", "min": 90000, "max": 120000}}
|
|
1621
|
+
EOF`
|
|
1622
|
+
],
|
|
1623
|
+
document: "core recruiter project-job update"
|
|
1621
1624
|
},
|
|
1622
1625
|
args: {
|
|
1623
1626
|
// Write command: WRITE_SINGLE_FLAGS omits pagination flags, keeps --fields
|
|
@@ -1649,7 +1652,7 @@ var recruiterProjectJobCommand = defineCommand({
|
|
|
1649
1652
|
name: "project-job",
|
|
1650
1653
|
description: "The single job posting attached to a Recruiter project.",
|
|
1651
1654
|
examples: [
|
|
1652
|
-
"curviate recruiter project-job PROJECT_ID"
|
|
1655
|
+
"curviate core recruiter project-job PROJECT_ID"
|
|
1653
1656
|
]
|
|
1654
1657
|
},
|
|
1655
1658
|
args: {
|
|
@@ -1666,7 +1669,7 @@ var recruiterProjectJobCommand = defineCommand({
|
|
|
1666
1669
|
const flags = args;
|
|
1667
1670
|
if (!flags.projectId) {
|
|
1668
1671
|
process.stderr.write(
|
|
1669
|
-
"Usage: curviate recruiter project-job get <project_id>\n curviate recruiter project-job create <project_id> [flags...]\n curviate recruiter project-job budget <project_id> <job_id>\n curviate recruiter project-job update <project_id> <job_id> [flags...]\n"
|
|
1672
|
+
"Usage: curviate core recruiter project-job get <project_id>\n curviate core recruiter project-job create <project_id> [flags...]\n curviate core recruiter project-job budget <project_id> <job_id>\n curviate core recruiter project-job update <project_id> <job_id> [flags...]\n"
|
|
1670
1673
|
);
|
|
1671
1674
|
return;
|
|
1672
1675
|
}
|
|
@@ -1691,8 +1694,8 @@ var recruiterTalentSearchCommand = defineCommand({
|
|
|
1691
1694
|
name: "talent-search",
|
|
1692
1695
|
description: "Search a project's talent pool.",
|
|
1693
1696
|
examples: [
|
|
1694
|
-
"curviate recruiter talent-search PROJECT_ID --channel-id CHANNEL_ID",
|
|
1695
|
-
"curviate recruiter talent-search PROJECT_ID --channel-id CHANNEL_ID --keywords typescript"
|
|
1697
|
+
"curviate core recruiter talent-search PROJECT_ID --channel-id CHANNEL_ID",
|
|
1698
|
+
"curviate core recruiter talent-search PROJECT_ID --channel-id CHANNEL_ID --keywords typescript"
|
|
1696
1699
|
]
|
|
1697
1700
|
},
|
|
1698
1701
|
args: {
|
|
@@ -1701,7 +1704,7 @@ var recruiterTalentSearchCommand = defineCommand({
|
|
|
1701
1704
|
"channel-id": { type: "string", description: "The project's RECRUITER_SEARCH talent-pool channel ID (required).", required: true },
|
|
1702
1705
|
keywords: { type: "string", description: "Free-text keyword search." },
|
|
1703
1706
|
filters: { type: "string", stdinArg: true, description: "Filter body as a JSON object (escape hatch for the full filter surface); '-' reads JSON from stdin." },
|
|
1704
|
-
"filters-file": { type: "string", description: "
|
|
1707
|
+
"filters-file": { type: "string", stdinArg: true, description: "The filter body as a JSON file: a path, or - to read it from stdin." }
|
|
1705
1708
|
},
|
|
1706
1709
|
async run({ args }) {
|
|
1707
1710
|
const flags = args;
|
|
@@ -1726,7 +1729,7 @@ var recruiterApplicantResumeCommand = defineCommand({
|
|
|
1726
1729
|
name: "resume",
|
|
1727
1730
|
description: "Download a job applicant's resume.",
|
|
1728
1731
|
examples: [
|
|
1729
|
-
"curviate recruiter applicant resume PROJECT_ID APPLICANT_ID -o resume.pdf"
|
|
1732
|
+
"curviate core recruiter applicant resume PROJECT_ID APPLICANT_ID -o resume.pdf"
|
|
1730
1733
|
]
|
|
1731
1734
|
},
|
|
1732
1735
|
args: {
|
|
@@ -1764,7 +1767,7 @@ var recruiterApplicantCommand = defineCommand({
|
|
|
1764
1767
|
name: "applicant",
|
|
1765
1768
|
description: "Recruiter job applicant operations.",
|
|
1766
1769
|
examples: [
|
|
1767
|
-
"curviate recruiter applicant PROJECT_ID APPLICANT_ID"
|
|
1770
|
+
"curviate core recruiter applicant PROJECT_ID APPLICANT_ID"
|
|
1768
1771
|
]
|
|
1769
1772
|
},
|
|
1770
1773
|
args: {
|
|
@@ -1780,7 +1783,7 @@ var recruiterApplicantCommand = defineCommand({
|
|
|
1780
1783
|
const flags = args;
|
|
1781
1784
|
if (!flags.projectId || !flags.applicantId) {
|
|
1782
1785
|
process.stderr.write(
|
|
1783
|
-
"Usage: curviate recruiter applicant <project_id> <applicant_id>\n curviate recruiter applicant resume <project_id> <applicant_id> -o <file>\n"
|
|
1786
|
+
"Usage: curviate core recruiter applicant <project_id> <applicant_id>\n curviate core recruiter applicant resume <project_id> <applicant_id> -o <file>\n"
|
|
1784
1787
|
);
|
|
1785
1788
|
return;
|
|
1786
1789
|
}
|
|
@@ -1803,7 +1806,7 @@ var recruiterApplicantCommand = defineCommand({
|
|
|
1803
1806
|
var recruiterCommand = defineCommand({
|
|
1804
1807
|
meta: {
|
|
1805
1808
|
name: "recruiter",
|
|
1806
|
-
description:
|
|
1809
|
+
description: DESCRIPTIONS.recruiter
|
|
1807
1810
|
},
|
|
1808
1811
|
args: { ...GLOBAL_FLAGS },
|
|
1809
1812
|
subCommands: {
|
|
@@ -1823,7 +1826,7 @@ var recruiterCommand = defineCommand({
|
|
|
1823
1826
|
},
|
|
1824
1827
|
async run() {
|
|
1825
1828
|
process.stderr.write(
|
|
1826
|
-
'Usage: curviate recruiter message new --to <id> "<text>"\n curviate recruiter profile <identifier>\n curviate recruiter search people [--keywords <k>]\n curviate recruiter search parameters --source <s> --type <t>\n curviate recruiter search <url>\n curviate recruiter projects\n curviate recruiter project <project_id>\n curviate recruiter project update <project_id> [flags...]\n curviate recruiter pipeline <project_id>\n curviate recruiter project-job get <project_id>\n curviate recruiter project-job create <project_id> [flags...]\n curviate recruiter project-job budget <project_id> <job_id>\n curviate recruiter project-job update <project_id> <job_id> [flags...]\n curviate recruiter talent-search <project_id> --channel-id <id>\n curviate recruiter save-candidate <project_id> --stage-id <id> --candidate-id <id>\n curviate recruiter applicants <project_id> --channel-id <id>\n curviate recruiter jobs\n curviate recruiter job create [flags...]\n curviate recruiter job publish <project_id> <job_id> --mode <FREE|PROMOTED|PROMOTED_PLUS>\n curviate recruiter job close <project_id> <job_id>\n curviate recruiter job get <url|id>\n curviate recruiter applicant <project_id> <applicant_id>\n curviate recruiter applicant resume <project_id> <applicant_id> -o <file>\n'
|
|
1829
|
+
'Usage: curviate core recruiter message new --to <id> "<text>"\n curviate core recruiter profile <identifier>\n curviate core recruiter search people [--keywords <k>]\n curviate core recruiter search parameters --source <s> --type <t>\n curviate core recruiter search <url>\n curviate core recruiter projects\n curviate core recruiter project <project_id>\n curviate core recruiter project update <project_id> [flags...]\n curviate core recruiter pipeline <project_id>\n curviate core recruiter project-job get <project_id>\n curviate core recruiter project-job create <project_id> [flags...]\n curviate core recruiter project-job budget <project_id> <job_id>\n curviate core recruiter project-job update <project_id> <job_id> [flags...]\n curviate core recruiter talent-search <project_id> --channel-id <id>\n curviate core recruiter save-candidate <project_id> --stage-id <id> --candidate-id <id>\n curviate core recruiter applicants <project_id> --channel-id <id>\n curviate core recruiter jobs\n curviate core recruiter job create [flags...]\n curviate core recruiter job publish <project_id> <job_id> --mode <FREE|PROMOTED|PROMOTED_PLUS>\n curviate core recruiter job close <project_id> <job_id>\n curviate core recruiter job get <url|id>\n curviate core recruiter applicant <project_id> <applicant_id>\n curviate core recruiter applicant resume <project_id> <applicant_id> -o <file>\n'
|
|
1827
1830
|
);
|
|
1828
1831
|
}
|
|
1829
1832
|
});
|