Repository navigation
feat(list): priorities with reasons, family and shared-pin groups, filterable HTML tiles - #20
Merged
Merged
Conversation
…lterable HTML tiles Priorities (packages/core/src/list/priorities.ts, docs/priorities.md): deterministic signals per outdated package, no LLM call. Known advisories for the installed version from one POST to npm's bulk advisory endpoint (public packages only; 'advisories not checked' on failure, never fatal), a deprecated installed version and every published version from the packument discovery already fetches, the support window from the full document's time map (only for packages with a newer major), peer ranges holding another upgrade back, majors behind, and effort from the usage scan (halved by a verified pack). Ranked security > deprecated > unsupported > blocking > behind, cheaper first among equals; a group is one row. When nothing is urgent, a cheap batch of minor/patch upgrades touching few files. Groups: a scope is one family whatever its members' versions (@types excepted), and packages also group across scopes when a peer range of one's latest version needs the other, or both pin the same exact dependency version that their latest versions move together (ai and @ai-sdk/* share @ai-sdk/provider; they have no peer link). An installed peer range that holds another package back is a blocking signal, not a group, so React's ecosystem does not fold into one group. Every group carries its reason. Terminal: PRIORITIES first, at most five rows with the reason and the exact command (on its own line when it would not fit), and Next points to the top priority or the cheap batch. HTML: a Priorities block, and tiles (Outdated, Major, Minor, Patch, Groups, Tooling, Priority, Verified, Possibly unused) that filter the rows, toggle or Clear, with the filter in the URL hash. Each package is one row in one section, so a tile's count is the rows it shows: the 13 majors of the header include grouped, tooling and possibly-unused rows that PACKAGES never listed. README, SECURITY.md and the privacy statement name the advisory request. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
lucasbraum
force-pushed
the
feat/list-priorities
branch
from
October 6, 2026 03:57
fcee0fb to
3e3bb79
Compare
Runtime over dev: each package is runtime (dependencies, optionalDependencies, or a peer of one) unless it is tooling, else dev (packages[].kind). A dev package's advisory drops one severity step, and runtime wins ties, so a high advisory in a runtime dependency outranks a critical one in a dev-only test runner; dev rows say 'dev · ' in the reason. The smallest fix: the lowest stable version above the installed one that none of its advisories covers, said as 'fixed in 3.2.5 (patch, same major)' or 'needs 4.1.11 (major)'. Same-major fixes rank above major-only ones at equal urgency, and the row's command checks that version (--target). --no-advisories, or "advisories": false in uptide.config.json, never sends installed versions to npm's advisory endpoint; PRIORITIES says why advisories were not checked. The config file accepts advisories only as a boolean. A synthetic fixture (fixtures/repos/list-accuracy/priorities: public packages with recorded registry and advisory responses) drives the tests, the report previews (scripts/render-report-previews.ts) and the screenshots in docs/screenshots/pr-20, which contain no real project's data. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
This was referenced Oct 7, 2026
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.
Summary
uptide listnow opens with PRIORITIES: what to upgrade first, why, and the exact command. Two grouping bugs are fixed, and the HTML report's tiles filter the table. Everything is deterministic: no LLM calls inlist.Priorities
The rules live in one module,
packages/core/src/list/priorities.ts, with a unit test per signal. Weights are documented in docs/priorities.md./-/npm/v1/security/advisories/bulkwith every public package's installed versions; private registries and scopes are never sent; 5 s deadline; on failure the heading says "advisories not checked" and the run goes on2 advisories (1 high), fixed in 3.1.2deprecated: <registry message, truncated>timemap, fetched only for packages with a newer major (5 s deadline)4.x line unsupported since 2025-03, 37 files to touchblocks ai 73 majors behind, 2 files to touchRanking is security > deprecated > unsupported > blocking > behind, with the cheaper upgrade first among equals. A group is a single row, ranked by its most urgent member.
Two choices to review:
@nestjs/*).Runtime over dev
Classification: each package is runtime if it's in
dependencies/optionalDependencies(or is a peer of one) and isn't tooling. Otherwise it's dev: only indevDependencies, or tooling. JSON:packages[].kind.Ranking: a dev package's advisory drops one severity step, and runtime wins ties:
runtime critical > runtime high ≥ dev critical > runtime moderate ≥ dev highSo a high advisory in a runtime dependency outranks a critical one in a dev-only test runner: both rank 5.3, and runtime wins the tie. A dev critical still outranks a runtime moderate.
Wording: dev rows say
dev ·in the reason.Smallest fix
For a security row, the fix is the lowest stable version above the installed one that none of its advisories covers:
fixed in 2.29.4 (patch, same major);needs 9.0.0 (major);no fixed version yet.At equal urgency, same-major fixes rank above major-only ones. The row's command checks that version, e.g.
uptide check moment --target [email protected]. The recorded advisory ranges are tested inpriorities.test.tsandpriorities-fixture.test.ts.--no-advisories--no-advisories, or"advisories": falseinuptide.config.json, means no request is ever made to npm's advisory endpoint. The heading then saysadvisories not checked (turned off with --no-advisories)(or… in uptide.config.json). The config file acceptsadvisoriesonly as a boolean, and the credential checks still apply to the whole file.Terminal
--allshows every row).Nextpoints to the top priority, then to the cheap batch, then to the old fallback.Grouping bugs
Families: a scope (not
@types) is one group named@scope/*whatever its members' versions.Across scopes: the registry data does not match the brief's "peer link" for
ai+@ai-sdk/*. Their only peer iszod. What links them is a shared pin:[email protected]and@ai-sdk/[email protected]both pin@ai-sdk/provider1.1.3, and their latest versions both pin4.0.22, so upgrading one alone leaves two copies. Packages now group across scopes when:<dep>").The group is named
ai + @ai-sdk/*and shows its reason.Holding back is not grouping: an installed peer range that holds another package back is a blocking signal, not a group link. Otherwise React's ecosystem would fold into one group on its way to 19; the radix fixture covers this.
Fixtures:
fixtures/repos/list-accuracy/radix-familyandai-sdk-link, each with real npm metadata recorded once inregistry.jsonand served offline.HTML report
<button aria-pressed>toggles. Click again, click Outdated, or use Clear to reset. The active tile is visibly pressed, and the filter is kept in#filter=<name>, so a link reopens the same view.html/list.test.tsasserts this for every tile, and it was checked in a browser on the fixtures (all 9 tiles).Network and privacy
listnow sends public packages' names and installed versions to npm's advisory endpoint, unless--no-advisoriesor the config key turns it off. README, SECURITY.md, docs/cli.md and the privacy statement in--helpsay so.Output (synthetic fixture)
fixtures/repos/list-accuracy/prioritiesis a synthetic app of public npm packages at versions with known advisories, a deprecation and a dev-only dependency. Its registry and advisory responses were recorded once.pnpm exec tsx scripts/render-report-previews.ts <dir>reproduces the output below and the screenshots.The synthetic Nest report, opened from
#filter=tooling: the collapsed Tooling section opens and shows its 19 rows, matching the tile.Mobile, opened from
#filter=priorityTiming on real repositories
Validated locally on two real repositories; only timings are published, no output and no package names.
uptide list --json, before and after, interleaved, 5 runs each:Most of the difference is the extra registry work (the advisory POST, plus the full documents for packages with a newer major), which overlaps the existing request pool. Registry latency dominated the spread in these runs.
Tests
typecheckandbiomeclean.priorities.test.ts(each signal, ranking, groups, cheap batch),families.test.ts(both fixtures),groups.test.ts(@typesexcluded, workspaces kept apart,peerBlocks), and the HTML tile-count test.@nestjs/cliand@nestjs/schematics).🤖 Generated with Claude Code