@addozhang/dsh-3d-model-viewer 0.3.0 → 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 +6 -9
- package/README.zh-CN.md +5 -8
- package/cordis.patch.yml +12 -0
- package/package.json +15 -3
package/README.md
CHANGED
|
@@ -7,6 +7,8 @@ Models can be inspected directly in the sidebar document preview — no
|
|
|
7
7
|
external tool needed — and the plugin doubles as a live preview drawer for
|
|
8
8
|
active sessions.
|
|
9
9
|
|
|
10
|
+

|
|
11
|
+
|
|
10
12
|
## Features
|
|
11
13
|
|
|
12
14
|
- **Native sidebar document preview** — clicking an `.stl` / `.3mf` in the
|
|
@@ -40,18 +42,13 @@ Everything is parsed in the browser; model files never leave the machine
|
|
|
40
42
|
## Install
|
|
41
43
|
|
|
42
44
|
```bash
|
|
43
|
-
|
|
44
|
-
# or from source: npm install github:addozhang/dsh-3d-model-viewer
|
|
45
|
+
dsh plugin --profile web add @addozhang/dsh-3d-model-viewer
|
|
45
46
|
```
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
The package declares its own bundle patch (`cordis.patch.yml`), so the plugin
|
|
49
|
+
manager wires it into the profile — no manual `cordis.patch.yml` editing.
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
- insert:
|
|
52
|
-
- id: 3d-model-viewer
|
|
53
|
-
name: '@addozhang/dsh-3d-model-viewer'
|
|
54
|
-
```
|
|
51
|
+
Latest source instead: `dsh plugin --profile web add github:addozhang/dsh-3d-model-viewer`
|
|
55
52
|
|
|
56
53
|
Refresh the Web GUI; if the client roster did not update, restart
|
|
57
54
|
`dsh web` and refresh again.
|
package/README.zh-CN.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
DeepSeek Harness Web GUI 的本地交互式 STL / 3MF 预览插件。模型可直接在侧边栏文档预览中查看,无需外部工具;同时为活动会话提供实时预览抽屉。
|
|
6
6
|
|
|
7
|
+

|
|
8
|
+
|
|
7
9
|
## 功能
|
|
8
10
|
|
|
9
11
|
- **侧边栏原生文档预览**:在「文件」面板点击 `.stl` / `.3mf`,右侧文档标签页像打开 Markdown / PDF / 图片一样打开 3D 视图(通过公开的 `documentPreviews` + `sidebar.right.tab.document` 扩展点接入)
|
|
@@ -20,17 +22,12 @@ DeepSeek Harness Web GUI 的本地交互式 STL / 3MF 预览插件。模型可
|
|
|
20
22
|
## 安装
|
|
21
23
|
|
|
22
24
|
```bash
|
|
23
|
-
|
|
24
|
-
# 或从源码安装:npm install github:addozhang/dsh-3d-model-viewer
|
|
25
|
+
dsh plugin --profile web add @addozhang/dsh-3d-model-viewer
|
|
25
26
|
```
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
包自带 bundle patch(`cordis.patch.yml`),插件管理器会自动接入 profile,无需手改 `cordis.patch.yml`。
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
- insert:
|
|
31
|
-
- id: 3d-model-viewer
|
|
32
|
-
name: '@addozhang/dsh-3d-model-viewer'
|
|
33
|
-
```
|
|
30
|
+
安装最新源码:`dsh plugin --profile web add github:addozhang/dsh-3d-model-viewer`
|
|
34
31
|
|
|
35
32
|
刷新 Web GUI;若客户端 roster 未更新,重启 `dsh web` 后再刷新。
|
|
36
33
|
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# The dsh-3d-model-viewer bundle patch: mounts the 3D viewer into the Web
|
|
2
|
+
# profile's Host plugin tree. The Host half serves the local
|
|
3
|
+
# /3d-model-viewer/files endpoint for the session drawer.
|
|
4
|
+
#
|
|
5
|
+
# The browser half (sidebar document preview, drawer, viewer) is declared
|
|
6
|
+
# through this package's `dsh.client` manifest, so the modules node scans it
|
|
7
|
+
# into the browser roster automatically and no client row is needed here.
|
|
8
|
+
|
|
9
|
+
- insert:
|
|
10
|
+
- id: 3d-model-viewer
|
|
11
|
+
name: '@addozhang/dsh-3d-model-viewer'
|
|
12
|
+
inject: [webServer]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@addozhang/dsh-3d-model-viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Interactive STL/3MF viewer plugin for the DeepSeek Harness Web GUI: sidebar document preview, live session drawer, CAD navigation, orthographic dimension labels, 3MF part colors.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
"main": "lib/index.js",
|
|
21
21
|
"exports": {
|
|
22
22
|
".": "./lib/index.js",
|
|
23
|
-
"./client": "./lib/client.js"
|
|
23
|
+
"./client": "./lib/client.js",
|
|
24
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
25
|
+
"./package.json": "./package.json"
|
|
24
26
|
},
|
|
25
27
|
"scripts": {
|
|
26
28
|
"build": "node build.mjs",
|
|
@@ -28,6 +30,9 @@
|
|
|
28
30
|
"test:e2e": "python3 scripts/e2e.py"
|
|
29
31
|
},
|
|
30
32
|
"dsh": {
|
|
33
|
+
"bundle": {
|
|
34
|
+
"patch": "./cordis.patch.yml"
|
|
35
|
+
},
|
|
31
36
|
"client": {
|
|
32
37
|
"inject": [
|
|
33
38
|
"@deepseek-ai/dsh-client-ui-renderer",
|
|
@@ -44,5 +49,12 @@
|
|
|
44
49
|
"devDependencies": {
|
|
45
50
|
"esbuild": "^0.25.0"
|
|
46
51
|
},
|
|
47
|
-
"files": [
|
|
52
|
+
"files": [
|
|
53
|
+
"lib/index.js",
|
|
54
|
+
"lib/client.js",
|
|
55
|
+
"README.md",
|
|
56
|
+
"README.zh-CN.md",
|
|
57
|
+
"LICENSE",
|
|
58
|
+
"cordis.patch.yml"
|
|
59
|
+
]
|
|
48
60
|
}
|