Commit 4bd84c2
fix(marketplace): prevent repeated auto-registration on every plugin resolve (#66)
When a marketplace manifest defines a canonical name different from the repo
name, getMarketplace() by repo name fails on every plugin resolve, triggering
redundant auto-registration attempts with console spam and unnecessary I/O.
Add findMarketplace() that checks both registry name and source.location in a
single registry load, so already-registered marketplaces are found regardless
of name mismatch.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 1869e59 commit 4bd84c2
1 file changed
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
352 | 374 | | |
353 | 375 | | |
354 | 376 | | |
| |||
723 | 745 | | |
724 | 746 | | |
725 | 747 | | |
726 | | - | |
727 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
728 | 751 | | |
729 | 752 | | |
730 | 753 | | |
| |||
0 commit comments