@michengai/dsh-simplify 0.1.2 → 0.1.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 CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  [简体中文](CHANGELOG.zh-CN.md)
4
4
 
5
+ ## 0.1.3 - 2026-09-10
6
+
7
+ - Update the development host to DSH `0.1.5-rc.1` and explicitly support `0.1.0-rc.8`, `0.1.1-rc.2`, `0.1.2-rc.1`, and `0.1.5-rc.1` as peers. All four hosts pass isolated type, 41-test, package installation, and import checks on Windows.
8
+ - Resolve host integration tests from project dependencies by default to avoid testing against a different personal DSH installation.
9
+ - Validate one live-model headless simplification scenario on each supported host, including target edits, behavior preservation, and file scope; document full-host setup and Web UI validation limits.
10
+ - The two earliest hosts required explicit peer setup after npm resolution stalled; headless validation does not cover ordinary full-host installation or Web UI behavior.
11
+ - Align npm, Release archive, and source installation instructions with `0.1.3`, restore npmjs lockfile URLs without changing package versions or integrity, and ignore local CodeGraph files.
12
+ - Require valid, matching release dates in both changelogs before publishing; add seven release validation regression cases.
13
+
5
14
  ## 0.1.2 - 2026-09-06
6
15
 
7
16
  - Fix inherited Git environment settings selecting the wrong repository or staging area, including in linked worktrees.
@@ -2,6 +2,15 @@
2
2
 
3
3
  [English](CHANGELOG.md)
4
4
 
5
+ ## 0.1.3 - 2026-09-10
6
+
7
+ - 开发宿主升级至 DSH `0.1.5-rc.1`,peer 显式支持 `0.1.0-rc.8`、`0.1.1-rc.2`、`0.1.2-rc.1`、`0.1.5-rc.1`;四个版本均通过 Windows 隔离类型检查、41 项测试、打包安装及导入检查。
8
+ - 宿主集成测试默认使用项目依赖,避免误用个人 DSH 安装中的其他版本。
9
+ - 四个支持版本各完成一例真实模型 headless 简化验收,核对实际修改、行为不变及文件范围,并说明完整宿主准备和 Web 界面验证边界。
10
+ - 两个最早版本的宿主因 npm 解析停滞而显式补齐 peer;headless 验收不覆盖普通完整宿主安装或 Web 界面行为。
11
+ - 将 npm、Release 安装包及源码安装说明统一为 `0.1.3`;锁文件恢复 npmjs 地址,保持版本及 integrity 不变,并忽略本地 CodeGraph 文件。
12
+ - 发布前要求双语变更记录填写有效且一致的日期,新增七个发布校验回归用例。
13
+
5
14
  ## 0.1.2 - 2026-09-06
6
15
 
7
16
  - 修复父进程 Git 环境设置导致审查仓库或暂存区选择错误的问题,支持普通仓库与 worktree。
package/README.md CHANGED
@@ -16,27 +16,54 @@
16
16
 
17
17
  </div>
18
18
 
19
- DSH Simplify collects changed files, line ranges, and content snapshots from Git when you run `/simplify`. The current Agent then improves clarity within that scope while preserving functionality.
19
+ Use `/simplify` in DeepSeek Harness to make recently changed code easier to read and maintain.
20
20
 
21
21
  This is a community-maintained plugin, not an official DeepSeek AI product. It supports DSH Web and desktop apps that include DSH Web.
22
22
 
23
- The plugin has its own review prompt, patch-body parser, Git collection, and DSH integration. Command messages and prompts are in Simplified Chinese.
23
+ Command messages and prompts are in Simplified Chinese.
24
+
25
+ Compatibility: supports DSH `0.1.0-rc.8`, `0.1.1-rc.2`, `0.1.2-rc.1`, and `0.1.5-rc.1`; development dependencies are pinned to `0.1.5-rc.1`.
24
26
 
25
27
  ## Features
26
28
 
