@firstpick/pi-extension-stats 0.1.2 → 0.1.4

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.
Files changed (3) hide show
  1. package/README.md +18 -0
  2. package/index.ts +1 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Token and cost analytics for Pi session history.
4
4
 
5
+ ![Token stats dashboard](images/stats_v0.1.2.png)
6
+
5
7
  ## What it does
6
8
 
7
9
  - Parses local Pi session `.jsonl` files for the current workspace.
@@ -29,3 +31,19 @@ No required configuration.
29
31
  ## Tools
30
32
 
31
33
  None.
34
+
35
+ ## Example view
36
+
37
+ ```text
38
+ /stats 7
39
+ Token usage — last 7 days
40
+
41
+ May 06 in 18k out 4k $0.11 ████
42
+ May 07 in 42k out 9k $0.29 █████████
43
+ May 08 in 12k out 2k $0.06 ██
44
+
45
+ Total: 72k input, 15k output, $0.46
46
+ Cache hit rate: 38%
47
+ ```
48
+
49
+ Use it to understand which days, sessions, and models are driving token volume and cost.
package/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as fs from "node:fs";
2
2
  import * as path from "node:path";
3
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
3
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
4
4
 
5
5
  type DayUsage = {
6
6
  input: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firstpick/pi-extension-stats",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Token and cost usage analytics command for Pi session history.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -15,7 +15,7 @@
15
15
  ]
16
16
  },
17
17
  "peerDependencies": {
18
- "@mariozechner/pi-coding-agent": "*"
18
+ "@earendil-works/pi-coding-agent": "*"
19
19
  },
20
20
  "files": [
21
21
  "index.ts",