coding-proxy 0.5.2a6__py3-none-any.whl → 0.5.2a7__py3-none-any.whl

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.
@@ -149,18 +149,20 @@ _DASHBOARD_HTML = """<!DOCTYPE html>
149
149
  <link rel="icon" type="image/x-icon" href="/favicon.ico" />
150
150
  <link rel="preconnect" href="https://fonts.googleapis.com" />
151
151
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
152
- <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet" />
152
+ <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap" rel="stylesheet" />
153
153
  <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.3/dist/chart.umd.min.js"></script>
154
154
  <style>
155
155
  :root {
156
156
  --bg: #0a0e14;
157
157
  --bg-card: #12161e;
158
158
  --bg-card-hover: #181d27;
159
+ --bg-secondary: #161b24;
159
160
  --border: rgba(255,255,255,.06);
160
161
  --border-subtle: rgba(255,255,255,.04);
161
162
  --text-primary: #e6edf3;
162
163
  --text-secondary: #8b949e;
163
164
  --text-tertiary: #6e7681;
165
+ --text-muted: #6e7681;
164
166
  --accent-blue: #58a6ff;
165
167
  --accent-green: #3fb950;
166
168
  --accent-yellow: #d29922;
@@ -202,11 +204,14 @@ _DASHBOARD_HTML = """<!DOCTYPE html>
202
204
  display: flex;
203
205
  align-items: center;
204
206
  justify-content: space-between;
207
+ flex-wrap: wrap;
208
+ gap: 8px 16px;
205
209
  position: sticky;
206
210
  top: 0;
207
211
  z-index: 100;
208
212
  }
