@curviate/cli 0.43.0 → 0.45.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 CHANGED
@@ -6,7 +6,63 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
  Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html):
7
7
  a new command or flag is a minor; a breaking command/flag/exit-code change is a major (before 1.0.0, a minor); a fix is a patch.
8
8
 
9
- ## [Unreleased]
9
+ ## [0.45.0] - 2026-10-01
10
+
11
+ Requires `@curviate/sdk` 0.40.1.
12
+
13
+ ### Changed
14
+
15
+ - **Pinned to `@curviate/sdk` 0.40.1.** The SDK catches up with the served
16
+ API: blank search filters and keywords are refused by the server with a
17
+ `400`, the checkpoint `poll` and `solve` 409 is `ACCOUNT_ALREADY_LINKED`
18
+ (on `solve`, naming your own `account_id` when you hold the identity;
19
+ naming no account when another workspace holds it),
20
+ and the generated error type documents the per-code extra fields.
21
+ - **An empty search flag is still dropped; a whitespace-only one now fails.**
22
+ An empty `--keywords` or filter flag is dropped, or refused as a usage error
23
+ where the field is required, before any request. A whitespace-only value
24
+ (for example `--keywords " "`) is sent as typed and the server now refuses it
25
+ with a `400` naming the field, as it does a blank value inside a `--filters`
26
+ JSON body.
27
+ - The vendored OpenAPI fixture is refreshed to match the SDK fixture byte for
28
+ byte.
29
+
30
+ ## [0.44.0] - 2026-09-28
31
+
32
+ Requires `@curviate/sdk` 0.39.0.
33
+
34
+ ### Fixed
35
+
36
+ - **`message inmail --subject ""` now fails as a usage error before any
37
+ request**, matching `message new`'s ruling. It previously reached the
38
+ wire (after resolving `--to`, itself a network call) and cost a
39
+ guaranteed 400: the served contract requires `subject` at 1-200 chars.
40
+ An over-200-char subject is refused the same way.
41
+ - **`sales-nav message new --subject ""` and `recruiter message new
42
+ --subject ""`/`--signature ""` now fail before the account lookup**,
43
+ not after. Both already refused an empty value with exit 2, but the
44
+ check ran after `requireAccount`, which issues `GET /v1/accounts` when
45
+ `--account` is omitted, a lost required flag cost that request too.
46
+
47
+ ### Changed
48
+
49
+ - **`--cursor` and `--limit` removed from `--help` on 10 commands whose
50
+ served endpoint accepts neither**: `company`, `company chat`,
51
+ `company message`, `post get`, `profile endorse`, `webhook create`,
52
+ `webhook delete`, `webhook events`, `webhook get`, `webhook update`. Both
53
+ flags were accepted and silently produced a request the server could not
54
+ page. `recruiter search parameters` is the one asymmetric case: its
55
+ endpoint takes `limit` but no `cursor`, so `--limit` stays and only
56
+ `--cursor` is refused (exit 2, unknown flag). `recruiter applicants` keeps
57
+ both; its endpoint genuinely takes `cursor` and `limit`, just never
58
+ `--all` streaming.
59
+ - **`@curviate/sdk` bumped to 0.39.0.** The SDK's retry decision now honours
60
+ an explicit `retry_likely_to_succeed: false` on a retryable code (`INTERNAL`,
61
+ `PLATFORM_ERROR`, `PLATFORM_RATE_LIMIT`, `RATE_LIMIT_ACCOUNT`,
62
+ `RATE_LIMIT_TENANT`) and stops retrying that request instead of retrying
63
+ once more. No CLI-surfaced flag or output changed; commands that hit one of
64
+ those codes with the server's `retry_likely_to_succeed: false` now fail
65
+ faster instead of after one wasted retry.
10
66
 
11
67
  ## [0.43.0] - 2026-09-25
12
68
 
@@ -74,6 +74,21 @@ function readChatSubjectFlag(flags, out) {
74
74
  }
75
75
  return raw;
76
76
  }
