@eddyskywalker/dsh-chatgpt-subscription 0.80.3 → 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 +10 -0
- package/lib/client.js +7 -14
- package/lib/client.js.map +1 -1
- package/lib/index.js +95 -68
- package/lib/types/client/subagent/subagent-card-controller.d.ts.map +1 -1
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/claude/adapter.d.ts.map +1 -1
- package/lib/types/host/claude/types.d.ts +8 -0
- package/lib/types/host/claude/types.d.ts.map +1 -1
- package/lib/types/host/subagent-model-authorization.d.ts +28 -35
- package/lib/types/host/subagent-model-authorization.d.ts.map +1 -1
- package/lib/types/host/subagent-route-audit.d.ts +2 -0
- package/lib/types/host/subagent-route-audit.d.ts.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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
|
+
|
|
5
15
|
## 0.80.3 - 2026-11-19
|
|
6
16
|
|
|
7
17
|
- **[relayone] 补全非 GPT 模型能力与厂商 Chat 参数兼容**
|
package/lib/client.js
CHANGED
|
@@ -58622,6 +58622,10 @@ window.__ModuleLoader__.load({
|
|
|
58622
58622
|
}
|
|
58623
58623
|
return out;
|
|
58624
58624
|
}
|
|
58625
|
+
/** 宿主快照使用全局设置与各主模型设置的并集。 */
|
|
58626
|
+
function nativeAllowedRoutes(defaults, overrides) {
|
|
58627
|
+
return cloneRoutes([...defaults, ...Object.values(overrides).flat()]);
|
|
58628
|
+
}
|
|
58625
58629
|
function sameRouteSet(left, right) {
|
|
58626
58630
|
if (left.length !== right.length) return false;
|
|
58627
58631
|
const keys = new Set(right.map(routeKey));
|
|
@@ -59313,16 +59317,7 @@ window.__ModuleLoader__.load({
|
|
|
59313
59317
|
subagentAllowParentForkByMainModel: nextForkOverrides
|
|
59314
59318
|
};
|
|
59315
59319
|
this.preferencesStatus = "ready";
|
|
59316
|
-
const
|
|
59317
|
-
for (const route of desiredDefault) union.set(routeKey(route), {
|
|
59318
|
-
provider: route.provider,
|
|
59319
|
-
model: route.model
|
|
59320
|
-
});
|
|
59321
|
-
for (const list of Object.values(desiredOverrides)) for (const route of list) union.set(routeKey(route), {
|
|
59322
|
-
provider: route.provider,
|
|
59323
|
-
model: route.model
|
|
59324
|
-
});
|
|
59325
|
-
const unionRoutes = [...union.values()];
|
|
59320
|
+
const unionRoutes = nativeAllowedRoutes(desiredDefault, desiredOverrides);
|
|
59326
59321
|
const scope = this.modelSelection;
|
|
59327
59322
|
const modelSnapshot = scope.getSnapshot();
|
|
59328
59323
|
if ((this.currentEnabled() !== desiredEnabled || !sameRouteSet(modelSnapshot.value?.allowedModels ?? [], unionRoutes)) && modelSnapshot.status === "ready") {
|
|
@@ -59423,11 +59418,9 @@ window.__ModuleLoader__.load({
|
|
|
59423
59418
|
const currentDefault = this.currentDefault();
|
|
59424
59419
|
const currentDefaultFork = this.currentDefaultFork();
|
|
59425
59420
|
const currentForkOverrides = this.currentForkOverrides();
|
|
59426
|
-
const union = /* @__PURE__ */ new Map();
|
|
59427
|
-
for (const route of desiredDefault) union.set(routeKey(route), route);
|
|
59428
|
-
for (const list of Object.values(desiredOverrides)) for (const route of list) union.set(routeKey(route), route);
|
|
59429
59421
|
const hostAllowed = cloneRoutes(modelSnapshot.value?.allowedModels ?? []);
|
|
59430
|
-
const
|
|
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;
|
|
59431
59424
|
const depthPersistedOverridden = userHas(limitsSnapshot.user, "maxDepth");
|
|
59432
59425
|
const activePersistedOverridden = userHas(limitsSnapshot.user, "maxActiveSubagents");
|
|
59433
59426
|
const depthDirty = this.draftDepthCleared ? depthPersistedOverridden : this.draftDepth !== void 0 && maxDepth.value !== String(readNumber(limitsSnapshot.value, "maxDepth", 1));
|