@wirecat/cli-core 0.693.0 → 0.694.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 +31 -0
- package/dist/search/lucene/plain.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,37 @@ Notable changes to `@wirecat/cli-core` (`@wirecat/cli-messaging` up to 0.261.0,
|
|
|
5
5
|
minor version may break callers, and says how under "Changed — may break callers". `pnpm docs:check` checks the
|
|
6
6
|
shape of this file.
|
|
7
7
|
|
|
8
|
+
## 0.694.0 — 17.11.2026
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **A generated `api` command uploads a file's bytes.** For an operation whose body is an upload, as Petstore 3's
|
|
13
|
+
`application/octet-stream` image, `--body-file <path>` (or `-` for stdin) sends the file as it is, with the
|
|
14
|
+
operation's content type; such a command has no `--body`. A file in the CLI's own folders is refused, as for a JSON
|
|
15
|
+
body. Needs cli-base 0.112.0, whose generator reads such a body.
|
|
16
|
+
- **`serviceApiOperations(manifest)`** lists the operations the `api` group offers and why it leaves out the rest, so
|
|
17
|
+
a CLI's test runs exactly the commands that exist. `sendsBytes(operation)`, `readApiBytes(path)` and
|
|
18
|
+
`unsendableBody(operation)` are exported beside it.
|
|
19
|
+
- **`serviceApiCommand` and `serviceApiCall` take no `token` for a CLI without sign-in.** Left out, no call carries a
|
|
20
|
+
token, whatever the spec says; a CLI made with cli-template's `--sign-in none` passes none.
|
|
21
|
+
|
|
22
|
+
### Changed — may break callers
|
|
23
|
+
|
|
24
|
+
- **A call sends no token where the spec names no sign-in.** The `api` group and `serviceApiCall` now follow cli-base's
|
|
25
|
+
`signInRequirements`: the operation's own `security`, else the document's, and nothing when neither says anything.
|
|
26
|
+
Before, a manifest without `securitySchemes`, or an operation without requirements, got `Authorization: Bearer
|
|
27
|
+
<token>`. A CLI whose spec omits its sign-in now gets the service's refusal (401): generate with `auth`
|
|
28
|
+
(`{ securitySchemes, security, reason }`) to name it. A Discovery manifest gets its OAuth from cli-base 0.112.0's
|
|
29
|
+
generator; regenerate before taking this version.
|
|
30
|
+
- **An operation whose body is neither JSON nor an upload's bytes, such as a multipart form, is no longer offered.**
|
|
31
|
+
It always failed when run; now `api list` leaves it out and `api show <operation>` says why.
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
|
|
35
|
+
- **A search field whose value starts with a minus reads as that value**: `chat:-1001234567890 budget` searches the
|
|
36
|
+
group with that id, as `chat:"-1001234567890"` did. It was refused as `query.invalid-syntax`, though the CLIs print
|
|
37
|
+
a group's id with its minus. A minus before a bare word still means NOT.
|
|
38
|
+
|
|
8
39
|
## 0.693.0 — 17.11.2026
|
|
9
40
|
|
|
10
41
|
### Added
|
|
@@ -52,7 +52,8 @@ const literal = (word, keepParens, fields) => {
|
|
|
52
52
|
const prefix = FIELD_PREFIX.exec(word);
|
|
53
53
|
const field = prefix && fields.has(prefix[1] ?? "") ? prefix[0] : "";
|
|
54
54
|
const rest = word.slice(field.length);
|
|
55
|
-
|
|
55
|
+
// After `field:` a minus is part of the value (a group's id is `-100…`); only a bare word's `-` means NOT.
|
|
56
|
+
const opening = keepParens ? ((field ? /^\(*/u : /^[(+-]*/u).exec(rest)?.[0] ?? "") : "";
|
|
56
57
|
const closing = keepParens ? (/\)*$/u.exec(rest.slice(opening.length))?.[0] ?? "") : "";
|
|
57
58
|
const body = rest.slice(opening.length, rest.length - closing.length);
|
|
58
59
|
if (!body)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.694.0",
|
|
4
4
|
"description": "The messenger-neutral half of a messaging CLI: domain model, message locators, rendering, name resolution, the SQLite seam, the command skeleton and shared read commands, the send guard, run records and the message store",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|