refactor: unwrap PluginLoader namespace + self-reexport (redo)#23001
Open
kitlangton wants to merge 1 commit intodevfrom
Open
refactor: unwrap PluginLoader namespace + self-reexport (redo)#23001kitlangton wants to merge 1 commit intodevfrom
kitlangton wants to merge 1 commit intodevfrom
Conversation
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.
Summary
Redo of #22946 — the original PR merged cleanly with all checks green but the commit was later dropped from `origin/dev` by a release-pipeline force-push. Same content as the dropped `75cbba355`, cherry-picked onto current `dev`.
Unwrap `export namespace PluginLoader` in `packages/opencode/src/plugin/loader.ts` into flat top-level exports + self-reexport for tree-shaking and Node native TS runner compatibility. Public API preserved via appended `export * as PluginLoader from "./loader"`. No consumer imports change.
Why this needs a redo
A release-pipeline force-push rewrote `dev` after the original merge, dropping multiple of our namespace-unwrap commits. Detected during a clean-sweep audit of remaining `export namespace` declarations in `packages/opencode/src/`. Plain cherry-pick of the original commit applies cleanly (the file was not touched on dev since the drop).
Verification
Diff
Symmetric de-indent, same shape as every other tier-1 unwrap PR.