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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user