dsh-wdx-relief 0.7.0 → 0.9.0

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,37 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0 — 2026-11-22
4
+
5
+ - **进度改成按时间窗的思路摘要**:每 10 分钟那条不再拼「运行 cd …」的命令流水,而是从这段时间的思考片段和去掉参数的动作里总结「在解决什么、用了什么思路、推进到哪」。第 1 条覆盖 1–10 分钟,第 2 条累计 1–20 分钟(重点写 11–20 分钟的新进展),以此类推;进度行右侧直接标出累计时间窗。
6
+ - 客户端从事件窗口切出当前时间窗,只把思考片段和去参数的动作(命令、搜索、网页的目标不发送)作为 `digest` 发给 Host;Host 复用摘要模型链生成 1–2 句,模型失败或摘要功能关闭时保留客户端本地摘要。
7
+ - 时间窗按本轮开始换算:常规第 2 条显示「第 1–20 分」、提示模型重点写新增的 11–20;中途回复过或跳档时显示真实覆盖范围。
8
+ - 生成结果里的命令/参数会被过滤,失败时退回本地摘要;旧进度记录没有 `windowMs` 时保持原样显示,不迁移。
9
+ - `recapProgress` 的说明同步改为「用便宜模型写思路」。
10
+ - 顶栏新增 **WDX Relief 入口**:和 wdx-git 的图标并排(`order` 12),点一下直接打开右侧面板;按钮沿用面板的图标和无障碍标签,支持键盘焦点。
11
+
12
+ ## 0.8.0 — 2026-11-21
13
+
14
+ - 新增 **实时进度**(默认开启):一轮运行中每 10 分钟没给用户正文回复,就往右侧「会话回顾」记一条进度;工具调用和思考不会重置这个计时,所以一直跑工具也算。输入框上方那一行在第一次超过 10 分钟时自动出现,显示第几轮、最近动作和等待时长。
15
+ - 「无新输出」状态仍按事件静默判断;「未回复」按距上一次正文回复判断,两者分开,避免边跑工具边等 20 分钟却什么都不记。
16
+ - 进度条目的锚点改为上一次回复时间,同一次等待同一档只记一条。
17
+ - 轮次结束时不再取消上一轮还在生成的摘要请求;「会话回顾」在运行状态变化时主动刷新,并在 3 秒后补一次,避免主对话已有提示、面板却没有记录。
18
+ - 状态条区分「进行中 / 无新输出 / 已完成 / 已取消 / 出错」;行本身钉住到本轮结束,但状态按实时输出判断,恢复输出后立即回到「进行中」。
19
+ - 普通轮次结束后不常驻「已完成」;只有生成摘要、开了活动流水、或这一轮曾久到需要提示时才保留完成态。
20
+ - 行尾的「›」直接打开「会话回顾」并筛出进度记录。
21
+ - 摘要改为 **Host 兜底**:每轮 `turn/end` 时 Host 同步拍下这一轮的消息快照并生成摘要,切走会话、关掉面板、整页刷新都不再漏;客户端同一刻的请求按轮次内容合并,只调一次模型。子会话(`origin: subagent`)跳过。
22
+ - 新增配置 `recapProgress`(默认 `true`)和 `recapStallSeconds`(默认 600 秒 = 10 分钟,60–3600);阈值同时也是记录间隔。
23
+ - 新增配置 `defaultTab`(默认 `recaps`):右侧 WDX Relief 面板第一次打开时默认显示「会话回顾」,可改为「旁问」。
24
+ - 「会话回顾」不再只放摘要:摘要和进度快照共用同一份历史,按轮次分组、左侧标「摘要 / 进度」,顶部按「全部 / 摘要 / 进度 / 待跟进」筛选并显示数量;打开期间每 30 秒静默刷新,也可手动刷新。
25
+ - 新增 `POST /api/wdx-relief/progress` 追加进度快照;Host 按 `(sessionId, turn, anchor, bucket)` 去重,刷新页面不重复;恢复输出后再次静默会以新的 anchor 记新的一条。
26
+ - `recaps.json` 升到 version 2,保留 `turn` / `bucket` / `status` / `activity` / `elapsedMs` / `silenceMs` / `steps`;摘要去重只看摘要条目,不会被同 seq 的进度记录挡住。
27
+ - 移除独立的「进度」Tab;进度只作为「会话回顾」里的一种可筛选记录。
28
+ - 移除「待跟进」Tab 和跨会话的 Today 整理:待跟进不再是跨会话清单,而是「会话回顾」最近 N 轮的「待跟进」标记(`pendingTurns` 默认 3,收在高级设置;摘要 `kind: question`、`question` 非空,或回复/摘要以「下一步 / 需要你 / 等你」开头;正在跑的当前轮不标,已结束的上一轮保留)。顶部新增「待跟进」筛选,只读当前会话的摘要记录,零模型调用。
29
+ - 「会话回顾」按轮次分组:同一轮的进度记录和摘要放在一组,组头显示轮次、条数、结束时间和这一轮时长,可展开 / 折叠;支持「最新在前 / 最早在前」,组和组内记录一起反转;每行仍带自己的时间。
30
+ - 摘要从第 1 轮开始生成(原先第 3 轮),保证每组轮次都能有一条自己的摘要;摘要文字沿用上一轮时也保留当轮这一条,历史按 `(sessionId, turn)` 去重,每组最多一条摘要。
31
+ - 「会话回顾」的「清空」改为两步确认,避免一键删掉当前会话的全部摘要和进度。
32
+ - 新增 `progressEntryOf()` 纯函数;`deriveTurnView()` 补充 `lastEventAt`、`silenceMs`、`endedAt`、`endReason`、`status`、`steps` 字段。
33
+ - 测试:进度快照、筛选渲染、Host 路由、历史去重等用例,`node --test` 121 项通过。
34
+
3
35
  ## 0.7.0 — 2026-11-18
