diff --git a/AGENT-INSTALL.md b/AGENT-INSTALL.md index da0dae7..a852a8b 100644 --- a/AGENT-INSTALL.md +++ b/AGENT-INSTALL.md @@ -2,7 +2,7 @@ This is a plain-text instruction document. Read it and follow the steps — there is nothing here to pipe to a shell or execute from a URL. -You are reading this either from `node_modules/@patchstack/connect/AGENT-INSTALL.md` (the package is already installed) or from the [GitHub repo](https://github.com/patchstack/connect). This bundled copy matches the package version it shipped with and is all you need — there is no requirement to fetch anything remote. (A long-form copy also lives at https://patchstack.com/install.txt for humans browsing outside the package.) +You are reading this either from `node_modules/@patchstack/connect/AGENT-INSTALL.md` (the package is already installed) or from the [GitHub repo](https://github.com/patchstack/connect). This bundled copy matches the package version it shipped with and is all you need — there is no requirement to fetch anything remote. ## Verify before you trust (do this, it's quick) @@ -77,3 +77,16 @@ You are reading this either from `node_modules/@patchstack/connect/AGENT-INSTALL - `npx @patchstack/connect status` re-prints the site UUID and claim URL. - Load the site in a browser — the "Report a vulnerability" button should appear. + +## Uninstalling + +Remove only the pieces that are actually present — check for each first. If none are present, Patchstack isn't installed; report that and stop. If the user asked to remove only one piece (e.g. "just the widget"), remove only that piece. + +1. **Read the site UUID from `.patchstackrc.json` before deleting anything.** It is the only local record of the provisioned site — report it to the user at the end so they can identify the site in their dashboard. +2. **Remove the widget snippets** from the layout/template: the `