refactor(plugin-sdk): collapse internal config-schema facade usage onto one module#104665
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 12, 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.
Related: #104318
What Problem This Solves
Three overlapping SDK config-schema facades (
channel-config-schema,channel-config-primitives,bundled-channel-config-schema+ a-legacyalias) re-export near-identical primitive sets, and internal code imported them interchangeably — keeping the redundant surface load-bearing and confusing (plus the unrelatedchannel-config-helpersname-collides with the trio).Why This Change Was Made
channel-config-schemais the canonical module (the only trio member in the doc-metadata contract set). Twenty internal import sites migrated (eleven primitives sites across eight extensions; eight bundled config-api barrels split so generic helpers come from canonical and only the eight provider schemas from the bundled facade). The non-canonical facades are now pure re-export shells nothing internal imports — they stay exported for third parties until the break train, and export-name sets are byte-identical so the surface report and api-baseline are untouched. Three guard layers keep it drained: the deprecated-specifier list for extensions, boundary-test bans for legacy+primitives with bundled-facade bindings restricted to provider schema names, and a src-wide zero-import scan.channel-config-helperskeeps its subpath, with a doc-comment disambiguating it from the schema trio.User Impact
None — internal import hygiene; external plugin authors see identical exports.
Evidence
tbx_01kx99tfsv7d0b0xtjjve5qc57: focused suites (plugin-sdk, channels/plugins, plugins/contracts, extension-test-boundary) +pnpm build(no ineffective-dynamic-import) + fullpnpm check:changed, exit 0; repo-wideoxfmt --checkgreen up front.git showproof (the symbol was never exported from that facade).