@guowenzhang/dsh-whiteboard 0.2.1 → 0.3.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/README.md +40 -37
- package/README.zh.md +40 -37
- package/lib/client.js +5 -2
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
# dsh-whiteboard
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
# dsh-whiteboard
|
|
2
|
+
|
|
3
|
+
English | [中文](README.zh.md)
|
|
4
|
+
|
|
5
|
+
## Why I built this plugin
|
|
6
|
+
|
|
7
|
+
I often need somewhere to jot down drafts while thinking. I used to do that in documents, but now that AI tools are part of my everyday workflow, I wanted that space right inside DeepSeek Harness. A whiteboard is more flexible for sketching ideas and mapping out processes. It uses the open `.drawio` file format, so boards can also be edited in draw.io and other compatible tools.
|
|
8
|
+
|
|
9
|
+
In the plugin list, display names and descriptions follow the Harness language setting in English or Chinese (English is the default fallback); English names use the package name without its npm scope, Chinese names describe the purpose, and installation still uses the unchanged real package name.
|
|
10
|
+
|
|
11
|
+
## Screenshots
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
The editor screenshot shows an earlier version. The current version keeps the gallery visible beside the editor.
|
|
20
|
+
|
|
21
|
+
## Install
|
|
22
|
+
|
|
23
|
+
Install the editor dependency first, then the whiteboard plugin:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
npx @deepseek-ai/dsh plugin --profile web add @guowenzhang/dsh-drawioedit
|
|
27
|
+
npx @deepseek-ai/dsh plugin --profile web add @guowenzhang/dsh-whiteboard
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Restart DSH Web, open **Whiteboards** in the left navigation, and click **New whiteboard** to confirm a name and get started. Click an existing card to continue editing.
|
|
31
|
+
|
|
32
|
+
## Notes
|
|
33
|
+
|
|
34
|
+
- The editor saves your drawings automatically; no manual saving is needed.
|
|
35
|
+
- Boards are stored in the plugin's `files/` directory, not the current workspace. Back up that directory before updating, replacing, or uninstalling the plugin.
|
|
36
|
+
- Deleting a board removes its file, so check before confirming.
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
[Apache-2.0](LICENSE). See [NOTICE](NOTICE) for third-party notices.
|
package/README.zh.md
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
# dsh-whiteboard
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
# dsh-whiteboard
|
|
2
|
+
|
|
3
|
+
[English](README.md) | 中文
|
|
4
|
+
|
|
5
|
+
## 为什么做这个插件
|
|
6
|
+
|
|
7
|
+
我在思考时,经常需要一个地方记录草稿,以前一般会写在文档里。现在全面使用 AI 工具,就把这个空间直接集成到了 DeepSeek Harness 中。白板比文档更灵活,适合随手记录想法、梳理流程;采用开放的 `.drawio` 文件格式,也方便在 draw.io 等兼容工具中继续编辑。
|
|
8
|
+
|
|
9
|
+
插件列表的显示名称与介绍支持英文和中文,随 Harness 语言设置显示,英文为默认回退;英文名称为去掉 npm scope 的原包名,中文名称说明用途,安装仍使用不变的真实包名。
|
|
10
|
+
|
|
11
|
+
## 截图
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
编辑器截图来自旧版;当前版本在编辑器旁保留白板列表。
|
|
20
|
+
|
|
21
|
+
## 安装
|
|
22
|
+
|
|
23
|
+
先安装编辑器依赖,再安装白板插件:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
npx @deepseek-ai/dsh plugin --profile web add @guowenzhang/dsh-drawioedit
|
|
27
|
+
npx @deepseek-ai/dsh plugin --profile web add @guowenzhang/dsh-whiteboard
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
重启 DSH Web,打开左侧“白板”,点击“新建白板”并确认名称即可开始;点击已有卡片可继续编辑。
|
|
31
|
+
|
|
32
|
+
## 注意事项
|
|
33
|
+
|
|
34
|
+
- 绘图内容由编辑器自动保存,无需手动保存。
|
|
35
|
+
- 白板保存在插件的 `files/` 目录,不在当前工作区;更新、替换或卸载插件前请备份该目录。
|
|
36
|
+
- 删除白板会删除对应文件,请确认后再操作。
|
|
37
|
+
|
|
38
|
+
## 许可
|
|
39
|
+
|
|
40
|
+
[Apache-2.0](LICENSE),第三方组件声明见 [NOTICE](NOTICE)。
|
package/lib/client.js
CHANGED
|
@@ -31019,8 +31019,11 @@ segment: 30 };
|
|
|
31019
31019
|
open: async (board) => {
|
|
31020
31020
|
if (!ctx.sidebarRightTabs.get("drawio-edit")) throw new Error(t("editorMissing"));
|
|
31021
31021
|
const catalog = sessions.list.getSnapshot().byId;
|
|
31022
|
-
|
|
31023
|
-
|
|
31022
|
+
const reusableId = lastSessionId && catalog[lastSessionId]?.cwd === board.directory ? lastSessionId : void 0;
|
|
31023
|
+
const sessionId = await sessions.create({
|
|
31024
|
+
cwd: board.directory,
|
|
31025
|
+
...reusableId ? { sessionId: reusableId } : {}
|
|
31026
|
+
});
|
|
31024
31027
|
await unwrap(remote().grantBoardSession({ sessionId }));
|
|
31025
31028
|
lastSessionId = sessionId;
|
|
31026
31029
|
writeBoardSession(sessionId);
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guowenzhang/dsh-whiteboard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Whiteboards for DeepSeek Harness: a board gallery in the main panel and draw.io editing in the Sidebar, with boards stored inside the plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
".": "./lib/index.mjs",
|
|
10
10
|
"./client": "./lib/client.js",
|
|
11
11
|
"./package.json": "./package.json",
|
|
12
|
-
"./cordis.patch.yml": "./cordis.patch.yml"
|
|
12
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
13
|
+
"./locale/*": "./locale/*"
|
|
13
14
|
},
|
|
14
15
|
"engines": {
|
|
15
16
|
"node": "^22.19.0 || >=24.0.0",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
"files": [
|
|
39
|
+
"locale",
|
|
38
40
|
"lib",
|
|
39
41
|
"docs",
|
|
40
42
|
"files/README.md",
|
|
@@ -45,6 +47,7 @@
|
|
|
45
47
|
"NOTICE"
|
|
46
48
|
],
|
|
47
49
|
"scripts": {
|
|
50
|
+
"test:metadata": "node --test tests/plugin-metadata.test.mjs",
|
|
48
51
|
"build": "tsdown -c tsdown.config.ts && node build-client.mjs",
|
|
49
52
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
50
53
|
"test": "vitest run"
|