network-proxy-guard 0.1.0 → 0.1.1

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 CHANGED
@@ -7,37 +7,36 @@
7
7
 
8
8
  **安装不会配置网络,也不会清理 Claude。** 配置和清理分别默认 dry-run,必须明确使用 `--yes` 才会执行。
9
9
 
10
- ## 功能
10
+ ## 实测参考环境(非强制)
11
11
 
12
- - Clash Verge:保留旧配置、备份、生成并激活 VLESS Reality 本地配置、规则模式、关闭 PAC 直连兜底
13
- - 分流诊断:区分直连/显式代理/VPS 直连,检查 AI、Google、Stripe 等域名的实际路径
14
- - Google 地区检测:VPS 直连证据 + 多地理库交叉验证,证据足够才生成工单草稿
15
- - Claude 重置:独立确认,清理常见 Claude Code/Desktop/CC Switch 配置,保留程序与共享 skills
16
- - 手机交付:同一份节点配置生成 VLESS 链接与本地二维码,不调用在线二维码服务
17
- - Xray 服务端:提供带确认、备份、验证的 Reality 配置 runbook,不盲目复制固定端口或伪装域名
12
+ 这套工具的最初实测环境是:
18
13
 
19
- ## 环境
14
+ - **VPS 商家**:LisaHost(丽萨主机)
15
+ - **套餐**:**美国4837基础版**(`US-LAX-4837`,洛杉矶)
16
+ - **服务端**:Xray + VLESS Reality + XTLS Vision
17
+ - **客户端**:Clash Verge Rev / mihomo、Shadowrocket
20
18
 
21
- - macOS(自动 Clash Verge 配置)
22
- - Node.js 18+
23
- - Clash Verge Rev / mihomo(仅客户端配置需要)
24
- - VPS 直连检测需要已有 SSH 密钥登录;不会询问或保存 SSH 密码
19
+ Lisa 不是必选商家,其他 VPS 和套餐可以自行尝试。不同商家的上游端口政策、IP 历史、Google 地区判定和国际线路表现可能不同,不能默认复现同样的结果;尤其不要把这里的 4837 实测经验直接套到 9929、CN2 GIA 或其他线路上。
20
+
21
+ ## 快速开始
25
22
 
26
- ## npm 安装
23
+ ### 安装 skill
27
24
 
28
- ### LEE / 通用 agents
25
+ LEE / 通用 agents:
29
26
 
30
27
  ```bash
31
28
  npx network-proxy-guard@latest install --target agents
32
29
  ```
33
30
 
34
- ### Claude Code 或 Codex
31
+ Claude Code / Codex:
35
32
 
36
33
  ```bash
37
34
  npx network-proxy-guard@latest install --target claude
38
35
  npx network-proxy-guard@latest install --target codex
39
36
  ```
40
37
 
38
+ 安装后重启对应 Agent。更新已安装 skill 时,`install --force` 会先保留旧目录备份,不会直接删除。
39
+
41
40
  也可以先全局安装命令,再安装 skill:
42
41
 
43
42
  ```bash
@@ -45,7 +44,34 @@ npm install -g network-proxy-guard
45
44
  network-proxy-guard install --target agents
46
45
  ```
47
46
 
48
- 安装后重启对应 Agent。更新已安装 skill 时,`install --force` 会先保留旧目录备份,不会直接删除。
47
+ ### 查看全部功能和完整流程
48
+
49
+ 直接列出 CLI 命令和实测参考环境:
50
+
51
+ ```bash
52
+ npx network-proxy-guard@latest --help
53
+ npx network-proxy-guard@latest reference
54
+ ```
55
+
56
+ 安装 skill 后,也可以在 Agent 中直接输入:
57
+
58
+ > 列出 network-proxy-guard 的全部功能、完整使用流程和安全确认步骤。
59
+
60
+ ## 功能
61
+
62
+ - Clash Verge:保留旧配置、备份、生成并激活 VLESS Reality 本地配置、规则模式、关闭 PAC 直连兜底
63
+ - 分流诊断:区分直连/显式代理/VPS 直连,检查 AI、Google、Stripe 等域名的实际路径
64
+ - Google 地区检测:VPS 直连证据 + 多地理库交叉验证,证据足够才生成工单草稿
65
+ - Claude 重置:独立确认,清理常见 Claude Code/Desktop/CC Switch 配置,保留程序与共享 skills
66
+ - 手机交付:同一份节点配置生成 VLESS 链接与本地二维码,不调用在线二维码服务
67
+ - Xray 服务端:提供带确认、备份、验证的 Reality 配置 runbook,不盲目复制固定端口或伪装域名
68
+
69
+ ## 环境
70
+
71
+ - macOS(自动 Clash Verge 配置)
72
+ - Node.js 18+
73
+ - Clash Verge Rev / mihomo(仅客户端配置需要)
74
+ - VPS 直连检测需要已有 SSH 密钥登录;不会询问或保存 SSH 密码
49
75
 
