pi-openai-usage 0.1.2 → 0.1.3

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/README.md CHANGED
@@ -145,15 +145,15 @@ Use the interactive menu for common display settings. Advanced visual customizat
145
145
  | `colors.custom.mode` | string | `"step"` | `step`, `gradient`. |
146
146
  | `colors.custom.stops` | array | see below | Array of color stops sorted by `percent`. |
147
147
 
148
- Default `colors.custom.stops`:
148
+ Default `colors.custom.stops` (matching the built-in traffic scheme):
149
149
 
150
150
  | percent | color | label |
151
151
  | --- | --- | --- |
152
- | `80` | `success` | `success` |
153
- | `60` | `#65a30d` | `lime/olive` |
154
- | `40` | `warning` | `warning` |
155
- | `20` | `#c2410c` | `orange` |
156
- | `0` | `error` | `error` |
152
+ | `80` | `#22c55e` | `green` |
153
+ | `60` | `#84cc16` | `lime` |
154
+ | `40` | `#eab308` | `yellow` |
155
+ | `20` | `#f97316` | `orange` |
156
+ | `0` | `#ef4444` | `red` |
157
157
 
158
158
  Each custom color stop has this shape:
159
159
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-openai-usage",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Focused Pi extension package for showing OpenAI Codex subscription usage in the status line.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/color.ts CHANGED
@@ -39,11 +39,11 @@ const PI_THEME_COLOR_TOKENS = new Set<PiThemeColorToken>([
39
39
  ]);
40
40
 
41
41
  const TRAFFIC_STOPS: ColorStop[] = [
42
- { percent: 80, color: "success" },
43
- { percent: 60, color: "#65a30d" },
44
- { percent: 40, color: "warning" },
45
- { percent: 20, color: "#c2410c" },
46
- { percent: 0, color: "error" },
42
+ { percent: 80, color: "#22c55e" },
43
+ { percent: 60, color: "#84cc16" },
44
+ { percent: 40, color: "#eab308" },
45
+ { percent: 20, color: "#f97316" },
46
+ { percent: 0, color: "#ef4444" },
47
47
  ];
48
48
 
49
49
  const CYAN_DARK_STOPS: ColorStop[] = [
package/src/config.ts CHANGED
@@ -183,11 +183,11 @@ export type UsageConfigPatch = {
183
183
  };
184
184
 
185
185
  const DEFAULT_COLOR_STOPS: ColorStop[] = [
186
- { percent: 80, color: "success", label: "success" },
187
- { percent: 60, color: "#65a30d", label: "lime/olive" },
188
- { percent: 40, color: "warning", label: "warning" },
189
- { percent: 20, color: "#c2410c", label: "orange" },
190
- { percent: 0, color: "error", label: "error" },
186
+ { percent: 80, color: "#22c55e", label: "green" },
187
+ { percent: 60, color: "#84cc16", label: "lime" },
188
+ { percent: 40, color: "#eab308", label: "yellow" },
189
+ { percent: 20, color: "#f97316", label: "orange" },
190
+ { percent: 0, color: "#ef4444", label: "red" },
191
191
  ];
192
192
 
193
193
  export const DEFAULT_USAGE_CONFIG: UsageConfig = {