dsh-wtq-pool 1.2.1 → 1.2.3

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.2.1",
5
+ "version": "1.2.3",
6
6
  "license": "MIT",
7
7
  "author": "chengzhi-c",
8
8
  "homepage": "https://github.com/chengzhi-c/dsh-wtq-pool#readme",
@@ -26,7 +26,7 @@
26
26
  "type": "module",
27
27
  "engines": {
28
28
  "node": "^22.19.0 || >=24.0.0",
29
- "dsh": ">=0.2.0-rc.1 <0.2.1"
29
+ "dsh": ">=0.2.0-rc.1 <0.2.1-0 || >=0.2.2-rc.1 <0.2.3-0"
30
30
  },
31
31
  "main": "lib/index.js",
32
32
  "types": "lib/index.d.ts",
@@ -49,13 +49,10 @@
49
49
  "LICENSE"
50
50
  ],
51
51
  "scripts": {
52
- "build": "tsdown",
53
- "prepare": "pnpm run build",
54
- "prepack": "tsdown",
55
- "prepublishOnly": "tsdown",
52
+ "build": "node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\" && tsdown",
56
53
  "typecheck": "tsc -p tsconfig.json --noEmit",
57
54
  "typecheck:client": "tsc -p tsconfig.client.json --noEmit",
58
- "pretest": "tsdown",
55
+ "pretest": "pnpm run build",
59
56
  "test": "node --test --test-timeout=60000 \"tests/*.test.cjs\""
60
57
  },
61
58
  "dsh": {
@@ -74,13 +71,13 @@
74
71
  }
75
72
  },
76
73
  "devDependencies": {
77
- "@deepseek-ai/cordis": "^4.0.4",
78
- "@deepseek-ai/dsh-host-webserver": "0.2.0-rc.2",
79
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
80
- "@deepseek-ai/dsh-llm-pi-ai": "0.2.0-rc.2",
81
- "@deepseek-ai/dsh-settings": "0.2.0-rc.2",
82
- "@deepseek-ai/schemastery": "^3.18.4",
83
- "@earendil-works/pi-ai": "^0.87.1",
74
+ "@deepseek-ai/cordis": "~4.1.0",
75
+ "@deepseek-ai/dsh-host-webserver": "0.2.2-rc.1",
76
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
77
+ "@deepseek-ai/dsh-llm-pi-ai": "0.2.2-rc.1",
78
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.1",
79
+ "@deepseek-ai/schemastery": "~3.19.0",
80
+ "@earendil-works/pi-ai": "1.5.0",
84
81
  "@types/node": "^22.20.0",
85
82
  "@types/react": "~18.3.31",
86
83
  "react": "^18.3.1",
@@ -89,11 +86,11 @@
89
86
  },
90
87
  "peerDependencies": {
91
88
  "@deepseek-ai/cordis": ">=4.0.4 <5.0.0",
92
- "@deepseek-ai/dsh-llm": ">=0.2.0-rc.1 <0.2.1",
93
- "@deepseek-ai/dsh-llm-pi-ai": ">=0.2.0-rc.1 <0.2.1",
94
- "@deepseek-ai/dsh-settings": ">=0.2.0-rc.1 <0.2.1",
89
+ "@deepseek-ai/dsh-llm": ">=0.2.0-rc.1 <0.2.1-0 || >=0.2.2-rc.1 <0.2.3-0",
90
+ "@deepseek-ai/dsh-llm-pi-ai": ">=0.2.0-rc.1 <0.2.1-0 || >=0.2.2-rc.1 <0.2.3-0",
91
+ "@deepseek-ai/dsh-settings": ">=0.2.0-rc.1 <0.2.1-0 || >=0.2.2-rc.1 <0.2.3-0",
95
92
  "@deepseek-ai/schemastery": "^3.18.4",
96
- "@earendil-works/pi-ai": ">=0.82.1 <0.88.0"
93
+ "@earendil-works/pi-ai": ">=0.87.1 <0.88.0 || >=1.3.0 <2.0.0-0"
97
94
  },
