{"_id":"@duskmoon/pi-starship-footer","name":"@duskmoon/pi-starship-footer","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@duskmoon/pi-starship-footer","version":"0.1.0","description":"Starship-powered statusline for Pi coding agent","main":"index.ts","pi":{"extensions":["./index.ts"]},"peerDependencies":{"@earendil-works/pi-ai":"*","@earendil-works/pi-coding-agent":"*","@earendil-works/pi-tui":"*"},"keywords":["pi-package","pi-extension","starship","statusline","footer"],"author":{"name":"duskmoon314"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/duskmoon314/pi-starship-footer.git"},"homepage":"https://github.com/duskmoon314/pi-starship-footer","bugs":{"url":"https://github.com/duskmoon314/pi-starship-footer/issues"},"gitHead":"61103dd03c372c7997f7ecb8275fbff965513706","_id":"@duskmoon/pi-starship-footer@0.1.0","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-nHH3Gd6DYy/WydJFN583AZ4T7up+KFohFaD6ASYfb9FmGeI+5HQwhtr38MVspTFWXVLhM4fUXWBea3XvpMXnbw==","shasum":"957b7dc8b3c87cf2aee7e4fa951db9c5fbbdf5ca","tarball":"https://registry.npmjs.org/@duskmoon/pi-starship-footer/-/pi-starship-footer-0.1.0.tgz","fileCount":6,"unpackedSize":27475,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDfTPMdoOV8YeWK8B/qrZ4sWdiWfAQ81rQRb+OFpskckAIhAL/TkjMWzASQoAMtJPtxFElLf2B4bOXUSWn3pd+hR4ty"}]},"_npmUser":{"name":"duskmoon","email":"campbell.he@icloud.com"},"directories":{},"maintainers":[{"name":"duskmoon","email":"campbell.he@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-starship-footer_0.1.0_1787990681392_0.3592000934016448"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-29T08:04:41.185Z","0.1.0":"2026-08-29T08:04:41.586Z","modified":"2026-08-29T08:04:41.799Z"},"maintainers":[{"name":"duskmoon","email":"campbell.he@icloud.com"}],"description":"Starship-powered statusline for Pi coding agent","homepage":"https://github.com/duskmoon314/pi-starship-footer","keywords":["pi-package","pi-extension","starship","statusline","footer"],"repository":{"type":"git","url":"git+ssh://git@github.com/duskmoon314/pi-starship-footer.git"},"author":{"name":"duskmoon314"},"bugs":{"url":"https://github.com/duskmoon314/pi-starship-footer/issues"},"license":"MIT","readme":"# pi-starship-footer\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nStarship-powered footer for [Pi coding agent](https://github.com/earendil-works/pi-coding-agent).\n\n## Preview\n\n```\n↑223k ↓67k CR 30M CW 5k 󰑐 99.9% 18.8k/1.0M (15%) $0.0042      ⏱ 5m32s deepseek-v4-flash [high] (deepseek)\n󰉋 my-project 󰊢 main ✘!?                                              󰎙 v24.15.0 󰌠 v3.12.3\n```\n\n- **Line 1**: token stats (↑ input, ↓ output, CR cache-read, CW cache-write, 󰑐 cache-hit), context, cost | session time, model [thinking] (provider)\n- **Line 2**: directory, git branch/status, detected languages\n\nRequires [starship](https://starship.rs/). If it is not installed, a warning\nwith install instructions is shown and pi's default footer stays in place.\n\n## Installation\n\n```bash\npi install npm:@duskmoon/pi-starship-footer      # from npm\npi install git:github.com/duskmoon314/pi-starship-footer   # from git\n```\n\nRequires [starship](https://starship.rs/):\n\n```bash\ncurl -sS https://starship.rs/install.sh | sh   # or: brew install starship / cargo install starship\n```\n\n## Configuration\n\nConfig search order — first match wins:\n\n1. `<cwd>/.pi/pi-starship-footer.toml` (project)\n2. `~/.pi/pi-starship-footer.toml` (global)\n3. `<extension-dir>/pi-starship-footer.toml` (bundled default)\n\nCopy the bundled [`pi-starship-footer.toml`](pi-starship-footer.toml) as a\nstarting point. It is a standard [starship config](https://starship.rs/config/);\nsession data arrives through `PI_*` [env_var modules](https://starship.rs/config/#environment-variable):\n\n```toml\nadd_newline = false\nformat = '''\n${env_var.PI_TOKENS} ${env_var.PI_CONTEXT} ${env_var.PI_COST} $fill ${env_var.PI_MODEL} ${env_var.PI_THINKING}\n$directory$git_branch$git_status\n'''\n```\n\n> **Note:** Variables with no data (e.g. `PI_CACHE_HIT` before the first\n> response, `PI_THINKING` when thinking is off) are **unset**, not empty —\n> starship hides their modules entirely. Put icons/brackets in the module\n> `format`, not the top-level format string, so they disappear too.\n\n## Environment Variables\n\nDisplay-oriented (used by the default config):\n\n| Variable | Description | Example |\n|----------|-------------|---------|\n| `PI_INPUT` | Input tokens | `↑223k` |\n| `PI_OUTPUT` | Output tokens | `↓67k` |\n| `PI_CACHE_READ` | Cache read | `CR 30M` |\n| `PI_CACHE_WRITE` | Cache write | `CW 5k` |\n| `PI_CACHE_HIT` | Cache hit rate | `99.9%` |\n| `PI_CONTEXT` | Context usage | `18.8k/1.0M (15%)` |\n| `PI_COST` | Session cost | `$0.0042` |\n| `PI_SESSION_TIME` | Session duration | `5m32s` |\n| `PI_MODEL` | Model ID | `deepseek-v4-flash` |\n| `PI_THINKING` | Thinking level (unset when off) | `high` |\n| `PI_PROVIDER` | Provider | `deepseek` |\n\nRaw / additional:\n\n| Variable | Description | Example |\n|----------|-------------|---------|\n| `PI_TOKENS` | Combined token summary | `↑223k ↓67k R30M CH99.9%` |\n| `PI_TOKENS_INPUT/OUTPUT/CACHE_READ/CACHE_WRITE` | Raw token counts | `223000` |\n| `PI_CONTEXT_PCT/USED/TOTAL` | Context parts | `15`, `18800`, `1000000` |\n| `PI_COST_RAW` | Cost as number | `0.0042` |\n| `PI_CACHE_HIT_RAW` | Hit rate without `%` | `99.9` |\n| `PI_MODEL_FULL` / `PI_MODEL_NAME` | `provider/id` / display name | `deepseek/deepseek-v4-flash` |\n| `PI_SESSION_ID/NAME/FILE/DIR` | Session identifiers | … |\n| `PI_SESSION_TIME_MS` | Duration in ms | `332000` |\n| `PI_CWD` / `PI_GIT_BRANCH` | Working dir / branch | `/home/user/project`, `main` |\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `/starship-footer` | Show status and available variables |\n| `/starship-footer-reload` | Reload configuration |\n\n## Credits\n\n- [starship-claude](https://github.com/martinemde/starship-claude) — inspiration\n- [Starship](https://starship.rs/) — the prompt framework\n\n## License\n\nMIT License © 2026 duskmoon314\n","readmeFilename":"README.md","_rev":"1-e0b1336719ba0fca0ffa7dd60e7eb64e"}