Skip to content

fix(plugin): drop the manifest's network field from the directory edition - #1688

Merged
EtienneLescot merged 1 commit into
mainfrom
plugin/directory-manifest
Nov 26, 2026
Merged

EtienneLescot merged 1 commit into
mainfrom
plugin/directory-manifest

Conversation

@EtienneLescot

@EtienneLescot EtienneLescot commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

The directory validated the skills-only mirror from #1687 and returned one blocking finding and one warning:

  • Blocking: .claude-plugin/plugin.json · network. This is a config field outside the allowed list, which the directory accepts only from Verified organizations. The directory edition now drops network from the manifest. plugin/ keeps it, because Claude Code reads it there.
  • Warning: .claude-plugin/icon.png reports a download-and-run pattern. Its only chunks are IHDR, IDAT and IEND, with no text, so the match is in the compressed bytes. The icon is re-encoded losslessly: same 512×512 RGBA pixels, 215 KB instead of 229 KB.

Test plan

  • vitest --run .github/scripts/build-plugin-mirror.test.mjs (7 tests, the manifest field is covered)
  • Directory edition: 13 files, claude plugin validate passes
  • The icon's pixels are identical before and after (compared with Pillow)
  • Re-validate the mirror in the directory portal after merge

Generated by Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Directory edition plugin manifests no longer include network configuration. The full edition remains unchanged.

…tion

The directory refuses manifest fields outside its list from an
unverified organization, and it does not list `network`. Claude Code
still reads it from plugin/, so only the mirror loses it. The icon is
re-encoded, pixel for pixel, because the directory's scan matched a
download-and-run pattern in its compressed bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019SAKipREuKRNW28N1gsAuR
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The directory edition now removes the network field from .claude-plugin/plugin.json when the manifest exists. The test fixture includes network.hosts, and the test expects the mirrored manifest to contain only name and version. The full edition’s output is unchanged.

Changes: Directory edition manifest

Layer / File(s) Summary
Filter and verify directory manifest
.github/scripts/build-plugin-mirror.mjs, .github/scripts/build-plugin-mirror.test.mjs
The build script removes network from the directory edition’s plugin manifest. The test checks that the mirrored manifest contains only name and version.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: claude

Merge Risk: Minimal · up to 48638 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the directory edition of the plugin manifest drops the network field. It also uses the conventional fix(plugin) prefix. The title is 73 characters, which is within a n…
Description check Passed The description follows the repository template. It has a Summary that explains the blocking directory finding, the warning about the icon, and the fix. It has a Test plan with commands and results. I…
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: Title check

Explanation

The title names the main change: the directory edition of the plugin manifest drops the network field. It also uses the conventional fix(plugin) prefix. The title is 73 characters, which is within a normal length. It is specific and matches the summary, objectives, and file changes.

Full details: Description check

Explanation

The description follows the repository template. It has a Summary that explains the blocking directory finding, the warning about the icon, and the fix. It has a Test plan with commands and results. It has a Related issue section, but it is not filled in: the line reads 'Fixes #' with no issue number. The Type of change, Release impact, Desktop impact, and Screenshots sections are missing. The Summary and Test plan cover the key context, so the description is mostly complete.

Resolution

Optional but recommended: fill in the issue number in the Related issue section (or remove the placeholder if no issue applies). Mark the Type of change (Bug fix), Release impact (Patch), and Desktop impact (Not platform-specific or Installer / packaging) checkboxes. Add a Screenshots / video note or state that it does not apply.

Finishing Touches

Generate unit tests (beta)

  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1315de2f-89ff-46cf-94b2-78d8ed2e7b8c
Commits

Reviewing files that changed from the base of the PR and between 0558e03 and 48638a9.

Files ignored due to path filters: 1

  • plugin/.claude-plugin/icon.png is excluded by !**/*.png
Files selected for processing: 2

  • .github/scripts/build-plugin-mirror.mjs
  • .github/scripts/build-plugin-mirror.test.mjs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

Copy link
Copy Markdown
Member Author

Rust test (macOS compositor) fails on audio::tests::a_clipped_voice_exports_under_minus_one_dbtp_and_keeps_what_loudness_it_can ("the fixture needs raising… 0.9500192"). It isn't this PR's: no Rust changed here, and the same test has failed on every PR since 2026-11-25 (#1685, #1686, #1687).


Generated by Claude Code

@EtienneLescot
EtienneLescot merged commit 1db0135 into main Nov 26, 2026
20 of 21 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.

2 participants