{"_id":"@0xkobold/pi-ollama","_rev":"14-036315ccae3234953527fe16eb5cf2b8","name":"@0xkobold/pi-ollama","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"@0xkobold/pi-ollama","version":"0.1.0","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.1.0","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"image":"https://ollama.com/public/ollama.png","extensions":["./dist/index.js"]},"dist":{"shasum":"7b2789ca77121430ed1c89ba4d3cc80f3882613f","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.1.0.tgz","fileCount":7,"integrity":"sha512-KNRKgc/t2jK0OoGtkDuwxJgev/TzSkKFRDNOUabeUn3aJ7b4KRLtwgkWmpGjNMdIx/pGlCNjEGav2ss4BN001Q==","signatures":[{"sig":"MEUCIFmMS7FuLAauV5Q7lOgtSFhNEYLXCmB5/H9Hh03D3PbuAiEA43MkZ1W6OOQ84gtKeWGA6D81d7pJ8TuDeeJYAzIpHz0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56305},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7f4fcab481a2744ad231f24e67bdbde33d32903a","scripts":{"dev":"tsc --watch","test":"bun test","build":"tsc"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git","directory":"packages/pi-ollama"},"_npmVersion":"11.6.2","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"25.1.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"^5.0.0"},"peerDependencies":{"@sinclair/typebox":"^0.32.0","@mariozechner/pi-coding-agent":">=0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.1.0_1773338937649_0.4864013052256544","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@0xkobold/pi-ollama","version":"0.1.1","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.1.1","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"image":"https://ollama.com/public/ollama.png","extensions":["./src/index.ts"]},"dist":{"shasum":"47cf87a8c74222b9352d1350602e6988a5c84c37","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.1.1.tgz","fileCount":7,"integrity":"sha512-b160UZm2dLc4dnIh+bSrJlFXBCK0CRjHSc6IdETeJOwu4QX1nZHc01y14DNTSSiTRRbuZGnpn7WmFOJ+QgpBzg==","signatures":[{"sig":"MEYCIQCYlwZln6nXYh0mxD1npo207+mGLt3Fv3w9CtTEMcTbxgIhAILbJdO6/jr8YfwZRKmHwYUPk2nuiYjX0eRSpNZS5xQS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56336},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"059e41c5634947dd39e52c4d0935a41bf1debdc2","scripts":{"dev":"tsc --watch","test":"bun test","build":"tsc"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git","directory":"packages/pi-ollama"},"_npmVersion":"11.6.2","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"25.1.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"^5.0.0"},"peerDependencies":{"@sinclair/typebox":"^0.32.0","@mariozechner/pi-coding-agent":">=0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.1.1_1773340901908_0.9969394182882976","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@0xkobold/pi-ollama","version":"0.1.2","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.1.2","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"image":"https://ollama.com/public/ollama.png","extensions":["./dist/index.js"]},"dist":{"shasum":"298107a5e13644a0fd1c88173f73e9649555ac21","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.1.2.tgz","fileCount":6,"integrity":"sha512-A+gah1gdyflUhXfx3UKzurg8Ffi3pYxcZHSbza82SRwAUCTle2Dohu4WVz0Qul0hA/J7TLZDlKdjHbBz4Lnrmw==","signatures":[{"sig":"MEYCIQCijWZpSIZnQfnnvzKc2fbXsP1HQAaXmxXM9ZtYTnHWfAIhAMa6v5XawKPVuBnPCaxu6pmmt1hCoOAfg4LvLxc+0bdw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38797},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"3d1caf9d898cf9db2c7a1cf231c10aff6a7e7675","scripts":{"dev":"tsc --watch","test":"bun test","build":"tsc"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git"},"_npmVersion":"11.6.2","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"peerDependencies":{"@sinclair/typebox":">=0.32.0","@mariozechner/pi-coding-agent":">=0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.1.2_1773341360781_0.7992464218272701","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@0xkobold/pi-ollama","version":"0.1.3","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.1.3","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"image":"https://ollama.com/public/ollama.png","extensions":["./dist/index.js"]},"dist":{"shasum":"a682427cb7a4d9fd5e46526adc6c3f9e15b46d60","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.1.3.tgz","fileCount":6,"integrity":"sha512-GOR9JI+nFK6eA8FXLdRDpTkIT8PpX0EiEojnwZW5aLYf08WqRbM41fOsHEVOqVN01+g8EgW/v+LsN3eTcfDuNQ==","signatures":[{"sig":"MEUCIQDCvFtQO0/lfjAVoCZQfqrQOfTlOX0N7Y9cMc7Y3iD9ZQIgNiFc0JBLyLPYef2XbH2+1zTUQML85D2wB7BtWT8QFz4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25363},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"17f46f6b3bc38ddd0f6bd62c5e4f82727c80266d","scripts":{"dev":"tsc --watch","test":"bun test","build":"tsc"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git"},"_npmVersion":"11.6.2","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"peerDependencies":{"@sinclair/typebox":">=0.32.0","@mariozechner/pi-coding-agent":">=0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.1.3_1773342785825_0.4381833423644037","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@0xkobold/pi-ollama","version":"0.1.4","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.1.4","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"image":"https://ollama.com/public/ollama.png","extensions":["./dist/index.js"]},"dist":{"shasum":"2f1f57516f448863c0e3f8d74726180727e355e6","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.1.4.tgz","fileCount":6,"integrity":"sha512-Z5DOs8tEVdmKoqjyHc8zDcOzpSdLolZVK9qcjjcLJUTHcBmeaim/hg3sOjjimeaXu8EDc72J7v/rK/PcqNoFwA==","signatures":[{"sig":"MEYCIQCO9OGLgTc/iDEE/WOhpuZw42dcpLooF3wRtEdQhmQ7KAIhAPJpsj74gUK7x2OAmgxKShZ0chG9N/hJtKhkwCXc4IQP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25918},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7a931bacf8197f39cd0956feed77acaaa3fdd836","scripts":{"dev":"tsc --watch","test":"bun test","build":"tsc"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git"},"_npmVersion":"11.6.2","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"peerDependencies":{"@sinclair/typebox":">=0.32.0","@mariozechner/pi-coding-agent":">=0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.1.4_1773349042801_0.5536479400971919","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@0xkobold/pi-ollama","version":"0.1.5","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.1.5","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"image":"https://ollama.com/public/ollama.png","extensions":["./dist/index.js"]},"dist":{"shasum":"f2355e22149c70b80fdaef035992983c8fcbb1bf","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.1.5.tgz","fileCount":6,"integrity":"sha512-PG/N/Rkgh+lvdnXAYNyc2WM6MOrKneJ/G9gn3z5q0sJr63xErCB7uq+uWxAdJ2A4nNeHM3JBaOlBUmECbgQ2oQ==","signatures":[{"sig":"MEYCIQCchJKvyz47Qqd6vCBqH2A2L+OTCGWsGUWUL5f/vrIXRgIhALNZ1m7to4f3X/pEXEmv1ZY8wiGi2astQmuBZjs1Dzdi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26681},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"4afa31960066aba40cfa953cbcd5b3d7cc60ce40","scripts":{"dev":"tsc --watch","test":"bun test","build":"tsc"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git"},"_npmVersion":"11.6.2","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"peerDependencies":{"@sinclair/typebox":">=0.32.0","@mariozechner/pi-coding-agent":">=0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.1.5_1773349432178_0.7070398750059916","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@0xkobold/pi-ollama","version":"0.1.6","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.1.6","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"image":"https://ollama.com/public/ollama.png","extensions":["./dist/index.js"]},"dist":{"shasum":"b2e6c02add9b22bb20f18656237480de8a15b640","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.1.6.tgz","fileCount":6,"integrity":"sha512-kLE8E6vRj26xLQwjElW3MR3Bm1nGnSILHCQPBReLIXkdIeDeo2x19/AJ+Tv4O04WdbwNn7+0B/XOZuW+bVVvpA==","signatures":[{"sig":"MEUCIAYJuJ9XG8HyH9iokuZsXWcnOyJEj+nbaRm63Ae+S5WtAiEAvymsrKEmh4Juz2ahEaiufkeRNferTx1nrNQ1b+sCLlg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26848},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"4afa31960066aba40cfa953cbcd5b3d7cc60ce40","scripts":{"dev":"tsc --watch","test":"bun test","build":"tsc"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git"},"_npmVersion":"11.6.2","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"peerDependencies":{"@sinclair/typebox":">=0.32.0","@mariozechner/pi-coding-agent":">=0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.1.6_1773349485961_0.8416530315809669","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@0xkobold/pi-ollama","version":"0.1.7","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.1.7","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"image":"https://ollama.com/public/ollama.png","extensions":["./dist/index.js"]},"dist":{"shasum":"c4f28ffbd6f3d5e6b41de82f80b8ecc2881d4a9b","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.1.7.tgz","fileCount":6,"integrity":"sha512-nyPDKnK6WWke3UlO4wtZTTYuMI7IyQqDW9pW760+7L+KwyxuBmD6fg67mKwI6qx9oGJhWs6FdSygSiOQErm6FA==","signatures":[{"sig":"MEUCIDEBTjmfV01GAV9nyOzeMeEQeHpeV3rwPtS8TKiSGKUOAiEAnEIqDPcIGOMVESq9MH3KYfHU/qY6b1ZokYjWFkDVKfc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26848},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"4afa31960066aba40cfa953cbcd5b3d7cc60ce40","scripts":{"dev":"tsc --watch","test":"bun test","build":"tsc"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git"},"_npmVersion":"11.6.2","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"peerDependencies":{"@sinclair/typebox":">=0.32.0","@mariozechner/pi-coding-agent":">=0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.1.7_1773349602985_0.07616683867748941","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@0xkobold/pi-ollama","version":"0.2.0","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.2.0","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"image":"https://ollama.com/public/ollama.png","extensions":["./dist/index.js"]},"dist":{"shasum":"67ffb096afdccb44cf43039fb103ac68b3794680","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.2.0.tgz","fileCount":10,"integrity":"sha512-RgqDy+zPe5X9wNpaqOzgMo4D/KmoAW0Ld1XPvIZcI979n8NifWlzNOjcP0xYmd2ql9qlcFl3jwAud1M9IN3eyw==","signatures":[{"sig":"MEYCIQCz2pkKW1gNAvcX2rQlVgf6buNK3CWh64E3y1jugoH55gIhAK2fTijVKCi1Ydac3xKKywO0gdhq7NXhIdU+nHqk/jYR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48599},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./shared":{"types":"./dist/shared.d.ts","import":"./dist/shared.js"}},"gitHead":"476b06f21e63c4e7ce3bc71bdd84d6b0caa7ed2e","scripts":{"dev":"tsc --watch","test":"bun test","build":"tsc"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git"},"_npmVersion":"11.6.2","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"peerDependencies":{"@sinclair/typebox":">=0.32.0","@mariozechner/pi-coding-agent":">=0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.2.0_1773504452830_0.4035953654363147","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@0xkobold/pi-ollama","version":"0.3.0","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.3.0","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"image":"https://ollama.com/public/ollama.png","extensions":["./dist/index.js"]},"dist":{"shasum":"c91a97a10ca09c772b2f8ac7aee9036c1a1b8723","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.3.0.tgz","fileCount":10,"integrity":"sha512-d+M2nVM2/MxqBlp0/hu1B6hB8Ckq49QZeoVhpfSb+MQHwrhSGNf0MSGAa0yEschbxTRfofX4aSr16wHow29rKA==","signatures":[{"sig":"MEUCIQC7Xx/BHoX+007rlXaQnJc0HNgthAHCWDOUzE5GnyaqpQIgHRIhitGWrt37WEEni1I9dcDx+uly2/4HCAtFbagV5rc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53301},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./shared":{"types":"./dist/shared.d.ts","import":"./dist/shared.js"}},"gitHead":"7834ce3b6c28fae891d2c4d4bf60de14a538c772","scripts":{"dev":"tsc --watch","test":"bun test","build":"bun run clean && tsc","clean":"rm -rf dist","prepublishOnly":"bun run build"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git"},"_npmVersion":"9.2.0","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"20.19.2","_hasShrinkwrap":false,"peerDependencies":{"ollama":"^0.6.3","@sinclair/typebox":">=0.32.0","@mariozechner/pi-coding-agent":">=0.65.2"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.3.0_1775441550647_0.2302104584783209","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@0xkobold/pi-ollama","version":"0.3.1","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.3.1","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"image":"https://ollama.com/public/ollama.png","extensions":["./dist/index.js"]},"dist":{"shasum":"86bc5177760e2e1c37f966626cdda05dc1e8cd85","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.3.1.tgz","fileCount":10,"integrity":"sha512-9wPsKyVlgzzMp8akpMp8EICegIe5HWSPbXmofR8nRsvsxho5oJU3Ppgph0N4gPQJ5cvC+SXglEeDh72uvFWrnA==","signatures":[{"sig":"MEUCIQCfwxdsuwEkA0498g4Xn5UXTCdqAP0TtP980623Rbi1xAIgKiu+Yxlywk8Hi9Mg3qR4mXvYG3sSRH8I9s1YYQ9pBl4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57982},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./shared":{"types":"./dist/shared.d.ts","import":"./dist/shared.js"}},"gitHead":"a445be1936465cd15eac7e2af4140456f3fab3f1","scripts":{"dev":"tsc --watch","test":"bun test","build":"bun run clean && tsc","clean":"rm -rf dist","prepublishOnly":"bun run build"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git"},"_npmVersion":"9.2.0","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"20.19.2","_hasShrinkwrap":false,"peerDependencies":{"ollama":"^0.6.3","@sinclair/typebox":">=0.32.0","@mariozechner/pi-coding-agent":">=0.65.2"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.3.1_1775453251181_0.8893317495657473","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@0xkobold/pi-ollama","version":"0.4.0","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.4.0","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"extensions":["./dist/index.js"]},"dist":{"shasum":"62b0ab25c65d3cfc31e2d79ce5fac3a90efaca43","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.4.0.tgz","fileCount":10,"integrity":"sha512-uNrAcTmFDEi2HOJY5fyXbxt3uZNLVrI9hj3Hr7F4tGdrxgpgNTSRAqmACCXwBV+DDaox5wr2wJCLJ/FwRj5UIQ==","signatures":[{"sig":"MEQCIF1L0BBKB75kE4v8B+CYu30O6eHcmeoD8eepYHM44j15AiBkXu1ohIthd5oqn8FVRGdBQFUI2y7ScKzgG59Bwnr9Xw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57917},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./shared":{"types":"./dist/shared.d.ts","import":"./dist/shared.js"}},"gitHead":"231b21192f631aecba0b2a82ea9068f3dcca0121","scripts":{"dev":"tsc --watch","test":"bun test","build":"bun run clean && tsc","clean":"rm -rf dist","prepublishOnly":"bun run build"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git"},"_npmVersion":"11.6.2","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"peerDependencies":{"ollama":"^0.6.3","@sinclair/typebox":">=0.32.0","@mariozechner/pi-coding-agent":">=0.65.2"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.4.0_1775588806261_0.008676395289681116","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@0xkobold/pi-ollama","version":"0.4.1","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","_id":"@0xkobold/pi-ollama@0.4.1","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"homepage":"https://github.com/0xKobold/pi-ollama#readme","bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"pi":{"extensions":["./dist/index.js"]},"dist":{"shasum":"513d662ec6f1370f6e5119537f6959830b5373f9","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.4.1.tgz","fileCount":10,"integrity":"sha512-JpjkIMm6iwf9gFt2DjKcneeMakjep/7uSkHQ8XYBnFybwKUdc7L86c4txO2a+BGuRveJiuoo+xFBbmLs0hRj0Q==","signatures":[{"sig":"MEYCIQDWOsaECNPcTdPzBUZ5mqHuC8OVHMOsbJkoTHuxO1132gIhAIOI5feG8qX1A1Cbnhss/bsz8vLJcoulTWO/94uXvzcC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58728},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./shared":{"types":"./dist/shared.d.ts","import":"./dist/shared.js"}},"gitHead":"0b018722cae2d52bd4f1c2a4beb55e3b746b2c9f","scripts":{"dev":"tsc --watch","test":"bun test","build":"bun run clean && tsc","clean":"rm -rf dist","prepublishOnly":"bun run build"},"_npmUser":{"name":"moikapy","email":"warrenckhan@gmail.com"},"repository":{"url":"git+https://github.com/0xKobold/pi-ollama.git","type":"git"},"_npmVersion":"11.6.2","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","directories":{},"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"peerDependencies":{"ollama":"^0.6.3","@sinclair/typebox":">=0.32.0","@mariozechner/pi-coding-agent":">=0.65.2"},"_npmOperationalInternal":{"tmp":"tmp/pi-ollama_0.4.1_1775681054580_0.08647950800231374","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@0xkobold/pi-ollama","version":"0.5.0","description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","keywords":["pi-package","ollama","llm","local-ai"],"author":{"name":"0xKobold"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"},"./shared":{"import":"./dist/shared.js","types":"./dist/shared.d.ts"}},"scripts":{"clean":"rm -rf dist","build":"bun run clean && tsc","dev":"tsc --watch","test":"bun test","prepublishOnly":"bun run build"},"pi":{"extensions":["./dist/index.js"]},"peerDependencies":{"@mariozechner/pi-coding-agent":">=0.65.2","@sinclair/typebox":">=0.32.0","ollama":"^0.6.3"},"repository":{"type":"git","url":"git+https://github.com/0xKobold/pi-ollama.git"},"bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"homepage":"https://github.com/0xKobold/pi-ollama#readme","devDependencies":{"@types/bun":"^1.3.13","typescript":"^6.0.3"},"gitHead":"d4b0f0c4e63643bbe4e07a47eba867080031ea45","_id":"@0xkobold/pi-ollama@0.5.0","_nodeVersion":"25.1.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-OlipLbUYd0p2niqiwGVnxMxFGbOM54BN8OYTt9R/cExlJ5vE7TEGJc5YN0F3yVf3mWKArg/kQppMCNkGro+d0A==","shasum":"03d602e55e99cb5ada88065f2056ebdbd422ac3a","tarball":"https://registry.npmjs.org/@0xkobold/pi-ollama/-/pi-ollama-0.5.0.tgz","fileCount":10,"unpackedSize":82897,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBf6W/HSh5iw+B/RIjA0qeyw7OY45omH3t4tghPwBy66AiBnL4edEwpysccUfmvbYfAkYTKF61gh5qU1C0539bWcvg=="}]},"_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-ollama_0.5.0_1778639608615_0.011989204200721693"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-12T18:08:57.594Z","modified":"2026-05-13T02:33:28.920Z","0.1.0":"2026-03-12T18:08:57.858Z","0.1.1":"2026-03-12T18:41:42.061Z","0.1.2":"2026-03-12T18:49:20.926Z","0.1.3":"2026-03-12T19:13:05.985Z","0.1.4":"2026-03-12T20:57:22.999Z","0.1.5":"2026-03-12T21:03:52.348Z","0.1.6":"2026-03-12T21:04:46.152Z","0.1.7":"2026-03-12T21:06:43.147Z","0.2.0":"2026-03-14T16:07:32.985Z","0.3.0":"2026-04-06T02:12:30.799Z","0.3.1":"2026-04-06T05:27:31.342Z","0.4.0":"2026-04-07T19:06:46.498Z","0.4.1":"2026-04-08T20:44:14.729Z","0.5.0":"2026-05-13T02:33:28.780Z"},"bugs":{"url":"https://github.com/0xKobold/pi-ollama/issues"},"author":{"name":"0xKobold"},"license":"MIT","homepage":"https://github.com/0xKobold/pi-ollama#readme","keywords":["pi-package","ollama","llm","local-ai"],"repository":{"type":"git","url":"git+https://github.com/0xKobold/pi-ollama.git"},"description":"Ollama extension for pi-coding-agent. Unified local + cloud Ollama support with model management","maintainers":[{"name":"moikapy","email":"warrenckhan@gmail.com"}],"readme":"# Pi Ollama Extension\n\nOllama integration for [pi-coding-agent](https://github.com/badlogic/pi-mono) with accurate model details from `/api/show`.\n\n## Changelog\n\n### v0.5.0\n\n- **Fix**: DeepSeek models now return correct context lengths — `deepseek-v4` → 1M tokens, other deepseek → 163,840 tokens (was 4,096). Closes [#4](https://github.com/0xKobold/pi-ollama/issues/4).\n- **Fix**: Default context fallback raised from 4,096 → 131,072 (128k). Per [Ollama docs](https://docs.ollama.com/context-length), cloud models default to their maximum context; 128k is a conservative floor for unknowns.\n- **Fix**: `hasReasoningCapability()` no longer flags `instruct`, `chat`, or `code`/`coder` models as reasoning. Only models with actual thinking capability (DeepSeek, R1, QwQ, GPT-OSS, Phi) or a `thinking`/`reason` capability from `/api/show` are marked as reasoning. See [Ollama thinking docs](https://docs.ollama.com/capabilities/thinking).\n- **Fix**: `createModel()` now sets `maxTokens` to `min(contextWindow, 16384)` instead of hardcoded 8192. `chat()`/`chatStream()` no longer send `max_tokens: 4096` by default — omitted unless explicitly set.\n- **Fix**: Cloud model deduplication now properly strips `:cloud` suffix before comparing model names.\n- **Fix**: `loadConfigFromSettingsFiles()` now uses async dynamic `import()` instead of `require()`, fixing ESM compatibility.\n- **New**: `hasReasoningCapability()` accepts optional `modelInfo` parameter and checks `capabilities` array for `thinking`/`reason`.\n- **New**: Error classification — `chat()` and `chatStream()` now throw typed errors: `OllamaAuthError` (401/403), `OllamaRateLimitError` (429), `OllamaModelError` (400/404), `OllamaServerError` (500/502).\n- **New**: Request timeout — `chat()` and `chatStream()` now apply a 120s timeout via `AbortController`.\n- **New**: Exported constants `DEFAULT_CONTEXT_LENGTH` (131072), `DEFAULT_MAX_TOKENS` (8192), `DEFAULT_REQUEST_TIMEOUT_MS` (120000).\n- **New**: `stripProviderPrefix()` now exported and tested.\n- **Docs**: Comprehensive JSDoc comments referencing [Ollama API docs](https://docs.ollama.com/).\n- **Docs**: README updated with all context length tables, error types, and API reference.\n\n### v0.4.1\n\n- **Fix**: Cloud models now correctly use `/v1` endpoint. Previously, `ollama-cloud` was registered with `baseUrl: \"https://ollama.com\"`, causing pi to hit `https://ollama.com/chat/completions` (HTML homepage) instead of `https://ollama.com/v1/chat/completions`.\n- **Fix**: Trailing slashes in `cloudUrl` config are now properly stripped before appending `/v1`.\n\n## Installation\n\n```bash\n# Via pi CLI\npi install npm:@0xkobold/pi-ollama\n\n# Or in pi-config.ts\n{\n  extensions: [\n    'npm:@0xkobold/pi-ollama'\n  ]\n}\n\n# Or temporary (testing)\npi -e npm:@0xkobold/pi-ollama\n```\n\n## Features\n\n- 🦙 **Local Ollama** — Connect to localhost:11434\n- ☁️ **Ollama Cloud** — Use ollama.com with API key\n- 📊 **Accurate Details** — Uses `/api/show` for real context length\n- 👁️ **Vision Detection** — Detects vision from `capabilities` array\n- 🧠 **Reasoning Detection** — Detects thinking models from `capabilities` and name patterns\n- 🔍 **Model Info** — Query specific model parameters\n- 🛡️ **Error Classification** — Typed errors for auth, rate limits, model errors, server errors\n- ⏱️ **Request Timeouts** — 120s default timeout on all HTTP calls\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `/ollama-status` | Check connection status |\n| `/ollama-models` | List models with context length |\n| `/ollama-info MODEL` | Show model details from `/api/show` |\n| `/ollama status\\|info\\|models` | Shortcuts |\n\n## How It Works\n\nThe extension uses Ollama's `/api/show` endpoint to get accurate model information:\n\n```bash\ncurl http://localhost:11434/api/show -d '{\n  \"model\": \"gemma3\",\n  \"verbose\": true\n}'\n```\n\nResponse includes (per [Ollama docs](https://docs.ollama.com/api-reference/show-model-details)):\n- `model_info.<arch>.context_length` — Accurate context window\n- `capabilities` — `[\"completion\", \"vision\", \"thinking\"]`\n- `details.parameter_size` — \"4.3B\", \"70B\", etc.\n- `details.family` — \"gemma3\", \"llama\", etc.\n\n## Context Length Resolution\n\nContext length is resolved in this order:\n\n1. **`model_info.*.context_length`** — From `/api/show` (most accurate)\n2. **Top-level keys** — `context_length`, `max_position_embeddings`, `max_sequence_length`, `n_ctx`\n3. **Parameter-size heuristic** — Small models → smaller context\n4. **Name-based lookup** — For cloud models without `/api/show`\n5. **Default fallback** — 131,072 (128k tokens)\n\n### Name-Based Context Length Table\n\n| Model Family | Context Length | Source |\n|-------------|---------------|--------|\n| `deepseek-v4` | 1,048,576 (1M) | [Ollama library](https://ollama.com/library/deepseek-v4-flash) |\n| `kimi` | 262,144 (256k) | [Ollama library](https://ollama.com/library/kimi-k2.5) |\n| `qwen3` | 262,144 (256k) | [Ollama library](https://ollama.com/library/qwen3) |\n| `minimax` | 204,800 (200k) | [Ollama library](https://ollama.com/library/minimax-m2.5) |\n| `glm` | 202,752 (~198k) | [Ollama library](https://ollama.com/library/glm-4) |\n| `llama3.1/3.2/3.3` | 128,000 (128k) | [Ollama library](https://ollama.com/library/llama3.1) |\n| `deepseek` (non-v4) | 163,840 (160k) | [Ollama library](https://ollama.com/library/deepseek-r1) |\n| `gpt-oss` | 128,000 (128k) | [Ollama library](https://ollama.com/library/gpt-oss) |\n| `qwen`/`qwen2.5` | 32,768 (32k) | [Ollama library](https://ollama.com/library/qwen2.5) |\n| `mistral`/`mixtral` | 32,768 (32k) | [Ollama library](https://ollama.com/library/mistral) |\n| `llama3` | 8,192 | [Ollama library](https://ollama.com/library/llama3) |\n| **Unknown** | **131,072 (128k)** | Conservative default per [Ollama context docs](https://docs.ollama.com/context-length) |\n\n## Reasoning Capability Detection\n\nPer [Ollama thinking docs](https://docs.ollama.com/capabilities/thinking), reasoning/thinking is detected by:\n\n1. **`capabilities` array** from `/api/show` — if it includes `\"thinking\"` or `\"reason\"`\n2. **Name-based heuristic** (for cloud models):\n   - ✅ DeepSeek models (have think mode)\n   - ✅ `r1` models (word boundary match)\n   - ✅ QwQ, GPT-OSS, Phi\n   - ✅ Models containing \"reason\"\n   - ❌ `instruct`, `chat`, `code`/`coder` — these are format tags, NOT reasoning\n\n## Error Handling\n\nAll HTTP calls classify errors into typed classes:\n\n| Class | Status Codes | Meaning |\n|-------|-------------|---------|\n| `OllamaAuthError` | 401, 403 | Invalid API key |\n| `OllamaRateLimitError` | 429 | Rate limit exceeded |\n| `OllamaModelError` | 400, 404 | Bad request or model not found |\n| `OllamaServerError` | 500, 502 | Server/gateway error |\n| `OllamaError` | Other | Catch-all |\n\nPer [Ollama error docs](https://docs.ollama.com/api/errors).\n\n## Configuration\n\nConfiguration is loaded with the following precedence (highest to lowest):\n\n1. **Environment variables** (override everything)\n2. **`pi.settings`** (runtime API, when available)\n3. **`.pi/settings.json`** (project-local settings)\n4. **`~/.pi/agent/settings.json`** (global user settings)\n\n### Environment Variables\n\n```bash\nexport OLLAMA_HOST=\"http://localhost:11434\"       # Local base URL\nexport OLLAMA_HOST_CLOUD=\"https://ollama.com\"     # Cloud base URL\nexport OLLAMA_API_KEY=\"your-api-key\"              # Cloud API key\n```\n\n### Settings File\n\nAdd to your global settings (`~/.pi/agent/settings.json`):\n\n```json\n{\n  \"ollama\": {\n    \"baseUrl\": \"http://localhost:11434\",\n    \"cloudUrl\": \"https://ollama.com\",\n    \"apiKey\": \"your-ollama-cloud-api-key\"\n  }\n}\n```\n\nPer [Ollama cloud docs](https://docs.ollama.com/cloud).\n\n## API Reference\n\n```typescript\nimport {\n  fetchModelDetails,\n  getContextLength,\n  hasVisionCapability,\n  hasReasoningCapability,\n  createClients,\n  classifyHttpError,\n  OllamaError,\n  OllamaAuthError,\n  OllamaRateLimitError,\n  OllamaModelError,\n  OllamaServerError,\n  DEFAULT_CONTEXT_LENGTH,\n  DEFAULT_MAX_TOKENS,\n} from '@0xkobold/pi-ollama/shared';\n\n// Get model details from local Ollama\nconst details = await fetchModelDetails(client, 'gemma3');\n\n// Extract context length (with name-based fallback)\nconst ctx = getContextLength(details, 'gemma3');  // 131072\n\n// Check capabilities\nconst hasVision = hasVisionCapability(details);           // true/false\nconst hasReasoning = hasReasoningCapability('deepseek-r1', details);  // true\n\n// Classify HTTP errors\ntry {\n  await chat(client, { model: 'gemma3', messages: [...] });\n} catch (err) {\n  if (err instanceof OllamaRateLimitError) {\n    // Handle rate limit\n  } else if (err instanceof OllamaAuthError) {\n    // Handle auth failure\n  }\n}\n```\n\n## License\n\nMIT © 0xKobold","readmeFilename":"README.md"}