Skip to content

feat: resolve plugins from a subfolder of their repo - #164

Merged
marcossevilla merged 9 commits into
mainfrom
feat/plugin-subfolder-path
Nov 25, 2026
Merged

marcossevilla merged 9 commits into
mainfrom
feat/plugin-subfolder-path

Conversation

@ryzizub

@ryzizub ryzizub commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

vgv-wingspan and vgv-ai-flutter-plugin moved their plugin into plugin/ (VeryGoodOpenSource/vgv-wingspan#313, VeryGoodOpenSource/vgv-ai-flutter-plugin#205).

PluginRef gets an optional path, the plugin's folder inside its repo. The git source resolves to that folder in the clone and fails when it has no .claude-plugin/plugin.json, so a wrong path is an error instead of an empty install. The bump tool reads plugin.json under the path. Both moved plugins are pinned with path: 'plugin'.

The pins move to vgv-wingspan v0.1.0 and vgv-ai-flutter-plugin v0.2.0, the first releases with plugin/. The bump bot can't do that from main: its tool reads plugin.json at the repo root, which those tags no longer have.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore
  • 🧪 Test

@ryzizub
ryzizub marked this pull request as ready for review November 21, 2026 19:36
@ryzizub
ryzizub requested a review from a team as a code owner November 21, 2026 19:36
@marcossevilla
marcossevilla requested a review from vgvbot November 23, 2026 10:12
@unicoderbot

unicoderbot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

I'll review the code and share my feedback shortly.

  • Preparing environment
    • Cloning repository
    • Setting up dev environment
  • Reviewing code
  • Posting review

Code review submitted — 3 non-blocking finding(s).

@unicoderbot unicoderbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Ready to merge

Quality: 60/100

  • 3 non-blocking findings: -15
  • CI: failing: -25

Findings

  • Non-blocking packages/vgv_ai_plugins/lib/src/sources.dart:135: A cache hit without a manifest fails on every run, and the message points at the pin instead of the cache

  • Non-blocking packages/vgv_ai_plugins/tool/bump_plugin_pins.dart:140: The no-version error still names the root manifest path

    The lookup now reads $manifestPath, which for the moved plugins is plugin/.claude-plugin/plugin.json. The FormatException still says ${pin.repo} .claude-plugin/plugin.json at $tag, so when the bot fails it points maintainers at the wrong file. Use $manifestPath in the message too.

  • Non-blocking packages/vgv_ai_plugins/lib/src/plugin_ref.dart:36: add-plugin skill still assumes the plugin is at the repo root

Positives

  • Requiring the manifest under the resolved path turns a wrong path into a clear error instead of a silent empty install.
  • path is pinned per tag, and the bump tool carries it forward, so a layout change between releases is handled explicitly.

…-path

# Conflicts:
#	packages/vgv_ai_plugins/lib/src/plugin_ref.dart
The bump tool's missing-version error named the root manifest even for a
pin with a path. A cached clone without the manifest under the pinned path
now names the directory to delete, since an end user cannot change the pin.
The add-plugin skill now records a pin's path and audits the plugin there.
unicoderbot[bot]
unicoderbot Bot previously approved these changes Nov 25, 2026

@unicoderbot unicoderbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All my review comments have been resolved. Approving this PR. If another review is needed, just re-request it.

The pin bump only rewrites plugin_ref.dart, so any wingspan bump broke
this test.
Move wingspan to v0.1.0 and the flutter plugin to v0.2.0, the first
releases with the plugin under plugin/. The bump bot on main cannot do
this: its tool reads plugin.json at the repo root, which these tags no
longer have.
marcossevilla and others added 3 commits November 25, 2026 17:34
PluginRef is const, so it cannot assert on the path. An absolute path would make joinAll drop the clone directory, so a test over vgvPlugins guards the pins instead. Also documents that the Claude Code cache source ignores the path and falls back to git when the cache holds a whole repo.
@marcossevilla
marcossevilla merged commit 5a43450 into main Nov 25, 2026
7 checks passed
@marcossevilla
marcossevilla deleted the feat/plugin-subfolder-path branch November 25, 2026 18:14
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