From 3ceb3638ed2265d3c89bd5bf6a1796cc5afae90a Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 25 Nov 2026 10:44:23 +0100 Subject: [PATCH 1/2] chore(release): main moves to 1.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cli-base 1.0.0 is 1.0.0-rc.1 under npm `latest`, with nothing changed since. Only package.json and the CHANGELOG heading change. CLIs and cli-core 1.0.0 move to it in one batch. Checked: `pnpm docs:check`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e47d2bf..9033470 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ Versions before 0.8.0 are in the [git tags](https://github.com/WireCatLabs/cli-b Every entry says what changed as a caller sees it, why, and what to watch for — the rules are [`docs/dev/CONVENTIONS.md`](docs/dev/CONVENTIONS.md#the-changelog). +## 1.0.0 — 25.11.2026 + +The first stable version: 1.0.0-rc.1 under the `latest` tag, with nothing changed since. Semver covers the entry +points that `wirecat.stable` in `package.json` lists; the rest stays experimental +([WC-REL-7](docs/standards/releases.md)). + ## 1.0.0-rc.1 — 25.11.2026 ### Added diff --git a/package.json b/package.json index c3b13dc..bb4a1e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wirecat/cli-base", - "version": "1.0.0-rc.1", + "version": "1.0.0", "description": "The parts every command line tool needs: output modes, terminal rendering, error model, exit codes, credentials, clocks", "license": "Apache-2.0", "author": "Viacheslav Ptsarev", From c1d9c07f5230505232e88a145894a96eb9aa7a1e Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 25 Nov 2026 10:48:06 +0100 Subject: [PATCH 2/2] fix(audit): the CLIs move to cli-core 1.0 one at a time past the config.unreadable rename cli-core 1.0.0 names an unreadable config file config.unreadable. A CLI still on 0.x names it account-rename.config and mail-cli before 1.0 mail.config-unreadable, so each CLI's family audit against the published siblings saw one failure under two or three names and stopped every 1.0 release; the first CLI to publish could never pass. The three combinations are declared reason differences until 2026-12-09, when every CLI is on 1.0. They sit in the messengers group for its budget; a reason difference holds in every group. Checked: vitest src/dev/audit.test.ts src/standards/standards.test.ts, typecheck, lint, docs:check. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 4 ++-- changes/release-1.0.0-final.md | 6 ++++++ src/dev/audit.test.ts | 15 +++++++++++++++ src/standards/audit.ts | 21 ++++++++++++++++++++- 4 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 changes/release-1.0.0-final.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 9033470..a61fc00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,8 +10,8 @@ Every entry says what changed as a caller sees it, why, and what to watch for ## 1.0.0 — 25.11.2026 -The first stable version: 1.0.0-rc.1 under the `latest` tag, with nothing changed since. Semver covers the entry -points that `wirecat.stable` in `package.json` lists; the rest stays experimental +The first stable version: 1.0.0-rc.1 under the `latest` tag, plus one fix to the family audit below. Semver covers +the entry points that `wirecat.stable` in `package.json` lists; the rest stays experimental ([WC-REL-7](docs/standards/releases.md)). ## 1.0.0-rc.1 — 25.11.2026 diff --git a/changes/release-1.0.0-final.md b/changes/release-1.0.0-final.md new file mode 100644 index 0000000..6b28b45 --- /dev/null +++ b/changes/release-1.0.0-final.md @@ -0,0 +1,6 @@ +### Fixed + +- **The family audit lets the CLIs move to cli-core 1.0 one at a time.** cli-core 1.0.0 names an unreadable config + file `config.unreadable`; a CLI still on 0.x names it `account-rename.config`, and mail-cli before 1.0 + `mail.config-unreadable`. Until every CLI has published on 1.0, the audit saw one failure under two or three names + and stopped each release. The three combinations are declared differences until 2026-12-09. diff --git a/src/dev/audit.test.ts b/src/dev/audit.test.ts index 340eb99..8a39d13 100644 --- a/src/dev/audit.test.ts +++ b/src/dev/audit.test.ts @@ -340,6 +340,21 @@ describe("audit rules", () => { expect(blocking([])).toContain("a+b reason account-remove.unknown-profile=account-rename.unknown-profile") expect(blocking(SHARED_DIFFERENCES)).toEqual([]) }) + + it("lets the CLIs move to cli-core 1.0 one by one while the unreadable config has its older names", () => { + const message = "the config file cannot be read" + const reason = (id: string) => ({ reason: id, code: "configuration_error" as const, message, details: [] }) + const blocking = (others: string[]) => { + const inputs = [ + inputOf(tool("a"), { reasons: [reason("config.unreadable")] }), + ...others.map((id, at) => inputOf(tool(`b${at}`), { reasons: [reason(id)] })), + ] + return auditClis(inputs, options({ only: "a", family: true, shared: SHARED_DIFFERENCES })).blocking + } + expect(blocking(["account-rename.config", "mail.config-unreadable"])).toEqual([]) + expect(blocking(["account-rename.config"])).toEqual([]) + expect(blocking(["mail.config-unreadable"])).toEqual([]) + }) }) describe("judging an audit", () => { diff --git a/src/standards/audit.ts b/src/standards/audit.ts index 35fc6e8..bddc73e 100644 --- a/src/standards/audit.ts +++ b/src/standards/audit.ts @@ -189,9 +189,28 @@ const FAMILY_SINCE_0_98 = [ }, ] +// cli-core 1.0.0 renames the unreadable config failure config.unreadable; a CLI still on 0.x gives account-rename.config, +// and mail-cli up to 1.0 its own mail.config-unreadable. Which of the three names meet depends on who has published. +// These sit in the messengers group only for its budget: a reason difference holds in every group. +const CONFIG_UNREADABLE_RENAME = [ + "account-rename.config=config.unreadable=mail.config-unreadable", + "account-rename.config=config.unreadable", + "config.unreadable=mail.config-unreadable", +].map((ids) => ({ + rule: REASON, + target: `reason ${ids}`, + reason: "one failure under several names while the CLIs move to cli-core 1.0, which names it config.unreadable", + review_after: "2026-12-09", +})) + /** @experimental */ export const PARITY_GROUPS: ParityGroup[] = defineParityGroups([ - { name: "messengers", members: ["tg", "max"], covers: "tree", differences: MESSENGERS_SINCE_0_98 }, + { + name: "messengers", + members: ["tg", "max"], + covers: "tree", + differences: [...MESSENGERS_SINCE_0_98, ...CONFIG_UNREADABLE_RENAME], + }, { name: "all", members: ["tg", "max", "memo", "drive", "zm", "wa"],