@curviate/cli 0.40.0 → 0.41.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 (26) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/{account-LTXAUBBP.js → account-QZ5RYKIT.js} +9 -1
  3. package/dist/{chunk-T6G5AASF.js → chunk-4AAKZPOM.js} +5 -2
  4. package/dist/{chunk-LD5KJSCT.js → chunk-BLFGJIJJ.js} +1 -1
  5. package/dist/{chunk-OTBJATDE.js → chunk-CBHL3QQJ.js} +5 -0
  6. package/dist/{chunk-BGVK73VI.js → chunk-WAE7YLO5.js} +1 -1
  7. package/dist/cli.js +19 -19
  8. package/dist/{comment-2CSBSBOH.js → comment-SYA6OKEY.js} +3 -3
  9. package/dist/{company-ZUIUR5UN.js → company-IXQ4OFU3.js} +7 -3
  10. package/dist/{connect-LSXKNEL2.js → connect-TTA2X3KO.js} +2 -2
  11. package/dist/{doctor-FHOHIQPX.js → doctor-ET7XQ22E.js} +1 -1
  12. package/dist/{feed-UUHB2FXI.js → feed-556LS3CN.js} +2 -2
  13. package/dist/{group-NUCO3P2W.js → group-DIIG4XQT.js} +4 -2
  14. package/dist/{inbox-DEZTGTPO.js → inbox-SRVTUTE6.js} +4 -2
  15. package/dist/{inboxes-F3NIQQRK.js → inboxes-XHZTAUQ7.js} +4 -2
  16. package/dist/{job-YMGO3WJH.js → job-QNVGEM4J.js} +6 -2
  17. package/dist/{message-RSBUXI64.js → message-2JEL6P7E.js} +3 -3
  18. package/dist/{notification-EJ35OD3Q.js → notification-T4SRAIJ3.js} +2 -2
  19. package/dist/{post-VHVQ56A7.js → post-PV4UQVPO.js} +5 -3
  20. package/dist/{profile-3CBNI42H.js → profile-K5BZNGX5.js} +9 -3
  21. package/dist/{recruiter-M7XUFYNR.js → recruiter-OBKS4ZVL.js} +11 -2
  22. package/dist/{sales-nav-S47OCEUC.js → sales-nav-WPTMS6QF.js} +4 -2
  23. package/dist/{search-UWI37MKG.js → search-YAKZKK74.js} +2 -2
  24. package/dist/{setup-3EQRACT6.js → setup-NZQUWJYC.js} +1 -1
  25. package/dist/{webhook-I4U4C4XE.js → webhook-PXSLDB2F.js} +4 -1
  26. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -8,6 +8,34 @@ a new command or flag is a minor; a breaking command/flag/exit-code change is a
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.41.0] - 2026-09-23
12
+
13
+ Follows `@curviate/sdk` to `0.37.1` and re-vendors the OpenAPI fixture from the
14
+ deployed production document. A minor, not a patch: the fix below changes an
15
+ exit code (0 to 7) for inputs that previously succeeded silently.
16
+
17
+ ### Changed
18
+
19
+ - **SDK pin moves `0.37.0` to exactly `0.37.1`**, as `check:sdk-pin` requires.
20
+ That SDK release honours `retry_hint.kind: "never"` in its GET retry decision
21
+ and treats an empty `Retry-After` as unparseable; its type changes are
22
+ description-only.
23
+ - **`test/fixtures/openapi.json` re-vendored** from `@curviate/sdk@0.37.1`'s
24
+ `fixtures/openapi.json`, generated against production at
25
+ `0b33680536a45681ed5ffe420006cb05c85fe683`. `test/fixtures/VENDORED_FROM.json`
26
+ records the new `sdkVersion`, its salted `sha256` and that `sourceServerGitSha`.
27
+
28
+ ### Fixed
29
+
30
+ - **A single-object read's 2xx must be a readable object, or it's a platform
31
+ fault (exit 7), never a silent exit 0.** `null`, a scalar, a bare array, an
32
+ empty body, or a `{}` body previously rendered as if it were the resource.
33
+ `company <id>` against a `null`, empty or `{}` body fabricated an all-null
34
+ object (`{"id":null,"name":null,...}`) and exited 0. All of these now exit 7
35
+ (`PLATFORM_ERROR`) on every affected single-object read command, matching
36
+ the existing list-read and id-resolver contract. Writes are unaffected: a
37
+ genuine `204`/empty/`{}` body on a write still exits 0.
38
+
11
39
  ## [0.40.0] - 2026-09-22
12
40
 
13
41
  Follows `@curviate/sdk` to `0.37.0` and re-vendors the OpenAPI fixture from the
@@ -15,6 +15,7 @@ import {
15
15
  pageDelayFromFlags,
16
16
  readCursorFlag,
17
17
  readMaxPagesFlag,
18
+ readableObject,
18
19
  readablePage,
19
20
  rejectPaginationModifiersWithoutAll,
20
21
  renderError,
@@ -24,7 +25,7 @@ import {
24
25
  resolveEffectiveConfig,
25
26
  streamAll,
26
27
  writeNdjsonItem
27
- } from "./chunk-OTBJATDE.js";
28
+ } from "./chunk-CBHL3QQJ.js";
28
29
  import {
29
30
  AUTH_NEEDED
30
31
  } from "./chunk-XZJQQJBE.js";
@@ -248,6 +249,7 @@ async function runAccountGet(client, flags, out) {
248
249
  const outOpts = resolveOutputOpts(flags);
249
250
  try {
250
251
  const result = await client.accounts.get(accountId);
252
+ readableObject(result);
251
253
  renderSuccess(result, { ...outOpts, slim: slimAccountGet }, out);
252
254
  } catch (err) {
253
255
  await handleError(err, outOpts, out);
@@ -423,6 +425,7 @@ async function waitForMobileApproval(client, accountId, expiresAt, ctx) {
423
425
  let result;
424
426
  try {
425
427
  result = await client.auth.pollCheckpoint(accountId);
428
+ readableObject(result);
426
429
  } catch (err) {
427
430
  return await handleError(err, ctx.outOpts, ctx.out);
428
431
  }
@@ -636,6 +639,7 @@ async function runConnectSessionWaitLoop(client, sessionId, ctx) {
636
639
  await ctx.sleep(CHECKPOINT_POLL_FIRST_DELAY_MS);
637
640
  for (; ; ) {
638
641
  const result = await client.auth.getSession(sessionId);
642
+ readableObject(result);
639
643
  const r = result;
640
644
  if (r.status === "resolved") return { kind: "resolved", result };
641
645
  if (r.status === "expired" || r.status === "failed") {
@@ -683,6 +687,7 @@ async function runAccountConnectSessionPoll(client, flags, out, io = {}) {
683
687
  if (!flags.wait) {
684
688
  try {
685
689
  const result = await client.auth.getSession(sessionId);
690
+ readableObject(result);
686
691
  renderSuccess(result, outOpts, out);
687
692
  } catch (err) {
688
693
  await handleError(err, outOpts, out);
@@ -825,6 +830,7 @@ async function runAccountCheckpointSolve(client, flags, out) {
825
830
  let chained = false;
826
831
  try {
827
832
  const result = await client.auth.solveCheckpoint(accountId, body);
833
+ readableObject(result);
828
834
  const r = result;
829
835
  renderSuccess(result, outOpts, out);
830
836
  chained = r.status === "checkpoint_required";
@@ -871,6 +877,7 @@ async function runCheckpointPollWaitLoop(client, accountId, ctx) {
871
877
  await ctx.sleep(CHECKPOINT_POLL_FIRST_DELAY_MS);
872
878
  for (; ; ) {
873
879
  const result = await client.auth.pollCheckpoint(accountId);
880
+ readableObject(result);
874
881
  const r = result;
875
882
  if (r.status === "active") return { kind: "active", result };
876
883
  if (r.status === "expired" || r.status === "failed") {
@@ -907,6 +914,7 @@ async function runAccountCheckpointPoll(client, flags, out, io = {}) {
907
914
  if (!flags.wait) {
908
915
  try {
909
916
  const result = await client.auth.pollCheckpoint(accountId);
917
+ readableObject(result);
910
918
  renderSuccess(result, outOpts, out);
911
919
  } catch (err) {
912
920
  await handleError(err, outOpts, out);
@@ -18,17 +18,18 @@ import {
18
18
  } from "./chunk-UEAX6KUB.js";
19
19
  import {
20
20
  requireAccount
21
- } from "./chunk-LD5KJSCT.js";
21
+ } from "./chunk-BLFGJIJJ.js";
22
22
  import {
23
23
  buildPreviewOutput
24
24
  } from "./chunk-TCUYH5GO.js";
25
25
  import {
26
26
  readableId,
27
+ readableObject,
27
28
  renderError,
28
29
  renderSuccess,
29
30
  renderUnexpectedError,
30
31
  resolveEffectiveConfig
31
- } from "./chunk-OTBJATDE.js";
32
+ } from "./chunk-CBHL3QQJ.js";
32
33
  import {
33
34
  createClient,
34
35
  downloadBinary
@@ -232,6 +233,7 @@ async function runMessageGet(client, flags, out) {
232
233
  const outOpts = resolveOutputOpts(flags);
233
234
  try {
234
235
  const result = await ns.messaging.getMessage(chatId, messageId);
236
+ readableObject(result);
235
237
  renderSuccess(result, outOpts, out);
236
238
  } catch (err) {
237
239
  await handleSdkError(err, outOpts, out);
@@ -397,6 +399,7 @@ async function runMessageInMailBalance(client, flags, out) {
397
399
  const outOpts = resolveOutputOpts(flags);
398
400
  try {
399
401
  const result = await ns.users.getInMailCredits();
402
+ readableObject(result);
400
403
  renderSuccess(result, outOpts, out);
401
404
  } catch (err) {
402
405
  await handleSdkError(err, outOpts, out);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readablePage
4
- } from "./chunk-OTBJATDE.js";
4
+ } from "./chunk-CBHL3QQJ.js";
5
5
  import {
6
6
  getExitCode
7
7
  } from "./chunk-XZJQQJBE.js";
@@ -251,6 +251,10 @@ function readableId(entity) {
251
251
  if ((typeof id !== "string" || id === "") && !(typeof id === "number" && Number.isFinite(id))) throw unreadable("id");
252
252
  return String(id);
253
253
  }
254
+ function readableObject(data) {
255
+ if (!isPlainObject(data) || Object.keys(data).length === 0) throw unreadable("object");
256
+ return data;
257
+ }
254
258
  function rejectPaginationModifiersWithoutAll(flags, out) {
255
259
  if (flags.all) return;
256
260
  const offender = flags["max-pages"] !== void 0 ? "--max-pages" : flags["page-delay"] !== void 0 ? "--page-delay" : null;
@@ -410,6 +414,7 @@ export {
410
414
  renderUnexpectedError,
411
415
  readablePage,
412
416
  readableId,
417
+ readableObject,
413
418
  rejectPaginationModifiersWithoutAll,
414
419
  readCursorFlag,
415
420
  readMaxPagesFlag,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-UEAX6KUB.js";
5
5
  import {
6
6
  readableId
7
- } from "./chunk-OTBJATDE.js";
7
+ } from "./chunk-CBHL3QQJ.js";
8
8
 
9
9
  // src/lib/member-id.ts
10
10
  var MEMBER_PROVIDER_ID_RE = /^A[CDE][A-Za-z0-9_-]{4,}$/;
package/dist/cli.js CHANGED
@@ -414,30 +414,30 @@ var main = defineCommand({
414
414
  // Subcommand registry, names and descriptions are static for help rendering;
415
415
  // the handler implementation is loaded lazily on first invocation.
416
416
  subCommands: {
417
- setup: () => import("./setup-3EQRACT6.js").then((m) => m.setupCommand),
418
- doctor: () => import("./doctor-FHOHIQPX.js").then((m) => m.doctorCommand),
417
+ setup: () => import("./setup-NZQUWJYC.js").then((m) => m.setupCommand),
418
+ doctor: () => import("./doctor-ET7XQ22E.js").then((m) => m.doctorCommand),
419
419
  login: () => import("./login-YTVPIN27.js").then((m) => m.loginCommand),
420
420
  config: () => import("./config-RUBXWFQ3.js").then((m) => m.configCommand),
421
421
  // ---------------------------------------------------------------------------
422
422
  // Noun groups, lazy-loaded on first invocation.
423
423
  // ---------------------------------------------------------------------------
424
- profile: () => import("./profile-3CBNI42H.js").then((m) => m.profileCommand),
425
- company: () => import("./company-ZUIUR5UN.js").then((m) => m.companyCommand),
426
- job: () => import("./job-YMGO3WJH.js").then((m) => m.jobCommand),
427
- connect: () => import("./connect-LSXKNEL2.js").then((m) => m.connectCommand),
428
- search: () => import("./search-UWI37MKG.js").then((m) => m.searchCommand),
429
- inbox: () => import("./inbox-DEZTGTPO.js").then((m) => m.inboxCommand),
430
- inboxes: () => import("./inboxes-F3NIQQRK.js").then((m) => m.inboxesCommand),
431
- message: () => import("./message-RSBUXI64.js").then((m) => m.messageCommand),
432
- post: () => import("./post-VHVQ56A7.js").then((m) => m.postCommand),
433
- comment: () => import("./comment-2CSBSBOH.js").then((m) => m.commentCommand),
434
- account: () => import("./account-LTXAUBBP.js").then((m) => m.accountCommand),
435
- webhook: () => import("./webhook-I4U4C4XE.js").then((m) => m.webhookCommand),
436
- "sales-nav": () => import("./sales-nav-S47OCEUC.js").then((m) => m.salesNavCommand),
437
- recruiter: () => import("./recruiter-M7XUFYNR.js").then((m) => m.recruiterCommand),
438
- group: () => import("./group-NUCO3P2W.js").then((m) => m.groupCommand),
439
- feed: () => import("./feed-UUHB2FXI.js").then((m) => m.feedCommand),
440
- notification: () => import("./notification-EJ35OD3Q.js").then((m) => m.notificationCommand)
424
+ profile: () => import("./profile-K5BZNGX5.js").then((m) => m.profileCommand),
425
+ company: () => import("./company-IXQ4OFU3.js").then((m) => m.companyCommand),
426
+ job: () => import("./job-QNVGEM4J.js").then((m) => m.jobCommand),
427
+ connect: () => import("./connect-TTA2X3KO.js").then((m) => m.connectCommand),
428
+ search: () => import("./search-YAKZKK74.js").then((m) => m.searchCommand),
429
+ inbox: () => import("./inbox-SRVTUTE6.js").then((m) => m.inboxCommand),
430
+ inboxes: () => import("./inboxes-XHZTAUQ7.js").then((m) => m.inboxesCommand),
431
+ message: () => import("./message-2JEL6P7E.js").then((m) => m.messageCommand),
432
+ post: () => import("./post-PV4UQVPO.js").then((m) => m.postCommand),
433
+ comment: () => import("./comment-SYA6OKEY.js").then((m) => m.commentCommand),
434
+ account: () => import("./account-QZ5RYKIT.js").then((m) => m.accountCommand),
435
+ webhook: () => import("./webhook-PXSLDB2F.js").then((m) => m.webhookCommand),
436
+ "sales-nav": () => import("./sales-nav-WPTMS6QF.js").then((m) => m.salesNavCommand),
437
+ recruiter: () => import("./recruiter-OBKS4ZVL.js").then((m) => m.recruiterCommand),
438
+ group: () => import("./group-DIIG4XQT.js").then((m) => m.groupCommand),
439
+ feed: () => import("./feed-556LS3CN.js").then((m) => m.feedCommand),
440
+ notification: () => import("./notification-T4SRAIJ3.js").then((m) => m.notificationCommand)
441
441
  },
442
442
  async run() {
443
443
  const { runMain } = await import("citty");
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolveMemberOrMeProviderId
4
- } from "./chunk-BGVK73VI.js";
4
+ } from "./chunk-WAE7YLO5.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-LD5KJSCT.js";
14
+ } from "./chunk-BLFGJIJJ.js";
15
15
  import {
16
16
  buildPreviewOutput
17
17
  } from "./chunk-TCUYH5GO.js";
@@ -27,7 +27,7 @@ import {
27
27
  resolveEffectiveConfig,
28
28
  streamAll,
29
29
  writeNdjsonItem
30
- } from "./chunk-OTBJATDE.js";
30
+ } from "./chunk-CBHL3QQJ.js";
31
31
  import "./chunk-XZJQQJBE.js";
32
32
  import {
33
33
  createClient
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-XP2LN6F6.js";
11
11
  import {
12
12
  sentAsNotice
13
- } from "./chunk-T6G5AASF.js";
13
+ } from "./chunk-4AAKZPOM.js";
14
14
  import "./chunk-UWO2D4HW.js";
15
15
  import "./chunk-HOQ7EUHJ.js";
16
16
  import {
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-UEAX6KUB.js";
24
24
  import {
25
25
  requireAccount
26
- } from "./chunk-LD5KJSCT.js";
26
+ } from "./chunk-BLFGJIJJ.js";
27
27
  import {
28
28
  buildPreviewOutput
29
29
  } from "./chunk-TCUYH5GO.js";
@@ -32,6 +32,7 @@ import {
32
32
  readCursorFlag,
33
33
  readMaxPagesFlag,
34
34
  readableId,
35
+ readableObject,
35
36
  readablePage,
36
37
  rejectPaginationModifiersWithoutAll,
37
38
  renderError,
@@ -40,7 +41,7 @@ import {
40
41
  resolveEffectiveConfig,
41
42
  streamAll,
42
43
  writeNdjsonItem
43
- } from "./chunk-OTBJATDE.js";
44
+ } from "./chunk-CBHL3QQJ.js";
44
45
  import "./chunk-XZJQQJBE.js";
45
46
  import {
46
47
  createClient
@@ -113,6 +114,7 @@ async function runCompanyGet(client, flags, out) {
113
114
  const outOpts = { ...resolveOutputOpts(flags), slim: slimCompany };
114
115
  try {
115
116
  const result = await client.account(accountId).companies.get(resolvedId);
117
+ readableObject(result);
116
118
  renderSuccess(result, outOpts, out);
117
119
  } catch (err) {
118
120
  await handleSdkError(err, outOpts, out);
@@ -380,6 +382,7 @@ async function runCompanyChat(client, flags, out) {
380
382
  try {
381
383
  const identifier = await resolveCompanyId(ns, flags.id ?? "");
382
384
  const result = await ns.companies.chat(identifier, chatId);
385
+ readableObject(result);
383
386
  renderSuccess(result, outOpts, out);
384
387
  } catch (err) {
385
388
  await handleSdkError(err, outOpts, out);
@@ -431,6 +434,7 @@ async function runCompanyMessage(client, flags, out) {
431
434
  try {
432
435
  const identifier = await resolveCompanyId(ns, flags.id ?? "");
433
436
  const result = await ns.companies.message(identifier, chatId, messageId);
437
+ readableObject(result);
434
438
  renderSuccess(result, outOpts, out);
435
439
  } catch (err) {
436
440
  await handleSdkError(err, outOpts, out);
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-UEAX6KUB.js";
14
14
  import {
15
15
  requireAccount
16
- } from "./chunk-LD5KJSCT.js";
16
+ } from "./chunk-BLFGJIJJ.js";
17
17
  import {
18
18
  buildPreviewOutput
19
19
  } from "./chunk-TCUYH5GO.js";
@@ -29,7 +29,7 @@ import {
29
29
  resolveEffectiveConfig,
30
30
  streamAll,
31
31
  writeNdjsonItem
32
- } from "./chunk-OTBJATDE.js";
32
+ } from "./chunk-CBHL3QQJ.js";
33
33
  import "./chunk-XZJQQJBE.js";
34
34
  import {
35
35
  createClient
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readablePage,
4
4
  resolveEffectiveConfig
5
- } from "./chunk-OTBJATDE.js";
5
+ } from "./chunk-CBHL3QQJ.js";
6
6
  import {
7
7
  getExitCode
8
8
  } from "./chunk-XZJQQJBE.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-LD5KJSCT.js";
4
+ } from "./chunk-BLFGJIJJ.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
@@ -14,7 +14,7 @@ import {
14
14
  resolveEffectiveConfig,
15
15
  streamAll,
16
16
  writeNdjsonItem
17
- } from "./chunk-OTBJATDE.js";
17
+ } from "./chunk-CBHL3QQJ.js";
18
18
  import "./chunk-XZJQQJBE.js";
19
19
  import {
20
20
  createClient
@@ -4,11 +4,12 @@ import {
4
4
  } from "./chunk-UEAX6KUB.js";
5
5
  import {
6
6
  requireAccount
7
- } from "./chunk-LD5KJSCT.js";
7
+ } from "./chunk-BLFGJIJJ.js";
8
8
  import {
9
9
  pageDelayFromFlags,
10
10
  readCursorFlag,
11
11
  readMaxPagesFlag,
12
+ readableObject,
12
13
  readablePage,
13
14
  rejectPaginationModifiersWithoutAll,
14
15
  renderError,
@@ -17,7 +18,7 @@ import {
17
18
  resolveEffectiveConfig,
18
19
  streamAll,
19
20
  writeNdjsonItem
20
- } from "./chunk-OTBJATDE.js";
21
+ } from "./chunk-CBHL3QQJ.js";
21
22
  import "./chunk-XZJQQJBE.js";
22
23
  import {
23
24
  createClient
@@ -106,6 +107,7 @@ async function runGroupGet(client, flags, out) {
106
107
  const outOpts = resolveOutputOpts(flags);
107
108
  try {
108
109
  const result = await ns.groups.get(groupId);
110
+ readableObject(result);
109
111
  renderSuccess(result, outOpts, out);
110
112
  } catch (err) {
111
113
  await handleSdkError(err, outOpts, out);
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-UEAX6KUB.js";
9
9
  import {
10
10
  requireAccount
11
- } from "./chunk-LD5KJSCT.js";
11
+ } from "./chunk-BLFGJIJJ.js";
12
12
  import {
13
13
  buildPreviewOutput
14
14
  } from "./chunk-TCUYH5GO.js";
@@ -16,6 +16,7 @@ import {
16
16
  pageDelayFromFlags,
17
17
  readCursorFlag,
18
18
  readMaxPagesFlag,
19
+ readableObject,
19
20
  readablePage,
20
21
  rejectPaginationModifiersWithoutAll,
21
22
  renderError,
@@ -24,7 +25,7 @@ import {
24
25
  resolveEffectiveConfig,
25
26
  streamAll,
26
27
  writeNdjsonItem
27
- } from "./chunk-OTBJATDE.js";
28
+ } from "./chunk-CBHL3QQJ.js";
28
29
  import "./chunk-XZJQQJBE.js";
29
30
  import {
30
31
  createClient
@@ -159,6 +160,7 @@ async function runInboxGet(client, flags, out) {
159
160
  const outOpts = resolveOutputOpts(flags);
160
161
  try {
161
162
  const result = await ns.messaging.getChat(chatId, retrieval.query);
163
+ readableObject(result);
162
164
  renderSuccess(result, outOpts, out);
163
165
  } catch (err) {
164
166
  await handleSdkError(err, outOpts, out);
@@ -1,11 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-LD5KJSCT.js";
4
+ } from "./chunk-BLFGJIJJ.js";
5
5
  import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
8
8
  readMaxPagesFlag,
9
+ readableObject,
9
10
  readablePage,
10
11
  rejectPaginationModifiersWithoutAll,
11
12
  renderError,
@@ -14,7 +15,7 @@ import {
14
15
  resolveEffectiveConfig,
15
16
  streamAll,
16
17
  writeNdjsonItem
17
- } from "./chunk-OTBJATDE.js";
18
+ } from "./chunk-CBHL3QQJ.js";
18
19
  import "./chunk-XZJQQJBE.js";
19
20
  import {
20
21
  createClient
@@ -83,6 +84,7 @@ async function runInboxesList(client, flags, out) {
83
84
  if (flags["company-id"]) params["company_id"] = flags["company-id"];
84
85
  try {
85
86
  const result = await ns.inboxes.list(params);
87
+ readableObject(result);
86
88
  renderSuccess(result, outOpts, out);
87
89
  } catch (err) {
88
90
  await handleSdkError(err, outOpts, out);
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-UEAX6KUB.js";
12
12
  import {
13
13
  requireAccount
14
- } from "./chunk-LD5KJSCT.js";
14
+ } from "./chunk-BLFGJIJJ.js";
15
15
  import {
16
16
  buildPreviewOutput
17
17
  } from "./chunk-TCUYH5GO.js";
@@ -21,6 +21,7 @@ import {
21
21
  pageDelayFromFlags,
22
22
  readCursorFlag,
23
23
  readMaxPagesFlag,
24
+ readableObject,
24
25
  readablePage,
25
26
  rejectPaginationModifiersWithoutAll,
26
27
  renderError,
@@ -29,7 +30,7 @@ import {
29
30
  resolveEffectiveConfig,
30
31
  streamAll,
31
32
  writeNdjsonItem
32
- } from "./chunk-OTBJATDE.js";
33
+ } from "./chunk-CBHL3QQJ.js";
33
34
  import "./chunk-XZJQQJBE.js";
34
35
  import {
35
36
  createClient,
@@ -131,6 +132,7 @@ async function runJobGet(client, flags, out) {
131
132
  const outOpts = resolveOutputOpts(flags);
132
133
  try {
133
134
  const result = await ns.jobs.get(resolvedId);
135
+ readableObject(result);
134
136
  renderSuccess(result, { ...outOpts, slim: slimJob }, out);
135
137
  } catch (err) {
136
138
  await handleSdkError(err, outOpts, out);
@@ -262,6 +264,7 @@ async function runJobBudget(client, flags, out) {
262
264
  const outOpts = resolveOutputOpts(flags);
263
265
  try {
264
266
  const result = await ns.jobs.getBudget(jobId);
267
+ readableObject(result);
265
268
  renderSuccess(result, outOpts, out);
266
269
  } catch (err) {
267
270
  await handleSdkError(err, outOpts, out);
@@ -313,6 +316,7 @@ async function runJobApplicantGet(client, flags, out) {
313
316
  const outOpts = resolveOutputOpts(flags);
314
317
  try {
315
318
  const result = await ns.jobs.getApplicant(jobId, applicantId);
319
+ readableObject(result);
316
320
  renderSuccess(result, outOpts, out);
317
321
  } catch (err) {
318
322
  await handleSdkError(err, outOpts, out);
@@ -13,14 +13,14 @@ import {
13
13
  runMessageSend,
14
14
  sentAsNotice,
15
15
  willSendAsNotice
16
- } from "./chunk-T6G5AASF.js";
16
+ } from "./chunk-4AAKZPOM.js";
17
17
  import "./chunk-UWO2D4HW.js";
18
18
  import "./chunk-HOQ7EUHJ.js";
19
19
  import "./chunk-BGZW6B7G.js";
20
20
  import "./chunk-UEAX6KUB.js";
21
- import "./chunk-LD5KJSCT.js";
21
+ import "./chunk-BLFGJIJJ.js";
22
22
  import "./chunk-TCUYH5GO.js";
23
- import "./chunk-OTBJATDE.js";
23
+ import "./chunk-CBHL3QQJ.js";
24
24
  import "./chunk-XZJQQJBE.js";
25
25
  import "./chunk-DCZR4M7G.js";
26
26
  import "./chunk-XDQHNUEU.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  requireAccount
4
- } from "./chunk-LD5KJSCT.js";
4
+ } from "./chunk-BLFGJIJJ.js";
5
5
  import {
6
6
  buildPreviewOutput
7
7
  } from "./chunk-TCUYH5GO.js";
@@ -17,7 +17,7 @@ import {
17
17
  resolveEffectiveConfig,
18
18
  streamAll,
19
19
  writeNdjsonItem
20
- } from "./chunk-OTBJATDE.js";
20
+ } from "./chunk-CBHL3QQJ.js";
21
21
  import "./chunk-XZJQQJBE.js";
22
22
  import {
23
23
  createClient
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  resolveMemberOrMeProviderId
4
- } from "./chunk-BGVK73VI.js";
4
+ } from "./chunk-WAE7YLO5.js";
5
5
  import {
6
6
  AttachError,
7
7
  readAttachment,
@@ -10,7 +10,7 @@ import {
10
10
  import "./chunk-UEAX6KUB.js";
11
11
  import {
12
12
  requireAccount
13
- } from "./chunk-LD5KJSCT.js";
13
+ } from "./chunk-BLFGJIJJ.js";
14
14
  import {
15
15
  buildPreviewOutput
16
16
  } from "./chunk-TCUYH5GO.js";
@@ -18,6 +18,7 @@ import {
18
18
  pageDelayFromFlags,
19
19
  readCursorFlag,
20
20
  readMaxPagesFlag,
21
+ readableObject,
21
22
  readablePage,
22
23
  rejectPaginationModifiersWithoutAll,
23
24
  renderError,
@@ -26,7 +27,7 @@ import {
26
27
  resolveEffectiveConfig,
27
28
  streamAll,
28
29
  writeNdjsonItem
29
- } from "./chunk-OTBJATDE.js";
30
+ } from "./chunk-CBHL3QQJ.js";
30
31
  import "./chunk-XZJQQJBE.js";
31
32
  import {
32
33
  createClient
@@ -97,6 +98,7 @@ async function runPostGet(client, flags, out) {
97
98
  const outOpts = resolveOutputOpts(flags);
98
99
  try {
99
100
  const result = await ns.posts.get(postId);
101
+ readableObject(result);
100
102
  renderSuccess(result, outOpts, out);
101
103
  } catch (err) {
102
104
  await handleSdkError(err, outOpts, out);
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  resolveMemberOrMeProviderId,
15
15
  resolveMemberProviderId
16
- } from "./chunk-BGVK73VI.js";
16
+ } from "./chunk-WAE7YLO5.js";
17
17
  import {
18
18
  AttachError,
19
19
  readAttachment,
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-UEAX6KUB.js";
25
25
  import {
26
26
  requireAccount
27
- } from "./chunk-LD5KJSCT.js";
27
+ } from "./chunk-BLFGJIJJ.js";
28
28
  import {
29
29
  buildPreviewOutput
30
30
  } from "./chunk-TCUYH5GO.js";
@@ -33,6 +33,7 @@ import {
33
33
  readCursorFlag,
34
34
  readMaxPagesFlag,
35
35
  readableId,
36
+ readableObject,
36
37
  readablePage,
37
38
  rejectPaginationModifiersWithoutAll,
38
39
  renderError,
@@ -41,7 +42,7 @@ import {
41
42
  resolveEffectiveConfig,
42
43
  streamAll,
43
44
  writeNdjsonItem
44
- } from "./chunk-OTBJATDE.js";
45
+ } from "./chunk-CBHL3QQJ.js";
45
46
  import "./chunk-XZJQQJBE.js";
46
47
  import {
47
48
  createClient
@@ -207,6 +208,7 @@ async function runProfileMe(client, flags, out) {
207
208
  }
208
209
  try {
209
210
  const result = await ns.users.get("me", params);
211
+ readableObject(result);
210
212
  const slimOutOpts = { ...outOpts, slim: withRequestedSections(slimProfileMe, params.linkedin_sections) };
211
213
  renderSuccess(result, slimOutOpts, out);
212
214
  } catch (err) {
@@ -338,6 +340,7 @@ async function runProfileGet(client, flags, out) {
338
340
  }
339
341
  const getId = flags.sections ? await resolveMemberOrMeProviderId(ns, rawId, retrievalQuery) : resolvedId;
340
342
  const result = await ns.users.get(getId, params);
343
+ readableObject(result);
341
344
  const getOutOpts = { ...outOpts, slim: withRequestedSections(slimProfile, parsedSections) };
342
345
  renderSuccess(result, getOutOpts, out);
343
346
  }
@@ -438,6 +441,7 @@ async function runProfileSubscription(client, flags, out) {
438
441
  const outOpts = resolveOutputOpts(flags);
439
442
  try {
440
443
  const result = await ns.profile.subscription();
444
+ readableObject(result);
441
445
  renderSuccess(result, outOpts, out);
442
446
  } catch (err) {
443
447
  await handleSdkError(err, outOpts, out);
@@ -451,6 +455,7 @@ async function runProfileAnalytics(client, flags, out) {
451
455
  const outOpts = resolveOutputOpts(flags);
452
456
  try {
453
457
  const result = await ns.profile.analytics();
458
+ readableObject(result);
454
459
  renderSuccess(result, outOpts, out);
455
460
  } catch (err) {
456
461
  await handleSdkError(err, outOpts, out);
@@ -496,6 +501,7 @@ async function runProfileSsi(client, flags, out) {
496
501
  const outOpts = resolveOutputOpts(flags);
497
502
  try {
498
503
  const result = await ns.profile.ssi();
504
+ readableObject(result);
499
505
  renderSuccess(result, outOpts, out);
500
506
  } catch (err) {
501
507
  await handleSdkError(err, outOpts, out);
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-UEAX6KUB.js";
23
23
  import {
24
24
  requireAccount
25
- } from "./chunk-LD5KJSCT.js";
25
+ } from "./chunk-BLFGJIJJ.js";
26
26
  import {
27
27
  buildPreviewOutput
28
28
  } from "./chunk-TCUYH5GO.js";
@@ -30,6 +30,7 @@ import {
30
30
  pageDelayFromFlags,
31
31
  readCursorFlag,
32
32
  readMaxPagesFlag,
33
+ readableObject,
33
34
  readablePage,
34
35
  rejectPaginationModifiersWithoutAll,
35
36
  renderError,
@@ -38,7 +39,7 @@ import {
38
39
  resolveEffectiveConfig,
39
40
  streamAll,
40
41
  writeNdjsonItem
41
- } from "./chunk-OTBJATDE.js";
42
+ } from "./chunk-CBHL3QQJ.js";
42
43
  import "./chunk-XZJQQJBE.js";
43
44
  import {
44
45
  createClient,
@@ -264,6 +265,7 @@ async function runRecruiterProfile(client, flags, out) {
264
265
  const outOpts = resolveOutputOpts(flags);
265
266
  try {
266
267
  const result = await ns.recruiter.getProfile(resolvedId, {});
268
+ readableObject(result);
267
269
  renderSuccess(result, outOpts, out);
268
270
  } catch (err) {
269
271
  await handleSdkError(err, outOpts, out);
@@ -344,6 +346,7 @@ async function runRecruiterSearchParameters(client, flags, out) {
344
346
  if (flags.limit) params["limit"] = parseInt(flags.limit, 10);
345
347
  try {
346
348
  const result = await ns.recruiter.searchParameters(body, Object.keys(params).length > 0 ? params : void 0);
349
+ readableObject(result);
347
350
  renderSuccess(result, outOpts, out);
348
351
  } catch (err) {
349
352
  await handleSdkError(err, outOpts, out);
@@ -430,6 +433,7 @@ async function runRecruiterGetProject(client, flags, out) {
430
433
  const outOpts = resolveOutputOpts(flags);
431
434
  try {
432
435
  const result = await ns.recruiter.getProject(projectId);
436
+ readableObject(result);
433
437
  renderSuccess(result, outOpts, out);
434
438
  } catch (err) {
435
439
  await handleSdkError(err, outOpts, out);
@@ -528,6 +532,7 @@ async function runRecruiterGetProjectJob(client, flags, out) {
528
532
  const outOpts = resolveOutputOpts(flags);
529
533
  try {
530
534
  const result = await ns.recruiter.getProjectJob(projectId);
535
+ readableObject(result);
531
536
  renderSuccess(result, outOpts, out);
532
537
  } catch (err) {
533
538
  await handleSdkError(err, outOpts, out);
@@ -542,6 +547,7 @@ async function runRecruiterGetProjectJobBudget(client, flags, out) {
542
547
  const outOpts = resolveOutputOpts(flags);
543
548
  try {
544
549
  const result = await ns.recruiter.getProjectJobBudget(projectId, jobId);
550
+ readableObject(result);
545
551
  renderSuccess(result, outOpts, out);
546
552
  } catch (err) {
547
553
  await handleSdkError(err, outOpts, out);
@@ -848,6 +854,7 @@ async function runRecruiterListApplicants(client, flags, out) {
848
854
  if (cursor) params["cursor"] = cursor;
849
855
  try {
850
856
  const result = await ns.recruiter.listApplicants(projectId, body, Object.keys(params).length > 0 ? params : void 0);
857
+ readablePage(result);
851
858
  renderSuccess(result, outOpts, out);
852
859
  } catch (err) {
853
860
  await handleSdkError(err, outOpts, out);
@@ -862,6 +869,7 @@ async function runRecruiterGetJob(client, flags, out) {
862
869
  const outOpts = resolveOutputOpts(flags);
863
870
  try {
864
871
  const result = await ns.recruiter.getJob(jobId);
872
+ readableObject(result);
865
873
  renderSuccess(result, { ...outOpts, slim: slimJob }, out);
866
874
  } catch (err) {
867
875
  await handleSdkError(err, outOpts, out);
@@ -876,6 +884,7 @@ async function runRecruiterGetApplicant(client, flags, out) {
876
884
  const outOpts = resolveOutputOpts(flags);
877
885
  try {
878
886
  const result = await ns.recruiter.getApplicant(projectId, applicantId);
887
+ readableObject(result);
879
888
  renderSuccess(result, outOpts, out);
880
889
  } catch (err) {
881
890
  await handleSdkError(err, outOpts, out);
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-UEAX6KUB.js";
15
15
  import {
16
16
  requireAccount
17
- } from "./chunk-LD5KJSCT.js";
17
+ } from "./chunk-BLFGJIJJ.js";
18
18
  import {
19
19
  buildPreviewOutput
20
20
  } from "./chunk-TCUYH5GO.js";
@@ -22,6 +22,7 @@ import {
22
22
  pageDelayFromFlags,
23
23
  readCursorFlag,
24
24
  readMaxPagesFlag,
25
+ readableObject,
25
26
  readablePage,
26
27
  rejectPaginationModifiersWithoutAll,
27
28
  renderError,
@@ -30,7 +31,7 @@ import {
30
31
  resolveEffectiveConfig,
31
32
  streamAll,
32
33
  writeNdjsonItem
33
- } from "./chunk-OTBJATDE.js";
34
+ } from "./chunk-CBHL3QQJ.js";
34
35
  import "./chunk-XZJQQJBE.js";
35
36
  import {
36
37
  createClient
@@ -327,6 +328,7 @@ async function runSalesNavProfile(client, flags, out) {
327
328
  const outOpts = resolveOutputOpts(flags);
328
329
  try {
329
330
  const result = await ns.salesNavigator.getProfile(resolvedId, {});
331
+ readableObject(result);
330
332
  renderSuccess(result, outOpts, out);
331
333
  } catch (err) {
332
334
  await handleSdkError(err, outOpts, out);
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-XP2LN6F6.js";
18
18
  import {
19
19
  requireAccount
20
- } from "./chunk-LD5KJSCT.js";
20
+ } from "./chunk-BLFGJIJJ.js";
21
21
  import {
22
22
  pageDelayFromFlags,
23
23
  readCursorFlag,
@@ -30,7 +30,7 @@ import {
30
30
  resolveEffectiveConfig,
31
31
  streamAll,
32
32
  writeNdjsonItem
33
- } from "./chunk-OTBJATDE.js";
33
+ } from "./chunk-CBHL3QQJ.js";
34
34
  import "./chunk-XZJQQJBE.js";
35
35
  import {
36
36
  createClient
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  readablePage,
7
7
  resolveEffectiveConfig
8
- } from "./chunk-OTBJATDE.js";
8
+ } from "./chunk-CBHL3QQJ.js";
9
9
  import {
10
10
  getExitCode
11
11
  } from "./chunk-XZJQQJBE.js";
@@ -6,6 +6,7 @@ import {
6
6
  pageDelayFromFlags,
7
7
  readCursorFlag,
8
8
  readMaxPagesFlag,
9
+ readableObject,
9
10
  readablePage,
10
11
  rejectPaginationModifiersWithoutAll,
11
12
  renderError,
@@ -14,7 +15,7 @@ import {
14
15
  resolveEffectiveConfig,
15
16
  streamAll,
16
17
  writeNdjsonItem
17
- } from "./chunk-OTBJATDE.js";
18
+ } from "./chunk-CBHL3QQJ.js";
18
19
  import {
19
20
  createClient
20
21
  } from "./chunk-DCZR4M7G.js";
@@ -139,6 +140,7 @@ async function runWebhookEvents(client, flags, out) {
139
140
  const outOpts = resolveOutputOpts(flags);
140
141
  try {
141
142
  const result = await client.webhooks.listEvents();
143
+ readableObject(result);
142
144
  renderSuccess(result, outOpts, out);
143
145
  } catch (err) {
144
146
  await handleError(err, outOpts, out);
@@ -150,6 +152,7 @@ async function runWebhookGet(client, flags, out) {
150
152
  const outOpts = resolveOutputOpts(flags);
151
153
  try {
152
154
  const result = await client.webhooks.get(id);
155
+ readableObject(result);
153
156
  renderSuccess(result, outOpts, out);
154
157
  } catch (err) {
155
158
  await handleError(err, outOpts, out);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curviate/cli",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "private": false,
5
5
  "description": "Official command-line interface for the Curviate API.",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "clean": "rm -rf dist *.tsbuildinfo"
47
47
  },
48
48
  "dependencies": {
49
- "@curviate/sdk": "0.37.0",
49
+ "@curviate/sdk": "0.37.1",
50
50
  "citty": "^0.1.6",
51
51
  "open": "^10.1.0"
52
52
  },