{"_id":"@artale/pi-rewind","_rev":"2-5cd780ae40a2c5eb03f86d4aab99c45a","name":"@artale/pi-rewind","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@artale/pi-rewind","version":"1.0.0","keywords":["pi-package"],"author":{"name":"artale"},"license":"MIT","_id":"@artale/pi-rewind@1.0.0","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"homepage":"https://github.com/arosstale/pi-rewind#readme","bugs":{"url":"https://github.com/arosstale/pi-rewind/issues"},"pi":{"extensions":["src/extension.ts"]},"dist":{"shasum":"76604e4cf166a1be3d0e2f0d53f55513140b3254","tarball":"https://registry.npmjs.org/@artale/pi-rewind/-/pi-rewind-1.0.0.tgz","fileCount":3,"integrity":"sha512-0B7CJPBAm0aPAiCsn7CIiO3cMw/EiL7itZQ1hgyZFCkOpA8WonM/Popl/WhfynF3oNNdd0H4OMI2UI9e4v8d1A==","signatures":[{"sig":"MEUCIQD1GEAjGOnFNcZSrLSdy+hREdB777YhQo7oKxDrpPkJewIgVAZaHbwOyRpCuau6UvURhShOe718kGp901kvZ0Ab7gc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10340},"gitHead":"775f40f1c6ddc341480687f4db800a24e78a5a8a","_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"repository":{"url":"git+https://github.com/arosstale/pi-rewind.git","type":"git"},"_npmVersion":"10.9.4","description":"Checkpoint and rewind for Pi. Auto-snapshot before edits, /rewind to restore with diff preview.","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-rewind_1.0.0_1773454065536_0.27371267803249455","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@artale/pi-rewind","version":"1.0.1","description":"Checkpoint and rewind for Pi. Auto-snapshot before edits, /rewind to restore with diff preview.","keywords":["pi-package"],"license":"MIT","author":{"name":"artale"},"repository":{"type":"git","url":"git+https://github.com/arosstale/pi-rewind.git"},"pi":{"extensions":["src/extension.ts"]},"peerDependencies":{"@mariozechner/pi-coding-agent":"*"},"_id":"@artale/pi-rewind@1.0.1","gitHead":"e4d804997b5df89b4d1a6c3bdbe4104e7be2c03c","bugs":{"url":"https://github.com/arosstale/pi-rewind/issues"},"homepage":"https://github.com/arosstale/pi-rewind#readme","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-Tu1xk5gIN4UUclyxXPGPNqFVHQJrN2KRBsxOfGFlA1xaCkysUjNxbGNZoKXACuohfO49aAHzhdJTR2l2rk6wEg==","shasum":"5445ba9ce0d1168af3674be7802650048886f9b3","tarball":"https://registry.npmjs.org/@artale/pi-rewind/-/pi-rewind-1.0.1.tgz","fileCount":3,"unpackedSize":10392,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAPnd6T4syMQ0DERvHeoqJPhHaOIYAHseddp062bW4R7AiBhCZ3MOoUjczHptqEh88vOZDG2s4VpmoT4gacDZ84b6Q=="}]},"_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"directories":{},"maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-rewind_1.0.1_1773505902762_0.4134853628871482"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-14T02:07:45.403Z","modified":"2026-03-14T16:31:43.324Z","1.0.0":"2026-03-14T02:07:45.683Z","1.0.1":"2026-03-14T16:31:42.900Z"},"bugs":{"url":"https://github.com/arosstale/pi-rewind/issues"},"author":{"name":"artale"},"license":"MIT","homepage":"https://github.com/arosstale/pi-rewind#readme","keywords":["pi-package"],"repository":{"type":"git","url":"git+https://github.com/arosstale/pi-rewind.git"},"description":"Checkpoint and rewind for Pi. Auto-snapshot before edits, /rewind to restore with diff preview.","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"readme":"# pi-rewind\n\nCheckpoint and rewind for Pi. Auto-snapshots files before the agent edits them. `/rewind` to restore with diff preview.\n\n## Install\n\n```bash\npi install npm:@artale/pi-rewind\n```\n\n## How it works\n\nEvery time Pi edits or writes a file, pi-rewind saves the original content first. If the agent breaks something, you rewind.\n\n```\nAgent edits 3 files → something breaks →\n/rewind list        → see all checkpoints\n/rewind diff 5      → see what changed\n/rewind restore 5   → file restored\n```\n\n## Commands\n\n```\n/rewind list              — show all checkpoints\n/rewind diff <id>         — show diff for a checkpoint\n/rewind restore <id>      — restore a file to checkpoint\n/rewind restore-all       — restore ALL files to original state\n/rewind clear             — clear all checkpoints\n```\n\n## Tools\n\n- `rewind_list` — list checkpoints\n- `rewind_diff` — show diff between checkpoint and current state\n- `rewind_restore` — restore a file (creates pre-rewind checkpoint first)\n\n## Features\n\n- Auto-checkpoints on every edit and write\n- Stack-based — multiple undo levels (up to 100)\n- Pre-rewind checkpoint — restoring creates a new checkpoint so you can undo the undo\n- Simple line-level diff preview\n- Groups by file — restore-all reverts to original state per file\n- Zero dependencies\n\n## License\n\nMIT\n","readmeFilename":"README.md"}