Install
Install with PiG
pig install npm:@jc4649/filechangesInstall with Pi
pi install npm:@jc4649/filechangesReview before installing
Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.
@jc4649/filechanges
Tracks files changed (modified/created) by pi via the built-in edit and write tools.
Fork notice: forked from
pi-configby amosblomqvist (MIT). Credit for the original filechanges extension goes to them; see LICENSE for both copyright lines.
Features
- Persistent log (stored in session as custom entries)
- Status line + widget listing changed files
/filechangesoverlay to inspect diffs/filechanges-acceptto clear the log (keep files)/filechanges-declineto revert logged changes (restore original contents / delete created files)
Usage
- Reload pi:
/reload - Make changes through pi (using
edit/write) - Run:
/filechangesto inspect/filechanges-acceptto accept (clear log)/filechanges-declineto decline (revert)
Non-interactive usage
If ctx.hasUI is false (print/json mode), accept/decline require explicit confirmation:
/filechanges-accept force/filechanges-decline force
Notes
- Only tracks changes performed through
editandwritetools. - To support “decline”, the extension stores the original file contents (before the first pi change) in the session file as a custom entry.