Repository navigation
feat: add --project scope to uninstall - #177
Open
unicoderbot[bot] wants to merge 2 commits into
Open
unicoderbot[bot] wants to merge 2 commits into
unicoderbot[bot] wants to merge 2 commits into
Conversation
Closes #139 Co-authored-by: marcossevilla <marcossevilla@users.noreply.github.com>
erickzanardo
reviewed
Dec 2, 2026
Comment on lines
+202
to
+204
| ProjectScope(:final root) => | ||
| 'skills in ${scope.skillsRoot.path} and the plugin files in ' | ||
| '${root.fileSystem.path.join(root.path, '.vgv_ai', 'plugins')}', |
Member
There was a problem hiding this comment.
.vgv_ai/plugins is hardcoded here and again in ProjectScope.pluginRoot. Expose the plugins directory from ProjectScope, for example a pluginsDirectory getter, so the layout is defined in one place.
| static String _uninstallAll(Scope scope) => switch (scope) { | ||
| UserScope() => 'vgv_ai uninstall', | ||
| ProjectScope(:final root) => | ||
| 'vgv_ai uninstall --${ProjectSelection.projectFlag} ${root.path}', |
Member
There was a problem hiding this comment.
root.path goes into a command the user is told to copy, but it isn't quoted. A project under a path like ~/My Projects/app gives a command that fails. Quote the path.
Suggested change
| 'vgv_ai uninstall --${ProjectSelection.projectFlag} ${root.path}', | |
| "vgv_ai uninstall --${ProjectSelection.projectFlag} '${root.path}'", |
Member
|
/unicoder /address-review |
Contributor
Author
Co-authored-by: marcossevilla <marcossevilla@users.noreply.github.com>
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 #139. Part of #136.
What
uninstall --project [dir]now reverses whatinstall --projectrecorded in the project's.vgv_ai/manifest.json. That includes the plugin files copied under.vgv_ai/plugins/. Files the manifest doesn't record, such as the repo'sAGENTS.md, are never touched.How
--projectflag and scope resolution out ofInstallCommandinto aProjectSelectionmixin.installanduninstallnow use the same code (addProjectOption/selectScope).Scope.cleanupRoot(owner): New method onScopethat says where empty-directory cleanup stops.UserScopekeeps its previous behavior: the harness config directory, or the skills root for shared files.ProjectScopeuses the project root, so folders like.codexand.vgv_ai/pluginsare removed once they are empty.deleteEmptyDirectoriesnow takes aScope. A newdeleteEmptyAbovehelper replaces the private copy inInstallCommand, so both commands share it.ReportingManifestStore.savenow removes the manifest's folder (such as a project's.vgv_ai) once the manifest is deleted and the folder is empty. A folder that still holds other files is kept. If it can't be deleted, the command warns instead of failing.uninstall --project <dir>command to run.uninstall --projectfrom the "not installed yet" list.Tests
Added
--projecttests touninstall_command_test.dart:--checkchanging nothing..vgv_aiwhile it holds other files, and warning when it can't be deleted.AGENTS.mdstay untouched.The existing "shared skills kept" message assertion was updated for the new wording.