Skip to content

feat(plugin): smart scope resolution for plugin uninstall#64

Merged
christso merged 1 commit intomainfrom
feat/plugin-uninstall-smart-scope
Feb 3, 2026
Merged

feat(plugin): smart scope resolution for plugin uninstall#64
christso merged 1 commit intomainfrom
feat/plugin-uninstall-smart-scope

Conversation

@christso
Copy link
Copy Markdown
Contributor

@christso christso commented Feb 3, 2026

Summary

  • When no --scope flag is given, plugin uninstall now checks both project and user scopes and removes the plugin from all scopes where it exists
  • Adds hasPlugin() and hasUserPlugin() helpers for non-destructive scope lookup
  • Always shows scope label in install/uninstall success messages (e.g. (project scope), (user scope), (project + user scope))
  • Shows clear Plugin not found error when plugin doesn't exist in any scope

Before: allagents plugin uninstall foo would fail if foo was only in user scope, requiring the user to guess --scope user.

After: allagents plugin uninstall foo finds and removes foo from whichever scope(s) it exists in.

Test plan

  • New tests in tests/cli/plugin-uninstall-scope.test.ts (11 tests)
  • All existing tests pass (478 total, 0 failures)
  • Manual test: install plugin in user scope, run plugin uninstall <name> without --scope flag

🤖 Generated with Claude Code

When no --scope flag is given, uninstall now checks both project and
user scopes and removes the plugin from all scopes where it exists.
This eliminates the confusing error when a plugin is installed in user
scope but the user doesn't specify --scope user.

- Add hasPlugin() and hasUserPlugin() helpers for non-destructive lookup
- Auto-uninstall from both scopes when no --scope specified
- Always show scope label in install/uninstall success messages
- Clear "Plugin not found" error when plugin doesn't exist in any scope

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: 369f8bd
Status: ✅  Deploy successful!
Preview URL: https://0817a563.allagents.pages.dev
Branch Preview URL: https://feat-plugin-uninstall-smart.allagents.pages.dev

View logs

@christso christso merged commit 499d792 into main Feb 3, 2026
1 check passed
@christso christso deleted the feat/plugin-uninstall-smart-scope branch February 3, 2026 11:55
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.

1 participant