{"_id":"@baggiiiie/pi-codex-usage","_rev":"3-e0ede326b864fcaa3017c02ab07faf16","name":"@baggiiiie/pi-codex-usage","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@baggiiiie/pi-codex-usage","version":"0.0.1","keywords":["pi-package"],"_id":"@baggiiiie/pi-codex-usage@0.0.1","maintainers":[{"name":"baggiiiie","email":"yc@yingchao.dev"}],"pi":{"extensions":["./src/index.ts"]},"dist":{"shasum":"d3943f315b7a4f1a413c5708015fe24717aceeaa","tarball":"https://registry.npmjs.org/@baggiiiie/pi-codex-usage/-/pi-codex-usage-0.0.1.tgz","fileCount":4,"integrity":"sha512-WH0ZaRWyq2GJhiAPYY0rm+rPu2QymWEsu3th7lIC2Xh4uhL3bGuMBuzNxVibitsE3rwWZ6QK80cQ1SBX64lD4g==","signatures":[{"sig":"MEQCICBu+p/jXe9KBZjJg+Db4EAqisWRBv+WYUJMNyppNpGMAiBrm9/Hx5hF6lO1wrQZtJd0hPgBc39RX5FJkExs+UH0lg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16526},"type":"module","gitHead":"2496417d8cb95413f45a8539f4f41a12951cf209","_npmUser":{"name":"baggiiiie","email":"yc@yingchao.dev"},"_npmVersion":"11.12.1","description":"A pi package that adds the `/codex-usage` command and status widget.","directories":{},"_nodeVersion":"25.5.0","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-tui":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-codex-usage_0.0.1_1776241161077_0.4397933740033029","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@baggiiiie/pi-codex-usage","version":"0.0.2","keywords":["pi-package"],"_id":"@baggiiiie/pi-codex-usage@0.0.2","maintainers":[{"name":"baggiiiie","email":"yc@yingchao.dev"}],"pi":{"extensions":["./src/index.ts"]},"dist":{"shasum":"8bb7d3e68727d4400f580ff11d6fe00d763ead0e","tarball":"https://registry.npmjs.org/@baggiiiie/pi-codex-usage/-/pi-codex-usage-0.0.2.tgz","fileCount":4,"integrity":"sha512-e+1bB1zEFY8xx/G20wfcdJ+0O9/eGi/A/24w/bdUGNG9N8mX9COjzAEGDj5yURyMaL7UpAI/m6X79prkoYYkuw==","signatures":[{"sig":"MEYCIQDTQucBUp7nToZG+gRDeBmB2Yu8H58YJe2O0ZH7Md5wCQIhALU59GO1ZVwe4gyaXLjy97jIIo+phYp4u7X1mnOH8TM4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26350},"type":"module","gitHead":"6950b34280de2f7ba32c7bf279a1679c9a127a2b","_npmUser":{"name":"baggiiiie","email":"yc@yingchao.dev"},"_npmVersion":"11.12.1","description":"A pi package that adds the `/codex-usage` command and status widget.","directories":{},"_nodeVersion":"25.5.0","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-tui":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-codex-usage_0.0.2_1776279864624_0.1420041248321593","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@baggiiiie/pi-codex-usage","version":"0.0.3","type":"module","keywords":["pi-package"],"pi":{"extensions":["./src/index.ts"]},"peerDependencies":{"@mariozechner/pi-coding-agent":"*","@mariozechner/pi-tui":"*"},"gitHead":"b063c783dd57551ada7ef149c69b411555a02bee","_id":"@baggiiiie/pi-codex-usage@0.0.3","description":"A pi package that adds the `/codex-usage` command and status widget.","_nodeVersion":"25.5.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-8bUoD7hzGzz9kYClIPCxmP0DivG3ei92cZZgGvFi4FpDcDDUxnEgZzZEln0odpDBjp6D9U0kXh8R9H5rvQk44A==","shasum":"cc33c75d2aeb6201253f3cf93d8308ebe2ff42ed","tarball":"https://registry.npmjs.org/@baggiiiie/pi-codex-usage/-/pi-codex-usage-0.0.3.tgz","fileCount":4,"unpackedSize":26386,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFOuo5ITiKy9PxeGvOE+2ooZz20uZ95iKMKGkkdUD2B2AiEA/MekZ2kiaP9F7r4IsNFL9wUc3HZuaOYlnPnf+rfFVSs="}]},"_npmUser":{"name":"baggiiiie","email":"yc@yingchao.dev"},"directories":{},"maintainers":[{"name":"baggiiiie","email":"yc@yingchao.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-codex-usage_0.0.3_1777869378809_0.0876514946903848"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-15T08:19:20.955Z","modified":"2026-05-04T04:36:19.067Z","0.0.1":"2026-04-15T08:19:21.233Z","0.0.2":"2026-04-15T19:04:24.753Z","0.0.3":"2026-05-04T04:36:18.961Z"},"keywords":["pi-package"],"description":"A pi package that adds the `/codex-usage` command and status widget.","maintainers":[{"name":"baggiiiie","email":"yc@yingchao.dev"}],"readme":"# @baggiiiie/pi-codex-usage\n\nA pi package that adds the `/codex-usage` command and status widget.\n\n## Install\n\n```bash\npi install /path/to/pi-stuff/packages/codex-usage\n```\n\nOr after publishing:\n\n```bash\npi install npm:@baggiiiie/pi-codex-usage\n```\n\n## Usage\n\n```text\n/codex-usage\n/codex-usage refresh\n/codex-usage clear\n/codex-usage help\n```\n\n## Notes\n\nRun `/login` in pi and choose ChatGPT Plus/Pro (Codex) before using the default endpoint.\n\nThe package refreshes in the background every 5 minutes by default instead of on every `turn_end`.\n\nMultiple pi sessions now share a small temp-file cache per provider/url, so they usually reuse the same recent usage snapshot instead of all fetching separately.\n\nOptional environment overrides:\n\n```bash\nCODEX_USAGE_REFRESH_INTERVAL_MS=300000   # 5 min default\nCODEX_USAGE_REFRESH_INTERVAL_MS=0        # disable background refresh\nCODEX_USAGE_CACHE_TTL_MS=300000          # shared cache TTL\nCODEX_USAGE_CACHE_TTL_MS=0               # disable shared cache reuse\n```\n","readmeFilename":"README.md"}