77
+ function readInMailSubjectFlag(flags, out) {
78
+ const raw = flags.subject ?? "";
79
+ if (raw.trim() === "") {
80
+ out.stderr.write("error: --subject was given an empty value. Pass the subject line.\n");
81
+ process.exit(2);
82
+ }
83
+ if (raw.length > CHAT_SUBJECT_MAX_CHARS) {
84
+ out.stderr.write(
85
+ `error: --subject is ${raw.length} characters; the maximum is ${CHAT_SUBJECT_MAX_CHARS}.
86
+ `
87
+ );
88
+ process.exit(2);
89
+ }
90
+ return raw;
91
+ }
77
92
  function resolveOutputOpts(flags) {
78
93
  return {
79
94
  json: (flags.json ?? false) || !process.stdout.isTTY,
@@ -334,6 +349,7 @@ async function runMessageAttachment(client, flags, out, isTTY) {
334
349
  }
335
350
  }
336
351
  async function runMessageInMail(client, flags, out, _readStdin) {
352
+ const subject = readInMailSubjectFlag(flags, out);
337
353
  const accountId = await requireAccount(client, flags, out);
338
354
  const rawTo = flags.to ?? "";
339
355
  if (!rawTo) {
@@ -359,7 +375,6 @@ async function runMessageInMail(client, flags, out, _readStdin) {
359
375
  return;
360
376
  }
361
377
  }
362
- const subject = flags.subject ?? "";
363
378
  const rawText = flags.text ?? "";
364
379
  const text = await resolveTextOrStdin(rawText, out, _readStdin);
365
380
  const body = {
package/dist/cli.js CHANGED
@@ -34,20 +34,20 @@ var main = defineCommand({
34
34
  // ---------------------------------------------------------------------------
35
35
  // Noun groups, lazy-loaded on first invocation.
36
36
  // ---------------------------------------------------------------------------
37
- profile: () => import("./profile-BHZPRUFU.js").then((m) => m.profileCommand),
38
- company: () => import("./company-2WKYM34T.js").then((m) => m.companyCommand),
37
+ profile: () => import("./profile-COLBPBGO.js").then((m) => m.profileCommand),
38
+ company: () => import("./company-IOSYYCXY.js").then((m) => m.companyCommand),
39
39
  job: () => import("./job-OJB4VSI2.js").then((m) => m.jobCommand),
40
40
  connect: () => import("./connect-GHABKXB2.js").then((m) => m.connectCommand),
41
41
  search: () => import("./search-3MRQE6VC.js").then((m) => m.searchCommand),
42
42
  inbox: () => import("./inbox-W3KR65VD.js").then((m) => m.inboxCommand),
43
43
  inboxes: () => import("./inboxes-XYS3IRT6.js").then((m) => m.inboxesCommand),
44
- message: () => import("./message-5XC7U4JC.js").then((m) => m.messageCommand),
45
- post: () => import("./post-LSEBRQYK.js").then((m) => m.postCommand),
44
+ message: () => import("./message-VZHXBKTO.js").then((m) => m.messageCommand),
45
+ post: () => import("./post-ZQIYCN7A.js").then((m) => m.postCommand),
46
46
  comment: () => import("./comment-G4EXIIAQ.js").then((m) => m.commentCommand),
47
47
  account: () => import("./account-FDPUPVFB.js").then((m) => m.accountCommand),
48
- webhook: () => import("./webhook-TOQUQPT4.js").then((m) => m.webhookCommand),
49
- "sales-nav": () => import("./sales-nav-77NP3UXV.js").then((m) => m.salesNavCommand),
50
- recruiter: () => import("./recruiter-JUA4BZIC.js").then((m) => m.recruiterCommand),
48
+ webhook: () => import("./webhook-ND7XZ7FW.js").then((m) => m.webhookCommand),
49
+ "sales-nav": () => import("./sales-nav-IOBEJ4OP.js").then((m) => m.salesNavCommand),
50
+ recruiter: () => import("./recruiter-4KFVMKZQ.js").then((m) => m.recruiterCommand),
51
51
  group: () => import("./group-JDP2HVSV.js").then((m) => m.groupCommand),
52
52
  feed: () => import("./feed-XC5235UF.js").then((m) => m.feedCommand),
53
53
  notification: () => import("./notification-RIUSYJV6.js").then((m) => m.notificationCommand)
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-EGDDVF3Q.js";
11
11
  import {
12
12
  sentAsNotice
13
- } from "./chunk-OUMMWC7G.js";
13
+ } from "./chunk-FD4AANAA.js";
14
14
  import "./chunk-UWO2D4HW.js";
15
15
  import "./chunk-HOQ7EUHJ.js";
16
16
  import {
@@ -48,7 +48,7 @@ import {
48
48
  } from "./chunk-UJOTQPL6.js";
49
49
  import {
50
50
  GLOBAL_FLAGS,
51
- NON_STREAM_FLAGS,
51
+ READ_SINGLE_FLAGS,
52
52
  WRITE_FLAGS,
53
53
  readOnly,
54
54
  resolveTextOrStdin
@@ -765,7 +765,7 @@ var companyChatCommand = defineCommand({
765
765
  ]
766
766
  },
767
767
  args: {
768
- ...readOnly(NON_STREAM_FLAGS),
768
+ ...readOnly(READ_SINGLE_FLAGS),
769
769
  id: { type: "positional", description: "Company identifier (URL, slug, or numeric id), a slug/URL is resolved to the numeric id first." },
770
770
  chatId: { type: "positional", description: "The 2-... chat id from `company chats`, passed through verbatim." }
771
771
  },
@@ -827,7 +827,7 @@ var companyMessageCommand = defineCommand({
827
827
  ]
828
828
  },
829
829
  args: {
830
- ...readOnly(NON_STREAM_FLAGS),
830
+ ...readOnly(READ_SINGLE_FLAGS),
831
831
  id: { type: "positional", description: "Company identifier (URL, slug, or numeric id), a slug/URL is resolved to the numeric id first." },
832
832
  chatId: { type: "positional", description: "The 2-... chat id from `company chats`, passed through verbatim." },
833
833
  messageId: { type: "positional", description: "The message id from `company messages`, passed through verbatim." }
@@ -930,7 +930,7 @@ var companyCommand = defineCommand({
930
930
  ]
931
931
  },
932
932
  args: {
933
- ...readOnly(NON_STREAM_FLAGS),
933
+ ...readOnly(READ_SINGLE_FLAGS),
934
934
  id: { type: "positional", description: "Company identifier (URL, slug, or native id)." },
935
935
  sections: { type: "string", description: "Not supported on company commands; a usage error (exit 2) if supplied." }
936
936
  },
@@ -13,7 +13,7 @@ import {
13
13
  runMessageSend,
14
14
  sentAsNotice,
15
15
  willSendAsNotice
16
- } from "./chunk-OUMMWC7G.js";
16
+ } from "./chunk-FD4AANAA.js";
17
17
  import "./chunk-UWO2D4HW.js";
18
18
  import "./chunk-HOQ7EUHJ.js";
19
19
  import "./chunk-BGZW6B7G.js";
@@ -34,7 +34,7 @@ import {
34
34
  } from "./chunk-UJOTQPL6.js";
35
35
  import {
36
36
  GLOBAL_FLAGS,
37
- NON_STREAM_FLAGS,
37
+ READ_SINGLE_FLAGS,
38
38
  WRITE_FLAGS,
39
39
  WRITE_SINGLE_FLAGS,
40
40
  readOnly,
@@ -392,7 +392,7 @@ var postGetCommand = defineCommand({
392
392
  ]
393
393
  },
394
394
  args: {
395
- ...readOnly(NON_STREAM_FLAGS),
395
+ ...readOnly(READ_SINGLE_FLAGS),
396
396
  postId: {
397
397
  type: "positional",
398
398
  description: "Numeric post id, urn:li:activity:N, or full LinkedIn share URL (activity-<N>- extracted). POSTID is always the post's id. To list comments on a post, use 'comment list <post_id>'."
@@ -49,7 +49,6 @@ import {
49
49
  } from "./chunk-UJOTQPL6.js";
50
50
  import {
51
51
  GLOBAL_FLAGS,
52
- NON_STREAM_FLAGS,
53
52
  READ_SINGLE_FLAGS,
54
53
  WRITE_SINGLE_FLAGS,
55
54
  readOnly
@@ -746,7 +745,7 @@ var profileEndorseCommand = defineCommand({
746
745
  ]
747
746
  },
748
747
  args: {
749
- ...NON_STREAM_FLAGS,
748
+ ...WRITE_SINGLE_FLAGS,
750
749
  id: { type: "positional", description: "Member identifier (URL, slug, or provider id). A URL/slug is resolved to the provider id automatically (a slug is not accepted directly by the endorse endpoint)." },
751
750
  "endorsement-id": {
752
751
  type: "string",
@@ -181,14 +181,8 @@ function requireRecruiterJobFields(body, extra, out) {
181
181
  }
182
182
  }
183
183
  async function runRecruiterMessageNew(client, flags, out) {
184
- const accountId = await requireAccount(client, flags, out);
185
- const to = flags.to ?? "";
186
- const text = flags.text ?? "";
187
184
  const subject = flags.subject ?? "";
188
185
  const signature = flags.signature ?? "";
189
- const attachPaths = normalizeAttachPaths(flags.attach);
190
- const voicePath = flags.voice;
191
- const videoPath = flags.video;
192
186
  if (!subject) {
193
187
  out.stderr.write("error: --subject is required (v2: REQUIRED for Recruiter messaging).\n");
194
188
  process.exit(2);
@@ -197,6 +191,12 @@ async function runRecruiterMessageNew(client, flags, out) {
197
191
  out.stderr.write("error: --signature is required (v2: REQUIRED for Recruiter messaging).\n");
198
192
  process.exit(2);
199
193
  }
194
+ const accountId = await requireAccount(client, flags, out);
195
+ const to = flags.to ?? "";
196
+ const text = flags.text ?? "";
197
+ const attachPaths = normalizeAttachPaths(flags.attach);
198
+ const voicePath = flags.voice;
199
+ const videoPath = flags.video;
200
200
  let attachBuffers = [];
201
201
  let voiceBuffer;
202
202
  let videoBuffer;
@@ -1023,7 +1023,12 @@ var recruiterSearchParametersCommand = defineCommand({
1023
1023
  ]
1024
1024
  },
1025
1025
  args: {
1026
- ...readOnly(NON_STREAM_FLAGS),
1026
+ ...readOnly(READ_SINGLE_FLAGS),
1027
+ // The served endpoint takes `limit` (1-100) but no `cursor` at all
1028
+ // (`POST .../recruiter/search/parameters`, query params are
1029
+ // `offset`/`limit`); the one asymmetric case in this set, so `--limit`
1030
+ // is added back explicitly rather than pulled in via a flag bundle.
1031
+ limit: GLOBAL_FLAGS.limit,
1027
1032
  source: {
1028
1033
  type: "string",
1029
1034
  description: "Filter family to resolve within: APPLICANTS or PIPELINE (both require --project-id), SEARCH, JOB_POSTING, or JOBS.",
@@ -1406,6 +1411,8 @@ var recruiterApplicantsCommand = defineCommand({
1406
1411
  ]
1407
1412
  },
1408
1413
  args: {
1414
+ // Genuinely paginated (operation-level query: cursor?, limit?) but never
1415
+ // streamed with --all; manual --cursor paging only. See NON_STREAM_FLAGS.
1409
1416
  ...readOnly(NON_STREAM_FLAGS),
1410
1417
  projectId: { type: "positional", description: "Recruiter project ID." },
1411
1418
  "channel-id": { type: "string", description: "The project's JOB_POSTING talent-pool channel ID (required).", required: true }
@@ -21,7 +21,8 @@ import {
21
21
  } from "./chunk-UJOTQPL6.js";
22
22
  import {
23
23
  GLOBAL_FLAGS,
24
- NON_STREAM_FLAGS,
24
+ READ_SINGLE_FLAGS,
25
+ WRITE_SINGLE_FLAGS,
25
26
  defaultReadStdin,
26
27
  isStdinToken,
27
28
  readOnly
@@ -287,7 +288,7 @@ var webhookCreateCommand = defineCommand({
287
288
  ]
288
289
  },
289
290
  args: {
290
- ...NON_STREAM_FLAGS,
291
+ ...WRITE_SINGLE_FLAGS,
291
292
  source: { type: "string", description: "Event source: messaging | user | account_status.", required: true },
292
293
  "request-url": { type: "string", description: "HTTPS URL to receive webhook deliveries.", required: true },
293
294
  "account-ids": { type: "string", description: "Comma-separated account ids to target. Required for messaging and user; omit on account_status to cover every current and future account." },
@@ -347,7 +348,7 @@ var webhookEventsCommand = defineCommand({
347
348
  "curviate webhook events"
348
349
  ]
349
350
  },
350
- args: { ...readOnly(NON_STREAM_FLAGS) },
351
+ args: { ...readOnly(READ_SINGLE_FLAGS) },
351
352
  async run({ args }) {
352
353
  const flags = args;
353
354
  const cfg = await resolveEffectiveConfig({
@@ -374,7 +375,7 @@ var webhookGetCommand = defineCommand({
374
375
  ]
375
376
  },
376
377
  args: {
377
- ...readOnly(NON_STREAM_FLAGS),
378
+ ...readOnly(READ_SINGLE_FLAGS),
378
379
  id: { type: "positional", description: "Webhook id (wh_...)." }
379
380
  },
380
381
  async run({ args }) {
@@ -404,7 +405,7 @@ var webhookUpdateCommand = defineCommand({
404
405
  ]
405
406
  },
406
407
  args: {
407
- ...NON_STREAM_FLAGS,
408
+ ...WRITE_SINGLE_FLAGS,
408
409
  id: { type: "positional", description: "Webhook id (wh_...)." },
409
410
  "request-url": { type: "string", description: "Replace the delivery URL." },
410
411
  name: { type: "string", description: "Replace the name (or clear with empty string)." },
@@ -439,7 +440,7 @@ var webhookDeleteCommand = defineCommand({
439
440
  ]
440
441
  },
441
442
  args: {
442
- ...NON_STREAM_FLAGS,
443
+ ...WRITE_SINGLE_FLAGS,
443
444
  id: { type: "positional", description: "Webhook id (wh_...)." }
444
445
  },
445
446
  async run({ args }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curviate/cli",
3
- "version": "0.43.0",
3
+ "version": "0.45.0",
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.38.0",
50
+ "@curviate/sdk": "0.40.1",
51
51
  "citty": "^0.1.6",
52
52
  "open": "^10.1.0"
53
53
  },
@@ -246,17 +246,17 @@ async function runSalesNavSearchFromUrl(client, flags, out) {
246
246
  }
247
247
  }
248
248
  async function runSalesNavMessageNew(client, flags, out) {
249
+ const subject = flags.subject ?? "";
250
+ if (!subject) {
251
+ out.stderr.write("error: --subject is required (v2: REQUIRED for Sales Navigator messaging).\n");
252
+ process.exit(2);
253
+ }
249
254
  const accountId = await requireAccount(client, flags, out);
250
255
  const to = flags.to ?? "";
251
256
  const text = flags.text ?? "";
252
- const subject = flags.subject ?? "";
253
257
  const attachPaths = normalizeAttachPaths(flags.attach);
254
258
  const voicePath = flags.voice;
255
259
  const videoPath = flags.video;
256
- if (!subject) {
257
- out.stderr.write("error: --subject is required (v2: REQUIRED for Sales Navigator messaging).\n");
258
- process.exit(2);
259
- }
260
260
  let attachBuffers = [];
261
261
  let voiceBuffer;
262
262
  let videoBuffer;