dsh-one-click-polish 1.2.0 → 1.2.1

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 +57 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,11 +1,20 @@
1
1
  # 一键润色 / 扩写 / 自动驾驶
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/dsh-one-click-polish?label=npm)](https://www.npmjs.com/package/dsh-one-click-polish)
4
+ [![license](https://img.shields.io/npm/l/dsh-one-click-polish)](LICENSE)
5
+
3
6
  给 DeepSeek Harness(dsh)桌面端的输入框加一组动作:**润色**、**扩写**、**自动驾驶**。所有模型调用都用**你当前会话正在用的那个模型**,结果直接写回输入框。
4
7
 
5
8
  - 润色:按三档深度重写草稿
6
9
  - 扩写:把一句话扩写成能直接开工的需求说明
7
10
  - 自动驾驶:让 AI 读对话、写下一步提示词、发给助手,一轮接一轮推进到你设定的目标
8
11
 
12
+ 一句安装:
13
+
14
+ ```
15
+ dsh-one-click-polish
16
+ ```
17
+
9
18
  装好之后,输入框左下角多一排按钮:
10
19
 
11
20
  ```
@@ -26,15 +35,40 @@
26
35
 
27
36
  ## 安装
28
37
 
29
- ### 界面里装(最省事)
38
+ 两种来源,功能完全一样:
39
+
40
+ | 来源 | 填什么 | 更新按钮 |
41
+ | --- | --- | --- |
42
+ | **npm** | `dsh-one-click-polish` | ✅ 有「可更新」 |
43
+ | GitHub | `https://github.com/HTRP1486/dsh-one-click-polish` | ❌ 只能看提交 |
44
+
45
+ ### 方式一:npm(推荐)
30
46
 
31
- 打开 dsh → 设置 → 插件 → 添加插件,在输入框里粘这个:
47
+ 打开 dsh → 设置 → 插件 → 添加插件,输入框里就填**包名**:
48
+
49
+ ```
50
+ dsh-one-click-polish
51
+ ```
52
+
53
+ 不用加 `npm:` 前缀,也不用加版本号(默认装 `latest`)。
54
+
55
+ 命令行等价写法:
56
+
57
+ ```bash
58
+ dsh plugin --profile <你的 profile 名> install dsh-one-click-polish
59
+ ```
60
+
61
+ **为什么推荐这个**:npm 上有版本号,dsh 能比对,所以插件列表里会出现「可更新」和「卸载」两个按钮。缺点是更新要走一遍发布流程。
62
+
63
+ ### 方式二:GitHub
64
+
65
+ 输入框里填仓库地址:
32
66
 
33
67
  ```
34
68
  https://github.com/HTRP1486/dsh-one-click-polish
35
69
  ```
36
70
 
37
- 下面这些写法等价,都行:
71
+ 等价写法都行:
38
72
 
39
73
  ```
40
74
  https://github.com/HTRP1486/dsh-one-click-polish
@@ -44,23 +78,35 @@ github:HTRP1486/dsh-one-click-polish
44
78
 
45
79
  **末尾不要加斜杠**。加了会报 `a URL must point at a git repository or a tarball` —— dsh 的判断规则是 `^https?://主机/用户/仓库(.git)?$`,最后一段不允许出现 `/`。
46
80
 
47
- ### 命令行装
48
-
49
- ```bash
50
- dsh plugin --profile <你的 profile 名> install github:HTRP1486/dsh-one-click-polish
51
- ```
52
-
53
- 不知道 profile 名的话,看你 `~/.dsh/profiles/` 下的目录名,常见的是 `desktop`。
81
+ **为什么用它**:跟最新提交走,不用等发版。但没有「可更新」按钮——想更新就是重装一次(`remove` 后 `install`)。
54
82
 
55
83
  ### 其他方式
56
84
 
57
85
  | 方式 | 做法 |
58
86
  | --- | --- |
59
- | 本地目录 | target 填仓库的**绝对路径**,如 `D:\Documents\dsh-one-click-polish`(相对路径会被拒绝) |
87
+ | 本地目录 | target 填仓库的**绝对路径**,如 `D:\Documents\dsh-one-click-polish`。改代码即时生效,适合开发 |
60
88
  | Release 包 | 从 [Releases](https://github.com/HTRP1486/dsh-one-click-polish/releases) 下 `.tgz`,target 填该文件的绝对路径 |
61
89
 
90
+ ### 三种方式怎么选
91
+
92
+ ```
93
+ 只想用 → npm
94
+ 要用最新代码 → GitHub
95
+ 自己在改它 → 本地目录(link)
96
+ ```
97
+
62
98
  装完**重启 dsh**。判断是否成功:输入框左下角出现 `润色 | 深度 | 扩写 | 自动`,设置里多出「润色 / 扩写」一页。
63
99
 
100
+ ### 版本号
101
+
102
+ 三个地方保持同步,每次发布一起改:
103
+
104
+ | 位置 | 当前 |
105
+ | --- | --- |
106
+ | `package.json` 的 `version` | `1.2.0` |
107
+ | npm 的 `latest` 标签 | `1.2.0` |
108
+ | GitHub 的 tag / Release | `v1.2.0` |
109
+
64
110
  ### 装不上时
65
111
 
66
112
  | 报错 | 原因 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-one-click-polish",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "One-click polish, expand and autopilot for the DeepSeek Harness composer: rewrite the draft with the model the session is switched to, expand a one-line wish into a task brief, or let an AI drive a goal round after round.",
5
5
  "keywords": [
6
6
  "dsh",