dsh-manage-session 0.5.1 → 0.5.4

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.
Files changed (63) hide show
  1. package/CHANGELOG.ja.md +207 -242
  2. package/CHANGELOG.ko.md +207 -242
  3. package/CHANGELOG.md +341 -341
  4. package/INSTALL.ja.md +164 -179
  5. package/INSTALL.ko.md +164 -179
  6. package/INSTALL.md +164 -179
  7. package/INSTALL.zh.md +164 -179
  8. package/LICENSE +21 -21
  9. package/README.en.md +4 -12
  10. package/README.ja.md +0 -12
  11. package/README.ko.md +0 -12
  12. package/README.md +4 -14
  13. package/cordis.patch.yml +16 -11
  14. package/dsh.plugin.json +4 -4
  15. package/lib/client.js +3882 -690
  16. package/lib/index.d.ts +759 -29
  17. package/lib/index.js +2604 -93
  18. package/locale/de.json +6 -0
  19. package/locale/en.json +6 -0
  20. package/locale/es.json +6 -0
  21. package/locale/fr.json +6 -0
  22. package/locale/it.json +6 -0
  23. package/locale/ja.json +6 -0
  24. package/locale/ko.json +6 -0
  25. package/locale/ru.json +6 -0
  26. package/locale/zh.json +6 -0
  27. package/package.json +43 -32
  28. package/src/client/bridge-scope.ts +213 -0
  29. package/src/client/card.tsx +150 -150
  30. package/src/client/history-panel.tsx +319 -319
  31. package/src/client/index.ts +465 -354
  32. package/src/client/locales.ts +857 -698
  33. package/src/client/panel.tsx +139 -118
  34. package/src/client/search/card.tsx +563 -0
  35. package/src/client/search/host-api.ts +208 -0
  36. package/src/client/search/locales.ts +780 -0
  37. package/src/client/search/manage.tsx +400 -0
  38. package/src/client/search/panel.tsx +815 -0
  39. package/src/client/search/platform.ts +136 -0
  40. package/src/config.ts +82 -33
  41. package/src/host/health/attribution.ts +118 -118
  42. package/src/host/health/lossless.ts +128 -128
  43. package/src/host/health/source-kind.ts +350 -350
  44. package/src/host/history/archive-source.ts +250 -202
  45. package/src/host/history/archive.ts +249 -194
  46. package/src/host/history/favorites.ts +71 -0
  47. package/src/host/history/purge.ts +370 -370
  48. package/src/host/index/archive-source.ts +90 -0
  49. package/src/host/index/engine.ts +571 -0
  50. package/src/host/index/extract.ts +272 -0
  51. package/src/host/index/peers.ts +62 -0
  52. package/src/host/index/rebuild.ts +368 -0
  53. package/src/host/index/schema.ts +136 -0
  54. package/src/host/index/snapshot.ts +135 -0
  55. package/src/host/index/sync.ts +286 -0
  56. package/src/host/registry/archive-registry.ts +317 -0
  57. package/src/host/settings-bridge.ts +237 -0
  58. package/src/index.ts +1421 -532
  59. package/README.de.md +0 -120
  60. package/README.es.md +0 -120
  61. package/README.fr.md +0 -120
  62. package/README.it.md +0 -120
  63. package/README.ru.md +0 -120
