@curviate/cli 0.10.0 → 0.11.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 +21 -0
- package/dist/account-P5K5UDWF.js +1401 -0
- package/dist/{chunk-TDYIQHQX.js → chunk-4JHGVY7R.js} +3 -1
- package/dist/{chunk-47SYFQRF.js → chunk-JXF47TRY.js} +1 -1
- package/dist/chunk-MKXA2LAR.js +51 -0
- package/dist/{exit-codes-NFIR57ZA.js → chunk-OSQ643UW.js} +4 -1
- package/dist/{chunk-CHFKVAEI.js → chunk-U7Y4EXHT.js} +1 -0
- package/dist/cli.js +18 -17
- package/dist/{company-QB7VCLXJ.js → company-IMAVQBZL.js} +3 -3
- package/dist/{config-2GBLD4GN.js → config-Q2AEWSEC.js} +1 -1
- package/dist/{connect-2OAOLYQO.js → connect-J5NPWKAQ.js} +7 -7
- package/dist/exit-codes-2ASIFXGR.js +11 -0
- package/dist/{inbox-AFVIF6ZU.js → inbox-5P5TB6AI.js} +3 -3
- package/dist/{job-QCKWY257.js → job-EIXYBDF6.js} +3 -3
- package/dist/{login-POKHNDYX.js → login-BBVQLXM7.js} +4 -49
- package/dist/{message-MP4TJJXS.js → message-646BIYRH.js} +4 -4
- package/dist/{post-Q3KR3TN3.js → post-TI6KV26J.js} +4 -4
- package/dist/{profile-2YE3IC3O.js → profile-TUIZZKM7.js} +7 -7
- package/dist/{recruiter-2CETQNCU.js → recruiter-7K56E2QA.js} +3 -3
- package/dist/{sales-nav-SG6IXCTR.js → sales-nav-I2KMQFFF.js} +3 -3
- package/dist/{search-5BBFRE6T.js → search-TF6OOEUE.js} +7 -7
- package/dist/{webhook-7BJUYU4H.js → webhook-VHREWB56.js} +3 -3
- package/package.json +4 -3
- package/dist/account-XV3MU5S5.js +0 -649
|
@@ -208,6 +208,7 @@ var READ_SINGLE_FLAGS = {
|
|
|
208
208
|
preview: GLOBAL_FLAGS.preview,
|
|
209
209
|
verbose: GLOBAL_FLAGS.verbose
|
|
210
210
|
};
|
|
211
|
+
var WRITE_SINGLE_FLAGS = READ_SINGLE_FLAGS;
|
|
211
212
|
|
|
212
213
|
export {
|
|
213
214
|
getConfigPath,
|
|
@@ -219,5 +220,6 @@ export {
|
|
|
219
220
|
updateProfileField,
|
|
220
221
|
GLOBAL_FLAGS,
|
|
221
222
|
WRITE_FLAGS,
|
|
222
|
-
READ_SINGLE_FLAGS
|
|
223
|
+
READ_SINGLE_FLAGS,
|
|
224
|
+
WRITE_SINGLE_FLAGS
|
|
223
225
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/lib/readline.ts
|
|
4
|
+
import { createInterface } from "readline";
|
|
5
|
+
async function readlineSync(prompt, opts = {}) {
|
|
6
|
+
return new Promise((resolve, reject) => {
|
|
7
|
+
process.stderr.write(prompt);
|
|
8
|
+
if (opts.mask && typeof process.stdin.setRawMode === "function") {
|
|
9
|
+
process.stdin.setRawMode(true);
|
|
10
|
+
process.stdin.resume();
|
|
11
|
+
process.stdin.setEncoding("utf8");
|
|
12
|
+
let input = "";
|
|
13
|
+
const onData = (char) => {
|
|
14
|
+
if (char === "\r" || char === "\n") {
|
|
15
|
+
process.stdin.setRawMode(false);
|
|
16
|
+
process.stdin.pause();
|
|
17
|
+
process.stdin.removeListener("data", onData);
|
|
18
|
+
process.stderr.write("\n");
|
|
19
|
+
resolve(input);
|
|
20
|
+
} else if (char === "") {
|
|
21
|
+
process.stdin.setRawMode(false);
|
|
22
|
+
process.stdin.pause();
|
|
23
|
+
process.stdin.removeListener("data", onData);
|
|
24
|
+
reject(new Error("Interrupted."));
|
|
25
|
+
} else if (char === "\x7F" || char === "\b") {
|
|
26
|
+
input = input.slice(0, -1);
|
|
27
|
+
} else {
|
|
28
|
+
input += char;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
process.stdin.on("data", onData);
|
|
32
|
+
} else {
|
|
33
|
+
const rl = createInterface({
|
|
34
|
+
input: process.stdin,
|
|
35
|
+
output: void 0,
|
|
36
|
+
// suppress default echo (prompt already on stderr)
|
|
37
|
+
terminal: false
|
|
38
|
+
});
|
|
39
|
+
rl.once("line", (line) => {
|
|
40
|
+
rl.close();
|
|
41
|
+
resolve(line.trim());
|
|
42
|
+
});
|
|
43
|
+
rl.once("error", reject);
|
|
44
|
+
rl.once("close", () => resolve(""));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
readlineSync
|
|
51
|
+
};
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
STDIN_SENTINEL
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-U7Y4EXHT.js";
|
|
5
5
|
|
|
6
6
|
// src/cli.ts
|
|
7
7
|
import { defineCommand } from "citty";
|
|
@@ -42,9 +42,10 @@ function findUnknownFlag(rawArgs, declared) {
|
|
|
42
42
|
let name = arg.replace(/^-+/, "");
|
|
43
43
|
const eq = name.indexOf("=");
|
|
44
44
|
if (eq !== -1) name = name.slice(0, eq);
|
|
45
|
-
if (name.startsWith("no-")) name = name.slice(3);
|
|
46
45
|
if (name === "") continue;
|
|
47
|
-
if (
|
|
46
|
+
if (declared.has(name)) continue;
|
|
47
|
+
if (name.startsWith("no-") && declared.has(name.slice(3))) continue;
|
|
48
|
+
return arg;
|
|
48
49
|
}
|
|
49
50
|
return null;
|
|
50
51
|
}
|
|
@@ -138,23 +139,23 @@ var main = defineCommand({
|
|
|
138
139
|
// Subcommand registry — names and descriptions are static for help rendering;
|
|
139
140
|
// the handler implementation is loaded lazily on first invocation.
|
|
140
141
|
subCommands: {
|
|
141
|
-
login: () => import("./login-
|
|
142
|
-
config: () => import("./config-
|
|
142
|
+
login: () => import("./login-BBVQLXM7.js").then((m) => m.loginCommand),
|
|
143
|
+
config: () => import("./config-Q2AEWSEC.js").then((m) => m.configCommand),
|
|
143
144
|
// ---------------------------------------------------------------------------
|
|
144
145
|
// Noun groups — lazy-loaded on first invocation.
|
|
145
146
|
// ---------------------------------------------------------------------------
|
|
146
|
-
profile: () => import("./profile-
|
|
147
|
-
company: () => import("./company-
|
|
148
|
-
job: () => import("./job-
|
|
149
|
-
connect: () => import("./connect-
|
|
150
|
-
search: () => import("./search-
|
|
151
|
-
inbox: () => import("./inbox-
|
|
152
|
-
message: () => import("./message-
|
|
153
|
-
post: () => import("./post-
|
|
154
|
-
account: () => import("./account-
|
|
155
|
-
webhook: () => import("./webhook-
|
|
156
|
-
"sales-nav": () => import("./sales-nav-
|
|
157
|
-
recruiter: () => import("./recruiter-
|
|
147
|
+
profile: () => import("./profile-TUIZZKM7.js").then((m) => m.profileCommand),
|
|
148
|
+
company: () => import("./company-IMAVQBZL.js").then((m) => m.companyCommand),
|
|
149
|
+
job: () => import("./job-EIXYBDF6.js").then((m) => m.jobCommand),
|
|
150
|
+
connect: () => import("./connect-J5NPWKAQ.js").then((m) => m.connectCommand),
|
|
151
|
+
search: () => import("./search-TF6OOEUE.js").then((m) => m.searchCommand),
|
|
152
|
+
inbox: () => import("./inbox-5P5TB6AI.js").then((m) => m.inboxCommand),
|
|
153
|
+
message: () => import("./message-646BIYRH.js").then((m) => m.messageCommand),
|
|
154
|
+
post: () => import("./post-TI6KV26J.js").then((m) => m.postCommand),
|
|
155
|
+
account: () => import("./account-P5K5UDWF.js").then((m) => m.accountCommand),
|
|
156
|
+
webhook: () => import("./webhook-VHREWB56.js").then((m) => m.webhookCommand),
|
|
157
|
+
"sales-nav": () => import("./sales-nav-I2KMQFFF.js").then((m) => m.salesNavCommand),
|
|
158
|
+
recruiter: () => import("./recruiter-7K56E2QA.js").then((m) => m.recruiterCommand)
|
|
158
159
|
},
|
|
159
160
|
async run() {
|
|
160
161
|
const { runMain } = await import("citty");
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
renderSuccess,
|
|
12
12
|
renderUnexpectedError,
|
|
13
13
|
resolveEffectiveConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JXF47TRY.js";
|
|
15
15
|
import {
|
|
16
16
|
GLOBAL_FLAGS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4JHGVY7R.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/company.ts
|
|
20
20
|
import { defineCommand } from "citty";
|
|
@@ -53,7 +53,7 @@ async function runCompanyGet(client, flags, out) {
|
|
|
53
53
|
} catch (err) {
|
|
54
54
|
const { CurviateError } = await import("@curviate/sdk");
|
|
55
55
|
if (err instanceof CurviateError) {
|
|
56
|
-
const { getExitCode } = await import("./exit-codes-
|
|
56
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
57
57
|
renderError(err, outOpts, out);
|
|
58
58
|
process.exit(getExitCode(err.code));
|
|
59
59
|
}
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
renderSuccess,
|
|
21
21
|
renderUnexpectedError,
|
|
22
22
|
resolveEffectiveConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JXF47TRY.js";
|
|
24
24
|
import {
|
|
25
25
|
GLOBAL_FLAGS,
|
|
26
26
|
WRITE_FLAGS
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4JHGVY7R.js";
|
|
28
28
|
|
|
29
29
|
// src/commands/connect.ts
|
|
30
30
|
import { defineCommand } from "citty";
|
|
@@ -79,7 +79,7 @@ async function runConnectSend(client, flags, out) {
|
|
|
79
79
|
} catch (err) {
|
|
80
80
|
const { CurviateError } = await import("@curviate/sdk");
|
|
81
81
|
if (err instanceof CurviateError) {
|
|
82
|
-
const { getExitCode } = await import("./exit-codes-
|
|
82
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
83
83
|
renderError(err, outOpts, out);
|
|
84
84
|
process.exit(getExitCode(err.code));
|
|
85
85
|
}
|
|
@@ -117,7 +117,7 @@ async function runConnectSent(client, flags, out) {
|
|
|
117
117
|
} catch (err) {
|
|
118
118
|
const { CurviateError } = await import("@curviate/sdk");
|
|
119
119
|
if (err instanceof CurviateError) {
|
|
120
|
-
const { getExitCode } = await import("./exit-codes-
|
|
120
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
121
121
|
renderError(err, outOpts, out);
|
|
122
122
|
process.exit(getExitCode(err.code));
|
|
123
123
|
}
|
|
@@ -155,7 +155,7 @@ async function runConnectReceived(client, flags, out) {
|
|
|
155
155
|
} catch (err) {
|
|
156
156
|
const { CurviateError } = await import("@curviate/sdk");
|
|
157
157
|
if (err instanceof CurviateError) {
|
|
158
|
-
const { getExitCode } = await import("./exit-codes-
|
|
158
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
159
159
|
renderError(err, outOpts, out);
|
|
160
160
|
process.exit(getExitCode(err.code));
|
|
161
161
|
}
|
|
@@ -193,7 +193,7 @@ async function runConnectRespond(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-2ASIFXGR.js");
|
|
197
197
|
renderError(err, outOpts, out);
|
|
198
198
|
process.exit(getExitCode(err.code));
|
|
199
199
|
}
|
|
@@ -222,7 +222,7 @@ async function runConnectCancel(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-2ASIFXGR.js");
|
|
226
226
|
renderError(err, outOpts, out);
|
|
227
227
|
process.exit(getExitCode(err.code));
|
|
228
228
|
}
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
renderSuccess,
|
|
12
12
|
renderUnexpectedError,
|
|
13
13
|
resolveEffectiveConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JXF47TRY.js";
|
|
15
15
|
import {
|
|
16
16
|
GLOBAL_FLAGS,
|
|
17
17
|
READ_SINGLE_FLAGS
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4JHGVY7R.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/inbox.ts
|
|
21
21
|
import { defineCommand } from "citty";
|
|
@@ -69,7 +69,7 @@ function validateIsoZTimestamp(value, flagName, out) {
|
|
|
69
69
|
async function handleSdkError(err, outOpts, out) {
|
|
70
70
|
const { CurviateError } = await import("@curviate/sdk");
|
|
71
71
|
if (err instanceof CurviateError) {
|
|
72
|
-
const { getExitCode } = await import("./exit-codes-
|
|
72
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
73
73
|
renderError(err, outOpts, out);
|
|
74
74
|
process.exit(getExitCode(err.code));
|
|
75
75
|
}
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
renderSuccess,
|
|
12
12
|
renderUnexpectedError,
|
|
13
13
|
resolveEffectiveConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JXF47TRY.js";
|
|
15
15
|
import {
|
|
16
16
|
READ_SINGLE_FLAGS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4JHGVY7R.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/job.ts
|
|
20
20
|
import { defineCommand } from "citty";
|
|
@@ -55,7 +55,7 @@ async function runJobGet(client, flags, out) {
|
|
|
55
55
|
} catch (err) {
|
|
56
56
|
const { CurviateError } = await import("@curviate/sdk");
|
|
57
57
|
if (err instanceof CurviateError) {
|
|
58
|
-
const { getExitCode } = await import("./exit-codes-
|
|
58
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
59
59
|
renderError(err, outOpts, out);
|
|
60
60
|
process.exit(getExitCode(err.code));
|
|
61
61
|
}
|
|
@@ -1,59 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
readlineSync
|
|
4
|
+
} from "./chunk-MKXA2LAR.js";
|
|
2
5
|
import {
|
|
3
6
|
GLOBAL_FLAGS,
|
|
4
7
|
writeProfile
|
|
5
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4JHGVY7R.js";
|
|
6
9
|
|
|
7
10
|
// src/commands/login.ts
|
|
8
11
|
import { defineCommand } from "citty";
|
|
9
|
-
|
|
10
|
-
// src/lib/readline.ts
|
|
11
|
-
import { createInterface } from "readline";
|
|
12
|
-
async function readlineSync(prompt, opts = {}) {
|
|
13
|
-
return new Promise((resolve, reject) => {
|
|
14
|
-
process.stderr.write(prompt);
|
|
15
|
-
if (opts.mask && typeof process.stdin.setRawMode === "function") {
|
|
16
|
-
process.stdin.setRawMode(true);
|
|
17
|
-
process.stdin.resume();
|
|
18
|
-
process.stdin.setEncoding("utf8");
|
|
19
|
-
let input = "";
|
|
20
|
-
const onData = (char) => {
|
|
21
|
-
if (char === "\r" || char === "\n") {
|
|
22
|
-
process.stdin.setRawMode(false);
|
|
23
|
-
process.stdin.pause();
|
|
24
|
-
process.stdin.removeListener("data", onData);
|
|
25
|
-
process.stderr.write("\n");
|
|
26
|
-
resolve(input);
|
|
27
|
-
} else if (char === "") {
|
|
28
|
-
process.stdin.setRawMode(false);
|
|
29
|
-
process.stdin.pause();
|
|
30
|
-
process.stdin.removeListener("data", onData);
|
|
31
|
-
reject(new Error("Interrupted."));
|
|
32
|
-
} else if (char === "\x7F" || char === "\b") {
|
|
33
|
-
input = input.slice(0, -1);
|
|
34
|
-
} else {
|
|
35
|
-
input += char;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
process.stdin.on("data", onData);
|
|
39
|
-
} else {
|
|
40
|
-
const rl = createInterface({
|
|
41
|
-
input: process.stdin,
|
|
42
|
-
output: void 0,
|
|
43
|
-
// suppress default echo (prompt already on stderr)
|
|
44
|
-
terminal: false
|
|
45
|
-
});
|
|
46
|
-
rl.once("line", (line) => {
|
|
47
|
-
rl.close();
|
|
48
|
-
resolve(line.trim());
|
|
49
|
-
});
|
|
50
|
-
rl.once("error", reject);
|
|
51
|
-
rl.once("close", () => resolve(""));
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// src/commands/login.ts
|
|
57
12
|
async function runLogin(args, out) {
|
|
58
13
|
const profileName = args.profile ?? "default";
|
|
59
14
|
const apiKey = (args["api-key"] ?? "").trim();
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-Q43HZUN3.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveTextOrStdin
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-U7Y4EXHT.js";
|
|
13
13
|
import {
|
|
14
14
|
buildPreviewOutput
|
|
15
15
|
} from "./chunk-R3VLWLVV.js";
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
renderSuccess,
|
|
24
24
|
renderUnexpectedError,
|
|
25
25
|
resolveEffectiveConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JXF47TRY.js";
|
|
27
27
|
import {
|
|
28
28
|
READ_SINGLE_FLAGS,
|
|
29
29
|
WRITE_FLAGS
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4JHGVY7R.js";
|
|
31
31
|
|
|
32
32
|
// src/commands/message.ts
|
|
33
33
|
import { defineCommand } from "citty";
|
|
@@ -73,7 +73,7 @@ var MEMBER_PROVIDER_ID_RE = /^A[CDE][A-Za-z0-9_-]{4,}$/;
|
|
|
73
73
|
async function handleSdkError(err, outOpts, out) {
|
|
74
74
|
const { CurviateError } = await import("@curviate/sdk");
|
|
75
75
|
if (err instanceof CurviateError) {
|
|
76
|
-
const { getExitCode } = await import("./exit-codes-
|
|
76
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
77
77
|
renderError(err, outOpts, out);
|
|
78
78
|
process.exit(getExitCode(err.code));
|
|
79
79
|
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-Q43HZUN3.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveTextOrStdin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U7Y4EXHT.js";
|
|
9
9
|
import {
|
|
10
10
|
streamAll
|
|
11
11
|
} from "./chunk-GXTZION6.js";
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
renderSuccess,
|
|
19
19
|
renderUnexpectedError,
|
|
20
20
|
resolveEffectiveConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JXF47TRY.js";
|
|
22
22
|
import {
|
|
23
23
|
GLOBAL_FLAGS,
|
|
24
24
|
WRITE_FLAGS
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4JHGVY7R.js";
|
|
26
26
|
|
|
27
27
|
// src/commands/post.ts
|
|
28
28
|
import { defineCommand } from "citty";
|
|
@@ -72,7 +72,7 @@ function normalizeAttachPaths(attach) {
|
|
|
72
72
|
async function handleSdkError(err, outOpts, out) {
|
|
73
73
|
const { CurviateError } = await import("@curviate/sdk");
|
|
74
74
|
if (err instanceof CurviateError) {
|
|
75
|
-
const { getExitCode } = await import("./exit-codes-
|
|
75
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
76
76
|
renderError(err, outOpts, out);
|
|
77
77
|
process.exit(getExitCode(err.code));
|
|
78
78
|
}
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
renderSuccess,
|
|
19
19
|
renderUnexpectedError,
|
|
20
20
|
resolveEffectiveConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JXF47TRY.js";
|
|
22
22
|
import {
|
|
23
23
|
GLOBAL_FLAGS
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4JHGVY7R.js";
|
|
25
25
|
|
|
26
26
|
// src/commands/profile.ts
|
|
27
27
|
import { defineCommand } from "citty";
|
|
@@ -141,7 +141,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
141
141
|
} catch (err) {
|
|
142
142
|
const { CurviateError } = await import("@curviate/sdk");
|
|
143
143
|
if (err instanceof CurviateError) {
|
|
144
|
-
const { getExitCode } = await import("./exit-codes-
|
|
144
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
145
145
|
renderError(err, outOpts, out);
|
|
146
146
|
process.exit(getExitCode(err.code));
|
|
147
147
|
}
|
|
@@ -161,7 +161,7 @@ async function runProfileMe(client, flags, out) {
|
|
|
161
161
|
} catch (err) {
|
|
162
162
|
const { CurviateError } = await import("@curviate/sdk");
|
|
163
163
|
if (err instanceof CurviateError) {
|
|
164
|
-
const { getExitCode } = await import("./exit-codes-
|
|
164
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
165
165
|
renderError(err, outOpts, out);
|
|
166
166
|
process.exit(getExitCode(err.code));
|
|
167
167
|
}
|
|
@@ -278,7 +278,7 @@ async function runProfileGet(client, flags, out) {
|
|
|
278
278
|
} catch (err) {
|
|
279
279
|
const { CurviateError } = await import("@curviate/sdk");
|
|
280
280
|
if (err instanceof CurviateError) {
|
|
281
|
-
const { getExitCode } = await import("./exit-codes-
|
|
281
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
282
282
|
renderError(err, outOpts, out);
|
|
283
283
|
process.exit(getExitCode(err.code));
|
|
284
284
|
}
|
|
@@ -315,7 +315,7 @@ async function runProfileConnections(client, flags, out) {
|
|
|
315
315
|
} catch (err) {
|
|
316
316
|
const { CurviateError } = await import("@curviate/sdk");
|
|
317
317
|
if (err instanceof CurviateError) {
|
|
318
|
-
const { getExitCode } = await import("./exit-codes-
|
|
318
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
319
319
|
renderError(err, outOpts, out);
|
|
320
320
|
process.exit(getExitCode(err.code));
|
|
321
321
|
}
|
|
@@ -346,7 +346,7 @@ async function runProfileEndorse(client, flags, out) {
|
|
|
346
346
|
} catch (err) {
|
|
347
347
|
const { CurviateError } = await import("@curviate/sdk");
|
|
348
348
|
if (err instanceof CurviateError) {
|
|
349
|
-
const { getExitCode } = await import("./exit-codes-
|
|
349
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
350
350
|
renderError(err, outOpts, out);
|
|
351
351
|
process.exit(getExitCode(err.code));
|
|
352
352
|
}
|
|
@@ -31,12 +31,12 @@ import {
|
|
|
31
31
|
renderSuccess,
|
|
32
32
|
renderUnexpectedError,
|
|
33
33
|
resolveEffectiveConfig
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JXF47TRY.js";
|
|
35
35
|
import {
|
|
36
36
|
GLOBAL_FLAGS,
|
|
37
37
|
READ_SINGLE_FLAGS,
|
|
38
38
|
WRITE_FLAGS
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-4JHGVY7R.js";
|
|
40
40
|
|
|
41
41
|
// src/commands/recruiter.ts
|
|
42
42
|
import { defineCommand } from "citty";
|
|
@@ -75,7 +75,7 @@ function normalizeAttachPaths(attach) {
|
|
|
75
75
|
async function handleSdkError(err, outOpts, out) {
|
|
76
76
|
const { CurviateError } = await import("@curviate/sdk");
|
|
77
77
|
if (err instanceof CurviateError) {
|
|
78
|
-
const { getExitCode } = await import("./exit-codes-
|
|
78
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
79
79
|
renderError(err, outOpts, out);
|
|
80
80
|
process.exit(getExitCode(err.code));
|
|
81
81
|
}
|
|
@@ -24,12 +24,12 @@ import {
|
|
|
24
24
|
renderSuccess,
|
|
25
25
|
renderUnexpectedError,
|
|
26
26
|
resolveEffectiveConfig
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JXF47TRY.js";
|
|
28
28
|
import {
|
|
29
29
|
GLOBAL_FLAGS,
|
|
30
30
|
READ_SINGLE_FLAGS,
|
|
31
31
|
WRITE_FLAGS
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4JHGVY7R.js";
|
|
33
33
|
|
|
34
34
|
// src/commands/sales-nav.ts
|
|
35
35
|
import { defineCommand } from "citty";
|
|
@@ -66,7 +66,7 @@ function normalizeAttachPaths(attach) {
|
|
|
66
66
|
async function handleSdkError(err, outOpts, out) {
|
|
67
67
|
const { CurviateError } = await import("@curviate/sdk");
|
|
68
68
|
if (err instanceof CurviateError) {
|
|
69
|
-
const { getExitCode } = await import("./exit-codes-
|
|
69
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
70
70
|
renderError(err, outOpts, out);
|
|
71
71
|
process.exit(getExitCode(err.code));
|
|
72
72
|
}
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
renderSuccess,
|
|
25
25
|
renderUnexpectedError,
|
|
26
26
|
resolveEffectiveConfig
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JXF47TRY.js";
|
|
28
28
|
import {
|
|
29
29
|
GLOBAL_FLAGS
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4JHGVY7R.js";
|
|
31
31
|
|
|
32
32
|
// src/commands/search.ts
|
|
33
33
|
import { defineCommand } from "citty";
|
|
@@ -222,7 +222,7 @@ async function runSearchPeople(client, flags, out, readers = DEFAULT_FILTER_READ
|
|
|
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-2ASIFXGR.js");
|
|
226
226
|
renderError(err, outOpts, out);
|
|
227
227
|
process.exit(getExitCode(err.code));
|
|
228
228
|
}
|
|
@@ -264,7 +264,7 @@ async function runSearchCompanies(client, flags, out, readers = DEFAULT_FILTER_R
|
|
|
264
264
|
} catch (err) {
|
|
265
265
|
const { CurviateError } = await import("@curviate/sdk");
|
|
266
266
|
if (err instanceof CurviateError) {
|
|
267
|
-
const { getExitCode } = await import("./exit-codes-
|
|
267
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
268
268
|
renderError(err, outOpts, out);
|
|
269
269
|
process.exit(getExitCode(err.code));
|
|
270
270
|
}
|
|
@@ -306,7 +306,7 @@ async function runSearchPosts(client, flags, out, readers = DEFAULT_FILTER_READE
|
|
|
306
306
|
} catch (err) {
|
|
307
307
|
const { CurviateError } = await import("@curviate/sdk");
|
|
308
308
|
if (err instanceof CurviateError) {
|
|
309
|
-
const { getExitCode } = await import("./exit-codes-
|
|
309
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
310
310
|
renderError(err, outOpts, out);
|
|
311
311
|
process.exit(getExitCode(err.code));
|
|
312
312
|
}
|
|
@@ -348,7 +348,7 @@ async function runSearchJobs(client, flags, out, readers = DEFAULT_FILTER_READER
|
|
|
348
348
|
} catch (err) {
|
|
349
349
|
const { CurviateError } = await import("@curviate/sdk");
|
|
350
350
|
if (err instanceof CurviateError) {
|
|
351
|
-
const { getExitCode } = await import("./exit-codes-
|
|
351
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
352
352
|
renderError(err, outOpts, out);
|
|
353
353
|
process.exit(getExitCode(err.code));
|
|
354
354
|
}
|
|
@@ -372,7 +372,7 @@ async function runSearchParameters(client, flags, out) {
|
|
|
372
372
|
} catch (err) {
|
|
373
373
|
const { CurviateError } = await import("@curviate/sdk");
|
|
374
374
|
if (err instanceof CurviateError) {
|
|
375
|
-
const { getExitCode } = await import("./exit-codes-
|
|
375
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
376
376
|
renderError(err, outOpts, out);
|
|
377
377
|
process.exit(getExitCode(err.code));
|
|
378
378
|
}
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
renderSuccess,
|
|
12
12
|
renderUnexpectedError,
|
|
13
13
|
resolveEffectiveConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JXF47TRY.js";
|
|
15
15
|
import {
|
|
16
16
|
GLOBAL_FLAGS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4JHGVY7R.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/webhook.ts
|
|
20
20
|
import { defineCommand } from "citty";
|
|
@@ -47,7 +47,7 @@ function resolveOutputOpts(flags) {
|
|
|
47
47
|
async function handleError(err, outOpts, out) {
|
|
48
48
|
const { CurviateError } = await import("@curviate/sdk");
|
|
49
49
|
if (err instanceof CurviateError) {
|
|
50
|
-
const { getExitCode } = await import("./exit-codes-
|
|
50
|
+
const { getExitCode } = await import("./exit-codes-2ASIFXGR.js");
|
|
51
51
|
renderError(err, outOpts, out);
|
|
52
52
|
process.exit(getExitCode(err.code));
|
|
53
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curviate/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Official command-line interface for the Curviate API.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,8 +40,9 @@
|
|
|
40
40
|
"clean": "rm -rf dist *.tsbuildinfo"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@curviate/sdk": "^0.
|
|
44
|
-
"citty": "^0.1.6"
|
|
43
|
+
"@curviate/sdk": "^0.11.0",
|
|
44
|
+
"citty": "^0.1.6",
|
|
45
|
+
"open": "^10.1.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@types/node": "^22.15.21",
|