From 8ce0195ce8c92261e7342dd45288cc0e69a03898 Mon Sep 17 00:00:00 2001 From: leemour Date: Tue, 17 Nov 2026 18:01:53 +0100 Subject: [PATCH] chore: release 0.694.0 bin/release: 0.693.0 is already on npm. Only the number changes: package.json, the CHANGELOG heading, and the changes/ fragments collected under it. --- CHANGELOG.md | 31 +++++++++++++++++++++ changes/feat-service-api-uploads-sign-in.md | 22 --------------- changes/fix-search-negative-field-value.md | 5 ---- package.json | 2 +- 4 files changed, 32 insertions(+), 28 deletions(-) delete mode 100644 changes/feat-service-api-uploads-sign-in.md delete mode 100644 changes/fix-search-negative-field-value.md diff --git a/CHANGELOG.md b/CHANGELOG.md index b34b6cec9..912144d67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ` (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 + `. 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 ` 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 diff --git a/changes/feat-service-api-uploads-sign-in.md b/changes/feat-service-api-uploads-sign-in.md deleted file mode 100644 index 44129dfcb..000000000 --- a/changes/feat-service-api-uploads-sign-in.md +++ /dev/null @@ -1,22 +0,0 @@ -### 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 ` (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 - `. 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 ` says why. diff --git a/changes/fix-search-negative-field-value.md b/changes/fix-search-negative-field-value.md deleted file mode 100644 index d3b86dc20..000000000 --- a/changes/fix-search-negative-field-value.md +++ /dev/null @@ -1,5 +0,0 @@ -### 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. diff --git a/package.json b/package.json index b44021bc6..8b782a3e8 100644 --- a/package.json +++ b/package.json @@ -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",