improvement(knip): check entry exports of private packages and delete their dead barrels - #8595
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
There was a problem hiding this comment.
All reported issues were addressed across 31 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
e1f9827 to
74d2b68
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
… their dead barrels - knip.jsonc: includeEntryExports on for every private package except db - delete the bare @sim/utils and @sim/workflow-persistence barrels and their "." exports - drop unused re-exports from the workflow-renderer and desktop-bridge barrels; un-export symbols only used in-file - delete 7 unreferenced emcn icons - baseline the remaining 262 entry-export findings (one-time rule expansion via --update --init)
…export check exposed - Delete exports nothing uses: RadarChart, ChipModalPromptBody, InputOTPSeparator, DropdownMenuGroup/Portal, legacy terminal tool names, and dead types and helpers - Drop `export` from declarations used only in their own file, and remove barrel re-exports no consumer imports - Tag getOAuthClientCapabilityFields and generateRandomBytes `@public`: generate-docs loads the first by file path, and check:utils names the second - Trim the workflow-authz mock to the module's remaining exports - The unused-exports baseline gains no entries and drops one
…urce panel lost its entry list
74d2b68 to
6ac3229
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
check:unused-exportsnever reported entry exports, so the private workspace packages had no export checking at all —@sim/emcnexports./*, which made every emcn file an entry.includeEntryExportsis now on by default; the apps (framework entries), the published packages (cli, sim-cli, sim-setup, ts-sdk), db (standalone scripts), and the root opt out. A new private package is checked without opting in.@sim/utilsand@sim/workflow-persistenceroot barrels (every caller uses a subpath), unused@sim/workflow-renderer,@sim/desktop-bridge, and@sim/emcnre-exportsexport(component props interfaces are kept, just not exported)RadarChart,ChipModalPromptBody, 7 unreferenced icons, unused protocol aliases and@sim/utilshelpers@publictag saying why (ChipTimePickeras documented chip-family API, a modulegenerate-docs.tsloads by path, and thecheck:utilsreplacement forcrypto.randomBytes())Type of Change
Testing
bun run lint,bun run type-check,bun run check:audits(58, incl.check:unused-exportsandcheck:desktop-bridge),docs-manifest:check, block-registry check, rootbun run test@publictag is load-bearing: removing it re-reports the exportChecklist
test-auditauthoring gate)🤖 Generated with Claude Code