{"_id":"@bytetrue/pi-ask-user","name":"@bytetrue/pi-ask-user","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bytetrue/pi-ask-user","version":"0.1.0","description":"Pi extension that adds OpenCode-compatible interactive question tool.","keywords":["pi-package","pi-extension","ask-user","question"],"type":"module","license":"MIT","author":{"name":"byte"},"repository":{"type":"git","url":"git+https://github.com/ByteTrue/pi-package-mono.git","directory":"packages/pi-ask-user"},"publishConfig":{"access":"public"},"pi":{"extensions":["./src/index.ts"]},"scripts":{"test":"vitest run","typecheck":"tsc --noEmit"},"peerDependencies":{"@earendil-works/pi-coding-agent":">=0.79.10","@earendil-works/pi-tui":"*","typebox":"*"},"devDependencies":{"@types/node":"^22.0.0","typescript":"^5.0.0","vitest":"^3.0.0"},"gitHead":"aabff4d80017500803f573b51c7cfb05c4582219","_id":"@bytetrue/pi-ask-user@0.1.0","bugs":{"url":"https://github.com/ByteTrue/pi-package-mono/issues"},"homepage":"https://github.com/ByteTrue/pi-package-mono#readme","_nodeVersion":"24.15.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-Z5qSGlKgpp0xugEHmC+4W20ShOxwTxuQuDHiZdNb4m2y3n35hoiGMKg22LemTjjOyiCyiRwepxoO6cFT2yzIJA==","shasum":"a8ecd7f68db2e4d3935b2f74ee1670202a6e69cc","tarball":"https://registry.npmjs.org/@bytetrue/pi-ask-user/-/pi-ask-user-0.1.0.tgz","fileCount":3,"unpackedSize":17922,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD7552TTH+PsBK9C/XBUzq7hO8ykDWoU2L8TB1/UHnhkQIgHqi097r3w11pe9oDmXBV7P81jepqvFy10S/DGnOh410="}]},"_npmUser":{"name":"bytetrue","email":"bytetrue@outlook.com"},"directories":{},"maintainers":[{"name":"bytetrue","email":"bytetrue@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-ask-user_0.1.0_1785782725940_0.6505979745802306"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-03T18:45:25.851Z","0.1.0":"2026-08-03T18:45:26.100Z","modified":"2026-08-03T18:45:26.249Z"},"maintainers":[{"name":"bytetrue","email":"bytetrue@outlook.com"}],"description":"Pi extension that adds OpenCode-compatible interactive question tool.","homepage":"https://github.com/ByteTrue/pi-package-mono#readme","keywords":["pi-package","pi-extension","ask-user","question"],"repository":{"type":"git","url":"git+https://github.com/ByteTrue/pi-package-mono.git","directory":"packages/pi-ask-user"},"author":{"name":"byte"},"bugs":{"url":"https://github.com/ByteTrue/pi-package-mono/issues"},"license":"MIT","readme":"# @bytetrue/pi-ask-user\n\nAdds the OpenCode-compatible `question` tool to Pi.\n\nThe tool lets the model ask one or more structured questions during execution:\n\n- `questions` is an array of `{ question, header, options, multiple? }`.\n- Each option is `{ label, description }`.\n- A `Type your own answer` option is added automatically.\n- Single-choice questions submit immediately; multiple questions and multi-select questions use a Confirm page.\n- Answers returned to the model are arrays of selected labels, using OpenCode's exact output format.\n- Escape dismisses the question and fails the tool call instead of inventing an answer.\n\n## Install\n\n```bash\npi install npm:@bytetrue/pi-ask-user\n```\n\nOr from this checkout:\n\n```bash\npi install /absolute/path/to/pi-package-mono/packages/pi-ask-user\n```\n\nThe interactive question UI is available in Pi's TUI mode. The tool fails explicitly in print and JSON modes because there is no user input surface.\n\n## Development\n\n```bash\nnpm --workspace @bytetrue/pi-ask-user test\nnpm --workspace @bytetrue/pi-ask-user run typecheck\n```\n","readmeFilename":"README.md","_rev":"1-ab004f6dd9cc90383ba454ac8578ed4e"}