50
76
  ## 使用
51
77
 
@@ -10,8 +10,9 @@ import { generateMobileQr } from '../src/qr.js';
10
10
  import { resetClaude } from '../src/claude-reset.js';
11
11
  import { detectGoogleRegion, buildLisaTicket, probeNetwork } from '../src/diagnostics.js';
12
12
  import { atomicWrite, expandHome } from '../src/utils.js';
13
+ import { REFERENCE_ENVIRONMENT } from '../src/reference.js';
13
14
 
14
- const HELP = `network-proxy-guard 0.1.0
15
+ const HELP = `network-proxy-guard
15
16
 
16
17
  Install the agent skill (no proxy/Claude changes):
17
18
  npx network-proxy-guard@latest install --target agents
@@ -19,6 +20,7 @@ Install the agent skill (no proxy/Claude changes):
19
20
  npx network-proxy-guard@latest install --target codex
20
21
 
21
22
  Commands:
23
+ reference Show the non-mandatory LisaHost reference environment
22
24
  install Install only the skill files [--target agents|claude|codex|DIR] [--force]
23
25
  setup Preview Clash Verge setup; --config FILE [--yes] [--restart]
24
26
  Optional: --verge-dir DIR --enable-tun --qr-dir DIR
@@ -59,6 +61,11 @@ async function main() {
59
61
  return;
60
62
  }
61
63
 
64
+ if (command === 'reference') {
65
+ print(REFERENCE_ENVIRONMENT);
66
+ return;
67
+ }
68
+
62
69
  if (command === 'install' || command === 'install-skill') {
63
70
  const values = options(args, { target: { type: 'string', default: 'agents' }, force: { type: 'boolean', default: false } });
64
71
  print(installSkill(values));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "network-proxy-guard",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Consent-first macOS Clash Verge, Xray Reality, Claude reset and network diagnostics skill",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -8,6 +8,10 @@ compatibility: macOS; Node.js 18+; Clash Verge Rev/mihomo for automatic client s
8
8
 
9
9
  Configure and diagnose a working proxy without silently changing the user's machine. The npm installer copies files only. Reading this skill never authorizes setup, cleanup, restarts, SSH changes, ticket submission, or package installation.
10
10
 
11
+ ## Reference environment (not a requirement)
12
+
13
+ The original tested setup used **LisaHost(丽萨主机)美国4837基础版** (`US-LAX-4837`, Los Angeles), Xray + VLESS Reality + XTLS Vision, Clash Verge Rev/mihomo and Shadowrocket. Other VPS providers and plans are allowed, but users must revalidate port policy, IP history, Google region detection and route quality. Do not generalize the 4837 results to 9929, CN2 GIA or other networks. Run `network-proxy-guard reference` to show this as structured data.
14
+
11
15
  ## Safety contract
12
16
 
13
17
  1. Start with read-only inspection or a dry-run. Never pass `--yes` on the first inspection.
@@ -0,0 +1,9 @@
1
+ export const REFERENCE_ENVIRONMENT = Object.freeze({
2
+ required: false,
3
+ provider: 'LisaHost(丽萨主机)',
4
+ plan: '美国4837基础版',
5
+ region: 'US-LAX-4837(洛杉矶)',
6
+ server: 'Xray + VLESS Reality + XTLS Vision',
7
+ clients: ['Clash Verge Rev / mihomo', 'Shadowrocket'],
8
+ note: 'Lisa 不是必选商家。其他 VPS 和套餐可以自行尝试,但端口政策、IP 历史、Google 地区判定和线路表现必须重新验证;不要把 4837 的实测经验直接套到 9929、CN2 GIA 或其他线路。',
9
+ });