{"_id":"@burneikis/pi-copy-code","name":"@burneikis/pi-copy-code","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@burneikis/pi-copy-code","version":"1.0.0","description":"Pi coding-agent extension that copies fenced code blocks from recent assistant (and tool result) messages into the system clipboard.","keywords":["pi-package"],"license":"MIT","author":{"name":"burneikis"},"repository":{"type":"git","url":"git+https://github.com/burneikis/pi-copy-code.git"},"scripts":{"test":"tsx --test tests/*.test.ts"},"peerDependencies":{"@mariozechner/pi-coding-agent":"*"},"pi":{"extensions":["./index.ts"]},"devDependencies":{"tsx":"^4.21.0"},"gitHead":"3d8c7a0da36ea917306d1cec313c25935bcde1e1","_id":"@burneikis/pi-copy-code@1.0.0","bugs":{"url":"https://github.com/burneikis/pi-copy-code/issues"},"homepage":"https://github.com/burneikis/pi-copy-code#readme","_nodeVersion":"22.22.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-TGjZv94wGi2gHrriShaiCR+/8JIkUqZo8X15TaCogC4y2rc9rQL4RbILcf+OB4pmMeLFwskHF4krT3oiY+ASLg==","shasum":"f53b00085fbf33c33fd4e66421c1198607239cff","tarball":"https://registry.npmjs.org/@burneikis/pi-copy-code/-/pi-copy-code-1.0.0.tgz","fileCount":3,"unpackedSize":11306,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCzQ0zFnC70fHijlViW6JLR/jZFjoSi/5ONCZnvbRvVUAIgEQZNap5z31YYdo8higgSrW4NFTLrdQPpz23gePhliR4="}]},"_npmUser":{"name":"burneikis","email":"alexburneikis@gmail.com"},"directories":{},"maintainers":[{"name":"burneikis","email":"alexburneikis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-copy-code_1.0.0_1778794520958_0.8805217871709294"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-14T21:35:20.817Z","1.0.0":"2026-05-14T21:35:21.114Z","modified":"2026-05-14T21:35:21.313Z"},"maintainers":[{"name":"burneikis","email":"alexburneikis@gmail.com"}],"description":"Pi coding-agent extension that copies fenced code blocks from recent assistant (and tool result) messages into the system clipboard.","homepage":"https://github.com/burneikis/pi-copy-code#readme","keywords":["pi-package"],"repository":{"type":"git","url":"git+https://github.com/burneikis/pi-copy-code.git"},"author":{"name":"burneikis"},"bugs":{"url":"https://github.com/burneikis/pi-copy-code/issues"},"license":"MIT","readme":"# copy-code\n\nPi coding-agent extension that copies fenced code blocks from recent assistant\n(and tool result) messages into the system clipboard.\n\n## Triggers\n\n- Shortcut: `ctrl+shift+y` -> picker over recent code blocks\n- Command:  `/cc` -> picker\n- Command:  `/cc last` -> copy the most recent block\n- Command:  `/cc 2` -> copy the 2nd-most-recent block (1-based)\n- Command:  `/cc all` -> concatenate all blocks from the latest assistant message\n\nThe command is named `/cc` because `/copy` conflicts with a pi built-in\ninteractive command.\n\n## Install\n\n```sh\n# global (writes ~/.pi/agent/settings.json)\npi install https://github.com/burneikis/pi-copy-code\n\n# or project-local (writes .pi/settings.json)\npi install -l https://github.com/burneikis/pi-copy-code\n```\n\nTry it for a single run without installing:\n\n```sh\npi -e https://github.com/burneikis/pi-copy-code\n```\n\nAfter installing, `/reload` inside pi (or restart it).\n\nRemove with:\n\n```sh\npi remove https://github.com/burneikis/pi-copy-code\n```\n\n## Clipboard backends\n\nAuto-detected at session start. First match wins:\n\n- macOS: `pbcopy`\n- Linux Wayland: `wl-copy` (preferred when `WAYLAND_DISPLAY` is set)\n- Linux X11: `xclip`, then `xsel`\n- Windows / WSL: `clip.exe`\n\nIf none are found you'll see a one-time error notification when you trigger a copy.\n\n## Notes\n\n- Scans both assistant text content and tool-result text content (newest first).\n- Thinking content is ignored.\n- Picker shows up to 30 most recent blocks with `lang`, line count, and a one-line preview.\n","readmeFilename":"README.md","_rev":"1-94f8d4bf8260a4205fd0825988284bbd"}