@curviate/cli 0.28.0 → 0.29.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,6 +6,30 @@ 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; a fix is a patch.
8
8
 
9
+ ## [0.29.0] - 2026-09-07
10
+
11
+ Pins `@curviate/sdk@0.28.0`. **BREAKING**: `inbox search <query>` requires a term
12
+ of at least 3 characters.
13
+
14
+ ### BREAKING
15
+
16
+ - **`inbox search` refuses a term shorter than 3 characters, before the request
17
+ is sent.** Exit code 2, with the same sentence the API returns. The search is
18
+ served from an index built out of overlapping 3-character sequences, so a
19
+ shorter term cannot use it; the server now refuses such a term with
20
+ `INVALID_REQUEST`, and the CLI refuses it a step earlier so a typo costs no
21
+ round trip and no rate-limit budget.
22
+
23
+ A 1-2 character search previously returned results, slowly. If you script
24
+ against this, debounce to 3 characters rather than catching the exit code.
25
+
26
+ ### Changed
27
+
28
+ - `curviate account get` reports `event_log` (`retained`, `row_cap`,
29
+ `at_row_cap`) alongside `quotas` and `account_states`, from the SDK bump. While
30
+ `at_row_cap` is true, retained events are being dropped for that account;
31
+ delivery to a registered webhook is unaffected.
32
+
9
33
  ## [0.28.0] - 2026-09-06
10
34
 
11
35
  Pins `@curviate/sdk` at `0.27.0` and re-vendors the OpenAPI fixture from it
package/dist/cli.js CHANGED
@@ -345,7 +345,7 @@ var main = defineCommand({
345
345
  job: () => import("./job-NUT4QMH2.js").then((m) => m.jobCommand),
346
346
  connect: () => import("./connect-57AUN33D.js").then((m) => m.connectCommand),
347
347
  search: () => import("./search-QCXTK33P.js").then((m) => m.searchCommand),
348
- inbox: () => import("./inbox-CQO2I47N.js").then((m) => m.inboxCommand),
348
+ inbox: () => import("./inbox-ZRFIFOEP.js").then((m) => m.inboxCommand),
349
349
  inboxes: () => import("./inboxes-XQ2B6X3Q.js").then((m) => m.inboxesCommand),
350
350
  message: () => import("./message-KMNRUD4H.js").then((m) => m.messageCommand),
351
351
  post: () => import("./post-FXAANNUB.js").then((m) => m.postCommand),
@@ -83,6 +83,7 @@ function validateLimitRange(raw, out) {
83
83
  process.exit(2);
84
84
  }
85
85
  }
86
+ var MIN_SEARCH_QUERY_CHARS = 3;
86
87
  var INBOX_FOLDERS = ["primary", "inmail", "archived", "spam", "jobs", "starred"];
87
88
  function validateInboxFolder(raw, out) {
88
89
  if (raw === void 0) return;
@@ -224,6 +225,13 @@ async function runInboxSearch(client, flags, out) {
224
225
  out.stderr.write("error: <query> is required.\n");
225
226
  process.exit(2);
226
227
  }
228
+ if (query.length < MIN_SEARCH_QUERY_CHARS) {
229
+ out.stderr.write(
230
+ `error: query must be at least ${MIN_SEARCH_QUERY_CHARS} characters. Shorter terms cannot use the search index.
231
+ `
232
+ );
233
+ process.exit(2);
234
+ }
227
235
  const ns = client.account(accountId);
228
236
  const outOpts = resolveOutputOpts(flags);
229
237
  const all = flags.all ?? false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curviate/cli",
3
- "version": "0.28.0",
3
+ "version": "0.29.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.27.0",
49
+ "@curviate/sdk": "0.28.0",
50
50
  "citty": "^0.1.6",
51
51
  "open": "^10.1.0"
52
52
  },