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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, 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

### Added
Expand Down
6 changes: 6 additions & 0 deletions changes/release-1.0.0-final.md
Original file line number Diff line number Diff line change
@@ -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.
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-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",
Expand Down
15 changes: 15 additions & 0 deletions src/dev/audit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down
21 changes: 20 additions & 1 deletion src/standards/audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
Loading