@firstpick/pi-extension-git-footer-status 0.1.1 → 0.1.2

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 (2) hide show
  1. package/index.ts +11 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -495,8 +495,17 @@ export default function gitFooterStatus(pi: ExtensionAPI) {
495
495
  const branch = footerData.getGitBranch();
496
496
  const cwdWithBranch = `${formatCwd(ctx.cwd)}${branch ? ` (${branch})` : ""}`;
497
497
  const cwdText = theme.fg("muted", cwdWithBranch);
498
- const status = footerData.getExtensionStatuses().get("git-footer");
499
- const pathGitLine = status ? `${cwdText}${theme.fg("dim", " │ ")}${status}` : cwdText;
498
+
499
+ const statuses = footerData.getExtensionStatuses();
500
+ const gitStatus = statuses.get("git-footer");
501
+ const otherStatuses = Array.from(statuses.entries())
502
+ .filter(([key, value]) => key !== "git-footer" && Boolean(value))
503
+ .sort(([a], [b]) => a.localeCompare(b))
504
+ .map(([, value]) => value as string);
505
+
506
+ const combinedStatusParts = [gitStatus, ...otherStatuses].filter(Boolean) as string[];
507
+ const combinedStatus = combinedStatusParts.join(` ${theme.fg("dim", "·")} `);
508
+ const pathGitLine = combinedStatus ? `${cwdText}${theme.fg("dim", " │ ")}${combinedStatus}` : cwdText;
500
509
 
501
510
  // Keep default subtle-grey look even when parts contain their own ANSI colors.
502
511
  // Wrapping the whole line once is not enough because inner color resets cancel outer dim.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firstpick/pi-extension-git-footer-status",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Enhanced Pi footer with git status, token usage, context usage, and model telemetry.",
5
5
  "license": "MIT",
6
6
  "keywords": [