refactor: localize internal implementation constants#101758
Merged
Merged
Conversation
Member
Author
|
Land-ready proof:
No docs or changelog update is required for this internal mechanical refactor. |
vincentkoc
marked this pull request as ready for review
July 7, 2026 15:33
Member
Author
|
Merged via squash.
|
This was referenced Jul 7, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 8, 2026
giodl73-repo
pushed a commit
to giodl73-repo/openclaw
that referenced
this pull request
Jul 8, 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.
What Problem This Solves
Implementation constants in 54 core, bundled-plugin, and Control UI modules were still exported even though no other tracked file referenced those names. Those exports inflate the apparent API surface and keep dead-code reports noisy.
Why This Change Was Made
Localize 76 constants that are used only inside their defining module. Public barrels, package entrypoints, provider contracts, Plugin SDK surfaces, Codex protocol/runtime declarations, fixtures, and declaration files were excluded.
User Impact
No behavior change. The codebase exposes a smaller internal value surface and the unused-export report has fewer false-positive candidates.
Evidence
tbx_01kwygfwspedmmr654db8z1bym: exact committed diff passedpnpm check:changednode scripts/check-duplicates.mjs: zero clones across production, extension, and test lanespnpm deadcode:report:ci:ts-unused: 3,589 -> 3,576 modules with unused exports; all 76 selected names removed from their originating module entriesgit diff --check