-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
142 lines (142 loc) · 4.13 KB
/
Copy pathpackage.json
File metadata and controls
142 lines (142 loc) · 4.13 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
{
"name": "auto-proxy-switcher",
"displayName": "Auto Proxy Switcher",
"description": "自定义本地代理 URL/端口(autoProxy.proxyUrl);可选读取系统代理与环境变量;启用前可确认/改端口或只填端口;http.proxy 仅写入用户设置 | Custom proxy URL/port; optional system/env proxy hint; confirm or enter port before apply; http.proxy in User settings only",
"version": "1.0.5",
"icon": "icon.png",
"publisher": "yusw",
"author": {
"name": "yusw"
},
"license": "MIT",
"preview": false,
"repository": {
"type": "git",
"url": "https://github.com/dev4java/auto_open_proxy"
},
"bugs": {
"url": "https://github.com/dev4java/auto_open_proxy/issues"
},
"homepage": "https://github.com/dev4java/auto_open_proxy#readme",
"qna": "https://github.com/dev4java/auto_open_proxy/issues",
"galleryBanner": {
"color": "#1e1e1e",
"theme": "dark"
},
"keywords": [
"proxy",
"auto-proxy",
"cursor",
"ai",
"claude",
"openai",
"network",
"vpn",
"automatic",
"switcher",
"port",
"mixed-port",
"system-proxy"
],
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "auto-proxy.checkConnection",
"title": "Auto Proxy: 检查 AI 服务连接状态"
},
{
"command": "auto-proxy.enableProxy",
"title": "Auto Proxy: 启用代理"
},
{
"command": "auto-proxy.disableProxy",
"title": "Auto Proxy: 禁用代理"
},
{
"command": "auto-proxy.toggleAutoCheck",
"title": "Auto Proxy: 切换自动检测(启动/暂停)"
},
{
"command": "auto-proxy.startAutoCheck",
"title": "Auto Proxy: 启动自动检测"
},
{
"command": "auto-proxy.stopAutoCheck",
"title": "Auto Proxy: 停止自动检测"
}
],
"configuration": {
"title": "Auto Proxy Switcher",
"properties": {
"autoProxy.enabled": {
"type": "boolean",
"default": true,
"description": "启用自动代理切换"
},
"autoProxy.checkInterval": {
"type": "number",
"default": 60,
"description": "检测间隔(秒)"
},
"autoProxy.proxyUrl": {
"type": "string",
"default": "",
"description": "本地代理地址(须包含端口)。留空时可配合「自动检测系统代理」从 macOS/Windows 系统或环境变量读取"
},
"autoProxy.autoDetectSystemProxy": {
"type": "boolean",
"default": true,
"description": "当未填写 proxyUrl 且无上次使用的地址时,尝试从系统代理(macOS scutil / Windows WinHTTP)或 HTTPS_PROXY 等环境变量检测"
},
"autoProxy.testUrls": {
"type": "array",
"default": [
"https://api.anthropic.com",
"https://api.openai.com",
"https://www.googleapis.com"
],
"description": "用于测试连接的 AI 服务 URL 列表"
},
"autoProxy.timeout": {
"type": "number",
"default": 5000,
"description": "连接超时时间(毫秒)"
},
"autoProxy.lastUsedProxyUrl": {
"type": "string",
"default": "",
"description": "禁用代理时从 http.proxy 回写的记录(启用代理时不再自动使用此项,请配置 proxyUrl 或使用检测/输入)"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"build": "webpack --mode production"
},
"devDependencies": {
"@types/node": "^20.10.0",
"@types/node-fetch": "^2.6.13",
"@types/vscode": "^1.80.0",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"node-fetch": "^2.7.0"
}
}