@adithya-13/cc-switch 1.0.1 → 1.0.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/bin/cclaude.js CHANGED
@@ -6,6 +6,7 @@ import { PRESETS } from "../src/presets.js";
6
6
  import { loadKeys, loadProfiles } from "../src/profiles.js";
7
7
 
8
8
  const RATE_LIMIT_PATTERNS = [
9
+ /you['']ve hit your limit/i,
9
10
  /usage limit reached/i,
10
11
  /rate limit/i,
11
12
  /Claude\.ai usage limit/i,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adithya-13/cc-switch",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Switch Claude Code between providers (Claude Pro, z.ai, Kimi, OpenRouter, DeepSeek, and more)",
5
5
  "keywords": [
6
6
  "claude",
@@ -17,11 +17,12 @@ export function listCommand() {
17
17
  const hasKey = preset.requiresKey === false || !!keys[name]
18
18
  const marker = isActive ? chalk.green('●') : chalk.gray('○')
19
19
  const label = isActive ? chalk.green.bold(preset.name) : chalk.white(preset.name)
20
+ const alias = chalk.gray(`[${name}]`)
20
21
  const keyStatus = preset.requiresKey === false
21
22
  ? chalk.gray('OAuth')
22
23
  : hasKey ? chalk.green(`key ${maskKey(keys[name])}`) : chalk.yellow('no key')
23
24
 
24
- console.log(` ${marker} ${label.padEnd(isActive ? 33 : 25)} ${keyStatus}`)
25
+ console.log(` ${marker} ${label.padEnd(isActive ? 28 : 20)} ${alias.padEnd(10)} ${keyStatus}`)
25
26
  if (preset.description) {
26
27
  console.log(` ${chalk.gray(preset.description)}`)
27
28
  }
package/src/presets.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // env: null means "no env block" (use Claude OAuth)
3
3
 
4
4
  export const PRESETS = {
5
- pro: {
5
+ claude: {
6
6
  name: "Claude Pro/Max",
7
7
  description: "Claude subscription (Pro, Max, Team)",
8
8
  env: null, // removes env block, falls back to OAuth