@michengai/dsh-simplify 1.0.6 → 1.0.8

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
@@ -1,8 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.8 - 2026-11-09
4
+
5
+ - **Full Support for All 8 Official DeepSeek Harness Languages**: Native integration for Chinese, English, Japanese, Spanish, French, German, Russian, and Portuguese (`zh`, `en`, `ja`, `es`, `fr`, `de`, `ru`, `pt`). The `/simplify` slash command label and description dynamically adapt to the active interface language in the command popup.
6
+ - **Complete Multilingual Documentation and Manifest Metadata**: Dedicated localized READMEs with unified language navigation links and native plugin manager descriptions for all 8 official languages.
7
+ - **Language-Neutral Command Parameter Hints**: Slash command input hints are now standardized to language-neutral `[--staged] [--ref=<ref>] [--] [<paths>...]`, ensuring a seamless input placeholder experience across all interface languages.
8
+
3
9
  [简体中文](CHANGELOG.zh-CN.md)
4
10
 
5
- ## Unreleased
11
+ ## 1.0.7 - 2026-11-04
12
+
13
+ - Align with official DSH `0.2.2-rc.1` release; upgrade development dependencies to `0.2.2-rc.1`.
14
+ - Clean up obsolete alpha versions from the host compatibility matrix; support all `0.2.x` RC hosts (`0.2.0-rc.1` through `0.2.2-rc.1`).
15
+ - Update documentation badges and verified build ranges.
16
+
17
+ [简体中文](CHANGELOG.zh-CN.md)
6
18
 
7
19
  ## 1.0.6 - 2026-11-03
8
20
 
@@ -1,8 +1,20 @@
1
1
  # 变更记录
2
2
 
3
+ ## 1.0.8 - 2026-11-09
4
+
5
+ - **全量支持 DeepSeek Harness 官方 8 门内置语言**:深度适配官方多语言架构,完整支持中文、英语、日语、西班牙语、法语、德语、俄语与葡萄牙语(`zh`, `en`, `ja`, `es`, `fr`, `de`, `ru`, `pt`)。在任何支持语言环境下输入 `/`,`/simplify` 斜杠命令的标签与说明均自动以当前界面语言呈现。
6
+ - **完整多语言本地化文档与清单字典**:为全部 8 门语言提供独立的本地化说明文档与导航直达链接,并在插件管理面板中提供对应语言的标题与功能简介。
7
+ - **命令参数提示语言中立化**:斜杠命令注册的参数提示(hint)调整为语言中立的 `[--staged] [--ref=<ref>] [--] [<paths>...]`,使多语言界面下的输入框占位提示更加统一自然。
8
+
3
9
  [English](CHANGELOG.md)
4
10
 
5
- ## 未发布
11
+ ## 1.0.7 - 2026-11-04
12
+
13
+ - 对齐官方最新发布宿主 `0.2.2-rc.1`,更新开发依赖至 `0.2.2-rc.1`。
14
+ - 优化宿主兼容支持矩阵,移除过时的阿尔法版本,支持全部 `0.2.x` RC 宿主环境(`0.2.0-rc.1`~`0.2.2-rc.1`)。
15
+ - 更新文档支持矩阵与徽章说明。
16
+
17
+ [English](CHANGELOG.md)
6
18
 
7
19
  ## 1.0.6 - 2026-11-03
8
20
 
