@zhengxiantai/dsh-mindmap 0.0.0-stage → 0.8.0
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/LICENSE +21 -0
- package/PUBLISHING.md +252 -0
- package/README.md +410 -2
- package/cordis.patch.yml +18 -0
- package/docs/preview-float.png +0 -0
- package/docs/preview.png +0 -0
- package/docs/turn-rail-colors.png +0 -0
- package/install.ps1 +98 -0
- package/lib/client.js +2607 -0
- package/lib/index.js +732 -0
- package/package.json +66 -4
- package/screenshots.json +5 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-mindmap contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/PUBLISHING.md
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
# 发布到 DSH 插件市场
|
|
2
|
+
|
|
3
|
+
DSH 的插件市场(`dshmarket`)本身**不接收投稿**。它每次打开时读取
|
|
4
|
+
[awesome-dsh-plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
|
|
5
|
+
生成的目录;上架的唯一入口是向这个目录仓库提一个 PR,添加**一个**
|
|
6
|
+
`data/plugins/<owner>__<repo>.yml`。
|
|
7
|
+
|
|
8
|
+
官方规则以该仓库的
|
|
9
|
+
[contributing.md](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin/blob/main/contributing.md)
|
|
10
|
+
为准。
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 0. 本插件的发布身份
|
|
15
|
+
|
|
16
|
+
| 项目 | 值 |
|
|
17
|
+
|---|---|
|
|
18
|
+
| GitHub 仓库 | <https://github.com/ZhengXianTai/dsh-mindmap> |
|
|
19
|
+
| 市场展示名 | `ZhengXianTai/dsh-mindmap` |
|
|
20
|
+
| npm 包名 | `@zhengxiantai/dsh-mindmap` |
|
|
21
|
+
| 目录条目文件 | `data/plugins/ZhengXianTai__dsh-mindmap.yml` |
|
|
22
|
+
| 安装命令 | `dsh plugin --profile web add @zhengxiantai/dsh-mindmap` |
|
|
23
|
+
|
|
24
|
+
**为什么 npm 要加 scope:** unscoped 的 `dsh-mindmap` 已被
|
|
25
|
+
`guhanfei-ai/dsh-mindmap` 占用,不能重复发布。市场搜索用的是目录条目的
|
|
26
|
+
`name: ZhengXianTai/dsh-mindmap` 和描述,不是 npm 包名,所以加 scope
|
|
27
|
+
不会影响 `dsh-mindmap` 的搜索曝光。
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 1. 当前状态
|
|
32
|
+
|
|
33
|
+
| 市场要求 | 状态 |
|
|
34
|
+
|---|---|
|
|
35
|
+
| `package.json` 声明 `dsh.bundle.patch` | ✅ |
|
|
36
|
+
| 仓库根有 `cordis.patch.yml`,且有一行 `insert` | ✅ |
|
|
37
|
+
| `dsh.client.platform = "web"` | ✅ |
|
|
38
|
+
| 真实可运行代码 | ✅ |
|
|
39
|
+
| 官方 `@deepseek-ai/*` 放在 `peerDependencies`,含预发布分支 | ✅ |
|
|
40
|
+
| `screenshots.json` / `LICENSE` | ✅ |
|
|
41
|
+
| npm 包名唯一 | ✅ `@zhengxiantai/dsh-mindmap` |
|
|
42
|
+
| `repository` 指回 GitHub | ✅ |
|
|
43
|
+
| GitHub 仓库已有第一个 commit | ✅ `f4a39e4` 起 |
|
|
44
|
+
| GitHub 仓库加 `dsh-plugin` topic | ✅ 已通过 API 设置 |
|
|
45
|
+
| GitHub 仓库创建满 1 天 | ✅(2026-11-23 创建) |
|
|
46
|
+
| npm 登录 | ✅ `npm whoami` = `zhengxiantai` |
|
|
47
|
+
| npm 发布 | ✅ `0.7.0` 已发布;`0.8.0` 待发布 |
|
|
48
|
+
| 市场目录 PR | ✅ [#18800](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin/pull/18800)(仅 1 个文件) |
|
|
49
|
+
|
|
50
|
+
`peerDependencies` 使用显式预发布分支,例如:
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
">=0.2.0-rc.1 <0.3.0-0 || >=0.2.1-rc.1 <0.3.0-0 || >=0.2.2-rc.1 <0.3.0-0 || >=0.2.3-rc.1 <0.3.0-0"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
这样 `0.2.1-rc.3` 不会被 node-semver 静默排除。
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## 2. 发布 npm 包
|
|
61
|
+
|
|
62
|
+
项目根已有 `.npmrc`:
|
|
63
|
+
|
|
64
|
+
```ini
|
|
65
|
+
registry=https://registry.npmjs.org/
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
`package.json` 里也有:
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
"publishConfig": {
|
|
72
|
+
"access": "public",
|
|
73
|
+
"registry": "https://registry.npmjs.org/"
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
确认登录和包内容:
|
|
78
|
+
|
|
79
|
+
```powershell
|
|
80
|
+
cd D:\Projects\DSH-TREE\dsh-mindmap
|
|
81
|
+
npm whoami
|
|
82
|
+
npm pack --dry-run
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
`npm pack --dry-run` 应该只包含 `lib/`、`cordis.patch.yml`、README、
|
|
86
|
+
LICENSE、PUBLISHING、screenshots、docs 和 package.json;不能有
|
|
87
|
+
`node_modules/`、`test-output/` 或 `.tgz`。
|
|
88
|
+
|
|
89
|
+
发布:
|
|
90
|
+
|
|
91
|
+
```powershell
|
|
92
|
+
npm publish --access public
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
发布后验证:
|
|
96
|
+
|
|
97
|
+
```powershell
|
|
98
|
+
npm view @zhengxiantai/dsh-mindmap version repository
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
npm 11 对新包返回 `202 Accepted`,会提示 “being processed and may take a few minutes”;通常 1–3 分钟后 `npm view` 才能查到,未立即出现不是失败。
|
|
102
|
+
|
|
103
|
+
如果 npm 提示 OTP,输入验证器里的 6 位码即可。**recovery code 只有在
|
|
104
|
+
验证器丢失时才使用,用一次就作废,不要提交到仓库。**
|
|
105
|
+
|
|
106
|
+
### 更新版本
|
|
107
|
+
|
|
108
|
+
```powershell
|
|
109
|
+
npm version patch
|
|
110
|
+
npm publish --access public
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
npm 路线不需要再改目录 YAML;市场会按仓库的 `repository` 字段自动映射到
|
|
114
|
+
新版本。
|
|
115
|
+
|
|
116
|
+
### 不发 npm 的备选
|
|
117
|
+
|
|
118
|
+
如果以后改成 GitHub Release tarball,把 `.tgz` 挂到 Release,并在目录
|
|
119
|
+
条目里加 `tarball:`。推荐钉 tag:
|
|
120
|
+
|
|
121
|
+
```yaml
|
|
122
|
+
tarball: https://github.com/ZhengXianTai/dsh-mindmap/releases/download/v0.7.0/dsh-mindmap-0.7.0.tgz
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
不要写 `latest/download/dsh-mindmap-0.7.0.tgz`,下次发版会 404。
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 3. GitHub 仓库设置
|
|
130
|
+
|
|
131
|
+
仓库已经创建并推送了第一个 commit,不再需要新建仓库。
|
|
132
|
+
|
|
133
|
+
### 添加 Topics
|
|
134
|
+
|
|
135
|
+
在仓库首页右侧 **About** 区域点齿轮/铅笔(Edit repository details),在
|
|
136
|
+
**Topics** 里添加并保存:
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
dsh-plugin
|
|
140
|
+
deepseek-harness
|
|
141
|
+
dsh
|
|
142
|
+
mindmap
|
|
143
|
+
mind-map
|
|
144
|
+
session-tree
|
|
145
|
+
subtopic
|
|
146
|
+
floating-window
|
|
147
|
+
javascript
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
`dsh-plugin` 是市场收录的硬性要求。
|
|
151
|
+
|
|
152
|
+
### 仓库年龄
|
|
153
|
+
|
|
154
|
+
仓库创建于 **2026-11-23 22:09(本地时间)**;市场 CI 要求创建满 1 天,
|
|
155
|
+
所以最早 **2026-11-24 22:09 之后**再提目录 PR。
|
|
156
|
+
|
|
157
|
+
### 推送
|
|
158
|
+
|
|
159
|
+
仓库本地已配置 `http.version = HTTP/1.1`,GitHub 网络不稳时优先用它:
|
|
160
|
+
|
|
161
|
+
```powershell
|
|
162
|
+
git -c http.version=HTTP/1.1 push
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## 4. 提目录 PR
|
|
168
|
+
|
|
169
|
+
Fork 并 clone:
|
|
170
|
+
|
|
171
|
+
```powershell
|
|
172
|
+
git clone https://github.com/<your-github>/awesome-dsh-plugin.git
|
|
173
|
+
cd awesome-dsh-plugin
|
|
174
|
+
git checkout -b add-zhengxiantai-dsh-mindmap
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
新建**一个**文件:
|
|
178
|
+
|
|
179
|
+
```text
|
|
180
|
+
data/plugins/ZhengXianTai__dsh-mindmap.yml
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
内容:
|
|
184
|
+
|
|
185
|
+
```yaml
|
|
186
|
+
url: https://github.com/ZhengXianTai/dsh-mindmap
|
|
187
|
+
name: ZhengXianTai/dsh-mindmap
|
|
188
|
+
category: ui
|
|
189
|
+
description:
|
|
190
|
+
en: 'A map-first DeepSeek Harness (DSH) plugin: the session tree is the main mind map, and a frosted floating chat forks a child subtopic when you send its first message.'
|
|
191
|
+
zh: 'DeepSeek Harness(DSH)插件:会话树就是主面板思维导图;在毛玻璃浮窗里发送第一条消息,会生成子话题节点。'
|
|
192
|
+
# icon: https://raw.githubusercontent.com/ZhengXianTai/dsh-mindmap/main/docs/icon-180.png
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
然后:
|
|
196
|
+
|
|
197
|
+
```powershell
|
|
198
|
+
git add data/plugins/ZhengXianTai__dsh-mindmap.yml
|
|
199
|
+
git commit -m "Add ZhengXianTai/dsh-mindmap"
|
|
200
|
+
git push origin add-zhengxiantai-dsh-mindmap
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
去 <https://github.com/awesome-dsh-plugin/awesome-dsh-plugin> 开 PR:
|
|
204
|
+
|
|
205
|
+
- 只改这一个文件,不要手改生成的 README,不要动别人的条目;
|
|
206
|
+
- PR 正文说明它和已有 `dsh-session-mindmap` 的区别:本插件是**实时会话树
|
|
207
|
+
+ 主面板 + 浮窗输入即 fork 子话题**,不是静态 HTML 导出;
|
|
208
|
+
- 不要向 `dsh-market/dsh-market` 提条目。
|
|
209
|
+
|
|
210
|
+
CI 会检查:条目数 ≤ 3、目标仓库有 `dsh.bundle`、仓库满 1 天、
|
|
211
|
+
`awesome-lint`/站点构建。失败会在 PR 里指出,同一分支推修复即可。
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## 5. 合并之后
|
|
216
|
+
|
|
217
|
+
目录合并后,市场下一次拉取 `plugins.json`(通常一天内)就能搜到:
|
|
218
|
+
|
|
219
|
+
1. **Settings → Plugin Market**(DSH 0.2.1 起 Settings 在账号菜单里);
|
|
220
|
+
2. 搜 `dsh-mindmap` / `ZhengXianTai`;
|
|
221
|
+
3. 一键安装,刷新页面。
|
|
222
|
+
|
|
223
|
+
等价命令:
|
|
224
|
+
|
|
225
|
+
```powershell
|
|
226
|
+
dsh plugin --profile web add @zhengxiantai/dsh-mindmap
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## 6. 提交前检查清单
|
|
232
|
+
|
|
233
|
+
```text
|
|
234
|
+
[ ] package.json name = @zhengxiantai/dsh-mindmap
|
|
235
|
+
[ ] cordis.patch.yml insert.name = @zhengxiantai/dsh-mindmap
|
|
236
|
+
[ ] package.json repository 指回 GitHub
|
|
237
|
+
[ ] npm whoami = zhengxiantai
|
|
238
|
+
[ ] npm pack --dry-run 没有 node_modules / test-output
|
|
239
|
+
[ ] npm publish 成功,npm view 能查到 version
|
|
240
|
+
[ ] GitHub 仓库 public + dsh-plugin topic + 创建满 1 天
|
|
241
|
+
[ ] 描述只写实际做到的功能,不夸大
|
|
242
|
+
[ ] 只新增 data/plugins/ZhengXianTai__dsh-mindmap.yml 一个文件
|
|
243
|
+
[ ] 不向 dsh-market 仓库提条目
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
## 参考
|
|
247
|
+
|
|
248
|
+
- 目录仓库:<https://github.com/awesome-dsh-plugin/awesome-dsh-plugin>
|
|
249
|
+
- 贡献指南:<https://github.com/awesome-dsh-plugin/awesome-dsh-plugin/blob/main/contributing.md>
|
|
250
|
+
- 市场前端:<https://github.com/dsh-market/dsh-market>
|
|
251
|
+
- 目录线上数据:<https://awesome-dsh-plugin.com/plugins.json>
|
|
252
|
+
- npm 包:<https://www.npmjs.com/package/@zhengxiantai/dsh-mindmap>
|