@ohgodtamit/pi-usage 0.1.0-alpha.0 → 0.1.0
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/CHANGELOG.md +7 -0
- package/README.md +8 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 64d2adf: Introduce the @ohgodtamit/pi-usage package with cost and token attribution, live provider quotas, incremental caching, model-registry credential resolution, and complete usage and provenance documentation.
|
|
8
|
+
- 64d2adf: Add an eight-view keyboard TUI with RPC-compatible paginated rendering and navigation, delegation analytics, progress and freshness reporting, headless guards, and broad provider compatibility.
|
|
9
|
+
|
|
3
10
|
## 0.1.0-alpha.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -20,11 +20,9 @@ and the cache-input reuse ratio. Mirrors the layout and wording of Claude Code's
|
|
|
20
20
|
> `~/.pi/agent/settings.json`.
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
pi install npm:@ohgodtamit/pi-usage
|
|
23
|
+
pi install npm:@ohgodtamit/pi-usage
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
The `alpha` tag is required until the first stable release is available on `latest`.
|
|
27
|
-
|
|
28
26
|
Then inside pi:
|
|
29
27
|
|
|
30
28
|
```
|
|
@@ -34,7 +32,7 @@ Then inside pi:
|
|
|
34
32
|
Verify it loaded:
|
|
35
33
|
|
|
36
34
|
```bash
|
|
37
|
-
pi list # should show npm:@ohgodtamit/pi-usage
|
|
35
|
+
pi list # should show npm:@ohgodtamit/pi-usage
|
|
38
36
|
```
|
|
39
37
|
|
|
40
38
|
Type `/` — `/usage` should appear in slash autocomplete.
|
|
@@ -42,7 +40,7 @@ Type `/` — `/usage` should appear in slash autocomplete.
|
|
|
42
40
|
**Don't do this** (common mistake — package installs but pi ignores it):
|
|
43
41
|
|
|
44
42
|
```bash
|
|
45
|
-
npm install -g @ohgodtamit/pi-usage
|
|
43
|
+
npm install -g @ohgodtamit/pi-usage # ❌ pi will not detect this
|
|
46
44
|
```
|
|
47
45
|
|
|
48
46
|
---
|
|
@@ -339,17 +337,15 @@ quota integration can still surface captured rate-limit headers.
|
|
|
339
337
|
Use **`pi install`**, not plain `npm install`. Pi registers packages in `settings.json` under `"packages"` and loads extensions from the `pi.extensions` manifest in `package.json`.
|
|
340
338
|
|
|
341
339
|
```bash
|
|
342
|
-
pi install npm:@ohgodtamit/pi-usage
|
|
340
|
+
pi install npm:@ohgodtamit/pi-usage
|
|
343
341
|
```
|
|
344
342
|
|
|
345
|
-
The `alpha` tag is required until the first stable release is available on `latest`.
|
|
346
|
-
|
|
347
343
|
Then run `/reload` in pi (or restart the CLI). Commands like `/usage` should appear in slash autocomplete.
|
|
348
344
|
|
|
349
345
|
Quick test without persisting to settings:
|
|
350
346
|
|
|
351
347
|
```bash
|
|
352
|
-
pi -e npm:@ohgodtamit/pi-usage
|
|
348
|
+
pi -e npm:@ohgodtamit/pi-usage
|
|
353
349
|
```
|
|
354
350
|
|
|
355
351
|
From this repository checkout:
|
|
@@ -368,8 +364,8 @@ pi install ./packages/pi-usage
|
|
|
368
364
|
|
|
369
365
|
| Symptom | Fix |
|
|
370
366
|
|---------|-----|
|
|
371
|
-
| `/usage` not in autocomplete | Run `pi install npm:@ohgodtamit/pi-usage
|
|
372
|
-
| Installed with `npm install -g` but pi ignores it | Use `pi install npm:@ohgodtamit/pi-usage
|
|
367
|
+
| `/usage` not in autocomplete | Run `pi install npm:@ohgodtamit/pi-usage`, then `/reload` |
|
|
368
|
+
| Installed with `npm install -g` but pi ignores it | Use `pi install npm:@ohgodtamit/pi-usage` instead |
|
|
373
369
|
| Added `npm:...` to `"extensions"` in settings | Wrong key — use `"packages"`, or run `pi install` |
|
|
374
370
|
| Extension listed but disabled | Run `pi config` and enable the extension resource |
|
|
375
371
|
|
|
@@ -377,7 +373,7 @@ Verify install:
|
|
|
377
373
|
|
|
378
374
|
```bash
|
|
379
375
|
pi list
|
|
380
|
-
# should show: npm:@ohgodtamit/pi-usage
|
|
376
|
+
# should show: npm:@ohgodtamit/pi-usage
|
|
381
377
|
```
|
|
382
378
|
|
|
383
379
|
> **Note:** `npm install` only downloads the package to disk. Pi does not auto-scan global or local `node_modules` — you must register the package with `pi install` so it appears in `"packages"`.
|