dsh-cad 0.16.2 → 0.17.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 +9 -0
- package/README.zh-CN.md +9 -0
- package/lib/client.js +31 -31
- package/lib/client.js.map +3 -3
- package/lib/modeling/assembly.js +318 -215
- package/lib/modeling/cadorange-adapter.cjs +75 -0
- package/lib/modeling/cadorange-bridge.cjs +10 -0
- package/lib/modeling/joints.js +442 -0
- package/lib/modeling/modeling-worker.cjs +88 -0
- package/lib/tools/cad-model.js +2282 -1797
- package/lib/types/modeling/assembly.d.ts +106 -78
- package/lib/types/modeling/client.d.ts +279 -227
- package/lib/types/modeling/joints.d.ts +129 -0
- package/lib/types/tools/cad-model.d.ts +16 -16
- package/package.json +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { ToolDefinition } from '@deepseek-ai/dsh-tools';
|
|
2
|
-
import { DocumentRegistry } from '../modeling/registry.js';
|
|
3
|
-
import type { BinarySceneStore } from '../modeling/bin-store.js';
|
|
4
|
-
import type { SceneStore } from '../store.js';
|
|
5
|
-
export interface ModelToolDeps {
|
|
6
|
-
store: BinarySceneStore;
|
|
7
|
-
/** JSON scene store (drawing sheets). */
|
|
8
|
-
sceneStore: SceneStore;
|
|
9
|
-
workspaceRoot: string;
|
|
10
|
-
ensureSceneRoute: () => string | null;
|
|
11
|
-
/** The workspace document registry (file space + session bindings). */
|
|
12
|
-
registry: DocumentRegistry;
|
|
13
|
-
}
|
|
14
|
-
/** Build the whole tool family over the document registry + worker + stores. */
|
|
15
|
-
export declare function createModelTools(deps: ModelToolDeps): ToolDefinition[];
|
|
16
|
-
export declare const MODEL_TOOL_NAMES: readonly ["cad_create_prim", "cad_sketch_new", "cad_sketch_edit", "cad_sketch_list", "cad_sketch_delete", "cad_extrude_profile", "cad_revolve", "cad_chamfer", "cad_shell", "cad_draft", "cad_pattern", "cad_loft", "cad_sweep", "cad_boolean", "cad_fillet", "cad_transform", "cad_export", "cad_delete", "cad_volume", "cad_drawing", "cad_assembly_insert", "cad_assembly_move", "cad_assembly_remove", "cad_docs", "cad_doc_new", "cad_doc_open", "cad_doc_rename", "cad_doc_delete", "cad_constraint", "cad_solve", "cad_motion"];
|
|
1
|
+
import type { ToolDefinition } from '@deepseek-ai/dsh-tools';
|
|
2
|
+
import { DocumentRegistry } from '../modeling/registry.js';
|
|
3
|
+
import type { BinarySceneStore } from '../modeling/bin-store.js';
|
|
4
|
+
import type { SceneStore } from '../store.js';
|
|
5
|
+
export interface ModelToolDeps {
|
|
6
|
+
store: BinarySceneStore;
|
|
7
|
+
/** JSON scene store (drawing sheets). */
|
|
8
|
+
sceneStore: SceneStore;
|
|
9
|
+
workspaceRoot: string;
|
|
10
|
+
ensureSceneRoute: () => string | null;
|
|
11
|
+
/** The workspace document registry (file space + session bindings). */
|
|
12
|
+
registry: DocumentRegistry;
|
|
13
|
+
}
|
|
14
|
+
/** Build the whole tool family over the document registry + worker + stores. */
|
|
15
|
+
export declare function createModelTools(deps: ModelToolDeps): ToolDefinition[];
|
|
16
|
+
export declare const MODEL_TOOL_NAMES: readonly ["cad_create_prim", "cad_sketch_new", "cad_sketch_edit", "cad_sketch_list", "cad_sketch_delete", "cad_extrude_profile", "cad_revolve", "cad_chamfer", "cad_shell", "cad_draft", "cad_pattern", "cad_loft", "cad_sweep", "cad_boolean", "cad_fillet", "cad_transform", "cad_export", "cad_delete", "cad_volume", "cad_drawing", "cad_assembly_insert", "cad_assembly_move", "cad_assembly_remove", "cad_assembly_joint", "cad_assembly_connect", "cad_assembly_drive", "cad_assembly_solve", "cad_assembly_explode", "cad_assembly_info", "cad_step_import", "cad_docs", "cad_doc_new", "cad_doc_open", "cad_doc_rename", "cad_doc_delete", "cad_constraint", "cad_solve", "cad_motion"];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-cad",
|
|
3
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.
|
|
4
|
+
"version": "0.17.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "LAU-MARS",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"ansatz-wasm": "^0.2.0",
|
|
73
|
-
"cadorange": "^0.
|
|
73
|
+
"cadorange": "^0.10.0",
|
|
74
74
|
"dxf-parser": "^1.1.2",
|
|
75
75
|
"occt-import-js": "^0.0.23",
|
|
76
76
|
"occt.ts": "^1.1.0",
|