@curviate/cli 0.31.1 → 0.33.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 (40) hide show
  1. package/CHANGELOG.md +254 -1
  2. package/README.md +2 -0
  3. package/dist/{account-DZRX4YOK.js → account-IPAW6YRD.js} +89 -46
  4. package/dist/{chunk-A73TUZBK.js → chunk-27E2M2PS.js} +9 -6
  5. package/dist/chunk-4EH6EWFW.js +327 -0
  6. package/dist/{chunk-SKJNLN37.js → chunk-4GXO42ZH.js} +85 -1
  7. package/dist/{chunk-KQXYEQAD.js → chunk-4IPHFPLO.js} +172 -8
  8. package/dist/{chunk-Y3H55OSY.js → chunk-5SHLELR7.js} +16 -16
  9. package/dist/{chunk-JRKM4OV2.js → chunk-REO2BCEX.js} +1 -1
  10. package/dist/{chunk-6P52Q2GK.js → chunk-REVD4GXL.js} +5 -4
  11. package/dist/chunk-TCUYH5GO.js +34 -0
  12. package/dist/{chunk-X3YWBMBC.js → chunk-YCLU5VSN.js} +14 -17
  13. package/dist/cli.js +104 -37
  14. package/dist/{comment-6JI4Q6QY.js → comment-F2O4UOSD.js} +32 -26
  15. package/dist/{company-RLU5SHUO.js → company-ANZGO2HT.js} +52 -34
  16. package/dist/{config-FUHT23SX.js → config-ZD3Y5MWP.js} +74 -29
  17. package/dist/{connect-63NUITEZ.js → connect-HYJCGYFO.js} +34 -31
  18. package/dist/{doctor-KSLZNAKH.js → doctor-VPGGB5CW.js} +22 -16
  19. package/dist/{exit-codes-RUKZC4WV.js → exit-codes-ZFWQJYOY.js} +1 -1
  20. package/dist/{feed-PAWXR56T.js → feed-IZZYSYYI.js} +18 -17
  21. package/dist/{group-ZIIWI7JV.js → group-ETDDF2PJ.js} +21 -18
  22. package/dist/{inbox-GIPLWRHQ.js → inbox-XQQ4YRRO.js} +27 -22
  23. package/dist/{inboxes-ECGEMDH7.js → inboxes-6KHXXEBC.js} +18 -17
  24. package/dist/{job-WPWIAVQY.js → job-PBTJ5DWL.js} +43 -29
  25. package/dist/{login-3OAUY7TG.js → login-HP5URYD6.js} +15 -3
  26. package/dist/{message-JQL2XABC.js → message-DQQPMRFU.js} +7 -9
  27. package/dist/{notification-URSGC7OR.js → notification-CXIRJB57.js} +20 -19
  28. package/dist/{post-2HI6KL73.js → post-2S7FYMZO.js} +33 -25
  29. package/dist/{profile-4BXLUYMH.js → profile-UCERD6RR.js} +61 -43
  30. package/dist/{recruiter-OUXQ5XYU.js → recruiter-PJFUM2ZZ.js} +41 -28
  31. package/dist/{sales-nav-MJAMCSBO.js → sales-nav-7XNJGVIX.js} +43 -29
  32. package/dist/{search-M3R35BIB.js → search-DYGIIODT.js} +57 -43
  33. package/dist/{setup-YV5PVIU5.js → setup-BRULZH53.js} +12 -8
  34. package/dist/{webhook-3TEYA3B2.js → webhook-2TKWOXYK.js} +25 -22
  35. package/package.json +2 -2
  36. package/dist/chunk-LKF5MZIP.js +0 -90
  37. package/dist/chunk-PKSKQ3LN.js +0 -68
  38. package/dist/chunk-R3VLWLVV.js +0 -23
  39. package/dist/chunk-TD2ZIXFR.js +0 -67
  40. package/dist/chunk-TQJ77SL4.js +0 -147
@@ -3,14 +3,10 @@ import {
3
3
  DEFAULT_FILTER_READERS,
4
4
  assembleFilters,
5
5
  splitCsv
6
- } from "./chunk-JRKM4OV2.js";
6
+ } from "./chunk-REO2BCEX.js";
7
7
  import {
8
8
  slimJob
9
9
  } from "./chunk-LJR4LJG6.js";
