{"id":48905046,"url":"https://github.com/fitchmultz/pi-stash","last_synced_at":"2026-05-28T01:05:29.994Z","repository":{"id":349790306,"uuid":"1203906174","full_name":"fitchmultz/pi-stash","owner":"fitchmultz","description":"A pi extension for stashing draft messages and restoring them later.","archived":false,"fork":false,"pushed_at":"2026-05-23T19:54:36.000Z","size":438,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T21:25:30.001Z","etag":null,"topics":["drafts","extension","npm-package","pi","pi-extension","pi-package","stash","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@fitchmultz/pi-stash","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fitchmultz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-07T13:55:07.000Z","updated_at":"2026-05-23T19:51:25.000Z","dependencies_parsed_at":"2026-05-02T04:00:47.575Z","dependency_job_id":null,"html_url":"https://github.com/fitchmultz/pi-stash","commit_stats":null,"previous_names":["fitchmultz/pi-stash"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/fitchmultz/pi-stash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitchmultz%2Fpi-stash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitchmultz%2Fpi-stash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitchmultz%2Fpi-stash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitchmultz%2Fpi-stash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fitchmultz","download_url":"https://codeload.github.com/fitchmultz/pi-stash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitchmultz%2Fpi-stash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33589685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drafts","extension","npm-package","pi","pi-extension","pi-package","stash","typescript"],"created_at":"2026-04-16T19:13:02.126Z","updated_at":"2026-05-28T01:05:29.965Z","avatar_url":"https://github.com/fitchmultz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pi-stash\n\n`pi-stash` is a `pi` extension for parking an in-progress draft, sending something else, then restoring the draft afterward.\n\n## Requirements\n\n- `pi` running on Node.js `\u003e=22.19.0`\n- npm for local validation and publishing\n\n## Install\n\nFrom npm:\n\n```bash\npi install npm:@fitchmultz/pi-stash\n```\n\nFrom GitHub:\n\n```bash\npi install https://github.com/fitchmultz/pi-stash\n```\n\nFor local development:\n\n```bash\nnpm install\npi install .\n```\n\nThen run `/reload` inside `pi`.\n\n## Development and validation\n\n`pi` loads the extension from the source `.ts` files, but local tests are transpiled into `.tmp/test-dist/` before Node runs them so validation works on the declared Node 22.19 floor.\n\n```bash\nnpm run ci          # typecheck + transpiled tests\nnpm run test:node22 # explicit Node 22.19 compatibility check\nnpm run validate    # ci + Node 22.19 check + audit + pack dry-run\n```\n\n## Design\n\n- `Ctrl+Shift+S` stashes the current editor text and clears the editor.\n- `Ctrl+Shift+R` restores immediately when there is one stash, or opens a picker when there are multiple stashes.\n- The stash picker supports arrow-key navigation, `Enter` to restore, `Ctrl+D` to delete the selected stash, and `Ctrl+X` to clear all stashes.\n- When custom TUI overlays are unavailable (for example some RPC clients), restore falls back to a replace-editor confirmation for the latest stash, and `/stash-list` prints a latest-first summary instead of crashing.\n- Restores use `pasteToEditor()` when the editor already has text, so retrieval does not destroy whatever is currently in the box.\n- Drafts are kept as a small LIFO stack, so repeated stashes still work naturally.\n- The current stash stack is persisted in session metadata, so `/reload`, session resume, and `/tree` branch navigation keep drafts aligned with the active branch.\n- A footer status shows how many drafts are currently stashed.\n\n## Commands\n\n- `/stash` — stash the current editor text\n- `/stash some text` — stash explicit text exactly as provided, including leading or trailing whitespace\n- `/stash-list` — browse, restore, delete, or clear stashes\n\n## Why `Ctrl+Shift+R` for retrieval?\n\n`Ctrl+Shift+S` appears free in the current `pi` keybinding docs, and `Ctrl+Shift+R` is also currently unassigned and mnemonic for **restore**.\n\n## Usage flow\n\n1. Start typing a draft.\n2. Press `Ctrl+Shift+S`.\n3. Type and send the interrupting message.\n4. Press `Ctrl+Shift+R`.\n5. If needed, pick a different stash with the arrow keys or delete one with `Ctrl+D`.\n6. Keep going with the restored draft.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitchmultz%2Fpi-stash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitchmultz%2Fpi-stash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitchmultz%2Fpi-stash/lists"}