dsh-wtq-pool 1.0.5 → 1.1.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/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",
5
+ "version": "1.1.0",
6
6
  "license": "MIT",
7
7
  "author": "chengzhi-c",
8
8
  "homepage": "https://github.com/chengzhi-c/dsh-wtq-pool#readme",
@@ -56,7 +56,7 @@
56
56
  "typecheck": "tsc -p tsconfig.json --noEmit",
57
57
  "typecheck:client": "tsc -p tsconfig.client.json --noEmit",
58
58
  "pretest": "tsdown",
59
- "test": "node --test \"tests/*.test.cjs\""
59
+ "test": "node --test --test-timeout=60000 \"tests/*.test.cjs\""
60
60
  },
61
61
  "dsh": {
62
62
  "bundle": {
@@ -105,22 +105,26 @@
105
105
  <button type="button" id="autoHoursSave" class="small"></button>
106
106
  <button type="button" id="autoRunNow" class="small"></button>
107
107
  </div>
108
- <!-- One button, by hand: the token keep-alive has no schedule, so there
109
- is no switch to turn it on or off with. It sits on the same card as
110
- the check-in because both walk the same accounts, but it has no
111
- hour to set. -->
108
+ <!-- Its own box, below the controls rather than beside them: the lines
109
+ are a log of what a pass did, and sharing a row with the hour field
110
+ made both hard to read. -->
111
+ <div class="hint log-box" id="autoNote"></div>
112
+ <p class="hint" id="autoHint"></p>
113
+ </div>
114
+ <!-- A card of its own: the keep-alive renews tokens rather than collecting
115
+ rewards and has no hour to set, so sharing the check-in card made both
116
+ harder to read. -->
117
+ <div class="card">
118
+ <div class="card-head">
119
+ <span class="card-title" id="keepAliveTitle"></span>
120
+ </div>
112
121
  <div class="switch-row">
113
122
  <button type="button" class="small" id="tokenKeepAliveRun"></button>
114
123
  <span class="switch-copy">
115
- <span class="switch-lead" id="keepAliveText"></span>
116
124
  <span class="hint" id="keepAliveHint"></span>
117
125
  </span>
118
126
  </div>
119
- <!-- Its own box, below the controls rather than beside them: the lines
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>
127
+ <div class="hint log-box" id="keepAliveNote"></div>
124
128
  </div>
125
129
  </section>
126
130
 
@@ -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
- gap: 8px;
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 { font-family: ui-monospace, Consolas, "Cascadia Mono", monospace; font-size: 12.5px; min-width: 200px; }
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 { color: var(--xd-muted); font-size: 12.5px; flex: 1; }
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;