Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,37 @@ Notable changes to `@wirecat/cli-core` (`@wirecat/cli-messaging` up to 0.261.0,
minor version may break callers, and says how under "Changed — may break callers". `pnpm docs:check` checks the
shape of this file.

## 0.694.0 — 17.11.2026

### Added

- **A generated `api` command uploads a file's bytes.** For an operation whose body is an upload, as Petstore 3's
`application/octet-stream` image, `--body-file <path>` (or `-` for stdin) sends the file as it is, with the
operation's content type; such a command has no `--body`. A file in the CLI's own folders is refused, as for a JSON
body. Needs cli-base 0.112.0, whose generator reads such a body.
- **`serviceApiOperations(manifest)`** lists the operations the `api` group offers and why it leaves out the rest, so
a CLI's test runs exactly the commands that exist. `sendsBytes(operation)`, `readApiBytes(path)` and
`unsendableBody(operation)` are exported beside it.
- **`serviceApiCommand` and `serviceApiCall` take no `token` for a CLI without sign-in.** Left out, no call carries a
token, whatever the spec says; a CLI made with cli-template's `--sign-in none` passes none.

### Changed — may break callers

- **A call sends no token where the spec names no sign-in.** The `api` group and `serviceApiCall` now follow cli-base's
`signInRequirements`: the operation's own `security`, else the document's, and nothing when neither says anything.
Before, a manifest without `securitySchemes`, or an operation without requirements, got `Authorization: Bearer
<token>`. A CLI whose spec omits its sign-in now gets the service's refusal (401): generate with `auth`
(`{ securitySchemes, security, reason }`) to name it. A Discovery manifest gets its OAuth from cli-base 0.112.0's
generator; regenerate before taking this version.
- **An operation whose body is neither JSON nor an upload's bytes, such as a multipart form, is no longer offered.**
It always failed when run; now `api list` leaves it out and `api show <operation>` says why.

### Fixed

- **A search field whose value starts with a minus reads as that value**: `chat:-1001234567890 budget` searches the
group with that id, as `chat:"-1001234567890"` did. It was refused as `query.invalid-syntax`, though the CLIs print
a group's id with its minus. A minus before a bare word still means NOT.

## 0.693.0 — 17.11.2026

### Added
Expand Down
22 changes: 0 additions & 22 deletions changes/feat-service-api-uploads-sign-in.md

This file was deleted.

5 changes: 0 additions & 5 deletions changes/fix-search-negative-field-value.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wirecat/cli-core",
"version": "0.693.0",
"version": "0.694.0",
"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",
"license": "Apache-2.0",
"author": "Viacheslav Ptsarev",
Expand Down
Loading