10
- import {
11
- pageDelayFromFlags,
12
- streamAll
13
- } from "./chunk-LKF5MZIP.js";
14
10
  import {
15
11
  BinaryOutputError,
16
12
  writeBinaryOutput
@@ -24,31 +20,36 @@ import {
24
20
  resolveIdentifier,
25
21
  resolveJobIdentifier
26
22
  } from "./chunk-UEAX6KUB.js";
27
- import {
28
- buildPreviewOutput
29
- } from "./chunk-R3VLWLVV.js";
30
23
  import {
31
24
  requireAccount
32
- } from "./chunk-A73TUZBK.js";
25
+ } from "./chunk-27E2M2PS.js";
33
26
  import {
27
+ buildPreviewOutput
28
+ } from "./chunk-TCUYH5GO.js";
29
+ import {
30
+ pageDelayFromFlags,
31
+ readablePage,
32
+ rejectPaginationModifiersWithoutAll,
34
33
  renderError,
35
34
  renderSuccess,
36
- renderUnexpectedError
37
- } from "./chunk-KQXYEQAD.js";
35
+ renderUnexpectedError,
36
+ resolveEffectiveConfig,
37
+ streamAll,
38
+ writeNdjsonItem
39
+ } from "./chunk-4IPHFPLO.js";
40
+ import "./chunk-YCLU5VSN.js";
38
41
  import {
39
42
  createClient,
40
- resolveEffectiveConfig
41
- } from "./chunk-TD2ZIXFR.js";
42
- import "./chunk-PKSKQ3LN.js";
43
- import "./chunk-X3YWBMBC.js";
44
- import "./chunk-TQJ77SL4.js";
43
+ downloadBinary
44
+ } from "./chunk-4EH6EWFW.js";
45
45
  import {
46
46
  GLOBAL_FLAGS,
47
+ NON_STREAM_FLAGS,
47
48
  READ_SINGLE_FLAGS,
48
49
  WRITE_FLAGS,
49
50
  WRITE_SINGLE_FLAGS,
50
51
  isStdinToken
51
- } from "./chunk-SKJNLN37.js";
52
+ } from "./chunk-4GXO42ZH.js";
52
53
 
53
54
  // src/commands/recruiter.ts
54
55
  import { defineCommand } from "citty";
@@ -80,9 +81,9 @@ function normalizeAttachPaths(attach) {
80
81
  async function handleSdkError(err, outOpts, out) {
81
82
  const { CurviateError } = await import("@curviate/sdk");
82
83
  if (err instanceof CurviateError) {
83
- const { getExitCode } = await import("./exit-codes-RUKZC4WV.js");
84
+ const { getExitCode } = await import("./exit-codes-ZFWQJYOY.js");
84
85
  renderError(err, outOpts, out);
85
- process.exit(getExitCode(err.code));
86
+ process.exit(getExitCode(err));
86
87
  }
87
88
  renderUnexpectedError(err, out);
88
89
  process.exit(1);
@@ -268,6 +269,7 @@ async function runRecruiterProfile(client, flags, out) {
268
269
  }
269
270
  async function runRecruiterSearchPeople(client, flags, out, readers = DEFAULT_FILTER_READERS) {
270
271
  rejectPreviewOnRead(flags.preview, out);
272
+ rejectPaginationModifiersWithoutAll(flags, out);
271
273
  const accountId = await requireAccount(client, flags, out);
272
274
  const ns = client.account(accountId);
273
275
  const outOpts = resolveOutputOpts(flags);
@@ -305,10 +307,11 @@ async function runRecruiterSearchPeople(client, flags, out, readers = DEFAULT_FI
305
307
  out,
306
308
  pageDelayMs: pageDelayFromFlags(flags)
307
309
  })) {
308
- out.stdout.write(JSON.stringify(item) + "\n");
310
+ writeNdjsonItem(out, item, outOpts.fields);
309
311
  }
310
312
  } else {
311
313
  const result = await ns.recruiter.searchPeople(body, Object.keys(params).length > 0 ? params : void 0);
314
+ readablePage(result);
312
315
  renderSuccess(result, outOpts, out);
313
316
  }
