@geoly-ai/skills-hub 0.3.3 → 0.3.4
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 +103 -27
- package/package.json +1 -1
- package/src/cli.mjs +4 -0
- package/src/commands/install.mjs +1 -1
- package/src/commands/project-lockfile.mjs +116 -0
- package/src/commands/refgraph.mjs +290 -0
- package/src/commands/registry.mjs +12 -11
- package/src/commands/remove.mjs +378 -0
- package/src/commands/update.mjs +835 -0
- package/src/download.mjs +15 -2
package/src/download.mjs
CHANGED
|
@@ -193,8 +193,21 @@ export async function download(url, {
|
|
|
193
193
|
} else if (hasProxyEnv && process.env.NODE_USE_ENV_PROXY === '0') {
|
|
194
194
|
hint = '\n 你配了代理,但显式设了 NODE_USE_ENV_PROXY=0 —— CLI 因此没走代理。';
|
|
195
195
|
} else if (!hasProxyEnv) {
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
// 🔴 **系统代理不等于环境变量。** Clash / Surge / 公司 VPN 客户端
|
|
197
|
+
// 通常只写 macOS 的系统代理设置,而 **Node 的内建 fetch 不读它**
|
|
198
|
+
// (curl 和浏览器读,所以「浏览器能开 github」不能证明 CLI 能)。
|
|
199
|
+
// 2026-09-04 用户就是这么撞上的:一句「设置 HTTPS_PROXY」
|
|
200
|
+
// 对一个「我明明挂着代理」的人来说,读起来像是答非所问。
|
|
201
|
+
hint = '\n 连不上 —— 无法访问 github.com。'
|
|
202
|
+
+ '\n ⚠️ 如果你在用 Clash / Surge / VPN 客户端:它们通常只设**系统代理**,'
|
|
203
|
+
+ '\n 而 Node 不读系统代理(curl 和浏览器读,所以浏览器能打开不算数)。'
|
|
204
|
+
+ '\n 要显式导出环境变量:'
|
|
205
|
+
+ (process.platform === 'darwin'
|
|
206
|
+
? '\n scutil --proxy | grep -iE "HTTPSProxy|HTTPSPort" # 看端口'
|
|
207
|
+
+ '\n export HTTPS_PROXY=http://127.0.0.1:<端口>'
|
|
208
|
+
: '\n export HTTPS_PROXY=http://<host>:<port>')
|
|
209
|
+
+ '\n (NO_PROXY 也会被尊重。代理支持需要 Node ≥ 24,当前 '
|
|
210
|
+
+ process.version + '。)';
|
|
198
211
|
} else {
|
|
199
212
|
hint = '\n 代理已配置且已启用,但仍然连不上 —— 请检查代理本身是否可达。';
|
|
200
213
|
}
|