@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.
Files changed (3) hide show
  1. package/README.md +11 -0
  2. package/index.ts +4 -4
  3. 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
+ ![Status bar with metrics and git context](images/Statusbar_v0.1.5.png)
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 "@mariozechner/pi-ai";
5
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
6
- import { truncateToWidth, visibleWidth } from "@mariozechner/pi-tui";
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("info", `โ—Œ${snapshot.untracked}`));
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.6",
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
- "@mariozechner/pi-coding-agent": "*",
19
- "@mariozechner/pi-ai": "*",
20
- "@mariozechner/pi-tui": "*"
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",