skillfree 0.1.23 → 0.1.24

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/install.sh +3 -14
  2. package/package.json +1 -1
package/install.sh CHANGED
@@ -116,20 +116,9 @@ while true; do
116
116
  continue
117
117
  fi
118
118
 
119
- # 验证 Key
120
- printf " 验证中..."
121
- HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
122
- -H "Authorization: Bearer $API_KEY" \
123
- "https://skillfree.tech/v1/balance")
124
-
125
- if [ "$HTTP_CODE" = "200" ]; then
126
- echo -e " ${GREEN}✓${NC}"
127
- break
128
- else
129
- echo -e " ${RED}✗${NC} (HTTP $HTTP_CODE)"
130
- echo -e " ${RED}✗${NC} Key 无效,请检查后重试\n"
131
- API_KEY=""
132
- fi
119
+ # 格式正确,直接保存(不做网络验证,避免 GFW 干扰)
120
+ success "API Key 已保存"
121
+ break
133
122
  done
134
123
 
135
124
  # 有效 Key → 交给 CLI 写入配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillfree",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "🦞 一个 API,满足所有龙虾技能需求",
5
5
  "main": "bin/skillfree.js",
6
6
  "bin": {