@curviate/cli 0.48.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 +57 -0
- package/README.md +35 -1
- package/dist/{account-WKQHMM7P.js → account-2BH2Q6VG.js} +6 -6
- package/dist/{chunk-TSOIZBBU.js → chunk-3RCW7URJ.js} +1 -1
- package/dist/{chunk-OHXYFICP.js → chunk-5ZGTU4VD.js} +1 -1
- package/dist/{chunk-GQKC6E5K.js → chunk-D2S5OCYU.js} +2 -0
- package/dist/{chunk-Y7K4UBFC.js → chunk-JYKYD57J.js} +1 -1
- package/dist/chunk-MGB6FE4A.js +58 -0
- package/dist/{chunk-76SWLAZ6.js → chunk-RXWODUWA.js} +43 -1
- package/dist/{chunk-MKGVNDMJ.js → chunk-SA2QHAXG.js} +1 -1
- package/dist/{chunk-AYKKXGTR.js → chunk-TEAWYLPO.js} +353 -1
- package/dist/{chunk-Q63IIPL2.js → chunk-V7FJWTZW.js} +2 -2
- package/dist/{chunk-CVMSQ3OF.js → chunk-Y7MZZRYR.js} +3 -1
- package/dist/{chunk-YFXLXION.js → chunk-Z7OQSWBD.js} +6 -6
- package/dist/cli.js +16 -14
- package/dist/{comment-7IQ6ZOJF.js → comment-MRDPDA33.js} +8 -8
- package/dist/{company-RD7RDGSA.js → company-2AEHSGHA.js} +8 -8
- package/dist/{config-EYBNYRGK.js → config-NRBKHXES.js} +3 -3
- package/dist/{connect-HVXT67A6.js → connect-4XEBV5V3.js} +12 -12
- package/dist/core-RGU2SCBN.js +46 -0
- package/dist/{doctor-HUXQERLQ.js → doctor-BZ4DA7DV.js} +5 -5
- package/dist/{document-AUUCGST2.js → document-RKHRWXNT.js} +1 -1
- package/dist/{draft-DFO22K6Q.js → draft-C5N6EOO5.js} +5 -5
- package/dist/enrollment-BNQOUKI7.js +472 -0
- package/dist/{examples-64YT5V5K.js → examples-NIMSIXMV.js} +2 -2
- package/dist/{exit-codes-AW6KHDDN.js → exit-codes-TLMKTLRI.js} +1 -1
- package/dist/{feed-JWP6ANPI.js → feed-DFUU7SUJ.js} +7 -7
- package/dist/{group-SIQFJEZV.js → group-CSD2OWOZ.js} +7 -7
- package/dist/{inbox-MMIMCA5O.js → inbox-SNSPWI7J.js} +7 -7
- package/dist/{inboxes-RND3D4C7.js → inboxes-RIRHPS4H.js} +7 -7
- package/dist/{job-ACFKBLFK.js → job-6PNXXZNF.js} +7 -7
- package/dist/{login-ZOB5KVKQ.js → login-Y7JBAHCW.js} +3 -3
- package/dist/{message-OFK6UVXR.js → message-2IK4MBBG.js} +7 -7
- package/dist/motion-7ATUXO6R.js +946 -0
- package/dist/{notification-KKGAZU7M.js → notification-VYK5NDEB.js} +7 -7
- package/dist/{post-A5SBCFB2.js → post-AN6T2OJF.js} +8 -8
- package/dist/{profile-4SOOQZ4K.js → profile-UQY64642.js} +17 -17
- package/dist/{recruiter-YN73STDP.js → recruiter-OY4RN5HH.js} +13 -13
- package/dist/{sales-nav-JXF5RY2K.js → sales-nav-KLODLYMW.js} +13 -13
- package/dist/{search-JAL242A2.js → search-NWP5S6CF.js} +17 -17
- package/dist/{setup-WICWH4JG.js → setup-YPPFLH2N.js} +5 -5
- package/dist/{webhook-UGKVYWBC.js → webhook-OHKBL3YS.js} +22 -24
- package/package.json +2 -2
- package/dist/core-6XYGUNAY.js +0 -46
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readablePage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SA2QHAXG.js";
|
|
5
5
|
import {
|
|
6
6
|
getExitCode
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RXWODUWA.js";
|
|
8
8
|
import {
|
|
9
9
|
assertNoStdinPlaceholder
|
|
10
10
|
} from "./chunk-ZYURL5VK.js";
|
|
@@ -127,7 +127,9 @@ var STATE_WRITES = {
|
|
|
127
127
|
"curviate account checkpoint solve": "curviate account checkpoint poll <account_id>",
|
|
128
128
|
"curviate account checkpoint poll": "curviate account checkpoint poll <account_id>",
|
|
129
129
|
"curviate account checkpoint request": "curviate account checkpoint poll <account_id>",
|
|
130
|
-
"curviate account connect-session poll": "curviate account connect-session poll --session <session_id>"
|
|
130
|
+
"curviate account connect-session poll": "curviate account connect-session poll --session <session_id>",
|
|
131
|
+
// Its answer says whether the Step was resumed, and what to wait for.
|
|
132
|
+
"curviate enrollment retry": "curviate enrollment get <enrollment_id>"
|
|
131
133
|
};
|
|
132
134
|
|
|
133
135
|
// src/lib/beta.ts
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-UEAX6KUB.js";
|
|
15
15
|
import {
|
|
16
16
|
requireAccount
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-V7FJWTZW.js";
|
|
18
18
|
import {
|
|
19
19
|
buildPreviewOutput
|
|
20
20
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -25,19 +25,19 @@ import {
|
|
|
25
25
|
renderSuccess,
|
|
26
26
|
renderUnexpectedError,
|
|
27
27
|
resolveEffectiveConfig
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SA2QHAXG.js";
|
|
29
29
|
import {
|
|
30
30
|
createClient,
|
|
31
31
|
downloadBinary
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
33
33
|
import {
|
|
34
34
|
READ_SINGLE_FLAGS,
|
|
35
35
|
WRITE_FLAGS,
|
|
36
36
|
readOnly
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
38
38
|
import {
|
|
39
39
|
DESCRIPTIONS
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-D2S5OCYU.js";
|
|
41
41
|
import {
|
|
42
42
|
looksLikeCommandWord,
|
|
43
43
|
nearestSubcommand
|
|
@@ -110,7 +110,7 @@ var MEMBER_PROVIDER_ID_RE = /^A[CDE][A-Za-z0-9_-]{4,}$/;
|
|
|
110
110
|
async function handleSdkError(err, outOpts, out) {
|
|
111
111
|
const { CurviateError } = await import("@curviate/sdk");
|
|
112
112
|
if (err instanceof CurviateError) {
|
|
113
|
-
const { getExitCode } = await import("./exit-codes-
|
|
113
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
114
114
|
renderError(err, outOpts, out);
|
|
115
115
|
process.exit(getExitCode(err));
|
|
116
116
|
}
|
package/dist/cli.js
CHANGED
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
parseBetaFlag,
|
|
12
12
|
setBetaOverride,
|
|
13
13
|
setWriteKind
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
15
15
|
import {
|
|
16
16
|
lazy
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-D2S5OCYU.js";
|
|
18
18
|
import {
|
|
19
19
|
editDistance
|
|
20
20
|
} from "./chunk-FDJMAF7D.js";
|
|
@@ -44,19 +44,21 @@ var main = defineCommand({
|
|
|
44
44
|
// Subcommand registry, names and descriptions are static for help rendering;
|
|
45
45
|
// the handler implementation is loaded lazily on first invocation.
|
|
46
46
|
subCommands: {
|
|
47
|
-
setup: lazy("setup", () => import("./setup-
|
|
48
|
-
doctor: lazy("doctor", () => import("./doctor-
|
|
49
|
-
login: lazy("login", () => import("./login-
|
|
50
|
-
config: lazy("config", () => import("./config-
|
|
51
|
-
account: lazy("account", () => import("./account-
|
|
52
|
-
|
|
47
|
+
setup: lazy("setup", () => import("./setup-YPPFLH2N.js").then((m) => m.setupCommand)),
|
|
48
|
+
doctor: lazy("doctor", () => import("./doctor-BZ4DA7DV.js").then((m) => m.doctorCommand)),
|
|
49
|
+
login: lazy("login", () => import("./login-Y7JBAHCW.js").then((m) => m.loginCommand)),
|
|
50
|
+
config: lazy("config", () => import("./config-NRBKHXES.js").then((m) => m.configCommand)),
|
|
51
|
+
account: lazy("account", () => import("./account-2BH2Q6VG.js").then((m) => m.accountCommand)),
|
|
52
|
+
motion: lazy("motion", () => import("./motion-7ATUXO6R.js").then((m) => m.motionCommand)),
|
|
53
|
+
enrollment: lazy("enrollment", () => import("./enrollment-BNQOUKI7.js").then((m) => m.enrollmentCommand)),
|
|
54
|
+
webhook: lazy("webhook", () => import("./webhook-OHKBL3YS.js").then((m) => m.webhookCommand)),
|
|
53
55
|
// The LinkedIn building blocks. Reserved product groups
|
|
54
|
-
// (
|
|
55
|
-
// between `
|
|
56
|
-
core: lazy("core", () => import("./core-
|
|
56
|
+
// (contact, unibox, network, analytics, notification, team) land
|
|
57
|
+
// between `enrollment` and `webhook` with their owning specs.
|
|
58
|
+
core: lazy("core", () => import("./core-RGU2SCBN.js").then((m) => m.coreCommand))
|
|
57
59
|
},
|
|
58
60
|
async run() {
|
|
59
|
-
const { showHelp } = await import("./examples-
|
|
61
|
+
const { showHelp } = await import("./examples-NIMSIXMV.js");
|
|
60
62
|
await showHelp(main, ["curviate"]);
|
|
61
63
|
}
|
|
62
64
|
});
|
|
@@ -346,7 +348,7 @@ async function dispatch(root, rawArgs) {
|
|
|
346
348
|
helpFor = "curviate";
|
|
347
349
|
if (rawArgs.includes("--help") || rawArgs.includes("-h")) {
|
|
348
350
|
const { leaf, path } = await resolveLeaf(root, rawArgs.filter((a) => a !== "--help" && a !== "-h"));
|
|
349
|
-
const { showHelp } = await import("./examples-
|
|
351
|
+
const { showHelp } = await import("./examples-NIMSIXMV.js");
|
|
350
352
|
await showHelp(leaf, path);
|
|
351
353
|
await new Promise((done) => process.stdout.write("", () => done()));
|
|
352
354
|
process.exit(0);
|
|
@@ -427,7 +429,7 @@ async function dispatch(root, rawArgs) {
|
|
|
427
429
|
if (code === "EARG") process.stderr.write(helpPointer());
|
|
428
430
|
const { CurviateError } = await import("@curviate/sdk");
|
|
429
431
|
if (err instanceof CurviateError) {
|
|
430
|
-
const { getExitCode } = await import("./exit-codes-
|
|
432
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
431
433
|
process.exit(getExitCode(err));
|
|
432
434
|
}
|
|
433
435
|
process.exit(code === "EARG" ? 2 : 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveMemberOrMeProviderId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JYKYD57J.js";
|
|
5
5
|
import {
|
|
6
6
|
AttachError,
|
|
7
7
|
describeAttachment,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import "./chunk-UEAX6KUB.js";
|
|
12
12
|
import {
|
|
13
13
|
requireAccount
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-V7FJWTZW.js";
|
|
15
15
|
import {
|
|
16
16
|
buildPreviewOutput
|
|
17
17
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -27,19 +27,19 @@ import {
|
|
|
27
27
|
resolveEffectiveConfig,
|
|
28
28
|
streamAll,
|
|
29
29
|
writeNdjsonItem
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-SA2QHAXG.js";
|
|
31
|
+
import "./chunk-RXWODUWA.js";
|
|
32
32
|
import {
|
|
33
33
|
createClient
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
35
35
|
import {
|
|
36
36
|
GLOBAL_FLAGS,
|
|
37
37
|
WRITE_SINGLE_FLAGS,
|
|
38
38
|
readOnly
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
40
40
|
import {
|
|
41
41
|
DESCRIPTIONS
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-D2S5OCYU.js";
|
|
43
43
|
import {
|
|
44
44
|
resolveTextOrStdin
|
|
45
45
|
} from "./chunk-ZYURL5VK.js";
|
|
@@ -71,7 +71,7 @@ function buildListQuery(flags, out) {
|
|
|
71
71
|
async function handleSdkError(err, outOpts, out) {
|
|
72
72
|
const { CurviateError } = await import("@curviate/sdk");
|
|
73
73
|
if (err instanceof CurviateError) {
|
|
74
|
-
const { getExitCode } = await import("./exit-codes-
|
|
74
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
75
75
|
renderError(err, outOpts, out);
|
|
76
76
|
process.exit(getExitCode(err));
|
|
77
77
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
sentAsNotice
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Z7OQSWBD.js";
|
|
5
5
|
import {
|
|
6
6
|
AttachError,
|
|
7
7
|
readAttachment,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-UEAX6KUB.js";
|
|
14
14
|
import {
|
|
15
15
|
requireAccount
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-V7FJWTZW.js";
|
|
17
17
|
import {
|
|
18
18
|
reencodeInvitableFollowers,
|
|
19
19
|
reencodeInviteTokenItem,
|
|
@@ -40,20 +40,20 @@ import {
|
|
|
40
40
|
resolveEffectiveConfig,
|
|
41
41
|
streamAll,
|
|
42
42
|
writeNdjsonItem
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-SA2QHAXG.js";
|
|
44
|
+
import "./chunk-RXWODUWA.js";
|
|
45
45
|
import {
|
|
46
46
|
createClient
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
48
48
|
import {
|
|
49
49
|
GLOBAL_FLAGS,
|
|
50
50
|
READ_SINGLE_FLAGS,
|
|
51
51
|
WRITE_FLAGS,
|
|
52
52
|
readOnly
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
54
54
|
import {
|
|
55
55
|
DESCRIPTIONS
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-D2S5OCYU.js";
|
|
57
57
|
import "./chunk-FDJMAF7D.js";
|
|
58
58
|
import {
|
|
59
59
|
resolveTextOrStdin
|
|
@@ -91,7 +91,7 @@ async function resolveCompanyId(ns, raw) {
|
|
|
91
91
|
async function handleSdkError(err, outOpts, out) {
|
|
92
92
|
const { CurviateError } = await import("@curviate/sdk");
|
|
93
93
|
if (err instanceof CurviateError) {
|
|
94
|
-
const { getExitCode } = await import("./exit-codes-
|
|
94
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
95
95
|
renderError(err, outOpts, out);
|
|
96
96
|
process.exit(getExitCode(err));
|
|
97
97
|
}
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
setActiveProfile,
|
|
13
13
|
updateProfileField,
|
|
14
14
|
withoutUserinfo
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
16
16
|
import {
|
|
17
17
|
GLOBAL_FLAGS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
19
19
|
import {
|
|
20
20
|
DESCRIPTIONS
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-D2S5OCYU.js";
|
|
22
22
|
import "./chunk-ZYURL5VK.js";
|
|
23
23
|
|
|
24
24
|
// src/commands/config.ts
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UEAX6KUB.js";
|
|
5
5
|
import {
|
|
6
6
|
requireAccount
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V7FJWTZW.js";
|
|
8
8
|
import {
|
|
9
9
|
slimInviteReceived,
|
|
10
10
|
slimInviteReceivedItem,
|
|
@@ -26,19 +26,19 @@ import {
|
|
|
26
26
|
resolveEffectiveConfig,
|
|
27
27
|
streamAll,
|
|
28
28
|
writeNdjsonItem
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-SA2QHAXG.js";
|
|
30
|
+
import "./chunk-RXWODUWA.js";
|
|
31
31
|
import {
|
|
32
32
|
createClient
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
34
34
|
import {
|
|
35
35
|
GLOBAL_FLAGS,
|
|
36
36
|
WRITE_FLAGS,
|
|
37
37
|
readOnly
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
39
39
|
import {
|
|
40
40
|
DESCRIPTIONS
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-D2S5OCYU.js";
|
|
42
42
|
import {
|
|
43
43
|
nearestSubcommand
|
|
44
44
|
} from "./chunk-FDJMAF7D.js";
|
|
@@ -86,7 +86,7 @@ async function runConnectSend(client, flags, out) {
|
|
|
86
86
|
} catch (err) {
|
|
87
87
|
const { CurviateError } = await import("@curviate/sdk");
|
|
88
88
|
if (err instanceof CurviateError) {
|
|
89
|
-
const { getExitCode } = await import("./exit-codes-
|
|
89
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
90
90
|
renderError(err, outOpts, out);
|
|
91
91
|
process.exit(getExitCode(err));
|
|
92
92
|
}
|
|
@@ -125,7 +125,7 @@ async function runConnectSent(client, flags, out) {
|
|
|
125
125
|
} catch (err) {
|
|
126
126
|
const { CurviateError } = await import("@curviate/sdk");
|
|
127
127
|
if (err instanceof CurviateError) {
|
|
128
|
-
const { getExitCode } = await import("./exit-codes-
|
|
128
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
129
129
|
renderError(err, outOpts, out);
|
|
130
130
|
process.exit(getExitCode(err));
|
|
131
131
|
}
|
|
@@ -164,7 +164,7 @@ async function runConnectReceived(client, flags, out) {
|
|
|
164
164
|
} catch (err) {
|
|
165
165
|
const { CurviateError } = await import("@curviate/sdk");
|
|
166
166
|
if (err instanceof CurviateError) {
|
|
167
|
-
const { getExitCode } = await import("./exit-codes-
|
|
167
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
168
168
|
renderError(err, outOpts, out);
|
|
169
169
|
process.exit(getExitCode(err));
|
|
170
170
|
}
|
|
@@ -193,7 +193,7 @@ async function runConnectAccept(client, flags, out) {
|
|
|
193
193
|
} catch (err) {
|
|
194
194
|
const { CurviateError } = await import("@curviate/sdk");
|
|
195
195
|
if (err instanceof CurviateError) {
|
|
196
|
-
const { getExitCode } = await import("./exit-codes-
|
|
196
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
197
197
|
renderError(err, outOpts, out);
|
|
198
198
|
process.exit(getExitCode(err));
|
|
199
199
|
}
|
|
@@ -222,7 +222,7 @@ async function runConnectDecline(client, flags, out) {
|
|
|
222
222
|
} catch (err) {
|
|
223
223
|
const { CurviateError } = await import("@curviate/sdk");
|
|
224
224
|
if (err instanceof CurviateError) {
|
|
225
|
-
const { getExitCode } = await import("./exit-codes-
|
|
225
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
226
226
|
renderError(err, outOpts, out);
|
|
227
227
|
process.exit(getExitCode(err));
|
|
228
228
|
}
|
|
@@ -251,7 +251,7 @@ async function runConnectCancel(client, flags, out) {
|
|
|
251
251
|
} catch (err) {
|
|
252
252
|
const { CurviateError } = await import("@curviate/sdk");
|
|
253
253
|
if (err instanceof CurviateError) {
|
|
254
|
-
const { getExitCode } = await import("./exit-codes-
|
|
254
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
255
255
|
renderError(err, outOpts, out);
|
|
256
256
|
process.exit(getExitCode(err));
|
|
257
257
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
DESCRIPTIONS,
|
|
4
|
+
lazy
|
|
5
|
+
} from "./chunk-D2S5OCYU.js";
|
|
6
|
+
|
|
7
|
+
// src/commands/core.ts
|
|
8
|
+
import { defineCommand } from "citty";
|
|
9
|
+
var coreCommand = defineCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "core",
|
|
12
|
+
description: DESCRIPTIONS.core,
|
|
13
|
+
rules: {
|
|
14
|
+
notes: [
|
|
15
|
+
"Writes reach LinkedIn immediately and are seen by the people they touch.",
|
|
16
|
+
"A retry after a timeout can repeat a write: requests carry no idempotency key. Read the current state before retrying.",
|
|
17
|
+
"Budget rows, ceilings and what is left: `curviate account get <account_id>`."
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
subCommands: {
|
|
22
|
+
profile: lazy("profile", () => import("./profile-UQY64642.js").then((m) => m.profileCommand)),
|
|
23
|
+
company: lazy("company", () => import("./company-2AEHSGHA.js").then((m) => m.companyCommand)),
|
|
24
|
+
job: lazy("job", () => import("./job-6PNXXZNF.js").then((m) => m.jobCommand)),
|
|
25
|
+
connect: lazy("connect", () => import("./connect-4XEBV5V3.js").then((m) => m.connectCommand)),
|
|
26
|
+
search: lazy("search", () => import("./search-NWP5S6CF.js").then((m) => m.searchCommand)),
|
|
27
|
+
inbox: lazy("inbox", () => import("./inbox-SNSPWI7J.js").then((m) => m.inboxCommand)),
|
|
28
|
+
inboxes: lazy("inboxes", () => import("./inboxes-RIRHPS4H.js").then((m) => m.inboxesCommand)),
|
|
29
|
+
message: lazy("message", () => import("./message-2IK4MBBG.js").then((m) => m.messageCommand)),
|
|
30
|
+
post: lazy("post", () => import("./post-AN6T2OJF.js").then((m) => m.postCommand)),
|
|
31
|
+
comment: lazy("comment", () => import("./comment-MRDPDA33.js").then((m) => m.commentCommand)),
|
|
32
|
+
"sales-nav": lazy("sales-nav", () => import("./sales-nav-KLODLYMW.js").then((m) => m.salesNavCommand)),
|
|
33
|
+
recruiter: lazy("recruiter", () => import("./recruiter-OY4RN5HH.js").then((m) => m.recruiterCommand)),
|
|
34
|
+
group: lazy("group", () => import("./group-CSD2OWOZ.js").then((m) => m.groupCommand)),
|
|
35
|
+
feed: lazy("feed", () => import("./feed-DFUU7SUJ.js").then((m) => m.feedCommand)),
|
|
36
|
+
notification: lazy("notification", () => import("./notification-VYK5NDEB.js").then((m) => m.notificationCommand)),
|
|
37
|
+
draft: lazy("draft", () => import("./draft-C5N6EOO5.js").then((m) => m.draftCommand))
|
|
38
|
+
},
|
|
39
|
+
async run() {
|
|
40
|
+
const { showHelp } = await import("./examples-NIMSIXMV.js");
|
|
41
|
+
await showHelp(coreCommand, ["curviate", "core"]);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
coreCommand
|
|
46
|
+
};
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readablePage,
|
|
4
4
|
resolveEffectiveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SA2QHAXG.js";
|
|
6
6
|
import {
|
|
7
7
|
getExitCode
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RXWODUWA.js";
|
|
9
9
|
import {
|
|
10
10
|
createClient,
|
|
11
11
|
getConfigPath,
|
|
12
12
|
isPlainObject,
|
|
13
13
|
readConfigFile,
|
|
14
14
|
withoutUserinfo
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
16
16
|
import {
|
|
17
17
|
GLOBAL_FLAGS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
19
19
|
import {
|
|
20
20
|
DESCRIPTIONS
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-D2S5OCYU.js";
|
|
22
22
|
import "./chunk-ZYURL5VK.js";
|
|
23
23
|
|
|
24
24
|
// src/commands/doctor.ts
|
|
@@ -21,19 +21,19 @@ import {
|
|
|
21
21
|
resolveEffectiveConfig,
|
|
22
22
|
streamAll,
|
|
23
23
|
writeNdjsonItem
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SA2QHAXG.js";
|
|
25
25
|
import {
|
|
26
26
|
createClient
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5ZGTU4VD.js";
|
|
28
28
|
import {
|
|
29
29
|
GLOBAL_FLAGS,
|
|
30
30
|
READ_SINGLE_FLAGS,
|
|
31
31
|
WRITE_SINGLE_FLAGS,
|
|
32
32
|
readOnly
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Y7MZZRYR.js";
|
|
34
34
|
import {
|
|
35
35
|
DESCRIPTIONS
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-D2S5OCYU.js";
|
|
37
37
|
import {
|
|
38
38
|
resolveTextOrStdin
|
|
39
39
|
} from "./chunk-ZYURL5VK.js";
|
|
@@ -67,7 +67,7 @@ function rejectAllOnNonPaginated(all, out) {
|
|
|
67
67
|
async function handleError(err, outOpts, out) {
|
|
68
68
|
const { CurviateError } = await import("@curviate/sdk");
|
|
69
69
|
if (err instanceof CurviateError) {
|
|
70
|
-
const { getExitCode } = await import("./exit-codes-
|
|
70
|
+
const { getExitCode } = await import("./exit-codes-TLMKTLRI.js");
|
|
71
71
|
renderError(err, outOpts, out);
|
|
72
72
|
process.exit(getExitCode(err));
|
|
73
73
|
}
|