codex-id 0.2.1 → 0.2.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": "codex-id",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Codex account switching CLI",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
package/src/commands.js CHANGED
@@ -248,11 +248,11 @@ const useDefaultAccount = async (env = process.env, output = process.stdout) =>
248
248
  const getUsageRowColor = ({ isOffline, planLabel, nextUsed, totalUsed, nextPercent, totalPercent }) => {
249
249
  if (isOffline) return 'lightRed';
250
250
  if (planLabel === 'Free') {
251
- if (totalUsed >= 100 || totalPercent === '0%') return 'lightGray';
251
+ if (totalUsed >= 100 || totalPercent === '0%') return 'gray';
252
252
  if (totalUsed >= 97) return 'lightYellow';
253
253
  return '';
254
254
  }
255
- if (nextUsed >= 100 || nextPercent === '0%' || totalPercent === '0%') return 'lightGray';
255
+ if (nextUsed >= 100 || nextPercent === '0%' || totalPercent === '0%') return 'gray';
256
256
  if (nextUsed >= 97) return 'lightYellow';
257
257
  return '';
258
258
  };
package/src/terminal.js CHANGED
@@ -15,7 +15,7 @@ const colorize = (value, color, env = process.env, stream = process.stdout) => {
15
15
  if (!stream.isTTY || env.NO_COLOR) return value;
16
16
  const colors = {
17
17
  green: 32,
18
- lightGray: '38;2;230;230;230',
18
+ gray: 90,
19
19
  lightRed: '38;2;255;160;160',
20
20
  lightYellow: '38;2;255;230;150',
21
21
  };