{"_id":"@0xkobold/pi-suggest","_rev":"5-d25313c8014d6ed09d898fab03393f13","name":"@0xkobold/pi-suggest","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"@0xkobold/pi-suggest","version":"0.1.0","keywords":["pi-package","suggestions","intent","context-aware"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-suggest@0.1.0","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-suggest#readme","bugs":{"url":"https://github.com/0xKobold/pi-suggest/issues"},"pi":{"extensions":["./dist/index.js"]},"dist":{"shasum":"61a35c6d7124f1c41c7626758bf83f0252194d68","tarball":"https://registry.npmjs.org/@0xkobold/pi-suggest/-/pi-suggest-0.1.0.tgz","fileCount":37,"integrity":"sha512-8uPo4OwFgZVb+tr9xIw8dZq6gHqfORxBJ3+xY7btZCI5ikzsjb87lrNHdKE297Mc5VZgqTw3/Slu16f4xhy07Q==","signatures":[{"sig":"MEYCIQCe/4/qL8XMEEawpt5QrY60SxgSbL9YVjKOcavAFQUh4AIhAOsbAjykHFtfkrAloVxNmqq4x22HNGU1VqNOaD4X7xee","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":220851},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"411c41538efe2e062cbe76e80be3bec4642395af","scripts":{"test":"bun test","build":"tsc || echo 'Building...'"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-suggest.git","type":"git"},"_npmVersion":"9.2.0","description":"Context-aware suggestion engine for pi-coding-agent","directories":{},"_nodeVersion":"20.19.2","dependencies":{"zod":"^3.25.0"},"_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.2.0","@types/bun":"^1.2.0","@types/node":"^20.19.37"},"peerDependencies":{"@sinclair/typebox":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-suggest_0.1.0_1774370688960_0.3602475073639779","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@0xkobold/pi-suggest","version":"0.2.0","keywords":["pi-package","suggestions","intent","context-aware"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-suggest@0.2.0","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-suggest#readme","bugs":{"url":"https://github.com/0xKobold/pi-suggest/issues"},"pi":{"extensions":["./dist/index.js"]},"dist":{"shasum":"f62e843cc6fcd45dae26af7691b96ec8e1963d74","tarball":"https://registry.npmjs.org/@0xkobold/pi-suggest/-/pi-suggest-0.2.0.tgz","fileCount":46,"integrity":"sha512-+vgnz1M5PoHRbOhUuBOisBJBIw3E/nE0qJuISmS/F489gN3r8pcg1SGyCp3K9b00RaFhdaoJ4FKJ4x5hs/uzWw==","signatures":[{"sig":"MEUCIQDGkKSlR+IHzKIfD4twiN50Vd46vIZ1noTB3nBhD2IqhAIgYsiUvbbA/ca5dkVDFo9hpKkFeuXQtHTULWJ9sgciC1o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":266274},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"411c41538efe2e062cbe76e80be3bec4642395af","scripts":{"test":"bun test","build":"tsc || echo 'Building...'"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-suggest.git","type":"git"},"_npmVersion":"9.2.0","description":"Context-aware suggestion engine for pi-coding-agent","directories":{},"_nodeVersion":"20.19.2","dependencies":{"zod":"^3.25.0"},"_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.2.0","@types/bun":"^1.2.0","@types/node":"^20.19.37"},"peerDependencies":{"@sinclair/typebox":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-suggest_0.2.0_1774373142020_0.06800217840321521","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@0xkobold/pi-suggest","version":"0.3.0","keywords":["pi-package","suggestions","intent","context-aware"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-suggest@0.3.0","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-suggest#readme","bugs":{"url":"https://github.com/0xKobold/pi-suggest/issues"},"pi":{"extensions":["./dist/index.js"]},"dist":{"shasum":"f1536df2b29214e7d604c0878ce88fbb7a08c067","tarball":"https://registry.npmjs.org/@0xkobold/pi-suggest/-/pi-suggest-0.3.0.tgz","fileCount":56,"integrity":"sha512-9310DP5mh84OHgpwlo0WDloFvlewVZ8NkYn8zlW3K3N6GozUMLPS7XkF9m0TS3d1Bjrjvc5tWLck8bR1UfkWog==","signatures":[{"sig":"MEYCIQDZj6QwehxKO9UrlXgwZbgiDfMqFp6eU7lo3rWzhoX/xAIhALqN7HOOWEORT3GaRSpmUsGP8fM9JB9sI9ShMgtocIvc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":289709},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"411c41538efe2e062cbe76e80be3bec4642395af","scripts":{"test":"bun test","build":"tsc || echo 'Building...'"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-suggest.git","type":"git"},"_npmVersion":"9.2.0","description":"Context-aware suggestion engine for pi-coding-agent","directories":{},"_nodeVersion":"20.19.2","dependencies":{"zod":"^3.25.0"},"_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.2.0","@types/bun":"^1.2.0","@types/node":"^20.19.37"},"peerDependencies":{"@sinclair/typebox":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-suggest_0.3.0_1774377281902_0.18017178900216146","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@0xkobold/pi-suggest","version":"0.4.0","keywords":["pi-package","suggestions","intent","context-aware"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-suggest@0.4.0","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-suggest#readme","bugs":{"url":"https://github.com/0xKobold/pi-suggest/issues"},"pi":{"extensions":["./dist/index.js"]},"dist":{"shasum":"774b588f922201005f205a7f2e77d9deedc4f92c","tarball":"https://registry.npmjs.org/@0xkobold/pi-suggest/-/pi-suggest-0.4.0.tgz","fileCount":47,"integrity":"sha512-Hoe9WCIq9u9p/ymgZa7fH8Gi1qd+GJeCCIKLmoD/4yMURweZRN208T4o1rvft3xigrpfjgxnOc+VkO7s5ilSGA==","signatures":[{"sig":"MEUCIFPfZFbNa9dyCcgNf/HZXSgxMHs3gTLRbTTlRVYwFah7AiEAkhLSdfBUcLV9J6OKseiT3k98WnoR3PalToPJKWUz4Pw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":213728},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"411c41538efe2e062cbe76e80be3bec4642395af","scripts":{"test":"bun test","build":"tsc || echo 'Building...'"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-suggest.git","type":"git"},"_npmVersion":"9.2.0","description":"Context-aware suggestion engine for pi-coding-agent","directories":{},"_nodeVersion":"20.19.2","dependencies":{"zod":"^3.25.0"},"_hasShrinkwrap":false,"devDependencies":{"bun-types":"^1.2.0","@types/bun":"^1.2.0","@types/node":"^20.19.37"},"peerDependencies":{"@sinclair/typebox":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-suggest_0.4.0_1774378686368_0.30973248284224875","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@0xkobold/pi-suggest","version":"0.5.0","description":"Context-aware suggestion engine for pi-coding-agent","keywords":["pi-package","suggestions","intent","context-aware"],"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc || echo 'Building...'","test":"bun test"},"dependencies":{"zod":"^3.25.0"},"devDependencies":{"@types/node":"^20.19.37","@types/bun":"^1.2.0","bun-types":"^1.2.0"},"peerDependencies":{"@mariozechner/pi-coding-agent":"*","@sinclair/typebox":"*"},"pi":{"extensions":["./dist/index.js"]},"repository":{"type":"git","url":"git+https://github.com/0xKobold/pi-suggest.git"},"author":{"name":"0xKobold"},"license":"MIT","gitHead":"411c41538efe2e062cbe76e80be3bec4642395af","bugs":{"url":"https://github.com/0xKobold/pi-suggest/issues"},"homepage":"https://github.com/0xKobold/pi-suggest#readme","_id":"@0xkobold/pi-suggest@0.5.0","_nodeVersion":"20.19.2","_npmVersion":"9.2.0","dist":{"integrity":"sha512-s6Qx0SC+74VHb4BvkhsXOS37bH12NVQY9kW4mmGI0wpPGwJ7hTV5iE0SEcymIiqwVVXCc3YJsmbukQyiAx2ewA==","shasum":"00eee54fbdbbef0f47fbe39d6410a5d96edecb27","tarball":"https://registry.npmjs.org/@0xkobold/pi-suggest/-/pi-suggest-0.5.0.tgz","fileCount":14,"unpackedSize":111871,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDAu2u4k1Rcv9GKlfXEFVA4/yozkw79JXbSyerTU8EBvAiEAyLh/bfyFe9xZh/r/3Ld0U09XMyCN/B5+ruD9/WOHOXA="}]},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"directories":{},"maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-suggest_0.5.0_1774378717995_0.8291215753542609"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-24T16:44:48.866Z","modified":"2026-03-24T18:58:38.239Z","0.1.0":"2026-03-24T16:44:49.136Z","0.2.0":"2026-03-24T17:25:42.172Z","0.3.0":"2026-03-24T18:34:42.050Z","0.4.0":"2026-03-24T18:58:06.528Z","0.5.0":"2026-03-24T18:58:38.121Z"},"bugs":{"url":"https://github.com/0xKobold/pi-suggest/issues"},"author":{"name":"0xKobold"},"license":"MIT","homepage":"https://github.com/0xKobold/pi-suggest#readme","keywords":["pi-package","suggestions","intent","context-aware"],"repository":{"type":"git","url":"git+https://github.com/0xKobold/pi-suggest.git"},"description":"Context-aware suggestion engine for pi-coding-agent","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"readme":"# @0xkobold/pi-suggest\n\nGhost text prompt suggester for pi-coding-agent. Forked from @guwidoe/pi-prompt-suggester architecture.\n\n## Features\n\n- 👻 **Ghost Text** - Suggestions appear inline in the editor as ghost/dim text\n- ⌨️ **Space to Accept** - Press Space on empty editor to accept suggestion\n- ✏️ **Type to Override** - Any keypress hides ghost and types normally\n- 🔄 **Auto-Generate** - Suggestions generated after each agent response\n\n## Install\n\n```bash\n# Global install\npi install npm:@0xkobold/pi-suggest\n\n# Project-local install\npi install -l npm:@0xkobold/pi-suggest\n```\n\n## Usage\n\nAfter an assistant completion, the extension suggests the next user prompt as ghost text in the editor.\n\n### Commands\n\n- `/suggest status` - Show current suggestion\n- `/suggest ghost` - Show current ghost text\n\n### How It Works\n\n1. After agent responds, a suggestion appears as gray/dim text in the empty input field\n2. **Press Space** on an empty editor to accept the full suggestion\n3. **Type any character** to dismiss the ghost and type normally\n\n## Architecture\n\nBased on @guwidoe/pi-prompt-suggester:\n\n- `GhostSuggestionEditor` extends `CustomEditor` from pi-coding-agent\n- Overrides `handleInput()` to intercept Space key for acceptance\n- Overrides `render()` to draw ghost text inline with cursor\n- Uses `ctx.ui.setEditorComponent()` to install custom editor\n\n## License\n\nMIT\n","readmeFilename":"README.md"}