refactor: localize file-private exports#101701
Merged
Merged
Conversation
vincentkoc
force-pushed
the
refactor/deadcode-all-surfaces-20260707-v46
branch
from
July 7, 2026 13:54
90b39af to
9dc841a
Compare
Member
Author
|
Land-ready proof:
Known proof gap: no full repository suite; the exact changed gate plus targeted touched-surface tests passed. |
vincentkoc
marked this pull request as ready for review
July 7, 2026 13:56
Member
Author
|
Merged via squash.
|
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
The dead-export inventory still contained file-private helpers and constants across core, the Control UI, and bundled plugins. Keeping them exported expands module API surfaces without any cross-file consumer.
Why This Change Was Made
Localize 50 values that are referenced only inside their defining module. This removes stale named exports while preserving the existing implementation and call paths.
User Impact
No user-visible behavior change. Internal module boundaries are narrower and the unused-export report drops by 13 modules.
Evidence
OPENCLAW_TESTBOX=1Testboxtbx_01kwyb4t91ykkycx7kbw0s23pn(silver-shrimp)pnpm check:changed: passed on the final rebased 38-file patch in 10m38s