Repository navigation
build(deps): bump knip from 5 to 6 - #68
Merged
Merged
Conversation
stuffbucket
force-pushed
the
chore/knip-6
branch
from
September 7, 2026 04:13
1c1cf08 to
7e98868
Compare
Held out of the tooling group because it fails in two packages and both needed decisions rather than a bump. Both turned out to be knip 6 behaviour changes rather than debt this repo had accumulated. maximal-core Five system binaries are newly reported unlisted: qemu-system-aarch64, pgrep, swtpm and schtasks. They are OS-provided, not npm binaries, so they join trufflehog in ignoreBinaries. Five TokenUsage* types re-exported from src/lib/token-usage/index.ts are newly reported unused, and they are: removed. The concern was that maximal-core is published, so dropping them could break a consumer. It cannot. The package's surface is the six entries in its `exports` map, the token-usage barrel is not one of them and is not reachable from any of them, and a declaration build confirms it: no TokenUsage* name appears anywhere in dist/lib/*.d.ts, and neither does the shape inlined structurally -- no byModel, byProvider, buckets, inputTokens or cacheRead. The one file referencing the summary type (lib/live/resources.ts, via Awaited<ReturnType<...>>) is not reachable from contract.ts, client.ts or supervisor.ts. The types themselves stay in store.ts, where they are used -- TokenUsageTotals is extended by three of the others. Only the dead re-export goes. Stale ignore entries for src/lib/auth/token.ts, @stuffbucket/eslint-config and @stuffbucket/maximal-provider-contract are removed: knip 6 detects all three as used, so the ignores were hiding nothing. maximal knip 6 descends into the nested client/ workspace, which knip 5 did not. client/ has its own manifest declaring vitest, react and @playwright/test, so resolving its imports against maximal's manifest produced 14 phantom unlisted dependencies. client/ is ignored here and analysed on its own terms. Three workspace dependencies and prettier-plugin-packagejson are detected as used now, so those ignoreDependencies entries go. lint-staged replaces them: it is configured through a package.json block rather than imported, which knip does not count as usage -- the same entry maximal-core already carries. Verified: knip 6 passes in both packages, maximal-core check:deep:host passes end to end, the container suite is 15/15, and verify:workspace passes with the lockfile re-resolved and stripped of rotating shard hosts.
stuffbucket
force-pushed
the
chore/knip-6
branch
from
September 7, 2026 04:38
7e98868 to
0ca044e
Compare
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.
Held out of #55 because it fails in two packages and both needed decisions
rather than a bump. Both turned out to be knip 6 behaviour changes, not debt
this repo had accumulated.
maximal-core
Five system binaries newly reported unlisted —
qemu-system-aarch64,pgrep,swtpm,schtasks. OS-provided, not npm binaries, so they jointrufflehoginignoreBinaries.Five
TokenUsage*types newly reported unused — and they are. This was theone that looked risky, since
maximal-corepublishes to GitHub PackageRegistry. It isn't:
exportsmap(
client,contract,control-contract,provider-host,settings-types,supervisor) — the token-usage barrel is not one of them;TokenUsage*names anywhere indist/lib/*.d.ts;byModel,byProvider,buckets,inputTokensorcacheReadeither;lib/live/resources.ts, viaAwaited<ReturnType<...>>) is not reachable fromcontract.ts,client.tsor
supervisor.ts.Nothing outside could have imported them, because nothing outside could reach
them. The types themselves stay in
store.ts, where they are genuinely used—
TokenUsageTotalsis extended by three of the others. Only the deadre-export goes.
Stale ignores removed —
src/lib/auth/token.ts,@stuffbucket/eslint-config,@stuffbucket/maximal-provider-contract. knip 6detects all three as used, so the ignores were hiding nothing.
maximal
knip 6 descends into the nested
client/workspace; knip 5 did not.client/has its own manifest declaringvitest,reactand@playwright/test, so resolving its imports againstmaximal's manifestproduced 14 phantom "unlisted dependencies".
client/is ignored here andanalysed on its own terms.
Three workspace dependencies plus
prettier-plugin-packagejsonare detected asused now, so those
ignoreDependenciesentries go.lint-stagedreplaces them— it is configured through a
package.jsonblock rather than imported, whichknip does not count as usage. Same entry
maximal-corealready carries.Verification
maximal-corecheck:deep:hostpasses end to end.verify:workspaceclean; lockfilere-resolved and stripped of rotating shard hosts.
Replaces the last held item from #37 that was actually actionable.
@electron/fuses2 stays blocked upstream on Electron Forge 8 (see #57).