dsh-delete-session 0.2.7 → 0.2.9

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 CHANGED
@@ -30,7 +30,7 @@ DSH 侧边栏的会话菜单只有**重命名 / 分叉 / 归档**——归档只
30
30
  - **跳过 git 仓库内的文件(默认开)** —— 在项目里干过活的对话,产出文件里往往就是项目源码。开启后仓库内的文件一律不碰,避免删一个对话把项目搬空
31
31
  - **删除后回到新会话** —— 若删除的正是当前打开的会话,自动切到一个全新会话,而不是落到已不可用的邻居页
32
32
  - **默认安全** —— 宿主路由仅限本机回环(回环 socket + 回环 Host 头 + 同源校验);被 DSH 打开占用的会话会被明确拒绝(409),绝不与活跃写者竞争
33
- - **中英双语** —— 菜单项、对话框与设置页跟随 DSH 界面语言(zh / en)
33
+ - **三种语言** —— 菜单项、对话框与设置页跟随 DSH 界面语言(zh / en);浏览器语言为 ru 时显示俄语(DSH 本身尚未提供 ru 界面,插件自带字典兜底)
34
34
  - **零依赖** —— 不引入任何 DSH SDK,所有服务(`sessions` / `sessionPersistence` / `agents` / `workspaceRegistry` / `webServer`)都在调用时通过 cordis 上下文获取
35
35
 
36
36
  ### 安装
@@ -162,6 +162,15 @@ MIT
162
162
 
163
163
  ## 修复记录
164
164
 
165
+ **(v0.2.9)** —— 俄语界面 + 修掉拖拽标签里的 `{name}`。
166
+
167
+ - **俄语(`ru`)**:来自社区贡献([#1](https://github.com/DDDMUC/dsh-delete-session/pull/1),作者 [@aleXela17](https://github.com/aleXela17))。98 条词条与中英完全对齐,函数型条目仍然返回数字。DSH 自身没有 ru 语言包,所以俄语浏览器下插件字典优先于宿主翻译;中英路径不变,宿主仍是权威。
168
+ - **修掉拖拽标签的占位符**:`dropRelease` 模板是「松手删除「{name}」」,但插值参数表里没有 `name`,调用处又把标题当裸字符串传进去,于是三种语言都原样显示 `{name}`。现在传 `{ name }`,标题真正进到句子里。
169
+ **(v0.2.8)** —— 删除更快:退避改成指数,批量改成三阶段流水线。
170
+
171
+ - **lease 探测不再固定等 200ms**:活跃会话的第一次探测几乎必然 busy(detach 后 lease 由异步 retirement 释放),原来每条都要先付 200ms。现在 20 → 40 → 80 → 160 → 200(封顶不变),典型情况落在 20–40ms,最坏总等待从 2200ms 降到 1900ms。
172
+ - **批量删除改成跨会话的三阶段流水线**:停止+flush 全部 → 探测全部 lease(16 路,这些是纯等待)→ 清理+校验+摘记账(6 路,沿用实测饱和点)。原来三个阶段在每条会话内部串着跑、6 路一波,活跃会话的等待按波次排队。
173
+ - 单删与批量现在共用同一组阶段函数(`stopSession` / `requireWritable` / `retireSession`),不会再各写一份慢慢漂移。
165
174
  **(v0.2.7)** —— 多选时按钮型页脚入口也让位。
166
175
 
167
176
  - **`dsh-sidebar-declutter` 的「收起面板列表」不再压住底栏**:它的入口是裸 `<button>` 挂在 `sidebar.footer.action` 上,既没有 `data-dsh-plugin`,也没有 `_entryRow` 包装,原来的两条让位规则都命中不了它,于是它和底栏挤在同一行。新增 `> button:not([role="toolbar"])` 覆盖这种形状。
@@ -192,7 +201,7 @@ This plugin puts **Delete** back where you already click: the session row's `...
192
201
  - **Skip files inside git repositories (on by default)** — a conversation that worked in a project produces that project's source. With this on, nothing inside a repository is touched
193
202
  - **Lands on a fresh session** — deleting the session you are looking at switches to a new one instead of an unusable neighbour page
194
203
  - **Safe by default** — host routes are loopback-only (loopback socket, loopback Host header, same-origin check); a session the host still holds open is refused with 409 rather than raced
195
- - **Bilingual** — menu rows, dialog and settings follow the DSH UI language (zh / en)
204
+ - **Three languages** — menu rows, dialog and settings follow the DSH UI language (zh / en), and a Russian browser gets Russian from the bundled dictionary even though DSH itself ships no ru locale
196
205
  - **Zero dependencies** — no DSH SDK import; `sessions`, `sessionPersistence`, `agents`, `workspaceRegistry` and `webServer` are all resolved from the cordis context at call time
197
206
 
198
207
  ### Install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-delete-session",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "Delete sessions from the DSH Web sidebar: adds a Delete action to the session row menu with a risk-consent dialog, sends the session log, workspace accounting and live session state to the system trash (or removes them outright), and, when opted in, quarantines the files the conversation produced.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",