{"_id":"@8monkey/pi-session-gzip","_rev":"4-ccb18d713366727ce463bb25a861e9b0","name":"@8monkey/pi-session-gzip","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@8monkey/pi-session-gzip","version":"0.1.0","keywords":["pi","pi-extension","gzip","sessions"],"license":"MIT","_id":"@8monkey/pi-session-gzip@0.1.0","maintainers":[{"name":"heiwen","email":"h@8monkey.ai"},{"name":"turisanapo","email":"selvaggiodavide@hotmail.it"}],"homepage":"https://github.com/8monkey-ai/pi-session-gzip#readme","bugs":{"url":"https://github.com/8monkey-ai/pi-session-gzip/issues"},"pi":{"extensions":["./src/index.ts"]},"dist":{"shasum":"e456ce2590ec255016758edf0b66aea2647b2e94","tarball":"https://registry.npmjs.org/@8monkey/pi-session-gzip/-/pi-session-gzip-0.1.0.tgz","fileCount":6,"integrity":"sha512-d7pZBPvgRuFi/O6he3VpzqPdImqQ4QhFqBHcloRFdJBG3q+/LhjU1ZNFQoREcO5pVnrCAxxI2o/GTCDH7jwZIA==","signatures":[{"sig":"MEUCIQDHFPl/Tc9L03kGIuChaJkmAHV3zvCBlh+Iqt4MCzeS4wIgAlKwEnj7DmOwG4alaU+FoU6nPLD9RjilPljI5QYlXJI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10284},"type":"module","gitHead":"3ec33227b6ff4f3534b441d654606b26186bc3c0","scripts":{"test":"node --test"},"_npmUser":{"name":"turisanapo","email":"selvaggiodavide@hotmail.it"},"repository":{"url":"git+https://github.com/8monkey-ai/pi-session-gzip.git","type":"git"},"_npmVersion":"11.6.0","description":"Pi extension that gzips session files on shutdown and restores them on demand.","directories":{},"_nodeVersion":"24.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-session-gzip_0.1.0_1781823743106_0.6966807716646928","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@8monkey/pi-session-gzip","version":"0.1.1","keywords":["pi","pi-extension","gzip","sessions"],"license":"MIT","_id":"@8monkey/pi-session-gzip@0.1.1","maintainers":[{"name":"heiwen","email":"h@8monkey.ai"},{"name":"turisanapo","email":"selvaggiodavide@hotmail.it"}],"homepage":"https://github.com/8monkey-ai/pi-session-gzip#readme","bugs":{"url":"https://github.com/8monkey-ai/pi-session-gzip/issues"},"pi":{"extensions":["./src/index.ts"]},"dist":{"shasum":"60c28a4a840155a4512ce449fc21c9dc5e953428","tarball":"https://registry.npmjs.org/@8monkey/pi-session-gzip/-/pi-session-gzip-0.1.1.tgz","fileCount":6,"integrity":"sha512-Dspx1ySCFkfpgxKRjVV5xFZ0iaIu9VWEZqYVKHQn1xjQv7zQxuA4W+Z6lIXKDoXUHZPHyBHkIBLrtlxhcUXOwg==","signatures":[{"sig":"MEYCIQD7pSK0/yN0fFrmaC3AJhPpfUEaea5LPx5yjSHAMuzgAgIhANLqUzNO50CFpctnvGcz592T9nPgEOEHRy3iUIbLaPEX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10021},"type":"module","gitHead":"21c00ec7e134fafe725a93481092f2d788739361","scripts":{"test":"node --test"},"_npmUser":{"name":"turisanapo","email":"selvaggiodavide@hotmail.it"},"repository":{"url":"git+https://github.com/8monkey-ai/pi-session-gzip.git","type":"git"},"_npmVersion":"11.6.0","description":"Pi extension that gzips session files on shutdown and restores them on demand.","directories":{},"_nodeVersion":"24.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-session-gzip_0.1.1_1781824556749_0.26364811860633397","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@8monkey/pi-session-gzip","version":"0.1.2","keywords":["pi-package","pi","gzip","sessions"],"license":"MIT","_id":"@8monkey/pi-session-gzip@0.1.2","maintainers":[{"name":"heiwen","email":"h@8monkey.ai"},{"name":"turisanapo","email":"selvaggiodavide@hotmail.it"}],"homepage":"https://github.com/8monkey-ai/pi-session-gzip#readme","bugs":{"url":"https://github.com/8monkey-ai/pi-session-gzip/issues"},"pi":{"extensions":["./src/index.ts"]},"dist":{"shasum":"ff93dfc31e73875e9ee88c378bb85e4b15e054e1","tarball":"https://registry.npmjs.org/@8monkey/pi-session-gzip/-/pi-session-gzip-0.1.2.tgz","fileCount":6,"integrity":"sha512-u4u39KRYaYfRNA9lqj5hrerz/0oJlbWcUs4ebKc25j3J79v0qKpA9OdByFcDn98wF03gQ1ceTpOH/ljF4hvsXg==","signatures":[{"sig":"MEUCIDdP//iiBlYZZIlZkjpa1pMhG2i5akFwSGkmksbBkECkAiEAuUV/LoEdzxrU+RVE7VTEQ3KGopUFkmpCSj4SgYblBYs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9996},"type":"module","gitHead":"3181a3490d83c65c8b2dc3989dde243ab0ee19d9","scripts":{"test":"node --test"},"_npmUser":{"name":"turisanapo","email":"selvaggiodavide@hotmail.it"},"repository":{"url":"git+https://github.com/8monkey-ai/pi-session-gzip.git","type":"git"},"_npmVersion":"11.6.0","description":"Pi extension that gzips session files on shutdown and restores them on demand.","directories":{},"_nodeVersion":"24.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-session-gzip_0.1.2_1783512947870_0.633540806250755","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@8monkey/pi-session-gzip","version":"0.2.0","description":"Pi extension that gzips session files on shutdown and restores them on demand.","license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/8monkey-ai/pi-session-gzip.git"},"homepage":"https://github.com/8monkey-ai/pi-session-gzip#readme","bugs":{"url":"https://github.com/8monkey-ai/pi-session-gzip/issues"},"pi":{"extensions":["./src/index.ts"]},"publishConfig":{"access":"public"},"scripts":{"test":"node --test"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*"},"devDependencies":{"@types/node":"^22","typescript":"^5"},"keywords":["pi-package","pi","gzip","sessions"],"_id":"@8monkey/pi-session-gzip@0.2.0","gitHead":"19876a1f93af8cf3b9d59e501bf370beef6ae9f7","_nodeVersion":"24.9.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-YkluP9335bdGsA4Q5qZZJl1s7bcUFMfwVmM2pl6577uZlLrMOHQEfrWcXmTfplYSGJ26kGDG4B+1moNdIlHXkA==","shasum":"d333c3e6e85bd5f0daacd48b15a77293fbf00aa4","tarball":"https://registry.npmjs.org/@8monkey/pi-session-gzip/-/pi-session-gzip-0.2.0.tgz","fileCount":6,"unpackedSize":9674,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBuanZV3PajMSRaYL5d7CF0MAKuH4aun6X+Qpdg7QbciAiEA8JcE2y0ZtjC9K8jMmGqyVzizk0PS3z6LruWNQ5d6TeI="}]},"_npmUser":{"name":"turisanapo","email":"selvaggiodavide@hotmail.it"},"directories":{},"maintainers":[{"name":"heiwen","email":"h@8monkey.ai"},{"name":"turisanapo","email":"selvaggiodavide@hotmail.it"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-session-gzip_0.2.0_1784211834641_0.1906070530156967"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-18T23:02:22.930Z","modified":"2026-07-16T14:23:54.959Z","0.1.0":"2026-06-18T23:02:23.255Z","0.1.1":"2026-06-18T23:15:56.896Z","0.1.2":"2026-07-08T12:15:48.005Z","0.2.0":"2026-07-16T14:23:54.778Z"},"bugs":{"url":"https://github.com/8monkey-ai/pi-session-gzip/issues"},"license":"MIT","homepage":"https://github.com/8monkey-ai/pi-session-gzip#readme","keywords":["pi-package","pi","gzip","sessions"],"repository":{"type":"git","url":"git+https://github.com/8monkey-ai/pi-session-gzip.git"},"description":"Pi extension that gzips session files on shutdown and restores them on demand.","maintainers":[{"name":"heiwen","email":"h@8monkey.ai"},{"name":"turisanapo","email":"selvaggiodavide@hotmail.it"}],"readme":"# pi-session-gzip\n\nGzip Pi session files at rest. When a session closes it's compressed to a `.jsonl.gz` file and the plain file is removed; `/resume-compressed` restores and reopens it on demand. Plain JSONL stays Pi's working format — nothing changes during a live session.\n\nBuilt for anyone whose `~/.pi/agent/sessions/` has grown large and wants closed sessions to sit compressed without losing the ability to reopen them.\n\n## How it works\n\n- **Compress on shutdown.** Quitting Pi compresses the closed session's `session.jsonl` to `session.jsonl.gz` and removes the plain file.\n- **Restore on demand.** Run `/resume-compressed` to decompress and reopen the current session's `.gz` (falling back to this project's newest compressed session). Pass an id or path to restore a specific one.\n\nZero runtime dependencies. Pi loads the TypeScript directly, so there's no build step. Runs under Node or Bun.\n\n## Install\n\n```bash\npi install npm:@8monkey/pi-session-gzip\n```\n\n## Command\n\n| Command | Description |\n|---|---|\n| `/resume-compressed [id\\|path]` | Restore a compressed session and reopen it. With no argument, restores the current session's `.gz`, or this project's newest compressed session if there is none. Accepts a session id (exact or prefix) or a file path. |\n\n## Behaviour notes\n\n- Compresses on quit only; live sessions, reloads, and switches are left untouched.\n- Restoring is safe to repeat — running compress or restore twice is a no-op.\n- Ephemeral (`--no-session`) and empty sessions are skipped.\n- The `.gz` replaces the original at the same path (`session.jsonl` → `session.jsonl.gz`); the sessions layout is never reorganized.\n\n## Development\n\n```bash\nnode --test\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}