fix: resolve Cursor marketplace monorepo plugins - #164
Conversation
PR Summary by QodoFix Cursor marketplace monorepo plugin installs via gitPath and id fallback
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
Install snippets now pin ::subpath (and optional gitRef) from the marketplace API, and resolvePlugins falls back to finding a nested plugin by id when the repo root only has a catalog. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the full-tree findPluginInDirectory fallback with a direct-child and marketplace-catalog resolve, and fix the adapter test import for tsc. Co-authored-by: Cursor <cursoragent@cursor.com>
21b9263 to
24831dd
Compare
Summary
Cursor marketplace listings often point at a multi-plugin git repo (
gitUrl) with the actual plugin undergitPath. capa previously installedowner/repoat the root, hit only a marketplace catalog (noplugin.json), and failed to expand the plugin.Changes
gitPathasowner/repo::pathand optionalgitRefin the install snippetid, search the tree for a nested plugin matching that id (helps already-authored entries without::/@)gitPathtraversal (..) from marketplace datapluginDefand monorepo id fallbackTest plan
bun test registries/cursor-marketplace/adapter.test.ts src/cli/commands/__tests__/plugin-monorepo-id-fallback.test.tsid