Skip to content

refactor(diffs): trim internal export surface - #107400

Merged
steipete merged 1 commit into
mainfrom
codex/burn-dead-exports-diffs
Jul 14, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/burn-dead-exports-diffs

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The production dead-export baseline still grandfathered nine extensions/diffs symbols. Six were module-local constants/helpers used externally only by tests.

Why This Change Was Made

  • Makes the six safe symbols private and removes their baseline rows.
  • Derives test defaults through retained config resolvers.
  • Exercises language-pack discovery through registerDiffsPlugin and viewer layout selection through getServedViewerAsset.
  • Retains the browser reset seam plus the two curated-language exports consumed by scripts/diffs-shiki-curated.ts.

User Impact

None. Plugin registration, config defaults, language-pack discovery, viewer asset lookup, and rendered output remain unchanged.

Evidence

  • Production Knip regeneration: exact 755 to 749; extensions/diffs 9 to 3; no additions
  • Testbox tbx_01kxg3ns5xbtfcw12fa28p43ny: exact deadcode, format, scoped type-aware lint, 147/147 Diffs tests, and extension types green
  • Broad test-types was capped during a quiet tail under the requested direct-land workflow
  • Final source patch-id unchanged after rebase: 8f088d231dd47bf115dc9236ea2ef59cb2a52a37
  • Fresh whole-diff autoreview: clean, 0.97

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts extensions: diffs size: M maintainer Maintainer-authored PR labels Jul 14, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof at signed head 06b837d6503a3de985ccfc6ebc3aa2c728c6447d:

  • Production Knip regeneration: exact 749 entries; extensions/diffs 9 to 3; no additions
  • Testbox tbx_01kxg3ns5xbtfcw12fa28p43ny: format, scoped type-aware lint, 147/147 Diffs tests, and extension types green
  • Broad test-types was capped during a quiet tail under the requested direct-land workflow
  • Final source patch-id unchanged: 8f088d231dd47bf115dc9236ea2ef59cb2a52a37
  • Fresh whole-diff autoreview: clean, 0.97

Hosted CI intentionally not awaited.

@steipete
steipete merged commit 236a6b8 into main Jul 14, 2026
77 of 81 checks passed
@steipete
steipete deleted the codex/burn-dead-exports-diffs branch July 14, 2026 11:02
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 15, 2026
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: diffs maintainer Maintainer-authored PR scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant