dsh-wtq-pool 1.0.5 → 1.0.51

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # 更新说明
2
2
 
3
+ ## [1.0.51]
4
+
5
+ - Qoder 不再列出 Ultimate、Efficient、Sonus、Cantus 四条内部路由,只保留有名称的模型。
6
+
3
7
  ## [1.0.5]
4
8
 
5
9
  - **新增成长中心页签**:按账号列出连登档位,「读取状态」只读,「立即执行」单独跑成长环节,按补签卡、礼包与补偿、活跃上报、连登档位与抽奖分项报告,两个 region 都执行,不含任务奖励的列表、接取与领取。
package/lib/index.js CHANGED
@@ -8650,11 +8650,30 @@ function qoderContextWindowOf(record) {
8650
8650
  const sizes = Object.values(config).map(tokenCountOf).filter((value) => value !== void 0);
8651
8651
  return sizes.length === 0 ? void 0 : Math.max(...sizes);
8652
8652
  }
8653
+ /**
8654
+ * The routes Qoder lists beside its models without naming them.
8655
+ *
8656
+ * The global directory returns four entries whose display names are Qoder's own
8657
+ * codenames — Ultimate, Efficient, Sonus, Cantus — and nothing in the payload
8658
+ * marks them as different from a named model: same `source`, same `format`, same
8659
+ * `is_editable`, and one of them even carries a promotion. Offered in the picker
8660
+ * they read as four opaque names between Auto and Qwen3.8-Max. The keys are what
8661
+ * Qoder's API has returned for them across versions, so they are matched by key
8662
+ * on whichever directory lists them. The `auto` route stays: it is a model choice
8663
+ * a user recognises, and it is the row the directory marks `is_default`.
8664
+ */
8665
+ const QODER_UNNAMED_ROUTES = /* @__PURE__ */ new Set([
8666
+ "ultimate",
8667
+ "efficient",
8668
+ "smodel",
8669
+ "cmodel"
8670
+ ]);
8653
8671
  /** One directory row → one callable model, or undefined when unusable. */
8654
8672
  function qoderModelOf(entry) {
8655
8673
  if (entry === null || typeof entry !== "object") return void 0;
8656
8674
  const record = entry;
8657
8675
  if (typeof record["key"] !== "string" || record["key"].length === 0) return void 0;
8676
+ if (QODER_UNNAMED_ROUTES.has(record["key"])) return void 0;
8658
8677
  if (record["enable"] === false) return void 0;
8659
8678
  if (typeof record["display_name"] !== "string" || record["display_name"].length === 0) return void 0;
8660
8679
  const config = record["thinking_config"];
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.0.51",
6
6
  "license": "MIT",
7
7
  "author": "chengzhi-c",
8
8
  "homepage": "https://github.com/chengzhi-c/dsh-wtq-pool#readme",