dsh-plugin-session-cleaner 0.0.0-stage → 0.2.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/lib/index.js ADDED
@@ -0,0 +1,2 @@
1
+ // Generated by build/client.mjs — the Host half lives in ../src/index.js.
2
+ export * from '../src/index.js'
package/lib/remote.js ADDED
@@ -0,0 +1,3 @@
1
+ // Generated by build/client.mjs — the contract lives in ../src/contract.cjs.
2
+ export * from '../src/contract.cjs'
3
+ export { default } from '../src/contract.cjs'
@@ -0,0 +1,3 @@
1
+ // Generated by build/client.mjs — the reflection lives in ../src/typert.host.js.
2
+ export * from '../src/typert.host.js'
3
+ export { default } from '../src/typert.host.js'
package/locale/en.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "menu.delete": "Delete session",
3
+ "dialog.title": "Delete this session permanently?",
4
+ "dialog.body": "The session log, its projection cache and its workspace entry will be removed. Descendant subagent sessions are removed too.",
5
+ "dialog.warning": "This cannot be undone. DSH keeps no recycle bin and no backup.",
6
+ "dialog.bytes": "Will free {size}.",
7
+ "dialog.loading": "Checking what would be removed…",
8
+ "dialog.confirm": "Delete permanently",
9
+ "dialog.cancel": "Cancel",
10
+ "dialog.deleting": "Deleting…",
11
+ "dialog.failed": "Deletion failed: {reason}",
12
+ "dialog.running": "This session is running and will be stopped first."
13
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "menu.delete": "删除会话",
3
+ "dialog.title": "永久删除这个会话?",
4
+ "dialog.body": "会话日志、投影缓存与工作区中的记录都会被移除;由它派生的子代理会话也会一并删除。",
5
+ "dialog.warning": "此操作不可撤销。DSH 没有回收站,也没有备份。",
6
+ "dialog.bytes": "将释放 {size}。",
7
+ "dialog.loading": "正在统计将要删除的内容…",
8
+ "dialog.confirm": "永久删除",
9
+ "dialog.cancel": "取消",
10
+ "dialog.deleting": "正在删除…",
11
+ "dialog.failed": "删除失败:{reason}",
12
+ "dialog.running": "该会话正在运行,会先被停止。"
13
+ }
package/package.json CHANGED
@@ -1,6 +1,46 @@
1
1
  {
2
2
  "name": "dsh-plugin-session-cleaner",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Completely delete DSH sessions: session logs, projection cache, workspace-registry references and derived search indexes.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "main": "lib/index.js",
8
+ "exports": {
9
+ ".": "./lib/index.js",
10
+ "./client": "./lib/client.js",
11
+ "./typert": "./lib/typert.host.js",
12
+ "./remote": "./lib/remote.js",
13
+ "./locale/en.json": "./locale/en.json",
14
+ "./locale/zh.json": "./locale/zh.json",
15
+ "./cordis.patch.yml": "./cordis.patch.yml",
16
+ "./package.json": "./package.json"
17
+ },
18
+ "files": [
19
+ "lib",
20
+ "src",
21
+ "locale",
22
+ "cordis.patch.yml",
23
+ "README.md"
24
+ ],
25
+ "scripts": {
26
+ "build": "node build/client.mjs",
27
+ "test": "node --test tests/cleaner.test.mjs"
28
+ },
29
+ "engines": {
30
+ "node": ">=22"
31
+ },
32
+ "dsh": {
33
+ "bundle": {
34
+ "patch": "./cordis.patch.yml"
35
+ },
36
+ "client": {
37
+ "platform": "web",
38
+ "immediately": true,
39
+ "inject": [
40
+ "@deepseek-ai/dsh-client-ui-workspace",
41
+ "@deepseek-ai/dsh-client-ui-layout",
42
+ "@deepseek-ai/dsh-client-ui-sidebar"
43
+ ]
44
+ }
45
+ }
46
+ }