@ogulcancelik/pi-minimal-footer 0.1.11 → 0.1.12

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 +1 -0
  2. package/index.ts +6 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -40,6 +40,7 @@ Environment variables (all optional):
40
40
  | ------------------------------- | -------------------------------------------------------- | ------- |
41
41
  | `PI_MINIMAL_FOOTER_SHOW_CWD` | Show current working directory in footer status line | `1` |
42
42
  | `PI_MINIMAL_FOOTER_SHOW_BRANCH` | Show git branch/dirty/ahead/behind in footer status line | `1` |
43
+ | `PI_MINIMAL_FOOTER_SHOW_PROVIDER` | Show provider/full-model-id instead of the short model ID | `0` |
43
44
 
44
45
  Accepted false values: `0`, `false`, `no`, `off` (case-insensitive).
45
46
 
package/index.ts CHANGED
@@ -815,6 +815,7 @@ export default function (pi: ExtensionAPI) {
815
815
  // Optional visibility toggles (default: enabled)
816
816
  const showCwd = parseBooleanEnv(process.env.PI_MINIMAL_FOOTER_SHOW_CWD, true);
817
817
  const showBranch = parseBooleanEnv(process.env.PI_MINIMAL_FOOTER_SHOW_BRANCH, true);
818
+ const showProvider = parseBooleanEnv(process.env.PI_MINIMAL_FOOTER_SHOW_PROVIDER, false);
818
819
 
819
820
  function formatTokenCount(tokens: number): string {
820
821
  if (tokens >= 1_000_000) {
@@ -1087,7 +1088,11 @@ export default function (pi: ExtensionAPI) {
1087
1088
  }
1088
1089
 
1089
1090
  // Model + thinking
1090
- const modelName = ctx.model?.id?.split("/").pop() || "no-model";
1091
+ const modelName = ctx.model
1092
+ ? showProvider
1093
+ ? `${ctx.model.provider}/${ctx.model.id}`
1094
+ : ctx.model.id.split("/").pop() || "no-model"
1095
+ : "no-model";
1091
1096
  const plainModelStr = theme.fg("muted", modelName);
1092
1097
  let modelStr = plainModelStr;
1093
1098
  if (ctx.model?.reasoning) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ogulcancelik/pi-minimal-footer",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Minimal footer for pi with context gauge and subscription usage bars",
5
5
  "type": "module",
6
6
  "keywords": [