27
- - **Scoped review**: current changes, staged changes, a specified commit, or selected files and directories.
28
- - **New files**: review untracked files in full, including repositories without an initial commit.
29
- - **Cross-platform paths**: Git argument arrays and NUL-delimited parsing support Chinese characters, spaces, and quotes in file names.
30
- - **Bounded execution**: Git errors, cancellation, timeouts, truncated output, and conflicts prevent incomplete reviews from being queued.
31
- - **Staged consistency**: reject selected staged files that also have unstaged changes to avoid mismatched line numbers.
32
- - **Snapshot checks**: verify HEAD, the index, and content hashes before queuing; ask the Agent to check again before editing.
33
- - **Previous-commit review**: only the default mode may fall back to HEAD compared with its first parent.
29
+ After a round of coding, use `/simplify` to ask the current Agent to improve the clarity of your changes while preserving behavior.
30
+
31
+ - **Focus on your changes**: use the Git change scope to keep the request centered on relevant code.
32
+ - **Include new files**: review new files in full, including repositories without an initial commit.
33
+ - **Choose the right scope**: review workspace changes by default, or select staged changes, a commit, or paths.
34
+ - **Review after committing**: when the workspace is clean, the default mode can review the most recent commit.
35
+ - **Stop when the scope is unreliable**: conflicts, file changes, or read failures return a reason so you can fix the issue and retry.
36
+
37
+ The command queues a simplification task. Check the Agent’s subsequent response and actual diff to confirm edits and validation are complete.
38
+
39
+ ## DSH product ecosystem
40
+
41
+ For a ready-to-use workbench, download [DSH Codex Desktop](https://github.com/MichengAI/dsh-codex-desktop/releases). If you already use [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness), install any of these eight plugins individually. The desktop app includes all eight.
42
+
43
+ | Plugin | What you can do |
44
+ | --- | --- |
45
+ | [Codex UI](https://github.com/MichengAI/dsh-codex-ui) | Organize projects and conversations, search tasks, and navigate chat turns |
46
+ | [IM Connect](https://github.com/MichengAI/dsh-im-connect) | Send tasks and receive replies through your usual messenger |
47
+ | [Automation](https://github.com/MichengAI/dsh-automation) | Schedule tasks and review each run |
48
+ | [Skills Manager](https://github.com/MichengAI/dsh-skills-manager) | Find, enable, create, and import local skills |
49
+ | [Archive Manager](https://github.com/MichengAI/dsh-archive-manager) | Search, restore, or clean up archived conversations |
50
+ | [Agency Agents](https://github.com/MichengAI/dsh-agency-agents) | Choose and summon specialists for your task |
51
+ | [BTW](https://github.com/MichengAI/dsh-btw) | Ask side questions without interrupting the main task |
52
+ | [Simplify](https://github.com/MichengAI/dsh-simplify) | Use /simplify to improve code within your Git changes |
34
53
 
35
54
  ## Installation
36
55
 
37
- Requires Node.js >= 22.19, Git on PATH, and DSH `0.1.2-rc.1` with the `commands` and `subprocess` services. The session must have a local Git working directory. Automated tests, including real host service integration, pass on Windows, Linux, and macOS. Installation in the desktop application has only been verified on Windows.
56
+ Requires Node.js >= 22.19, Git on PATH, and DSH with the `commands` and `subprocess` services. The session must have a local Git working directory. Plugin `0.1.3` supports the four host versions listed above.
57
+
58
+ The current version is `0.1.3`, available through npm, a packaged archive, or source installation. The examples use the `web` profile; replace it for your environment. Disable other plugins that register `/simplify` before installation.
38
59
 
39
- The current version is `0.1.2`, available through npm, a packaged archive, or source installation. The examples use the `web` profile; replace it for your environment. Disable other plugins that register `/simplify` before installation.
60
+ ### Ask an agent to install it (recommended)
61
+
62
+ Send the prompt below to any agent that can run terminal commands on your computer. Replace `web` with your actual profile. Once installed, use the plugin in DSH.
63
+
64
+ ```text
65
+ Install the DSH plugin @michengai/dsh-simplify into my local web profile by running: dsh plugin --profile web add @michengai/dsh-simplify@0.1.3 --registry=https://registry.npmjs.org/. Then run dsh --profile web --dump-config, confirm the configuration includes michengai-simplify, and explain how to reload DSH and start using the plugin.
66
+ ```
40
67
 
41
68
  ### From npm
42
69
 
@@ -44,33 +71,33 @@ The current version is `0.1.2`, available through npm, a packaged archive, or so
44
71
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
45
72
  $OutputEncoding = [System.Text.Encoding]::UTF8
46
73
 
47
- dsh plugin --profile web add @michengai/dsh-simplify@0.1.2 --registry=https://registry.npmjs.org/
74
+ dsh plugin --profile web add @michengai/dsh-simplify@0.1.3 --registry=https://registry.npmjs.org/
48
75
  ```
49
76
 
50
- ### From Source
77
+ ### From a Local Package
78
+
79
+ Download the published tgz from the [GitHub Release](https://github.com/MichengAI/dsh-simplify/releases/tag/v0.1.3), then run this from the package directory:
51
80
 
52
81
  ```powershell
53
82
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
54
83
  $OutputEncoding = [System.Text.Encoding]::UTF8
55
84
 
56
- git clone https://github.com/MichengAI/dsh-simplify.git
57
- Set-Location dsh-simplify
58
- npm ci --ignore-scripts
59
- npm run check
60
- dsh plugin --profile web add . --ignore-scripts
85
+ dsh plugin --profile web add .\michengai-dsh-simplify-0.1.3.tgz --ignore-scripts
61
86
  ```
62
87
 
63
- The entry point is `lib/index.js`, so build before installing. Keep the source directory when the profile uses a local link.
64
-
65
- ### From a Local Package
88
+ ### Build from Source
66
89
 
67
- Download the tgz from the [GitHub Release](https://github.com/MichengAI/dsh-simplify/releases/tag/v0.1.2), or run `npm pack` in the source directory, then run this from the package directory:
90
+ Run from the repository root:
68
91
 
69
92
  ```powershell
70
93
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
71
94
  $OutputEncoding = [System.Text.Encoding]::UTF8
72
95
 
73
- dsh plugin --profile web add .\michengai-dsh-simplify-0.1.2.tgz --ignore-scripts
96
+ npm ci
97
+ if ($LASTEXITCODE -ne 0) { throw 'npm ci failed' }
98
+ npm pack
99
+ if ($LASTEXITCODE -ne 0) { throw 'npm pack failed' }
100
+ dsh plugin --profile web add .\michengai-dsh-simplify-0.1.3.tgz --ignore-scripts
74
101
  ```
75
102
 
76
103
  ### Reload and Verify
@@ -148,6 +175,21 @@ Reload DSH manually if the desktop app does not reload automatically. Uninstalli
148
175
 
149
176
  ## Development and Verification
150
177
 
178
+ ### From Source
179
+
180
+ ```powershell
181
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
182
+ $OutputEncoding = [System.Text.Encoding]::UTF8
183
+
184
+ git clone https://github.com/MichengAI/dsh-simplify.git
185
+ Set-Location dsh-simplify
186
+ npm ci --ignore-scripts
187
+ npm run check
188
+ dsh plugin --profile web add . --ignore-scripts
189
+ ```
190
+
191
+ The entry point is `lib/index.js`, so build before installing. Keep the source directory when the profile uses a local link.
192
+
151
193
  ```powershell
152
194
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
153
195
  $OutputEncoding = [System.Text.Encoding]::UTF8
package/README.zh-CN.md CHANGED
@@ -16,27 +16,54 @@
16
16
 
17
17
  </div>
18
18
 
19
- DeepSeek Harness 代码简化插件。运行 `/simplify` 后,插件收集 Git 变更文件、行号与内容快照,由当前 Agent 在限定范围内改进代码清晰度,保持功能不变。
19
+ DeepSeek Harness 代码简化插件。用 `/simplify` 整理刚改过的代码,让后续阅读和维护更轻松。
20
20
 
21
21
  本项目为社区插件,并非 DeepSeek AI 官方产品。支持 DSH Web 及集成 DSH Web 的桌面应用。
22
22
 
23
- 审查提示词、补丁正文解析、Git 收集与 DSH 适配均由本项目实现。命令文案及提示词使用简体中文。
23
+ 命令文案及提示词使用简体中文。
24
+
25
+ 兼容性:支持 DSH `0.1.0-rc.8`、`0.1.1-rc.2`、`0.1.2-rc.1`、`0.1.5-rc.1`,开发依赖固定为 `0.1.5-rc.1`。
24
26
 
25
27
  ## 功能概览
26
28
 
27
- - **限定审查范围**:当前改动、暂存区、指定提交、指定文件或目录。
28
- - **包含新增文件**:未跟踪文件按整文件审查,支持尚无首次提交的仓库。
29
- - **跨平台路径**:Git 参数数组与 NUL 分隔解析,支持中文、空格和引号文件名。
30
- - **执行失败有边界**:Git 错误、取消、超时、截断和冲突时不提交不完整的审查任务。
31
- - **防止暂存区行号错位**:所选暂存文件仍有未暂存改动时拒绝执行。
32
- - **快照复核**:提交提示词前复核 HEAD、index 和内容哈希,要求 Agent 编辑前再次验证。
33
- - **提交后回看**:仅默认模式允许回看 HEAD 相对第一父提交的差异。
29
+ 写完一轮代码后,用 `/simplify` 请当前 Agent 整理刚改过的部分,改善可读性并保持原有功能。
30
+
31
+ - **聚焦本次改动**:按 Git 变更范围整理代码,避免把需求扩大到无关文件。
32
+ - **覆盖新增文件**:新文件可以整份审查,也支持尚无首次提交的仓库。
33
+ - **选择适合的范围**:默认检查工作区改动,也可仅检查暂存区、指定提交或路径。
34
+ - **提交后也能回看**:默认模式在工作区没有改动时,可回看最近一次提交。
35
+ - **范围不可靠时停止**:遇到冲突、文件变化或读取失败时返回原因,便于修正后重试。
36
+
37
+ 命令提交的是简化任务;是否完成修改和验证,应以 Agent 后续回复和实际差异为准。
38
+
39
+ ## DSH 产品生态
40
+
41
+ 想直接使用完整工作台,可下载 [DSH Codex Desktop](https://github.com/MichengAI/dsh-codex-desktop/releases);已有 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 环境,可按需独立安装以下 8 个自研插件。桌面端已随附这些插件。
42
+
43
+ | 插件 | 你可以用它做什么 |
44
+ | --- | --- |
45
+ | [Codex UI](https://github.com/MichengAI/dsh-codex-ui) | 整理项目与会话、搜索任务、跳转对话轮次 |
46
+ | [IM Connect](https://github.com/MichengAI/dsh-im-connect) | 从微信、飞书、钉钉等消息平台下任务、收回复 |
47
+ | [Automation](https://github.com/MichengAI/dsh-automation) | 按计划执行任务,查看每次运行的结果 |
48
+ | [Skills Manager](https://github.com/MichengAI/dsh-skills-manager) | 统一查找、启停、创建和导入本机技能 |
49
+ | [Archive Manager](https://github.com/MichengAI/dsh-archive-manager) | 搜索、恢复或清理已归档会话 |
50
+ | [Agency Agents](https://github.com/MichengAI/dsh-agency-agents) | 按任务选择并召唤专业角色 |
51
+ | [BTW](https://github.com/MichengAI/dsh-btw) | 在当前上下文中临时旁问,不打断主任务 |
52
+ | [Simplify](https://github.com/MichengAI/dsh-simplify) | 用 /simplify 整理 Git 改动范围内的代码 |
34
53
 
35
54
  ## 安装
36
55
 
37
- 要求 Node.js >= 22.19、PATH 中可执行的 Git,以及提供 `commands`、`subprocess` 服务的 DSH `0.1.2-rc.1`。会话需要关联本地 Git 工作目录。Windows、Linux、macOS 均已通过自动化测试(含真实宿主服务集成);桌面应用中的实际安装仅在 Windows 验证。
56
+ 要求 Node.js >= 22.19、PATH 中可执行的 Git,以及提供 `commands`、`subprocess` 服务的 DSH。会话需要关联本地 Git 工作目录。插件 `0.1.3` 支持上文列出的四个宿主版本。
57
+
58
+ 当前版本为 `0.1.3`,支持 npm、安装包和源码安装。以下示例使用 `web` profile,请按实际环境替换。安装前停用其他注册 `/simplify` 的插件。
38
59
 
39
- 当前版本为 `0.1.2`,支持 npm、安装包和源码安装。以下示例使用 `web` profile,请按实际环境替换。安装前停用其他注册 `/simplify` 的插件。
60
+ ### 让 Agent 帮你安装(推荐)
61
+
62
+ 把下面这段话发给任意能够执行本机终端命令的 Agent。将 `web` 替换为实际使用的 profile;安装完成后,在 DSH 中使用本插件。
63
+
64
+ ```text
65
+ 请将 DSH 插件 @michengai/dsh-simplify 安装到本机 web profile,执行:dsh plugin --profile web add @michengai/dsh-simplify@0.1.3 --registry=https://registry.npmjs.org/。安装后执行 dsh --profile web --dump-config,确认配置包含 michengai-simplify,并告诉我如何重新加载 DSH 和开始使用。
66
+ ```
40
67
 
41
68
  ### 从 npm 安装
42
69
 
@@ -44,33 +71,33 @@ DeepSeek Harness 代码简化插件。运行 `/simplify` 后,插件收集 Git
44
71
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
45
72
  $OutputEncoding = [System.Text.Encoding]::UTF8
46
73
 
47
- dsh plugin --profile web add @michengai/dsh-simplify@0.1.2 --registry=https://registry.npmjs.org/
74
+ dsh plugin --profile web add @michengai/dsh-simplify@0.1.3 --registry=https://registry.npmjs.org/
48
75
  ```
49
76
 
50
- ### 从源码安装
77
+ ### 从本地安装包安装
78
+
79
+ 从 [GitHub Release](https://github.com/MichengAI/dsh-simplify/releases/tag/v0.1.3) 下载已发布的 tgz,然后在安装包所在目录执行:
51
80
 
52
81
  ```powershell
53
82
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
54
83
  $OutputEncoding = [System.Text.Encoding]::UTF8
55
84
 
56
- git clone https://github.com/MichengAI/dsh-simplify.git
57
- Set-Location dsh-simplify
58
- npm ci --ignore-scripts
59
- npm run check
60
- dsh plugin --profile web add . --ignore-scripts
85
+ dsh plugin --profile web add .\michengai-dsh-simplify-0.1.3.tgz --ignore-scripts
61
86
  ```
62
87
 
63
- 入口为 `lib/index.js`,必须先构建再安装;profile 使用本地链接时需要保留源码目录。
64
-
65
- ### 从本地安装包安装
88
+ ### 从源码打包安装
66
89
 
67
- 从 [GitHub Release](https://github.com/MichengAI/dsh-simplify/releases/tag/v0.1.2) 下载 tgz,或在源码目录运行 `npm pack` 生成安装包,然后在安装包所在目录执行:
90
+ 在仓库根目录执行:
68
91
 
69
92
  ```powershell
70
93
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
71
94
  $OutputEncoding = [System.Text.Encoding]::UTF8
72
95
 
73
- dsh plugin --profile web add .\michengai-dsh-simplify-0.1.2.tgz --ignore-scripts
96
+ npm ci
97
+ if ($LASTEXITCODE -ne 0) { throw 'npm ci failed' }
98
+ npm pack
99
+ if ($LASTEXITCODE -ne 0) { throw 'npm pack failed' }
100
+ dsh plugin --profile web add .\michengai-dsh-simplify-0.1.3.tgz --ignore-scripts
74
101
  ```
75
102
 
76
103
  ### 重新加载与确认
@@ -148,6 +175,21 @@ dsh plugin --profile web remove @michengai/dsh-simplify
148
175
 
149
176
  ## 开发与验证
150
177
 
178
+ ### 从源码安装
179
+
180
+ ```powershell
181
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
182
+ $OutputEncoding = [System.Text.Encoding]::UTF8
183
+
184
+ git clone https://github.com/MichengAI/dsh-simplify.git
185
+ Set-Location dsh-simplify
186
+ npm ci --ignore-scripts
187
+ npm run check
188
+ dsh plugin --profile web add . --ignore-scripts
189
+ ```
190
+
191
+ 入口为 `lib/index.js`,必须先构建再安装;profile 使用本地链接时需要保留源码目录。
192
+
151
193
  ```powershell
152
194
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
153
195
  $OutputEncoding = [System.Text.Encoding]::UTF8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-simplify",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "DSH 代码简化插件:限定 Git 变更范围,支持未跟踪文件、跨平台路径与可靠的 Git 异常处理",
5
5
  "repository": { "type": "git", "url": "git+https://github.com/MichengAI/dsh-simplify.git" },
6
6
  "homepage": "https://github.com/MichengAI/dsh-simplify#readme",
@@ -23,16 +23,16 @@
23
23
  "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" },
24
24
  "peerDependencies": {
25
25
  "@deepseek-ai/cordis": "^4.0.2",
26
- "@deepseek-ai/dsh-commands": "0.1.2-rc.1",
27
- "@deepseek-ai/dsh-llm": "0.1.2-rc.1",
28
- "@deepseek-ai/dsh-subprocess": "0.1.2-rc.1"
26
+ "@deepseek-ai/dsh-commands": "0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1",
27
+ "@deepseek-ai/dsh-llm": "0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1",
28
+ "@deepseek-ai/dsh-subprocess": "0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@deepseek-ai/cordis": "4.0.2",
32
- "@deepseek-ai/dsh-commands": "0.1.2-rc.1",
33
- "@deepseek-ai/dsh-llm": "0.1.2-rc.1",
34
- "@deepseek-ai/dsh-subprocess": "0.1.2-rc.1",
35
- "@deepseek-ai/dsh-subprocess-local": "0.1.2-rc.1",
32
+ "@deepseek-ai/dsh-commands": "0.1.5-rc.1",
33
+ "@deepseek-ai/dsh-llm": "0.1.5-rc.1",
34
+ "@deepseek-ai/dsh-subprocess": "0.1.5-rc.1",
35
+ "@deepseek-ai/dsh-subprocess-local": "0.1.5-rc.1",
36
36
  "@types/node": "^22.19.0",
37
37
  "typescript": "~5.7.2"
38
38
  }