Repository navigation
feat!: cli-base 1.0 (stable core and experimental, API report) - #711
Merged
Merged
Conversation
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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.0integration branch tomainin one go, so thefirst release candidate (
1.0.0-rc.0, on npm'snexttag) can ship from it. The rules are inWC-REL-7.
What
The stable set.
wirecat.stableinpackage.jsonlists 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 experimentalas a whole. Inside the stable ones, 105 names carry
@experimental(names cli-core does not use and at most one otherpackage imports, plus generated docs text).
/codegen/runtimenow also exports the manifest types and the sign-in andGraphQL helpers a CLI reads at runtime.
The API report.
cli-dev api-reportwritesapi/<entry>.api.txtfrom the built.d.ts, without the@experimentalnames;--checkfails when the committed report differs from the build. The sharednode-ci.ymlrunsthe check for each package that lists
wirecat.stable. This pull request commits cli-base's first report.Release tooling.
"Removed", an added one "Added". From 1.0.0 on, a stable break also needs the
majorlabel.release-start.ymlcollectschanges/fragments, takes the level they need, and stops a major unless started withmajor: true.Breaking changes (all under
## Unreleasedin CHANGELOG.md):abortErrorandretryOffrom the root export (no package imports them)./testingno longer exportsbrokenKeyringandcaptureStreams; import them from the root./codegen:WriteOptionsis nowCodegenWriteOptions;Overrideis nowModelOverride(Overridestays as adeprecated alias until the next major).
commanderandvitestare^15.0.0and^5.0.0instead of open ranges.engines.nodeis^22.16.0 || >=24.cli-dev lintno longer warns about a shortbinname beside awcat-<name>pair; overrides for that pair are nowstale.
Also: "attio" added to the spelling dictionary (the docs spell check flagged it in
docs/standards/ci.md).The version stays
0.132.0here. A separatechore(release): 1.0.0-rc.0pull request dates the section, since theguard 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 arescripts/release-checks.test.ts(exit 126), which fail on main locally too and pass in CI.majorlabel needed (the version is still below 1.0.0).🤖 Generated with Claude Code