@eddyskywalker/dsh-chatgpt-subscription 0.80.2 → 0.80.4

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
@@ -2,6 +2,24 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.80.4 - 2026-11-19
6
+
7
+ - **[调度模式] 修复子代理模型名单与会话授权不一致**
8
+ - 派遣、模型发现和路由审计使用会话原生授权与按主模型配置的交集。交集为空时,提示保存配置并新建会话。
9
+ - 设置卡在两份授权名单未同步时允许重新保存,补齐上次未写入的宿主名单。
10
+
11
+ - **[claude] 修复流式断流无法诊断与自愈([#118](https://github.com/Aa728848/dsh-chatgpt-subscription/issues/118))**
12
+ - 首值前使用独立的 360 秒预算,首个输出后恢复 120 秒空闲预算,避免大上下文预填充被误判为死流;真正静默仍报告 `TIMEOUT`。
13
+ - 已开始输出后的裸断流改为可重试的 `TRANSPORT`,保留原始 cause;账号池输出后不轮换账号的规则不变。
14
+
15
+ ## 0.80.3 - 2026-11-19
16
+
17
+ - **[relayone] 补全非 GPT 模型能力与厂商 Chat 参数兼容**
18
+ - 按厂商和型号更新 Claude、Gemini、Kimi、MiniMax、Qwen、DeepSeek、GLM、Step 与 SWE-2 的上下文窗口、最大输出、图片输入及推理档位;带 `moonshotai/`、`free/` 等前缀的 ID 复用同一能力规则,旧快照读取时自动重算。
19
+ - MiniMax、GLM、Step、DeepSeek、Gemini 与 Claude 的 Chat 兼容面使用 `max_tokens`,Kimi、Qwen 与既有 GPT 路径保留 `max_completion_tokens`;GLM 不再发送不兼容的流式用量和并行工具字段,DeepSeek 的 `none` 正确映射为关闭思考。
20
+ - Composer 额度徽章移除右侧进度条,保留真实剩余百分比和余额详情。MiniMax 修正字段后的直接请求已实测返回 200;DeepSeek 福利分组 502、Claude Max 分组 429/500/503 为诊断时的上游状态,未记为真实生成验收通过。
21
+ - **验证**:Host/Client/Test/Scripts 类型检查通过;全量 Vitest 393 个测试文件通过、3 个跳过,7,027 项测试通过、10 个跳过;新增模型能力、厂商参数与额度 UI 回归,安全干净构建及 npm 打包审查通过。
22
+
5
23
  ## 0.80.2 - 2026-11-19
6
24
 
7
25
  - **[antigravity-acp] 修复 ACP server 解包目录残留写满系统盘([#117](https://github.com/Aa728848/dsh-chatgpt-subscription/issues/117))**
package/lib/client.js CHANGED
@@ -58516,8 +58516,7 @@ window.__ModuleLoader__.load({
58516
58516
  used === null ? null : lookup("quotaUsed") + " " + used,
58517
58517
  granted === null ? null : lookup("quotaGranted") + " " + granted
58518
58518
  ].filter(Boolean).join(" · ")) + (quota.state === "stale" ? " · " + lookup("quotaStale") : ""),
58519
- level: quotaLevel(quota.remainingPercent ?? 100),
58520
- ...quota.remainingPercent === null ? {} : { percent: quota.remainingPercent }
58519
+ level: quotaLevel(quota.remainingPercent ?? 100)
58521
58520
  };
58522
58521
  }
58523
58522
  function RelayOneComposerQuota({ directory, loadModelDirectory, t }) {
@@ -58623,6 +58622,10 @@ window.__ModuleLoader__.load({
58623
58622
  }
58624
58623
  return out;
58625
58624
  }
58625
+ /** 宿主快照使用全局设置与各主模型设置的并集。 */
58626
+ function nativeAllowedRoutes(defaults, overrides) {
58627
+ return cloneRoutes([...defaults, ...Object.values(overrides).flat()]);
58628
+ }
58626
58629
  function sameRouteSet(left, right) {
58627
58630
  if (left.length !== right.length) return false;
58628
58631
  const keys = new Set(right.map(routeKey));
@@ -59314,16 +59317,7 @@ window.__ModuleLoader__.load({
59314
59317
  subagentAllowParentForkByMainModel: nextForkOverrides
59315
59318
  };
59316
59319
  this.preferencesStatus = "ready";
59317
- const union = /* @__PURE__ */ new Map();
59318
- for (const route of desiredDefault) union.set(routeKey(route), {
59319
- provider: route.provider,
59320
- model: route.model
59321
- });
59322
- for (const list of Object.values(desiredOverrides)) for (const route of list) union.set(routeKey(route), {
59323
- provider: route.provider,
59324
- model: route.model
59325
- });
59326
- const unionRoutes = [...union.values()];
59320
+ const unionRoutes = nativeAllowedRoutes(desiredDefault, desiredOverrides);
59327
59321
  const scope = this.modelSelection;
59328
59322
  const modelSnapshot = scope.getSnapshot();
59329
59323
  if ((this.currentEnabled() !== desiredEnabled || !sameRouteSet(modelSnapshot.value?.allowedModels ?? [], unionRoutes)) && modelSnapshot.status === "ready") {
@@ -59424,11 +59418,9 @@ window.__ModuleLoader__.load({
59424
59418
  const currentDefault = this.currentDefault();
59425
59419
  const currentDefaultFork = this.currentDefaultFork();
59426
59420
  const currentForkOverrides = this.currentForkOverrides();
59427
- const union = /* @__PURE__ */ new Map();
59428
- for (const route of desiredDefault) union.set(routeKey(route), route);
59429
- for (const list of Object.values(desiredOverrides)) for (const route of list) union.set(routeKey(route), route);
59430
59421
  const hostAllowed = cloneRoutes(modelSnapshot.value?.allowedModels ?? []);
59431
- const modelsDirty = this.currentEnabled() !== enabled || !sameRouteSet(currentDefault, desiredDefault) || !sameOverrides(currentOverrides, desiredOverrides) || currentDefaultFork !== desiredDefaultFork || !sameForkOverrides(currentForkOverrides, desiredForkOverrides) || this.draftDefault !== void 0 && !sameRouteSet(hostAllowed, [...union.values()]);
59422
+ const pendingRouteSync = modelsAvailable && (this.draftDefault !== void 0 || enabled && this.preferencesStatus === "ready") && !sameRouteSet(hostAllowed, nativeAllowedRoutes(desiredDefault, desiredOverrides));
59423
+ const modelsDirty = this.currentEnabled() !== enabled || !sameRouteSet(currentDefault, desiredDefault) || !sameOverrides(currentOverrides, desiredOverrides) || currentDefaultFork !== desiredDefaultFork || !sameForkOverrides(currentForkOverrides, desiredForkOverrides) || pendingRouteSync;
59432
59424
  const depthPersistedOverridden = userHas(limitsSnapshot.user, "maxDepth");
59433
59425
  const activePersistedOverridden = userHas(limitsSnapshot.user, "maxActiveSubagents");
59434
59426
  const depthDirty = this.draftDepthCleared ? depthPersistedOverridden : this.draftDepth !== void 0 && maxDepth.value !== String(readNumber(limitsSnapshot.value, "maxDepth", 1));