Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
183 lines (183 loc) · 6.57 KB
/
Copy pathpackage.json
File metadata and controls
183 lines (183 loc) · 6.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{
"name": "http-ai-plugin-proxy",
"displayName": "HTTP AI 插件代理",
"description": "专为 Claude Code、Cline 及各类 AI 扩展设计的高性能安全 HTTP/HTTPS 代理网关",
"version": "1.2.0",
"publisher": "local",
"icon": "icon.png",
"engines": {
"vscode": "^1.80.0"
},
"repository": {
"type": "git",
"url": "https://github.com/makemk/http-ai-plugin-proxy.git"
},
"scripts": {
"check": "node check-status.js",
"test": "node test-connection.js"
},
"categories": [
"Other",
"Network",
"AI"
],
"keywords": [
"ai",
"claude-code",
"proxy",
"http-proxy",
"https-proxy",
"gateway"
],
"main": "./src/extension.js",
"activationEvents": [
"*"
],
"contributes": {
"commands": [
{
"command": "httpAiProxy.showMenu",
"title": "代理: 控制菜单",
"category": "HTTP AI 代理"
},
{
"command": "httpAiProxy.testConnection",
"title": "代理: 运行连通性与网络诊断",
"category": "HTTP AI 代理"
},
{
"command": "httpAiProxy.start",
"title": "代理: 启动 / 开启",
"category": "HTTP AI 代理"
},
{
"command": "httpAiProxy.stop",
"title": "代理: 停止 / 关闭",
"category": "HTTP AI 代理"
},
{
"command": "httpAiProxy.restart",
"title": "代理: 重启代理服务",
"category": "HTTP AI 代理"
},
{
"command": "httpAiProxy.openConfig",
"title": "代理: 打开配置文件",
"category": "HTTP AI 代理"
},
{
"command": "httpAiProxy.setSystemEnv",
"title": "代理: 设置 Windows 用户代理环境变量",
"category": "HTTP AI 代理"
},
{
"command": "httpAiProxy.clearSystemEnv",
"title": "代理: 清除 Windows 用户代理环境变量",
"category": "HTTP AI 代理"
},
{
"command": "httpAiProxy.migrateSecrets",
"title": "代理: 将密码安全迁移至系统凭据库 (SecretStorage)",
"category": "HTTP AI 代理"
},
{
"command": "httpAiProxy.checkForUpdates",
"title": "代理: 检查最新版本更新",
"category": "HTTP AI 代理"
}
],
"configuration": {
"title": "HTTP AI 插件代理",
"properties": {
"httpAiProxy.enabled": {
"type": "boolean",
"default": true,
"description": "启用或禁用 HTTP AI 插件代理网桥。"
},
"httpAiProxy.configPath": {
"type": "string",
"default": "",
"description": "包含 HTTPS 网关凭证的 deployment.local.json 配置文件路径(留空则自动从 ~/.browser-gateway/ 或当前工作区安全探测)。"
},
"httpAiProxy.localPort": {
"type": "integer",
"default": 18889,
"minimum": 1024,
"maximum": 65535,
"description": "本地正向代理监听端口(127.0.0.1:端口,支持 1024-65535)。修改后插件将自动在新的端口重启并更新代理。"
},
"httpAiProxy.autoConfigureVsCode": {
"type": "boolean",
"default": true,
"description": "自动配置 VS Code 全局 http.proxy 与集成终端环境变量。"
},
"httpAiProxy.enableH2Multiplex": {
"type": "boolean",
"default": true,
"description": "启用 HTTP/2 多路复用上游隧道(网关需支持 H2,如 browser-gateway-h2)。一个常驻 H2 会话承载所有隧道,消除每请求的 CONNECT 往返;失败时自动回退到 HTTP/1.1。"
},
"httpAiProxy.tlsMinVersion": {
"type": "string",
"enum": [
"TLSv1.2",
"TLSv1.3"
],
"default": "TLSv1.3",
"description": "上游 HTTPS 网关连接的最低 TLS 协议版本(默认 TLS 1.3:握手少一次往返,冷连接更快)。"
},
"httpAiProxy.rejectUnauthorized": {
"type": "boolean",
"default": false,
"description": "是否强制对上游网关进行严格 SSL/TLS 证书校验。若网关为自签名或公网 IP 证书,请保持 false。"
},
"httpAiProxy.caCertPath": {
"type": "string",
"default": "",
"description": "用于校验上游网关的自定义 CA 根证书文件路径(.pem / .crt,可选)。"
},
"httpAiProxy.enableConnectionPool": {
"type": "boolean",
"default": true,
"description": "启用上游 TLS 隧道预热就绪池(保持温热 Socket,消除 420ms 握手冷启动延迟)。"
},
"httpAiProxy.threadPoolSize": {
"type": "integer",
"default": 0,
"minimum": 0,
"maximum": 128,
"description": "底层 OpenSSL 密码学加速线程池大小。设为 0 表示自动侦测并压榨当前电脑 CPU 物理核心上限(你的电脑会自动激活最高 20 线程满载);亦可手动指定具体线程数。"
},
"httpAiProxy.maxWarmSockets": {
"type": "integer",
"default": 0,
"minimum": 0,
"maximum": 16,
"description": "TLS 隧道弹性预热池最大容量。设为 0 表示依据电脑 CPU 核心性能自动分配最佳上限(高性能芯片自动激活最高 6 条通道);亦可手动指定(1-16)。"
},
"httpAiProxy.bypassDomesticDomains": {
"type": "boolean",
"default": true,
"description": "智能分流:自动直连国内高频开发镜像(npmmirror、gitee、aliyun、.cn 等),不绕道美国 VPS。"
},
"httpAiProxy.customBypassList": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "用户自定义直连白名单域名列表(通配符匹配,如 *.local, *.corp.com)。"
},
"httpAiProxy.updateSource": {
"type": "string",
"default": "https://github.com/makemk/http-ai-plugin-proxy",
"description": "插件自动更新源地址。支持直接粘贴 GitHub 仓库完整链接(例如:https://github.com/用户名/仓库名)或私有服务器链接(例如:http://你的IP/version.json)。"
},
"httpAiProxy.autoCheckUpdates": {
"type": "boolean",
"default": true,
"description": "VS Code 启动时是否自动在后台探测新版本并弹窗提示更新。"
}
}
}
}
}