Skip to content

feat!: cli-base 1.0 (stable core and experimental, API report) - #711

Merged
leemour merged 12 commits into
mainfrom
release/1.0-pr
Nov 23, 2026
Merged

leemour merged 12 commits into
mainfrom
release/1.0-pr

Conversation

@leemour

@leemour leemour commented Nov 23, 2026

Copy link
Copy Markdown
Member

Why

cli-base is heading to 1.0: a stable core that semver covers, and an experimental part that may still change in a
minor. This pull request brings the 1.0 work from the release/1.0 integration branch to main in one go, so the
first release candidate (1.0.0-rc.0, on npm's next tag) can ship from it. The rules are in
WC-REL-7.

What

The stable set. wirecat.stable in package.json lists 13 entry points: ., /http, /commands,
/completion, /update, /codegen/runtime, /skill, /mcp, /query, /standards, /standards/tables,
/wcat/start, /wcat/manifest. Together they hold 307 stable names. An entry point outside the list is experimental
as a whole. Inside the stable ones, 105 names carry @experimental (names cli-core does not use and at most one other
package imports, plus generated docs text). /codegen/runtime now also exports the manifest types and the sign-in and
GraphQL helpers a CLI reads at runtime.

The API report. cli-dev api-report writes api/<entry>.api.txt from the built .d.ts, without the
@experimental names; --check fails when the committed report differs from the build. The shared node-ci.yml runs
the check for each package that lists wirecat.stable. This pull request commits cli-base's first report.

Release tooling.

  • The changelog guard reads the API report: a removed or changed stable line needs "Changed — may break callers" or
    "Removed", an added one "Added". From 1.0.0 on, a stable break also needs the major label.
  • release-start.yml collects changes/ fragments, takes the level they need, and stops a major unless started with
    major: true.
  • Two new changelog headings: "Changed — experimental" and "Deprecated".

Breaking changes (all under ## Unreleased in CHANGELOG.md):

  • Removed abortError and retryOf from the root export (no package imports them).
  • /testing no longer exports brokenKeyring and captureStreams; import them from the root.
  • /codegen: WriteOptions is now CodegenWriteOptions; Override is now ModelOverride (Override stays as a
    deprecated alias until the next major).
  • Optional peers commander and vitest are ^15.0.0 and ^5.0.0 instead of open ranges.
  • engines.node is ^22.16.0 || >=24.
  • cli-dev lint no longer warns about a short bin name beside a wcat-<name> pair; overrides for that pair are now
    stale.

Also: "attio" added to the spelling dictionary (the docs spell check flagged it in docs/standards/ci.md).

The version stays 0.132.0 here. A separate chore(release): 1.0.0-rc.0 pull request dates the section, since the
guard wants a breaking title's entries under the unreleased heading.

Testing

  • pnpm typecheck, biome check ., pnpm docs:check, pnpm docs:spell: pass.
  • cli-dev api-report --check: 13 reports match the build.
  • vitest run --maxWorkers=1: 1335 pass; the 6 failures are scripts/release-checks.test.ts (exit 126), which fail on main locally too and pass in CI.
  • Changelog guard run locally on this diff: ok, no major label needed (the version is still below 1.0.0).

🤖 Generated with Claude Code

leemour and others added 12 commits November 23, 2026 23:07
The stable entry points for 1.0, picked from what cli-core and the CLIs
import on main. An entry point not in the list (codegen, release, testing,
testing/setup, wcat, the config files) is experimental as a whole; a name
tagged @experimental inside a stable one is too. The API report reads the
field. WC-REL-7 and the README say what it means for a caller.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gn-in and GraphQL helpers

cli-core and the CLIs read the generated manifest at run time with types
and a few helpers from /codegen, which is experimental and loads the
generator. They are now re-exported from /codegen/runtime, stable there.
graphqlDocument and parseSelection move to their own module, so the
runtime entry still loads no generator code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…for 1.0

- abortError and retryOf leave the root export: no package imports them.
- /testing drops its copies of brokenKeyring and captureStreams; the root
  ones stay and are stable.
- /codegen: WriteOptions is CodegenWriteOptions and Override is
  ModelOverride, so neither shares a name with the root's credential
  WriteOptions or the lint Override. Override stays as a deprecated alias,
  since the kit and three CLIs' scripts use it.
- engines.node is ^22.16.0 || >=24, as everywhere else in the family.
- ./package.json is exported.

Checked with git grep on origin/main of cli-core and the CLIs: nothing
imports a removed name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
105 names in stable entry points carry the TSDoc tag @experimental: those
cli-core does not use and at most one other package imports, and the
generated docs text (commandsPage, withVersion, skillFiles). Option and
result types that stable signatures name, and the schemas stable types are
inferred from, stay stable. The tag reaches the emitted .d.ts, where the
API report reads it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A package lists its stable entry points in package.json
("wirecat": { "stable": [".", "./http"] }). `cli-dev api-report` builds
it, reads the emitted .d.ts of each stable entry point (following
re-exports, joining overloads, inlining the non-exported locals a
declaration names) and writes api/<entry>.api.txt: one
`<name> · <kind> · <line>` row per declaration line, sorted by name,
comments dropped, @experimental names left out. `--check` fails when a
committed report differs from the build or reports an entry that is no
longer stable. A package without the list is skipped.

The .d.ts are read with a small scanner reusing result-shape's helpers:
TypeScript 7 ships no compiler API to walk them with. An export form it
cannot read (`export * as ns`) is an error, not a silent drop.

node-ci.yml runs the check after the build for packages that list
wirecat.stable, and prints a notice for the others.

The `changelog level` handler moves next to next-version, so main.ts
stays under the file length limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the major label

Rule 4: a pull request that changes api/<entry>.api.txt needs the
heading the change calls for among the entries it adds (fragments or new
lines under the unreleased heading). A removed or changed line needs
"Changed — may break callers" or "Removed"; only added lines need
"Added". Lines are counted, since `}` repeats. A report the base did
not have is a first one and needs nothing, so adopting the report does
not ask for an "Added" per name.

Rule 5: from 1.0.0 on (the head's package.json), a pull request that
adds an entry under either break heading needs the `major` label, so a
stable break waits for a major the owner chose.

The workflow passes the labels and re-runs on labeled and unlabeled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d gates a major

The settle step now collects the changes/ fragments into the version's
section and raises the version to the level the section needs
(`changelog level --next`, then `next-version`), as bin/release does. A
version that raises the major over npm's latest stops unless the caller
passes the new `major: true` input.

WC-REL-7 describes the wirecat.stable and @experimental markers, the API
report, the guard's rules and what the report does not see.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run against a built cli-core, the first version stopped on four forms:
`import { x } from "./y.js"; export { x }`, `export type * from`,
`export * as ns from` and `declare module "x" { … }`. Each is now read:
an imported name exported again resolves through its import, a namespace
lists its members' lines under its own name, and a module augmentation
in any declaration file the entry point loads is reported, since it
changes the augmented package's types for every caller. A name from
another package is reported by where it comes from. The 50 entry points
of cli-core 0.722.0 report with no problem, and twice the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Written by `cli-dev api-report` from the wirecat.stable list and the
@experimental tags now on release/1.0: 13 entry points. node-ci.yml
checks it against the build from now on, and the changelog guard reads
its diff. A pull request that changes the stable set or a tag runs
`node dist/dev/bin.js api-report` and commits api/ with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…esting

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/standards/ci.md lists attio-cli in the monthly schedule; cspell flagged the name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 08bf0d3 into main Nov 23, 2026
10 checks passed
@leemour
leemour deleted the release/1.0-pr branch November 23, 2026 22:50
leemour added a commit that referenced this pull request Nov 23, 2026
The first release candidate of cli-base 1.0 (#711), published on npm's
`next` tag. Only the version in `package.json` and the CHANGELOG heading
change: `## Unreleased` becomes `## 1.0.0-rc.0 — 23.11.2026`. `latest`
stays on 0.132.0. See [WC-REL-7](docs/standards/releases.md).

Checked locally: the changelog guard passes, `pnpm docs:check` passes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant