{"_id":"@artale/pi-tokens","_rev":"2-0beae8bc550305b41d5065a0bb3d62fc","name":"@artale/pi-tokens","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@artale/pi-tokens","version":"1.0.0","keywords":["pi-package"],"author":{"name":"artale"},"license":"MIT","_id":"@artale/pi-tokens@1.0.0","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"homepage":"https://github.com/arosstale/pi-tokens#readme","bugs":{"url":"https://github.com/arosstale/pi-tokens/issues"},"pi":{"extensions":["src/extension.ts"]},"dist":{"shasum":"e09395ec5981f5825bc4459b7ecd45b9f2700dc6","tarball":"https://registry.npmjs.org/@artale/pi-tokens/-/pi-tokens-1.0.0.tgz","fileCount":3,"integrity":"sha512-7WMt1stha8EscN5vQT8QntD4zmzVFC6FtCw8PwxPqc3c9UZ1yL6x0QBBnX15855vmCjm2ZUkG0yStjuT6mGdcQ==","signatures":[{"sig":"MEQCIF8+wmwklNgaLJlJVk3u4JOu3WUGA51r2uanP8IjS1yUAiBSV7rDuCq5RjaEoNwRqqBojAFG/5QAHMDThDPVbs60nw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7447},"gitHead":"46538e2ba01ad6b287d6c4b3cf91478f75ddd31a","_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"repository":{"url":"git+https://github.com/arosstale/pi-tokens.git","type":"git"},"_npmVersion":"10.9.4","description":"Real-time token usage tracking for Pi. Per-message, per-tool, and session totals. Know what's eating your context.","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-tokens_1.0.0_1773496482290_0.10759402660857309","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@artale/pi-tokens","version":"1.1.0","description":"Token cost intelligence for Pi. Per-tool cost breakdown, $/call estimates, budget alerts, expensive call finder.","keywords":["pi-package"],"license":"MIT","author":{"name":"artale"},"repository":{"type":"git","url":"git+https://github.com/arosstale/pi-tokens.git"},"pi":{"extensions":["src/extension.ts"]},"peerDependencies":{"@mariozechner/pi-coding-agent":"*"},"_id":"@artale/pi-tokens@1.1.0","gitHead":"727a1df9c210d3a060694e0394277eac4d23cb79","bugs":{"url":"https://github.com/arosstale/pi-tokens/issues"},"homepage":"https://github.com/arosstale/pi-tokens#readme","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-ORovX8tKEAwkr+LMmsfCFgao83gWyc+umAEXW0jNZMGBkrZS/R79g4RyrHQ+OhhXHtSg1ICiFsXHxu1iSmziFw==","shasum":"f5e5bf55947df586d147ec0ddc319427732ab6b8","tarball":"https://registry.npmjs.org/@artale/pi-tokens/-/pi-tokens-1.1.0.tgz","fileCount":3,"unpackedSize":10241,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDXXjRnKAAIr44gT+2DtrMxuBKAFndId479FfD8flGAGwIhAJBEIoW4PFyheqS0OV50aqpC3ek05e0q/zDyY9r1LMQ5"}]},"_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"directories":{},"maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-tokens_1.1.0_1773503838574_0.9672866413679349"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-14T13:54:42.224Z","modified":"2026-03-14T15:57:18.893Z","1.0.0":"2026-03-14T13:54:42.484Z","1.1.0":"2026-03-14T15:57:18.757Z"},"bugs":{"url":"https://github.com/arosstale/pi-tokens/issues"},"author":{"name":"artale"},"license":"MIT","homepage":"https://github.com/arosstale/pi-tokens#readme","keywords":["pi-package"],"repository":{"type":"git","url":"git+https://github.com/arosstale/pi-tokens.git"},"description":"Token cost intelligence for Pi. Per-tool cost breakdown, $/call estimates, budget alerts, expensive call finder.","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"readme":"# pi-tokens\n\nReal-time token usage tracking for Pi. Per-message, per-tool, and session totals.\n\n## Install\n\n```bash\npi install npm:@artale/pi-tokens\n```\n\n## Commands\n\n```\n/tokens              — session summary (input, output, total, rate)\n/tokens tools        — breakdown by tool (which tools eat the most tokens)\n/tokens messages     — per-message breakdown (last 20)\n/tokens reset        — reset all counters\n```\n\n## Tools\n\n- `tokens_usage` — session summary\n- `tokens_tools` — per-tool breakdown\n\n## What it tracks\n\n- Input tokens per message\n- Output tokens per message\n- Tool result sizes (estimated)\n- Token rate (tokens/minute)\n- Top tools by token consumption\n\n## Why\n\nContext windows aren't infinite. Know what's eating yours. If `bash` is consuming 60% of your tokens, maybe you need pi-lean to truncate its output.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}