You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli: fix orca plugin validate for manifests without a publisher - #36296
Two pull requests merged within minutes of each other and conflicted in meaning. #36281 made a plugin's publisher optional, because Orca now works it out from where the plugin comes from. #36280 (orca plugin validate) still assumed every manifest has one. main therefore fails the CLI typecheck. This fixes that, and orca plugin validate now names a folder the way Orca will actually load it.
What Changed
orca plugin validate / inspect now build the reported pluginKey with withPluginPublisher(manifest, localPluginPublisher(manifest.publisher)). That is the same derivation development-folder discovery uses: the declared publisher if there is one, otherwise local. A test covers a manifest without a publisher.
Why
The CLI's report should match the key orca plugin dev load will see. Reusing the shared derivation keeps the two from drifting apart.
Linked Issue
N/A (maintainer). Fixes the tc:cli break on main from #36280 × #36281.
Visual Proof
N/A: this is a CLI typecheck fix.
Testing
Automated tests added/updated (plugin-templates.test.ts: a manifest without a publisher validates as local.<id>)
pnpm tc and pnpm run check:code-quality:changed pass locally.
Review
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
No runtime, wire, or platform impact.
Checklist
This PR is small and focused
I explained what changed and why
N/A for visuals with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote impact considered (N/A)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Walkthrough
Folder plugin validation now derives the qualified plugin key from the manifest’s publisher, using the local publisher when none is declared. A test removes the publisher from a generated theme manifest and checks that validation returns no errors and the key local.nopub.
Priority: Normal
Merge Risk: Minimal · up to 8dde5
No actionable merge-blocking risk was identified.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly identifies the CLI validation fix for plugin manifests without a publisher.
Description check
The description includes the required sections and clearly explains the problem, implementation, testing, and scope. It identifies the related issues and explains why no visual proof is needed.
Docstring Coverage
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files.
Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
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
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.
ELI5
Two pull requests merged within minutes of each other and conflicted in meaning. #36281 made a plugin's
publisheroptional, because Orca now works it out from where the plugin comes from. #36280 (orca plugin validate) still assumed every manifest has one.maintherefore fails the CLI typecheck. This fixes that, andorca plugin validatenow names a folder the way Orca will actually load it.What Changed
orca plugin validate/inspectnow build the reportedpluginKeywithwithPluginPublisher(manifest, localPluginPublisher(manifest.publisher)). That is the same derivation development-folder discovery uses: the declared publisher if there is one, otherwiselocal. A test covers a manifest without a publisher.Why
The CLI's report should match the key
orca plugin dev loadwill see. Reusing the shared derivation keeps the two from drifting apart.Linked Issue
N/A (maintainer). Fixes the
tc:clibreak onmainfrom #36280 × #36281.Visual Proof
N/A: this is a CLI typecheck fix.
Testing
plugin-templates.test.ts: a manifest without a publisher validates aslocal.<id>)pnpm tcandpnpm run check:code-quality:changedpass locally.Review
Agent skill upstream boundary
Notes
No runtime, wire, or platform impact.
Checklist
N/Afor visuals with reason