@curviate/cli 0.27.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 +71 -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,77 @@ 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
|
+
|
|
33
|
+
## [0.28.0] - 2026-09-06
|
|
34
|
+
|
|
35
|
+
Pins `@curviate/sdk` at `0.27.0` and re-vendors the OpenAPI fixture from it
|
|
36
|
+
(`server_git_sha 2a86542f...`). No command, flag or exit code changes meaning,
|
|
37
|
+
and no source change was needed: everything below is a consequence of the API
|
|
38
|
+
the CLI talks to, surfaced here because it changes what some calls answer.
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- **`message.delivered` is no longer a subscribable webhook event.** The
|
|
43
|
+
platform never emitted it. `curviate webhook events` now lists 27 events,
|
|
44
|
+
7 of them messaging, where it listed 28 and 8.
|
|
45
|
+
|
|
46
|
+
`--events` on `webhook create` and `webhook update` is a free-form
|
|
47
|
+
comma-separated string that the CLI passes through unvalidated, so this is
|
|
48
|
+
not a client-side usage error (exit `2`): sending `message.delivered` now
|
|
49
|
+
gets a `400` from the API and exits on the request-error path like any other
|
|
50
|
+
rejected value. Drop it from the list.
|
|
51
|
+
|
|
52
|
+
**Reading an existing subscription is unaffected.** `events` on
|
|
53
|
+
`webhook list` and `webhook get` is a plain string array, not the create
|
|
54
|
+
enum. A subscription created before 2026-09-06 may still echo
|
|
55
|
+
`message.delivered` in its stored `events` until the server-side cleanup
|
|
56
|
+
migration lands; it was never delivered. It renders as an ordinary value and
|
|
57
|
+
nothing throws.
|
|
58
|
+
|
|
59
|
+
The read-path replacement is `is_delivered` on the message resource.
|
|
60
|
+
- **`notices[]` can now carry `EXPANSION_WITHHELD_CEILING`** on the reads that
|
|
61
|
+
accept `--expand public_identifier`, alongside `EXPANSION_LIMIT_REACHED` and
|
|
62
|
+
`EXPANSION_WITHHELD_ACTIVITY_WINDOW`: the expansion was withheld because the
|
|
63
|
+
account is at an account-safety ceiling. It renders through the same
|
|
64
|
+
`notice [CODE] message` line as its two siblings, on stderr in human mode and
|
|
65
|
+
carried on the response in `--json`, so no output shape changes and no
|
|
66
|
+
branch on the existing codes breaks.
|
|
67
|
+
- **The warn-posture safety hint reads differently.** On a `2xx` that carries
|
|
68
|
+
`safety_warning`, `hint.message` now says the action went through and how far
|
|
69
|
+
past the ceiling the row stands, rather than restating the ceiling. The CLI
|
|
70
|
+
prints the server's string verbatim, in both human and `--json` output, so
|
|
71
|
+
this is prose only: no field moved and nothing needs re-parsing. An agent
|
|
72
|
+
matching on the old sentence should match on `safety_warning.blocked` or
|
|
73
|
+
`hint.parameter` instead.
|
|
74
|
+
- **A `502` whose upstream response could not be interpreted is not worth
|
|
75
|
+
retrying.** The API documents `retry_likely_to_succeed` as the field that
|
|
76
|
+
separates the two `502` cases, and the do-not-retry one carries
|
|
77
|
+
`retry_hint: {"kind": "never"}`. Both fields were already on the wire and the
|
|
78
|
+
CLI already surfaces them; nothing about its own behaviour changes here.
|
|
79
|
+
|
|
9
80
|
## [0.27.0] - 2026-09-06
|
|
10
81
|
|
|
11
82
|
Pins `@curviate/sdk` at `0.26.0`, which is what makes the last two items of
|
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.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.
|
|
49
|
+
"@curviate/sdk": "0.28.0",
|
|
50
50
|
"citty": "^0.1.6",
|
|
51
51
|
"open": "^10.1.0"
|
|
52
52
|
},
|