314
317
  } catch (err) {
@@ -346,6 +349,7 @@ async function runRecruiterSearchParameters(client, flags, out) {
346
349
  }
347
350
  async function runRecruiterSearchFromUrl(client, flags, out) {
348
351
  rejectPreviewOnRead(flags.preview, out);
352
+ rejectPaginationModifiersWithoutAll(flags, out);
349
353
  const accountId = await requireAccount(client, flags, out);
350
354
  const url = flags.url ?? "";
351
355
  const ns = client.account(accountId);
@@ -373,10 +377,11 @@ async function runRecruiterSearchFromUrl(client, flags, out) {
373
377
  out,
374
378
  pageDelayMs: pageDelayFromFlags(flags)
375
379
  })) {
376
- out.stdout.write(JSON.stringify(item) + "\n");
380
+ writeNdjsonItem(out, item, outOpts.fields);
377
381
  }
378
382
  } else {
379
383
  const result = await ns.recruiter.searchFromUrl(body, Object.keys(params).length > 0 ? params : void 0);
384
+ readablePage(result);
380
385
  renderSuccess(result, outOpts, out);
381
386
  }
382
387
  } catch (err) {
@@ -385,6 +390,7 @@ async function runRecruiterSearchFromUrl(client, flags, out) {
385
390
  }
386
391
  async function runRecruiterListProjects(client, flags, out) {
387
392
  rejectPreviewOnRead(flags.preview, out);
393
+ rejectPaginationModifiersWithoutAll(flags, out);
388
394
  const accountId = await requireAccount(client, flags, out);
389
395
  const ns = client.account(accountId);
390
396
  const outOpts = resolveOutputOpts(flags);
@@ -403,10 +409,11 @@ async function runRecruiterListProjects(client, flags, out) {
403
409
  out,
404
410
  pageDelayMs: pageDelayFromFlags(flags)
405
411
  })) {
406
- out.stdout.write(JSON.stringify(item) + "\n");
412
+ writeNdjsonItem(out, item, outOpts.fields);
407
413
  }
408
414
  } else {
409
415
  const result = await ns.recruiter.listProjects(Object.keys(params).length > 0 ? params : void 0);
416
+ readablePage(result);
410
417
  renderSuccess(result, outOpts, out);
411
418
  }
412
419
  } catch (err) {
@@ -464,6 +471,7 @@ async function runRecruiterUpdateProject(client, flags, out) {
464
471
  }
465
472
  async function runRecruiterListPipeline(client, flags, out) {
466
473
  rejectPreviewOnRead(flags.preview, out);
474
+ rejectPaginationModifiersWithoutAll(flags, out);
467
475
  const accountId = await requireAccount(client, flags, out);
468
476
  const projectId = flags.projectId ?? "";
469
477
  const ns = client.account(accountId);
@@ -495,7 +503,7 @@ async function runRecruiterListPipeline(client, flags, out) {
495
503
  out,
496
504
  pageDelayMs: pageDelayFromFlags(flags)
497
505
  })) {
498
- out.stdout.write(JSON.stringify(item) + "\n");
506
+ writeNdjsonItem(out, item, outOpts.fields);
499
507
  }
500
508
  } else {
501
509
  const result = await ns.recruiter.listPipeline(
@@ -503,6 +511,7 @@ async function runRecruiterListPipeline(client, flags, out) {
503
511
  Object.keys(body).length > 0 ? body : void 0,
504
512
  Object.keys(params).length > 0 ? params : void 0
505
513
  );
514
+ readablePage(result);
506
515
  renderSuccess(result, outOpts, out);
507
516
  }
508
517
  } catch (err) {
@@ -564,6 +573,7 @@ async function runRecruiterSaveCandidate(client, flags, out) {
564
573
  }
565
574
  async function runRecruiterListJobs(client, flags, out) {
566
575
  rejectPreviewOnRead(flags.preview, out);
576
+ rejectPaginationModifiersWithoutAll(flags, out);
567
577
  const accountId = await requireAccount(client, flags, out);
568
578
  const ns = client.account(accountId);
569
579
  const outOpts = resolveOutputOpts(flags);
@@ -582,10 +592,11 @@ async function runRecruiterListJobs(client, flags, out) {
582
592
  out,
583
593
  pageDelayMs: pageDelayFromFlags(flags)
584
594
  })) {
585
- out.stdout.write(JSON.stringify(item) + "\n");
595
+ writeNdjsonItem(out, item, outOpts.fields);
586
596
  }
