refactor(deadcode): tighten more provider extension roots#108515
Merged
Conversation
|
|
||
| async function createRealtimeServer(onRequest: (url: URL) => void) { | ||
| const server = createServer(); | ||
| const wss = new WebSocketServer({ noServer: true }); |
|
|
||
| async function createRealtimeServer(onRequest: (url: URL) => void) { | ||
| const server = createServer(); | ||
| const wss = new WebSocketServer({ noServer: true }); |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 16, 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
Production Knip treated every root TypeScript file in bundled provider plugins as an entry point. That hid internal unused exports even while the enforced dead-export baseline was empty.
Why This Change Was Made
Twelve additional provider workspaces now use exact runtime entry conventions instead of the broad root-file wildcard. The newly visible internal exports were privatized or deleted, and direct helper tests were migrated to retained provider, auth, catalog, synthesis, and realtime-session boundaries.
The patch removes 23 hidden export surfaces with no baseline additions. Production non-test code, including configuration, is +28/-48 lines (net -20).
User Impact
No user-visible behavior or provider contract changes. Future unused exports in these workspaces now fail the hard-zero production dead-code gate.
Evidence
Knip unused-export check passed with 0 entries).Date.nowspy leaked was rejected because the file-levelafterEachcallsvi.restoreAllMocks().