dsh-desktop-enhance 0.6.6 → 0.6.7
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/README.md +1 -1
- package/lib/client.js +4 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ Web 版(浏览器里打开的那种)键位是 **`Cmd+Shift+.`** —— `Cmd+
|
|
|
112
112
|
|
|
113
113
|
### 异常轮次分叉
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
已经结束、但原生 Fork 仍不可用的轮次,也能在原位置分叉,包括恢复会话、前置检查拒绝,以及正常结束却没有最终文本的情况。不按结束原因筛选;原生按钮已可用时保持不变,不增加第二个入口。没有最终答复的轮次会补齐该入口。设置页「会话能力 → 异常轮次分叉」可关闭并恢复原生行为。
|
|
116
116
|
|
|
117
117
|
只支持已保存结束记录的轮次,不处理运行中或损坏记录。**分叉复制对话,不回滚文件和外部操作**。
|
|
118
118
|
|
package/lib/client.js
CHANGED
|
@@ -215,7 +215,7 @@ window.__ModuleLoader__.load({
|
|
|
215
215
|
"abnormalFork.failed": "分叉失败",
|
|
216
216
|
"abnormalFork.created": "分叉已创建,但后续操作失败;请在侧栏查看",
|
|
217
217
|
"settings.abnormalFork": "异常轮次分叉",
|
|
218
|
-
"settings.abnormalFork.hint": "
|
|
218
|
+
"settings.abnormalFork.hint": "为已结束但原生 Fork 不可用的轮次恢复分叉入口;不处理运行中或缺少结束记录的轮次",
|
|
219
219
|
"settings.sessionModel": "子会话模型",
|
|
220
220
|
"settings.sessionModel.hint": "在子智能体与团队会话的输入区域只读显示实际模型;关闭后恢复原生界面",
|
|
221
221
|
"settings.sessionInfo": "会话信息",
|
|
@@ -371,7 +371,7 @@ window.__ModuleLoader__.load({
|
|
|
371
371
|
"abnormalFork.failed": "Fork failed",
|
|
372
372
|
"abnormalFork.created": "The fork was created, but a later operation failed; check the sidebar",
|
|
373
373
|
"settings.abnormalFork": "Fork interrupted turns",
|
|
374
|
-
"settings.abnormalFork.hint": "
|
|
374
|
+
"settings.abnormalFork.hint": "Restores branching at the original position for closed turns whose native Fork is unavailable; excludes running or unclosed turns",
|
|
375
375
|
"settings.sessionModel": "Child session model",
|
|
376
376
|
"settings.sessionModel.hint": "Shows the actual model read-only in subagent and team session input areas; disabling restores the native UI",
|
|
377
377
|
"settings.sessionInfo": "Session info",
|
|
@@ -7804,16 +7804,10 @@ window.__ModuleLoader__.load({
|
|
|
7804
7804
|
var styles_css_default$1 = ":root[data-desktop-enhance-off-session-model] [data-desktop-enhance-session-model] { display: none !important; }\n\n\n:root:not([data-desktop-enhance-off-session-model]) [data-desktop-enhance-session-model] {\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n max-width: min(360px, 45cqw);\n height: 28px;\n padding: 0 4px 0 8px;\n color: var(--dsw-alias-label-secondary);\n font-size: 13px;\n font-weight: 400;\n line-height: 20px;\n}\n.de-session-model-name,\n.de-session-model-effort {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.de-session-model-effort { flex-shrink: 1000; }\n.de-readonly-model-composer {\n border: 0.5px solid var(--dsw-alias-border-l1);\n border-radius: var(--dsw-radius-lg);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-secondary);\n margin: 0 24px 20px;\n padding: 10px 16px;\n font-size: 13px;\n line-height: 20px;\n}\n.de-readonly-model-notice {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: center;\n gap: 8px;\n}\n.de-readonly-model-notice strong { color: var(--dsw-alias-label-primary); font-weight: 510; }\n.de-readonly-model-row { display: flex; justify-content: flex-end; margin-top: 8px; }\n";
|
|
7805
7805
|
//#endregion
|
|
7806
7806
|
//#region src/client/abnormal-fork/model.ts
|
|
7807
|
-
function
|
|
7807
|
+
function closedTurnBoundary(turn) {
|
|
7808
7808
|
const end = turn.end;
|
|
7809
7809
|
const tail = turn.data.get("turn-tail");
|
|
7810
7810
|
if (turn.status !== "closed" || !end || !Number.isSafeInteger(end.data?.turn) || end.data.turn < 1 || !Number.isSafeInteger(end.seq) || end.seq < 0 || tail?.turn !== end.data.turn || tail.seq !== end.seq) return null;
|
|
7811
|
-
if (![
|
|
7812
|
-
"error",
|
|
7813
|
-
"aborted",
|
|
7814
|
-
"interrupted",
|
|
7815
|
-
"max-tokens"
|
|
7816
|
-
].includes(end.data.reason?.kind)) return null;
|
|
7817
7811
|
return end.seq;
|
|
7818
7812
|
}
|
|
7819
7813
|
function createForkAction(services, sessionId, atSeq, allowed, publish) {
|
|
@@ -8023,7 +8017,7 @@ window.__ModuleLoader__.load({
|
|
|
8023
8017
|
}, `${t(state.created ? "abnormalFork.created" : "abnormalFork.failed")}: ${state.error}`) : null);
|
|
8024
8018
|
}
|
|
8025
8019
|
function Contribution(props) {
|
|
8026
|
-
const boundary =
|
|
8020
|
+
const boundary = closedTurnBoundary(props.turn);
|
|
8027
8021
|
if (boundary === null) return null;
|
|
8028
8022
|
return h(Controls, {
|
|
8029
8023
|
...props,
|
package/package.json
CHANGED