587
597
  } else {
588
598
  const result = await ns.recruiter.listJobs(Object.keys(params).length > 0 ? params : void 0);
599
+ readablePage(result);
589
600
  renderSuccess(result, outOpts, out);
590
601
  }
591
602
  } catch (err) {
@@ -767,6 +778,7 @@ async function runRecruiterCloseJob(client, flags, out) {
767
778
  }
768
779
  async function runRecruiterSearchTalentPool(client, flags, out, readers = DEFAULT_FILTER_READERS) {
769
780
  rejectPreviewOnRead(flags.preview, out);
781
+ rejectPaginationModifiersWithoutAll(flags, out);
770
782
  if (!flags["channel-id"]) {
771
783
  out.stderr.write("error: --channel-id is required.\n");
772
784
  process.exit(2);
@@ -806,10 +818,11 @@ async function runRecruiterSearchTalentPool(client, flags, out, readers = DEFAUL
806
818
  out,
807
819
  pageDelayMs: pageDelayFromFlags(flags)
808
820
  })) {
809
- out.stdout.write(JSON.stringify(item) + "\n");
821
+ writeNdjsonItem(out, item, outOpts.fields);
810
822
  }
811
823
  } else {
812
824
  const result = await ns.recruiter.searchTalentPool(projectId, body, Object.keys(params).length > 0 ? params : void 0);
825
+ readablePage(result);
813
826
  renderSuccess(result, outOpts, out);
814
827
  }
