@michengai/dsh-simplify 0.1.3 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -2,14 +2,13 @@
2
2
 
3
3
  [简体中文](CHANGELOG.zh-CN.md)
4
4
 
5
+ ## 0.1.4 - 2026-09-11
6
+
7
+ - Support DSH `0.1.5-rc.2` while retaining compatibility with `0.1.0-rc.8`, `0.1.1-rc.2`, `0.1.2-rc.1`, and `0.1.5-rc.1`.
8
+
5
9
  ## 0.1.3 - 2026-09-10
6
10
 
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.
11
+ - Support DSH `0.1.5-rc.1`, with compatibility for `0.1.0-rc.8`, `0.1.1-rc.2`, and `0.1.2-rc.1`.
13
12
 
14
13
  ## 0.1.2 - 2026-09-06
15
14
 
@@ -2,14 +2,13 @@
2
2
 
3
3
  [English](CHANGELOG.md)
4
4
 
5
+ ## 0.1.4 - 2026-09-11
6
+
7
+ - 支持 DSH `0.1.5-rc.2`,继续兼容 `0.1.0-rc.8`、`0.1.1-rc.2`、`0.1.2-rc.1` 和 `0.1.5-rc.1`。
8
+
5
9
  ## 0.1.3 - 2026-09-10
6
10
 
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
- - 发布前要求双语变更记录填写有效且一致的日期,新增七个发布校验回归用例。
11
+ - 支持 DSH `0.1.5-rc.1`,同时兼容 `0.1.0-rc.8`、`0.1.1-rc.2` 和 `0.1.2-rc.1`。
13
12
 
14
13
  ## 0.1.2 - 2026-09-06
15
14
 
package/README.md CHANGED
@@ -22,7 +22,7 @@ This is a community-maintained plugin, not an official DeepSeek AI product. It s
22
22
 
23
23
  Command messages and prompts are in Simplified Chinese.
24
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`.
25
+ Compatibility: supports DSH `0.1.0-rc.8`, `0.1.1-rc.2`, `0.1.2-rc.1`, `0.1.5-rc.1`, and `0.1.5-rc.2`; development dependencies are pinned to `0.1.5-rc.2`.
26
26
 
27
27
  ## Features
28
28
 
@@ -53,16 +53,16 @@ For a ready-to-use workbench, download [DSH Codex Desktop](https://github.com/Mi
53
53
 
54
54
  ## Installation
55
55
 
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.
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.4` supports the five host versions listed above.
57
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.
58
+ The current version is `0.1.4`, 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.
59
59
 
60
60
  ### Ask an agent to install it (recommended)
61
61
 
62
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
63
 
64
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.
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.4 --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
66
  ```
67
67
 
68
68
  ### From npm
@@ -71,18 +71,18 @@ Install the DSH plugin @michengai/dsh-simplify into my local web profile by runn
71
71
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
72
72
  $OutputEncoding = [System.Text.Encoding]::UTF8
73
73
 
74
- dsh plugin --profile web add @michengai/dsh-simplify@0.1.3 --registry=https://registry.npmjs.org/
74
+ dsh plugin --profile web add @michengai/dsh-simplify@0.1.4 --registry=https://registry.npmjs.org/
75
75
  ```
76
76
 
77
77
  ### From a Local Package
