@jianyiagi/dsh-prompt-enhancer 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +58 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @jianyiagi/dsh-prompt-enhancer
2
2
 
3
+ **简体中文** | [English](#english)
4
+
3
5
  DSH(DeepSeek Harness)插件。在输入框写提示词,点一下按钮,模型改写后替换输入框内容。
4
6
 
5
7
  ---
@@ -61,4 +63,59 @@ dsh plugin --profile <profile> remove @jianyiagi/dsh-prompt-enhancer
61
63
 
62
64
  ---
63
65
 
64
- MIT | 仓库:https://github.com/JianYiAG/dsh-prompt-enhancer
66
+ ## English
67
+
68
+ DSH (DeepSeek Harness) plugin. Type a prompt in the composer, click the button, and the model rewrites it in place.
69
+
70
+ ### Install
71
+
72
+ **Desktop app**
73
+
74
+ 1. Open the **Plugins** page in the left sidebar
75
+ 2. Install bundle, enter `@jianyiagi/dsh-prompt-enhancer`
76
+ 3. Quit the app completely, then start it again
77
+
78
+ **CLI / Web**
79
+
80
+ ```powershell
81
+ dsh plugin --profile <profile> add @jianyiagi/dsh-prompt-enhancer
82
+ ```
83
+
84
+ If it does not take effect after a restart, tick the plugin on the Plugins page, or add the package name to `dsh.profile.bundles` in the profile `package.json`, then restart the app.
85
+
86
+ ### Usage
87
+
88
+ 1. Type a prompt in the composer
89
+ 2. Click the button to the left of the model selector
90
+ 3. When the button stops spinning, the draft has been replaced with the rewritten prompt. Undo inside the composer if you do not like it
91
+
92
+ The button is hidden while the composer is empty.
93
+
94
+ You can also type `/prompt-enhance <prompt>`; the result appears as a command result line and is not written back to the composer.
95
+
96
+ ### Configuration
97
+
98
+ By default the current session model is used. To pin a model, add this to the profile patch:
99
+
100
+ ```yaml
101
+ - insert:
102
+ - id: prompt-enhancer
103
+ name: '@jianyiagi/dsh-prompt-enhancer'
104
+ config:
105
+ provider: <provider-id>
106
+ model: <model-id>
107
+ ```
108
+
109
+ Both fields are required; remove `config` to use the session model again.
110
+
111
+ ### Uninstall
112
+
113
+ Untick it on the Plugins page, or:
114
+
115
+ ```powershell
116
+ dsh plugin --profile <profile> remove @jianyiagi/dsh-prompt-enhancer
117
+ ```
118
+
119
+ ---
120
+
121
+ MIT | Repository: https://github.com/JianYiAG/dsh-prompt-enhancer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jianyiagi/dsh-prompt-enhancer",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "DSH 提示词增强器:输入框一键优化提示词并写回草稿",
5
5
  "type": "module",
6
6
  "icon": "./icon.svg",