4
36
 
5
37
  - 新增 **ELI5 模式**(默认开启):设置页「回复方式」分组里一个开关,打开时向 system prompt 注入「默认用 ELI5 的方式和我说话,如果我要求则深入讲解」,关掉后这句完全不出现。
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # WDX Relief
2
2
 
3
- A small collection of features that reduce the everyday mental load of using DSH. Seven features today, and **every setting lives in this plugin's own configuration**.
3
+ A small collection of features that reduce the everyday mental load of using DSH. Eight features today, and **every setting lives in this plugin's own configuration**.
4
4
 
5
5
  > Sidebar **Plugins → Installed plugins → WDX Relief**; the configuration area is below the bundle page.
6
6
  > It does not add a page to DSH's Settings navigation; every field is the plugin's own `Config`, persisted to the profile's `cordis.patch.yml` after saving.
@@ -8,8 +8,8 @@ A small collection of features that reduce the everyday mental load of using DSH
8
8
  ## Features
9
9
 
10
10
  - **Next-message prediction**: after a turn, grey text guesses what you'll send next; press <kbd>Tab</kbd> to accept. Typing hides it, <kbd>Esc</kbd> dismisses it.
11
- - **The line above the input** (on by default): shows turn by turn "what this turn is doing and where it is", always above the composer. By default it shows the semantic recap (one cheap model call per turn); the local activity feed makes zero model calls and can be enabled in settings. This line never enters the model context. Generated recaps stay in the WDX Relief panel on the right.
12
- - **WDX Relief page** (right sidebar, on by default): appears in the right sidebar's tool list just like WDX Git. It has three tabs: "Follow-ups" (default) lists things past sessions reminded you about that you haven't handled; click an item to jump back to that session, and the "×" on each clears unwanted suggestions (undoable; cleared records stay local). "Session review" looks back at every recap line generated in this session. "Ask aside" stays out of the main context.
11
+ - **The line above the input** (on by default): shows turn by turn "what this turn is doing and where it is", always above the composer. **Live progress** appears automatically after the configured interval without a reply to you (10 minutes by default) — tools and reasoning keep running but still count as no reply — and shows the turn number and waiting time; from then on it records one **idea summary** per interval in Session review: a cheap model writes what this window was solving and how far it got; the action list drops command arguments and command-shaped model output is filtered, with a local summary as fallback. A status chip distinguishes running / no output / done / cancelled from the finished recap. The "›" at the end of the line opens Session review filtered to progress. The semantic recap makes one cheap model call per turn, and the Host generates it at turn end even when the panel is closed or you switched away, so no turn is skipped; the local activity feed makes zero calls. This line never enters the model context. Generated recaps stay in the WDX Relief panel on the right.
12
+ - **WDX Relief page** (right sidebar, on by default): appears in the right sidebar's tool list just like WDX Git, and a matching icon in the session header opens it directly. It has two tabs and defaults to "Session review" (configurable in settings). "Session review" groups entries by turn: each turn's progress entries and recap sit together, with a collapsible header showing the turn, counts, end time and turn duration; if any of the last N turns (3 by default; configurable under advanced settings) ends on a question or a "next step / you need" line it is marked "Follow up"; finished turns keep that marker while a new turn is running, and the running turn joins the check only after it ends. Switch between Newest first and Oldest first, filter by All / Summaries / Progress / Follow up, refresh every 30 seconds, and confirm before clearing. "Ask aside" stays out of the main context.
13
13
  - **Ask aside**: the tab's input is a rounded card like the composer, with a model picker for the aside at the bottom (only the model icon when narrow) and a circular send button on the right. The Q&A stays in the panel: it is not written to the session or the command log, does not enter the model context, and does not change the main session's model.
