@curviate/cli 0.21.1 → 0.22.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +171 -116
  2. package/README.md +18 -18
  3. package/dist/{account-OIV73PXX.js → account-QRGWUQXF.js} +25 -25
  4. package/dist/{chunk-HZFK45IW.js → chunk-H6XD3F66.js} +1 -1
  5. package/dist/{chunk-VPKMJYIF.js → chunk-JA3NNST6.js} +9 -1
  6. package/dist/{chunk-M6UDWFHX.js → chunk-PMRQXBCP.js} +1 -1
  7. package/dist/{chunk-WYRYCTUM.js → chunk-RFUO2G3M.js} +2 -2
  8. package/dist/{chunk-OE7OMTCM.js → chunk-T5LPGAGJ.js} +6 -6
  9. package/dist/cli.js +58 -26
  10. package/dist/{comment-W4XTOTHN.js → comment-MCGXFMN4.js} +3 -3
  11. package/dist/{company-NT4VO6JV.js → company-WDDLWP7E.js} +12 -12
  12. package/dist/{connect-VXWRLGQZ.js → connect-5OROSY5C.js} +12 -12
  13. package/dist/{exit-codes-63JE5GM5.js → exit-codes-KAVZN5BQ.js} +1 -1
  14. package/dist/{feed-4Q3B56WI.js → feed-SFVYEAYP.js} +3 -3
  15. package/dist/{group-43PHTFP7.js → group-HSZY2IJU.js} +3 -3
  16. package/dist/{inbox-GZAOUWZP.js → inbox-L6JBGZIB.js} +4 -4
  17. package/dist/{inboxes-6AZOB43U.js → inboxes-UIO74C5Q.js} +5 -5
  18. package/dist/{job-VOVQZGCK.js → job-75ML7R7I.js} +4 -4
  19. package/dist/{message-FIEWH2BU.js → message-DAQHRBSJ.js} +2 -2
  20. package/dist/{notification-65V67NWK.js → notification-DYJN4ZHN.js} +3 -3
  21. package/dist/{post-G4IMWUE2.js → post-RGDOCGC4.js} +5 -5
  22. package/dist/{profile-GADE33FY.js → profile-TJS2YAZD.js} +8 -8
  23. package/dist/{recruiter-LI2TMRHY.js → recruiter-NSM33IEK.js} +10 -10
  24. package/dist/{sales-nav-OXLRN6YK.js → sales-nav-5O7FR57S.js} +6 -6
  25. package/dist/{search-V35MFTXL.js → search-TDSLK2MB.js} +13 -13
  26. package/dist/{webhook-5HXMJQFO.js → webhook-7ESDSIRU.js} +9 -9
  27. package/package.json +4 -3
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  pageDelayFromFlags,
15
15
  streamAll
16
- } from "./chunk-HZFK45IW.js";
16
+ } from "./chunk-H6XD3F66.js";
17
17
  import {
18
18
  resolveIdentifier
19
19
  } from "./chunk-DMQZEPQE.js";
