-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
244 lines (244 loc) · 6.45 KB
/
package.json
File metadata and controls
244 lines (244 loc) · 6.45 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
{
"name": "chat2api",
"version": "1.1.0",
"description": "Chat2API 管理器 - 统一管理多个 AI 服务提供商,提供 OpenAI 兼容 API 接口",
"main": "./out/main/index.js",
"author": {
"name": "Chat2API Team",
"email": "support@chat2api.com"
},
"homepage": "https://github.com/chat2api/Chat2API-Manager",
"license": "GPL-3.0",
"scripts": {
"dev": "bash scripts/dev.sh",
"dev:win": "electron-vite dev",
"build": "electron-vite build",
"preview": "electron-vite preview",
"start": "electron-vite preview",
"start:sandbox": "electron . --no-sandbox",
"postinstall": "electron-builder install-app-deps",
"prebuild:check": "node scripts/prebuild-check.js",
"build:unpack": "npm run build && electron-builder --dir",
"build:win": "npm run build && electron-builder --win --x64",
"build:win32": "npm run build && electron-builder --win --ia32",
"build:mac": "npm run build && electron-builder --mac",
"build:mac-arm": "npm run build && electron-builder --mac --arm64",
"build:linux": "npm run build && electron-builder --linux",
"build:all": "npm run build && electron-builder --win --mac --linux",
"release": "node scripts/release.js"
},
"dependencies": {
"@koa/router": "^15.3.0",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-label": "^2.1.8",
"@radix-ui/react-progress": "^1.1.8",
"@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-slider": "^1.3.6",
"@radix-ui/react-slot": "^1.2.4",
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-toast": "^1.2.15",
"@radix-ui/react-tooltip": "^1.2.8",
"ali-oss": "^6.23.0",
"axios": "^1.7.7",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"electron-store": "^10.0.0",
"eventsource-parser": "^3.0.6",
"i18next": "^25.8.11",
"i18next-browser-languagedetector": "^8.2.1",
"js-sha3": "^0.9.3",
"koa": "^2.15.3",
"koa-bodyparser": "^4.4.1",
"koa-router": "^12.0.1",
"lucide-react": "^0.454.0",
"mime-types": "^3.0.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^16.5.4",
"react-router-dom": "^6.28.0",
"react-window": "^2.2.7",
"recharts": "^3.7.0",
"tailwind-merge": "^2.5.4",
"zstd-codec": "^0.1.5",
"zustand": "^5.0.1"
},
"devDependencies": {
"@types/koa": "^2.15.0",
"@types/koa-bodyparser": "^4.3.12",
"@types/koa-router": "^7.4.8",
"@types/mime-types": "^3.0.1",
"@types/node": "^22.9.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react-window": "^1.8.8",
"@vitejs/plugin-react": "^4.3.3",
"autoprefixer": "^10.4.20",
"canvas": "^3.2.1",
"electron": "^33.0.2",
"electron-builder": "^25.1.8",
"electron-vite": "^2.3.0",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3",
"vite": "^5.4.10"
},
"build": {
"appId": "com.chat2api.manager",
"productName": "Chat2API",
"copyright": "Copyright © 2026 Chat2API Team",
"directories": {
"output": "dist",
"buildResources": "build"
},
"files": [
"out/**/*",
"package.json",
"!node_modules/**/*"
],
"extraResources": [
{
"from": "build",
"to": "build",
"filter": [
"**/*"
]
},
{
"from": "sha3_wasm_bg.7b9ca65ddd.wasm",
"to": "sha3_wasm_bg.7b9ca65ddd.wasm"
}
],
"asar": true,
"asarUnpack": [
"**/*.node"
],
"fileAssociations": [
{
"ext": "c2a",
"name": "Chat2API Config",
"description": "Chat2API 配置文件",
"role": "Editor"
}
],
"protocols": [
{
"name": "Chat2API",
"schemes": [
"chat2api"
]
}
],
"mac": {
"target": [
{
"target": "dmg",
"arch": [
"arm64"
]
}
],
"category": "public.app-category.utilities",
"icon": "build/icon.png",
"artifactName": "${productName}-${version}-mac-${arch}.${ext}",
"hardenedRuntime": true,
"gatekeeperAssess": false
},
"dmg": {
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
},
{
"target": "portable",
"arch": [
"x64"
]
}
],
"icon": "build/icon.ico",
"artifactName": "${productName}-${version}-${arch}-setup.${ext}"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"allowElevation": true,
"installerIcon": "build/icon.ico",
"uninstallerIcon": "build/icon.ico",
"installerHeaderIcon": "build/icon.ico",
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "Chat2API",
"license": "LICENSE",
"artifactName": "${productName}-${version}-${arch}-setup.${ext}"
},
"portable": {
"artifactName": "${productName}-${version}-${arch}-portable.${ext}"
},
"linux": {
"target": [
{
"target": "AppImage",
"arch": [
"x64",
"arm64"
]
},
{
"target": "deb",
"arch": [
"x64"
]
},
{
"target": "tar.gz",
"arch": [
"x64"
]
}
],
"category": "Utility",
"icon": "build/icon.png",
"maintainer": "Chat2API Team <support@chat2api.com>",
"artifactName": "${productName}-${version}-${arch}.${ext}",
"desktop": {
"Name": "Chat2API",
"Comment": "统一管理多个 AI 服务提供商",
"Categories": "Utility;Network;",
"StartupWMClass": "chat2api"
}
},
"appImage": {
"artifactName": "${productName}-${version}-${arch}.${ext}"
},
"deb": {
"priority": "optional",
"artifactName": "${productName}-${version}-${arch}.${ext}"
},
"publish": {
"provider": "github",
"owner": "xiaoY233",
"repo": "Chat2API"
}
}
}