815
828
  } catch (err) {
@@ -872,7 +885,7 @@ async function runRecruiterDownloadResume(client, flags, out, isTTY) {
872
885
  const applicantId = flags.applicantId ?? "";
873
886
  const ns = client.account(accountId);
874
887
  try {
875
- const data = await ns.recruiter.downloadResume(projectId, applicantId);
888
+ const data = await downloadBinary(() => ns.recruiter.downloadResume(projectId, applicantId));
876
889
  await writeBinaryOutput(data, {
877
890
  outputPath: flags.output,
878
891
  isTTY,
@@ -990,7 +1003,7 @@ var recruiterSearchPeopleCommand = defineCommand({
990
1003
  var recruiterSearchParametersCommand = defineCommand({
991
1004
  meta: { name: "parameters", description: "Resolve Recruiter filter parameter IDs (POST, source-scoped)." },
992
1005
  args: {
993
- ...GLOBAL_FLAGS,
1006
+ ...NON_STREAM_FLAGS,
994
1007
  source: {
995
1008
  type: "string",
996
1009
  description: "Filter family to resolve within: APPLICANTS or PIPELINE (both require --project-id), SEARCH, JOB_POSTING, or JOBS.",
@@ -1303,7 +1316,7 @@ var recruiterJobPublishCommand = defineCommand({
1303
1316
  var recruiterApplicantsCommand = defineCommand({
1304
1317
  meta: { name: "applicants", description: "List applicants in a Recruiter project's talent pool." },
1305
1318
  args: {
1306
- ...GLOBAL_FLAGS,
1319
+ ...NON_STREAM_FLAGS,
1307
1320
  projectId: { type: "positional", description: "Recruiter project ID." },
1308
1321
  "channel-id": { type: "string", description: "The project's JOB_POSTING talent-pool channel ID (required).", required: true }
1309
1322
  },
@@ -3,11 +3,7 @@ import {
3
3
  DEFAULT_FILTER_READERS,
4
4
  assembleFilters,
5
5
  splitCsv
6
- } from "./chunk-JRKM4OV2.js";
7
- import {
8
- pageDelayFromFlags,
9
- streamAll
10
- } from "./chunk-LKF5MZIP.js";
6
+ } from "./chunk-REO2BCEX.js";
11
7
  import {
12
8
  AttachError,
13
9
  readAttachment,
@@ -16,29 +12,33 @@ import {
16
12
  import {
17
13
  resolveIdentifier
18
14
  } from "./chunk-UEAX6KUB.js";
19
- import {
20
- buildPreviewOutput
21
- } from "./chunk-R3VLWLVV.js";
22
15
  import {
23
16
  requireAccount
24
- } from "./chunk-A73TUZBK.js";
17
+ } from "./chunk-27E2M2PS.js";
25
18
  import {
19
+ buildPreviewOutput
20
+ } from "./chunk-TCUYH5GO.js";
21
+ import {
22
+ pageDelayFromFlags,
23
+ readablePage,
24
+ rejectPaginationModifiersWithoutAll,
26
25
  renderError,
27
26
  renderSuccess,
28
- renderUnexpectedError
29
- } from "./chunk-KQXYEQAD.js";
27
+ renderUnexpectedError,
28
+ resolveEffectiveConfig,
29
+ streamAll,
30
+ writeNdjsonItem
31
+ } from "./chunk-4IPHFPLO.js";
32
+ import "./chunk-YCLU5VSN.js";
30
33
  import {
31
- createClient,
32
- resolveEffectiveConfig
33
- } from "./chunk-TD2ZIXFR.js";
34
- import "./chunk-PKSKQ3LN.js";
35
- import "./chunk-X3YWBMBC.js";
36
- import "./chunk-TQJ77SL4.js";
34
+ createClient
35
+ } from "./chunk-4EH6EWFW.js";
37
36
  import {
38
37
  GLOBAL_FLAGS,
38
+ NON_STREAM_FLAGS,
39
39
  READ_SINGLE_FLAGS,
40
40
  WRITE_FLAGS
41
- } from "./chunk-SKJNLN37.js";
41
+ } from "./chunk-4GXO42ZH.js";
42
42
 
43
43
  // src/commands/sales-nav.ts
44
44
  import { defineCommand } from "citty";
@@ -68,15 +68,16 @@ function normalizeAttachPaths(attach) {
68
68
  async function handleSdkError(err, outOpts, out) {
69
69
  const { CurviateError } = await import("@curviate/sdk");
70
70
  if (err instanceof CurviateError) {
71
- const { getExitCode } = await import("./exit-codes-RUKZC4WV.js");
71
+ const { getExitCode } = await import("./exit-codes-ZFWQJYOY.js");
72
72
  renderError(err, outOpts, out);
73
- process.exit(getExitCode(err.code));
73
+ process.exit(getExitCode(err));
74
74
  }
75
75
  renderUnexpectedError(err, out);
76
76
  process.exit(1);
77
77
  }
78
78
  async function runSalesNavSearchPeople(client, flags, out, readers = DEFAULT_FILTER_READERS) {
79
79
  rejectPreviewOnRead(flags.preview, out);
80
+ rejectPaginationModifiersWithoutAll(flags, out);
80
81
  const accountId = await requireAccount(client, flags, out);
81
82
  const ns = client.account(accountId);
82
83
  const outOpts = resolveOutputOpts(flags);
@@ -115,10 +116,11 @@ async function runSalesNavSearchPeople(client, flags, out, readers = DEFAULT_FIL
115
116
  out,
116
117
  pageDelayMs: pageDelayFromFlags(flags)
117
118
  })) {
118
- out.stdout.write(JSON.stringify(item) + "\n");
119
+ writeNdjsonItem(out, item, outOpts.fields);
119
120
  }
120
121
  } else {
121
122
  const result = await ns.salesNavigator.searchPeople(body, Object.keys(params).length > 0 ? params : void 0);
123
+ readablePage(result);
122
124
  renderSuccess(result, outOpts, out);
123
125
  }
124
126
  } catch (err) {
@@ -127,6 +129,7 @@ async function runSalesNavSearchPeople(client, flags, out, readers = DEFAULT_FIL
127
129
  }
128
130
  async function runSalesNavSearchCompanies(client, flags, out, readers = DEFAULT_FILTER_READERS) {
129
131
  rejectPreviewOnRead(flags.preview, out);
132
+ rejectPaginationModifiersWithoutAll(flags, out);
130
133
  const accountId = await requireAccount(client, flags, out);
131
134
  const ns = client.account(accountId);
132
135
  const outOpts = resolveOutputOpts(flags);
@@ -161,10 +164,11 @@ async function runSalesNavSearchCompanies(client, flags, out, readers = DEFAULT_
161
164
  out,
162
165
  pageDelayMs: pageDelayFromFlags(flags)
163
166
  })) {
164
- out.stdout.write(JSON.stringify(item) + "\n");
167
+ writeNdjsonItem(out, item, outOpts.fields);
165
168
  }
166
169
  } else {
167
170
  const result = await ns.salesNavigator.searchCompanies(body, Object.keys(params).length > 0 ? params : void 0);
171
+ readablePage(result);
168
172
  renderSuccess(result, outOpts, out);
169
173
  }
170
174
  } catch (err) {
@@ -192,6 +196,7 @@ async function runSalesNavGetParameters(client, flags, out) {
192
196
  }
193
197
  async function runSalesNavSearchFromUrl(client, flags, out) {
194
198
  rejectPreviewOnRead(flags.preview, out);
199
+ rejectPaginationModifiersWithoutAll(flags, out);
195
200
  const accountId = await requireAccount(client, flags, out);
196
201
  const url = flags.url ?? "";
197
202
  const ns = client.account(accountId);
@@ -219,10 +224,11 @@ async function runSalesNavSearchFromUrl(client, flags, out) {
219
224
  out,
220
225
  pageDelayMs: pageDelayFromFlags(flags)
221
226
  })) {
222
- out.stdout.write(JSON.stringify(item) + "\n");
227
+ writeNdjsonItem(out, item, outOpts.fields);
223
228
  }
224
229
  } else {
225
230
  const result = await ns.salesNavigator.searchFromUrl(body, Object.keys(params).length > 0 ? params : void 0);
231
+ readablePage(result);
226
232
  renderSuccess(result, outOpts, out);
227
233
  }
228
234
  } catch (err) {
@@ -334,6 +340,7 @@ async function runSalesNavSaveLead(client, flags, out) {
334
340
  }
335
341
  async function runSalesNavAccountLists(client, flags, out) {
336
342
  rejectPreviewOnRead(flags.preview, out);
343
+ rejectPaginationModifiersWithoutAll(flags, out);
337
344
  const accountId = await requireAccount(client, flags, out);
338
345
  const ns = client.account(accountId);
339
346
  const outOpts = resolveOutputOpts(flags);
@@ -350,11 +357,12 @@ async function runSalesNavAccountLists(client, flags, out) {
350
357
  out,
351
358
  pageDelayMs: pageDelayFromFlags(flags)
352
359
  })) {
353
- out.stdout.write(JSON.stringify(item) + "\n");
360
+ writeNdjsonItem(out, item, outOpts.fields);
354
361
  }
355
362
  return;
356
363
  }
357
364
  const result = await ns.salesNavigator.accountLists(Object.keys(params).length > 0 ? params : void 0);
365
+ readablePage(result);
358
366
  renderSuccess(result, outOpts, out);
359
367
  } catch (err) {
360
368
  await handleSdkError(err, outOpts, out);
@@ -362,6 +370,7 @@ async function runSalesNavAccountLists(client, flags, out) {
362
370
  }
363
371
  async function runSalesNavLeadLists(client, flags, out) {
364
372
  rejectPreviewOnRead(flags.preview, out);
373
+ rejectPaginationModifiersWithoutAll(flags, out);
365
374
  const accountId = await requireAccount(client, flags, out);
366
375
  const ns = client.account(accountId);
367
376
  const outOpts = resolveOutputOpts(flags);
@@ -378,11 +387,12 @@ async function runSalesNavLeadLists(client, flags, out) {
378
387
  out,
379
388
  pageDelayMs: pageDelayFromFlags(flags)
380
389
  })) {
381
- out.stdout.write(JSON.stringify(item) + "\n");
390
+ writeNdjsonItem(out, item, outOpts.fields);
382
391
  }
383
392
  return;
384
393
  }
385
394
  const result = await ns.salesNavigator.leadLists(Object.keys(params).length > 0 ? params : void 0);
395
+ readablePage(result);
386
396
  renderSuccess(result, outOpts, out);
387
397
  } catch (err) {
388
398
  await handleSdkError(err, outOpts, out);
@@ -390,6 +400,7 @@ async function runSalesNavLeadLists(client, flags, out) {
390
400
  }
391
401
  async function runSalesNavBrowseAccountList(client, flags, out) {
392
402
  rejectPreviewOnRead(flags.preview, out);
403
+ rejectPaginationModifiersWithoutAll(flags, out);
393
404
  const accountId = await requireAccount(client, flags, out);
394
405
  const listId = flags.listId ?? "";
395
406
  const ns = client.account(accountId);
@@ -411,11 +422,12 @@ async function runSalesNavBrowseAccountList(client, flags, out) {
411
422
  out,
412
423
  pageDelayMs: pageDelayFromFlags(flags)
413
424
  })) {
414
- out.stdout.write(JSON.stringify(item) + "\n");
425
+ writeNdjsonItem(out, item, outOpts.fields);
415
426
  }
416
427
  return;
417
428
  }
418
429
  const result = await ns.salesNavigator.browseAccountList(listId, body, Object.keys(params).length > 0 ? params : void 0);
430
+ readablePage(result);
419
431
  renderSuccess(result, outOpts, out);
420
432
  } catch (err) {
421
433
  await handleSdkError(err, outOpts, out);
@@ -423,6 +435,7 @@ async function runSalesNavBrowseAccountList(client, flags, out) {
423
435
  }
424
436
  async function runSalesNavBrowseLeadList(client, flags, out) {
425
437
  rejectPreviewOnRead(flags.preview, out);
438
+ rejectPaginationModifiersWithoutAll(flags, out);
426
439
  const accountId = await requireAccount(client, flags, out);
427
440
  const listId = flags.listId ?? "";
428
441
  const ns = client.account(accountId);
@@ -444,11 +457,12 @@ async function runSalesNavBrowseLeadList(client, flags, out) {
444
457
  out,
445
458
  pageDelayMs: pageDelayFromFlags(flags)
446
459
  })) {
447
- out.stdout.write(JSON.stringify(item) + "\n");
460
+ writeNdjsonItem(out, item, outOpts.fields);
448
461
  }
