{"_id":"@albizures/pi-context-inspector","name":"@albizures/pi-context-inspector","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@albizures/pi-context-inspector","version":"0.2.0","description":"Inspect estimated Pi context usage by source.","keywords":["pi-package","pi","extension","context","inspector"],"license":"MIT","type":"module","publishConfig":{"access":"public"},"pi":{"extensions":["./extensions"]},"dependencies":{"@earendil-works/pi-tui":"^0.82.0"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*"},"_nodeVersion":"24.18.0","_id":"@albizures/pi-context-inspector@0.2.0","dist":{"integrity":"sha512-5RyrYNyxMrIg5LfX3jw7Xp3QGj770urJ0xxgZI9TiRoY9RWvPP86Zkv+Gv4w8Qzip7lCAhD9Ucg0ayNEr4k2MA==","shasum":"1ac39cf9a884067ddff37275013d83e0b0299040","tarball":"https://registry.npmjs.org/@albizures/pi-context-inspector/-/pi-context-inspector-0.2.0.tgz","fileCount":5,"unpackedSize":52916,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIF6mSuLrInYlAbSd/zdGPZpWtOCfh3L5ZdTxDsK2v8nfAiAlzfYV5uBOs1+07Mp3fTgnB7Au9oF+I4doJIVVbOPRfQ=="}]},"_npmUser":{"name":"albizures","email":"albizures3601@gmail.com"},"directories":{},"maintainers":[{"name":"albizures","email":"albizures3601@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-context-inspector_0.2.0_1785095396206_0.9811448243846022"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-26T19:49:56.025Z","0.2.0":"2026-07-26T19:49:56.352Z","modified":"2026-07-26T19:49:56.590Z"},"maintainers":[{"name":"albizures","email":"albizures3601@gmail.com"}],"description":"Inspect estimated Pi context usage by source.","keywords":["pi-package","pi","extension","context","inspector"],"license":"MIT","readme":"# @albizures/pi-context-inspector\n\nInspect estimated Pi context usage by source.\n\n## Command\n\n```txt\n/context-inspector\n```\n\nThe command opens a framed, read-only, point-in-time active context snapshot in TUI mode. It collects immediately from the current Pi session, even when Pi is still streaming or running tools.\n\n## Report contents\n\nThe snapshot shows:\n\n- active model identity and context window\n- Pi's authoritative total context usage and percentage when known\n- an explicit unknown-total state when Pi cannot currently report total tokens\n- estimated source attribution by bucket, such as System prompt, Tool definitions, Context files, Skills, user messages, assistant messages, tool results, and compactions/summaries\n- capped top contributor lists for materially large buckets\n- a framed scrollable TUI overlay with read-only recommendation text for large tool results, context files, and skills\n\n## Accuracy stance\n\nPi's active context total is the authoritative number shown by the report. Source-level attribution is estimated from prompt inputs and active session entries; it is diagnostic, not provider-exact token accounting.\n\nThe report shows contributor names and estimates only, without raw content snippets, and only expands contributor lists for materially large buckets. Tool definitions are estimated from prompt-visible names and snippets, not provider-serialized schemas.\n\n## Privacy boundary\n\nThe extension reads Pi's already-active prompt inputs and session context entries to compute estimates. It does not inspect provider request payloads, render raw context snippets in the report, or persist report data.\n\n## Out of scope\n\nThis tiny package intentionally does not provide configuration, persistent widgets, Pi footer UI, exact tokenizer integration, provider payload inspection, or user-triggered cleanup/actions from the report.\n","readmeFilename":"","_rev":"1-7fda112e825e039ac607b4c29bffb595"}