@curviate/cli 0.46.1 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +199 -1
- package/README.md +124 -77
- package/dist/{account-O5UX5UAH.js → account-WKQHMM7P.js} +41 -31
- package/dist/{chunk-BGZW6B7G.js → chunk-5I6JJJIV.js} +1 -0
- package/dist/{chunk-76E3O6HY.js → chunk-76SWLAZ6.js} +13 -0
- package/dist/chunk-AYKKXGTR.js +1141 -0
- package/dist/{chunk-TC4ZPUWI.js → chunk-CVMSQ3OF.js} +19 -80
- package/dist/{chunk-HOQ7EUHJ.js → chunk-FDJMAF7D.js} +1 -0
- package/dist/chunk-GQKC6E5K.js +36 -0
- package/dist/{chunk-FXF5FF3W.js → chunk-MKGVNDMJ.js} +10 -2
- package/dist/chunk-NNV2OYEF.js +23 -0
- package/dist/{chunk-UJOTQPL6.js → chunk-OHXYFICP.js} +47 -14
- package/dist/{chunk-2FECYCAC.js → chunk-Q63IIPL2.js} +3 -3
- package/dist/chunk-TSOIZBBU.js +41 -0
- package/dist/{chunk-DGIDAO2H.js → chunk-Y7K4UBFC.js} +1 -1
- package/dist/{chunk-LD6WPZZM.js → chunk-YFXLXION.js} +39 -34
- package/dist/chunk-ZYURL5VK.js +83 -0
- package/dist/cli.js +77 -97
- package/dist/{comment-BKGVJYS2.js → comment-7IQ6ZOJF.js} +30 -25
- package/dist/{company-F2AZTDPK.js → company-RD7RDGSA.js} +58 -53
- package/dist/{config-K4G3VSBA.js → config-EYBNYRGK.js} +13 -5
- package/dist/{connect-TX6PT7NV.js → connect-HVXT67A6.js} +42 -38
- package/dist/core-6XYGUNAY.js +46 -0
- package/dist/{doctor-USTZQ75D.js → doctor-HUXQERLQ.js} +9 -5
- package/dist/document-AUUCGST2.js +27 -0
- package/dist/draft-DFO22K6Q.js +463 -0
- package/dist/examples-64YT5V5K.js +53 -0
- package/dist/{exit-codes-TMAIV7EM.js → exit-codes-AW6KHDDN.js} +1 -1
- package/dist/{feed-ANBPRGFQ.js → feed-JWP6ANPI.js} +15 -11
- package/dist/{group-HFF7LDDQ.js → group-SIQFJEZV.js} +17 -13
- package/dist/{inbox-XQMGW6RT.js → inbox-MMIMCA5O.js} +23 -19
- package/dist/{inboxes-CILMIVVD.js → inboxes-RND3D4C7.js} +18 -14
- package/dist/{job-TOJDDJ2P.js → job-ACFKBLFK.js} +31 -27
- package/dist/{login-OHAHNBRW.js → login-ZOB5KVKQ.js} +10 -5
- package/dist/{message-WCBNBPAJ.js → message-OFK6UVXR.js} +10 -8
- package/dist/{notification-CJ3LEHFL.js → notification-KKGAZU7M.js} +19 -15
- package/dist/{post-OQWJRL4B.js → post-A5SBCFB2.js} +36 -31
- package/dist/{profile-GT6ZD37M.js → profile-4SOOQZ4K.js} +52 -48
- package/dist/{recruiter-ZKWG6QG3.js → recruiter-YN73STDP.js} +125 -122
- package/dist/{sales-nav-WV3YHYD6.js → sales-nav-JXF5RY2K.js} +41 -35
- package/dist/{search-VAZEQ2WJ.js → search-JAL242A2.js} +68 -58
- package/dist/{setup-GGXMHXAF.js → setup-WICWH4JG.js} +14 -9
- package/dist/{webhook-5M47UX6U.js → webhook-UGKVYWBC.js} +40 -42
- package/package.json +2 -2
- package/dist/chunk-KJ24DIAJ.js +0 -60
- package/dist/examples-IJL3A6SZ.js +0 -18
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UEAX6KUB.js";
|
|
5
5
|
import {
|
|
6
6
|
requireAccount
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Q63IIPL2.js";
|
|
8
8
|
import {
|
|
9
9
|
pageDelayFromFlags,
|
|
10
10
|
readCursorFlag,
|
|
@@ -18,16 +18,20 @@ import {
|
|
|
18
18
|
resolveEffectiveConfig,
|
|
19
19
|
streamAll,
|
|
20
20
|
writeNdjsonItem
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-MKGVNDMJ.js";
|
|
22
|
+
import "./chunk-76SWLAZ6.js";
|
|
23
23
|
import {
|
|
24
24
|
createClient
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OHXYFICP.js";
|
|
26
26
|
import {
|
|
27
27
|
GLOBAL_FLAGS,
|
|
28
28
|
READ_SINGLE_FLAGS,
|
|
29
29
|
readOnly
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CVMSQ3OF.js";
|
|
31
|
+
import {
|
|
32
|
+
DESCRIPTIONS
|
|
33
|
+
} from "./chunk-GQKC6E5K.js";
|
|
34
|
+
import "./chunk-ZYURL5VK.js";
|
|
31
35
|
|
|
32
36
|
// src/commands/group.ts
|
|
33
37
|
import { defineCommand } from "citty";
|
|
@@ -54,7 +58,7 @@ function resolveOutputOpts(flags) {
|
|
|
54
58
|
async function handleSdkError(err, outOpts, out) {
|
|
55
59
|
const { CurviateError } = await import("@curviate/sdk");
|
|
56
60
|
if (err instanceof CurviateError) {
|
|
57
|
-
const { getExitCode } = await import("./exit-codes-
|
|
61
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
|
|
58
62
|
renderError(err, outOpts, out);
|
|
59
63
|
process.exit(getExitCode(err));
|
|
60
64
|
}
|
|
@@ -143,8 +147,8 @@ var groupListCommand = defineCommand({
|
|
|
143
147
|
name: "list",
|
|
144
148
|
description: "List the groups the connected account belongs to. Pass --target to enumerate another member's groups instead (a partial, interests-only read).",
|
|
145
149
|
examples: [
|
|
146
|
-
"curviate group list",
|
|
147
|
-
"curviate group list --target janesmith"
|
|
150
|
+
"curviate core group list",
|
|
151
|
+
"curviate core group list --target janesmith"
|
|
148
152
|
]
|
|
149
153
|
},
|
|
150
154
|
args: {
|
|
@@ -177,7 +181,7 @@ var groupGetCommand = defineCommand({
|
|
|
177
181
|
name: "get",
|
|
178
182
|
description: "Get one LinkedIn group's full detail: name, member count, description, admin contact, and write-feasibility gates.",
|
|
179
183
|
examples: [
|
|
180
|
-
"curviate group get 12345678"
|
|
184
|
+
"curviate core group get 12345678"
|
|
181
185
|
]
|
|
182
186
|
},
|
|
183
187
|
args: {
|
|
@@ -207,8 +211,8 @@ var groupMembersCommand = defineCommand({
|
|
|
207
211
|
name: "members",
|
|
208
212
|
description: "List (or search by name) a group's members: id, profile URL, name, headline, and relationship signal. Requires the connected account be a member of the group.",
|
|
209
213
|
examples: [
|
|
210
|
-
"curviate group members 12345678",
|
|
211
|
-
"curviate group members 12345678 --name sophie"
|
|
214
|
+
"curviate core group members 12345678",
|
|
215
|
+
"curviate core group members 12345678 --name sophie"
|
|
212
216
|
]
|
|
213
217
|
},
|
|
214
218
|
args: {
|
|
@@ -238,7 +242,7 @@ var groupMembersCommand = defineCommand({
|
|
|
238
242
|
}
|
|
239
243
|
});
|
|
240
244
|
var groupCommand = defineCommand({
|
|
241
|
-
meta: { name: "group", description:
|
|
245
|
+
meta: { name: "group", description: DESCRIPTIONS.group },
|
|
242
246
|
subCommands: {
|
|
243
247
|
list: groupListCommand,
|
|
244
248
|
get: groupGetCommand,
|
|
@@ -246,7 +250,7 @@ var groupCommand = defineCommand({
|
|
|
246
250
|
},
|
|
247
251
|
async run() {
|
|
248
252
|
process.stderr.write(
|
|
249
|
-
"Usage: curviate group <subcommand>\n list [--target <slug>]\n get <group_id>\n members <group_id> [--name <filter>]\n"
|
|
253
|
+
"Usage: curviate core group <subcommand>\n list [--target <slug>]\n get <group_id>\n members <group_id> [--name <filter>]\n"
|
|
250
254
|
);
|
|
251
255
|
}
|
|
252
256
|
});
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-UEAX6KUB.js";
|
|
9
9
|
import {
|
|
10
10
|
requireAccount
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Q63IIPL2.js";
|
|
12
12
|
import {
|
|
13
13
|
buildPreviewOutput
|
|
14
14
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -25,17 +25,21 @@ import {
|
|
|
25
25
|
resolveEffectiveConfig,
|
|
26
26
|
streamAll,
|
|
27
27
|
writeNdjsonItem
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-MKGVNDMJ.js";
|
|
29
|
+
import "./chunk-76SWLAZ6.js";
|
|
30
30
|
import {
|
|
31
31
|
createClient
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OHXYFICP.js";
|
|
33
33
|
import {
|
|
34
34
|
GLOBAL_FLAGS,
|
|
35
35
|
READ_SINGLE_FLAGS,
|
|
36
36
|
WRITE_SINGLE_FLAGS,
|
|
37
37
|
readOnly
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CVMSQ3OF.js";
|
|
39
|
+
import {
|
|
40
|
+
DESCRIPTIONS
|
|
41
|
+
} from "./chunk-GQKC6E5K.js";
|
|
42
|
+
import "./chunk-ZYURL5VK.js";
|
|
39
43
|
|
|
40
44
|
// src/commands/inbox.ts
|
|
41
45
|
import { defineCommand } from "citty";
|
|
@@ -97,7 +101,7 @@ function validateInboxFolder(raw, out) {
|
|
|
97
101
|
async function handleSdkError(err, outOpts, out) {
|
|
98
102
|
const { CurviateError } = await import("@curviate/sdk");
|
|
99
103
|
if (err instanceof CurviateError) {
|
|
100
|
-
const { getExitCode } = await import("./exit-codes-
|
|
104
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
|
|
101
105
|
renderError(err, outOpts, out);
|
|
102
106
|
process.exit(getExitCode(err));
|
|
103
107
|
}
|
|
@@ -223,7 +227,7 @@ async function runInboxMessages(client, flags, out) {
|
|
|
223
227
|
const servable = flags.before === void 0 && flags.after === void 0 && readCursorFlag(flags, out) === void 0;
|
|
224
228
|
if (servable) {
|
|
225
229
|
out.stderr.write(
|
|
226
|
-
"hint: a stored listing is served only after a walk of the whole chat, which any unfiltered page fetch restarts. Run `curviate inbox messages <chat_id> --all` without `--mode cache_only` to walk it to the end. A chat whose messages do not fit one page (`--limit`, at most 25) is not served from the store at all.\n"
|
|
230
|
+
"hint: a stored listing is served only after a walk of the whole chat, which any unfiltered page fetch restarts. Run `curviate core inbox messages <chat_id> --all` without `--mode cache_only` to walk it to the end. A chat whose messages do not fit one page (`--limit`, at most 25) is not served from the store at all.\n"
|
|
227
231
|
);
|
|
228
232
|
}
|
|
229
233
|
process.exit(14);
|
|
@@ -275,9 +279,9 @@ var inboxListCommand = defineCommand({
|
|
|
275
279
|
name: "list",
|
|
276
280
|
description: "List inbox chats.",
|
|
277
281
|
examples: [
|
|
278
|
-
"curviate inbox list",
|
|
279
|
-
"curviate inbox list --unread",
|
|
280
|
-
"curviate inbox list --inbox archived --all"
|
|
282
|
+
"curviate core inbox list",
|
|
283
|
+
"curviate core inbox list --unread",
|
|
284
|
+
"curviate core inbox list --inbox archived --all"
|
|
281
285
|
]
|
|
282
286
|
},
|
|
283
287
|
args: {
|
|
@@ -316,7 +320,7 @@ var inboxGetCommand = defineCommand({
|
|
|
316
320
|
name: "get",
|
|
317
321
|
description: "Get details of a single chat.",
|
|
318
322
|
examples: [
|
|
319
|
-
"curviate inbox get 2-YTQ3ODU3Njgt"
|
|
323
|
+
"curviate core inbox get 2-YTQ3ODU3Njgt"
|
|
320
324
|
]
|
|
321
325
|
},
|
|
322
326
|
args: {
|
|
@@ -348,7 +352,7 @@ var inboxMarkReadCommand = defineCommand({
|
|
|
348
352
|
name: "mark-read",
|
|
349
353
|
description: "Mark a chat as read.",
|
|
350
354
|
examples: [
|
|
351
|
-
"curviate inbox mark-read 2-YTQ3ODU3Njgt"
|
|
355
|
+
"curviate core inbox mark-read 2-YTQ3ODU3Njgt"
|
|
352
356
|
]
|
|
353
357
|
},
|
|
354
358
|
args: {
|
|
@@ -377,11 +381,11 @@ var inboxMarkReadCommand = defineCommand({
|
|
|
377
381
|
var inboxMessagesCommand = defineCommand({
|
|
378
382
|
meta: {
|
|
379
383
|
name: "messages",
|
|
380
|
-
description: "List messages in a chat. A very recent send/delete may take a few minutes to appear or clear here (LinkedIn-side indexing); `message get <chat_id> <message_id>` reflects it immediately. `--mode cache_only` is answered only for an unfiltered, uncursored first page of a chat whose whole message set fits in that one page (`--limit`, at most 25), and only after a walk of the chat reached its end: any unfiltered page fetched from LinkedIn (such as `--mode live` without `--all`) restarts that walk, and `--all` walks to the end and closes it. A read carrying `--before`, `--after` or `--cursor` is never served from the store.",
|
|
384
|
+
description: "List messages in a chat. A very recent send/delete may take a few minutes to appear or clear here (LinkedIn-side indexing); `curviate core message get <chat_id> <message_id>` reflects it immediately. `--mode cache_only` is answered only for an unfiltered, uncursored first page of a chat whose whole message set fits in that one page (`--limit`, at most 25), and only after a walk of the chat reached its end: any unfiltered page fetched from LinkedIn (such as `--mode live` without `--all`) restarts that walk, and `--all` walks to the end and closes it. A read carrying `--before`, `--after` or `--cursor` is never served from the store.",
|
|
381
385
|
examples: [
|
|
382
|
-
"curviate inbox messages 2-YTQ3ODU3Njgt",
|
|
383
|
-
"curviate inbox messages 2-YTQ3ODU3Njgt --limit 20",
|
|
384
|
-
"curviate inbox messages 2-YTQ3ODU3Njgt --after 2026-06-01T00:00:00Z"
|
|
386
|
+
"curviate core inbox messages 2-YTQ3ODU3Njgt",
|
|
387
|
+
"curviate core inbox messages 2-YTQ3ODU3Njgt --limit 20",
|
|
388
|
+
"curviate core inbox messages 2-YTQ3ODU3Njgt --after 2026-06-01T00:00:00Z"
|
|
385
389
|
]
|
|
386
390
|
},
|
|
387
391
|
args: {
|
|
@@ -421,7 +425,7 @@ var inboxSearchCommand = defineCommand({
|
|
|
421
425
|
name: "search",
|
|
422
426
|
description: "Free-text search the account's own inbox (matches participant names and message content).",
|
|
423
427
|
examples: [
|
|
424
|
-
"curviate inbox search sophie"
|
|
428
|
+
"curviate core inbox search sophie"
|
|
425
429
|
]
|
|
426
430
|
},
|
|
427
431
|
args: {
|
|
@@ -448,7 +452,7 @@ var inboxSearchCommand = defineCommand({
|
|
|
448
452
|
}
|
|
449
453
|
});
|
|
450
454
|
var inboxCommand = defineCommand({
|
|
451
|
-
meta: { name: "inbox", description:
|
|
455
|
+
meta: { name: "inbox", description: DESCRIPTIONS.inbox },
|
|
452
456
|
subCommands: {
|
|
453
457
|
list: inboxListCommand,
|
|
454
458
|
get: inboxGetCommand,
|
|
@@ -458,7 +462,7 @@ var inboxCommand = defineCommand({
|
|
|
458
462
|
},
|
|
459
463
|
async run() {
|
|
460
464
|
process.stderr.write(
|
|
461
|
-
"Usage: curviate inbox <subcommand>\n list\n get <chat_id>\n mark-read <chat_id>\n messages <chat_id>\n search <query>\n"
|
|
465
|
+
"Usage: curviate core inbox <subcommand>\n list\n get <chat_id>\n mark-read <chat_id>\n messages <chat_id>\n search <query>\n"
|
|
462
466
|
);
|
|
463
467
|
}
|
|
464
468
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q63IIPL2.js";
|
|
5
5
|
import {
|
|
6
6
|
pageDelayFromFlags,
|
|
7
7
|
readCursorFlag,
|
|
@@ -15,16 +15,20 @@ import {
|
|
|
15
15
|
resolveEffectiveConfig,
|
|
16
16
|
streamAll,
|
|
17
17
|
writeNdjsonItem
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-MKGVNDMJ.js";
|
|
19
|
+
import "./chunk-76SWLAZ6.js";
|
|
20
20
|
import {
|
|
21
21
|
createClient
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OHXYFICP.js";
|
|
23
23
|
import {
|
|
24
24
|
GLOBAL_FLAGS,
|
|
25
25
|
READ_SINGLE_FLAGS,
|
|
26
26
|
readOnly
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CVMSQ3OF.js";
|
|
28
|
+
import {
|
|
29
|
+
DESCRIPTIONS
|
|
30
|
+
} from "./chunk-GQKC6E5K.js";
|
|
31
|
+
import "./chunk-ZYURL5VK.js";
|
|
28
32
|
|
|
29
33
|
// src/commands/inboxes.ts
|
|
30
34
|
import { defineCommand } from "citty";
|
|
@@ -51,7 +55,7 @@ function resolveOutputOpts(flags) {
|
|
|
51
55
|
async function handleSdkError(err, outOpts, out) {
|
|
52
56
|
const { CurviateError } = await import("@curviate/sdk");
|
|
53
57
|
if (err instanceof CurviateError) {
|
|
54
|
-
const { getExitCode } = await import("./exit-codes-
|
|
58
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
|
|
55
59
|
renderError(err, outOpts, out);
|
|
56
60
|
process.exit(getExitCode(err));
|
|
57
61
|
}
|
|
@@ -121,8 +125,8 @@ var inboxesListCommand = defineCommand({
|
|
|
121
125
|
name: "list",
|
|
122
126
|
description: "Discover the account's inboxes (personal + company pages).",
|
|
123
127
|
examples: [
|
|
124
|
-
"curviate inboxes list",
|
|
125
|
-
"curviate inboxes list --kind company"
|
|
128
|
+
"curviate core inboxes list",
|
|
129
|
+
"curviate core inboxes list --kind company"
|
|
126
130
|
]
|
|
127
131
|
},
|
|
128
132
|
args: {
|
|
@@ -159,16 +163,16 @@ var inboxesListCommand = defineCommand({
|
|
|
159
163
|
var inboxesChatsCommand = defineCommand({
|
|
160
164
|
meta: {
|
|
161
165
|
name: "chats",
|
|
162
|
-
description: "List an inbox's conversations. Each chat id is send-ready: reply with `message send <chat_id> \"<text>\"`. A company inbox's chat id (e.g. COMPANY_83734124_2-...) sends AS THE PAGE, no separate flag needed. Company inboxes are reply-only and cannot start a new conversation.",
|
|
166
|
+
description: "List an inbox's conversations. Each chat id is send-ready: reply with `curviate core message send <chat_id> \"<text>\"`. A company inbox's chat id (e.g. COMPANY_83734124_2-...) sends AS THE PAGE, no separate flag needed. Company inboxes are reply-only and cannot start a new conversation.",
|
|
163
167
|
examples: [
|
|
164
|
-
"curviate inboxes chats CLASSIC_PRIMARY",
|
|
165
|
-
"curviate inboxes chats COMPANY_1234567_PRIMARY --limit 10"
|
|
168
|
+
"curviate core inboxes chats CLASSIC_PRIMARY",
|
|
169
|
+
"curviate core inboxes chats COMPANY_1234567_PRIMARY --limit 10"
|
|
166
170
|
]
|
|
167
171
|
},
|
|
168
172
|
args: {
|
|
169
173
|
...readOnly(GLOBAL_FLAGS),
|
|
170
174
|
limit: { type: "string", description: "Number of items to return per page (1-25, default 20)." },
|
|
171
|
-
inboxId: { type: "positional", description: "Inbox id from `inboxes list` (e.g. CLASSIC_PRIMARY or COMPANY_83734124_PRIMARY)." }
|
|
175
|
+
inboxId: { type: "positional", description: "Inbox id from `curviate core inboxes list` (e.g. CLASSIC_PRIMARY or COMPANY_83734124_PRIMARY)." }
|
|
172
176
|
},
|
|
173
177
|
async run({ args }) {
|
|
174
178
|
const flags = args;
|
|
@@ -191,7 +195,7 @@ var inboxesChatsCommand = defineCommand({
|
|
|
191
195
|
var inboxesCommand = defineCommand({
|
|
192
196
|
meta: {
|
|
193
197
|
name: "inboxes",
|
|
194
|
-
description:
|
|
198
|
+
description: DESCRIPTIONS.inboxes
|
|
195
199
|
},
|
|
196
200
|
subCommands: {
|
|
197
201
|
list: inboxesListCommand,
|
|
@@ -199,7 +203,7 @@ var inboxesCommand = defineCommand({
|
|
|
199
203
|
},
|
|
200
204
|
async run() {
|
|
201
205
|
process.stderr.write(
|
|
202
|
-
"Usage: curviate inboxes <subcommand>\n list [--kind personal|company] [--company-id <id>]\n chats <inbox_id> [--limit] [--cursor] [--all]\n"
|
|
206
|
+
"Usage: curviate core inboxes <subcommand>\n list [--kind personal|company] [--company-id <id>]\n chats <inbox_id> [--limit] [--cursor] [--all]\n"
|
|
203
207
|
);
|
|
204
208
|
}
|
|
205
209
|
});
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
slimJob
|
|
4
|
-
} from "./chunk-LCGXJGPB.js";
|
|
5
2
|
import {
|
|
6
3
|
BinaryOutputError,
|
|
7
4
|
writeBinaryOutput
|
|
@@ -11,7 +8,10 @@ import {
|
|
|
11
8
|
} from "./chunk-UEAX6KUB.js";
|
|
12
9
|
import {
|
|
13
10
|
requireAccount
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Q63IIPL2.js";
|
|
12
|
+
import {
|
|
13
|
+
slimJob
|
|
14
|
+
} from "./chunk-LCGXJGPB.js";
|
|
15
15
|
import {
|
|
16
16
|
buildPreviewOutput
|
|
17
17
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -30,18 +30,22 @@ import {
|
|
|
30
30
|
resolveEffectiveConfig,
|
|
31
31
|
streamAll,
|
|
32
32
|
writeNdjsonItem
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-MKGVNDMJ.js";
|
|
34
|
+
import "./chunk-76SWLAZ6.js";
|
|
35
35
|
import {
|
|
36
36
|
createClient,
|
|
37
37
|
downloadBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OHXYFICP.js";
|
|
39
39
|
import {
|
|
40
40
|
GLOBAL_FLAGS,
|
|
41
41
|
READ_SINGLE_FLAGS,
|
|
42
42
|
WRITE_SINGLE_FLAGS,
|
|
43
43
|
readOnly
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-CVMSQ3OF.js";
|
|
45
|
+
import {
|
|
46
|
+
DESCRIPTIONS
|
|
47
|
+
} from "./chunk-GQKC6E5K.js";
|
|
48
|
+
import "./chunk-ZYURL5VK.js";
|
|
45
49
|
|
|
46
50
|
// src/commands/job.ts
|
|
47
51
|
import { defineCommand } from "citty";
|
|
@@ -97,7 +101,7 @@ function requireEnum(value, allowed, flag, out) {
|
|
|
97
101
|
async function handleSdkError(err, outOpts, out) {
|
|
98
102
|
const { CurviateError } = await import("@curviate/sdk");
|
|
99
103
|
if (err instanceof CurviateError) {
|
|
100
|
-
const { getExitCode } = await import("./exit-codes-
|
|
104
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
|
|
101
105
|
renderError(err, outOpts, out);
|
|
102
106
|
process.exit(getExitCode(err));
|
|
103
107
|
}
|
|
@@ -478,7 +482,7 @@ var JOB_BODY_FLAGS = {
|
|
|
478
482
|
company: { type: "string", description: "Hiring company as free text (or use --company-id)." },
|
|
479
483
|
"company-id": { type: "string", description: "Existing company id." },
|
|
480
484
|
"workplace-type": { type: "string", description: "Workplace arrangement: ON_SITE|HYBRID|REMOTE." },
|
|
481
|
-
location: { type: "string", description: "A LOCATION parameter id (from search parameters)." },
|
|
485
|
+
location: { type: "string", description: "A LOCATION parameter id (from `curviate core search parameters --type LOCATION --keywords <place>`)." },
|
|
482
486
|
"employment-status": { type: "string", description: "Employment type: FULL_TIME|PART_TIME|CONTRACT|TEMPORARY|OTHER|VOLUNTEER|INTERNSHIP." },
|
|
483
487
|
description: { type: "string", description: "Full job description (required; minimum 200 characters, enforced server-side)." },
|
|
484
488
|
"apply-method": { type: "string", description: "How candidates apply: linkedin|external." },
|
|
@@ -491,8 +495,8 @@ var jobGetCommand = defineCommand({
|
|
|
491
495
|
name: "get",
|
|
492
496
|
description: "Retrieve one public LinkedIn job posting's full detail.",
|
|
493
497
|
examples: [
|
|
494
|
-
"curviate job get 4100000000",
|
|
495
|
-
"curviate job get https://www.linkedin.com/jobs/view/4100000000"
|
|
498
|
+
"curviate core job get 4100000000",
|
|
499
|
+
"curviate core job get https://www.linkedin.com/jobs/view/4100000000"
|
|
496
500
|
]
|
|
497
501
|
},
|
|
498
502
|
args: {
|
|
@@ -508,8 +512,8 @@ var jobListCommand = defineCommand({
|
|
|
508
512
|
name: "list",
|
|
509
513
|
description: "List your own classic job postings by state.",
|
|
510
514
|
examples: [
|
|
511
|
-
"curviate job list --state OPEN",
|
|
512
|
-
"curviate job list --state DRAFT --all"
|
|
515
|
+
"curviate core job list --state OPEN",
|
|
516
|
+
"curviate core job list --state DRAFT --all"
|
|
513
517
|
],
|
|
514
518
|
requires: [
|
|
515
519
|
"--max-pages and --page-delay only with --all."
|
|
@@ -528,7 +532,7 @@ var jobCreateCommand = defineCommand({
|
|
|
528
532
|
name: "create",
|
|
529
533
|
description: "Create a classic job-posting draft (never publishes, never spends).",
|
|
530
534
|
examples: [
|
|
531
|
-
'curviate job create --job-title "Staff Engineer" --company "Acme" --workplace-type REMOTE --location 106967730 --employment-status FULL_TIME --apply-method external --website-url https://acme.example/jobs/1 --description "$(cat description.txt)"'
|
|
535
|
+
'curviate core job create --job-title "Staff Engineer" --company "Acme" --workplace-type REMOTE --location 106967730 --employment-status FULL_TIME --apply-method external --website-url https://acme.example/jobs/1 --description "$(cat description.txt)"'
|
|
532
536
|
],
|
|
533
537
|
requires: [
|
|
534
538
|
"--job-title or --job-title-id.",
|
|
@@ -556,8 +560,8 @@ var jobUpdateCommand = defineCommand({
|
|
|
556
560
|
name: "update",
|
|
557
561
|
description: "Apply a partial update to a job posting you own.",
|
|
558
562
|
examples: [
|
|
559
|
-
"curviate job update 4100000000 --workplace-type HYBRID",
|
|
560
|
-
'curviate job update 4100000000 --description "$(cat description.txt)"'
|
|
563
|
+
"curviate core job update 4100000000 --workplace-type HYBRID",
|
|
564
|
+
'curviate core job update 4100000000 --description "$(cat description.txt)"'
|
|
561
565
|
],
|
|
562
566
|
requires: [
|
|
563
567
|
"--notification-email with --apply-method linkedin; --website-url with --apply-method external."
|
|
@@ -577,7 +581,7 @@ var jobBudgetCommand = defineCommand({
|
|
|
577
581
|
name: "budget",
|
|
578
582
|
description: "Price a publish before committing any money.",
|
|
579
583
|
examples: [
|
|
580
|
-
"curviate job budget 4100000000"
|
|
584
|
+
"curviate core job budget 4100000000"
|
|
581
585
|
]
|
|
582
586
|
},
|
|
583
587
|
args: {
|
|
@@ -593,7 +597,7 @@ var jobPublishCommand = defineCommand({
|
|
|
593
597
|
name: "publish",
|
|
594
598
|
description: "Publish a draft. PROMOTED/PROMOTED_PLUS spend real money and require --budget-amount, --budget-currency, and --budget-scope.",
|
|
595
599
|
examples: [
|
|
596
|
-
"curviate job publish 4100000000 --mode FREE"
|
|
600
|
+
"curviate core job publish 4100000000 --mode FREE"
|
|
597
601
|
],
|
|
598
602
|
requires: [
|
|
599
603
|
"--budget-currency, --budget-amount and --budget-scope with --mode PROMOTED or PROMOTED_PLUS."
|
|
@@ -616,7 +620,7 @@ var jobCloseCommand = defineCommand({
|
|
|
616
620
|
name: "close",
|
|
617
621
|
description: "Stop a posting from accepting applications (irreversible once LISTED).",
|
|
618
622
|
examples: [
|
|
619
|
-
"curviate job close 4100000000"
|
|
623
|
+
"curviate core job close 4100000000"
|
|
620
624
|
]
|
|
621
625
|
},
|
|
622
626
|
args: {
|
|
@@ -632,8 +636,8 @@ var jobApplicantsCommand = defineCommand({
|
|
|
632
636
|
name: "applicants",
|
|
633
637
|
description: "List applicants to a posting you own (POST-as-search).",
|
|
634
638
|
examples: [
|
|
635
|
-
"curviate job applicants 4100000000",
|
|
636
|
-
"curviate job applicants 4100000000 --ratings GOOD_FIT,MAYBE"
|
|
639
|
+
"curviate core job applicants 4100000000",
|
|
640
|
+
"curviate core job applicants 4100000000 --ratings GOOD_FIT,MAYBE"
|
|
637
641
|
]
|
|
638
642
|
},
|
|
639
643
|
args: {
|
|
@@ -650,7 +654,7 @@ var jobApplicantGetCommand = defineCommand({
|
|
|
650
654
|
name: "get",
|
|
651
655
|
description: "Get one applicant's full detail, including contact info.",
|
|
652
656
|
examples: [
|
|
653
|
-
"curviate job applicant get 4100000000 APPLICANT_ID"
|
|
657
|
+
"curviate core job applicant get 4100000000 APPLICANT_ID"
|
|
654
658
|
]
|
|
655
659
|
},
|
|
656
660
|
args: {
|
|
@@ -667,7 +671,7 @@ var jobApplicantResumeCommand = defineCommand({
|
|
|
667
671
|
name: "resume",
|
|
668
672
|
description: "Download an applicant's r\xE9sum\xE9 (binary).",
|
|
669
673
|
examples: [
|
|
670
|
-
"curviate job applicant resume 4100000000 APPLICANT_ID -o resume.pdf"
|
|
674
|
+
"curviate core job applicant resume 4100000000 APPLICANT_ID -o resume.pdf"
|
|
671
675
|
]
|
|
672
676
|
},
|
|
673
677
|
args: {
|
|
@@ -689,12 +693,12 @@ var jobApplicantCommand = defineCommand({
|
|
|
689
693
|
},
|
|
690
694
|
async run() {
|
|
691
695
|
process.stderr.write(
|
|
692
|
-
"Usage: curviate job applicant get <job_id> <applicant_id>\n curviate job applicant resume <job_id> <applicant_id> -o <file>\n"
|
|
696
|
+
"Usage: curviate core job applicant get <job_id> <applicant_id>\n curviate core job applicant resume <job_id> <applicant_id> -o <file>\n"
|
|
693
697
|
);
|
|
694
698
|
}
|
|
695
699
|
});
|
|
696
700
|
var jobCommand = defineCommand({
|
|
697
|
-
meta: { name: "job", description:
|
|
701
|
+
meta: { name: "job", description: DESCRIPTIONS.job },
|
|
698
702
|
args: { ...READ_SINGLE_FLAGS },
|
|
699
703
|
subCommands: {
|
|
700
704
|
get: jobGetCommand,
|
|
@@ -709,7 +713,7 @@ var jobCommand = defineCommand({
|
|
|
709
713
|
},
|
|
710
714
|
async run() {
|
|
711
715
|
process.stderr.write(
|
|
712
|
-
"Usage: curviate job get <url|id>\n curviate job list --state <DRAFT|OPEN|CLOSED|REVIEW|SUSPENDED|ALL>\n curviate job create --job-title <t> --company <c> --workplace-type <w> --location <id> --employment-status <e> --description <d> --apply-method <linkedin|external>\n curviate job update <id> [<flags>]\n curviate job budget <id>\n curviate job publish <id> --mode <FREE|PROMOTED|PROMOTED_PLUS>\n curviate job close <id>\n curviate job applicants <id>\n curviate job applicant get <id> <applicant_id>\n curviate job applicant resume <id> <applicant_id> -o <file>\n"
|
|
716
|
+
"Usage: curviate core job get <url|id>\n curviate core job list --state <DRAFT|OPEN|CLOSED|REVIEW|SUSPENDED|ALL>\n curviate core job create --job-title <t> --company <c> --workplace-type <w> --location <id> --employment-status <e> --description <d> --apply-method <linkedin|external>\n curviate core job update <id> [<flags>]\n curviate core job budget <id>\n curviate core job publish <id> --mode <FREE|PROMOTED|PROMOTED_PLUS>\n curviate core job close <id>\n curviate core job applicants <id>\n curviate core job applicant get <id> <applicant_id>\n curviate core job applicant resume <id> <applicant_id> -o <file>\n"
|
|
713
717
|
);
|
|
714
718
|
}
|
|
715
719
|
});
|
|
@@ -5,12 +5,17 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
baseUrlProblem,
|
|
7
7
|
writeProfile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OHXYFICP.js";
|
|
9
|
+
import {
|
|
10
|
+
GLOBAL_FLAGS
|
|
11
|
+
} from "./chunk-CVMSQ3OF.js";
|
|
12
|
+
import {
|
|
13
|
+
DESCRIPTIONS
|
|
14
|
+
} from "./chunk-GQKC6E5K.js";
|
|
9
15
|
import {
|
|
10
|
-
GLOBAL_FLAGS,
|
|
11
16
|
defaultReadStdin,
|
|
12
17
|
resolveTextOrStdin
|
|
13
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZYURL5VK.js";
|
|
14
19
|
|
|
15
20
|
// src/commands/login.ts
|
|
16
21
|
import { defineCommand } from "citty";
|
|
@@ -42,14 +47,14 @@ async function runLogin(args, out) {
|
|
|
42
47
|
}
|
|
43
48
|
await writeProfile(profileName, entry);
|
|
44
49
|
out.stderr.write(
|
|
45
|
-
`Saved to profile "${profileName}". Run \`curviate profile me\` to verify.
|
|
50
|
+
`Saved to profile "${profileName}". Run \`curviate core profile me\` to verify.
|
|
46
51
|
`
|
|
47
52
|
);
|
|
48
53
|
}
|
|
49
54
|
var loginCommand = defineCommand({
|
|
50
55
|
meta: {
|
|
51
56
|
name: "login",
|
|
52
|
-
description:
|
|
57
|
+
description: DESCRIPTIONS.login,
|
|
53
58
|
examples: [
|
|
54
59
|
"curviate login",
|
|
55
60
|
"curviate login --api-key - --profile work"
|
|
@@ -13,17 +13,19 @@ import {
|
|
|
13
13
|
runMessageSend,
|
|
14
14
|
sentAsNotice,
|
|
15
15
|
willSendAsNotice
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YFXLXION.js";
|
|
17
|
+
import "./chunk-5I6JJJIV.js";
|
|
17
18
|
import "./chunk-UWO2D4HW.js";
|
|
18
|
-
import "./chunk-HOQ7EUHJ.js";
|
|
19
|
-
import "./chunk-BGZW6B7G.js";
|
|
20
19
|
import "./chunk-UEAX6KUB.js";
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-Q63IIPL2.js";
|
|
22
21
|
import "./chunk-TCUYH5GO.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-MKGVNDMJ.js";
|
|
23
|
+
import "./chunk-76SWLAZ6.js";
|
|
24
|
+
import "./chunk-OHXYFICP.js";
|
|
25
|
+
import "./chunk-CVMSQ3OF.js";
|
|
26
|
+
import "./chunk-GQKC6E5K.js";
|
|
27
|
+
import "./chunk-FDJMAF7D.js";
|
|
28
|
+
import "./chunk-ZYURL5VK.js";
|
|
27
29
|
export {
|
|
28
30
|
guardBareMessageForm,
|
|
29
31
|
messageCommand,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q63IIPL2.js";
|
|
5
5
|
import {
|
|
6
6
|
buildPreviewOutput
|
|
7
7
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -17,16 +17,20 @@ import {
|
|
|
17
17
|
resolveEffectiveConfig,
|
|
18
18
|
streamAll,
|
|
19
19
|
writeNdjsonItem
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-MKGVNDMJ.js";
|
|
21
|
+
import "./chunk-76SWLAZ6.js";
|
|
22
22
|
import {
|
|
23
23
|
createClient
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OHXYFICP.js";
|
|
25
25
|
import {
|
|
26
26
|
GLOBAL_FLAGS,
|
|
27
27
|
WRITE_SINGLE_FLAGS,
|
|
28
28
|
readOnly
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-CVMSQ3OF.js";
|
|
30
|
+
import {
|
|
31
|
+
DESCRIPTIONS
|
|
32
|
+
} from "./chunk-GQKC6E5K.js";
|
|
33
|
+
import "./chunk-ZYURL5VK.js";
|
|
30
34
|
|
|
31
35
|
// src/commands/notification.ts
|
|
32
36
|
import { defineCommand } from "citty";
|
|
@@ -47,7 +51,7 @@ function resolveOutputOpts(flags) {
|
|
|
47
51
|
async function handleSdkError(err, outOpts, out) {
|
|
48
52
|
const { CurviateError } = await import("@curviate/sdk");
|
|
49
53
|
if (err instanceof CurviateError) {
|
|
50
|
-
const { getExitCode } = await import("./exit-codes-
|
|
54
|
+
const { getExitCode } = await import("./exit-codes-AW6KHDDN.js");
|
|
51
55
|
renderError(err, outOpts, out);
|
|
52
56
|
process.exit(getExitCode(err));
|
|
53
57
|
}
|
|
@@ -124,8 +128,8 @@ var notificationListCommand = defineCommand({
|
|
|
124
128
|
name: "list",
|
|
125
129
|
description: "List the connected account's notification cards, newest first, plus the unread badge and a poll watermark.",
|
|
126
130
|
examples: [
|
|
127
|
-
"curviate notification list",
|
|
128
|
-
"curviate notification list --filter mentions"
|
|
131
|
+
"curviate core notification list",
|
|
132
|
+
"curviate core notification list --filter mentions"
|
|
129
133
|
]
|
|
130
134
|
},
|
|
131
135
|
args: {
|
|
@@ -156,14 +160,14 @@ var notificationListCommand = defineCommand({
|
|
|
156
160
|
var notificationDeleteCommand = defineCommand({
|
|
157
161
|
meta: {
|
|
158
162
|
name: "delete",
|
|
159
|
-
description: "Delete one of your notification cards by its card urn. Self-action, safe to repeat, cannot be undone. An injected card (injected: true) has no card urn and cannot be deleted. LinkedIn may bring editorial and promotional cards back after a delete; `show-less` is the reliable way to suppress those.",
|
|
163
|
+
description: "Delete one of your notification cards by its card urn. Self-action, safe to repeat, cannot be undone. An injected card (injected: true) has no card urn and cannot be deleted. LinkedIn may bring editorial and promotional cards back after a delete; `curviate core notification show-less` is the reliable way to suppress those.",
|
|
160
164
|
examples: [
|
|
161
|
-
'curviate notification delete "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
|
|
165
|
+
'curviate core notification delete "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
|
|
162
166
|
]
|
|
163
167
|
},
|
|
164
168
|
args: {
|
|
165
169
|
...WRITE_SINGLE_FLAGS,
|
|
166
|
-
cardUrn: { type: "positional", description: "The card_urn field of a `notification list` item (not object_urn)." }
|
|
170
|
+
cardUrn: { type: "positional", description: "The card_urn field of a `curviate core notification list` item (not object_urn)." }
|
|
167
171
|
},
|
|
168
172
|
async run({ args }) {
|
|
169
173
|
const flags = args;
|
|
@@ -188,12 +192,12 @@ var notificationShowLessCommand = defineCommand({
|
|
|
188
192
|
name: "show-less",
|
|
189
193
|
description: "Apply 'show less like this' to the source of one of your notification cards. For network-activity cards this removes the card, same as delete. Self-action, safe to repeat, cannot be undone.",
|
|
190
194
|
examples: [
|
|
191
|
-
'curviate notification show-less "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
|
|
195
|
+
'curviate core notification show-less "urn:li:fsd_notificationCard:(urn:li:fsd_notification:9999,ALL)"'
|
|
192
196
|
]
|
|
193
197
|
},
|
|
194
198
|
args: {
|
|
195
199
|
...WRITE_SINGLE_FLAGS,
|
|
196
|
-
cardUrn: { type: "positional", description: "The card_urn field of a `notification list` item (not object_urn)." }
|
|
200
|
+
cardUrn: { type: "positional", description: "The card_urn field of a `curviate core notification list` item (not object_urn)." }
|
|
197
201
|
},
|
|
198
202
|
async run({ args }) {
|
|
199
203
|
const flags = args;
|
|
@@ -214,7 +218,7 @@ var notificationShowLessCommand = defineCommand({
|
|
|
214
218
|
}
|
|
215
219
|
});
|
|
216
220
|
var notificationCommand = defineCommand({
|
|
217
|
-
meta: { name: "notification", description:
|
|
221
|
+
meta: { name: "notification", description: DESCRIPTIONS.notification },
|
|
218
222
|
subCommands: {
|
|
219
223
|
list: notificationListCommand,
|
|
220
224
|
delete: notificationDeleteCommand,
|
|
@@ -222,7 +226,7 @@ var notificationCommand = defineCommand({
|
|
|
222
226
|
},
|
|
223
227
|
async run() {
|
|
224
228
|
process.stderr.write(
|
|
225
|
-
"Usage: curviate notification <subcommand>\n list [--filter <f>]\n delete <card_urn>\n show-less <card_urn>\n"
|
|
229
|
+
"Usage: curviate core notification <subcommand>\n list [--filter <f>]\n delete <card_urn>\n show-less <card_urn>\n"
|
|
226
230
|
);
|
|
227
231
|
}
|
|
228
232
|
});
|