From 7167f8d6511317efbc7f12555d0905794d3d1885 Mon Sep 17 00:00:00 2001 From: Elliot Taylor Date: Tue, 14 Jul 2026 15:23:25 +0200 Subject: [PATCH] Remove install.txt references; add Uninstalling section to AGENT-INSTALL.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit install.txt/uninstall.txt are being removed from patchstack.com (patchstack-website#350) — pre-user stage, nothing consumed them, and install.txt had drifted (claimed four subcommands while the CLI ships seven, including the guide command the install prompt runs). The guide CLI and bundled AGENT-INSTALL.md are the versioned sources of truth. Uninstall content lands in AGENT-INSTALL.md, which is always present at uninstall time because the package is still installed. Co-Authored-By: Claude Fable 5 --- AGENT-INSTALL.md | 15 ++++++++++++++- MAINTAINING.md | 2 +- README.md | 2 +- field-test/README.md | 2 +- src/cli.ts | 1 - 5 files changed, 17 insertions(+), 5 deletions(-) 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 `