@curviate/cli 0.45.0 → 0.46.1
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 +77 -0
- package/dist/{account-FDPUPVFB.js → account-O5UX5UAH.js} +90 -36
- package/dist/{chunk-BLJGV6ST.js → chunk-2FECYCAC.js} +3 -3
- package/dist/{chunk-XZJQQJBE.js → chunk-76E3O6HY.js} +11 -0
- package/dist/{chunk-PCZH5QJA.js → chunk-DGIDAO2H.js} +1 -1
- package/dist/{chunk-B5NIX4G6.js → chunk-FXF5FF3W.js} +6 -0
- package/dist/{chunk-EGDDVF3Q.js → chunk-LCGXJGPB.js} +7 -11
- package/dist/{chunk-FD4AANAA.js → chunk-LD6WPZZM.js} +3 -3
- package/dist/cli.js +20 -20
- package/dist/{comment-G4EXIIAQ.js → comment-BKGVJYS2.js} +6 -6
- package/dist/{company-IOSYYCXY.js → company-F2AZTDPK.js} +6 -6
- package/dist/{connect-GHABKXB2.js → connect-TX6PT7NV.js} +10 -10
- package/dist/{doctor-ICAEETCL.js → doctor-USTZQ75D.js} +2 -2
- package/dist/{exit-codes-YSFFFWMS.js → exit-codes-TMAIV7EM.js} +1 -1
- package/dist/{feed-XC5235UF.js → feed-ANBPRGFQ.js} +5 -5
- package/dist/{group-JDP2HVSV.js → group-HFF7LDDQ.js} +4 -4
- package/dist/{inbox-W3KR65VD.js → inbox-XQMGW6RT.js} +4 -4
- package/dist/{inboxes-XYS3IRT6.js → inboxes-CILMIVVD.js} +4 -4
- package/dist/{job-OJB4VSI2.js → job-TOJDDJ2P.js} +5 -5
- package/dist/{message-VZHXBKTO.js → message-WCBNBPAJ.js} +4 -4
- package/dist/{notification-RIUSYJV6.js → notification-CJ3LEHFL.js} +4 -4
- package/dist/{post-ZQIYCN7A.js → post-OQWJRL4B.js} +13 -12
- package/dist/{profile-COLBPBGO.js → profile-GT6ZD37M.js} +10 -10
- package/dist/{recruiter-4KFVMKZQ.js → recruiter-ZKWG6QG3.js} +5 -5
- package/dist/{sales-nav-IOBEJ4OP.js → sales-nav-WV3YHYD6.js} +4 -4
- package/dist/{search-3MRQE6VC.js → search-VAZEQ2WJ.js} +14 -14
- package/dist/{setup-BPNLAHPC.js → setup-GGXMHXAF.js} +2 -2
- package/dist/{webhook-ND7XZ7FW.js → webhook-5M47UX6U.js} +9 -4
- package/package.json +2 -2
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
slimSearchPeopleItem,
|
|
15
15
|
slimSearchPosts,
|
|
16
16
|
slimSearchPostsItem
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LCGXJGPB.js";
|
|
18
18
|
import {
|
|
19
19
|
requireAccount
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2FECYCAC.js";
|
|
21
21
|
import {
|
|
22
22
|
pageDelayFromFlags,
|
|
23
23
|
readCursorFlag,
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
resolveEffectiveConfig,
|
|
31
31
|
streamAll,
|
|
32
32
|
writeNdjsonItem
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-FXF5FF3W.js";
|
|
34
|
+
import "./chunk-76E3O6HY.js";
|
|
35
35
|
import {
|
|
36
36
|
createClient
|
|
37
37
|
} from "./chunk-UJOTQPL6.js";
|
|
@@ -214,7 +214,7 @@ async function runSearchPeople(client, flags, out, readers = DEFAULT_FILTER_READ
|
|
|
214
214
|
} catch (err) {
|
|
215
215
|
const { CurviateError } = await import("@curviate/sdk");
|
|
216
216
|
if (err instanceof CurviateError) {
|
|
217
|
-
const { getExitCode } = await import("./exit-codes-
|
|
217
|
+
const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
|
|
218
218
|
renderError(err, outOpts, out);
|
|
219
219
|
process.exit(getExitCode(err));
|
|
220
220
|
}
|
|
@@ -256,7 +256,7 @@ async function runSearchCompanies(client, flags, out, readers = DEFAULT_FILTER_R
|
|
|
256
256
|
} catch (err) {
|
|
257
257
|
const { CurviateError } = await import("@curviate/sdk");
|
|
258
258
|
if (err instanceof CurviateError) {
|
|
259
|
-
const { getExitCode } = await import("./exit-codes-
|
|
259
|
+
const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
|
|
260
260
|
renderError(err, outOpts, out);
|
|
261
261
|
process.exit(getExitCode(err));
|
|
262
262
|
}
|
|
@@ -298,7 +298,7 @@ async function runSearchPosts(client, flags, out, readers = DEFAULT_FILTER_READE
|
|
|
298
298
|
} catch (err) {
|
|
299
299
|
const { CurviateError } = await import("@curviate/sdk");
|
|
300
300
|
if (err instanceof CurviateError) {
|
|
301
|
-
const { getExitCode } = await import("./exit-codes-
|
|
301
|
+
const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
|
|
302
302
|
renderError(err, outOpts, out);
|
|
303
303
|
process.exit(getExitCode(err));
|
|
304
304
|
}
|
|
@@ -340,7 +340,7 @@ async function runSearchJobs(client, flags, out, readers = DEFAULT_FILTER_READER
|
|
|
340
340
|
} catch (err) {
|
|
341
341
|
const { CurviateError } = await import("@curviate/sdk");
|
|
342
342
|
if (err instanceof CurviateError) {
|
|
343
|
-
const { getExitCode } = await import("./exit-codes-
|
|
343
|
+
const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
|
|
344
344
|
renderError(err, outOpts, out);
|
|
345
345
|
process.exit(getExitCode(err));
|
|
346
346
|
}
|
|
@@ -388,7 +388,7 @@ async function runSearchParameters(client, flags, out) {
|
|
|
388
388
|
} catch (err) {
|
|
389
389
|
const { CurviateError } = await import("@curviate/sdk");
|
|
390
390
|
if (err instanceof CurviateError) {
|
|
391
|
-
const { getExitCode } = await import("./exit-codes-
|
|
391
|
+
const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
|
|
392
392
|
renderError(err, outOpts, out);
|
|
393
393
|
process.exit(getExitCode(err));
|
|
394
394
|
}
|
|
@@ -430,7 +430,7 @@ async function runSearchGroups(client, flags, out) {
|
|
|
430
430
|
} catch (err) {
|
|
431
431
|
const { CurviateError } = await import("@curviate/sdk");
|
|
432
432
|
if (err instanceof CurviateError) {
|
|
433
|
-
const { getExitCode } = await import("./exit-codes-
|
|
433
|
+
const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
|
|
434
434
|
renderError(err, outOpts, out);
|
|
435
435
|
process.exit(getExitCode(err));
|
|
436
436
|
}
|
|
@@ -474,7 +474,7 @@ async function runSearchServices(client, flags, out) {
|
|
|
474
474
|
} catch (err) {
|
|
475
475
|
const { CurviateError } = await import("@curviate/sdk");
|
|
476
476
|
if (err instanceof CurviateError) {
|
|
477
|
-
const { getExitCode } = await import("./exit-codes-
|
|
477
|
+
const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
|
|
478
478
|
renderError(err, outOpts, out);
|
|
479
479
|
process.exit(getExitCode(err));
|
|
480
480
|
}
|
|
@@ -516,7 +516,7 @@ async function runSearchServiceParameters(client, flags, out) {
|
|
|
516
516
|
} catch (err) {
|
|
517
517
|
const { CurviateError } = await import("@curviate/sdk");
|
|
518
518
|
if (err instanceof CurviateError) {
|
|
519
|
-
const { getExitCode } = await import("./exit-codes-
|
|
519
|
+
const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
|
|
520
520
|
renderError(err, outOpts, out);
|
|
521
521
|
process.exit(getExitCode(err));
|
|
522
522
|
}
|
|
@@ -555,7 +555,7 @@ async function runSearchFromUrl(client, flags, out) {
|
|
|
555
555
|
} catch (err) {
|
|
556
556
|
const { CurviateError } = await import("@curviate/sdk");
|
|
557
557
|
if (err instanceof CurviateError) {
|
|
558
|
-
const { getExitCode } = await import("./exit-codes-
|
|
558
|
+
const { getExitCode } = await import("./exit-codes-TMAIV7EM.js");
|
|
559
559
|
renderError(err, outOpts, out);
|
|
560
560
|
process.exit(getExitCode(err));
|
|
561
561
|
}
|
|
@@ -649,7 +649,7 @@ var searchCompaniesCommand = defineCommand({
|
|
|
649
649
|
var searchPostsCommand = defineCommand({
|
|
650
650
|
meta: {
|
|
651
651
|
name: "posts",
|
|
652
|
-
description: "Search posts.",
|
|
652
|
+
description: "Search posts. Each result's text can repeat fragments around links, mentions and hashtags; use `curviate post get <id>` for the clean body.",
|
|
653
653
|
examples: [
|
|
654
654
|
'curviate search posts --keywords "agent infrastructure"',
|
|
655
655
|
'curviate search posts --keywords "agent infrastructure" --date-posted past_week'
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
readablePage,
|
|
7
7
|
resolveEffectiveConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FXF5FF3W.js";
|
|
9
9
|
import {
|
|
10
10
|
getExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-76E3O6HY.js";
|
|
12
12
|
import {
|
|
13
13
|
createClient,
|
|
14
14
|
getConfigPath,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
resolveEffectiveConfig,
|
|
16
16
|
streamAll,
|
|
17
17
|
writeNdjsonItem
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FXF5FF3W.js";
|
|
19
19
|
import {
|
|
20
20
|
createClient
|
|
21
21
|
} from "./chunk-UJOTQPL6.js";
|
|
@@ -53,7 +53,7 @@ function resolveOutputOpts(flags) {
|
|
|
53
53
|
async function handleError(err, outOpts, out) {
|
|
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-TMAIV7EM.js");
|
|
57
57
|
renderError(err, outOpts, out);
|
|
58
58
|
process.exit(getExitCode(err));
|
|
59
59
|
}
|
|
@@ -176,8 +176,13 @@ async function runWebhookUpdate(client, flags, out) {
|
|
|
176
176
|
if (flags.data) {
|
|
177
177
|
body["data"] = flags.data.split(",").map((s) => s.trim()).filter(Boolean);
|
|
178
178
|
}
|
|
179
|
-
if (flags["account-ids"]) {
|
|
180
|
-
|
|
179
|
+
if (flags["account-ids"] !== void 0) {
|
|
180
|
+
const accountIds = flags["account-ids"].split(",").map((s) => s.trim()).filter(Boolean);
|
|
181
|
+
if (accountIds.length === 0) {
|
|
182
|
+
out.stderr.write("error: --account-ids was given an empty value. Pass acc_... ids, or omit the flag to leave the targets unchanged.\n");
|
|
183
|
+
process.exit(2);
|
|
184
|
+
}
|
|
185
|
+
body["account_ids"] = accountIds;
|
|
181
186
|
}
|
|
182
187
|
const outOpts = resolveOutputOpts(flags);
|
|
183
188
|
if (flags.preview) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curviate/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Official command-line interface for the Curviate API.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"clean": "rm -rf dist *.tsbuildinfo"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@curviate/sdk": "0.
|
|
50
|
+
"@curviate/sdk": "0.41.0",
|
|
51
51
|
"citty": "^0.1.6",
|
|
52
52
|
"open": "^10.1.0"
|
|
53
53
|
},
|