209
- .header-left { display: flex; align-items: center; gap: 12px; }
213
+ .header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
214
+ .header-left h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
210
215
  .logo {
211
216
  width: 32px; height: 32px;
212
217
  display: flex; align-items: center; justify-content: center;
@@ -241,8 +246,8 @@ _DASHBOARD_HTML = """<!DOCTYPE html>
241
246
  /* ── KPI 卡片 ── */
242
247
  .kpi-grid {
243
248
  display: grid;
244
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
245
- gap: 5px;
249
+ grid-template-columns: repeat(6, minmax(0, 1fr));
250
+ gap: var(--gap-section);
246
251
  margin-bottom: var(--gap-section);
247
252
  }
248
253
  .kpi-card {
@@ -280,12 +285,25 @@ _DASHBOARD_HTML = """<!DOCTYPE html>
280
285
  .kpi-icon { font-size: 15px; opacity: .8; }
281
286
  .kpi-label { font-size: 13px; color: var(--text-secondary); font-weight: 600; letter-spacing: .2px; }
282
287
  .kpi-value {
283
- font-size: 32px; font-weight: 700; line-height: 1.2;
288
+ font-size: clamp(20px, 2.2vw, 32px); font-weight: 700; line-height: 1.2;
284
289
  font-family: 'JetBrains Mono', monospace;
285
290
  letter-spacing: -1px;
286
291
  }
287
- #kpi-cost-today { font-size: 20px; white-space: nowrap; }
292
+ #kpi-cost-today {
293
+ font-size: clamp(15px, 1.3vw + 0.25rem, 20px);
294
+ white-space: normal;
295
+ word-break: keep-all;
296
+ overflow-wrap: anywhere;
297
+ line-height: 1.25;
298
+ }
288
299
  .kpi-sub { font-size: 13px; color: var(--text-tertiary); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
300
+ /* ── KPI 响应式:桌面/笔记本/平板横屏(≥1024px)强制 6 列单行,杜绝数值裁剪;窄屏优雅降级 ── */
301
+ @media (max-width: 1023px) {
302
+ .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
303
+ }
304
+ @media (max-width: 480px) {
305
+ .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
306
+ }
289
307
  .color-blue { color: var(--accent-blue); }
290
308
  .color-green { color: var(--accent-green); }
291
309
  .color-yellow { color: var(--accent-yellow); }
@@ -664,6 +682,10 @@ _DASHBOARD_HTML = """<!DOCTYPE html>
664
682
  border-color: rgba(88,166,255,.2);
665
683
  }
666
684
  .tab-btn:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
685
+ .range-btn:focus-visible,
686
+ .btn-refresh:focus-visible,
687
+ .page-btn:focus-visible,
688
+ .copy-btn:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
667
689
  .tab-pane { display: none; }
668
690
  .tab-pane.active { display: block; }
669
691
 
@@ -793,6 +815,15 @@ _DASHBOARD_HTML = """<!DOCTYPE html>
793
815
  0%,100% { color: inherit; }
794
816
  40% { color: #f87171; }
795
817
  }
818
+ /* ── 尊重「减少动态效果」系统偏好(前庭敏感用户)── */
819
+ @media (prefers-reduced-motion: reduce) {
820
+ .kpi-card, .card { animation: none !important; }
821
+ *, *::before, *::after {
822
+ transition-duration: .01ms !important;
823
+ animation-duration: .01ms !important;
824
+ animation-iteration-count: 1 !important;
825
+ }
826
+ }
796
827
  </style>
797
828
  </head>
798
829
  <body>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: coding-proxy
3
- Version: 0.5.2a6
3
+ Version: 0.5.2a7
4
4
  Summary: A High-Availability, Transparent, and Smart Multi-Vendor Proxy for Claude Code. Support Claude Plans, GitHub Copilot, Google Antigravity, ZAI/GLM, MiniMax, Qwen, Xiaomi, Kimi, Doubao...
5
5
  Project-URL: Source Code, https://github.com/ThreeFish-AI/coding-proxy
6
6
  Project-URL: User Guide, https://github.com/ThreeFish-AI/coding-proxy/blob/master/docs/user-guide.md
@@ -216,5 +216,5 @@ During our chaotic yet rewarding exploration of engineering practices, we were h
216
216
  ---
217
217
 
218
218
  <div align="center">
219
- <sub>Built with 🧠, ❤️, and an absurd amount of coffee by ThreeFish-AI </sub>
219
+ <sub>Built with 🧠, ❤️, and an absurd amount of coffee by <a href="https://github.com/ThreeFish-AI">ThreeFish-AI</a> · Released under the <a href="./LICENSE">Apache License 2.0</a>.</sub>
220
220
  </div>
@@ -69,7 +69,7 @@ coding/proxy/routing/usage_parser.py,sha256=ZwPuMGtXAwdIOKrXLpdtA4nCmc83ViF6kw5J
69
69
  coding/proxy/routing/usage_recorder.py,sha256=PHUHotCt3VaKkdJizMpPGsUOAj-f5qz9JKeiLEnFNgA,8779
70
70
  coding/proxy/server/__init__.py,sha256=KeH7mEu36v9v27m3VgeSxSeFz9sLTJrxS_EVATJ7Vks,20
71
71
  coding/proxy/server/app.py,sha256=3MYE8-Vsxpt1SVqTKReMKNREBsh_LHKIFq1B4jhfeL8,7121
72
- coding/proxy/server/dashboard.py,sha256=dSX7nm-FJAN6JjjKXnuNxa7W9lDorekQX0Grv2SXRZ4,104808
72
+ coding/proxy/server/dashboard.py,sha256=9YbPr5CSpxsq9RQRvxVYef2wD3xFhAWi6ijDqHEhQK0,106091
73
73
  coding/proxy/server/factory.py,sha256=L0d0AA0fpkV-gynM85u1l5dXY1OQ5A_p_-PV0XlFGQs,10272
74
74
  coding/proxy/server/responses.py,sha256=i0ugnLRNOdRYGHEWxkwsxR35ChmdMQsSaD8AjRluTn4,2167
75
75
  coding/proxy/server/routes.py,sha256=5f9ONVckM3LG2AftBW6YahelhjkP6XlgaYSH7MvXUp4,22362
@@ -93,8 +93,8 @@ coding/proxy/vendors/native_anthropic.py,sha256=SxtM71PDci0gqLqiwCrFnT410SnSoD7F
93
93
  coding/proxy/vendors/token_manager.py,sha256=s10t4Com0jNnKGkPyJ_HpG5SjHrCEJvfArEOAaPKA_k,4189
94
94
  coding/proxy/vendors/xiaomi.py,sha256=E-GcmJBZh7GOtDFonxZmlf0hKRhrlrXzL0IxHFRYcRo,860
95
95
  coding/proxy/vendors/zhipu.py,sha256=GaLaWssa4c1lcukQL4nOtzji8jxEUJFrZtFgOkXTKaM,11127
96
- coding_proxy-0.5.2a6.dist-info/METADATA,sha256=nRowr8Fpf-4yMO2bNsrLZA0SMozGiU9CVBI6IFZyxPY,11346
97
- coding_proxy-0.5.2a6.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
98
- coding_proxy-0.5.2a6.dist-info/entry_points.txt,sha256=moIVzt5ho0Wk9B47LOo2SEAbhzuDDHWi-EfM30U0XBg,54
99
- coding_proxy-0.5.2a6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
100
- coding_proxy-0.5.2a6.dist-info/RECORD,,
96
+ coding_proxy-0.5.2a7.dist-info/METADATA,sha256=UrIx1OqNYy0Iuy27Y7Q9ceSRiPMudWxqrxIgRKKw71s,11457
97
+ coding_proxy-0.5.2a7.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
98
+ coding_proxy-0.5.2a7.dist-info/entry_points.txt,sha256=moIVzt5ho0Wk9B47LOo2SEAbhzuDDHWi-EfM30U0XBg,54
99
+ coding_proxy-0.5.2a7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
100
+ coding_proxy-0.5.2a7.dist-info/RECORD,,