@diegopetrucci/pi-confirm-destructive
v0.1.1
Published
A pi extension that confirms destructive session actions.
Maintainers
Readme
confirm-destructive
A small pi extension that asks for confirmation before destructive session actions.
This is adapted from the original confirm-destructive.ts example in earendil-works/pi-mono and kept basically the same.
What it checks
- clearing the current session
- switching sessions when the current session has user messages
- forking from an entry
Install
Standalone npm package
pi install npm:@diegopetrucci/pi-confirm-destructiveCollection package
pi install npm:@diegopetrucci/pi-extensionsGitHub package
pi install git:github.com/diegopetrucci/pi-extensionsThen reload pi:
/reloadNotes
- Hooks
session_before_switchandsession_before_fork. - Cancels the action when the user declines.
- Does nothing in non-interactive mode.
