dsh-unified-router 0.6.4 → 0.6.5

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.
Files changed (2) hide show
  1. package/lib/client.js +8 -3
  2. package/package.json +2 -2
package/lib/client.js CHANGED
@@ -3822,7 +3822,10 @@ function packSettings(provider) {
3822
3822
  id: accountId, name: nickname, enabled,
3823
3823
  toggle: ['save', accountId, nickname, !enabled],
3824
3824
  tags: [
3825
- caps.accountPlan && (plan === 'pro' ? ['订阅', 'info'] : plan === 'free' ? ['免费', 'success'] : ['套餐未知', 'warn']),
3825
+ // 统一模型开关打开后不再区分免费/订阅:合并的意义就是「一个模型面」,
3826
+ // 再挂套餐标签会让人以为还要按套餐挑账号。关闭时照旧按套餐标注。
3827
+ caps.accountPlan && !unifiedModelsOn(state)
3828
+ && (plan === 'pro' ? ['订阅', 'info'] : plan === 'free' ? ['免费', 'success'] : ['套餐未知', 'warn']),
3826
3829
  !enabled && ['已停用'],
3827
3830
  account.expiresAt > 0 && account.expiresAt <= Date.now() && ['凭据过期', 'warn'],
3828
3831
  limited > 0 && [`受限 ${limited}`, 'warn'],
@@ -3907,7 +3910,9 @@ function packSettings(provider) {
3907
3910
  }))),
3908
3911
  ...(caps.unifiedModels && state.automation?.unifiedModelProviders?.includes(id) ? [{
3909
3912
  id: 'unified-models', name: '统一免费与订阅模型',
3910
- meta: '先走免费账号,免费额度用尽自动改用订阅账号',
3913
+ // 合并后是一个模型面:说明按「谁有额度用谁」讲,不再强调免费/订阅的先后,
3914
+ // 否则用户会以为还要按套餐挑账号。
3915
+ meta: '合并为一个模型面 · 额度用尽自动切换账号',
3911
3916
  enabled: state.automation?.config?.raccoonUnifiedModels === true,
3912
3917
  toggle: ['setAutomationConfig', { raccoonUnifiedModels: !(state.automation?.config?.raccoonUnifiedModels === true) }],
3913
3918
  toggleLabel: '统一免费与订阅模型',
@@ -4433,7 +4438,7 @@ const loomy = {
4433
4438
  // ⚠️ 已停用(2026-11-24):全部账号被上游标记受限,请求一律落到 spark-x2.6-low
4434
4439
  // (响应体仍谎报 DeepSeek-V4.1-Flash,只有积分账本能看出)。停用方式为
4435
4440
  // **不注册模型适配器**(`LOOMY_CHANNEL_ENABLED = false`),因此渠道里没有可用模型。
4436
- // 渠道已停用:模型不可用(适配器不注册)。卡片保留以显示状态,并挂「已停用」标记。
4441
+ // 渠道已停用:模型不可用(适配器不注册)。卡片保留以显示状态与「已被上游限制」摘要。
4437
4442
  // channel-pack 通用渠道:账号池 + 模型目录 + 渠道开关。
4438
4443
  pack: true,
4439
4444
  caps: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-unified-router",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "type": "module",
5
5
  "main": "lib/web-host.js",
6
6
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "scripts": {
60
60
  "build": "node scripts/build.mjs",
61
61
  "test": "node scripts/build.mjs && npm run test:run",
62
- "test:run": "node --test test/backend.test.mjs test/host.test.mjs test/web-client.test.mjs test/model-selection-ui.test.mjs test/context-pill.test.mjs test/quota-pill.test.mjs test/quota-priority.test.mjs test/sensenova-manager.test.mjs test/sensenova-models.test.mjs test/plan-models-ui.test.mjs test/workbuddy.test.mjs test/model-rate-badge.test.mjs test/model-rate-badge-paths.test.mjs test/qoder-cli.test.mjs test/raccoon-thinking.test.mjs test/raccoon-checkin.test.mjs test/loomy-client-fingerprint.test.mjs test/thinking-defaults.test.mjs test/model-blacklist-hygiene.test.mjs test/apikey-providers.test.mjs test/apikey-llm.test.mjs test/apikey-models.test.mjs test/apikey-channel.test.mjs test/apikey-host.test.mjs test/apikey-client.test.mjs test/unisound-tools.test.mjs test/agnes-image-tool.test.mjs test/managed-channels.test.mjs test/automation-and-ux.test.mjs test/cot-loop-guard.test.mjs test/loomy-task-mode.test.mjs"
62
+ "test:run": "node --test test/backend.test.mjs test/host.test.mjs test/web-client.test.mjs test/model-selection-ui.test.mjs test/context-pill.test.mjs test/quota-pill.test.mjs test/quota-priority.test.mjs test/sensenova-manager.test.mjs test/sensenova-models.test.mjs test/plan-models-ui.test.mjs test/workbuddy.test.mjs test/model-rate-badge.test.mjs test/model-rate-badge-paths.test.mjs test/qoder-cli.test.mjs test/raccoon-thinking.test.mjs test/raccoon-checkin.test.mjs test/loomy-client-fingerprint.test.mjs test/thinking-defaults.test.mjs test/model-blacklist-hygiene.test.mjs test/apikey-providers.test.mjs test/apikey-llm.test.mjs test/apikey-models.test.mjs test/apikey-channel.test.mjs test/apikey-host.test.mjs test/apikey-client.test.mjs test/unisound-tools.test.mjs test/agnes-image-tool.test.mjs test/managed-channels.test.mjs test/automation-and-ux.test.mjs test/cot-loop-guard.test.mjs test/loomy-task-mode.test.mjs test/loomy-route.test.mjs"
63
63
  },
64
64
  "dsh": {
65
65
  "manifestVersion": 1,