Skip to content

cli: fix orca plugin validate for manifests without a publisher - #36296

Merged
nwparker merged 1 commit into
mainfrom
nwparker/plugin-cli-publisher-fix
Oct 30, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/plugin-cli-publisher-fix

Conversation

@nwparker

@nwparker nwparker commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​14 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7

ELI5

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)
  • Typecheck, lint, tests pass locally

@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2fbcb170-6be8-4e7e-a5ba-af33c9c69d0a
Commits

Reviewing files that changed from the base of the PR and between f7ff1ee and 8dde559.

Files selected for processing: 2
  • src/cli/plugin-authoring/plugin-folder-validation.ts
  • src/cli/plugin-authoring/plugin-templates.test.ts

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: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the CLI validation fix for plugin manifests without a publisher.
Description check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit ce7ca7f into main Oct 30, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant