claude-cac 1.1.9 → 1.2.0

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.
Files changed (2) hide show
  1. package/cac +4 -3
  2. package/package.json +1 -1
package/cac CHANGED
@@ -10,7 +10,7 @@ VERSIONS_DIR="$CAC_DIR/versions"
10
10
  # ━━━ utils.sh ━━━
11
11
  # ── utils: 颜色、读写、UUID、proxy 解析 ───────────────────────
12
12
 
13
- CAC_VERSION="1.1.9"
13
+ CAC_VERSION="1.2.0"
14
14
 
15
15
  _read() { [[ -f "$1" ]] && tr -d '[:space:]' < "$1" || echo "${2:-}"; }
16
16
  _die() { printf '%b\n' "$(_red "error:") $*" >&2; exit 1; }
@@ -1749,8 +1749,8 @@ cmd_check() {
1749
1749
  fi
1750
1750
  fi
1751
1751
 
1752
- # 冲突检测
1753
- local conflict_resolved=true
1752
+ # 冲突检测(仅代理连通时才有意义)
1753
+ if [[ -n "$proxy_ip" ]]; then
1754
1754
  local os; os=$(_detect_os)
1755
1755
  local has_conflict=false
1756
1756
  local tun_procs="clash|mihomo|sing-box|surge|shadowrocket|v2ray|xray|hysteria|tuic|nekoray"
@@ -1793,6 +1793,7 @@ cmd_check() {
1793
1793
  problems+=("代理冲突:需在代理软件中为 $proxy_host 添加 DIRECT 规则")
1794
1794
  fi
1795
1795
  fi
1796
+ fi
1796
1797
  else
1797
1798
  summary_parts+=("API Key 模式")
1798
1799
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-cac",
3
- "version": "1.1.9",
3
+ "version": "1.2.0",
4
4
  "description": "Isolate, protect, and manage your Claude Code — versions, environments, identity, and proxy.",
5
5
  "bin": {
6
6
  "cac": "cac"