pi-tokenburn 0.5.4 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -158,6 +158,7 @@ bun install
|
|
|
158
158
|
just check # typecheck + tests + pack check + nushell tests (what CI runs)
|
|
159
159
|
just test # bun test only (with coverage)
|
|
160
160
|
just coverage # tests + a coverage table
|
|
161
|
+
just push-all # push main to every configured remote (origin + the Gitea instances); `just --list` has pull-all, push-tags-all, release-all, the *-force and sync-gitea-* variants
|
|
161
162
|
```
|
|
162
163
|
|
|
163
164
|
**Coverage:** every `bun test` collects coverage (`bunfig.toml`) and **fails below 95% lines / 95% functions**. CI shows the table on the run page and uploads `lcov.info`.
|
|
@@ -176,7 +177,7 @@ CI scripts are [nushell](https://www.nushell.sh) (`scripts/`), the same ones loc
|
|
|
176
177
|
|
|
177
178
|
So library updates need no human: they are merged once CI passes, built, versioned and published as a patch. A downgrade, a failing check, or a major update stops the chain and waits for review.
|
|
178
179
|
|
|
179
|
-
Manual release: `just
|
|
180
|
+
Manual release: `just release patch` (or `minor` / `major` / `X.Y.Z`) bumps, tags and pushes to GitHub; `just release-all patch` pushes to every configured remote; `just push-release-all` pushes an existing bump.
|
|
180
181
|
|
|
181
182
|
**Secrets** (repo settings): `NPM_TOKEN` is an npm *granular access token* with publish rights and "bypass 2FA" (required for CI publishing). Optional: `GH_PAT` (lets a tag push trigger the release itself), `GITEA_TOKEN` (Gitea).
|
|
182
183
|
|
|
@@ -188,18 +189,20 @@ Pi sessions only. For Zed, Claude Code, Codex, Gemini and more, use the Rust [to
|
|
|
188
189
|
|
|
189
190
|
## Related plugins
|
|
190
191
|
|
|
191
|
-
|
|
192
|
+
Four small [pi](https://github.com/earendil-works/pi-coding-agent) extensions that save tokens without adding anything to the system prompt:
|
|
192
193
|
|
|
193
194
|
| Plugin | What it does |
|
|
194
195
|
|---|---|
|
|
195
196
|
| [**pi-edit-first**](https://github.com/sorinirimies/pi-edit-first) | Blocks whole-file `write` rewrites and hand-written project manifests, steering the agent to targeted `edit` calls and scaffolders |
|
|
196
197
|
| [**pi-read-guard**](https://github.com/sorinirimies/pi-read-guard) | Blocks full reads of large files, steering the agent to `offset`/`limit` or search |
|
|
197
198
|
| [**pi-tokenburn**](https://github.com/sorinirimies/pi-tokenburn) | Live token and cost counter in pi's footer, with charts and budgets |
|
|
199
|
+
| [**pi-context-diet**](https://github.com/sorinirimies/pi-context-diet) | Drops stale tool results from the context when the prompt cache is already cold, so long sessions cost less |
|
|
198
200
|
|
|
199
201
|
```bash
|
|
200
202
|
pi install npm:pi-edit-first
|
|
201
203
|
pi install npm:pi-read-guard
|
|
202
204
|
pi install npm:pi-tokenburn
|
|
205
|
+
pi install npm:pi-context-diet
|
|
203
206
|
```
|
|
204
207
|
|
|
205
208
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-tokenburn",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"description": "Pi extension for live token usage monitoring and budget tracking (Day / Week / Month / Total). 0 prompt tokens.",
|
|
5
5
|
"keywords": ["pi-package", "pi-extension", "tokenburn", "tokens", "analytics", "budget", "stats"],
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@earendil-works/pi-coding-agent": "*"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@earendil-works/pi-coding-agent": "^1.
|
|
26
|
+
"@earendil-works/pi-coding-agent": "^1.2.0",
|
|
27
27
|
"@types/bun": "^1.4.3",
|
|
28
28
|
"typescript": "^7.0.2"
|
|
29
29
|
}
|