@civilization/dsh-drawio 0.4.2 → 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/README.md +4 -3
- package/lib/client.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -78,11 +78,12 @@ DSH 的 `sidebarRightTabs` 在判定「由谁打开此文件」时,采用如
|
|
|
78
78
|
> [!TIP]
|
|
79
79
|
> 此规则对所有**“按特定扩展名注册定制编辑器 / 视图 Tab”**的 DSH 插件均成立。编写特定扩展名 Tab 时,务必补全 `dsh-resource://file/**/*.ext` 整地址模式,防止被通用文件接管插件按模式长度压制。
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
## Harness / Cordis 版本兼容
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
当前版本已在 DeepSeek Harness **0.2.1-rc.2** 及 Cordis **4.0.5** 上全量验证通过:构建、XML 离线操作与编辑、乐观锁版本感知、本地静态资源加载及官方右侧栏 `sidebarRightTabs` / `slots` 注册全部正常,单元测试通过率 100%。
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
- `peerDependencies` 只声明**下界**(`>=0.1.5-rc.2`,无上界),以便跟随 DSH 的快速迭代:DSH 的兼容性判定用运行时版本比对这些范围,新版本不会再被旧插件卡住。
|
|
86
|
+
- 画板地址解析直接复用 DSH 官方 `parseFileAddress`(`@deepseek-ai/dsh-util-workspace-path`),完整支持 `dsh-resource://file/session/<sid>/<path>` 与 `dsh-resource://file/absolute/<path>` 两种 scope;`absolute` 地址只有在文件位于当前会话工作区内时才能打开,工作区外会给出明确提示,服务端仍会二次校验边界。
|
|
86
87
|
|
|
87
88
|
当前内置的精简 Draw.io runtime 固定为 31.4.5。包含完整满血版内置图库(通用、流程图、UML、ER、BPMN、网络、Kubernetes、AWS、GCP、Cisco、电子、平面图等全部分类均可自由开启)以及 PlantUML 离线渲染模块;
|
|
88
89
|
云盘、在线图库、模板库、VSDX/Gliffy 导入未包含;已全面支持纯本地离线 Canvas + SVG 导出引擎。
|
package/lib/client.js
CHANGED
|
@@ -60,7 +60,7 @@ function svgMarkupOf(data) {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
// node_modules/.pnpm/@deepseek-ai+dsh-util-workspace-path@0.2.0-rc.2_@deepseek-ai+cordis@4.0.
|
|
63
|
+
// node_modules/.pnpm/@deepseek-ai+dsh-util-workspace-path@0.2.0-rc.2_@deepseek-ai+cordis@4.0.5/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js
|
|
64
64
|
var FILE_ADDRESS_PREFIX = "dsh-resource://file/";
|
|
65
65
|
function isDriveSegment(segment) {
|
|
66
66
|
return segment !== void 0 && /^[A-Za-z]:$/.test(segment);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@civilization/dsh-drawio",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Local draw.io canvas and model tools for DeepSeek Harness",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@deepseek-ai/dsh-util-workspace-path": "0.2.0-rc.2",
|
|
55
|
-
"@deepseek-ai/schemastery": "3.18.
|
|
55
|
+
"@deepseek-ai/schemastery": "~3.18.5",
|
|
56
56
|
"@xmldom/xmldom": "0.9.12",
|
|
57
57
|
"pako": "2.1.0"
|
|
58
58
|
},
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@deepseek-ai/cordis": "4.0.
|
|
72
|
-
"@deepseek-ai/dsh-fs": "0.2.
|
|
73
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.
|
|
74
|
-
"@deepseek-ai/dsh-sandbox": "0.2.
|
|
75
|
-
"@deepseek-ai/dsh-tools": "0.2.
|
|
71
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
72
|
+
"@deepseek-ai/dsh-fs": "0.2.1-rc.2",
|
|
73
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.2",
|
|
74
|
+
"@deepseek-ai/dsh-sandbox": "0.2.1-rc.2",
|
|
75
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.2",
|
|
76
76
|
"@types/react": "18.3.31",
|
|
77
77
|
"esbuild": "0.28.2",
|
|
78
78
|
"react": "18.3.1",
|