{"_id":"@8monkey/pi-media","name":"@8monkey/pi-media","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@8monkey/pi-media","version":"0.1.0","description":"Pi extension that attaches local media files mentioned with @ to the request.","license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/8monkey-ai/pi-media.git"},"homepage":"https://github.com/8monkey-ai/pi-media#readme","bugs":{"url":"https://github.com/8monkey-ai/pi-media/issues"},"pi":{"extensions":["./src/index.ts"]},"publishConfig":{"access":"public"},"scripts":{"test":"node --test","typecheck":"tsc --noEmit"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*"},"devDependencies":{"@earendil-works/pi-coding-agent":"*","@types/node":"^22","typescript":"^5"},"keywords":["pi-package","pi","media","attachments","files"],"_id":"@8monkey/pi-media@0.1.0","gitHead":"e1a77fe1ebeff0e3dce7f74c4279e089697c8700","_nodeVersion":"24.9.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-Nb2WGz34sn1COLaOhNnumqTvo2OFhHaB2QVYjlvADCiG/LG1z7kXwHU+pR8qyy+D3rg2hNsDgT3hNXIQn9EpGQ==","shasum":"30f1e732ca060c9f1280c9d14f05a18b468037d5","tarball":"https://registry.npmjs.org/@8monkey/pi-media/-/pi-media-0.1.0.tgz","fileCount":6,"unpackedSize":9492,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBWJY8U21jwu86QiVWyOVWy3aHw8mQKArZuAMDvNX61UAiBhO7doMub3J1GvEr+aRIueeenjHUg7AP4dRFBWapibIg=="}]},"_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-media_0.1.0_1785784741352_0.5696626345334019"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-03T19:19:01.169Z","0.1.0":"2026-08-03T19:19:01.494Z","modified":"2026-08-03T19:19:01.774Z"},"maintainers":[{"name":"heiwen","email":"h@8monkey.ai"},{"name":"turisanapo","email":"selvaggiodavide@hotmail.it"}],"description":"Pi extension that attaches local media files mentioned with @ to the request.","homepage":"https://github.com/8monkey-ai/pi-media#readme","keywords":["pi-package","pi","media","attachments","files"],"repository":{"type":"git","url":"git+https://github.com/8monkey-ai/pi-media.git"},"bugs":{"url":"https://github.com/8monkey-ai/pi-media/issues"},"license":"MIT","readme":"# pi-media\n\nAttach local images, audio, video and PDFs to your messages with pi's `@` mention. `@report.pdf` reaches the model as a real attachment, instead of a path it has to open with the `read` tool.\n\n## Install\n\n```bash\npi install npm:@8monkey/pi-media\n```\n\n## Usage\n\n```\nwhat's wrong with this recording? @debug-session.mp3\ncompare @\"Q3 report.pdf\" with @q4-report.pdf\n```\n\nPaths resolve against the session's working directory. Quote paths that contain spaces, which is what pi's `@` autocomplete does for you.\n\nThe attachment is re-sent on every turn, so you can keep asking about the same file later in the conversation.\n\n## Supported files\n\n| Kind | Extensions |\n|---|---|\n| Image | `png` `jpg` `jpeg` `webp` `gif` `heic` `heif` |\n| Audio | `wav` `mp3` `aac` `flac` `ogg` `aiff` `aif` |\n| Video | `mp4` `mov` `webm` `mpeg` `mpg` `avi` `wmv` `flv` `3gp` |\n| Document | `pdf` |\n\n## Providers\n\nAttachments are sent today for models served through the [Hebo](https://hebo.ai/docs/gateway/attachments) gateway. On other providers, such as Anthropic direct, Bedrock or the Gemini API, the mention is passed along as text and nothing breaks.\n\nPlanned, in rough order: Gemini API and Vertex, Anthropic and Bedrock (images and PDFs only), OpenAI, OpenRouter.\n\n## Limits\n\n- A mention that doesn't point at an existing, non-empty file stays as you typed it.\n- Files over 20 MB are left as plain `@path` text. Host large media and reference it another way.\n- Errors from the provider, for instance an unsupported media kind or an oversized request, appear in the UI unchanged.\n\nNo runtime dependencies, no build step. Runs under Node and Bun.\n\n## Development\n\n```bash\nnode --test\nnpm run typecheck\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-e188e50b8fd93545abdacfd17edc824d"}