Skip to content

feat!: adopt cli-core 1.0 and cli-base 1.0 - #44

Draft
leemour wants to merge 5 commits into
mainfrom
release/1.0
Draft

leemour wants to merge 5 commits into
mainfrom
release/1.0

Conversation

@leemour

@leemour leemour commented Nov 25, 2026

Copy link
Copy Markdown
Member

The adoption of cli-core 1.0 and cli-base 1.0 (stable core and experimental parts, store version 73). cli-core parity builds this branch against cli-core 1.0 (cli-core#3288 and its successor), so this draft stays open until cli-core 1.0.0 is on npm. Then the branch moves to the published version and merges, and this CLI releases with the rest in one batch.

Do not merge before cli-core 1.0.0: the store migrates to version 73, which 0.x tools refuse.

🤖 Generated with Claude Code

leemour and others added 3 commits November 24, 2026 04:33
- Bump @wirecat/cli-base to 1.0.0-rc.0; generated API files import their types from
  @wirecat/cli-base/codegen/runtime.
- Mark Disk paths as not local (notLocalPaths): the files group's path and --folder,
  mirrors add's Disk folder, --ignore and mirrors versions' path. Over MCP the server no
  longer resolves them against the client's folder. Local inputs (files upload <file>,
  --output, mirrors add's local folder) are still checked.
- Give diskIngestion an explicit return type: under cli-core 1.0 its inferred type names
  store types (NoteFolder, DocumentVersionText) that no public entry exports yet (TS2883).
- Move the upgrade contract baseline to the published 0.6.0.
- Drop the stale unknown-resource override for "mirrors versions"; cli-core 1.0 no longer
  reports it.

notLocalPaths is a cli-core 1.0 export, so this branch typechecks only once cli-core 1.0 is
on npm and bumped here. Checked against the cli-core 1.0 tarball: typecheck, lint, docs
check, lint:commands and contracts:upgrade (all 9 cases, against 0.6.0) pass. Tests: 299 of
300; the run-scope test "sync runs in a recorded run" exceeds its fixed 2 s grace on this
loaded machine, and fails the same way on main with cli-core 0.739.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release/1.0 branch built against a packed cli-core 1.0 tarball while
package.json still named cli-core 0.739.0, so the branch's own CI was red.
Both release candidates are now on npm under the next tag.

- @wirecat/cli-core 1.0.0-rc.0 and @wirecat/cli-base 1.0.0-rc.1, exact
  pins as before; the lockfile follows.
- scripts/generate.ts drops coreImport: cli-base rc.1 defaults it to
  @wirecat/cli-base/codegen/runtime, the value it passed. generate.ts
  --check shows no change in the generated files.
- The changelog fragment names cli-core 1.0 and cli-base 1.0 instead of
  the rc.0 build.

Checked locally: typecheck, lint, docs:check, build, commands.md and the
manifest check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The draft PR conflicted with main, so GitHub ran no PR validation on it.
Main released 0.7.0 and 0.7.1 (OCR for scans and pictures, marked Disk
text for a scheduled agent) and moved cli-core to 0.750.0, all of which
cli-core 1.0.0-rc.0 includes.

- package.json keeps cli-core 1.0.0-rc.0 and cli-base 1.0.0-rc.1 and
  takes main's version 0.7.1; the lockfile follows the rc pins.
- contracts/previous, contracts/upgrade.json and docs/dev/TESTING.md take
  main's upgrade baseline, the published 0.7.1, over release/1.0's 0.6.0.

A merge, not a rebase: release/1.0 is shared (cli-core's parity builds
it, other worktrees have it checked out), so no force-push.

Checked locally: typecheck, lint, docs:check, version:check,
generate.ts --check, build, commands.md, the manifest, contracts:check,
and the test files main touched (120 tests). contracts:upgrade fails
here only because contracts/seed.mjs takes 6.5 s on this loaded machine
against cli-contract's 5 s limit; run alone it seeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@socket-security

socket-security Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​wirecat/​cli-base@​1.0.0981001009670
Added@​wirecat/​cli-core@​1.0.0971001009670

View full report

leemour and others added 2 commits November 25, 2026 12:19
Both 1.0.0 releases are on npm under latest, so release/1.0 leaves the
release candidates.

- @wirecat/cli-core 1.0.0 and @wirecat/cli-base 1.0.0, exact pins as
  before; the lockfile follows with one cli-base copy.
- The changelog fragment names cli-core 1.0.0 and cli-base 1.0.0.

Checked locally: typecheck, lint, docs:check, build, generate:check,
contracts:check, pnpm peers check, scripts/one-cli-base.ts and the
family audit. contracts:upgrade hit its 5 s limit per process on this
loaded machine (the seed alone took 14 s of wall time, 2 s of CPU); the
seed uses the published 0.7.1 and its own cli-core, so CI decides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's #46 (cli-template 0.35.0) landed after the last merge. A merge,
not a rebase, keeps the earlier merge's resolutions.

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

This branch has not been deployed

No deployments
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