dsh-wtq-pool 1.0.51 → 1.2.0
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/CHANGELOG.md +44 -98
- package/README.en.md +28 -30
- package/README.md +29 -31
- package/lib/client.js +40 -8
- package/lib/index.d.ts +0 -2
- package/lib/index.js +2087 -578
- package/package.json +9 -12
- package/renderer/index.html +14 -23
- package/renderer/panel.css +16 -5
- package/renderer/panel.js +188 -132
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dsh-wtq-pool",
|
|
3
3
|
"displayName": "WTQ Pool",
|
|
4
4
|
"description": "把本机 WorkBuddy、Trae、Qoder 的桌面登录接入 DeepSeek Harness。限流或额度用尽时自动换号,三家各自开关,国内与国际账号分别成组。",
|
|
5
|
-
"version": "1.0
|
|
5
|
+
"version": "1.2.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "chengzhi-c",
|
|
8
8
|
"homepage": "https://github.com/chengzhi-c/dsh-wtq-pool#readme",
|
|
@@ -48,16 +48,6 @@
|
|
|
48
48
|
"CHANGELOG.md",
|
|
49
49
|
"LICENSE"
|
|
50
50
|
],
|
|
51
|
-
"scripts": {
|
|
52
|
-
"build": "tsdown",
|
|
53
|
-
"prepare": "pnpm run build",
|
|
54
|
-
"prepack": "tsdown",
|
|
55
|
-
"prepublishOnly": "tsdown",
|
|
56
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
57
|
-
"typecheck:client": "tsc -p tsconfig.client.json --noEmit",
|
|
58
|
-
"pretest": "tsdown",
|
|
59
|
-
"test": "node --test \"tests/*.test.cjs\""
|
|
60
|
-
},
|
|
61
51
|
"dsh": {
|
|
62
52
|
"bundle": {
|
|
63
53
|
"patch": "./cordis.patch.yml"
|
|
@@ -99,5 +89,12 @@
|
|
|
99
89
|
"@deepseek-ai/dsh-settings": {
|
|
100
90
|
"optional": true
|
|
101
91
|
}
|
|
92
|
+
},
|
|
93
|
+
"scripts": {
|
|
94
|
+
"build": "tsdown",
|
|
95
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
96
|
+
"typecheck:client": "tsc -p tsconfig.client.json --noEmit",
|
|
97
|
+
"pretest": "tsdown",
|
|
98
|
+
"test": "node --test --test-timeout=60000 \"tests/*.test.cjs\""
|
|
102
99
|
}
|
|
103
|
-
}
|
|
100
|
+
}
|
package/renderer/index.html
CHANGED
|
@@ -80,19 +80,6 @@
|
|
|
80
80
|
</span>
|
|
81
81
|
</div>
|
|
82
82
|
</div>
|
|
83
|
-
<div class="card">
|
|
84
|
-
<div class="card-head">
|
|
85
|
-
<span class="card-title" id="rewriteTitle"></span>
|
|
86
|
-
<span class="muted" id="rewriteState"></span>
|
|
87
|
-
</div>
|
|
88
|
-
<div class="switch-row">
|
|
89
|
-
<button type="button" class="small" id="rewriteClientName"></button>
|
|
90
|
-
<span class="switch-copy">
|
|
91
|
-
<span class="switch-lead" id="rewriteText"></span>
|
|
92
|
-
<span class="hint" id="rewriteHint"></span>
|
|
93
|
-
</span>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
83
|
<div class="card">
|
|
97
84
|
<div class="card-head">
|
|
98
85
|
<span class="card-title" id="autoTitle"></span>
|
|
@@ -105,22 +92,26 @@
|
|
|
105
92
|
<button type="button" id="autoHoursSave" class="small"></button>
|
|
106
93
|
<button type="button" id="autoRunNow" class="small"></button>
|
|
107
94
|
</div>
|
|
108
|
-
<!--
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
95
|
+
<!-- Its own box, below the controls rather than beside them: the lines
|
|
96
|
+
are a log of what a pass did, and sharing a row with the hour field
|
|
97
|
+
made both hard to read. -->
|
|
98
|
+
<div class="hint log-box" id="autoNote"></div>
|
|
99
|
+
<p class="hint" id="autoHint"></p>
|
|
100
|
+
</div>
|
|
101
|
+
<!-- A card of its own: the keep-alive renews tokens rather than collecting
|
|
102
|
+
rewards and has no hour to set, so sharing the check-in card made both
|
|
103
|
+
harder to read. -->
|
|
104
|
+
<div class="card" id="keepAliveCard">
|
|
105
|
+
<div class="card-head">
|
|
106
|
+
<span class="card-title" id="keepAliveTitle"></span>
|
|
107
|
+
</div>
|
|
112
108
|
<div class="switch-row">
|
|
113
109
|
<button type="button" class="small" id="tokenKeepAliveRun"></button>
|
|
114
110
|
<span class="switch-copy">
|
|
115
|
-
<span class="switch-lead" id="keepAliveText"></span>
|
|
116
111
|
<span class="hint" id="keepAliveHint"></span>
|
|
117
112
|
</span>
|
|
118
113
|
</div>
|
|
119
|
-
|
|
120
|
-
are a log of what a pass did, and sharing a row with the hour field
|
|
121
|
-
made both hard to read. -->
|
|
122
|
-
<div class="hint log-box" id="autoNote"></div>
|
|
123
|
-
<p class="hint" id="autoHint"></p>
|
|
114
|
+
<div class="hint log-box" id="keepAliveNote"></div>
|
|
124
115
|
</div>
|
|
125
116
|
</section>
|
|
126
117
|
|
package/renderer/panel.css
CHANGED
|
@@ -513,7 +513,6 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
|
|
|
513
513
|
.source-head .checkin-all { margin-left: auto; }
|
|
514
514
|
.source-accounts .card { margin-bottom: 8px; }
|
|
515
515
|
.source-foot { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; margin-top: 4px; }
|
|
516
|
-
|
|
517
516
|
.card {
|
|
518
517
|
border: 1px solid var(--xd-border);
|
|
519
518
|
border-radius: var(--xd-radius);
|
|
@@ -521,7 +520,6 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
|
|
|
521
520
|
padding: 12px 14px;
|
|
522
521
|
margin-bottom: 10px;
|
|
523
522
|
}
|
|
524
|
-
|
|
525
523
|
.card-head {
|
|
526
524
|
display: flex;
|
|
527
525
|
align-items: center;
|
|
@@ -614,6 +612,7 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
|
|
|
614
612
|
*/
|
|
615
613
|
.badge.ok { color: var(--xd-muted); }
|
|
616
614
|
.badge.cool { color: var(--xd-warn); border-color: color-mix(in srgb, var(--xd-warn) 40%, transparent); }
|
|
615
|
+
.badge.dead { color: var(--xd-danger); border-color: color-mix(in srgb, var(--xd-danger) 45%, transparent); }
|
|
617
616
|
.badge.next { color: var(--xd-accent); border-color: color-mix(in srgb, var(--xd-accent) 40%, transparent); }
|
|
618
617
|
.badge.free { color: var(--xd-ok); }
|
|
619
618
|
.badge.off { color: var(--xd-muted); border-style: dashed; }
|
|
@@ -1177,13 +1176,19 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
|
|
|
1177
1176
|
|
|
1178
1177
|
.finding {
|
|
1179
1178
|
display: flex;
|
|
1180
|
-
|
|
1179
|
+
flex-wrap: wrap;
|
|
1180
|
+
gap: 4px 8px;
|
|
1181
1181
|
align-items: baseline;
|
|
1182
1182
|
padding: 6px 0;
|
|
1183
1183
|
border-bottom: 1px solid var(--xd-line);
|
|
1184
1184
|
}
|
|
1185
1185
|
.finding:last-child { border-bottom: 0; }
|
|
1186
|
-
.finding-id {
|
|
1186
|
+
.finding-id {
|
|
1187
|
+
font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
|
|
1188
|
+
font-size: 12.5px;
|
|
1189
|
+
min-width: 200px;
|
|
1190
|
+
overflow-wrap: anywhere;
|
|
1191
|
+
}
|
|
1187
1192
|
.finding-pass, .finding-fail {
|
|
1188
1193
|
flex: none;
|
|
1189
1194
|
font-size: 11px;
|
|
@@ -1194,7 +1199,13 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
|
|
|
1194
1199
|
}
|
|
1195
1200
|
.finding-pass { color: var(--xd-ok); border: 1px solid color-mix(in srgb, var(--xd-ok) 35%, transparent); }
|
|
1196
1201
|
.finding-fail { color: var(--xd-danger); border: 1px solid color-mix(in srgb, var(--xd-danger) 40%, transparent); }
|
|
1197
|
-
.finding-detail {
|
|
1202
|
+
.finding-detail {
|
|
1203
|
+
flex: 1 1 220px;
|
|
1204
|
+
min-width: 0;
|
|
1205
|
+
color: var(--xd-muted);
|
|
1206
|
+
font-size: 12.5px;
|
|
1207
|
+
overflow-wrap: anywhere;
|
|
1208
|
+
}
|
|
1198
1209
|
|
|
1199
1210
|
.report {
|
|
1200
1211
|
margin-top: 10px;
|