feat(marketplace): support project-level marketplaces with override warning - #224
Merged
Conversation
…ives Add loadRegistryFromPath, saveRegistryToPath, and getProjectRegistryPath to support project-level marketplace registries. Refactor existing loadRegistry/saveRegistry to delegate to the new path-based functions.
…lugin install handler
Deploying allagents with
|
| Latest commit: |
d229456
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c88aaaba.allagents.pages.dev |
| Branch Preview URL: | https://feat-223-project-level-marke.allagents.pages.dev |
…ution, guard removeMarketplace scope
Contributor
Author
E2E Manual Test Results ✅All 10 scenarios pass. Build, then run from a temp workspace: # Setup
mkdir -p /tmp/aa-e2e-223/.allagents
echo "plugins: []" > /tmp/aa-e2e-223/.allagents/workspace.yaml
mkdir -p /tmp/aa-e2e-223-mp/plugins/hello-plugin
echo '{"name":"hello-plugin"}' > /tmp/aa-e2e-223-mp/plugins/hello-plugin/plugin.json
cd /tmp/aa-e2e-223
# Test 1: add --scope project → creates .allagents/marketplaces.json in workspace
allagents plugin marketplace add /tmp/aa-e2e-223-mp --scope project
cat .allagents/marketplaces.json # verify project registry
# Test 2: add with default scope (user)
allagents plugin marketplace add /tmp/aa-e2e-223-mp
# Test 3: list (no flag) → shows both scopes merged + override warning
allagents plugin marketplace list
# Test 4: list --scope project → only project entries
allagents plugin marketplace list --scope project
# Test 5: list --scope user → only user entries
allagents plugin marketplace list --scope user
# Test 6: browse → finds plugins from project marketplace
allagents plugin marketplace browse aa-e2e-223-mp
# Test 7: remove --scope project → user entry survives
allagents plugin marketplace remove aa-e2e-223-mp --scope project
allagents plugin marketplace list # shows user only
# Test 8: re-add project, remove --scope user → project entry survives
allagents plugin marketplace add /tmp/aa-e2e-223-mp --scope project
allagents plugin marketplace remove aa-e2e-223-mp --scope user
allagents plugin marketplace list # shows project only
# Test 9: re-add user, remove (no flag) → removes from both
allagents plugin marketplace add /tmp/aa-e2e-223-mp --scope user
allagents plugin marketplace remove aa-e2e-223-mp
allagents plugin marketplace list # shows nothing
# Test 10: add --scope project without workspace → error
cd /tmp && allagents plugin marketplace add /tmp/aa-e2e-223-mp --scope project
# Expected: "Error: No workspace found in current directory."
# Cleanup
rm -rf /tmp/aa-e2e-223 /tmp/aa-e2e-223-mpScope defaults
Results
Unit tests: 926 pass, 0 fail (930 total, 4 skipped) |
…pe filters to user or project
…oth, --scope filters to user or project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #223
Summary
--scope <user|project>toplugin marketplace add(default:user) — writes to.allagents/marketplaces.jsonin workspace root whenproject--scope <user|project>toplugin marketplace list— filters by scope; omitting shows both scopes merged--scope <user|project>toplugin marketplace remove— removes from specified scope; omitting removes from bothplugin@marketplace) uses merged registries with project-over-user precedencemarketplace browseandmarketplace updatealso support project-level marketplacesE2E Test Plan
🤖 Generated with Claude Code