@kangyishuai/dsh-session-delete 0.4.3 → 0.4.5

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
@@ -2,13 +2,13 @@
2
2
 
3
3
  > Real session deletion for DeepSeek Harness: trash by default, a plan before you delete, an audit log, and a receipt for whatever is left behind.
4
4
 
5
- [![npm](https://img.shields.io/npm/v/@kangyishuai/dsh-session-delete?color=cb3837&logo=npm)](https://www.npmjs.com/package/@kangyishuai/dsh-session-delete) [![DSH](https://img.shields.io/badge/verified%20on%20DSH-0.2.1--rc.5-4b6bfb)](#compatibility--degradation) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
5
+ [![npm](https://img.shields.io/npm/v/@kangyishuai/dsh-session-delete?color=cb3837&logo=npm)](https://www.npmjs.com/package/@kangyishuai/dsh-session-delete) [![DSH](https://img.shields.io/badge/verified%20on%20DSH-0.2.2--rc.1-4b6bfb)](#compatibility--degradation) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
6
6
 
7
7
  [中文](./README.zh-CN.md)
8
8
 
9
9
  Unofficial plugin for [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness). Not affiliated with DeepSeek.
10
10
 
11
- > **Status: v0.4.2, early.** Verified on DSH 0.2.1-rc.5 with `pnpm smoke:session-delete` (24 end-to-end assertions) plus a manual pass in the desktop GUI. Treat it as young software and keep backups of anything you cannot lose.
11
+ > **Status: early.** Verified on DSH 0.2.2-rc.1 with `pnpm smoke:session-delete` (24 end-to-end assertions plus a read-only desktop pass) and `pnpm probe:runtime`. `pnpm gate session-delete` runs the whole release gate in one command. Treat it as young software and keep backups of anything you cannot lose.
12
12
 
13
13
 
14
14
  ![Delete confirmation with the plan: size, sub-sessions, references to clean](https://raw.githubusercontent.com/kangyishuai/dsh-plugins/main/packages/session-delete/docs/images/overview.png)
@@ -116,9 +116,10 @@ Capability grades:
116
116
  - `minimal` — the host has no `workspaceRegistry` (for example the headless composition). Deletion works; the archive gate, pin/workspace bookkeeping and projection-cache steps are skipped and listed in the receipt.
117
117
  - `unknown` — the persistence seam itself is missing: **read-only mode**. Plan, audit and trash listing keep working; delete/restore/purge are disabled.
118
118
 
119
- | Plugin | Verified on DSH | Notes |
120
- | ------ | ------------------------ | ------------------------------------------------------------------------------------------- |
121
- | 0.4.2 | **0.2.1-rc.5** (desktop) | `pnpm smoke:session-delete`: 24 assertions green; manual GUI pass on the same host version. |
119
+ | Plugin | Verified on DSH | Notes |
120
+ | ------ | ------------------------ | -------------------------------------------------------------------------------------------------------------- |
121
+ | 0.4.2 | **0.2.2-rc.1** (desktop) | `pnpm smoke:session-delete`: 24 assertions green; plugin active with no bundle error on the same host version. |
122
+ | 0.4.2 | 0.2.1-rc.5 (desktop) | `pnpm smoke:session-delete`: 24 assertions green; manual GUI pass on the same host version. |
122
123
 
123
124
  After a DSH upgrade: restart, then open the plugin status (settings → plugins). If it reports read-only mode, the host API changed — upgrade the plugin or report the version pair; don't force it.
124
125
 
package/README.zh-CN.md CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  > 真正的删除会话:默认进回收站、删前先预演、留审计日志,删完给你一份残留回执。
4
4
 
5
- [![npm](https://img.shields.io/npm/v/@kangyishuai/dsh-session-delete?color=cb3837&logo=npm)](https://www.npmjs.com/package/@kangyishuai/dsh-session-delete) [![DSH](https://img.shields.io/badge/verified%20on%20DSH-0.2.1--rc.5-4b6bfb)](#兼容性与降级) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
5
+ [![npm](https://img.shields.io/npm/v/@kangyishuai/dsh-session-delete?color=cb3837&logo=npm)](https://www.npmjs.com/package/@kangyishuai/dsh-session-delete) [![DSH](https://img.shields.io/badge/verified%20on%20DSH-0.2.2--rc.1-4b6bfb)](#兼容性与降级) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
6
6
 
7
7
  [English](./README.md)
8
8
 
9
9
  非官方 [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness) 插件,与 DeepSeek 无关。
10
10
 
11
- > **状态:v0.4.2,早期可用。** 已在 DSH 0.2.1-rc.5 上用 `pnpm smoke:session-delete`(24 项端到端断言)加一轮桌面版人工验收。仍是年轻软件,重要数据请自行备份。
11
+ > **状态:早期可用。** 已在 DSH 0.2.2-rc.1 上用 `pnpm smoke:session-delete`(24 项端到端断言 + 一次只读桌面回归)和 `pnpm probe:runtime` 验证。`pnpm gate session-delete` 一条命令跑完发版门禁。仍是年轻软件,重要数据请自行备份。
12
12
 
13
13
 
14
14
  ![删除确认框:展示体积、子会话和将要清理的引用](https://raw.githubusercontent.com/kangyishuai/dsh-plugins/main/packages/session-delete/docs/images/overview.png)
@@ -116,9 +116,10 @@ dsh plugin --profile desktop add /tmp/kangyishuai-dsh-session-delete-*.tgz
116
116
  - `minimal` —— 宿主没有 `workspaceRegistry`(例如 headless 组合)。删除照常进行;归档闸门、置顶/工作区记账、投影缓存这些步骤被跳过并写进回执。
117
117
  - `unknown` —— 持久化本体缺失:**只读模式**。plan、审计、回收站列表还能用;删除、恢复、彻底删除被禁用。
118
118
 
119
- | 插件版本 | 已验证的 DSH 版本 | 说明 |
120
- | -------- | ------------------------ | -------------------------------------------------------------------------------- |
121
- | 0.4.2 | **0.2.1-rc.5**(桌面版) | `pnpm smoke:session-delete` 24 项断言全绿,并在同一版本桌面版做过人工 GUI 验收。 |
119
+ | 插件版本 | 已验证的 DSH 版本 | 说明 |
120
+ | -------- | ------------------------ | ------------------------------------------------------------------------------------------------- |
121
+ | 0.4.2 | **0.2.2-rc.1**(桌面版) | `pnpm smoke:session-delete` 24 项断言全绿,并确认同一版本桌面版里插件正常激活、没有 bundle 错误。 |
122
+ | 0.4.2 | 0.2.1-rc.5(桌面版) | `pnpm smoke:session-delete` 24 项断言全绿,并在同一版本桌面版做过人工 GUI 验收。 |
122
123
 
123
124
  目前只在 **macOS** 上验证过。Windows 相关路径(`session.lock` 的 EBUSY/EPERM 重试、宿主在那儿用的命名信号量)代码里有,但**还没实测**。
124
125
 
package/lib/client.js CHANGED
@@ -1447,6 +1447,8 @@ window.__ModuleLoader__.load({
1447
1447
  // 用真实的 :hover / :focus-visible 伪类,避免依赖 React 合成事件与内联样式。
1448
1448
  ctx.effect(() => {
1449
1449
  const style = document.createElement("style");
1450
+ // 标注归属:便于在 DevTools 里认出这段样式、也方便测试断言插件确实加载了。
1451
+ style.setAttribute("data-plugin", "@kangyishuai/dsh-session-delete");
1450
1452
  style.textContent = [
1451
1453
  ".dsh-sdel-btn{background:transparent;color:var(--dsw-alias-label-primary,inherit);border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.35));transition:background-color 150ms ease,border-color 150ms ease,transform 80ms ease,color 150ms ease;}",
1452
1454
  ".dsh-sdel-btn:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(128,128,128,.16));}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kangyishuai/dsh-session-delete",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Real session deletion for DSH: trash by default, plan before delete, audit log, residue receipt",
5
5
  "keywords": [
6
6
  "dsh",
@@ -36,6 +36,9 @@
36
36
  "README.zh-CN.md",
37
37
  "LICENSE"
38
38
  ],
39
+ "scripts": {
40
+ "test": "node --test"
41
+ },
39
42
  "publishConfig": {
40
43
  "access": "public"
41
44
  },
@@ -53,8 +56,5 @@
53
56
  "@deepseek-ai/dsh-client-ui-primitives"
54
57
  ]
55
58
  }
56
- },
57
- "scripts": {
58
- "test": "node --test"
59
59
  }
60
- }
60
+ }