dsh-cad 0.13.0 → 0.13.2
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 +8 -1
- package/README.zh-CN.md +8 -1
- package/lib/client.js +165 -165
- package/lib/client.js.map +3 -3
- package/lib/modeling/assembly.js +35 -4
- package/lib/modeling/document.js +5 -3
- package/lib/modeling/modeling-worker.cjs +18 -6
- package/lib/modeling/occt-bridge.cjs +3 -0
- package/lib/modeling/occtts-adapter.cjs +10 -0
- package/lib/tools/cad-freecad.js +4 -4
- package/lib/tools/cad-fusion.js +3 -3
- package/lib/tools/cad-image.js +3 -3
- package/lib/tools/cad-info.js +3 -3
- package/lib/tools/cad-model.js +35 -5
- package/lib/tools/cad-onshape.js +3 -3
- package/lib/tools/cad-view.js +3 -3
- package/lib/tools/util.js +20 -0
- package/lib/types/modeling/assembly.d.ts +4 -0
- package/lib/types/modeling/document.d.ts +6 -2
- package/lib/types/tools/util.d.ts +13 -0
- package/lib/types.js +6 -4
- package/package.json +94 -93
package/package.json
CHANGED
|
@@ -1,93 +1,94 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-cad",
|
|
3
|
-
"description": "CAD visualization plugin for DeepSeek Harness: cad_view / cad_info tools with an embedded 3D (STL/OBJ/STEP/IGES) and 2D (DXF/SVG) viewer card in the Web UI",
|
|
4
|
-
"version": "0.13.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"author": "LAU-MARS",
|
|
8
|
-
"homepage": "https://lau-mars.github.io/dsh-cad/",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/LAU-MARS/dsh-cad.git"
|
|
12
|
-
},
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/LAU-MARS/dsh-cad/issues"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"deepseek-harness",
|
|
18
|
-
"dsh",
|
|
19
|
-
"dsh-plugin",
|
|
20
|
-
"cad",
|
|
21
|
-
"3d",
|
|
22
|
-
"2d",
|
|
23
|
-
"occt",
|
|
24
|
-
"opencascade",
|
|
25
|
-
"threejs",
|
|
26
|
-
"step",
|
|
27
|
-
"iges",
|
|
28
|
-
"dxf",
|
|
29
|
-
"svg"
|
|
30
|
-
],
|
|
31
|
-
"engines": {
|
|
32
|
-
"node": ">=22",
|
|
33
|
-
"dsh": ">=0.1.0-rc.7"
|
|
34
|
-
},
|
|
35
|
-
"main": "lib/index.js",
|
|
36
|
-
"types": "lib/types/index.d.ts",
|
|
37
|
-
"exports": {
|
|
38
|
-
".": {
|
|
39
|
-
"types": "./lib/types/index.d.ts",
|
|
40
|
-
"default": "./lib/index.js"
|
|
41
|
-
},
|
|
42
|
-
"./client": {
|
|
43
|
-
"default": "./lib/client.js"
|
|
44
|
-
},
|
|
45
|
-
"./package.json": "./package.json"
|
|
46
|
-
},
|
|
47
|
-
"dsh": {
|
|
48
|
-
"bundle": {
|
|
49
|
-
"patch": "./cordis.patch.yml"
|
|
50
|
-
},
|
|
51
|
-
"client": {
|
|
52
|
-
"inject": [
|
|
53
|
-
"@deepseek-ai/dsh-client-runtime",
|
|
54
|
-
"@deepseek-ai/dsh-client-ui-conversation"
|
|
55
|
-
],
|
|
56
|
-
"platform": "web"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"files": [
|
|
60
|
-
"lib",
|
|
61
|
-
"README.md",
|
|
62
|
-
"cordis.patch.yml"
|
|
63
|
-
],
|
|
64
|
-
"scripts": {
|
|
65
|
-
"build": "tsc -p tsconfig.json && node esbuild.client.mjs && node -e \"const fs=require('fs'); fs.copyFileSync('src/convert/step-worker.mjs','lib/convert/step-worker.mjs'); fs.mkdirSync('lib/modeling',{recursive:true}); fs.copyFileSync('src/modeling/occt-adapter.cjs','lib/modeling/occt-adapter.cjs'); fs.copyFileSync('src/modeling/modeling-worker.cjs','lib/modeling/modeling-worker.cjs'); fs.copyFileSync('src/modeling/occt-bridge.cjs','lib/modeling/occt-bridge.cjs'); fs.copyFileSync('src/modeling/occtts-adapter.cjs','lib/modeling/occtts-adapter.cjs'); for (const part of ['bracket','flange','shaft']) fs.copyFileSync('assets/demo-'+part+'.brep','lib/demo-'+part+'.brep')\"",
|
|
66
|
-
"watch": "tsc -p tsconfig.json --watch & node esbuild.client.mjs --watch",
|
|
67
|
-
"test": "vitest run --no-file-parallelism",
|
|
68
|
-
"test:watch": "vitest"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"occt
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"@deepseek-ai/
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"@
|
|
86
|
-
"@types/
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"react
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-cad",
|
|
3
|
+
"description": "CAD visualization plugin for DeepSeek Harness: cad_view / cad_info tools with an embedded 3D (STL/OBJ/STEP/IGES) and 2D (DXF/SVG) viewer card in the Web UI",
|
|
4
|
+
"version": "0.13.2",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "LAU-MARS",
|
|
8
|
+
"homepage": "https://lau-mars.github.io/dsh-cad/",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/LAU-MARS/dsh-cad.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/LAU-MARS/dsh-cad/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"deepseek-harness",
|
|
18
|
+
"dsh",
|
|
19
|
+
"dsh-plugin",
|
|
20
|
+
"cad",
|
|
21
|
+
"3d",
|
|
22
|
+
"2d",
|
|
23
|
+
"occt",
|
|
24
|
+
"opencascade",
|
|
25
|
+
"threejs",
|
|
26
|
+
"step",
|
|
27
|
+
"iges",
|
|
28
|
+
"dxf",
|
|
29
|
+
"svg"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=22",
|
|
33
|
+
"dsh": ">=0.1.0-rc.7"
|
|
34
|
+
},
|
|
35
|
+
"main": "lib/index.js",
|
|
36
|
+
"types": "lib/types/index.d.ts",
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"types": "./lib/types/index.d.ts",
|
|
40
|
+
"default": "./lib/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./client": {
|
|
43
|
+
"default": "./lib/client.js"
|
|
44
|
+
},
|
|
45
|
+
"./package.json": "./package.json"
|
|
46
|
+
},
|
|
47
|
+
"dsh": {
|
|
48
|
+
"bundle": {
|
|
49
|
+
"patch": "./cordis.patch.yml"
|
|
50
|
+
},
|
|
51
|
+
"client": {
|
|
52
|
+
"inject": [
|
|
53
|
+
"@deepseek-ai/dsh-client-runtime",
|
|
54
|
+
"@deepseek-ai/dsh-client-ui-conversation"
|
|
55
|
+
],
|
|
56
|
+
"platform": "web"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"lib",
|
|
61
|
+
"README.md",
|
|
62
|
+
"cordis.patch.yml"
|
|
63
|
+
],
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "tsc -p tsconfig.json && node esbuild.client.mjs && node -e \"const fs=require('fs'); fs.copyFileSync('src/convert/step-worker.mjs','lib/convert/step-worker.mjs'); fs.mkdirSync('lib/modeling',{recursive:true}); fs.copyFileSync('src/modeling/occt-adapter.cjs','lib/modeling/occt-adapter.cjs'); fs.copyFileSync('src/modeling/modeling-worker.cjs','lib/modeling/modeling-worker.cjs'); fs.copyFileSync('src/modeling/occt-bridge.cjs','lib/modeling/occt-bridge.cjs'); fs.copyFileSync('src/modeling/occtts-adapter.cjs','lib/modeling/occtts-adapter.cjs'); for (const part of ['bracket','flange','shaft']) fs.copyFileSync('assets/demo-'+part+'.brep','lib/demo-'+part+'.brep')\"",
|
|
66
|
+
"watch": "tsc -p tsconfig.json --watch & node esbuild.client.mjs --watch",
|
|
67
|
+
"test": "vitest run --no-file-parallelism",
|
|
68
|
+
"test:watch": "vitest",
|
|
69
|
+
"chart": "node scripts/gen-downloads-chart.mjs"
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"ansatz-wasm": "^0.2.0",
|
|
73
|
+
"dxf-parser": "^1.1.2",
|
|
74
|
+
"occt-import-js": "^0.0.23",
|
|
75
|
+
"occt.ts": "^0.7.0",
|
|
76
|
+
"opencascade.js": "^1.1.1",
|
|
77
|
+
"three": "^0.185.1"
|
|
78
|
+
},
|
|
79
|
+
"peerDependencies": {
|
|
80
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.1",
|
|
81
|
+
"@deepseek-ai/dsh-tools": ">=0.0.1-rc.1",
|
|
82
|
+
"react": "^18.2.0"
|
|
83
|
+
},
|
|
84
|
+
"devDependencies": {
|
|
85
|
+
"@deepseek-ai/dsh-tools": "^0.1.7-rc.2",
|
|
86
|
+
"@types/node": "^22.10.0",
|
|
87
|
+
"@types/react": "^18.3.1",
|
|
88
|
+
"esbuild": "^0.28.2",
|
|
89
|
+
"react": "^18.2.0",
|
|
90
|
+
"react-dom": "^18.3.1",
|
|
91
|
+
"typescript": "^5.7.0",
|
|
92
|
+
"vitest": "^4.1.10"
|
|
93
|
+
}
|
|
94
|
+
}
|