refactor(discord): trim internal exports#107714
Merged
Merged
Conversation
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 15, 2026
* refactor(discord): trim internal exports * refactor(discord): use canonical approval helper * chore(deadcode): refresh export baseline
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.
What Problem This Solves
The shrink-only dead-export baseline still carried 54 Discord entries, including internal types, constants, helper functions, and facade reexports that production code does not consume.
Why This Change Was Made
Privatizes or removes 42 verified dead Discord exports and migrates direct tests through retained production boundaries or canonical SDK owners. Twelve mutable runtime, component-registry, cache-reset, and testing seams remain unchanged because they still represent stateful test or lifecycle boundaries.
The production-mode Knip cascade exposed one additional test-only facade reexport, splitChannelApprovalCapability. Its test now imports the canonical plugin SDK owner and the Discord facade reexport is removed without adding a baseline row.
Baseline delta: +0/-42 entries, 544 to 502 total; Discord 54 to 12. Production source excluding the baseline: +39/-79 lines, net -40.
User Impact
No user-visible Discord or CLI behavior changes. The internal module surface and enforced dead-export ratchet are smaller.
Evidence