@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhushanwen/pi-statusline",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Pi statusline extension — shows context usage, token speed, and provider quota in the footer.",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
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}`)}${p.d("次")} ${pctCol}`);
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}`)}${p.d("次")} ${pctCol}`);
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: "生成 statusline providers.json + secrets.json demoLLM 引导)",
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();