@curviate/cli 0.28.0 → 0.30.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 +46 -0
- package/dist/cli.js +1 -1
- package/dist/{inbox-CQO2I47N.js → inbox-ZRFIFOEP.js} +8 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,52 @@ 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.30.0] - 2026-09-07
|
|
10
|
+
|
|
11
|
+
Pins `@curviate/sdk` at `0.29.0` and re-vendors the OpenAPI fixture from it
|
|
12
|
+
(`server_git_sha 1447ffd4...`, 125 paths). No command, flag or exit code changes
|
|
13
|
+
meaning, and no source change was needed: the release exists so the CLI's SDK
|
|
14
|
+
dependency resolves the current published contract.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- **`safety-policy` now reports where `limit_profile` came from.** The API's
|
|
19
|
+
`GET`/`PATCH /v1/{account_id}/safety-policy` responses gained
|
|
20
|
+
`limit_profile_source` (`default`, `detected` or `operator`) and
|
|
21
|
+
`limit_profile_detected_at` (ISO date-time, or null until the value has been
|
|
22
|
+
read at least once), and the `PATCH` accepts `limit_profile_source: "default"`
|
|
23
|
+
to release an operator override. The CLI has no `safety-policy` command, so
|
|
24
|
+
nothing it prints changes; the fields are reachable through `@curviate/sdk`
|
|
25
|
+
for anyone building on the same pin.
|
|
26
|
+
|
|
27
|
+
- `POST /v1/billing/seats/:seat_id/tier` was removed from the API in the same
|
|
28
|
+
wave. Billing has never been part of the published REST surface and the CLI
|
|
29
|
+
never called it, so no command is affected.
|
|
30
|
+
|
|
31
|
+
## [0.29.0] - 2026-09-07
|
|
32
|
+
|
|
33
|
+
Pins `@curviate/sdk@0.28.0`. **BREAKING**: `inbox search <query>` requires a term
|
|
34
|
+
of at least 3 characters.
|
|
35
|
+
|
|
36
|
+
### BREAKING
|
|
37
|
+
|
|
38
|
+
- **`inbox search` refuses a term shorter than 3 characters, before the request
|
|
39
|
+
is sent.** Exit code 2, with the same sentence the API returns. The search is
|
|
40
|
+
served from an index built out of overlapping 3-character sequences, so a
|
|
41
|
+
shorter term cannot use it; the server now refuses such a term with
|
|
42
|
+
`INVALID_REQUEST`, and the CLI refuses it a step earlier so a typo costs no
|
|
43
|
+
round trip and no rate-limit budget.
|
|
44
|
+
|
|
45
|
+
A 1-2 character search previously returned results, slowly. If you script
|
|
46
|
+
against this, debounce to 3 characters rather than catching the exit code.
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
|
|
50
|
+
- `curviate account get` reports `event_log` (`retained`, `row_cap`,
|
|
51
|
+
`at_row_cap`) alongside `quotas` and `account_states`, from the SDK bump. While
|
|
52
|
+
`at_row_cap` is true, retained events are being dropped for that account;
|
|
53
|
+
delivery to a registered webhook is unaffected.
|
|
54
|
+
|
|
9
55
|
## [0.28.0] - 2026-09-06
|
|
10
56
|
|
|
11
57
|
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-
|
|
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.
|
|
3
|
+
"version": "0.30.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.
|
|
49
|
+
"@curviate/sdk": "0.29.0",
|
|
50
50
|
"citty": "^0.1.6",
|
|
51
51
|
"open": "^10.1.0"
|
|
52
52
|
},
|