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
4 changes: 3 additions & 1 deletion .github/workflows/registry-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
package-manager-cache: false
- name: Compare the list with npm and Desktop's catalog
shell: bash
env:
GITHUB_TOKEN: ${{ github.token }}
run: node --experimental-strip-types scripts/official-tools.ts --check 2>&1 | tee drift.txt
# A pull request opened with github.token starts no checks, so the job keeps one issue up to date instead.
- name: Keep one issue open while the list lags a release
Expand All @@ -62,7 +64,7 @@ jobs:
echo '```'
echo
echo "To fix: run \`pnpm registry:official && pnpm exec biome format --write registry/\`, commit registry/official-manifests.json in a pull request, and"
echo "add a known difference to registry/drift-allow.json only with its reason."
echo "add a known difference to registry/drift-allow.json only with its reason and an \"until\" date or an \"issue\" link."
} > issue.md
title="Registry drift: Desktop's tool list lags a release"
number=$(gh issue list --state open --search "\"$title\" in:title" --json number -q '.[0].number // ""')
Expand Down
9 changes: 6 additions & 3 deletions docs/REVIEWING.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,12 @@ release. The design is in wirecat-desktop
site's summaries in `summaries`, and the texts above.
- **The drift check,** `pnpm registry:drift` and the Registry drift workflow (daily and on pull requests that touch the
registry), fails when `official-manifests.json` is behind npm, or when Desktop's compiled catalog says something
else than a manifest. Each known difference is a line in `registry/drift-allow.json` with why; a line that no
longer differs fails too. A CLI release that changes its manifest turns the check red until someone runs
`pnpm registry:official` and commits the result.
else than a manifest. A key the manifest leaves out or sets to `null` counts too, when the catalog runs something
there. The check also fails when a command line in Desktop's catalog, on main or in its latest release, names a
command the CLI's latest release no longer has. Each known difference is a line in `registry/drift-allow.json`
with why, and with an `until` date or an `issue` link. "Not checked" is not a reason, and a line past its date
fails. A line that no longer differs fails too. A CLI release that changes its manifest turns the check red until
someone runs `pnpm registry:official` and commits the result.

To add a new official CLI: list it in `tools.json` like any of our tools, give it an entry in
`registry/official.json` (at least `mcpPort` when it has an MCP server, and the Russian and Spanish texts), run
Expand Down
Loading