{"_id":"@atharva-again/pi-resume-opencode","_rev":"2-9f02d25e62d1b7c8c9f72e718e20117e","name":"@atharva-again/pi-resume-opencode","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@atharva-again/pi-resume-opencode","version":"0.1.0","keywords":["pi-package","pi-extension","opencode","coding-agent"],"author":{"name":"Atharva Verma"},"license":"MIT","_id":"@atharva-again/pi-resume-opencode@0.1.0","maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"homepage":"https://github.com/atharva-again/pi/tree/main/packages/coding-agent/examples/extensions/resume-opencode#readme","bugs":{"url":"https://github.com/atharva-again/pi/issues"},"pi":{"extensions":["./index.ts"]},"dist":{"shasum":"c9c39e4f24cfb745a3c092125841cf9ed68ce992","tarball":"https://registry.npmjs.org/@atharva-again/pi-resume-opencode/-/pi-resume-opencode-0.1.0.tgz","fileCount":4,"integrity":"sha512-JDM0AMYPP+B7JZOKqiCVqDH5nnsyCgmV/Oy1r/JaaV1B4Lt7VlpCp7bJ/sHKi0aWOVi8HHGkDVBR5VGlUvevuw==","signatures":[{"sig":"MEUCIGmIScVgfN4GUC+vlOX6gZScWPYKBiIALhDxSpmsb06wAiEA1aR1Pw508XqhXZVDhmMmhjaEt4eh9OJM+8EyeUZKM20=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40353},"type":"module","engines":{"node":">=22.19.0"},"_npmUser":{"name":"atharva-again","email":"atharva.verma18@gmail.com"},"repository":{"url":"git+https://github.com/atharva-again/pi.git","type":"git","directory":"packages/coding-agent/examples/extensions/resume-opencode"},"_npmVersion":"11.13.0","description":"Pi extension for safely resuming OpenCode sessions","directories":{},"_nodeVersion":"24.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@earendil-works/pi-tui":"*","@earendil-works/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-resume-opencode_0.1.0_1784197012483_0.40413119930413677","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@atharva-again/pi-resume-opencode","version":"0.2.0","description":"Pi extension for safely resuming OpenCode sessions","author":{"name":"Atharva Verma"},"type":"module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/atharva-again/pi.git","directory":"packages/coding-agent/examples/extensions/resume-opencode"},"homepage":"https://github.com/atharva-again/pi/tree/main/packages/coding-agent/examples/extensions/resume-opencode#readme","bugs":{"url":"https://github.com/atharva-again/pi/issues"},"keywords":["pi-package","pi-extension","opencode","coding-agent"],"pi":{"extensions":["./index.ts"]},"engines":{"node":">=22.19.0"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*","@earendil-works/pi-tui":"*"},"publishConfig":{"access":"public"},"_id":"@atharva-again/pi-resume-opencode@0.2.0","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-wq3e98J+sOJlyLVGpzJMlXibVUhAsGqBhckuHr74XKudQihbsIy8Nf0EaWjzkwwWp4zZ3qcvWCCXqossPUObcQ==","shasum":"5af154be24715c33f44759717bdadae5f68c1b88","tarball":"https://registry.npmjs.org/@atharva-again/pi-resume-opencode/-/pi-resume-opencode-0.2.0.tgz","fileCount":4,"unpackedSize":36270,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCBbPb3LpB1Teicp/g8gNPzbCJ4b7mSYUYp501GYblZ3AIhAMwqKg9PyoLTVe6CIsZc3zELdbb2xcnfQdvx8qSISjg4"}]},"_npmUser":{"name":"atharva-again","email":"atharva.verma18@gmail.com"},"directories":{},"maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-resume-opencode_0.2.0_1784205474486_0.3946655435005446"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-16T10:16:52.126Z","modified":"2026-07-16T12:37:54.787Z","0.1.0":"2026-07-16T10:16:52.627Z","0.2.0":"2026-07-16T12:37:54.613Z"},"bugs":{"url":"https://github.com/atharva-again/pi/issues"},"author":{"name":"Atharva Verma"},"license":"MIT","homepage":"https://github.com/atharva-again/pi/tree/main/packages/coding-agent/examples/extensions/resume-opencode#readme","keywords":["pi-package","pi-extension","opencode","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/atharva-again/pi.git","directory":"packages/coding-agent/examples/extensions/resume-opencode"},"description":"Pi extension for safely resuming OpenCode sessions","maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"readme":"# @atharva-again/pi-resume-opencode\n\nContinue an OpenCode conversation in Pi without copying context by hand.\n\n`/resume-opencode` imports an OpenCode session as native Pi history while keeping foreign reasoning, tool calls, tool results, attachments, and failed output out of the model context.\n\n## Demo\n\n<img width=\"726\" height=\"404\" alt=\"pi-resume-opencode\" src=\"https://github.com/user-attachments/assets/a980635a-ca48-4ade-8673-0aa87008be6c\" />\n\n## Install\n\n```bash\npi install npm:@atharva-again/pi-resume-opencode\n```\n\nRequirements:\n\n- Pi 0.80.7 or newer\n- The `opencode` CLI available on `PATH`\n- An existing OpenCode database\n\nThe extension has been tested with OpenCode 1.17.20.\n\n## Use\n\nRun the command from the project whose sessions you want to browse:\n\n```text\n/resume-opencode\n```\n\nThe picker starts with OpenCode sessions from Pi's current directory.\n\n- Press Tab to switch between **Current Directory** and **All** sessions.\n- Type to search by title, directory, or session ID.\n- Select a session to import it into a new native Pi session.\n- Press Escape while discovering or exporting to cancel.\n\nIf you already know the full OpenCode session ID, skip the picker:\n\n```text\n/resume-opencode ses_abc123\n```\n\nImporting from another directory requires confirmation. Pi keeps its current working directory rather than switching to the source directory.\n\n## What gets imported\n\nOnly deterministic conversation text is added to Pi's model context:\n\n- Real user text\n- Completed, non-error assistant text\n\nThe following OpenCode data is deliberately excluded:\n\n- Reasoning\n- Tool calls and tool results\n- System prompts\n- Attachments and file contents\n- Synthetic or ignored text\n- Compaction summaries\n- Errored or incomplete assistant responses\n\nThe result is a Pi session that appears as recent in `/resume` and can be continued with the active Pi model.\n\n## Security\n\nThe extension uses the installed OpenCode CLI instead of reading or modifying OpenCode's SQLite database directly.\n\n- Discovery uses fixed SQL and fixed command arguments.\n- Exported transcripts are captured in an owner-only temporary file and deleted after reading.\n- Foreign tools and tool results are never recreated as executable Pi history.\n- Exports have no timeout or size cap; interactive exports can still be cancelled with Escape.\n\n## Local development\n\nLoad the extension directly from this directory:\n\n```bash\npi -e ./index.ts\n```\n\nSource is maintained in the [`atharva-again/pi`](https://github.com/atharva-again/pi/tree/main/packages/coding-agent/examples/extensions/resume-opencode) monorepo.\n","readmeFilename":"README.md"}