one-model-router 0.0.10 → 0.0.12

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.
Files changed (80) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +32 -5
  3. package/bin/omr.js +46 -0
  4. package/package.json +3 -2
  5. package/src/admin.js +965 -941
  6. package/src/balances.js +61 -61
  7. package/src/boot.js +117 -117
  8. package/src/channels/buddy.js +2031 -2031
  9. package/src/channels/cline.js +753 -753
  10. package/src/channels/codearts.js +2051 -2051
  11. package/src/channels/comate.js +830 -830
  12. package/src/channels/doubaowork.js +1784 -1784
  13. package/src/channels/freebuff.js +1316 -1316
  14. package/src/channels/gemini.js +1721 -1721
  15. package/src/channels/index.js +270 -270
  16. package/src/channels/joycode.js +936 -936
  17. package/src/channels/kimi.js +572 -572
  18. package/src/channels/lobsterai.js +1226 -1226
  19. package/src/channels/loomy.js +1032 -1032
  20. package/src/channels/miaoshou.js +1396 -1396
  21. package/src/channels/mimo.js +474 -474
  22. package/src/channels/minimax.js +1451 -1451
  23. package/src/channels/qoder-wasm.js +434 -434
  24. package/src/channels/qoder.js +1619 -1619
  25. package/src/channels/raccoon.js +1842 -1842
  26. package/src/channels/tabbit.js +1457 -1457
  27. package/src/channels/trae.js +1405 -1405
  28. package/src/channels/zcode-global.js +35 -35
  29. package/src/channels/zcode.js +2085 -2085
  30. package/src/checkin.js +496 -496
  31. package/src/credits.js +464 -464
  32. package/src/crypto.js +132 -132
  33. package/src/free-models.js +683 -683
  34. package/src/gateway.js +596 -578
  35. package/src/health.js +86 -86
  36. package/src/model-key.js +35 -35
  37. package/src/paths.js +96 -96
  38. package/src/probe.js +318 -318
  39. package/src/providers/builtin.js +626 -626
  40. package/src/providers/index.js +483 -457
  41. package/src/providers/kilo.js +111 -111
  42. package/src/providers/last-good.js +69 -69
  43. package/src/providers/modelsdev.js +242 -242
  44. package/src/providers/openai-compat.js +312 -312
  45. package/src/providers/opencode/bun-fetch.js +226 -226
  46. package/src/providers/opencode/lane.js +186 -186
  47. package/src/providers/opencode/o2a/LICENSE.dsh-our-free-model +21 -21
  48. package/src/providers/opencode/o2a/asset-source.js +43 -43
  49. package/src/providers/opencode/o2a/assets/opencode_prompt_v2.txt +96 -96
  50. package/src/providers/opencode/o2a/assets/opencode_tools.json +327 -327
  51. package/src/providers/opencode/o2a/entry.js +17 -17
  52. package/src/providers/opencode/o2a/gateway-body.js +42 -42
  53. package/src/providers/opencode/o2a/headers.js +133 -133
  54. package/src/providers/opencode/o2a/identity.js +148 -148
  55. package/src/providers/opencode/o2a/official-prompt.js +191 -191
  56. package/src/providers/opencode/o2a/official-tools.js +110 -110
  57. package/src/providers/opencode/o2a/tool-renames.js +217 -217
  58. package/src/providers/opencode/o2a/toolshape.js +418 -418
  59. package/src/providers/opencode/o2a/version.js +37 -37
  60. package/src/providers/opencode/upstream.js +403 -403
  61. package/src/providers/opencode/wire.js +496 -496
  62. package/src/providers/opencode.js +652 -652
  63. package/src/router.js +629 -629
  64. package/src/server.js +49 -33
  65. package/src/store.js +467 -467
  66. package/src/sync/index.js +1529 -1529
  67. package/src/sync/login-preload.cjs +52 -52
  68. package/src/sync/noise.js +141 -141
  69. package/src/sync/relay-http.js +176 -176
  70. package/src/sync/remote-host.js +818 -818
  71. package/src/sync/remote-http.js +112 -112
  72. package/src/sync/remote-login.js +657 -657
  73. package/src/sync/remote-pairing.js +204 -204
  74. package/src/sync/remote-protocol.js +321 -321
  75. package/src/sync/snapshot.js +211 -211
  76. package/src/update.js +458 -0
  77. package/src/util.js +334 -334
  78. package/web/app.js +4010 -3972
  79. package/web/index.html +32 -32
  80. package/web/style.css +971 -971
package/web/index.html CHANGED
@@ -1,32 +1,32 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>OneModelRouter · 本地模型路由网关</title>
7
- <link rel="stylesheet" href="/style.css?v=15">
8
- <link rel="icon" type="image/png" href="/logo.png">
9
- <link rel="apple-touch-icon" href="/logo.png">
10
- </head>
11
- <body>
12
- <header>
13
- <img class="logo" src="/logo.png" alt="OneModelRouter">
14
- <h1>一模路通</h1>
15
- <span class="sub">本地模型路由网关 · 免费通道聚合 · 模型组自动轮询 · 自动签到</span>
16
- <span style="flex:1"></span>
17
- <span class="sub" id="app-version"></span>
18
- <span class="sub" id="gateway-status">加载中…</span>
19
- </header>
20
- <nav>
21
- <button data-tab="overview" class="active">总览</button>
22
- <button data-tab="nokey">免密渠道</button>
23
- <button data-tab="providers">免费渠道</button>
24
- <button data-tab="channels">转发渠道</button>
25
- <button data-tab="groups">模型组</button>
26
- <button data-tab="settings">设置</button>
27
- </nav>
28
- <main id="main"></main>
29
- <div class="toast" id="toast"></div>
30
- <script type="module" src="/app.js"></script>
31
- </body>
32
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>OneModelRouter · 本地模型路由网关</title>
7
+ <link rel="stylesheet" href="/style.css?v=15">
8
+ <link rel="icon" type="image/png" href="/logo.png">
9
+ <link rel="apple-touch-icon" href="/logo.png">
10
+ </head>
11
+ <body>
12
+ <header>
13
+ <img class="logo" src="/logo.png" alt="OneModelRouter">
14
+ <h1>一模路通</h1>
15
+ <span class="sub">本地模型路由网关 · 免费通道聚合 · 模型组自动轮询 · 自动签到</span>
16
+ <span style="flex:1"></span>
17
+ <span class="sub" id="app-version"></span>
18
+ <span class="sub" id="gateway-status">加载中…</span>
19
+ </header>
20
+ <nav>
21
+ <button data-tab="overview" class="active">总览</button>
22
+ <button data-tab="nokey">免密渠道</button>
23
+ <button data-tab="providers">免费渠道</button>
24
+ <button data-tab="channels">转发渠道</button>
25
+ <button data-tab="groups">模型组</button>
26
+ <button data-tab="settings">设置</button>
27
+ </nav>
28
+ <main id="main"></main>
29
+ <div class="toast" id="toast"></div>
30
+ <script type="module" src="/app.js"></script>
31
+ </body>
32
+ </html>