@router-for-me/pi-cliproxyapi-provider 1.4.11 → 1.4.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.
@@ -5,6 +5,10 @@ import { type PauseController, pauseController } from "./pause.ts";
5
5
 
6
6
  const FAST_FOOTER_PATCH = Symbol.for("@router-for-me/pi-cliproxyapi-provider/fast-footer-patch");
7
7
  const FAST_REFRESH_STATUS_KEY = "cliproxyapi-fast-refresh";
8
+ // Orange labels: truecolor #ffa500, xterm 214
9
+ const ORANGE_TRUECOLOR = "\x1b[38;2;255;165;0m";
10
+ const ORANGE_256 = "\x1b[38;5;214m";
11
+ const FG_RESET = "\x1b[39m";
8
12
 
9
13
  interface MutableModel {
10
14
  id: string;
@@ -57,6 +61,13 @@ export function formatFastModelStatus(
57
61
  return status;
58
62
  }
59
63
 
64
+ /** Colorize status labels in orange (distinct from yellow warning/fast). */
65
+ export function formatOrangeLabel(theme: { getColorMode?: () => string } | undefined, text: string): string {
66
+ if (!theme) return text;
67
+ const ansi = theme.getColorMode?.() === "truecolor" ? ORANGE_TRUECOLOR : ORANGE_256;
68
+ return `${ansi}${text}${FG_RESET}`;
69
+ }
70
+
60
71
  function installFooterPatch(controller: FastFooterController): void {
61
72
  const prototype = FooterComponent.prototype as PatchableFooterPrototype;
62
73
  let patchState = prototype[FAST_FOOTER_PATCH];
@@ -158,7 +169,7 @@ export class FastFooterController {
158
169
  formatModelStatus(modelName: string, supportsReasoning: boolean, thinkingLevel: string, fastEnabled = true): string {
159
170
  const theme = this.activeContext?.ui.theme;
160
171
  const fastLabel = theme?.fg("warning", "fast") ?? "fast";
161
- const pausedLabel = theme?.fg("warning", "paused") ?? "paused";
172
+ const pausedLabel = formatOrangeLabel(theme, "paused");
162
173
  return formatFastModelStatus(
163
174
  modelName,
164
175
  supportsReasoning,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@router-for-me/pi-cliproxyapi-provider",
3
- "version": "1.4.11",
3
+ "version": "1.4.12",
4
4
  "description": "Pi provider extension that auto-registers CLIProxyAPI models, plus TUI elapsed/TPS status",
5
5
  "type": "module",
6
6
  "keywords": [