14
14
  - **Reply style**: length **short / standard / detailed**; style **default / professional / friendly / blunt / follow my style**; up to 2000 characters of custom instructions.
15
15
  - **Action-first** (on by default): result and next step first; one sentence when one suffices; keeps risks, failure conditions, and work you've already authorized.
@@ -19,8 +19,8 @@ A small collection of features that reduce the everyday mental load of using DSH
19
19
  ## Requirements
20
20
 
21
21
  - DSH Web profile; the plugin depends on the `connection`, `sessions`, and `tools` services.
22
- - A default model configured. Prediction sends the last few turns to the current default model as a prompt; Ask aside uses the current session model by default and can be switched to another model at the bottom of the panel; Follow-ups sends one tail fragment from recent sessions for a merge decision. None of the three writes to the session log or triggers the agent loop.
23
- - The semantic recap starts after 3 user turns and updates every turn: it tries your configured cheap-model chain first, then picks a cheap model automatically, then falls back to the current default model; on model failure it falls back to a local short concatenation. The activity feed makes no model calls.
22
+ - A default model configured. Prediction sends the last few turns to the current default model as a prompt; Ask aside uses the current session model by default and can be switched to another model at the bottom of the panel. None of the three writes to the session log or triggers the agent loop; the Follow up marker only reads the current session's recap entries.
23
+ - The semantic recap starts after the first user turn and updates every turn: it tries your configured cheap-model chain first, then picks a cheap model automatically, then falls back to the current default model; on model failure it falls back to a local short concatenation. The activity feed makes no model calls; progress summaries and turn recaps use the same model chain and fall back to local text on failure. Progress entries share `$DSH_HOME/wdx-relief/recaps.json` with summaries, one entry per configured interval (10 minutes by default).
24
24
 
25
25
  ## Install
26
26
 
package/README.zh.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # WDX Relief
2
2
 
3
- 降低 DSH 日常使用心智负担的小功能集合。目前七个功能,**全部设置都在这个插件的配置里**。
3
+ 降低 DSH 日常使用心智负担的小功能集合。目前八个功能,**全部设置都在这个插件的配置里**。
4
4
 
5
5
  > 侧边栏 **插件 → 已安装插件 → WDX Relief**,配置区在 bundle 页面下方。
6
6
  > 不往 DSH 的 Settings 导航里插入页面;字段都是插件自己的 `Config`,写入后持久化到 profile 的 `cordis.patch.yml`。
@@ -8,8 +8,8 @@
8
8
  ## 功能
9
9
 
10
10
  - **输入框下一句预测**:对话结束后用灰字猜你接下来要发的话,<kbd>Tab</kbd> 填入;打字隐藏,<kbd>Esc</kbd> 忽略。
