install.sh: respect /ext disabled state on re-run

When linking, check for <name>.ts.off pointing into this repo and skip
relinking if found. Means a previously /ext-disabled extension stays
disabled across install.sh re-runs (e.g. when adding a new extension).

README + AGENTS updated with the new behavior.
This commit is contained in:
2026-05-07 20:37:11 +02:00
parent d2b2b3fb43
commit 9f38ba7797
3 changed files with 14 additions and 0 deletions
+1
View File
@@ -176,6 +176,7 @@ Registers `/ext` — a slash command that lists extensions in `~/.pi/agent/exten
**Notes:**
- Subdirectory-style extensions (`name/index.ts`) are listed read-only — v1 doesn't toggle them. Move the directory aside manually if needed.
- `install.sh --uninstall` cleans up both `.ts` and `.ts.off` symlinks pointing into this repo, so a disabled extension won't be left behind.
- Re-running `./install.sh` respects a prior `/ext` disable: if `<name>.ts.off` already exists, the installer leaves it alone instead of silently re-enabling.
## Adding a new extension