{"_id":"@anton-kochev/pithos.answer","_rev":"2-34751a555c1701d63d4641e7df016d35","name":"@anton-kochev/pithos.answer","dist-tags":{"bootstrap":"0.0.0","latest":"0.2.0"},"versions":{"0.0.0":{"name":"@anton-kochev/pithos.answer","version":"0.0.0","keywords":["pi-package","pi-extension","pithos","questions","answers","prompt-generator"],"license":"MIT","_id":"@anton-kochev/pithos.answer@0.0.0","maintainers":[{"name":"anton-kochev","email":"anton.kochev@gmail.com"}],"homepage":"https://github.com/anton-kochev/pithos-kit#readme","bugs":{"url":"https://github.com/anton-kochev/pithos-kit/issues"},"pi":{"extensions":["./extensions"]},"dist":{"shasum":"c5a2636be4d360782a618e629a8e86c27eba7608","tarball":"https://registry.npmjs.org/@anton-kochev/pithos.answer/-/pithos.answer-0.0.0.tgz","fileCount":3,"integrity":"sha512-aJwlT4TyXbBYVV9MBJAXft6sXCEBfJG0nFEb/Ci8OnRXjaynTvEGXoWDBlVvaZGiMC5pW4MuxQgB+aq7EBmOoQ==","signatures":[{"sig":"MEQCID++1CDcr0d8T/I5GlE8kM+fPjNJya9nI51vhpjwcG+gAiAGp+MUWp8GTWIwbn1mJkf89gBYcDcYtuG6ZmxBImLKnA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23487},"type":"module","_npmUser":{"name":"anton-kochev","email":"anton.kochev@gmail.com"},"repository":{"url":"git+https://github.com/anton-kochev/pithos-kit.git","type":"git","directory":"pithos.answer"},"_npmVersion":"10.9.2","description":"Interactive Q&A extraction and answer submission for Pi assistant responses.","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"typebox":"*","@earendil-works/pi-ai":"*","@earendil-works/pi-tui":"*","@earendil-works/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pithos.answer_0.0.0_1786363662675_0.9374679536149251","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@anton-kochev/pithos.answer","version":"0.2.0","description":"Interactive Q&A extraction and answer submission for Pi assistant responses.","keywords":["pi-package","pi-extension","pithos","questions","answers","prompt-generator"],"license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/anton-kochev/pithos-kit.git","directory":"pithos.answer"},"publishConfig":{"access":"public"},"peerDependencies":{"@earendil-works/pi-ai":"*","@earendil-works/pi-coding-agent":"*","@earendil-works/pi-tui":"*","typebox":"*"},"pi":{"extensions":["./extensions"]},"gitHead":"14e32cc67fc85c72b7588bf1c31b78361f1eaa8c","_id":"@anton-kochev/pithos.answer@0.2.0","bugs":{"url":"https://github.com/anton-kochev/pithos-kit/issues"},"homepage":"https://github.com/anton-kochev/pithos-kit#readme","_nodeVersion":"24.18.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-REFj2y5JasZXX7KBMggA0BlNumOM7VMtn7zqJHttj6JVvqb6zbALLJybuLZf2fHM1vKx66tYYto1siN9OMO7yw==","shasum":"58f7156aa45c3f85f79d1c32210a8215d9a4d891","tarball":"https://registry.npmjs.org/@anton-kochev/pithos.answer/-/pithos.answer-0.2.0.tgz","fileCount":3,"unpackedSize":23487,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anton-kochev%2fpithos.answer@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDou7bv8eptxS54kqTWFUq1loESeP3Q4UrdxYII5nSPFQIhAK3clP23z53t7qJLVFHtsbibhxqVFBOURnXqGbV6GaZH"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:58d83ffd-0e01-438d-b90f-b9729cbfd8b9"}},"directories":{},"maintainers":[{"name":"anton-kochev","email":"anton.kochev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pithos.answer_0.2.0_1786376228773_0.03187192345770029"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-10T12:07:42.186Z","modified":"2026-08-10T15:37:09.248Z","0.0.0":"2026-08-10T12:07:42.820Z","0.2.0":"2026-08-10T15:37:08.908Z"},"bugs":{"url":"https://github.com/anton-kochev/pithos-kit/issues"},"license":"MIT","homepage":"https://github.com/anton-kochev/pithos-kit#readme","keywords":["pi-package","pi-extension","pithos","questions","answers","prompt-generator"],"repository":{"type":"git","url":"git+https://github.com/anton-kochev/pithos-kit.git","directory":"pithos.answer"},"description":"Interactive Q&A extraction and answer submission for Pi assistant responses.","maintainers":[{"name":"anton-kochev","email":"anton.kochev@gmail.com"}],"readme":"# answer\n\nInteractive Q&A extraction for pi assistant responses.\n\n`answer` adds an `/answer` command that turns questions from the last assistant response into an interactive answer form, then submits the compiled answers back to the agent.\n\nIt demonstrates the prompt-generator pattern with custom TUI:\n\n1. `/answer` gets the last assistant message.\n2. A spinner is shown while questions are extracted as structured JSON.\n3. A custom TUI lets you navigate questions and write answers.\n4. When done, the compiled answers are submitted as a new user message.\n\n## Install\n\n```bash\npi install npm:@anton-kochev/pithos.answer\n```\n\nInside a [pithos](https://github.com/anton-kochev/pithos) container this extension is preinstalled — `/answer` works out of the box with no install step.\n\nFor local development from this repository:\n\n```bash\npi install ./pithos.answer\npi install ./pithos.answer -l   # project-local\n```\n\nTemporary test run:\n\n```bash\npi -e ./pithos.answer\n```\n\n## Usage\n\nAfter an assistant response that contains questions, run:\n\n```text\n/answer\n```\n\nKeys in the TUI:\n\n- `Tab`: go to next question\n- `Shift+Tab`: go to previous question\n- `Up` / `Down`: focus and navigate options when a question has them\n- `Space` / `Enter`: select the focused option (`single` or `multiple`, depending on the question)\n- Long free-text answers wrap across multiple lines\n- `Shift+Enter` / `Alt+Enter`: insert a newline in the free-text answer\n- `Left` / `Right`: move within the free-text answer\n- `Enter`: save and go next when options are not focused; on the last question, submit if complete\n- `Ctrl+S`: submit when all questions are answered or have selected options\n- `Esc`: cancel\n\n## Notes\n\nThis package imports pi runtime packages as peer dependencies:\n\n- `@earendil-works/pi-ai`\n- `@earendil-works/pi-coding-agent`\n- `@earendil-works/pi-tui`\n- `typebox`\n\nDo not bundle those dependencies; pi provides them at runtime.\n","readmeFilename":"README.md"}