pi-status-footer 1.0.0 → 1.0.1
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 +6 -4
- package/package.json +4 -3
- package/stats-footer.ts +3 -2
package/README.md
CHANGED
|
@@ -4,14 +4,16 @@ A compact, zero-config two-line status footer for [pi](https://github.com/earend
|
|
|
4
4
|
|
|
5
5
|
## What it looks like
|
|
6
6
|
|
|
7
|
+

|
|
8
|
+
|
|
7
9
|
```
|
|
8
10
|
🤖 openai/gpt-4o 💭 medium ↑5.2k ↓8.1k ⚡42 t/s 💾63% 📦38%/128k
|
|
9
|
-
📁 my-project ▸ main +3 -1
|
|
11
|
+
📁 my-project ▸ main +3 -1 ⏳ 4:32 💬 1:18
|
|
10
12
|
```
|
|
11
13
|
|
|
12
14
|
**Line 1 — Model & stats:** provider/model, thinking level with themed color, input/output tokens, tokens per second (live while streaming), cache hit rate, context window usage with color-coded fullness (green < 60%, yellow < 80%, red ≥ 80%).
|
|
13
15
|
|
|
14
|
-
**Line 2 — Project & timers:** repo folder name, git branch, live working-tree diff from HEAD (+N added lines, -M deleted), agent run timer, current turn timer.
|
|
16
|
+
**Line 2 — Project & timers:** repo folder name, git branch, live working-tree diff from HEAD (+N added lines, -M deleted), agent run timer (⏳), current turn timer (💬).
|
|
15
17
|
|
|
16
18
|
Everything auto-fits to your terminal width — lower-priority segments drop off when space is tight (model name is always shown, truncated if needed).
|
|
17
19
|
|
|
@@ -62,8 +64,8 @@ After installation, the footer appears automatically on the next pi TUI session.
|
|
|
62
64
|
| 📁 repo | `📁 my-project` | Git repo root basename (from `ctx.cwd` walk-up) |
|
|
63
65
|
| ▸ branch | `▸ main` | `footerData.getGitBranch()`, auto-updates |
|
|
64
66
|
| +N -M diff | `+3 -1` | Async `git diff --shortstat HEAD` (1s debounced) |
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
+
| ⏳ working | `⏳ 4:32` | Elapsed time since `agent_start`, HH:MM:SS above 1h |
|
|
68
|
+
| 💬 turn | `💬 1:18` | Elapsed time since last `turn_start` |
|
|
67
69
|
|
|
68
70
|
## How it works
|
|
69
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-status-footer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Compact two-line status footer for pi: model, thinking level, tokens, TPS, cache hit rate, context usage, live git diff, and working/turn timers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"pi": {
|
|
36
36
|
"extensions": [
|
|
37
37
|
"./stats-footer.ts"
|
|
38
|
-
]
|
|
38
|
+
],
|
|
39
|
+
"image": "https://raw.githubusercontent.com/kslamph/pi-status-footer/main/docs/footer-demo.png"
|
|
39
40
|
}
|
|
40
|
-
}
|
|
41
|
+
}
|
package/stats-footer.ts
CHANGED
|
@@ -422,9 +422,10 @@ export default function statsFooter(pi: ExtensionAPI) {
|
|
|
422
422
|
gitSegments.push(folderText);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
+
// ⏳ = work in progress (whole agent run), 💬 = current turn.
|
|
425
426
|
gitSegments.push(
|
|
426
|
-
|
|
427
|
-
|
|
427
|
+
`⏳ ${theme.fg("accent", formatDuration(elapsed))}`,
|
|
428
|
+
`💬 ${theme.fg("accent", formatDuration(turnElapsed))}`,
|
|
428
429
|
);
|
|
429
430
|
const gitLine = fitSegments(
|
|
430
431
|
gitSegments,
|