package/README.de.md ADDED
@@ -0,0 +1,138 @@
1
+ <p align="center">
2
+ <img src="assets/branding/dsh-simplify-banner.png" alt="DSH Simplify" width="100%">
3
+ </p>
4
+
5
+ <div align="center">
6
+
7
+ # DSH Simplify
8
+
9
+ **Kürzlich geänderten Code in DeepSeek Harness vereinfachen und optimieren, bei unverändertem Verhalten.**
10
+
11
+ [简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
12
+
13
+ [Installation](#installation) · [Verwendung](#verwendung) · [Fehlerbehebung](#fehlerbehebung) · [Änderungsprotokoll](CHANGELOG.md) · [Apache-2.0](LICENSE)
14
+
15
+ [![Lizenz: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE)
16
+ [![npm package](https://img.shields.io/npm/v/%40michengai%2Fdsh-simplify.svg?label=npm%20package)](https://www.npmjs.com/package/@michengai/dsh-simplify)
17
+ [![DSH Web Plugin](https://img.shields.io/badge/DSH%20Web-Plugin-0f766e.svg)](https://github.com/deepseek-ai/deepseek-harness)
18
+ [![DSH unterstützt bis 0.2.2-rc.1](https://img.shields.io/badge/DSH-up%20to%200.2.2--rc.1-2563eb.svg)](#installation)
19
+ [![Node.js 22.19+](https://img.shields.io/badge/Node.js-22.19%2B-339933.svg?logo=node.js&logoColor=white)](https://nodejs.org/)
20
+
21
+ </div>
22
+
23
+ > DSH Simplify ist ein von der Community gepflegtes Plugin für DeepSeek Harness und kein offizielles Produkt von DeepSeek AI. Geben Sie `/simplify` in der aktuellen Sitzung ein, um den Agenten aufzufordern, den Code innerhalb des Git-Änderungsbereichs zu bereinigen, die Lesbarkeit zu verbessern und das Verhalten beizubehalten.
24
+
25
+ Aufgaben-Prompts an den Agenten bleiben in vereinfachtem Chinesisch, während Bezeichnungen und Beschreibungen für Befehlsvorschläge sich dynamisch an die Schnittstellensprache anpassen.
26
+
27
+ ## Funktionen
28
+
29
+ - **Fokus auf aktuelle Änderungen**: Beschränkt Änderungen auf den Git-Änderungsbereich, um irrelevante Dateien zu schützen.
30
+ - **Neue Dateien einschließen**: Vollständige Überprüfung neuer (untracked) Dateien und Repositories ohne Initial-Commit.
31
+ - **Flexible Bereichswahl**: Standardmäßig wird das Arbeitsverzeichnis geprüft; alternativ nur der Staging-Bereich oder ein bestimmter Commit.
32
+ - **Rückblick nach Commit**: Wenn der Arbeitsbereich sauber ist, kann der letzte Commit geprüft werden.
33
+ - **Sicherer Abbruch**: Hält sofort an bei Konflikten, Dateiänderungen oder Lesefehlern.
34
+
35
+ ## DSH Produkt-Ökosystem
36
+
37
+ | Plugin | Beschreibung |
38
+ | --- | --- |
39
+ | [Codex UI](https://github.com/MichengAI/dsh-codex-ui) | Projekte & Sitzungen organisieren, Aufgaben suchen, Dialoge steuern |
40
+ | [Agency Agents](https://github.com/MichengAI/dsh-agency-agents) | Fachspezifische Rollen je nach Aufgabe auswählen und aufrufen |
41
+ | [Skills Manager](https://github.com/MichengAI/dsh-skills-manager) | Lokale Fähigkeiten suchen, aktivieren, erstellen und importieren |
42
+ | [Archive Manager](https://github.com/MichengAI/dsh-archive-manager) | Archivierte Sitzungen durchsuchen, wiederherstellen oder bereinigen |
43
+ | [IM Connect](https://github.com/MichengAI/dsh-im-connect) | Aufgaben über Messaging-Plattformen senden und Antworten empfangen |
44
+ | [Automation](https://github.com/MichengAI/dsh-automation) | Geplante Aufgaben automatisieren und Ausführungsergebnisse prüfen |
45
+ | [BTW](https://github.com/MichengAI/dsh-btw) | Schnelle Nebenfragen im Kontext stellen, ohne die Hauptaufgabe zu stören |
46
+ | [Simplify](https://github.com/MichengAI/dsh-simplify) | Code im Git-Änderungsbereich mit `/simplify` vereinfachen |
47
+ | [PUA](https://github.com/MichengAI/dsh-pua) | Agenten anleiten, bei Fehlern alternative Wege zu versuchen und vor Abschluss zu prüfen |
48
+ | [Code Review](https://github.com/MichengAI/dsh-code-review) | Unabhängige Code-Reviews mit `/review` starten und Bericht empfangen |
49
+ | [Codex Pet](https://github.com/MichengAI/dsh-codex-pet) | Desktop-Begleiter für Benachrichtigungen, Genehmigungen und Fragen |
50
+
51
+ ## Voraussetzungen
52
+
53
+ - DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`), getestet mit `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`~`0.2.1-rc.5`, `0.2.2-rc.1`.
54
+ - Frühere Versionen vor `0.2.0-rc.1` werden abgewiesen. Bei DSH `0.1.x` installieren Sie bitte Version `0.1.16`.
55
+ - Node.js >= 22.19, Git im PATH verfügbar.
56
+ - Sitzung mit lokalem Git-Projekt verknüpft.
57
+
58
+ ## Installation
59
+
60
+ Verwenden Sie das Profil `web` (oder passen Sie es an):
61
+
62
+ ### Agent zur Installation auffordern (Empfohlen)
63
+
64
+ ```text
65
+ Installieren Sie das DSH-Plugin @michengai/dsh-simplify in mein lokales Web-Profil: dsh plugin --profile web add @michengai/dsh-simplify@1.0.8 --registry=https://registry.npmjs.org/. Bestätigen Sie anschließend mit dsh --profile web --dump-config.
66
+ ```
67
+
68
+ ### Manuelle Installation über npm
69
+
70
+ ```powershell
71
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
72
+ $OutputEncoding = [System.Text.Encoding]::UTF8
73
+
74
+ dsh plugin --profile web add @michengai/dsh-simplify@1.0.8 --registry=https://registry.npmjs.org/
75
+ ```
76
+
77
+ <details>
78
+ <summary>Installation aus lokalem Paket</summary>
79
+
80
+ Laden Sie das tgz-Archiv von [GitHub Release](https://github.com/MichengAI/dsh-simplify/releases/tag/v1.0.8) herunter und führen Sie aus:
81
+
82
+ ```powershell
83
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
84
+ $OutputEncoding = [System.Text.Encoding]::UTF8
85
+
86
+ dsh plugin --profile web add .\michengai-dsh-simplify-1.0.8.tgz --ignore-scripts
87
+ ```
88
+
89
+ </details>
90
+
91
+ ### Neuladen und Bestätigen
92
+
93
+ Installieren oder aktualisieren Sie nach Abschluss der aktuellen Aufgabe. Nutzen Sie die Neuladefunktion der Desktop-App oder starten Sie `dsh web` neu.
94
+
95
+ ## Verwendung
96
+
97
+ ```text
98
+ /simplify
99
+ ```
100
+
101
+ ### Bereichsoptionen
102
+
103
+ | Eingabe | Prüfbereich |
104
+ | --- | --- |
105
+ | `/simplify` | Netto-Änderungen von HEAD zum aktuellen Arbeitsverzeichnis (inkl. neuer Dateien). Prüft bei sauberem Verzeichnis den letzten Commit |
106
+ | `/simplify --staged` | Nur der Staging-Bereich |
107
+ | `/simplify --ref=main` | Differenz zwischen angegebenem Commit und aktuellem Arbeitsverzeichnis |
108
+ | `/simplify --ref HEAD` | Expliziter HEAD-Bereich ohne Rückgriff auf vorherigen Commit |
109
+ | `/simplify src/a.ts "src/pfad mit leerzeichen.ts"` | Nur angegebene Dateien |
110
+ | `/simplify src` | Expandiert geänderte Dateien im Verzeichnis |
111
+ | `/simplify -- --special.ts` | Der Trenner `--` erlaubt Pfade, die mit Bindestrich beginnen |
112
+
113
+ ## Fehlerbehebung
114
+
115
+ **Eingabetaste leert das Feld, aber keine Antwort erfolgt**: Bei leerem Prüfumfang wird kein Modellaufruf ausgelöst.
116
+
117
+ **Aktuelles Verzeichnis ist kein Git-Repository**: Führen Sie den Befehl in einem gültigen Git-Projekt aus.
118
+
119
+ **Staging-Dateien weisen ungespeicherte Änderungen auf**: Bitte stagen oder committen Sie diese Änderungen vor Aufruf von `--staged`.
120
+
121
+ ## Ausführungsgrenzen
122
+
123
+ Das Plugin führt ausschließlich schreibgeschützte Git-Abfragen und lokale Dateilesevorgänge durch; es führt niemals automatisch `git add`, `commit` oder `reset` aus.
124
+
125
+ ## Deinstallation
126
+
127
+ ```powershell
128
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
129
+ $OutputEncoding = [System.Text.Encoding]::UTF8
130
+
131
+ dsh plugin --profile web remove @michengai/dsh-simplify
132
+ ```
133
+
134
+ > Anleitungen zur Entwicklung und Verifizierung finden Sie in [简体中文](README.zh-CN.md#二次开发) oder [English](README.en.md#development).
135
+
136
+ ## Lizenz
137
+
138
+ [Apache-2.0](LICENSE),Copyright 2026 MichengAI.
package/README.en.md ADDED
@@ -0,0 +1,233 @@
1
+ <p align="center">
2
+ <img src="assets/branding/dsh-simplify-banner.png" alt="DSH Simplify" width="100%">
3
+ </p>
4
+
5
+ <div align="center">
6
+
7
+ # DSH Simplify
8
+
9
+ **Simplify recently changed code in DeepSeek Harness while preserving behavior.**
10
+
11
+ [简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
12
+
13
+ [Installation](#installation) · [Usage](#usage) · [Troubleshooting](#troubleshooting) · [Changelog](CHANGELOG.md) · [Apache-2.0](LICENSE)
14
+
15
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE)
16
+ [![npm package](https://img.shields.io/npm/v/%40michengai%2Fdsh-simplify.svg?label=npm%20package)](https://www.npmjs.com/package/@michengai/dsh-simplify)
17
+ [![DSH Web Plugin](https://img.shields.io/badge/DSH%20Web-Plugin-0f766e.svg)](https://github.com/deepseek-ai/deepseek-harness)
18
+ [![DSH supported through 0.2.2-rc.1](https://img.shields.io/badge/DSH-up%20to%200.2.2--rc.1-2563eb.svg)](#installation)
19
+ [![Node.js 22.19+](https://img.shields.io/badge/Node.js-22.19%2B-339933.svg?logo=node.js&logoColor=white)](https://nodejs.org/)
20
+
21
+ </div>
22
+
23
+ > DSH Simplify is a community-maintained DeepSeek Harness plugin, not an official DeepSeek AI product. Enter `/simplify` in the current session to ask the Agent to improve code within your Git changes while preserving behavior. Supports DSH Web and desktop apps that include DSH Web.
24
+
25
+ Task prompts sent to the Agent remain in Simplified Chinese, while command candidate labels and descriptions adapt to the host interface language.
26
+
27
+ ## Features
28
+
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 desktop workbench, download [DSH Codex Desktop](https://github.com/MichengAI/dsh-codex-desktop/releases). Existing [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) installations can add plugins as needed by following each project's README. Below are 11 first-party plugins; consult the corresponding desktop release notes and bundled catalog for what that version includes.
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
+ | [Agency Agents](https://github.com/MichengAI/dsh-agency-agents) | Choose and summon specialists for your task |
47
+ | [Skills Manager](https://github.com/MichengAI/dsh-skills-manager) | Find, enable, create, and import local skills |
48
+ | [Archive Manager](https://github.com/MichengAI/dsh-archive-manager) | Search, restore, or clean up archived conversations |
49
+ | [IM Connect](https://github.com/MichengAI/dsh-im-connect) | Send tasks and receive replies through messaging platforms |
50
+ | [Automation](https://github.com/MichengAI/dsh-automation) | Schedule tasks and review each run |
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 |
53
+ | [PUA](https://github.com/MichengAI/dsh-pua) | Guide the Agent to try new approaches after failures, investigate causes, and verify results before completion |
54
+ | [Code Review](https://github.com/MichengAI/dsh-code-review) | Use `/review` to request an independent Agent code review and receive the report in the current conversation |
55
+ | [Codex Pet](https://github.com/MichengAI/dsh-codex-pet) | View conversation notifications and respond to tool approvals and questions through a desktop pet |
56
+
57
+ ## Prerequisites
58
+
59
+ - Host compatibility: Full DeepSeek Harness `0.2.x` line (`>=0.2.0-rc.1 <0.3.0-0`), verified with `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`–`0.2.1-rc.5`, and `0.2.2-rc.1`, and forwards-compatible with subsequent `0.2.x` RC releases without requiring routine plugin version bumps.
60
+ - Legacy hosts prior to `0.2.0-rc.1` are rejected by the version gate. The version gate cleanly intercepts breaking changes in the `0.3.0` generation. Users on `0.1.x` hosts should install `0.1.16`.
61
+ - Node.js >= 22.19, git available in PATH.
62
+ - Active conversation linked to a local git repository.
63
+
64
+ ## Installation
65
+
66
+ The commands below use the `web` profile; replace it for your environment. Disable other plugins that register `/simplify` before installation. Compatible with DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`).
67
+
68
+ ### Ask an agent to install it (recommended)
69
+
70
+ 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.
71
+
72
+ ```text
73
+ Install the DSH plugin @michengai/dsh-simplify into my local web profile by running: dsh plugin --profile web add @michengai/dsh-simplify@1.0.8 --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.
74
+ ```
75
+
76
+ ### Install from npm
77
+
78
+ ```powershell
79
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
80
+ $OutputEncoding = [System.Text.Encoding]::UTF8
81
+
82
+ dsh plugin --profile web add @michengai/dsh-simplify@1.0.8 --registry=https://registry.npmjs.org/
83
+ ```
84
+
85
+ <details>
86
+ <summary>Install from a local package</summary>
87
+
88
+ Download the published tgz from the [GitHub Release](https://github.com/MichengAI/dsh-simplify/releases/tag/v1.0.8), then run this from the package directory:
89
+
90
+ ```powershell
91
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
92
+ $OutputEncoding = [System.Text.Encoding]::UTF8
93
+
94
+ dsh plugin --profile web add .\michengai-dsh-simplify-1.0.8.tgz --ignore-scripts
95
+ ```
96
+
97
+ </details>
98
+
99
+ ### Reload and Verify
100
+
101
+ Install or update after the current task finishes, since desktop apps may reload automatically. If the plugin does not take effect, use the desktop app's reload action or restart `dsh web`; refreshing the browser alone is insufficient.
102
+
103
+ Run `dsh --profile web --dump-config` and confirm that it includes `michengai-simplify`. Check for sensitive settings before sharing the full configuration. Then enter `/simplify` in a session associated with a Git project.
104
+
105
+ ## Usage
106
+
107
+ After a round of coding, enter this in the current Git project session:
108
+
109
+ ```text
110
+ /simplify
111
+ ```
112
+
113
+ Wait for the Agent to finish editing and validation, then inspect the actual diff. Use the options below to narrow the scope.
114
+
115
+ ### Choose a review scope
116
+
117
+ | Input | Scope |
118
+ | --- | --- |
119
+ | `/simplify` | Net changes from HEAD to the working tree, including untracked files; fall back to the last commit only when there are no changes |
120
+ | `/simplify --staged` | Staged changes only; reject selected staged files that also have unstaged changes |
121
+ | `/simplify --ref=main` | The specified commit to the working tree, including untracked files; no fallback |
122
+ | `/simplify --ref HEAD` | Explicit HEAD scope without previous-commit fallback |
123
+ | `/simplify src/a.ts "src/中文 文件.ts"` | Changes in selected files; review untracked files in full |
124
+ | `/simplify src` | Expand changed files within a directory |
125
+ | `/simplify -- --special.ts` | Use the option terminator for paths starting with a hyphen |
126
+
127
+ - Paths are relative to the session directory. Absolute paths inside the repository are supported; prompts use paths relative to the repository root.
128
+ - Single and double quotes group paths containing spaces; backslashes remain path characters. No shell expansion, wildcard expansion, or command substitution is performed.
129
+ - `--ref` accepts branches, tags, and single-commit expressions, not `a..b` or `a...b`. It cannot be combined with `--staged`.
130
+ - Before the initial commit, files in the selected scope are treated as new and may be simplified in full. Default mode includes staged and untracked files; `--staged` includes only staged files. Select files or directories to narrow the scope; file count and size limits still apply. A clean repository with only one commit returns no changes.
131
+ - Previous-commit fallback compares HEAD with its first parent. Merge commits do not receive a multi-parent review.
132
+
133
+ ### Command results
134
+
135
+ | Result | Meaning |
136
+ | --- | --- |
137
+ | `已提交 N 个文件的简化审查` | Review of N files was queued. The Agent has not necessarily finished editing or testing. |
138
+ | `没有可简化的当前代码行` | No current lines are eligible. No model request is made; skipped-file details may be included. |
139
+ | An error message | A reliable scope could not be established. No model request is made; address the reported issue before retrying. |
140
+
141
+ ## Troubleshooting
142
+
143
+ **The input clears after Enter, but no answer appears.** Empty reviews do not start the Agent. In a reported case, the backend returned success and skipped two CHANGELOG files because no eligible current lines were found. Some host interfaces do not visibly display these command results; feedback visibility is still under investigation. A successful backend response does not establish that the UI displayed it.
144
+
145
+ **The current directory is not a Git repository.** Use a session in the correct Git project, or initialize the project yourself. The plugin does not initialize repositories, stage files, or create commits.
146
+
147
+ **Staged files also have unstaged changes.** Save or resolve those changes yourself before using `--staged`, or use default `/simplify` to review net working-tree changes. The plugin does not reset or stash changes.
148
+
149
+ **The installer reports missing peer dependencies.** Official packages may be supplied by the DSH host runtime. Verify actual resolved versions and backend loading before installing duplicate host packages into the profile. Versions must still satisfy `package.json`.
150
+
151
+ **Timeout, excessive output, or an outdated snapshot.** Narrow the scope to specific files or directories and retry after concurrent edits finish.
152
+
153
+ ## Execution Boundaries
154
+
155
+ The plugin performs read-only Git queries and local file reads. It does not automatically run `git add`, commit, reset, or stash. Git arguments are passed through DSH `subprocess` as `argv`, independent of PowerShell or Bash quoting rules.
156
+
157
+ **Scope is a prompt instruction, not a file-write permission boundary.** The Agent edits and tests using host tools and user authorization. This plugin does not intercept writes from other tools or guarantee that files remain unchanged after queuing. A queued review is not a completed simplification.
158
+
159
+ The implementation assumes the local filesystem and local subprocess share the same workspace. Remote subprocess and remote filesystem combinations have not been verified.
160
+
161
+ <details>
162
+ <summary>Git scope collection, snapshot checks, and resource limits</summary>
163
+
164
+ The repository and index are determined from the session working directory and Git worktree metadata. Child processes do not inherit repository-local environment overrides such as `GIT_DIR`, `GIT_WORK_TREE`, `GIT_INDEX_FILE`, or temporary configuration overrides. Ordinary user and repository configuration is preserved. The repository returned by Git must contain the session working directory.
165
+
166
+ Git failures, signals, cancellation, timeouts, truncated output, unresolved conflicts, and stale snapshots prevent prompt delivery. They are not interpreted as an empty diff. The patch parser counts old and new lines against each hunk header, rejects incomplete bodies, and excludes context lines from editable ranges. Explicit paths that do not exist, are ignored, or lie outside the repository return errors.
167
+
168
+ Deleted files, deletion-only hunks, rename-only changes, binary files, non-regular files, and files over 5 MiB are excluded from editable ranges with reasons. Submodules are excluded from diff collection. Skipping all detected changes does not expand the review scope. Limits are 200 changed files, 30 seconds per Git command, and 60 seconds for scope collection, with up to 1 additional second for process termination. Git stdout is capped at 8 MiB, stderr at 64 KiB, and prompts at 128 KiB.
169
+
170
+ Across all files, collection is limited to 4,096 separate line ranges and 128 KiB of review metadata, including skipped-file details. Exceeding either limit stops collection instead of submitting a partial review. Consecutive changed lines count as one range. The final prompt is independently checked against its 128 KiB limit; select files or directories to narrow an oversized scope.
171
+
172
+ `--staged` first checks that selected staged files match the working tree. Before queuing, the plugin rechecks the index, HEAD, and file SHA-256 hashes to avoid applying index line numbers to different working-tree content. The Agent is instructed to verify snapshots again before editing and stop simplifying a file if its content has changed, requiring a new command invocation.
173
+
174
+ </details>
175
+
176
+ ## Uninstall
177
+
178
+ ```powershell
179
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
180
+ $OutputEncoding = [System.Text.Encoding]::UTF8
181
+
182
+ dsh plugin --profile web remove @michengai/dsh-simplify
183
+ ```
184
+
185
+ Reload DSH manually if the desktop app does not reload automatically. Uninstalling does not undo code changes already made by the Agent.
186
+
187
+ ## Development
188
+
189
+ ### From Source
190
+
191
+ ```powershell
192
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
193
+ $OutputEncoding = [System.Text.Encoding]::UTF8
194
+
195
+ git clone https://github.com/MichengAI/dsh-simplify.git
196
+ Set-Location dsh-simplify
197
+ npm ci --ignore-scripts
198
+ npm run check
199
+ dsh plugin --profile web add . --ignore-scripts
200
+ ```
201
+
202
+ GitHub and npm both include a ready-to-run `lib`. After changing source, run `npm run build` before committing. Keep the source directory when the profile uses a local link.
203
+
204
+ ### Verification
205
+
206
+ Development dependencies align with DSH `0.2.2-rc.1`. `npm run test:compat` reruns real command and Git tests across all supported isolated host versions (`0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`–`0.2.1-rc.5`, and `0.2.2-rc.1`).
207
+
208
+ ```powershell
209
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
210
+ $OutputEncoding = [System.Text.Encoding]::UTF8
211
+ npm ci --ignore-scripts
212
+ npm run check
213
+ npm pack --dry-run
214
+ ```
215
+
216
+ 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.
217
+
218
+ `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.
219
+
220
+ 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.
221
+
222
+ | Path | Responsibility |
223
+ | --- | --- |
224
+ | `src/args.ts` | Command argument parsing |
225
+ | `src/exec.ts` | DSH subprocess, Git failures, cancellation, and timeouts |
226
+ | `src/git.ts` | Git scope, NUL parsing, line ranges, and snapshot verification |
227
+ | `src/prompt.ts` | Editing task, scope, and verification instructions |
228
+ | `src/command.ts`, `src/index.ts` | Command handling, delivery, and lifecycle |
229
+ | `tests` | Regression and host integration checks |
230
+
231
+ ## License
232
+
233
+ [Apache-2.0](LICENSE), Copyright 2026 MichengAI.
package/README.es.md ADDED
@@ -0,0 +1,148 @@
1
+ <p align="center">
2
+ <img src="assets/branding/dsh-simplify-banner.png" alt="DSH Simplify" width="100%">
3
+ </p>
4
+
5
+ <div align="center">
6
+
7
+ # DSH Simplify
8
+
9
+ **Simplifica el código modificado recientemente en DeepSeek Harness manteniendo intacto el comportamiento.**
10
+
11
+ [简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
12
+
13
+ [Instalación](#instalación) · [Uso](#uso) · [Solución de problemas](#solución-de-problemas) · [Registro de cambios](CHANGELOG.md) · [Apache-2.0](LICENSE)
14
+
15
+ [![Licencia: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE)
16
+ [![npm package](https://img.shields.io/npm/v/%40michengai%2Fdsh-simplify.svg?label=npm%20package)](https://www.npmjs.com/package/@michengai/dsh-simplify)
17
+ [![DSH Web Plugin](https://img.shields.io/badge/DSH%20Web-Plugin-0f766e.svg)](https://github.com/deepseek-ai/deepseek-harness)
18
+ [![DSH compatible hasta 0.2.2-rc.1](https://img.shields.io/badge/DSH-up%20to%200.2.2--rc.1-2563eb.svg)](#instalación)
19
+ [![Node.js 22.19+](https://img.shields.io/badge/Node.js-22.19%2B-339933.svg?logo=node.js&logoColor=white)](https://nodejs.org/)
20
+
21
+ </div>
22
+
23
+ > DSH Simplify es un complemento mantenido por la comunidad para DeepSeek Harness, no un producto oficial de DeepSeek AI. Escribe `/simplify` en la conversación actual para pedirle al Agent que refine el código dentro del alcance de cambios de Git, mejorando la legibilidad sin alterar el comportamiento. Compatible con DSH Web y aplicaciones de escritorio que integran DSH Web.
24
+
25
+ Las instrucciones enviadas al Agent se mantienen en chino simplificado, mientras que las etiquetas y descripciones de los comandos sugeridos se adaptan automáticamente al idioma de la interfaz.
26
+
27
+ ## Características
28
+
29
+ Después de una sesión de programación, usa `/simplify` para solicitar al Agent que optimice la claridad del código recién editado:
30
+
31
+ - **Enfoque en los cambios actuales**: Acota las ediciones al alcance de Git para evitar tocar archivos irrelevantes.
32
+ - **Soporte para archivos nuevos**: Permite la revisión completa de archivos no rastreados y repositorios sin confirmación inicial.
33
+ - **Selección de alcance flexible**: De manera predeterminada analiza el espacio de trabajo, pero permite especificar el área de preparación (staged), una confirmación o rutas concretas.
34
+ - **Revisión retrospectiva**: Si el espacio de trabajo está limpio, puede revisar la última confirmación realizada.
35
+ - **Interrupción segura ante inconsistencias**: Se detiene si detecta conflictos, modificaciones concurrentes o errores de lectura.
36
+
37
+ ## Ecosistema de productos DSH
38
+
39
+ | Complemento | Qué puedes hacer |
40
+ | --- | --- |
41
+ | [Codex UI](https://github.com/MichengAI/dsh-codex-ui) | Organizar proyectos y sesiones, buscar tareas y navegar entre turnos |
42
+ | [Agency Agents](https://github.com/MichengAI/dsh-agency-agents) | Seleccionar y convocar especialistas según la tarea |
43
+ | [Skills Manager](https://github.com/MichengAI/dsh-skills-manager) | Descubrir, activar, crear e importar habilidades locales |
44
+ | [Archive Manager](https://github.com/MichengAI/dsh-archive-manager) | Buscar, restaurar o depurar conversaciones archivadas |
45
+ | [IM Connect](https://github.com/MichengAI/dsh-im-connect) | Enviar tareas y recibir respuestas mediante plataformas de mensajería |
46
+ | [Automation](https://github.com/MichengAI/dsh-automation) | Programar tareas automáticas y auditar los resultados |
47
+ | [BTW](https://github.com/MichengAI/dsh-btw) | Hacer preguntas contextuales rápidas sin interrumpir la tarea principal |
48
+ | [Simplify](https://github.com/MichengAI/dsh-simplify) | Simplificar el código dentro del alcance de cambios de Git con `/simplify` |
49
+ | [PUA](https://github.com/MichengAI/dsh-pua) | Guiar al Agent para probar nuevos enfoques tras un fallo y validar antes de concluir |
50
+ | [Code Review](https://github.com/MichengAI/dsh-code-review) | Iniciar una revisión de código con un Agent independiente mediante `/review` |
51
+ | [Codex Pet](https://github.com/MichengAI/dsh-codex-pet) | Mascota de escritorio para notificaciones, aprobaciones y preguntas |
52
+
53
+ ## Requisitos previos
54
+
55
+ - Compatibilidad con DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`), probado con `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`~`0.2.1-rc.5`, `0.2.2-rc.1`.
56
+ - Los entornos anteriores a `0.2.0-rc.1` son rechazados por el control de versiones. Si utilizas `0.1.x`, instala la versión `0.1.16`.
57
+ - Node.js >= 22.19 con Git disponible en PATH.
58
+ - Sesión vinculada a un repositorio Git local.
59
+
60
+ ## Instalación
61
+
62
+ Los siguientes comandos utilizan el perfil `web`. Modifícalo según tu entorno.
63
+
64
+ ### Solicitar al Agent la instalación (Recomendado)
65
+
66
+ Envía el siguiente mensaje a cualquier Agent con permisos de terminal:
67
+
68
+ ```text
69
+ Instala el plugin @michengai/dsh-simplify en mi perfil web local ejecutando: dsh plugin --profile web add @michengai/dsh-simplify@1.0.8 --registry=https://registry.npmjs.org/. Luego ejecuta dsh --profile web --dump-config para confirmar que la configuración incluya michengai-simplify, y dime cómo recargar DSH y comenzar a usarlo.
70
+ ```
71
+
72
+ ### Instalación manual desde npm
73
+
74
+ ```powershell
75
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
76
+ $OutputEncoding = [System.Text.Encoding]::UTF8
77
+
78
+ dsh plugin --profile web add @michengai/dsh-simplify@1.0.8 --registry=https://registry.npmjs.org/
79
+ ```
80
+
81
+ <details>
82
+ <summary>Instalación desde paquete local</summary>
83
+
84
+ Descarga el archivo tgz publicado desde [GitHub Release](https://github.com/MichengAI/dsh-simplify/releases/tag/v1.0.8), y ejecuta en el directorio correspondiente:
85
+
86
+ ```powershell
87
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
88
+ $OutputEncoding = [System.Text.Encoding]::UTF8
89
+
90
+ dsh plugin --profile web add .\michengai-dsh-simplify-1.0.8.tgz --ignore-scripts
91
+ ```
92
+
93
+ </details>
94
+
95
+ ### Recarga y confirmación
96
+
97
+ Instala o actualiza una vez finalizada la tarea actual. Si no se refleja, utiliza la opción de recarga de la aplicación o reinicia `dsh web`.
98
+
99
+ ## Uso
100
+
101
+ En una conversación vinculada a un repositorio Git, ejecuta:
102
+
103
+ ```text
104
+ /simplify
105
+ ```
106
+
107
+ ### Opciones de alcance
108
+
109
+ | Entrada | Alcance |
110
+ | --- | --- |
111
+ | `/simplify` | Cambios netos desde HEAD al espacio de trabajo actual (incluye archivos no rastreados). Si no hay cambios, revisa la última confirmación |
112
+ | `/simplify --staged` | Solo el área de preparación (staged). Se rechaza si los archivos staged tienen cambios no preparados |
113
+ | `/simplify --ref=main` | Diferencias entre la confirmación indicada y el espacio de trabajo actual (incluye archivos no rastreados) |
114
+ | `/simplify --ref HEAD` | Alcance explícito de HEAD sin revisión retrospectiva de la confirmación anterior |
115
+ | `/simplify src/a.ts "src/archivo con espacio.ts"` | Solo los archivos especificados (los no rastreados se revisan por completo) |
116
+ | `/simplify src` | Despliega los archivos modificados dentro del directorio |
117
+ | `/simplify -- --especial.ts` | El terminador `--` permite rutas que comiencen con guion |
118
+
119
+ ## Solución de problemas
120
+
121
+ **Al pulsar Enter se borra el texto pero no hay respuesta**: Una revisión vacía no invocará al Agent. Si no hay cambios o los archivos modificados carecen de líneas operables, no se realiza ninguna petición.
122
+
123
+ **El directorio actual no es un repositorio Git**: Ejecuta el comando en una sesión vinculada a un repositorio Git válido o inicialízalo previamente.
124
+
125
+ **Los archivos en preparación tienen modificaciones pendientes**: Guarda o prepara esos cambios antes de usar `--staged`, o ejecuta `/simplify` sin parámetros para revisar el espacio de trabajo actual.
126
+
127
+ **Tiempo de espera agotado o instantánea caducada**: Acota el alcance mediante rutas específicas y vuelve a intentarlo tras concluir las ediciones en paralelo.
128
+
129
+ ## Límites de ejecución
130
+
131
+ El plugin solo realiza consultas de solo lectura en Git y lectura de archivos locales; no ejecuta automáticamente `git add`, `commit`, `reset` ni `stash`.
132
+
133
+ El alcance de modificación es una restricción a nivel de prompt para el Agent, no un aislamiento físico del sistema de archivos.
134
+
135
+ ## Desinstalación
136
+
137
+ ```powershell
138
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
139
+ $OutputEncoding = [System.Text.Encoding]::UTF8
140
+
141
+ dsh plugin --profile web remove @michengai/dsh-simplify
142
+ ```
143
+
144
+ > Para guías de desarrollo y verificación, consulte la versión en [简体中文](README.zh-CN.md#二次开发) o [English](README.en.md#development).
145
+
146
+ ## Licencia
147
+
148
+ [Apache-2.0](LICENSE),Copyright 2026 MichengAI。