Repository navigation
feat: resolve plugins from a subfolder of their repo - #164
Conversation
There was a problem hiding this comment.
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 pathThe lookup now reads
$manifestPath, which for the moved plugins isplugin/.claude-plugin/plugin.json. TheFormatExceptionstill says${pin.repo} .claude-plugin/plugin.json at $tag, so when the bot fails it points maintainers at the wrong file. Use$manifestPathin 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
pathinto a clear error instead of a silent empty install. pathis 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.
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.
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.
Description
vgv-wingspan and vgv-ai-flutter-plugin moved their plugin into
plugin/(VeryGoodOpenSource/vgv-wingspan#313, VeryGoodOpenSource/vgv-ai-flutter-plugin#205).PluginRefgets an optionalpath, 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 wrongpathis an error instead of an empty install. The bump tool readsplugin.jsonunder the path. Both moved plugins are pinned withpath: 'plugin'.The pins move to vgv-wingspan
v0.1.0and vgv-ai-flutter-pluginv0.2.0, the first releases withplugin/. The bump bot can't do that frommain: its tool readsplugin.jsonat the repo root, which those tags no longer have.Type of Change