package/INSTALL.zh.md CHANGED
@@ -1,179 +1,164 @@
1
- # 安装指南(官方 DSH CLI)
2
-
3
- 本指南只使用官方 `dsh plugin` 命令。该命令会把依赖装入 profile 并同步 `dsh.profile.bundles`。请勿改用裸 `npm install`、在 profile 里直接 `pnpm add`,或手工编辑 profile 清单。
4
-
5
- - [English installation guide](./INSTALL.md)
6
- - [中文安装指南](./INSTALL.zh.md)
7
- - [日本語インストールガイド](./INSTALL.ja.md)
8
- - [한국어 설치 안내](./INSTALL.ko.md)
9
- - [Guide d'installation en français](./INSTALL.fr.md)
10
- - [Installationsanleitung auf Deutsch](./INSTALL.de.md)
11
- - [Guida all'installazione in italiano](./INSTALL.it.md)
12
- - [Руководство по установке на русском](./INSTALL.ru.md)
13
- - [Guía de instalación en español](./INSTALL.es.md)
14
- - [中文 README](./README.md)
15
- - [English README](./README.en.md)
16
- - [日本語 README](./README.ja.md)
17
- - [한국어 README](./README.ko.md)
18
- - [Français README](./README.fr.md)
19
- - [Deutsch README](./README.de.md)
20
- - [Italiano README](./README.it.md)
21
- - [Русский README](./README.ru.md)
22
- - [Español README](./README.es.md)
23
- - [Changelog](./CHANGELOG.md)
24
- - [日本語 changelog](./CHANGELOG.ja.md)
25
- - [한국어 changelog](./CHANGELOG.ko.md)
26
- - [Français changelog](./CHANGELOG.fr.md)
27
- - [Deutsch changelog](./CHANGELOG.de.md)
28
- - [Italiano changelog](./CHANGELOG.it.md)
29
- - [Русский changelog](./CHANGELOG.ru.md)
30
- - [Español changelog](./CHANGELOG.es.md)
31
-
32
- 本指南中的占位符:
33
-
34
- - `<profile>`:要改动的 DSH profile,通常是 `web`;
35
- - `dsh-manage-session`:npm 包名,同时也是运行时插件 ID。
36
-
37
- > **支持的 DSH 范围:`>=0.1.0-rc.6 <0.2.0-0`。**
38
- >
39
- > 该范围同时写在 `package.json` 与 `dsh.plugin.json` 的 `engines.dsh` 中,也与本插件为其 `@deepseek-ai/dsh-client-ui-slots` 依赖已经声明的 `^0.1.0-rc.6` 下界一致。安装前先用 `dsh --version` 确认当前版本。
40
-
41
- ## 0. 前置条件与 profile 探查
42
-
43
- ```bash
44
- echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
45
- dsh --version
46
- ls "${DSH_HOME:-$HOME/.dsh}/profiles"
47
- ```
48
-
49
- 请使用正在运行的 DSH 进程所使用的那个 profile。`web` 很常见,但以实际生效的 `--profile` 参数为准。
50
-
51
- ## 1. 官方安装
52
-
53
- ```bash
54
- dsh plugin --profile <profile> add dsh-manage-session -w
55
- ```
56
-
57
- (当 profile 是 pnpm workspace 根时,如 `web`,`-w` 是必需的。)
58
-
59
- 显式安装指定版本:
60
-
61
- ```bash
62
- dsh plugin --profile <profile> add dsh-manage-session@0.1.0-alpha.6 -w
63
- ```
64
-
65
- 官方 CLI 会自动更新 profile 依赖、锁文件与 `dsh.profile.bundles`。不要手工添加 YAML 行。
66
-
67
- ### 供应链冷却期
68
-
69
- DSH 运行时使用 pnpm 11,其 `minimumReleaseAge` 策略可能拦截刚发布的版本并报 `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`。把该版本加入 `~/.dsh/profiles/<profile>/pnpm-workspace.yaml` 的 `minimumReleaseAgeExclude`:
70
-
71
- ```yaml
72
- minimumReleaseAgeExclude:
73
- - dsh-manage-session@0.1.0-alpha.6
74
- ```
75
-
76
- ## 2. 重启宿主
77
-
78
- **安装或升级后必须重启 DSH。** 仅刷新浏览器页面无效:宿主半身在启动时注册 `/session-steward/api` 路由与设置命名空间,且归档来源需要在宿主重启后才会反映清理结果。
79
-
80
- ## 3. 升级
81
-
82
- ```bash
83
- dsh plugin --profile <profile> update dsh-manage-session -w
84
- ```
85
-
86
- 升级后重启 DSH。
87
-
88
- ## 4. 本地路径 / `link:` 注册(备选)
89
-
90
- 用于开发或离线安装,可从本地检出注册:
91
-
92
- ```bash
93
- # ~/.dsh/profiles/<profile>/package.json dependencies:
94
- # "dsh-manage-session": "link:<absolute path to dsh-manage-session>"
95
- # ~/.dsh/profiles/<profile>/cordis.patch.yml:
96
- # - insert:
97
- # - id: dsh-manage-session
98
- # name: dsh-manage-session
99
- cd ~/.dsh/profiles/<profile> && pnpm install && dsh web
100
- ```
101
-
102
- 或用官方 CLI 直接指定本地路径(无需联网):
103
-
104
- ```bash
105
- dsh plugin --profile <profile> add /absolute/path/to/dsh-manage-session -w
106
- ```
107
-
108
- 从源码检出构建时用以下脚本:
109
-
110
- ```bash
111
- pnpm install
112
- pnpm typecheck # tsc -b --pretty false
113
- pnpm test # vitest run
114
- pnpm build # tsc -b && tsdown → lib/index.js + lib/index.d.ts + lib/client.js
115
- ```
116
-
117
- `lib/` 不入库,因此源码检出必须先构建才能按路径注册。发布时由 `prepublishOnly` 钩子自动构建。
118
-
119
- ## 5. 校验安装
120
-
121
- 检查依赖与已安装版本:
122
-
123
- ```bash
124
- grep -n "dsh-manage-session" \
125
- "${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
126
- node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-manage-session/package.json').version"
127
- ```
128
-
129
- 检查官方装配:
130
-
131
- ```bash
132
- dsh --profile <profile> --dump-default-config
133
- ```
134
-
135
- 其中必须包含:
136
-
137
- ```yaml
138
- - id: dsh-manage-session
139
- name: dsh-manage-session
140
- ```
141
-
142
- ## 6. 验证插件
143
-
144
- 重启后,侧边栏入口 `dsh-manage-session` 可用,设置区使用 `session-steward` 命名空间。请确认:
145
-
146
- 1. 两个开关均开启时,**养老院**与**体检**两个页签都会渲染。
147
- 2. 关闭 `historyFiles` 后「养老院」页签消失,且所有 `session-history-*` 调用返回显式的 disabled 错误。
148
- 3. 关闭 `healthCheck` 后「体检」页签消失,且所有 `session-health-*` 调用返回显式的 disabled 错误。
149
- 4. 对 `/session-steward/api` 调用未识别的方法时返回显式错误,而不是静默成功。
150
-
151
- 关闭的子域返回 `{ ok: false, error: '子域已关闭(…=false):<method> 未注册' }` —— 本插件不留空壳。
152
-
153
- ## 7. 故障排查
154
-
155
- | 现象 | 处理 |
156
- | --- | --- |
157
- | 找不到 `dsh` | 安装或启用官方 DSH CLI。 |
158
- | `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | 把该版本加入该 profile 的 `pnpm-workspace.yaml` 中的 `minimumReleaseAgeExclude`。 |
159
- | 安装后页签或路由缺失 | 重启宿主进程——刷新页面不会重新注册路由。 |
160
- | 归档集合的改动不可见 | 重启宿主;归档来源在启动时读取。 |
161
- | `session-history-*` 返回 disabled 错误 | `historyFiles` 开关已关闭,在插件设置中重新开启。 |
162
- | `session-health-*` 返回 disabled 错误 | `healthCheck` 开关已关闭,在插件设置中重新开启。 |
163
- | 升级后客户端包陈旧 | 强制刷新浏览器(Ctrl+Shift+R)。 |
164
-
165
- ## 8. 卸载
166
-
167
- ```bash
168
- dsh plugin --profile <profile> remove dsh-manage-session
169
- ```
170
-
171
- 卸载后重启 DSH。
172
-
173
- ## 卸载不会撤销已执行的处置
174
-
175
- 本插件从不改写会话日志、不修改历史数据、不静默丢弃字段。它唯一看起来不可逆的动作——隔离损坏的投影缓存记录——会先复制备份,并把隔离目录留在磁盘上供你恢复。因此卸载插件不会撤销你主动请求过的隔离;如需还原状态请手工恢复。
176
-
177
- ## 许可
178
-
179
- MIT
1
+ # 安装指南(官方 DSH CLI)
2
+
3
+ 本指南只使用官方 `dsh plugin` 命令。该命令会把依赖装入 profile 并同步 `dsh.profile.bundles`。请勿改用裸 `npm install`、在 profile 里直接 `pnpm add`,或手工编辑 profile 清单。
4
+
5
+ - [English installation guide](./INSTALL.md)
6
+ - [中文安装指南](./INSTALL.zh.md)
7
+ - [日本語インストールガイド](./INSTALL.ja.md)
8
+ - [한국어 설치 안내](./INSTALL.ko.md)
9
+ - [中文 README](./README.md)
10
+ - [English README](./README.en.md)
11
+ - [日本語 README](./README.ja.md)
12
+ - [한국어 README](./README.ko.md)
13
+ - [Changelog](./CHANGELOG.md)
14
+ - [日本語 changelog](./CHANGELOG.ja.md)
15
+ - [한국어 changelog](./CHANGELOG.ko.md)
16
+
17
+ 本指南中的占位符:
18
+
19
+ - `<profile>`:要改动的 DSH profile,通常是 `web`;
20
+ - `dsh-manage-session`:npm 包名,同时也是运行时插件 ID。
21
+
22
+ > **支持的 DSH 范围:`>=0.1.0-rc.6 <0.2.0-0`。**
23
+ >
24
+ > 该范围同时写在 `package.json` 与 `dsh.plugin.json` 的 `engines.dsh` 中,也与本插件为其 `@deepseek-ai/dsh-client-ui-slots` 依赖已经声明的 `^0.1.0-rc.6` 下界一致。安装前先用 `dsh --version` 确认当前版本。
25
+
26
+ ## 0. 前置条件与 profile 探查
27
+
28
+ ```bash
29
+ echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
30
+ dsh --version
31
+ ls "${DSH_HOME:-$HOME/.dsh}/profiles"
32
+ ```
33
+
34
+ 请使用正在运行的 DSH 进程所使用的那个 profile。`web` 很常见,但以实际生效的 `--profile` 参数为准。
35
+
36
+ ## 1. 官方安装
37
+
38
+ ```bash
39
+ dsh plugin --profile <profile> add dsh-manage-session -w
40
+ ```
41
+
42
+ (当 profile 是 pnpm workspace 根时,如 `web`,`-w` 是必需的。)
43
+
44
+ 显式安装指定版本:
45
+
46
+ ```bash
47
+ dsh plugin --profile <profile> add dsh-manage-session@0.1.0-alpha.6 -w
48
+ ```
49
+
50
+ 官方 CLI 会自动更新 profile 依赖、锁文件与 `dsh.profile.bundles`。不要手工添加 YAML 行。
51
+
52
+ ### 供应链冷却期
53
+
54
+ DSH 运行时使用 pnpm 11,其 `minimumReleaseAge` 策略可能拦截刚发布的版本并报 `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`。把该版本加入 `~/.dsh/profiles/<profile>/pnpm-workspace.yaml` 的 `minimumReleaseAgeExclude`:
55
+
56
+ ```yaml
57
+ minimumReleaseAgeExclude:
58
+ - dsh-manage-session@0.1.0-alpha.6
59
+ ```
60
+
61
+ ## 2. 重启宿主
62
+
63
+ **安装或升级后必须重启 DSH。** 仅刷新浏览器页面无效:宿主半身在启动时注册 `/session-steward/api` 路由与设置命名空间,且归档来源需要在宿主重启后才会反映清理结果。
64
+
65
+ ## 3. 升级
66
+
67
+ ```bash
68
+ dsh plugin --profile <profile> update dsh-manage-session -w
69
+ ```
70
+
71
+ 升级后重启 DSH。
72
+
73
+ ## 4. 本地路径 / `link:` 注册(备选)
74
+
75
+ 用于开发或离线安装,可从本地检出注册:
76
+
77
+ ```bash
78
+ # ~/.dsh/profiles/<profile>/package.json dependencies:
79
+ # "dsh-manage-session": "link:<absolute path to dsh-manage-session>"
80
+ # ~/.dsh/profiles/<profile>/cordis.patch.yml:
81
+ # - insert:
82
+ # - id: dsh-manage-session
83
+ # name: dsh-manage-session
84
+ cd ~/.dsh/profiles/<profile> && pnpm install && dsh web
85
+ ```
86
+
87
+ 或用官方 CLI 直接指定本地路径(无需联网):
88
+
89
+ ```bash
90
+ dsh plugin --profile <profile> add /absolute/path/to/dsh-manage-session -w
91
+ ```
92
+
93
+ 从源码检出构建时用以下脚本:
94
+
95
+ ```bash
96
+ pnpm install
97
+ pnpm typecheck # tsc -b --pretty false
98
+ pnpm test # vitest run
99
+ pnpm build # tsc -b && tsdown → lib/index.js + lib/index.d.ts + lib/client.js
100
+ ```
101
+
102
+ `lib/` 不入库,因此源码检出必须先构建才能按路径注册。发布时由 `prepublishOnly` 钩子自动构建。
103
+
104
+ ## 5. 校验安装
105
+
106
+ 检查依赖与已安装版本:
107
+
108
+ ```bash
109
+ grep -n "dsh-manage-session" \
110
+ "${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
111
+ node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-manage-session/package.json').version"
112
+ ```
113
+
114
+ 检查官方装配:
115
+
116
+ ```bash
117
+ dsh --profile <profile> --dump-default-config
118
+ ```
119
+
120
+ 其中必须包含:
121
+
122
+ ```yaml
123
+ - id: dsh-manage-session
124
+ name: dsh-manage-session
125
+ ```
126
+
127
+ ## 6. 验证插件
128
+
129
+ 重启后,侧边栏入口 `dsh-manage-session` 可用,设置区使用 `session-steward` 命名空间。请确认:
130
+
131
+ 1. 两个开关均开启时,**养老院**与**体检**两个页签都会渲染。
132
+ 2. 关闭 `historyFiles` 后「养老院」页签消失,且所有 `session-history-*` 调用返回显式的 disabled 错误。
133
+ 3. 关闭 `healthCheck` 后「体检」页签消失,且所有 `session-health-*` 调用返回显式的 disabled 错误。
134
+ 4. 对 `/session-steward/api` 调用未识别的方法时返回显式错误,而不是静默成功。
135
+
136
+ 关闭的子域返回 `{ ok: false, error: '子域已关闭(…=false):<method> 未注册' }` —— 本插件不留空壳。
137
+
138
+ ## 7. 故障排查
139
+
140
+ | 现象 | 处理 |
141
+ | --- | --- |
142
+ | 找不到 `dsh` | 安装或启用官方 DSH CLI。 |
143
+ | `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | 把该版本加入该 profile 的 `pnpm-workspace.yaml` 中的 `minimumReleaseAgeExclude`。 |
144
+ | 安装后页签或路由缺失 | 重启宿主进程——刷新页面不会重新注册路由。 |
145
+ | 归档集合的改动不可见 | 重启宿主;归档来源在启动时读取。 |
146
+ | `session-history-*` 返回 disabled 错误 | `historyFiles` 开关已关闭,在插件设置中重新开启。 |
147
+ | `session-health-*` 返回 disabled 错误 | `healthCheck` 开关已关闭,在插件设置中重新开启。 |
148
+ | 升级后客户端包陈旧 | 强制刷新浏览器(Ctrl+Shift+R)。 |
149
+
150
+ ## 8. 卸载
151
+
152
+ ```bash
153
+ dsh plugin --profile <profile> remove dsh-manage-session
154
+ ```
155
+
156
+ 卸载后重启 DSH。
157
+
158
+ ## 卸载不会撤销已执行的处置
159
+
160
+ 本插件从不改写会话日志、不修改历史数据、不静默丢弃字段。它唯一看起来不可逆的动作——隔离损坏的投影缓存记录——会先复制备份,并把隔离目录留在磁盘上供你恢复。因此卸载插件不会撤销你主动请求过的隔离;如需还原状态请手工恢复。
161
+
162
+ ## 许可
163
+
164
+ MIT
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 drscrewdriver
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 drscrewdriver
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.en.md CHANGED
@@ -1,19 +1,7 @@
1
1
  # dsh-manage-session (Session Steward)
2
2
 
3
- - [中文 README](./README.md)
4
- - [English README](./README.en.md)
5
- - [日本語 README](./README.ja.md)
6
- - [한국어 README](./README.ko.md)
7
- - [Français README](./README.fr.md)
8
- - [Deutsch README](./README.de.md)
9
- - [Italiano README](./README.it.md)
10
- - [Русский README](./README.ru.md)
11
- - [Español README](./README.es.md)
12
-
13
3
  A DSH web plugin for **session history files** and **session health checks**. It never touches session data itself.
14
4
 
15
- > **This release (0.5.0) targets the DSH 0.2.0 line** (peer/engines `>=0.2.0-rc.1 <0.2.1-0`, npm dist-tag `dsh-0.2.0`, branch `compat/0.2.0`). The DSH 0.1.7 line remains served by 0.4.8 (dist-tag `dsh-0.1.7`, branch `compat/0.1.7`). Every host surface this plugin consumes (session V4 format and the `dsh-session-format-v3-to-v4` first-party producer lists, the `dsh-session` decode exports, the archive layout `session.jsonl.zstd`/`session.v3.jsonl.zstd` + `storages/session_projcache` + the two id lists in `workspace.json`) was verified unchanged in 0.2.0-rc.1 — **zero code changes**; this release is metadata-only.
16
-
17
5
  - **Retirement Home (history files)** — browse the official archive set and prune ids in bulk
18
6
  (backup + atomic replace; a DSH restart is required for the host to reload it).
19
7
  - **Checkup (health)** — four gates → prescription (command list) → discharge (reversible repair with a
@@ -22,6 +10,10 @@ A DSH web plugin for **session history files** and **session health checks**. It
22
10
  > Naming boundary: **this package ships no search or index features**. Search/indexing belongs to
23
11
  > `dsh-search-index`; neither side mentions or re-interprets the other's fields.
24
12
 
13
+ <!-- hosts-sync:begin -->
14
+ <!-- Generated by scripts/sync-hosts.mjs; single source in scripts/hosts.mjs -->
15
+ Supports DSH 0.1.0-rc.2, 0.1.0-rc.3, 0.1.0-rc.6, 0.1.0-rc.7, 0.1.0-rc.8, 0.1.1-rc.1, 0.1.1-rc.2, 0.1.2-rc.1, 0.1.5-rc.1, 0.1.5-rc.2, 0.1.5-rc.3, 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1, 0.2.0-rc.2, 0.2.1-rc.1, 0.2.1-rc.2 (enumerated peers — a per-rc tested whitelist; alpha/beta releases are out of scope).
16
+ <!-- hosts-sync:end -->
25
17
  ## Screenshots
26
18
 
27
19
  A **Session Steward** entry sits next to Search and Settings at the bottom of the sidebar:
package/README.ja.md CHANGED
@@ -1,19 +1,7 @@
1
1
  # dsh-manage-session(セッション・スチュワード)
2
2
 
3
- - [中文 README](./README.md)
4
- - [English README](./README.en.md)
5
- - [日本語 README](./README.ja.md)
6
- - [한국어 README](./README.ko.md)
7
- - [Français README](./README.fr.md)
8
- - [Deutsch README](./README.de.md)
9
- - [Italiano README](./README.it.md)
10
- - [Русский README](./README.ru.md)
11
- - [Español README](./README.es.md)
12
-
13
3
  **セッション履歴ファイル**と**セッション健康チェック**のための DSH Web プラグインです。セッションデータそのものには一切触れません。
14
4
 
15
- > **本版(0.5.0)は DSH 0.2.0 線がメインラインです**(peer/engines `>=0.2.0-rc.1 <0.2.1-0`、npm dist-tag `dsh-0.2.0`、ブランチ `compat/0.2.0`)。DSH 0.1.7 線は 0.4.8(dist-tag `dsh-0.1.7`、ブランチ `compat/0.1.7`)が担当します。本プラグインが消費するホスト面(セッション V4 形式と `dsh-session-format-v3-to-v4` の第一方プロデューサ名簿、`dsh-session` のデコード導出面、アーカイブ配置 `session.jsonl.zstd`/`session.v3.jsonl.zstd` + `storages/session_projcache` + `workspace.json` の 2 つの id 名簿)は 0.2.0-rc.1 で変更ないことを検証済み — **コード変更ゼロ**、メタデータのみの対応です。
16
-
17
5
  - **カルテ室(履歴ファイル)** — 公式アーカイブ集合を閲覧し、ID を一括整理します
18
6
  (バックアップ + アトミック置換。ホストに再読み込みさせるには DSH の再起動が必要です)。
19
7
  - **健診(健康チェック)** — 四つのゲート → 処方(コマンド一覧)→ 退院(before/after 比較を伴う
package/README.ko.md CHANGED
@@ -1,19 +1,7 @@
1
1
  # dsh-manage-session (세션 스튜어드)
2
2
 
3
- - [中文 README](./README.md)
4
- - [English README](./README.en.md)
5
- - [日本語 README](./README.ja.md)
6
- - [한국어 README](./README.ko.md)
7
- - [Français README](./README.fr.md)
8
- - [Deutsch README](./README.de.md)
9
- - [Italiano README](./README.it.md)
10
- - [Русский README](./README.ru.md)
11
- - [Español README](./README.es.md)
12
-
13
3
  **세션 히스토리 파일**과 **세션 상태 점검**을 위한 DSH 웹 플러그인입니다. 세션 데이터 자체는 건드리지 않습니다.
14
4
 
15
- > **이 버전(0.5.0)은 DSH 0.2.0 라인이 메인입니다**(peer/engines `>=0.2.0-rc.1 <0.2.1-0`, npm dist-tag `dsh-0.2.0`, 브랜치 `compat/0.2.0`). DSH 0.1.7 라인은 0.4.8(dist-tag `dsh-0.1.7`, 브랜치 `compat/0.1.7`)이 계속 지원합니다. 이 플러그인이 소비하는 호스트 표면(세션 V4 포맷과 `dsh-session-format-v3-to-v4`의 퍼스트파티 프로듀서 목록, `dsh-session` 디코드 익스포트, 아카이브 레이아웃 `session.jsonl.zstd`/`session.v3.jsonl.zstd` + `storages/session_projcache` + `workspace.json`의 두 id 목록)이 0.2.0-rc.1에서 변하지 않았음을 검증했습니다 — **코드 변경 없음**, 메타데이터만 갱신되었습니다.
16
-
17
5
  - **기록 보관소(히스토리 파일)** — 공식 아카이브 집합을 조회하고 id를 일괄 정리합니다
18
6
  (백업 + 원자적 교체, 호스트가 다시 로드하려면 DSH 재시작이 필요합니다).
19
7
  - **점검(상태)** — 네 개의 gate → 처방(명령 목록) → 퇴원(전후 비교가 포함된 되돌릴 수 있는 복구).
package/README.md CHANGED
@@ -1,21 +1,7 @@
1
1
  # dsh-manage-session(会话管家 / Session Steward)
2
2
 
3
- - [中文 README](./README.md)
4
- - [English README](./README.en.md)
5
- - [日本語 README](./README.ja.md)
6
- - [한국어 README](./README.ko.md)
7
- - [Français README](./README.fr.md)
8
- - [Deutsch README](./README.de.md)
9
- - [Italiano README](./README.it.md)
10
- - [Русский README](./README.ru.md)
11
- - [Español README](./README.es.md)
12
-
13
3
  DSH Web 插件:**会话历史文件 + 会话健康检查**。
14
4
 
15
- > **本版(0.5.0)以 DSH 0.2.0 为主线**(peer/engines = `>=0.2.0-rc.1 <0.2.1-0`,npm dist-tag `dsh-0.2.0`,分支 `compat/0.2.0`)。
16
- > DSH 0.1.7 线由 0.4.8(dist-tag `dsh-0.1.7`,分支 `compat/0.1.7`)继续服务,不再随本线演进。
17
- > 0.2.0-rc.1 对本插件消费的宿主面(会话 V4 格式与 `dsh-session-format-v3-to-v4` 第一方名单、`dsh-session` 解码导出面、归档目录契约 `session.jsonl.zstd`/`session.v3.jsonl.zstd` 双份 + `storages/session_projcache` + `workspace.json` 两处 id 名单)逐项对照核验**未变,代码零修改**;本版为纯元数据适配(peer/engines 换代、devDependencies 精确钉 `0.2.0-rc.1`、发布纪律面随版更新)。
18
-
19
5
  - **养老院(会话历史文件)**:浏览官方归档集合,两个**独立**操作 ——
20
6
  **取消归档状态**(只改数组,可逆)与 **清理归档文件**(真删磁盘实体,不可逆)。
21
7
 
@@ -42,6 +28,10 @@ DSH Web 插件:**会话历史文件 + 会话健康检查**。
42
28
  > 命名边界:**本插件不提供搜索与索引**。搜索/独立索引属于另一片(`dsh-search-index`),
43
29
  > 两侧互不出现对方的子域字眼,也不互相解释对方字段。
44
30
 
31
+ <!-- hosts-sync:begin -->
32
+ <!-- 由 scripts/sync-hosts.mjs 生成,勿手改;单源在 scripts/hosts.mjs -->
33
+ 支持 DSH 0.1.0-rc.2、0.1.0-rc.3、0.1.0-rc.6、0.1.0-rc.7、0.1.0-rc.8、0.1.1-rc.1、0.1.1-rc.2、0.1.2-rc.1、0.1.5-rc.1、0.1.5-rc.2、0.1.5-rc.3、0.1.7-rc.1、0.1.7-rc.2、0.2.0-rc.1、0.2.0-rc.2、0.2.1-rc.1、0.2.1-rc.2(枚举 peer,逐 rc 实测白名单;alpha/beta 不在支持范围)。
34
+ <!-- hosts-sync:end -->
45
35
  ## 界面预览
46
36
 
47
37
  侧边栏底部新增 **「会话管家」** 入口,与搜索、设置并列:
package/cordis.patch.yml CHANGED
@@ -1,11 +1,16 @@
1
- # dsh-manage-session bundle patch
2
- #
3
- # 通过官方 CLI 安装时 ——
4
- #
5
- # dsh plugin --profile <name> add dsh-manage-session
6
- #
7
- # —— 命令会把 `dsh-manage-session` 追加到 bundle 栈,profile 启动时合并本补丁
8
- # (单个 insert,插入本插件行)。
9
- - insert:
10
- - id: dsh-manage-session
11
- name: 'dsh-manage-session'
1
+ # dsh-manage-session bundle patch
2
+ #
3
+ # 通过官方 CLI 安装时 ——
4
+ #
5
+ # dsh plugin --profile web add dsh-manage-session
6
+ #
7
+ # —— 命令会把 `dsh-manage-session` 追加到 bundle 栈,profile 启动时合并本补丁
8
+ # (单个 insert,插入本插件行)。
9
+ #
10
+ # 注:P1「替换官方 workspace 注册表」已撤编(beta.8-12 实测桌面宿主对用户层
11
+ # 禁用核心服务行会触发 INACTIVE_EFFECT 启动致命)——归档/取消归档的即时生效
12
+ # 不依赖替换(官方 archiveSession/unarchiveSession 内存 API);仅删除保留
13
+ # 文件路径语义(操作后需重启侧栏生效)。子类源码留存 src/host/registry/ 备查。
14
+ - insert:
15
+ - id: dsh-manage-session
16
+ name: 'dsh-manage-session'
package/dsh.plugin.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "id": "dsh-manage-session",
3
3
  "name": "dsh-manage-session",
4
- "version": "0.5.1",
4
+ "version": "0.5.4",
5
5
  "description": {
6
- "en": "Session Steward (DSH 0.2.0 line): browse and bulk-prune the official session archive set, and run a four-gate session health checkup that ends in a reversible, backup-first prescription. Never rewrites session logs.",
7
- "zh": "会话管家(DSH 0.2.0 专线):浏览并批量清理官方会话归档集合,并对会话做四门体检,最终给出可逆、先备份的处方。不改写会话日志。"
6
+ "en": "Session Steward (merged package): archive browsing & cleanup, a four-gate session health checkup with reversible prescriptions, plus an independent FTS5 content-search index (title/content modes, incremental sync, non-destructive rebuild, snapshot export/import). Never rewrites session logs.",
7
+ "zh": "会话管家(合并包):归档浏览与清理、四门体检(可逆处方),外加独立 FTS5 会话内容搜索(标题/内容双模式、增量同步、非破坏性整理、快照导入导出)。不改写会话日志。"
8
8
  },
9
9
  "homepage": "https://github.com/drscrewdriver/dsh-manage-session",
10
10
  "repository": {
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "license": "MIT",
15
15
  "engines": {
16
- "dsh": ">=0.2.0-rc.1 <0.2.1-0"
16
+ "dsh": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2"
17
17
  },
18
18
  "components": {
19
19
  "host": "lib/index.js",