dsh-session-detox 0.3.1 → 0.3.3
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 +18 -0
- package/README.md +14 -7
- package/package.json +23 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
格式参考 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号按 [SemVer](https://semver.org/lang/zh-CN/)。
|
|
4
4
|
|
|
5
|
+
## [0.3.3] - 2026-11-24
|
|
6
|
+
|
|
7
|
+
### 元数据
|
|
8
|
+
- **加 `dsh.catalog`**:`category: tool` + 中英摘要 + `capabilities: ["fs","sqlite","llm/stream"]`。DSH 的插件市场 `dsh-plugin-shop` 靠这个字段决定分类和卡片文字,不写就只能由机器按 npm description 猜。
|
|
9
|
+
- **keywords 从 7 个补到 15 个**:补 `plugin`、`guard`、`loop`、`repetition`、`thinking-loop`、`session-health` 与两个中文词(`会话清理`、`思考循环`)。同类插件(`dsh-attention-health`、`dsh-loop-guard`、`dsh-allostasis`)都用这组词,市场与 npm 搜索都按关键词匹配。
|
|
10
|
+
|
|
11
|
+
### 说明
|
|
12
|
+
- 纯元数据版本,代码与 0.3.2 完全一致。
|
|
13
|
+
- 市场收录只看两件事:keywords 里有 `dsh-plugin` 或 `deepseek-harness`,且声明了 `dsh.bundle` —— 这两条从 0.3.1 起就满足了,所以这次补的是「卡片好看」而不是「能不能进」。
|
|
14
|
+
|
|
15
|
+
## [0.3.2] - 2026-11-24
|
|
16
|
+
|
|
17
|
+
### 文档
|
|
18
|
+
- **安装段重写**:补上 `pnpm add dsh-session-detox` / `npm i dsh-session-detox` 这条最短路径(包已发布到公共 npm),把从源码安装降级成「要改代码调试时」的备选。0.3.1 的 README 只写了 `git clone` + 手动拷,等于让想装的人多走三步。
|
|
19
|
+
|
|
20
|
+
### 说明
|
|
21
|
+
- 这是纯文档版本,代码与 0.3.1 完全一致;升版本号只是为了在 npm 上生效。
|
|
22
|
+
|
|
5
23
|
## [0.3.1] - 2026-11-24
|
|
6
24
|
|
|
7
25
|
### 新增
|
package/README.md
CHANGED
|
@@ -13,20 +13,18 @@
|
|
|
13
13
|
|
|
14
14
|
## 安装
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
git clone https://github.com/backpang/dsh-session-detox.git
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
把克隆下来的目录放进 profile 的 `node_modules`,再在 profile 的 `package.json` 里登记两处:
|
|
16
|
+
**从 npm(推荐)**:
|
|
21
17
|
|
|
22
18
|
```bash
|
|
23
|
-
|
|
19
|
+
pnpm add dsh-session-detox # 或 npm i dsh-session-detox
|
|
24
20
|
```
|
|
25
21
|
|
|
22
|
+
然后在 profile 的 `package.json` 里登记两处:
|
|
23
|
+
|
|
26
24
|
```json
|
|
27
25
|
{
|
|
28
26
|
"dependencies": {
|
|
29
|
-
"dsh-session-detox": "
|
|
27
|
+
"dsh-session-detox": "^0.3.2"
|
|
30
28
|
},
|
|
31
29
|
"dsh": {
|
|
32
30
|
"bundles": ["dsh-session-detox"]
|
|
@@ -34,6 +32,15 @@ cp -r dsh-session-detox ~/.dsh/profiles/<profile>/node_modules/
|
|
|
34
32
|
}
|
|
35
33
|
```
|
|
36
34
|
|
|
35
|
+
**从源码**(要改代码调试时):
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
git clone https://github.com/backpang/dsh-session-detox.git
|
|
39
|
+
cp -r dsh-session-detox ~/.dsh/profiles/<profile>/node_modules/
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
登记方式同上,`dependencies` 里写 `"file:./node_modules/dsh-session-detox"`。
|
|
43
|
+
|
|
37
44
|
重启 DSH,五个工具就出现在工具列表里。
|
|
38
45
|
|
|
39
46
|
## 五个工具
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-session-detox",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Session-level cleanup for DSH: scan a session log for the short-line loop pattern, cut it out of the reasoning blocks, and clean the same pattern out of compressed-block summaries. Zero dependencies, pure node.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -20,16 +20,36 @@
|
|
|
20
20
|
"bundle": {
|
|
21
21
|
"patch": "./cordis.patch.yml"
|
|
22
22
|
},
|
|
23
|
-
"minVersion": "0.2.0"
|
|
23
|
+
"minVersion": "0.2.0",
|
|
24
|
+
"catalog": {
|
|
25
|
+
"category": "tool",
|
|
26
|
+
"summary": {
|
|
27
|
+
"en": "Cleans short-line loops out of DSH session history: trims them from reasoning blocks and compressed-block summaries, and can cut them mid-generation.",
|
|
28
|
+
"zh": "清理 DSH 会话历史里的极短碎句:从思考块和压缩摘要里去掉,也能在生成途中掐断。"
|
|
29
|
+
},
|
|
30
|
+
"capabilities": [
|
|
31
|
+
"fs",
|
|
32
|
+
"sqlite",
|
|
33
|
+
"llm/stream"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
24
36
|
},
|
|
25
37
|
"keywords": [
|
|
26
38
|
"dsh",
|
|
27
39
|
"dsh-plugin",
|
|
28
40
|
"deepseek-harness",
|
|
41
|
+
"plugin",
|
|
29
42
|
"session",
|
|
43
|
+
"session-health",
|
|
30
44
|
"repair",
|
|
31
45
|
"cleanup",
|
|
32
|
-
"reasoning-loop"
|
|
46
|
+
"reasoning-loop",
|
|
47
|
+
"loop",
|
|
48
|
+
"repetition",
|
|
49
|
+
"guard",
|
|
50
|
+
"thinking-loop",
|
|
51
|
+
"会话清理",
|
|
52
|
+
"思考循环"
|
|
33
53
|
],
|
|
34
54
|
"engines": {
|
|
35
55
|
"node": ">=24"
|