@@ -26,7 +26,7 @@ import {
26
26
  renderSuccess,
27
27
  renderUnexpectedError,
28
28
  resolveEffectiveConfig
29
- } from "./chunk-VPKMJYIF.js";
29
+ } from "./chunk-JA3NNST6.js";
30
30
  import {
31
31
  GLOBAL_FLAGS,
32
32
  READ_SINGLE_FLAGS,
@@ -69,7 +69,7 @@ function normalizeAttachPaths(attach) {
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-63JE5GM5.js");
72
+ const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
73
73
  renderError(err, outOpts, out);
74
74
  process.exit(getExitCode(err.code));
75
75
  }
@@ -489,7 +489,7 @@ var salesNavMessageNewCommand = defineCommand({
489
489
  ...WRITE_FLAGS,
490
490
  to: {
491
491
  type: "string",
492
- description: "Recipient's LinkedIn provider ID (ACw\u2026 format, e.g. from a Sales Navigator search result or profile). Not resolved from a URL/slug. Pass the provider ID directly.",
492
+ description: "Recipient's LinkedIn provider ID (ACw... format, e.g. from a Sales Navigator search result or profile). Not resolved from a URL/slug. Pass the provider ID directly.",
493
493
  required: true
494
494
  },
495
495
  subject: { type: "string", description: "Message subject line (required for Sales Navigator messaging).", required: true },
@@ -523,7 +523,7 @@ var salesNavMessageCommand = defineCommand({
523
523
  new: salesNavMessageNewCommand
524
524
  },
525
525
  async run() {
526
- process.stderr.write('Usage: curviate sales-nav message new --to <id> "<text>" [--attach <file>\u2026]\n');
526
+ process.stderr.write('Usage: curviate sales-nav message new --to <id> "<text>" [--attach <file>...]\n');
527
527
  }
528
528
  });
529
529
  var salesNavSearchPeopleCommand = defineCommand({
@@ -683,7 +683,7 @@ var salesNavSaveLeadCommand = defineCommand({
683
683
  args: {
684
684
  // Write command: WRITE_FLAGS omits pagination/projection flags
685
685
  ...WRITE_FLAGS,
686
- userId: { type: "positional", description: "Sales Navigator member ID (ACw\u2026 format)." },
686
+ userId: { type: "positional", description: "Sales Navigator member ID (ACw... format)." },
687
687
  list: { type: "string", description: "Lead list ID to save the member into (required; the v2 save always targets a specific list).", required: true }
688
688
  },
689
689
  async run({ args }) {
@@ -14,18 +14,18 @@ import {
14
14
  slimSearchPeopleItem,
15
15
  slimSearchPosts,
16
16
  slimSearchPostsItem
17
- } from "./chunk-WYRYCTUM.js";
17
+ } from "./chunk-RFUO2G3M.js";
18
18
  import {
19
19
  pageDelayFromFlags,
20
20
  streamAll
21
- } from "./chunk-HZFK45IW.js";
21
+ } from "./chunk-H6XD3F66.js";
22
22
  import {
23
23
  createClient,
24
24
  renderError,
25
25
  renderSuccess,
26
26
  renderUnexpectedError,
27
27
  resolveEffectiveConfig
28
- } from "./chunk-VPKMJYIF.js";
28
+ } from "./chunk-JA3NNST6.js";
29
29
  import {
30
30
  GLOBAL_FLAGS
31
31
  } from "./chunk-CUTMZWL6.js";
@@ -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-63JE5GM5.js");
225
+ const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
226
226
  renderError(err, outOpts, out);
227
227
  process.exit(getExitCode(err.code));
228
228
  }
@@ -263,7 +263,7 @@ async function runSearchCompanies(client, flags, out, readers = DEFAULT_FILTER_R
263
263
  } catch (err) {
264
264
  const { CurviateError } = await import("@curviate/sdk");
265
265
  if (err instanceof CurviateError) {
266
- const { getExitCode } = await import("./exit-codes-63JE5GM5.js");
266
+ const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
267
267
  renderError(err, outOpts, out);
268
268
  process.exit(getExitCode(err.code));
269
269
  }
@@ -304,7 +304,7 @@ async function runSearchPosts(client, flags, out, readers = DEFAULT_FILTER_READE
304
304
  } catch (err) {
305
305
  const { CurviateError } = await import("@curviate/sdk");
306
306
  if (err instanceof CurviateError) {
307
- const { getExitCode } = await import("./exit-codes-63JE5GM5.js");
307
+ const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
308
308
  renderError(err, outOpts, out);
309
309
  process.exit(getExitCode(err.code));
310
310
  }
@@ -345,7 +345,7 @@ async function runSearchJobs(client, flags, out, readers = DEFAULT_FILTER_READER
345
345
  } catch (err) {
346
346
  const { CurviateError } = await import("@curviate/sdk");
347
347
  if (err instanceof CurviateError) {
348
- const { getExitCode } = await import("./exit-codes-63JE5GM5.js");
348
+ const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
349
349
  renderError(err, outOpts, out);
350
350
  process.exit(getExitCode(err.code));
351
351
  }
@@ -378,7 +378,7 @@ async function runSearchParameters(client, flags, out) {
378
378
  } catch (err) {
379
379
  const { CurviateError } = await import("@curviate/sdk");
380
380
  if (err instanceof CurviateError) {
381
- const { getExitCode } = await import("./exit-codes-63JE5GM5.js");
381
+ const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
382
382
  renderError(err, outOpts, out);
383
383
  process.exit(getExitCode(err.code));
384
384
  }
@@ -418,7 +418,7 @@ async function runSearchGroups(client, flags, out) {
418
418
  } catch (err) {
419
419
  const { CurviateError } = await import("@curviate/sdk");
420
420
  if (err instanceof CurviateError) {
421
- const { getExitCode } = await import("./exit-codes-63JE5GM5.js");
421
+ const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
422
422
  renderError(err, outOpts, out);
423
423
  process.exit(getExitCode(err.code));
424
424
  }
@@ -460,7 +460,7 @@ async function runSearchServices(client, flags, out) {
460
460
  } catch (err) {
461
461
  const { CurviateError } = await import("@curviate/sdk");
462
462
  if (err instanceof CurviateError) {
463
- const { getExitCode } = await import("./exit-codes-63JE5GM5.js");
463
+ const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
464
464
  renderError(err, outOpts, out);
465
465
  process.exit(getExitCode(err.code));
466
466
  }
@@ -487,7 +487,7 @@ async function runSearchServiceParameters(client, flags, out) {
487
487
  } catch (err) {
488
488
  const { CurviateError } = await import("@curviate/sdk");
489
489
  if (err instanceof CurviateError) {
490
- const { getExitCode } = await import("./exit-codes-63JE5GM5.js");
490
+ const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
491
491
  renderError(err, outOpts, out);
492
492
  process.exit(getExitCode(err.code));
493
493
  }
@@ -524,7 +524,7 @@ async function runSearchFromUrl(client, flags, out) {
524
524
  } catch (err) {
525
525
  const { CurviateError } = await import("@curviate/sdk");
526
526
  if (err instanceof CurviateError) {
527
- const { getExitCode } = await import("./exit-codes-63JE5GM5.js");
527
+ const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
528
528
  renderError(err, outOpts, out);
529
529
  process.exit(getExitCode(err.code));
530
530
  }
@@ -643,7 +643,7 @@ var searchJobsCommand = defineCommand({
643
643
  ...GLOBAL_FLAGS,
644
644
  keywords: { type: "string", description: "Full-text keyword search." },
645
645
  ...FILTER_FLAGS,
646
- // On jobs, --location maps to the geo region filter (not a location array different API shape for jobs vs people)
646
+ // On jobs, --location maps to the geo region filter (not a location array, different API shape for jobs vs people)
647
647
  location: { type: "string", description: "geo region id (single id; resolve via search parameters --type LOCATION); maps to region filter" },
648
648
  industry: { type: "string", description: "Industry ids (comma-separated)." },
649
649
  seniority: { type: "string", description: "seniority level, closed enum: executive|director|mid_senior|associate|entry|intern (comma-separated)" },
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  pageDelayFromFlags,
4
4
  streamAll
5
- } from "./chunk-HZFK45IW.js";
5
+ } from "./chunk-H6XD3F66.js";
6
6
  import {
7
7
  buildPreviewOutput
8
8
  } from "./chunk-R3VLWLVV.js";
@@ -12,7 +12,7 @@ import {
12
12
  renderSuccess,
13
13
  renderUnexpectedError,
14
14
  resolveEffectiveConfig
15
- } from "./chunk-VPKMJYIF.js";
15
+ } from "./chunk-JA3NNST6.js";
16
16
  import {
17
17
  GLOBAL_FLAGS
18
18
  } from "./chunk-CUTMZWL6.js";
@@ -52,7 +52,7 @@ function resolveOutputOpts(flags) {
52
52
  async function handleError(err, outOpts, out) {
53
53
  const { CurviateError } = await import("@curviate/sdk");
54
54
  if (err instanceof CurviateError) {
55
- const { getExitCode } = await import("./exit-codes-63JE5GM5.js");
55
+ const { getExitCode } = await import("./exit-codes-KAVZN5BQ.js");
56
56
  renderError(err, outOpts, out);
57
57
  process.exit(getExitCode(err.code));
58
58
  }
@@ -69,7 +69,7 @@ async function runWebhookCreate(client, flags, out) {
69
69
  process.exit(2);
70
70
  }
71
71
  if (!flags["account-ids"]) {
72
- out.stderr.write("error: --account-ids is required (comma-separated list of acc_\u2026 ids).\n");
72
+ out.stderr.write("error: --account-ids is required (comma-separated list of acc_... ids).\n");
73
73
  process.exit(2);
74
74
  }
75
75
  const accountIds = flags["account-ids"].split(",").map((s) => s.trim()).filter(Boolean);
@@ -273,7 +273,7 @@ var webhookCreateCommand = defineCommand({
273
273
  source: { type: "string", description: "Event source: messaging | user | account_status.", required: true },
274
274
  "request-url": { type: "string", description: "HTTPS URL to receive webhook deliveries.", required: true },
275
275
  "account-ids": { type: "string", description: "Comma-separated account ids to target (required).", required: true },
276
- name: { type: "string", description: "Human-readable name (1\u2013100 chars)." },
276
+ name: { type: "string", description: "Human-readable name (1-100 chars)." },
277
277
  format: { type: "string", description: "Delivery encoding: json | form (default: json)." },
278
278
  enabled: { type: "boolean", description: "Create as enabled (default: true).", default: true },
279
279
  events: { type: "string", description: "Comma-separated event names to subscribe to." },
@@ -340,7 +340,7 @@ var webhookGetCommand = defineCommand({
340
340
  meta: { name: "get", description: "Get a single webhook owned by the calling tenant." },
341
341
  args: {
342
342
  ...GLOBAL_FLAGS,
343
- id: { type: "positional", description: "Webhook id (wh_\u2026)." }
343
+ id: { type: "positional", description: "Webhook id (wh_...)." }
344
344
  },
345
345
  async run({ args }) {
346
346
  const flags = args;
@@ -363,7 +363,7 @@ var webhookUpdateCommand = defineCommand({
363
363
  meta: { name: "update", description: "Update a webhook in place (source is immutable)." },
364
364
  args: {
365
365
  ...GLOBAL_FLAGS,
366
- id: { type: "positional", description: "Webhook id (wh_\u2026)." },
366
+ id: { type: "positional", description: "Webhook id (wh_...)." },
367
367
  "request-url": { type: "string", description: "Replace the delivery URL." },
368
368
  name: { type: "string", description: "Replace the name (or clear with empty string)." },
369
369
  enabled: { type: "boolean", description: "Enable or disable the webhook." },
@@ -393,7 +393,7 @@ var webhookDeleteCommand = defineCommand({
393
393
  meta: { name: "delete", description: "Permanently remove a webhook subscription." },
394
394
  args: {
395
395
  ...GLOBAL_FLAGS,
396
- id: { type: "positional", description: "Webhook id (wh_\u2026)." }
396
+ id: { type: "positional", description: "Webhook id (wh_...)." }
397
397
  },
398
398
  async run({ args }) {
399
399
  const flags = args;
@@ -423,7 +423,7 @@ var webhookVerifyCommand = defineCommand({
423
423
  },
424
424
  header: {
425
425
  type: "string",
426
- description: "The full Curviate-Signature header value from the delivery (t=\u2026,v1=\u2026).",
426
+ description: "The full Curviate-Signature header value from the delivery (t=...,v1=...).",
427
427
  required: true
428
428
  },
429
429
  body: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curviate/cli",
3
- "version": "0.21.1",
3
+ "version": "0.22.0",
4
4
  "private": false,
5
5
  "description": "Official command-line interface for the Curviate API.",
6
6
  "license": "MIT",
@@ -30,18 +30,19 @@
30
30
  },
31
31
  "scripts": {
32
32
  "build": "tsup",
33
- "prepack": "node scripts/check-clean.mjs && tsup && node scripts/check-clean.mjs --dist",
33
+ "prepack": "node scripts/check-clean.mjs && node scripts/check-copy.mjs && tsup && node scripts/check-clean.mjs --dist",
34
34
  "test": "vitest run",
35
35
  "test:watch": "vitest",
36
36
  "typecheck": "tsc --noEmit",
37
37
  "lint": "eslint src test",
38
38
  "check:clean": "node scripts/check-clean.mjs",
39
39
  "check:clean:dist": "node scripts/check-clean.mjs --dist",
40
+ "check:copy": "node scripts/check-copy.mjs",
40
41
  "verify:dist": "pnpm build && node scripts/verify-dist.mjs",
41
42
  "clean": "rm -rf dist *.tsbuildinfo"
42
43
  },
43
44
  "dependencies": {
44
- "@curviate/sdk": "^0.19.0",
45
+ "@curviate/sdk": "^0.20.0",
45
46
  "citty": "^0.1.6",
46
47
  "open": "^10.1.0"
47
48
  },