449
462
  return;
450
463
  }
451
464
  const result = await ns.salesNavigator.browseLeadList(listId, body, Object.keys(params).length > 0 ? params : void 0);
465
+ readablePage(result);
452
466
  renderSuccess(result, outOpts, out);
453
467
  } catch (err) {
454
468
  await handleSdkError(err, outOpts, out);
@@ -581,7 +595,7 @@ var salesNavSearchCompaniesCommand = defineCommand({
581
595
  var salesNavSearchParametersCommand = defineCommand({
582
596
  meta: { name: "parameters", description: "Resolve Sales Navigator filter parameter IDs." },
583
597
  args: {
584
- ...GLOBAL_FLAGS,
598
+ ...NON_STREAM_FLAGS,
585
599
  type: {
586
600
  type: "string",
587
601
  description: "Parameter type to resolve. One of: GROUPS, SALES_INDUSTRY, DEPARTMENT, PERSONA, ACCOUNT_LISTS, LEAD_LISTS, TECHNOLOGIES, SAVED_ACCOUNTS, SAVED_SEARCHES, RECENT_SEARCHES, REGION, POSTAL_CODE.",
@@ -677,7 +691,7 @@ var salesNavSaveLeadCommand = defineCommand({
677
691
  // Write command: WRITE_FLAGS omits pagination/projection flags
678
692
  ...WRITE_FLAGS,
679
693
  userId: { type: "positional", description: "Sales Navigator member ID (ACw... format)." },
680
- list: { type: "string", description: "Lead list ID to save the member into (required; the v2 save always targets a specific list).", required: true }
694
+ list: { type: "string", description: "Lead list ID to save the member into (required).", required: true }
681
695
  },
682
696
  async run({ args }) {
683
697
  const flags = args;