11
- - **输入框上的一行**(默认开启):逐轮显示「这一轮在做什么、到哪了」,固定放在输入框上方。默认显示语义摘要(每轮用一次便宜模型);活动流水本地生成、零模型调用,可在设置里打开。这一行永不进入模型上下文,生成过的摘要会留在右侧 WDX Relief 面板里。
12
- - **WDX Relief 页面**(右侧栏,默认开启):和 WDX Git 一样出现在右侧栏的工具列表里。页面用三个 Tab:默认是「待跟进」,把过去会话里提醒过你、但你还没处理的事列成清单,点条目跳回原会话,每条的「×」可以清掉不想要的建议(可撤销,清掉记录只存在本地);「会话回顾」回看这个会话生成过的每一行摘要;「旁问」不进入主上下文。
11
+ - **输入框上的一行**(默认开启):逐轮显示「这一轮在做什么、到哪了」,固定放在输入框上方。新增 **实时进度**:一轮运行超过设置的间隔(默认 10 分钟)还没给你回复时自动出现——即使工具一直在跑、一直在思考,只要没回你话就算——显示第几轮和等待时长;之后按同一间隔往「会话回顾」记一条这个时间窗的**思路摘要**——用便宜模型写成「在解决什么、推进到哪」,动作清单不带命令参数、模型输出里的命令也会被过滤;模型失败时退回本地摘要。行尾的「›」直接打开「会话回顾」并筛出进度记录。语义摘要每轮用一次便宜模型,并在轮次结束时由 Host 兜底生成——切走会话、关掉面板、整页刷新都不会漏这一轮;活动流水本地生成、零模型调用。这一行永不进入模型上下文,生成过的摘要会留在右侧 WDX Relief 面板里。
12
+ - **WDX Relief 页面**(右侧栏,默认开启):和 WDX Git 一样出现在右侧栏的工具列表里;顶栏也有一个并排的图标,点一下直接打开面板。页面用两个 Tab:默认「会话回顾」(可在设置里改成旁问);「会话回顾」按轮次分组:同一轮的进度记录和摘要放在一组,组头显示轮次、条数、结束时间和这一轮时长,可折叠;最近 N 轮(默认 3,可在高级设置里改)里如果某轮停在助手提问、或在末尾留了「下一步 / 需要你」这类待办,会标「待跟进」;正在跑的那一轮要等结束才参与判断,已结束的轮次在运行中也保留标记;顶部可按「全部 / 摘要 / 进度 / 待跟进」筛选,支持「最新在前 / 最早在前」,每 30 秒自动刷新,清空前会再确认一次;「旁问」不进入主上下文。
13
13
  - **旁问**:Tab 里的输入框和 composer 一样是圆角卡片,底部可以选旁问专用模型(窄的时候只显示模型图标)、右侧圆形按钮发送;问答只留在面板里,不写会话、不写命令日志,也不进入模型上下文,不改变主会话模型。
14
14
  - **回复风格**:长度 **短 / 标准 / 详细**;风格 **默认 / 专业 / 亲和 / 直接 / 跟随我的风格**;可加最多 2000 字的自定义指令。
15
15
  - **便于行动**(默认开启):先给结果和下一步;能一句说清的不写一段;保留风险、失败条件和已授权该做的工作。
@@ -19,8 +19,8 @@
19
19
  ## 运行要求
20
20
 
21
21
  - DSH Web profile;插件依赖 `connection`、`sessions` 与 `tools` 服务。
22
- - 已配置默认模型。预测会把最近几轮对话作为 prompt 发给当前默认模型;旁问默认用当前会话模型,也可以在面板底部切到别的模型;「待跟进」会把近期会话的尾部片段发一次,做归并判断。三者都不写入会话日志、不触发 agent loop。
23
- - 语义摘要从第 3 轮用户消息后开始、每轮更新,先按你配置的便宜模型链尝试,再自动挑便宜模型,最后退回当前默认模型;模型失败时退回本地短拼接。活动流水不调用模型。
22
+ - 已配置默认模型。预测会把最近几轮对话作为 prompt 发给当前默认模型;旁问默认用当前会话模型,也可以在面板底部切到别的模型;三者都不写入会话日志、不触发 agent loop;「待跟进」标记只读当前会话的摘要记录。
23
+ - 语义摘要从第 1 轮用户消息后开始、每轮更新,先按你配置的便宜模型链尝试,再自动挑便宜模型,最后退回当前默认模型;模型失败时退回本地短拼接。活动流水不调用模型;进度摘要和语义摘要共用同一条模型链,模型失败时退回本地摘要。进度记录按设置的间隔(默认 10 分钟)一条,和摘要共用 `$DSH_HOME/wdx-relief/recaps.json`。
24
24
 
25
25
  ## 安装
26
26