feat: mosaic uninstall (IUH-M01) #429
Reference in New Issue
Block a user
Delete Branch "feat/mosaic-uninstall"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mosaic uninstallcommand with--framework,--cli,--gateway,--all,--keep-data,--yes, and--dry-runflags~/.config/mosaic/.install-manifest.json(v1 schema, mode 0600) written on successful install for precise reversal; falls back to heuristic mode with warning when absent.mosaic-bak-*backups or removes managed copies), npmrc scope line removal, and gateway delegation via existingrunUninstalltools/install.sh --uninstallshell fallback for broken-CLI scenariosCloses #425
Test plan
mosaic uninstall --dry-runlists all mutations without changing anythingmosaic uninstall --framework --keep-dataremoves framework dir but preserves SOUL.md, USER.md, TOOLS.md, memory/mosaic uninstall --frameworkremoves entire ~/.config/mosaic/mosaic uninstall --cliruns npm uninstall -g @mosaicstack/mosaicmosaic uninstall --alldelegates gateway, reverses runtime assets, removes npmrc line, removes framework, uninstalls CLI.mosaic-bak-*exists it is restored and backup removedtools/install.sh --uninstallremoves framework + CLI + npmrc without needing the CLI binaryGenerated with Claude Code