one-model-router 0.0.0-stage → 0.0.11
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/LICENSE +21 -0
- package/README.md +172 -3
- package/bin/omr.js +300 -0
- package/package.json +214 -6
- package/src/admin.js +941 -0
- package/src/balances.js +61 -0
- package/src/boot.js +117 -0
- package/src/channels/buddy.js +2031 -0
- package/src/channels/cline.js +753 -0
- package/src/channels/codearts.js +2051 -0
- package/src/channels/comate.js +830 -0
- package/src/channels/doubaowork.js +1784 -0
- package/src/channels/freebuff.js +1316 -0
- package/src/channels/gemini.js +1721 -0
- package/src/channels/index.js +270 -0
- package/src/channels/joycode.js +936 -0
- package/src/channels/kimi.js +572 -0
- package/src/channels/lobsterai.js +1226 -0
- package/src/channels/loomy.js +1032 -0
- package/src/channels/miaoshou.js +1396 -0
- package/src/channels/mimo.js +474 -0
- package/src/channels/minimax.js +1451 -0
- package/src/channels/qoder-auth-wasm.wasm +0 -0
- package/src/channels/qoder-wasm.js +434 -0
- package/src/channels/qoder.js +1619 -0
- package/src/channels/raccoon.js +1842 -0
- package/src/channels/tabbit.js +1457 -0
- package/src/channels/trae.js +1405 -0
- package/src/channels/zcode-global.js +35 -0
- package/src/channels/zcode.js +2085 -0
- package/src/checkin.js +496 -0
- package/src/credits.js +464 -0
- package/src/crypto.js +132 -0
- package/src/free-models.js +683 -0
- package/src/gateway.js +596 -0
- package/src/health.js +86 -0
- package/src/model-key.js +35 -0
- package/src/paths.js +96 -0
- package/src/probe.js +318 -0
- package/src/providers/builtin.js +626 -0
- package/src/providers/index.js +483 -0
- package/src/providers/kilo.js +111 -0
- package/src/providers/last-good.js +69 -0
- package/src/providers/modelsdev.js +242 -0
- package/src/providers/openai-compat.js +312 -0
- package/src/providers/opencode/bun-fetch.js +226 -0
- package/src/providers/opencode/lane.js +186 -0
- package/src/providers/opencode/o2a/LICENSE.dsh-our-free-model +21 -0
- package/src/providers/opencode/o2a/asset-source.js +43 -0
- package/src/providers/opencode/o2a/assets/opencode_prompt_v2.txt +96 -0
- package/src/providers/opencode/o2a/assets/opencode_tools.json +327 -0
- package/src/providers/opencode/o2a/entry.js +17 -0
- package/src/providers/opencode/o2a/gateway-body.js +42 -0
- package/src/providers/opencode/o2a/headers.js +133 -0
- package/src/providers/opencode/o2a/identity.js +148 -0
- package/src/providers/opencode/o2a/official-prompt.js +191 -0
- package/src/providers/opencode/o2a/official-tools.js +110 -0
- package/src/providers/opencode/o2a/tool-renames.js +217 -0
- package/src/providers/opencode/o2a/toolshape.js +418 -0
- package/src/providers/opencode/o2a/version.js +37 -0
- package/src/providers/opencode/upstream.js +403 -0
- package/src/providers/opencode/wire.js +496 -0
- package/src/providers/opencode.js +652 -0
- package/src/router.js +629 -0
- package/src/server.js +33 -0
- package/src/store.js +467 -0
- package/src/sync/index.js +1529 -0
- package/src/sync/login-preload.cjs +52 -0
- package/src/sync/noise.js +141 -0
- package/src/sync/relay-http.js +176 -0
- package/src/sync/remote-host.js +818 -0
- package/src/sync/remote-http.js +112 -0
- package/src/sync/remote-login.js +657 -0
- package/src/sync/remote-pairing.js +204 -0
- package/src/sync/remote-protocol.js +321 -0
- package/src/sync/snapshot.js +211 -0
- package/src/util.js +334 -0
- package/web/app.js +3972 -0
- package/web/index.html +32 -0
- package/web/logo.png +0 -0
- package/web/style.css +971 -0
package/package.json
CHANGED
|
@@ -1,6 +1,214 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "one-model-router",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "one-model-router",
|
|
3
|
+
"version": "0.0.11",
|
|
4
|
+
"description": "本地模型路由网关:聚合免费/自有模型通道,OpenAI 兼容转发,模型组自动轮询切换,自动签到领积分",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "OneModelRouter",
|
|
7
|
+
"email": "laojiaogroup@gmail.com"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "src/server.js",
|
|
11
|
+
"bin": {
|
|
12
|
+
"omr": "bin/omr.js",
|
|
13
|
+
"one-model-router": "bin/omr.js"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"bin/omr.js",
|
|
17
|
+
"src/",
|
|
18
|
+
"web/",
|
|
19
|
+
"package.json",
|
|
20
|
+
"README.md",
|
|
21
|
+
"LICENSE"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"start": "node src/server.js",
|
|
25
|
+
"start:bg": "powershell -NoProfile -ExecutionPolicy Bypass -File omr.ps1 start",
|
|
26
|
+
"stop": "powershell -NoProfile -ExecutionPolicy Bypass -File omr.ps1 stop",
|
|
27
|
+
"restart": "powershell -NoProfile -ExecutionPolicy Bypass -File omr.ps1 restart",
|
|
28
|
+
"status": "powershell -NoProfile -ExecutionPolicy Bypass -File omr.ps1 status",
|
|
29
|
+
"dev": "electron electron/main.js",
|
|
30
|
+
"dist:win": "electron-builder --win",
|
|
31
|
+
"dist:mac": "electron-builder --mac",
|
|
32
|
+
"dist:linux": "electron-builder --linux",
|
|
33
|
+
"dist:all": "electron-builder -mwl",
|
|
34
|
+
"gen:feed": "node scripts/gen-feed.cjs",
|
|
35
|
+
"gen:winget": "node scripts/gen-winget.cjs"
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=18.0.0"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"llm",
|
|
42
|
+
"openai",
|
|
43
|
+
"gateway",
|
|
44
|
+
"proxy",
|
|
45
|
+
"model-router",
|
|
46
|
+
"free-model",
|
|
47
|
+
"claude-code",
|
|
48
|
+
"cline"
|
|
49
|
+
],
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "git+https://github.com/bothua111/OneModelRouter.git"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/bothua111/OneModelRouter#readme",
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"electron": "^44.9.1",
|
|
60
|
+
"electron-builder": "^26.15.3",
|
|
61
|
+
"esbuild": "^0.25.12"
|
|
62
|
+
},
|
|
63
|
+
"build": {
|
|
64
|
+
"appId": "com.onemodelrouter.app",
|
|
65
|
+
"productName": "OneModelRouter",
|
|
66
|
+
"directories": {
|
|
67
|
+
"output": "release"
|
|
68
|
+
},
|
|
69
|
+
"publish": [
|
|
70
|
+
{
|
|
71
|
+
"provider": "generic",
|
|
72
|
+
"url": "https://gitee.com/laojiaogroup/OneModelRouter/releases/download/stable/"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"extraMetadata": {
|
|
76
|
+
"main": "electron/main.js"
|
|
77
|
+
},
|
|
78
|
+
"files": [
|
|
79
|
+
"electron/**",
|
|
80
|
+
"src/**",
|
|
81
|
+
"web/**",
|
|
82
|
+
"package.json",
|
|
83
|
+
"!node_modules/**/*.{ts,cts,mts,map,md,markdown,tsbuildinfo}",
|
|
84
|
+
"!node_modules/**/{test,tests,__tests__,spec,example,examples,docs,doc}/**"
|
|
85
|
+
],
|
|
86
|
+
"asar": true,
|
|
87
|
+
"compression": "normal",
|
|
88
|
+
"electronLanguages": [
|
|
89
|
+
"zh-CN",
|
|
90
|
+
"en-US"
|
|
91
|
+
],
|
|
92
|
+
"afterPack": "scripts/after-pack.cjs",
|
|
93
|
+
"win": {
|
|
94
|
+
"icon": "build/icon.png",
|
|
95
|
+
"target": [
|
|
96
|
+
{
|
|
97
|
+
"target": "nsis",
|
|
98
|
+
"arch": [
|
|
99
|
+
"x64",
|
|
100
|
+
"arm64"
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"nsis": {
|
|
106
|
+
"oneClick": false,
|
|
107
|
+
"allowToChangeInstallationDirectory": false,
|
|
108
|
+
"include": "build/installer.nsh",
|
|
109
|
+
"createDesktopShortcut": "always",
|
|
110
|
+
"runAfterFinish": true,
|
|
111
|
+
"shortcutName": "OneModelRouter",
|
|
112
|
+
"artifactName": "OneModelRouter-Setup-${version}-${arch}.${ext}"
|
|
113
|
+
},
|
|
114
|
+
"mac": {
|
|
115
|
+
"icon": "build/icon.png",
|
|
116
|
+
"target": [
|
|
117
|
+
{
|
|
118
|
+
"target": "dmg",
|
|
119
|
+
"arch": [
|
|
120
|
+
"arm64",
|
|
121
|
+
"x64"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"target": "zip",
|
|
126
|
+
"arch": [
|
|
127
|
+
"arm64",
|
|
128
|
+
"x64"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"category": "public.app-category.developer-tools",
|
|
133
|
+
"hardenedRuntime": true,
|
|
134
|
+
"gatekeeperAssess": false,
|
|
135
|
+
"entitlements": "build/entitlements.mac.plist",
|
|
136
|
+
"entitlementsInherit": "build/entitlements.mac.plist",
|
|
137
|
+
"artifactName": "OneModelRouter-${version}-${arch}.${ext}"
|
|
138
|
+
},
|
|
139
|
+
"dmg": {
|
|
140
|
+
"artifactName": "OneModelRouter-${version}-${arch}.${ext}"
|
|
141
|
+
},
|
|
142
|
+
"linux": {
|
|
143
|
+
"icon": "build/icon.png",
|
|
144
|
+
"category": "Development",
|
|
145
|
+
"maintainer": "OneModelRouter <laojiaogroup@gmail.com>",
|
|
146
|
+
"vendor": "OneModelRouter",
|
|
147
|
+
"synopsis": "本地模型路由网关",
|
|
148
|
+
"description": "把各家免费大模型通道聚成一个 OpenAI 兼容接口,装在本机,一个地址调用全部。",
|
|
149
|
+
"target": [
|
|
150
|
+
{
|
|
151
|
+
"target": "AppImage",
|
|
152
|
+
"arch": [
|
|
153
|
+
"x64",
|
|
154
|
+
"arm64"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"target": "deb",
|
|
159
|
+
"arch": [
|
|
160
|
+
"x64",
|
|
161
|
+
"arm64"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"target": "rpm",
|
|
166
|
+
"arch": [
|
|
167
|
+
"x64"
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"artifactName": "OneModelRouter-${version}-${arch}.${ext}"
|
|
172
|
+
},
|
|
173
|
+
"deb": {
|
|
174
|
+
"depends": [
|
|
175
|
+
"libgtk-3-0 | libgtk-3-0t64",
|
|
176
|
+
"libnss3",
|
|
177
|
+
"libasound2 | libasound2t64",
|
|
178
|
+
"libgbm1"
|
|
179
|
+
],
|
|
180
|
+
"artifactName": "OneModelRouter-${version}-${arch}.${ext}"
|
|
181
|
+
},
|
|
182
|
+
"rpm": {
|
|
183
|
+
"depends": [
|
|
184
|
+
"gtk3",
|
|
185
|
+
"nss",
|
|
186
|
+
"alsa-lib",
|
|
187
|
+
"libgbm",
|
|
188
|
+
"at-spi2-atk"
|
|
189
|
+
],
|
|
190
|
+
"artifactName": "OneModelRouter-${version}-${arch}.${ext}"
|
|
191
|
+
},
|
|
192
|
+
"appImage": {
|
|
193
|
+
"artifactName": "OneModelRouter-${version}-${arch}.${ext}"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"omrRepos": {
|
|
197
|
+
"github": "bothua111/OneModelRouter",
|
|
198
|
+
"gitee": "laojiaogroup/OneModelRouter"
|
|
199
|
+
},
|
|
200
|
+
"license": "MIT",
|
|
201
|
+
"dependencies": {
|
|
202
|
+
"@lukeburns/clatterjs": "^1.0.0",
|
|
203
|
+
"@noble/ciphers": "^1.1.3",
|
|
204
|
+
"@noble/curves": "^1.7.0",
|
|
205
|
+
"@noble/hashes": "^2.4.0",
|
|
206
|
+
"electron-updater": "^6.8.11",
|
|
207
|
+
"qrcode": "^1.5.4",
|
|
208
|
+
"ws": "^8.22.2"
|
|
209
|
+
},
|
|
210
|
+
"optionalDependencies": {
|
|
211
|
+
"@tencent-ai/workbuddy-cloud-sdk": "0.1.4-dev.ca27990.202610161713",
|
|
212
|
+
"playwright-core": "^1.56.1"
|
|
213
|
+
}
|
|
214
|
+
}
|