@firstpick/pi-extension-git-footer-status 0.1.6 โ 0.1.8
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 +11 -0
- package/index.ts +4 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Enhanced Pi footer with git health and model/token telemetry.
|
|
4
4
|
|
|
5
|
+

|
|
6
|
+
|
|
5
7
|
## What it does
|
|
6
8
|
|
|
7
9
|
- Shows compact runtime metrics in the footer:
|
|
@@ -34,3 +36,12 @@ No required configuration.
|
|
|
34
36
|
## Tools
|
|
35
37
|
|
|
36
38
|
None.
|
|
39
|
+
|
|
40
|
+
## Example view
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
๐ช โ126k ยท โ11k โ ๐พ R1.4M โ PI: 6.8k tok โ โก 48.6 tok/s โ ๐ธ $1.667 (sub) โ ๐ง 19.0%/272k (openai-codex) gpt-5.5 โข low
|
|
44
|
+
~/npm-packages (main) โ โ15 โ โฑ15m ยท Agent
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
At a glance you can see token flow, cache reads, prompt-injection size, streaming speed, cost/subscription state, context pressure, model/reasoning level, current repo/branch, dirty-file count, and session time without running `git status`.
|
package/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { access } from "node:fs/promises";
|
|
2
2
|
import { homedir } from "node:os";
|
|
3
3
|
import { isAbsolute, resolve, sep } from "node:path";
|
|
4
|
-
import type { AssistantMessage } from "@
|
|
5
|
-
import type { ExtensionAPI, ExtensionContext } from "@
|
|
6
|
-
import { truncateToWidth, visibleWidth } from "@
|
|
4
|
+
import type { AssistantMessage } from "@earendil-works/pi-ai";
|
|
5
|
+
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
6
|
+
import { truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
|
|
7
7
|
|
|
8
8
|
type GitSnapshot = {
|
|
9
9
|
branch: string;
|
|
@@ -332,7 +332,7 @@ function buildStatusText(ctx: ExtensionContext, snapshot: GitSnapshot): string {
|
|
|
332
332
|
const changesSection: string[] = [];
|
|
333
333
|
if (f.staged && snapshot.staged > 0) changesSection.push(t.fg("success", `+${snapshot.staged}`));
|
|
334
334
|
if (f.unstaged && snapshot.unstaged > 0) changesSection.push(t.fg("warning", `โ${snapshot.unstaged}`));
|
|
335
|
-
if (f.untracked && snapshot.untracked > 0) changesSection.push(t.fg("
|
|
335
|
+
if (f.untracked && snapshot.untracked > 0) changesSection.push(t.fg("muted", `โ${snapshot.untracked}`));
|
|
336
336
|
if (f.conflicted && snapshot.conflicted > 0) changesSection.push(t.fg("error", `!${snapshot.conflicted}`));
|
|
337
337
|
|
|
338
338
|
const extraSection: string[] = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firstpick/pi-extension-git-footer-status",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Enhanced Pi footer with git status, token usage, context usage, and model telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
20
|
-
"@
|
|
18
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
19
|
+
"@earendil-works/pi-ai": "*",
|
|
20
|
+
"@earendil-works/pi-tui": "*"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"index.ts",
|