Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
1dfbad5
refactor!: drop the deprecated search and sync names, bound the peers…
leemour Nov 23, 2026
07a3443
refactor(store)!: ./store stops re-exporting the SQLite implementation
leemour Nov 23, 2026
57d5369
docs: doc comments that ship in .d.ts say why instead of citing priva…
leemour Nov 23, 2026
4b7840d
feat!: wirecat.stable names the stable entry points; @experimental ma…
leemour Nov 23, 2026
807a22d
refactor(store): MessageStore is a stable MessageStoreCore and experi…
leemour Nov 23, 2026
e920ba4
refactor!: name cli-base's codegen types from codegen/runtime, its st…
leemour Nov 23, 2026
b045875
feat(release): the 1.0 headings, levelled versions, --major and the n…
leemour Nov 23, 2026
55caa73
docs(errors): every error reason in docs/reasons.md, checked as a con…
leemour Nov 23, 2026
876b6f2
ci(release): pick the npm tag in the script, not in an unquoted subst…
leemour Nov 23, 2026
b3e8637
ci(parity): build every CLI on cli-core at release, a marked subset o…
leemour Nov 23, 2026
f9e0a1e
ci(parity): cli-memo is no longer known broken: 0.150.0 adopted sched…
leemour Nov 23, 2026
a5987ca
ci(parity): ydisk-cli is known broken until it adopts the conflicts c…
leemour Nov 23, 2026
b6b8ea8
fix(mail): a listing that leaves out searched mail proves no deletion
leemour Nov 23, 2026
51c1082
fix(sync)!: --rescan keeps the mass-deletion guard; a CRM pass after …
leemour Nov 23, 2026
f041df4
fix(calendar): a deleted series no longer stalls a round; an unreadab…
leemour Nov 23, 2026
d9a17a6
fix(security): one real-path check for every local path an MCP call n…
leemour Nov 23, 2026
b4d58e0
docs(changes): the 1.0 correctness and security fixes
leemour Nov 23, 2026
d5c489d
fix(security): the agent path check leaves out paths the owner set ou…
leemour Nov 23, 2026
b553a8d
docs(errors): reasons.md carries the reworded held-pass reasons
leemour Nov 23, 2026
2a563eb
chore(parity): ydisk-cli compiles again
leemour Nov 24, 2026
f9e4bbb
feat(store)!: store version 73, ids never handed out twice (cli-core …
leemour Nov 24, 2026
14d16af
refactor(store): collect rebuild notes without a spread
leemour Nov 24, 2026
cac877d
fix(store): freeze version 73's CHECKs, reserve room for the copies, …
leemour Nov 24, 2026
5883f1f
chore(surface): tag main's new plainSetupText experimental, list its …
leemour Nov 24, 2026
f585543
docs(api): the API report of the ten stable entry points
leemour Nov 24, 2026
789fe10
ci: take cli-base 1.0.0-rc.0's workflows and changelog headings
leemour Nov 24, 2026
5f4d6aa
chore(release): main moves to 1.0.0-rc.0
leemour Nov 24, 2026
7b315f3
fix(cli): export notLocalPaths, so a CLI can mark its own remote paths
leemour Nov 24, 2026
206ecf3
fix(documents): catalog tree's folder is the provider's id, not a loc…
leemour Nov 24, 2026
704fe1c
fix(store): version 73 keeps references that were already broken, and…
leemour Nov 24, 2026
f76e009
fix(store): a table copy that changes a table's row count stops the m…
leemour Nov 24, 2026
0753e86
fix(errors): list the four reasons store version 73 raises
leemour Nov 24, 2026
e329914
fix(surface): every module's types can be named at ./internal/*, type…
leemour Nov 24, 2026
6e4b6d5
ci(parity): max-cli and mail-cli are no longer known broken
leemour Nov 24, 2026
860cde4
chore(release): CHANGELOG.md gets back its 1.0.0-rc.0 section
leemour Nov 24, 2026
62c0039
docs(errors): reasons.md lists the OCR and deletions-feed reasons mai…
leemour Nov 24, 2026
371f91f
fix(store): ./store/areas exports crmSettingKey and crmIdentityId
leemour Nov 24, 2026
372a9ad
fix(parity): the manifest lists store migrate --no-backup
leemour Nov 24, 2026
a5277ed
test: three tests follow store version 73
leemour Nov 24, 2026
002e1f0
perf(store): a new store creates version 73's empty tables instead of…
leemour Nov 24, 2026
4535a3f
docs(crm): the activity search's doc comment says why instead of citi…
leemour Nov 24, 2026
d58acaf
fix(crm): crm sync passes its flags straight to the sync, keeping the…
leemour Nov 24, 2026
4b65ce9
chore(1.0): main's messengerSessionCommands is experimental, and the …
leemour Nov 24, 2026
6984682
refactor(errors): the store file's reasons live in store-reasons.ts
leemour Nov 25, 2026
20b1405
perf(store): v73 indexes a chat's messages by thread_external_id
leemour Nov 25, 2026
54c3ead
docs(changelog): the v73 thread index
leemour Nov 25, 2026
29f6800
test(store): v73 adds the thread index too
leemour Nov 25, 2026
45e3150
fix(store): the v73 thread index is in the schema spec, named as the …
leemour Nov 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/changelog-guard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Changelog guard

on:
pull_request:
types: [opened, edited, synchronize, reopened]
types: [opened, edited, synchronize, reopened, labeled, unlabeled]

permissions:
contents: read

jobs:
changelog:
uses: WireCatLabs/cli-base/.github/workflows/changelog-guard.yml@fe3430bae73bc7ccb5854124343fcb4549c26243 # cli-base main at #555: the guard accepts changes/ fragments
uses: WireCatLabs/cli-base/.github/workflows/changelog-guard.yml@29f6679fe6f90c335d0d1d080cbddeb1ba86fa7e # v1.0.0-rc.0: the API report and `major` label rules
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ permissions:

jobs:
ci:
uses: WireCatLabs/cli-base/.github/workflows/node-ci.yml@92f177f38b68ad8fa5eda46f72815648e211c795 # v0.98.0
uses: WireCatLabs/cli-base/.github/workflows/node-ci.yml@29f6679fe6f90c335d0d1d080cbddeb1ba86fa7e # v1.0.0-rc.0
with:
pack: ${{ inputs.pack || false }}
# 588 test files took 250 s on one runner; `ci / coverage` merges the shards and holds the floor. Two, not four:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/monthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
contents: read
actions: read
security-events: write
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@92f177f38b68ad8fa5eda46f72815648e211c795 # v0.98.0
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@29f6679fe6f90c335d0d1d080cbddeb1ba86fa7e # v1.0.0-rc.0
with:
dependencies: true
languages: '["actions","javascript-typescript","python","c-cpp","java-kotlin"]'
2 changes: 1 addition & 1 deletion .github/workflows/onnx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
contents: read
actions: read
security-events: write
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@92f177f38b68ad8fa5eda46f72815648e211c795 # v0.98.0
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@29f6679fe6f90c335d0d1d080cbddeb1ba86fa7e # v1.0.0-rc.0
with:
languages: '["actions","javascript-typescript","c-cpp"]'

Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/parity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ jobs:
run: pnpm ci:quick && pnpm test
working-directory: cli

# Every CLI on a release (`tests`), the monthly run and a run by hand; a pull request and a push to main build the
# ones marked `pr`: the messengers the manifest and wording jobs read, the store's heaviest user, mail, a Google
# client and a CRM built from a config. Actions minutes are shared by every WireCat repository.
downstream-list:
runs-on: ubuntu-latest
outputs:
Expand All @@ -149,7 +152,11 @@ jobs:
sparse-checkout: scripts/parity/downstream.json
sparse-checkout-cone-mode: false
- id: read
run: echo "clis=$(jq -c . scripts/parity/downstream.json)" >> "$GITHUB_OUTPUT"
env:
ALL: ${{ inputs.tests || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
run: |
echo "clis=$(jq -c 'if env.ALL == "true" then . else map(select(.pr)) end' scripts/parity/downstream.json)" \
>> "$GITHUB_OUTPUT"

# Each CLI that depends on cli-core, built against this checkout: what its own pull request would run first. A build,
# typecheck or start that fails is a break and fails `downstream`; command lint and docs only warn: they flag cleanup
Expand Down Expand Up @@ -292,7 +299,7 @@ jobs:
# labelled `breaks-downstream` passes it with the broken CLIs named: a break made on purpose, said so in its body.
# The label is read when the job runs, not from the event, so adding it and re-running this job is enough.
downstream-result:
needs: downstream
needs: [downstream-list, downstream]
if: always()
runs-on: ubuntu-latest
name: downstream
Expand All @@ -308,6 +315,7 @@ jobs:
merge-multiple: true
- env:
RESULT: ${{ needs.downstream.result }}
CLIS: ${{ needs.downstream-list.outputs.clis }}
GH_TOKEN: ${{ github.token }}
PR: ${{ github.event.pull_request.number }}
LABEL: breaks-downstream
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
contents: read
actions: read
security-events: write
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@92f177f38b68ad8fa5eda46f72815648e211c795 # v0.98.0
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@29f6679fe6f90c335d0d1d080cbddeb1ba86fa7e # v1.0.0-rc.0
with:
languages: '["actions","javascript-typescript","python","c-cpp","java-kotlin"]'

Expand Down Expand Up @@ -231,7 +231,11 @@ jobs:
with:
name: package
# Permit checking an already published version; this job has no publishing permissions.
- run: npm publish ./*.tgz --access public --dry-run --force
# A pre-release goes to the next tag: npm refuses one without a tag, and latest must stay a release.
- run: |
tag=latest
case "$(ls ./*.tgz)" in *[0-9]-*.tgz) tag=next ;; esac
npm publish ./*.tgz --access public --dry-run --force --tag "$tag"

publish:
needs: build
Expand All @@ -254,7 +258,10 @@ jobs:

# npm, not pnpm: npm's trusted publishing is the documented path. A tarball runs no
# lifecycle scripts, and nothing is installed here.
- run: npm publish "wirecat-cli-core-$VERSION.tgz" --access public
- run: |
tag=latest
case "$VERSION" in *-*) tag=next ;; esac
npm publish "wirecat-cli-core-$VERSION.tgz" --access public --tag "$tag"

- name: wait for npm to show the version
if: ${{ !inputs.dry_run }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
contents: read
actions: read
security-events: write
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@92f177f38b68ad8fa5eda46f72815648e211c795 # v0.98.0
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@29f6679fe6f90c335d0d1d080cbddeb1ba86fa7e # v1.0.0-rc.0
with:
dependencies: false
languages: ${{ needs.languages.outputs.analyze }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
contents: read
actions: read
security-events: write
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@92f177f38b68ad8fa5eda46f72815648e211c795 # v0.98.0
uses: WireCatLabs/cli-base/.github/workflows/release-checks.yml@29f6679fe6f90c335d0d1d080cbddeb1ba86fa7e # v1.0.0-rc.0
with:
languages: '["actions","javascript-typescript","c-cpp"]'

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Notable changes to `@wirecat/cli-core` (`@wirecat/cli-messaging` up to 0.261.0,
minor version may break callers, and says how under "Changed — may break callers". `pnpm docs:check` checks the
shape of this file.

## 1.0.0-rc.0 — 25.11.2026

## 0.753.0 — 25.11.2026

### Added
Expand Down
7 changes: 4 additions & 3 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ Every pull request runs three checks. The fast standards job (`standards.yml`) c
`CHANGELOG.md`, config integrity, lint, Markdown, `ci:quick` (the typecheck and the command lint) and the new commits for secrets.
The pull request validation (`pr.yml`) runs the full Linux validation, `ci.yml`: lint, typecheck, the tests
on two runners with the coverage floor checked on their merged report, build, `docs:check`, the schema and
dist checks, Bun, old Node, the SQLite restart and parity, which builds cli-template and every CLI in
`scripts/parity/downstream.json` against the branch, checking the manifests and wording of tg, max and wa on the
same builds. The security checks (`security.yml`) run zizmor, gitleaks and CodeQL of the workflows; CodeQL of the
dist checks, Bun, old Node, the SQLite restart and parity, which builds cli-template and the CLIs marked `pr` in
`scripts/parity/downstream.json` against the branch (a release builds and tests all of them), checking the
manifests and wording of tg, max and wa on the same builds. The security checks (`security.yml`) run zizmor,
gitleaks and CodeQL of the workflows; CodeQL of the
code (javascript-typescript, python, c-cpp, java-kotlin) runs only in the release's `checks` and the monthly run, and
the pull request reports those checks as passed.
A pull request that changes only `CHANGELOG.md`, the `changes/` fragments and the version against a `main` already
Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ Acme. The search found "are you coming?" from the word "come", with no network.
npm install --save-exact @wirecat/cli-core
```

npm 7+ and pnpm also install its peers: `@wirecat/cli-base` in the range `package.json` names, and `commander` 15 or
later. `@napi-rs/canvas` is optional, and charts need it only for PNG output. It runs on Node 22.16+ and 24+, and on
Bun. Pin an exact version, because any release before 1.0 may break a caller ([Build on it](#build-on-it)).
npm 7+ and pnpm also install its peers: `@wirecat/cli-base` in the range `package.json` names, and `commander` 15.
`@napi-rs/canvas` is optional, and charts need it only for PNG output. It runs on Node 22.16+ and 24+, and on Bun.
The stable API follows semver. Names marked `@experimental`, and the entry points outside `wirecat.stable`, may
change in a minor ([Build on it](#build-on-it)).

[Architecture](docs/dev/ARCHITECTURE.md) · [Write an adapter](docs/dev/ADAPTERS.md) ·
[Query language](docs/search/query-language.md) · [Messenger rules](docs/dev/STANDARD.md) ·
Expand Down Expand Up @@ -157,9 +158,11 @@ describe("the adapter keeps the port's promises", () => {
})
```

**Before 1.0, any release may break a caller.** Releases are frequent, sometimes several a day, and any of them may
change any entry point. The [changelog](CHANGELOG.md) lists every such change in its own section, with what to change.
tg-cli and max-cli pin an exact version and move to a new one in their own pull request. Pin an exact version too.
**The stable API follows semver from 1.0.0.** The entry points in `wirecat.stable` (`package.json`) are stable,
except the names whose doc comment says `@experimental`; a break of them needs a major. Everything else is
experimental and may change in a minor, and releases are frequent, sometimes several a day. The
[changelog](CHANGELOG.md) lists every change that needs one, with what to change. Using only stable names, `^1.0.0` is
safe; using experimental ones, pin an exact version, as tg-cli and max-cli do.
The full list of entry points and what each holds is in the [API reference](docs/REFERENCE.md).

⚠ **Errors are recognised by shape, not by class** (`isCliFailure`). A package linked during development brings its
Expand Down
54 changes: 54 additions & 0 deletions api/cli-start.api.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# @wirecat/cli-core "./cli/start": the stable API, written by cli-dev api-report. Do not edit.
AppIdentity · interface · export interface AppIdentity {
AppIdentity · interface · command: string;
AppIdentity · interface · appName: string;
AppIdentity · interface · envPrefix: string;
AppIdentity · interface · description: string;
AppIdentity · interface · version: string;
AppIdentity · interface · issues?: string;
AppIdentity · interface · locale?: string;
AppIdentity · interface · contentLanguages?: readonly string[];
AppIdentity · interface · messenger?: boolean;
AppIdentity · interface · sends?: true;
AppIdentity · interface · requestMs?: number;
AppIdentity · interface · errors?: AppErrors;
AppIdentity · interface · }
CliEntry · interface · export interface CliEntry {
CliEntry · interface · app: AppIdentity;
CliEntry · interface · run: (entry: EntryContext) => Promise<number | undefined>;
CliEntry · interface · fail: (error: unknown, entry: EntryContext) => number;
CliEntry · interface · interactive?: (args: readonly string[], tty: boolean) => boolean;
CliEntry · interface · reasons?: readonly ErrorReason[];
CliEntry · interface · sqlite?: boolean;
CliEntry · interface · io?: Partial<EntryIo>;
CliEntry · interface · }
EntryContext · interface · export interface EntryContext {
EntryContext · interface · args: string[];
EntryContext · interface · env: NodeJS.ProcessEnv;
EntryContext · interface · tty: boolean;
EntryContext · interface · signal: AbortSignal;
EntryContext · interface · atStart: (command: Command) => Promise<void>;
EntryContext · interface · ask: (question: string, command?: Command) => Promise<boolean>;
EntryContext · interface · openBrowser: (url: string, browser?: string, command?: Command) => Promise<void>;
EntryContext · interface · outputClosed: () => boolean;
EntryContext · interface · setExitCode: (code: number) => void;
EntryContext · interface · }
EntryIo · interface · export interface EntryIo {
EntryIo · interface · argv: readonly string[];
EntryIo · interface · env: NodeJS.ProcessEnv;
EntryIo · interface · platform: NodeJS.Platform;
EntryIo · interface · stdin: NodeJS.ReadableStream & {
EntryIo · interface · isTTY?: boolean;
EntryIo · interface · };
EntryIo · interface · stdout: NodeJS.WritableStream & {
EntryIo · interface · isTTY?: boolean;
EntryIo · interface · };
EntryIo · interface · stderr: NodeJS.WritableStream & {
EntryIo · interface · isTTY?: boolean;
EntryIo · interface · };
EntryIo · interface · signals: Pick<NodeJS.Process, "on" | "off">;
EntryIo · interface · setExitCode: (code: number) => void;
EntryIo · interface · spawn: (command: string, args: readonly string[], options: SpawnOptions) => ChildProcess;
EntryIo · interface · }
openBrowser · const · export declare const openBrowser: (url: string, browser?: string, io?: Pick<EntryIo, "platform" | "spawn">) => Promise<void>;
startCli · const · export declare const startCli: (entry: CliEntry) => Promise<void>;
Loading
Loading