78
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:
79
+ Download the published tgz from the [GitHub Release](https://github.com/MichengAI/dsh-simplify/releases/tag/v0.1.4), then run this from the package directory:
80
80
 
81
81
  ```powershell
82
82
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
83
83
  $OutputEncoding = [System.Text.Encoding]::UTF8
84
84
 
85
- dsh plugin --profile web add .\michengai-dsh-simplify-0.1.3.tgz --ignore-scripts
85
+ dsh plugin --profile web add .\michengai-dsh-simplify-0.1.4.tgz --ignore-scripts
86
86
  ```
87
87
 
88
88
  ### Build from Source
@@ -97,7 +97,7 @@ npm ci
97
97
  if ($LASTEXITCODE -ne 0) { throw 'npm ci failed' }
98
98
  npm pack
99
99
  if ($LASTEXITCODE -ne 0) { throw 'npm pack failed' }
100
- dsh plugin --profile web add .\michengai-dsh-simplify-0.1.3.tgz --ignore-scripts
100
+ dsh plugin --profile web add .\michengai-dsh-simplify-0.1.4.tgz --ignore-scripts
101
101
  ```
102
102
 
103
103
  ### Reload and Verify
@@ -200,7 +200,7 @@ npm pack --dry-run
200
200
 
201
201
  Tests use real temporary Git repositories to cover paths, untracked files, fallback, conflicts, staged mismatches, stale snapshots, and execution errors. Fixtures are created under `.test-tmp` and cleaned up on normal completion.
202
202
 
203
- `tests/host.test.mjs` looks for a DSH runtime at `%USERPROFILE%\.dsh\profiles\node_modules`. Set `DSH_RUNTIME_ROOT` to use another runtime's node_modules path. When detected, it runs isolated integration checks for real service registration, Git execution, message delivery, and disposal; otherwise, that test is explicitly skipped. Tests do not call a model or modify installed profiles.
203
+ `tests/host.test.mjs` uses the DSH runtime in the project’s `node_modules` by default. Set `DSH_RUNTIME_ROOT` to use another runtime's node_modules path. When detected, it runs isolated integration checks for real service registration, Git execution, message delivery, and disposal; otherwise, that test is explicitly skipped. Tests do not call a model or modify installed profiles.
204
204
 
205
205
  GitHub Actions checks types and tests on Windows, Linux, and macOS, using the host runtime from development dependencies through `DSH_RUNTIME_ROOT`. Publishing a stable GitHub Release starts `publish.yml`: it runs all three platform checks, validates the version, bilingual release notes, and package contents, publishes through npm Trusted Publishing, and uploads the same tgz to the Release. Configure `publish.yml` as the workflow filename in npm and allow `npm publish`; no publishing token is required.
206
206
 
package/README.zh-CN.md CHANGED
@@ -22,7 +22,7 @@ DeepSeek Harness 代码简化插件。用 `/simplify` 整理刚改过的代码
22
22
 
23
23
  命令文案及提示词使用简体中文。
24
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`。
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.2`,开发依赖固定为 `0.1.5-rc.2`。
26
26
 
27
27
  ## 功能概览
28
28
 
@@ -53,16 +53,16 @@ DeepSeek Harness 代码简化插件。用 `/simplify` 整理刚改过的代码
53
53
 
54
54
  ## 安装
55
55
 
56
- 要求 Node.js >= 22.19、PATH 中可执行的 Git,以及提供 `commands`、`subprocess` 服务的 DSH。会话需要关联本地 Git 工作目录。插件 `0.1.3` 支持上文列出的四个宿主版本。
56
+ 要求 Node.js >= 22.19、PATH 中可执行的 Git,以及提供 `commands`、`subprocess` 服务的 DSH。会话需要关联本地 Git 工作目录。插件 `0.1.4` 支持上文列出的五个宿主版本。
57
57
 
58
- 当前版本为 `0.1.3`,支持 npm、安装包和源码安装。以下示例使用 `web` profile,请按实际环境替换。安装前停用其他注册 `/simplify` 的插件。
58
+ 当前版本为 `0.1.4`,支持 npm、安装包和源码安装。以下示例使用 `web` profile,请按实际环境替换。安装前停用其他注册 `/simplify` 的插件。
59
59
 
60
60
  ### 让 Agent 帮你安装(推荐)
61
61
 
62
62
  把下面这段话发给任意能够执行本机终端命令的 Agent。将 `web` 替换为实际使用的 profile;安装完成后,在 DSH 中使用本插件。
63
63
 
64
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 和开始使用。
65
+ 请将 DSH 插件 @michengai/dsh-simplify 安装到本机 web profile,执行:dsh plugin --profile web add @michengai/dsh-simplify@0.1.4 --registry=https://registry.npmjs.org/。安装后执行 dsh --profile web --dump-config,确认配置包含 michengai-simplify,并告诉我如何重新加载 DSH 和开始使用。
66
66
  ```
67
67
 
68
68
  ### 从 npm 安装
@@ -71,18 +71,18 @@ DeepSeek Harness 代码简化插件。用 `/simplify` 整理刚改过的代码
71
71
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
72
72
  $OutputEncoding = [System.Text.Encoding]::UTF8
73
73
 
74
- dsh plugin --profile web add @michengai/dsh-simplify@0.1.3 --registry=https://registry.npmjs.org/
74
+ dsh plugin --profile web add @michengai/dsh-simplify@0.1.4 --registry=https://registry.npmjs.org/
75
75
  ```
76
76
 
77
77
  ### 从本地安装包安装
78
78
 
79
- 从 [GitHub Release](https://github.com/MichengAI/dsh-simplify/releases/tag/v0.1.3) 下载已发布的 tgz,然后在安装包所在目录执行:
79
+ 从 [GitHub Release](https://github.com/MichengAI/dsh-simplify/releases/tag/v0.1.4) 下载已发布的 tgz,然后在安装包所在目录执行:
80
80
 
81
81
  ```powershell
82
82
  [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
83
83
  $OutputEncoding = [System.Text.Encoding]::UTF8
84
84
 
85
- dsh plugin --profile web add .\michengai-dsh-simplify-0.1.3.tgz --ignore-scripts
85
+ dsh plugin --profile web add .\michengai-dsh-simplify-0.1.4.tgz --ignore-scripts
86
86
  ```
87
87
 
88
88
  ### 从源码打包安装
@@ -97,7 +97,7 @@ npm ci
97
97
  if ($LASTEXITCODE -ne 0) { throw 'npm ci failed' }
98
98
  npm pack
99
99
  if ($LASTEXITCODE -ne 0) { throw 'npm pack failed' }
100
- dsh plugin --profile web add .\michengai-dsh-simplify-0.1.3.tgz --ignore-scripts
100
+ dsh plugin --profile web add .\michengai-dsh-simplify-0.1.4.tgz --ignore-scripts
101
101
  ```
102
102
 
103
103
  ### 重新加载与确认
@@ -200,7 +200,7 @@ npm pack --dry-run
200
200
 
201
201
  测试使用真实临时 Git 仓库,覆盖路径、未跟踪文件、回退、冲突、暂存区错位、快照过期及执行错误。测试夹具位于 `.test-tmp`,正常结束时自动清理。
202
202
 
203
- `tests/host.test.mjs` 检测 `%USERPROFILE%\.dsh\profiles\node_modules` 的 DSH 运行时;也可通过 `DSH_RUNTIME_ROOT` 指定其 node_modules 路径。检测到时执行隔离的真实服务注册、Git 执行、消息投递与卸载测试;缺失时明确标为跳过。测试不调用模型,不修改已安装 profile。
203
+ `tests/host.test.mjs` 默认使用项目 `node_modules` 中的 DSH 运行时;也可通过 `DSH_RUNTIME_ROOT` 指定其 node_modules 路径。检测到时执行隔离的真实服务注册、Git 执行、消息投递与卸载测试;缺失时明确标为跳过。测试不调用模型,不修改已安装 profile。
204
204
 
205
205
  GitHub Actions 在 Windows、Linux、macOS 上检查类型与测试,并通过 `DSH_RUNTIME_ROOT` 使用开发依赖中的宿主运行时。发布正式 GitHub Release 后,`publish.yml` 先完成三平台检查,再核对版本、双语发布说明及安装包内容,通过 npm Trusted Publishing 发布,并把同一 tgz 上传到 Release。npm 中的工作流文件名需配置为 `publish.yml`,并允许 `npm publish`;不需要发布令牌。
206
206
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-simplify",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
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.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"
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 || 0.1.5-rc.2",
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 || 0.1.5-rc.2",
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 || 0.1.5-rc.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@deepseek-ai/cordis": "4.0.2",
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",
32
+ "@deepseek-ai/dsh-commands": "0.1.5-rc.2",
33
+ "@deepseek-ai/dsh-llm": "0.1.5-rc.2",
34
+ "@deepseek-ai/dsh-subprocess": "0.1.5-rc.2",
35
+ "@deepseek-ai/dsh-subprocess-local": "0.1.5-rc.2",
36
36
  "@types/node": "^22.19.0",
37
37
  "typescript": "~5.7.2"
38
38
  }