@guowenzhang/dsh-whiteboard 0.2.2 → 0.3.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.
- package/README.md +2 -0
- package/README.zh.md +2 -0
- 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
|
@@ -6,6 +6,8 @@ English | [中文](README.zh.md)
|
|
|
6
6
|
|
|
7
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
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
|
+
|
|
9
11
|
## Screenshots
|
|
10
12
|
|
|
11
13
|

|
package/README.zh.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
我在思考时,经常需要一个地方记录草稿,以前一般会写在文档里。现在全面使用 AI 工具,就把这个空间直接集成到了 DeepSeek Harness 中。白板比文档更灵活,适合随手记录想法、梳理流程;采用开放的 `.drawio` 文件格式,也方便在 draw.io 等兼容工具中继续编辑。
|
|
8
8
|
|
|
9
|
+
插件列表的显示名称与介绍支持英文和中文,随 Harness 语言设置显示,英文为默认回退;英文名称为去掉 npm scope 的原包名,中文名称说明用途,安装仍使用不变的真实包名。
|
|
10
|
+
|
|
9
11
|
## 截图
|
|
10
12
|
|
|
11
13
|

|
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.1",
|
|
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"
|