@xiao-53/dsh-mindmap 0.0.0-stage → 0.4.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.
- package/LICENSE +21 -0
- package/README.md +58 -2
- package/cordis.yml +3 -0
- package/lib/client.js +137591 -0
- package/lib/index.js +2701 -0
- package/lib/typert.js +55 -0
- package/package.json +117 -6
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Xiao-53
|
|
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/README.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-mindmap
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
面向 [DSH(DeepSeek Harness)](https://github.com/deepseek-ai/deepseek-harness) 的原生侧栏思维导图插件,可用于整理知识、梳理流程、项目架构可视化等。
|
|
4
|
+
|
|
5
|
+
在对话中通过 `/mindmap` 描述需求,由模型调用插件工具创建或局部修改导图,再在侧栏中阅读、拖动和探索内容。
|
|
6
|
+
|
|
7
|
+
## 功能
|
|
8
|
+
|
|
9
|
+
- **原生侧栏**:查看节点、关系、分组和可逐层进入的子图,阅读 Markdown 详情。
|
|
10
|
+
- **对话协作**:通过 `/mindmap` 创建、读取、补充和修改导图;请求由用户手动发送。
|
|
11
|
+
- **内容引用**:将节点、选中的正文、图表或正文插入位置加入 DSH 输入框,通过引用回到来源。
|
|
12
|
+
- **节点编辑**:标题、摘要和 Markdown 正文可原位编辑并自动保存,支持 LaTeX 实时预览、图片和整图拖放,以及撤销和重做。
|
|
13
|
+
- **布局与管理**:拖动节点或切换排版,支持撤销与重做。可搜索导图,支持单层文件夹整理、直接拖放到指定导图上下排序与跨文件夹移动,以及回收站恢复。
|
|
14
|
+
- **失败创建清理**:在回收站标题旁的“未完成创建”中清理记录,也可让 DSH 调用专用工具;完整地图和活动事务不会被当作失败产物删除。
|
|
15
|
+
- **离线导出**:下载独立 HTML,离线阅读详情、拖动画布节点和切换排版。
|
|
16
|
+
- **本地文件存储**:地图结构、Markdown 正文和布局分别保存,便于持续维护。
|
|
17
|
+
|
|
18
|
+
## 界面预览
|
|
19
|
+
|
|
20
|
+

|
|
21
|
+
|
|
22
|
+
## 环境要求
|
|
23
|
+
|
|
24
|
+
- DSH `0.2.2-alpha.3` ~ `0.2.x`(已于 `0.2.2-rc.3`、`0.2.2-rc.5` 验证),使用原生侧栏,无需 Better Sidebar。
|
|
25
|
+
|
|
26
|
+
## 安装
|
|
27
|
+
|
|
28
|
+
直接把下面这段话发给 DSH,让它帮你安装:
|
|
29
|
+
|
|
30
|
+
```text
|
|
31
|
+
请帮我安装 dsh-mindmap 思维导图插件。
|
|
32
|
+
项目地址:https://github.com/Xiao-53/dsh-mindmap
|
|
33
|
+
请从 GitHub 最新 Release 下载 .tgz 安装包,安装到我当前使用的 DSH profile,
|
|
34
|
+
保留已有配置,并在完成后告诉我是否需要重启或重新加载。
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
安装完成并按提示重启或重新加载后,在原生右侧栏中打开“思维导图”。
|
|
38
|
+
|
|
39
|
+
也可以前往 [最新 Release](https://github.com/Xiao-53/dsh-mindmap/releases/latest) 下载安装包。仓库保留源码,安装包通过 Release 提供。
|
|
40
|
+
|
|
41
|
+
## 使用
|
|
42
|
+
|
|
43
|
+
在 DSH 输入框选择或输入 `/mindmap`,补充具体需求后手动发送,例如:
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
/mindmap 介绍一下一战爆发前国际关系。
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
也可以指定已有地图,要求补充节点、调整关系或修改正文。保存成功后,插件会刷新并打开目标导图。
|
|
50
|
+
|
|
51
|
+
数据默认保存在当前工作区的 `dsh-knowledge-maps/` 下,每张地图使用独立目录,包含 `map.json`、Markdown 正文和 `layout.json`。
|
|
52
|
+
|
|
53
|
+
## 当前状态
|
|
54
|
+
|
|
55
|
+
当前版本为 **0.4.3**,已通过用户人工验收。查看 [v0.4.3 发布与安装包](https://github.com/Xiao-53/dsh-mindmap/releases/tag/v0.4.3)。
|
|
56
|
+
|
|
57
|
+
## 许可证
|
|
58
|
+
|
|
59
|
+
[MIT License](LICENSE)
|
package/cordis.yml
ADDED