@zhushanwen/pi-statusline 0.4.1 → 0.4.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.
- package/package.json +1 -1
- package/src/format.ts +1 -1
- package/src/index.ts +1 -1
- package/src/setup.ts +1 -1
package/package.json
CHANGED
package/src/format.ts
CHANGED
|
@@ -185,7 +185,7 @@ export function buildSearchLine(
|
|
|
185
185
|
if (used === undefined || !total || total <= 0) continue;
|
|
186
186
|
const pct = Math.round((used / total) * PERCENT_SCALE);
|
|
187
187
|
const pctCol = themeFg(pctColor(pct), `${pct}%`);
|
|
188
|
-
parts.push(`${p.d(prov.label)} ${p.g(`${used}`)}/${p.v(`${total}`)}
|
|
188
|
+
parts.push(`${p.d(prov.label)} ${p.g(`${used}`)}/${p.v(`${total}`)} ${pctCol}`);
|
|
189
189
|
}
|
|
190
190
|
return parts.join(" | ");
|
|
191
191
|
}
|
package/src/index.ts
CHANGED
|
@@ -416,7 +416,7 @@ function buildSearchLine(
|
|
|
416
416
|
if (used === undefined || !total || total <= 0) continue;
|
|
417
417
|
const pct = Math.round((used / total) * PERCENT_SCALE);
|
|
418
418
|
const pctCol = theme.fg(pctColor(pct), `${pct}%`);
|
|
419
|
-
parts.push(`${p.d(prov.label)} ${p.g(`${used}`)}/${p.v(`${total}`)}
|
|
419
|
+
parts.push(`${p.d(prov.label)} ${p.g(`${used}`)}/${p.v(`${total}`)} ${pctCol}`);
|
|
420
420
|
}
|
|
421
421
|
return parts.join(" | ");
|
|
422
422
|
}
|
package/src/setup.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { buildGenerateDemoPrompt } from "./setup-prompts.js";
|
|
|
23
23
|
|
|
24
24
|
export function registerSetupCommand(pi: ExtensionAPI): void {
|
|
25
25
|
pi.registerCommand("setup-statusline", {
|
|
26
|
-
description: "
|
|
26
|
+
description: "Generate statusline providers.json + secrets.json demo (LLM-guided)",
|
|
27
27
|
handler: async (_args: string, ctx: ExtensionCommandContext) => {
|
|
28
28
|
const configDir = getConfigDir();
|
|
29
29
|
const providersPath = getProvidersConfigPath();
|