98
95
  "peerDependenciesMeta": {
99
96
  "@deepseek-ai/dsh-settings": {
@@ -859,6 +859,7 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
859
859
  color: var(--xd-muted);
860
860
  font-variant-numeric: tabular-nums;
861
861
  }
862
+ .credits-head:is(:hover, :active) .count-chip { color: var(--xd-fg); }
862
863
 
863
864
  /* ---------------------------------------------------- model columns */
864
865
 
package/renderer/panel.js CHANGED
@@ -29,7 +29,7 @@ var EN = {
29
29
  "tab.models": "Models",
30
30
  "tab.check": "Connection check",
31
31
  "tab.growth": "Growth centre",
32
- "risk.note": "! A ban is possible. Use at your own discretion; no liability accepted !",
32
+ "risk.note": "Unofficial clients may trigger account restrictions. Follow each vendor's terms of service.",
33
33
  "host.missing": "The host has not registered {count} model group(s) from this plugin yet: reload the plugin.",
34
34
  "btn.rescan": "Detect accounts again",
35
35
  "btn.reset": "Clear all cooldowns",
@@ -246,7 +246,7 @@ var EN = {
246
246
  "auto.rowGrowth": "Streak: {streak} tier(s) · +{credit} credits · {failed} failed",
247
247
  "auto.rowKeepAlive": "Token keep-alive {when}: {refreshed} refreshed · {fresh} already fresh · {failed} failed · {noToken} with no refresh token",
248
248
  "auto.rowTravelCounts": "{label}: {departed} sent · {claimed} claimed · {adopted} adopted",
249
- "auto.hint": "Claims the daily reward of all three sources (WorkBuddy / Trae / Qoder), the streak bonus of domestic WorkBuddy accounts, and runs the travel patrol in one pass. A slot already collected today is skipped. A slot missed earlier today is collected at the next start.",
249
+ "auto.hint": "Claims daily rewards for WorkBuddy, Trae and Qoder, and WorkBuddy streak rewards. Streak claims can use make-up cards and lottery draws. Cat travel runs for domestic accounts only. A slot already collected today is skipped; a missed slot is collected at the next start that day.",
250
250
  "keepAlive.runNow": "Refresh now",
251
251
  "keepAlive.running": "Refreshing…",
252
252
  "keepAlive.label": "Token keep-alive",
@@ -316,7 +316,7 @@ var ZH = {
316
316
  "tab.models": "模型",
317
317
  "tab.check": "连接检查",
318
318
  "tab.growth": "成长中心",
319
- "risk.note": "!可能有封号风险,请斟酌使用,概不负责 !",
319
+ "risk.note": "非官方客户端可能触发账号风控,请遵守厂商服务条款。",
320
320
  "host.missing": "宿主还没有注册本插件的 {count} 个模型组:重新加载插件。",
321
321
  "btn.rescan": "重新检测账号",
322
322
  "btn.reset": "清除所有冷却",
@@ -564,7 +564,7 @@ var ZH = {
564
564
  "auto.rowGrowth": "连登:{streak} 档 · +{credit} 积分 · 失败 {failed}",
565
565
  "auto.rowKeepAlive": "令牌保活 {when}:刷新 {refreshed} 个 · 已是最新 {fresh} 个 · 失败 {failed} 个 · 无刷新令牌 {noToken} 个",
566
566
  "auto.rowTravelCounts": "{label}:派出 {departed} · 领奖 {claimed} · 领养 {adopted}",
567
- "auto.hint": "时间到后一次性领取三家(WorkBuddy / Trae / Qoder)的签到奖励、WorkBuddy 国内账号的连登奖励,并顺带完成猫猫旅行;今天已领过的时段跳过。当天错过的时段在下次启动时补领。",
567
+ "auto.hint": "按时领取 WorkBuddy、Trae、Qoder 的签到奖励和 WorkBuddy 连登奖励。连登奖励可能使用补签卡和抽奖次数;猫猫旅行仅处理国内账号。当天已领取的时段会跳过,错过的时段会在当天后续运行时补领。",
568
568
  "keepAlive.runNow": "立即刷新",
569
569
  "keepAlive.running": "刷新中…",
570
570
  "keepAlive.label": "登录令牌保活",
@@ -1273,10 +1273,10 @@ function sourceGroupHead(source, titleKey, count, claimable, busyHere, offerChec
1273
1273
  /**
1274
1274
  * Whether an account has a check-in surface worth drawing.
1275
1275
  *
1276
- * Qoder's international service lists promotion campaigns but no daily
1277
- * CLAIM_BENEFIT round, so its accounts carry `active: false` and no opening
1278
- * hour. Drawing a disabled button and "no check-in" line for those accounts
1279
- * reads as a broken control; the card simply has no check-in.
1276
+ * An account whose upstream answer carries no round and no opening hour has
1277
+ * nothing to show: a disabled button and a "no check-in" line read as a broken
1278
+ * control, so the card has no check-in at all. `campaignsUnavailable` keeps the
1279
+ * surface for a failed read, which is a state to report rather than to hide.
1280
1280
  */
1281
1281
  function checkinOffered(checkin) {
1282
1282
  return checkin !== undefined && checkin !== null
@@ -1340,8 +1340,8 @@ function sourceAccountCard(account, kind) {
1340
1340
  // say so instead of offering a click the upstream will refuse (9095).
1341
1341
  var doneToday = checkin.todayCheckedIn === true;
1342
1342
  var deviceDone = doneToday !== true && checkin.deviceCheckedIn === true;
1343
- // Qoder issues its daily round at 10:00 Beijing, so before then the card
1344
- // names the hour instead of claiming there is no check-in at all.
1343
+ // The opening hour comes from the campaign list's own start, so the card
1344
+ // names it rather than claiming there is no check-in at all.
1345
1345
  var opensLabel = doneToday || deviceDone || typeof checkin.opensAtHour !== "number"
1346
1346
  ? ""
1347
1347
  : t("source.claimableAt", { time: clockHour(checkin.opensAtHour) });
@@ -1490,8 +1490,9 @@ function renderSourceStrip(source) {
1490
1490
  }).length;
1491
1491
  if (regions.indexOf(activeRegionOf(source)) < 0) setActiveRegion(source, regions[0]);
1492
1492
  var region = activeRegionOf(source);
1493
- // An international region has no daily round. Hiding the source-wide button
1494
- // there keeps it from reading as an action on the accounts below.
1493
+ // The source-wide button follows the accounts of the region on screen: it
1494
+ // appears where one of them has a check-in surface, and stays off a region
1495
+ // whose accounts carry none, where it would read as an action on nothing.
1495
1496
  var offerCheckin = accounts.some(function (account) {
1496
1497
  return account.region === region && checkinOffered(account.checkin);
1497
1498
  });