cad-mcp-server 0.1.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/LICENSE +21 -0
- package/README.md +111 -0
- package/THIRD_PARTY_NOTICES.md +20 -0
- package/dist/cad/compare.d.ts +31 -0
- package/dist/cad/compare.d.ts.map +1 -0
- package/dist/cad/compare.js +51 -0
- package/dist/cad/compare.js.map +1 -0
- package/dist/cad/model-store.d.ts +52 -0
- package/dist/cad/model-store.d.ts.map +1 -0
- package/dist/cad/model-store.js +227 -0
- package/dist/cad/model-store.js.map +1 -0
- package/dist/cad/query/edges.d.ts +6 -0
- package/dist/cad/query/edges.d.ts.map +1 -0
- package/dist/cad/query/edges.js +257 -0
- package/dist/cad/query/edges.js.map +1 -0
- package/dist/cad/query/entities.d.ts +4 -0
- package/dist/cad/query/entities.d.ts.map +1 -0
- package/dist/cad/query/entities.js +185 -0
- package/dist/cad/query/entities.js.map +1 -0
- package/dist/cad/query/faces.d.ts +6 -0
- package/dist/cad/query/faces.d.ts.map +1 -0
- package/dist/cad/query/faces.js +305 -0
- package/dist/cad/query/faces.js.map +1 -0
- package/dist/cad/query/pmi.d.ts +3 -0
- package/dist/cad/query/pmi.d.ts.map +1 -0
- package/dist/cad/query/pmi.js +141 -0
- package/dist/cad/query/pmi.js.map +1 -0
- package/dist/cad/query/shared.d.ts +74 -0
- package/dist/cad/query/shared.d.ts.map +1 -0
- package/dist/cad/query/shared.js +181 -0
- package/dist/cad/query/shared.js.map +1 -0
- package/dist/cad/schema-version.d.ts +2 -0
- package/dist/cad/schema-version.d.ts.map +1 -0
- package/dist/cad/schema-version.js +2 -0
- package/dist/cad/schema-version.js.map +1 -0
- package/dist/compare.d.ts +31 -0
- package/dist/compare.d.ts.map +1 -0
- package/dist/compare.js +51 -0
- package/dist/compare.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +113 -0
- package/dist/index.js.map +1 -0
- package/dist/kernel/aag-utils.d.ts +7 -0
- package/dist/kernel/aag-utils.d.ts.map +1 -0
- package/dist/kernel/aag-utils.js +54 -0
- package/dist/kernel/aag-utils.js.map +1 -0
- package/dist/kernel/import.d.ts +4 -0
- package/dist/kernel/import.d.ts.map +1 -0
- package/dist/kernel/import.js +25 -0
- package/dist/kernel/import.js.map +1 -0
- package/dist/kernel/kernel.d.ts +3 -0
- package/dist/kernel/kernel.d.ts.map +1 -0
- package/dist/kernel/kernel.js +7 -0
- package/dist/kernel/kernel.js.map +1 -0
- package/dist/kernel/measure.d.ts +6 -0
- package/dist/kernel/measure.d.ts.map +1 -0
- package/dist/kernel/measure.js +23 -0
- package/dist/kernel/measure.js.map +1 -0
- package/dist/kernel/query-entities.d.ts +75 -0
- package/dist/kernel/query-entities.d.ts.map +1 -0
- package/dist/kernel/query-entities.js +190 -0
- package/dist/kernel/query-entities.js.map +1 -0
- package/dist/kernel/topology.d.ts +4 -0
- package/dist/kernel/topology.d.ts.map +1 -0
- package/dist/kernel/topology.js +48 -0
- package/dist/kernel/topology.js.map +1 -0
- package/dist/model-store.d.ts +52 -0
- package/dist/model-store.d.ts.map +1 -0
- package/dist/model-store.js +227 -0
- package/dist/model-store.js.map +1 -0
- package/dist/pmi/metadata.d.ts +15 -0
- package/dist/pmi/metadata.d.ts.map +1 -0
- package/dist/pmi/metadata.js +93 -0
- package/dist/pmi/metadata.js.map +1 -0
- package/dist/pmi/parser.d.ts +46 -0
- package/dist/pmi/parser.d.ts.map +1 -0
- package/dist/pmi/parser.js +400 -0
- package/dist/pmi/parser.js.map +1 -0
- package/dist/pmi/semantic-provider.d.ts +7 -0
- package/dist/pmi/semantic-provider.d.ts.map +1 -0
- package/dist/pmi/semantic-provider.js +96 -0
- package/dist/pmi/semantic-provider.js.map +1 -0
- package/dist/providers/brep.d.ts +39 -0
- package/dist/providers/brep.d.ts.map +1 -0
- package/dist/providers/brep.js +2 -0
- package/dist/providers/brep.js.map +1 -0
- package/dist/providers/lightweight-step/metadata.d.ts +15 -0
- package/dist/providers/lightweight-step/metadata.d.ts.map +1 -0
- package/dist/providers/lightweight-step/metadata.js +93 -0
- package/dist/providers/lightweight-step/metadata.js.map +1 -0
- package/dist/providers/lightweight-step/pmi-parser.d.ts +46 -0
- package/dist/providers/lightweight-step/pmi-parser.d.ts.map +1 -0
- package/dist/providers/lightweight-step/pmi-parser.js +400 -0
- package/dist/providers/lightweight-step/pmi-parser.js.map +1 -0
- package/dist/providers/lightweight-step/semantic-provider.d.ts +7 -0
- package/dist/providers/lightweight-step/semantic-provider.d.ts.map +1 -0
- package/dist/providers/lightweight-step/semantic-provider.js +96 -0
- package/dist/providers/lightweight-step/semantic-provider.js.map +1 -0
- package/dist/providers/occt-wasm/aag-utils.d.ts +7 -0
- package/dist/providers/occt-wasm/aag-utils.d.ts.map +1 -0
- package/dist/providers/occt-wasm/aag-utils.js +54 -0
- package/dist/providers/occt-wasm/aag-utils.js.map +1 -0
- package/dist/providers/occt-wasm/import.d.ts +4 -0
- package/dist/providers/occt-wasm/import.d.ts.map +1 -0
- package/dist/providers/occt-wasm/import.js +25 -0
- package/dist/providers/occt-wasm/import.js.map +1 -0
- package/dist/providers/occt-wasm/kernel.d.ts +3 -0
- package/dist/providers/occt-wasm/kernel.d.ts.map +1 -0
- package/dist/providers/occt-wasm/kernel.js +7 -0
- package/dist/providers/occt-wasm/kernel.js.map +1 -0
- package/dist/providers/occt-wasm/measure.d.ts +6 -0
- package/dist/providers/occt-wasm/measure.d.ts.map +1 -0
- package/dist/providers/occt-wasm/measure.js +23 -0
- package/dist/providers/occt-wasm/measure.js.map +1 -0
- package/dist/providers/occt-wasm/query-entities.d.ts +71 -0
- package/dist/providers/occt-wasm/query-entities.d.ts.map +1 -0
- package/dist/providers/occt-wasm/query-entities.js +177 -0
- package/dist/providers/occt-wasm/query-entities.js.map +1 -0
- package/dist/providers/occt-wasm/topology.d.ts +4 -0
- package/dist/providers/occt-wasm/topology.d.ts.map +1 -0
- package/dist/providers/occt-wasm/topology.js +48 -0
- package/dist/providers/occt-wasm/topology.js.map +1 -0
- package/dist/providers/schema.d.ts +50 -0
- package/dist/providers/schema.d.ts.map +1 -0
- package/dist/providers/schema.js +2 -0
- package/dist/providers/schema.js.map +1 -0
- package/dist/providers/semantic.d.ts +34 -0
- package/dist/providers/semantic.d.ts.map +1 -0
- package/dist/providers/semantic.js +2 -0
- package/dist/providers/semantic.js.map +1 -0
- package/dist/query/edges.d.ts +6 -0
- package/dist/query/edges.d.ts.map +1 -0
- package/dist/query/edges.js +257 -0
- package/dist/query/edges.js.map +1 -0
- package/dist/query/entities.d.ts +4 -0
- package/dist/query/entities.d.ts.map +1 -0
- package/dist/query/entities.js +203 -0
- package/dist/query/entities.js.map +1 -0
- package/dist/query/faces.d.ts +6 -0
- package/dist/query/faces.d.ts.map +1 -0
- package/dist/query/faces.js +309 -0
- package/dist/query/faces.js.map +1 -0
- package/dist/query/pmi.d.ts +3 -0
- package/dist/query/pmi.d.ts.map +1 -0
- package/dist/query/pmi.js +141 -0
- package/dist/query/pmi.js.map +1 -0
- package/dist/query/shared.d.ts +74 -0
- package/dist/query/shared.d.ts.map +1 -0
- package/dist/query/shared.js +181 -0
- package/dist/query/shared.js.map +1 -0
- package/dist/schema-version.d.ts +2 -0
- package/dist/schema-version.d.ts.map +1 -0
- package/dist/schema-version.js +2 -0
- package/dist/schema-version.js.map +1 -0
- package/dist/tools/shared.d.ts +11 -0
- package/dist/tools/shared.d.ts.map +1 -0
- package/dist/tools/shared.js +19 -0
- package/dist/tools/shared.js.map +1 -0
- package/dist/tools/step-tools.d.ts +758 -0
- package/dist/tools/step-tools.d.ts.map +1 -0
- package/dist/tools/step-tools.js +836 -0
- package/dist/tools/step-tools.js.map +1 -0
- package/dist/types/brep.d.ts +39 -0
- package/dist/types/brep.d.ts.map +1 -0
- package/dist/types/brep.js +2 -0
- package/dist/types/brep.js.map +1 -0
- package/dist/types/schema.d.ts +50 -0
- package/dist/types/schema.d.ts.map +1 -0
- package/dist/types/schema.js +2 -0
- package/dist/types/schema.js.map +1 -0
- package/dist/types/semantic.d.ts +34 -0
- package/dist/types/semantic.d.ts.map +1 -0
- package/dist/types/semantic.js +2 -0
- package/dist/types/semantic.js.map +1 -0
- package/dist/utils/errors.d.ts +7 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +7 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/ids.d.ts +2 -0
- package/dist/utils/ids.d.ts.map +1 -0
- package/dist/utils/ids.js +4 -0
- package/dist/utils/ids.js.map +1 -0
- package/dist/utils/numbers.d.ts +11 -0
- package/dist/utils/numbers.d.ts.map +1 -0
- package/dist/utils/numbers.js +15 -0
- package/dist/utils/numbers.js.map +1 -0
- package/dist/utils/vectors.d.ts +4 -0
- package/dist/utils/vectors.d.ts.map +1 -0
- package/dist/utils/vectors.js +14 -0
- package/dist/utils/vectors.js.map +1 -0
- package/docs/EXAMPLE_PROMPTS.md +61 -0
- package/node_modules/occt-wasm/dist/index.d.ts +303 -0
- package/node_modules/occt-wasm/dist/index.d.ts.map +1 -0
- package/node_modules/occt-wasm/dist/index.js +1125 -0
- package/node_modules/occt-wasm/dist/index.js.map +1 -0
- package/node_modules/occt-wasm/dist/occt-wasm.js +2 -0
- package/node_modules/occt-wasm/dist/occt-wasm.wasm +0 -0
- package/node_modules/occt-wasm/dist/raw-types.d.ts +229 -0
- package/node_modules/occt-wasm/dist/raw-types.d.ts.map +1 -0
- package/node_modules/occt-wasm/dist/raw-types.js +8 -0
- package/node_modules/occt-wasm/dist/raw-types.js.map +1 -0
- package/node_modules/occt-wasm/dist/types.d.ts +223 -0
- package/node_modules/occt-wasm/dist/types.d.ts.map +1 -0
- package/node_modules/occt-wasm/dist/types.js +129 -0
- package/node_modules/occt-wasm/dist/types.js.map +1 -0
- package/node_modules/occt-wasm/package.json +44 -0
- package/package.json +102 -0
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { CAD_RESPONSE_SCHEMA_VERSION } from '../schema-version.js';
|
|
3
|
+
declare const internalFaceQuerySchema: {
|
|
4
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
entity_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
group_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
surface_type: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8
|
+
bspline: "bspline";
|
|
9
|
+
plane: "plane";
|
|
10
|
+
cylinder: "cylinder";
|
|
11
|
+
cone: "cone";
|
|
12
|
+
sphere: "sphere";
|
|
13
|
+
torus: "torus";
|
|
14
|
+
other: "other";
|
|
15
|
+
}>>>;
|
|
16
|
+
area_min: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
area_max: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
normal_parallel_to: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
19
|
+
normal_tolerance_degrees: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
body_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
}, z.core.$strict>>;
|
|
22
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
23
|
+
[x: string]: string;
|
|
24
|
+
}>>>;
|
|
25
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
26
|
+
radius: "radius";
|
|
27
|
+
body_id: "body_id";
|
|
28
|
+
surface_type: "surface_type";
|
|
29
|
+
normal_direction: "normal_direction";
|
|
30
|
+
area_range: "area_range";
|
|
31
|
+
}>>>;
|
|
32
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
by: z.ZodEnum<{
|
|
34
|
+
center_x: "center_x";
|
|
35
|
+
center_y: "center_y";
|
|
36
|
+
center_z: "center_z";
|
|
37
|
+
surface_type: "surface_type";
|
|
38
|
+
area: "area";
|
|
39
|
+
}>;
|
|
40
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
asc: "asc";
|
|
42
|
+
desc: "desc";
|
|
43
|
+
}>>;
|
|
44
|
+
}, z.core.$strict>>;
|
|
45
|
+
result_mode: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
summary: "summary";
|
|
47
|
+
entities: "entities";
|
|
48
|
+
groups: "groups";
|
|
49
|
+
}>>;
|
|
50
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
};
|
|
53
|
+
declare const internalEdgeQuerySchema: {
|
|
54
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
entity_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
|
+
group_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
|
+
curve_type: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
58
|
+
line: "line";
|
|
59
|
+
circle: "circle";
|
|
60
|
+
ellipse: "ellipse";
|
|
61
|
+
bspline: "bspline";
|
|
62
|
+
other: "other";
|
|
63
|
+
}>>>;
|
|
64
|
+
length_min: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
length_max: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
radius_min: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
radius_max: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
body_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
71
|
+
[x: string]: string;
|
|
72
|
+
}>>>;
|
|
73
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
74
|
+
curve_type: "curve_type";
|
|
75
|
+
body_id: "body_id";
|
|
76
|
+
length_range: "length_range";
|
|
77
|
+
}>>>;
|
|
78
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
by: z.ZodEnum<{
|
|
80
|
+
length: "length";
|
|
81
|
+
radius: "radius";
|
|
82
|
+
curve_type: "curve_type";
|
|
83
|
+
center_x: "center_x";
|
|
84
|
+
center_y: "center_y";
|
|
85
|
+
center_z: "center_z";
|
|
86
|
+
}>;
|
|
87
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
asc: "asc";
|
|
89
|
+
desc: "desc";
|
|
90
|
+
}>>;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
result_mode: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
summary: "summary";
|
|
94
|
+
entities: "entities";
|
|
95
|
+
groups: "groups";
|
|
96
|
+
}>>;
|
|
97
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
};
|
|
100
|
+
declare const internalPmiQuerySchema: {
|
|
101
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
pmi_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
103
|
+
geometric_tolerance: "geometric_tolerance";
|
|
104
|
+
dimension: "dimension";
|
|
105
|
+
datum: "datum";
|
|
106
|
+
annotation: "annotation";
|
|
107
|
+
}>>>;
|
|
108
|
+
tolerance_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
109
|
+
position: "position";
|
|
110
|
+
flatness: "flatness";
|
|
111
|
+
straightness: "straightness";
|
|
112
|
+
circularity: "circularity";
|
|
113
|
+
cylindricity: "cylindricity";
|
|
114
|
+
profile: "profile";
|
|
115
|
+
parallelism: "parallelism";
|
|
116
|
+
perpendicularity: "perpendicularity";
|
|
117
|
+
angularity: "angularity";
|
|
118
|
+
concentricity: "concentricity";
|
|
119
|
+
runout: "runout";
|
|
120
|
+
symmetry: "symmetry";
|
|
121
|
+
coaxiality: "coaxiality";
|
|
122
|
+
circular_runout: "circular_runout";
|
|
123
|
+
total_runout: "total_runout";
|
|
124
|
+
surface_profile: "surface_profile";
|
|
125
|
+
line_profile: "line_profile";
|
|
126
|
+
}>>>;
|
|
127
|
+
value_min: z.ZodOptional<z.ZodNumber>;
|
|
128
|
+
value_max: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
}, z.core.$strict>>;
|
|
130
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
131
|
+
type: "type";
|
|
132
|
+
tolerance_type: "tolerance_type";
|
|
133
|
+
dimension_type: "dimension_type";
|
|
134
|
+
material_condition: "material_condition";
|
|
135
|
+
}>>>;
|
|
136
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
137
|
+
by: z.ZodEnum<{
|
|
138
|
+
value: "value";
|
|
139
|
+
type: "type";
|
|
140
|
+
tolerance_type: "tolerance_type";
|
|
141
|
+
}>;
|
|
142
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
asc: "asc";
|
|
144
|
+
desc: "desc";
|
|
145
|
+
}>>;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
result_mode: z.ZodOptional<z.ZodEnum<{
|
|
148
|
+
summary: "summary";
|
|
149
|
+
entities: "entities";
|
|
150
|
+
groups: "groups";
|
|
151
|
+
}>>;
|
|
152
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
};
|
|
155
|
+
declare const findStepFacesSchema: {
|
|
156
|
+
surface_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
157
|
+
bspline: "bspline";
|
|
158
|
+
plane: "plane";
|
|
159
|
+
cylinder: "cylinder";
|
|
160
|
+
cone: "cone";
|
|
161
|
+
sphere: "sphere";
|
|
162
|
+
torus: "torus";
|
|
163
|
+
other: "other";
|
|
164
|
+
}>>>;
|
|
165
|
+
area_min: z.ZodOptional<z.ZodNumber>;
|
|
166
|
+
area_max: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
normal: z.ZodOptional<z.ZodObject<{
|
|
168
|
+
parallel_to: z.ZodArray<z.ZodNumber>;
|
|
169
|
+
tolerance_degrees: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
}, z.core.$strict>>;
|
|
171
|
+
body_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
172
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
173
|
+
[x: string]: string;
|
|
174
|
+
}>>>;
|
|
175
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
176
|
+
radius: "radius";
|
|
177
|
+
body_id: "body_id";
|
|
178
|
+
surface_type: "surface_type";
|
|
179
|
+
normal_direction: "normal_direction";
|
|
180
|
+
area_range: "area_range";
|
|
181
|
+
}>>>;
|
|
182
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
by: z.ZodEnum<{
|
|
184
|
+
center_x: "center_x";
|
|
185
|
+
center_y: "center_y";
|
|
186
|
+
center_z: "center_z";
|
|
187
|
+
surface_type: "surface_type";
|
|
188
|
+
area: "area";
|
|
189
|
+
}>;
|
|
190
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
asc: "asc";
|
|
192
|
+
desc: "desc";
|
|
193
|
+
}>>;
|
|
194
|
+
}, z.core.$strict>>;
|
|
195
|
+
return_type: z.ZodOptional<z.ZodEnum<{
|
|
196
|
+
summary: "summary";
|
|
197
|
+
entities: "entities";
|
|
198
|
+
groups: "groups";
|
|
199
|
+
}>>;
|
|
200
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
file_path: z.ZodString;
|
|
203
|
+
};
|
|
204
|
+
declare const findStepEdgesSchema: {
|
|
205
|
+
curve_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
206
|
+
line: "line";
|
|
207
|
+
circle: "circle";
|
|
208
|
+
ellipse: "ellipse";
|
|
209
|
+
bspline: "bspline";
|
|
210
|
+
other: "other";
|
|
211
|
+
}>>>;
|
|
212
|
+
length_min: z.ZodOptional<z.ZodNumber>;
|
|
213
|
+
length_max: z.ZodOptional<z.ZodNumber>;
|
|
214
|
+
radius: z.ZodOptional<z.ZodObject<{
|
|
215
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
216
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
}, z.core.$strict>>;
|
|
218
|
+
body_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
219
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
220
|
+
[x: string]: string;
|
|
221
|
+
}>>>;
|
|
222
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
223
|
+
curve_type: "curve_type";
|
|
224
|
+
body_id: "body_id";
|
|
225
|
+
length_range: "length_range";
|
|
226
|
+
}>>>;
|
|
227
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
228
|
+
by: z.ZodEnum<{
|
|
229
|
+
length: "length";
|
|
230
|
+
radius: "radius";
|
|
231
|
+
curve_type: "curve_type";
|
|
232
|
+
center_x: "center_x";
|
|
233
|
+
center_y: "center_y";
|
|
234
|
+
center_z: "center_z";
|
|
235
|
+
}>;
|
|
236
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
237
|
+
asc: "asc";
|
|
238
|
+
desc: "desc";
|
|
239
|
+
}>>;
|
|
240
|
+
}, z.core.$strict>>;
|
|
241
|
+
return_type: z.ZodOptional<z.ZodEnum<{
|
|
242
|
+
summary: "summary";
|
|
243
|
+
entities: "entities";
|
|
244
|
+
groups: "groups";
|
|
245
|
+
}>>;
|
|
246
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
file_path: z.ZodString;
|
|
249
|
+
};
|
|
250
|
+
declare const getStepEntitiesSchema: {
|
|
251
|
+
entity_type: z.ZodEnum<{
|
|
252
|
+
edge: "edge";
|
|
253
|
+
face: "face";
|
|
254
|
+
}>;
|
|
255
|
+
entity_ids: z.ZodArray<z.ZodString>;
|
|
256
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
257
|
+
[x: string]: string;
|
|
258
|
+
}>>>;
|
|
259
|
+
file_path: z.ZodString;
|
|
260
|
+
};
|
|
261
|
+
declare const pmiQuerySchema: {
|
|
262
|
+
pmi_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
263
|
+
geometric_tolerance: "geometric_tolerance";
|
|
264
|
+
dimension: "dimension";
|
|
265
|
+
datum: "datum";
|
|
266
|
+
annotation: "annotation";
|
|
267
|
+
}>>>;
|
|
268
|
+
tolerance_subtypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
269
|
+
position: "position";
|
|
270
|
+
flatness: "flatness";
|
|
271
|
+
straightness: "straightness";
|
|
272
|
+
circularity: "circularity";
|
|
273
|
+
cylindricity: "cylindricity";
|
|
274
|
+
profile: "profile";
|
|
275
|
+
parallelism: "parallelism";
|
|
276
|
+
perpendicularity: "perpendicularity";
|
|
277
|
+
angularity: "angularity";
|
|
278
|
+
concentricity: "concentricity";
|
|
279
|
+
runout: "runout";
|
|
280
|
+
symmetry: "symmetry";
|
|
281
|
+
coaxiality: "coaxiality";
|
|
282
|
+
circular_runout: "circular_runout";
|
|
283
|
+
total_runout: "total_runout";
|
|
284
|
+
surface_profile: "surface_profile";
|
|
285
|
+
line_profile: "line_profile";
|
|
286
|
+
}>>>;
|
|
287
|
+
value_min: z.ZodOptional<z.ZodNumber>;
|
|
288
|
+
value_max: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
290
|
+
type: "type";
|
|
291
|
+
tolerance_type: "tolerance_type";
|
|
292
|
+
dimension_type: "dimension_type";
|
|
293
|
+
material_condition: "material_condition";
|
|
294
|
+
}>>>;
|
|
295
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
296
|
+
by: z.ZodEnum<{
|
|
297
|
+
value: "value";
|
|
298
|
+
type: "type";
|
|
299
|
+
tolerance_type: "tolerance_type";
|
|
300
|
+
}>;
|
|
301
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
302
|
+
asc: "asc";
|
|
303
|
+
desc: "desc";
|
|
304
|
+
}>>;
|
|
305
|
+
}, z.core.$strict>>;
|
|
306
|
+
return_type: z.ZodOptional<z.ZodEnum<{
|
|
307
|
+
summary: "summary";
|
|
308
|
+
entities: "entities";
|
|
309
|
+
groups: "groups";
|
|
310
|
+
}>>;
|
|
311
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
312
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
313
|
+
file_path: z.ZodString;
|
|
314
|
+
};
|
|
315
|
+
export declare const stepToolSchemas: {
|
|
316
|
+
readonly inspectStepFile: {
|
|
317
|
+
file_path: z.ZodString;
|
|
318
|
+
};
|
|
319
|
+
readonly findStepFaces: {
|
|
320
|
+
surface_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
321
|
+
bspline: "bspline";
|
|
322
|
+
plane: "plane";
|
|
323
|
+
cylinder: "cylinder";
|
|
324
|
+
cone: "cone";
|
|
325
|
+
sphere: "sphere";
|
|
326
|
+
torus: "torus";
|
|
327
|
+
other: "other";
|
|
328
|
+
}>>>;
|
|
329
|
+
area_min: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
area_max: z.ZodOptional<z.ZodNumber>;
|
|
331
|
+
normal: z.ZodOptional<z.ZodObject<{
|
|
332
|
+
parallel_to: z.ZodArray<z.ZodNumber>;
|
|
333
|
+
tolerance_degrees: z.ZodOptional<z.ZodNumber>;
|
|
334
|
+
}, z.core.$strict>>;
|
|
335
|
+
body_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
336
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
337
|
+
[x: string]: string;
|
|
338
|
+
}>>>;
|
|
339
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
340
|
+
radius: "radius";
|
|
341
|
+
body_id: "body_id";
|
|
342
|
+
surface_type: "surface_type";
|
|
343
|
+
normal_direction: "normal_direction";
|
|
344
|
+
area_range: "area_range";
|
|
345
|
+
}>>>;
|
|
346
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
347
|
+
by: z.ZodEnum<{
|
|
348
|
+
center_x: "center_x";
|
|
349
|
+
center_y: "center_y";
|
|
350
|
+
center_z: "center_z";
|
|
351
|
+
surface_type: "surface_type";
|
|
352
|
+
area: "area";
|
|
353
|
+
}>;
|
|
354
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
355
|
+
asc: "asc";
|
|
356
|
+
desc: "desc";
|
|
357
|
+
}>>;
|
|
358
|
+
}, z.core.$strict>>;
|
|
359
|
+
return_type: z.ZodOptional<z.ZodEnum<{
|
|
360
|
+
summary: "summary";
|
|
361
|
+
entities: "entities";
|
|
362
|
+
groups: "groups";
|
|
363
|
+
}>>;
|
|
364
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
365
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
366
|
+
file_path: z.ZodString;
|
|
367
|
+
};
|
|
368
|
+
readonly findStepEdges: {
|
|
369
|
+
curve_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
370
|
+
line: "line";
|
|
371
|
+
circle: "circle";
|
|
372
|
+
ellipse: "ellipse";
|
|
373
|
+
bspline: "bspline";
|
|
374
|
+
other: "other";
|
|
375
|
+
}>>>;
|
|
376
|
+
length_min: z.ZodOptional<z.ZodNumber>;
|
|
377
|
+
length_max: z.ZodOptional<z.ZodNumber>;
|
|
378
|
+
radius: z.ZodOptional<z.ZodObject<{
|
|
379
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
381
|
+
}, z.core.$strict>>;
|
|
382
|
+
body_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
383
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
384
|
+
[x: string]: string;
|
|
385
|
+
}>>>;
|
|
386
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
387
|
+
curve_type: "curve_type";
|
|
388
|
+
body_id: "body_id";
|
|
389
|
+
length_range: "length_range";
|
|
390
|
+
}>>>;
|
|
391
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
392
|
+
by: z.ZodEnum<{
|
|
393
|
+
length: "length";
|
|
394
|
+
radius: "radius";
|
|
395
|
+
curve_type: "curve_type";
|
|
396
|
+
center_x: "center_x";
|
|
397
|
+
center_y: "center_y";
|
|
398
|
+
center_z: "center_z";
|
|
399
|
+
}>;
|
|
400
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
401
|
+
asc: "asc";
|
|
402
|
+
desc: "desc";
|
|
403
|
+
}>>;
|
|
404
|
+
}, z.core.$strict>>;
|
|
405
|
+
return_type: z.ZodOptional<z.ZodEnum<{
|
|
406
|
+
summary: "summary";
|
|
407
|
+
entities: "entities";
|
|
408
|
+
groups: "groups";
|
|
409
|
+
}>>;
|
|
410
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
411
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
412
|
+
file_path: z.ZodString;
|
|
413
|
+
};
|
|
414
|
+
readonly getStepEntities: {
|
|
415
|
+
entity_type: z.ZodEnum<{
|
|
416
|
+
edge: "edge";
|
|
417
|
+
face: "face";
|
|
418
|
+
}>;
|
|
419
|
+
entity_ids: z.ZodArray<z.ZodString>;
|
|
420
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
421
|
+
[x: string]: string;
|
|
422
|
+
}>>>;
|
|
423
|
+
file_path: z.ZodString;
|
|
424
|
+
};
|
|
425
|
+
readonly compareStepFiles: {
|
|
426
|
+
readonly baseline_file_path: z.ZodString;
|
|
427
|
+
readonly comparison_file_path: z.ZodString;
|
|
428
|
+
};
|
|
429
|
+
readonly queryStepPmi: {
|
|
430
|
+
pmi_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
431
|
+
geometric_tolerance: "geometric_tolerance";
|
|
432
|
+
dimension: "dimension";
|
|
433
|
+
datum: "datum";
|
|
434
|
+
annotation: "annotation";
|
|
435
|
+
}>>>;
|
|
436
|
+
tolerance_subtypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
437
|
+
position: "position";
|
|
438
|
+
flatness: "flatness";
|
|
439
|
+
straightness: "straightness";
|
|
440
|
+
circularity: "circularity";
|
|
441
|
+
cylindricity: "cylindricity";
|
|
442
|
+
profile: "profile";
|
|
443
|
+
parallelism: "parallelism";
|
|
444
|
+
perpendicularity: "perpendicularity";
|
|
445
|
+
angularity: "angularity";
|
|
446
|
+
concentricity: "concentricity";
|
|
447
|
+
runout: "runout";
|
|
448
|
+
symmetry: "symmetry";
|
|
449
|
+
coaxiality: "coaxiality";
|
|
450
|
+
circular_runout: "circular_runout";
|
|
451
|
+
total_runout: "total_runout";
|
|
452
|
+
surface_profile: "surface_profile";
|
|
453
|
+
line_profile: "line_profile";
|
|
454
|
+
}>>>;
|
|
455
|
+
value_min: z.ZodOptional<z.ZodNumber>;
|
|
456
|
+
value_max: z.ZodOptional<z.ZodNumber>;
|
|
457
|
+
group_by: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
458
|
+
type: "type";
|
|
459
|
+
tolerance_type: "tolerance_type";
|
|
460
|
+
dimension_type: "dimension_type";
|
|
461
|
+
material_condition: "material_condition";
|
|
462
|
+
}>>>;
|
|
463
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
464
|
+
by: z.ZodEnum<{
|
|
465
|
+
value: "value";
|
|
466
|
+
type: "type";
|
|
467
|
+
tolerance_type: "tolerance_type";
|
|
468
|
+
}>;
|
|
469
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
470
|
+
asc: "asc";
|
|
471
|
+
desc: "desc";
|
|
472
|
+
}>>;
|
|
473
|
+
}, z.core.$strict>>;
|
|
474
|
+
return_type: z.ZodOptional<z.ZodEnum<{
|
|
475
|
+
summary: "summary";
|
|
476
|
+
entities: "entities";
|
|
477
|
+
groups: "groups";
|
|
478
|
+
}>>;
|
|
479
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
480
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
481
|
+
file_path: z.ZodString;
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
export declare const stepToolOutputSchemas: {
|
|
485
|
+
readonly inspectStepFile: {
|
|
486
|
+
readonly schema_version: z.ZodLiteral<"0.4">;
|
|
487
|
+
readonly file_path: z.ZodString;
|
|
488
|
+
readonly identity: z.ZodObject<{
|
|
489
|
+
product_names: z.ZodArray<z.ZodString>;
|
|
490
|
+
authoring_system: z.ZodOptional<z.ZodString>;
|
|
491
|
+
organization_name: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, z.core.$strip>;
|
|
493
|
+
readonly size: z.ZodObject<{
|
|
494
|
+
bounding_box: z.ZodObject<{}, z.core.$loose>;
|
|
495
|
+
dimensions: z.ZodObject<{}, z.core.$loose>;
|
|
496
|
+
volume: z.ZodNumber;
|
|
497
|
+
surface_area: z.ZodNumber;
|
|
498
|
+
units: z.ZodObject<{}, z.core.$loose>;
|
|
499
|
+
}, z.core.$strip>;
|
|
500
|
+
readonly structure: z.ZodObject<{
|
|
501
|
+
body_count: z.ZodNumber;
|
|
502
|
+
shape_type: z.ZodString;
|
|
503
|
+
is_assembly: z.ZodBoolean;
|
|
504
|
+
product_count: z.ZodNumber;
|
|
505
|
+
schema: z.ZodOptional<z.ZodString>;
|
|
506
|
+
application_protocol: z.ZodOptional<z.ZodString>;
|
|
507
|
+
}, z.core.$strip>;
|
|
508
|
+
readonly health: z.ZodObject<{
|
|
509
|
+
is_valid: z.ZodOptional<z.ZodBoolean>;
|
|
510
|
+
warning_count: z.ZodNumber;
|
|
511
|
+
high_warning_count: z.ZodNumber;
|
|
512
|
+
complexity: z.ZodObject<{}, z.core.$loose>;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
readonly pmi: z.ZodObject<{}, z.core.$loose>;
|
|
515
|
+
readonly topology_summary: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
516
|
+
readonly geometry_extremes: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
517
|
+
readonly warnings: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
518
|
+
readonly limitations: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
519
|
+
};
|
|
520
|
+
readonly findStepFaces: z.ZodObject<{
|
|
521
|
+
schema_version: z.ZodLiteral<"0.4">;
|
|
522
|
+
file_path: z.ZodString;
|
|
523
|
+
units: z.ZodObject<{}, z.core.$loose>;
|
|
524
|
+
coordinate_system: z.ZodObject<{}, z.core.$loose>;
|
|
525
|
+
query: z.ZodObject<{}, z.core.$loose>;
|
|
526
|
+
statistics: z.ZodObject<{}, z.core.$loose>;
|
|
527
|
+
pagination: z.ZodObject<{
|
|
528
|
+
limit: z.ZodNumber;
|
|
529
|
+
offset: z.ZodNumber;
|
|
530
|
+
returned: z.ZodNumber;
|
|
531
|
+
total_matched: z.ZodNumber;
|
|
532
|
+
has_more: z.ZodBoolean;
|
|
533
|
+
}, z.core.$strip>;
|
|
534
|
+
entities: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
535
|
+
groups: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
536
|
+
warnings: z.ZodArray<z.ZodUnknown>;
|
|
537
|
+
limitations: z.ZodArray<z.ZodUnknown>;
|
|
538
|
+
}, z.core.$loose>;
|
|
539
|
+
readonly findStepEdges: z.ZodObject<{
|
|
540
|
+
schema_version: z.ZodLiteral<"0.4">;
|
|
541
|
+
file_path: z.ZodString;
|
|
542
|
+
units: z.ZodObject<{}, z.core.$loose>;
|
|
543
|
+
coordinate_system: z.ZodObject<{}, z.core.$loose>;
|
|
544
|
+
query: z.ZodObject<{}, z.core.$loose>;
|
|
545
|
+
statistics: z.ZodObject<{}, z.core.$loose>;
|
|
546
|
+
pagination: z.ZodObject<{
|
|
547
|
+
limit: z.ZodNumber;
|
|
548
|
+
offset: z.ZodNumber;
|
|
549
|
+
returned: z.ZodNumber;
|
|
550
|
+
total_matched: z.ZodNumber;
|
|
551
|
+
has_more: z.ZodBoolean;
|
|
552
|
+
}, z.core.$strip>;
|
|
553
|
+
entities: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
554
|
+
groups: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
555
|
+
warnings: z.ZodArray<z.ZodUnknown>;
|
|
556
|
+
limitations: z.ZodArray<z.ZodUnknown>;
|
|
557
|
+
}, z.core.$loose>;
|
|
558
|
+
readonly getStepEntities: z.ZodObject<{
|
|
559
|
+
schema_version: z.ZodLiteral<"0.4">;
|
|
560
|
+
file_path: z.ZodString;
|
|
561
|
+
units: z.ZodObject<{}, z.core.$loose>;
|
|
562
|
+
coordinate_system: z.ZodObject<{}, z.core.$loose>;
|
|
563
|
+
query: z.ZodObject<{}, z.core.$loose>;
|
|
564
|
+
statistics: z.ZodObject<{}, z.core.$loose>;
|
|
565
|
+
pagination: z.ZodObject<{
|
|
566
|
+
limit: z.ZodNumber;
|
|
567
|
+
offset: z.ZodNumber;
|
|
568
|
+
returned: z.ZodNumber;
|
|
569
|
+
total_matched: z.ZodNumber;
|
|
570
|
+
has_more: z.ZodBoolean;
|
|
571
|
+
}, z.core.$strip>;
|
|
572
|
+
entities: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
573
|
+
groups: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
574
|
+
warnings: z.ZodArray<z.ZodUnknown>;
|
|
575
|
+
limitations: z.ZodArray<z.ZodUnknown>;
|
|
576
|
+
}, z.core.$loose>;
|
|
577
|
+
readonly compareStepFiles: z.ZodObject<{
|
|
578
|
+
schema_version: z.ZodLiteral<"0.4">;
|
|
579
|
+
files: z.ZodObject<{
|
|
580
|
+
a: z.ZodString;
|
|
581
|
+
b: z.ZodString;
|
|
582
|
+
}, z.core.$strip>;
|
|
583
|
+
deltas: z.ZodObject<{}, z.core.$loose>;
|
|
584
|
+
exchange: z.ZodObject<{}, z.core.$loose>;
|
|
585
|
+
warnings: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
586
|
+
limitations: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
587
|
+
providers: z.ZodObject<{}, z.core.$loose>;
|
|
588
|
+
}, z.core.$loose>;
|
|
589
|
+
readonly queryStepPmi: z.ZodObject<{
|
|
590
|
+
schema_version: z.ZodLiteral<"0.4">;
|
|
591
|
+
file_path: z.ZodString;
|
|
592
|
+
units: z.ZodObject<{}, z.core.$loose>;
|
|
593
|
+
coordinate_system: z.ZodObject<{}, z.core.$loose>;
|
|
594
|
+
query: z.ZodObject<{}, z.core.$loose>;
|
|
595
|
+
statistics: z.ZodObject<{}, z.core.$loose>;
|
|
596
|
+
pagination: z.ZodObject<{
|
|
597
|
+
limit: z.ZodNumber;
|
|
598
|
+
offset: z.ZodNumber;
|
|
599
|
+
returned: z.ZodNumber;
|
|
600
|
+
total_matched: z.ZodNumber;
|
|
601
|
+
has_more: z.ZodBoolean;
|
|
602
|
+
}, z.core.$strip>;
|
|
603
|
+
entities: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
604
|
+
groups: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
605
|
+
warnings: z.ZodArray<z.ZodUnknown>;
|
|
606
|
+
limitations: z.ZodArray<z.ZodUnknown>;
|
|
607
|
+
}, z.core.$loose>;
|
|
608
|
+
};
|
|
609
|
+
export declare function handleInspectStepFile(filePath: string): Promise<import("./shared.js").ToolResponse<{
|
|
610
|
+
schema_version: "0.4";
|
|
611
|
+
file_path: string;
|
|
612
|
+
identity: {
|
|
613
|
+
product_names: string[];
|
|
614
|
+
authoring_system: string | undefined;
|
|
615
|
+
organization_name: string | undefined;
|
|
616
|
+
};
|
|
617
|
+
size: {
|
|
618
|
+
bounding_box: import("../types/schema.js").BoundingBox;
|
|
619
|
+
dimensions: import("../types/schema.js").Dimensions;
|
|
620
|
+
volume: number;
|
|
621
|
+
surface_area: number;
|
|
622
|
+
units: import("../types/schema.js").UnitSystem;
|
|
623
|
+
};
|
|
624
|
+
structure: {
|
|
625
|
+
body_count: number;
|
|
626
|
+
shape_type: "box" | "cylindrical" | "complex";
|
|
627
|
+
is_assembly: boolean;
|
|
628
|
+
product_count: number;
|
|
629
|
+
schema: string | undefined;
|
|
630
|
+
application_protocol: string | undefined;
|
|
631
|
+
};
|
|
632
|
+
health: {
|
|
633
|
+
is_valid: boolean | undefined;
|
|
634
|
+
warning_count: number;
|
|
635
|
+
high_warning_count: number;
|
|
636
|
+
complexity: {
|
|
637
|
+
body_count: number;
|
|
638
|
+
face_count: number | undefined;
|
|
639
|
+
edge_count: number | undefined;
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
pmi: {
|
|
643
|
+
has_pmi: boolean;
|
|
644
|
+
has_gdt: boolean;
|
|
645
|
+
has_dimensions: boolean;
|
|
646
|
+
semantic_status: "unknown" | "not_detected" | "keyword_detected";
|
|
647
|
+
tolerance_entity_count: number;
|
|
648
|
+
};
|
|
649
|
+
topology_summary: {
|
|
650
|
+
faces: {
|
|
651
|
+
total: number | undefined;
|
|
652
|
+
};
|
|
653
|
+
edges: {
|
|
654
|
+
total: number;
|
|
655
|
+
by_curve_type: Record<string, number>;
|
|
656
|
+
by_length_bucket: Record<"medium" | "tiny" | "small" | "large" | "xlarge", number>;
|
|
657
|
+
length_range: {
|
|
658
|
+
min: number;
|
|
659
|
+
max: number;
|
|
660
|
+
};
|
|
661
|
+
} | undefined;
|
|
662
|
+
};
|
|
663
|
+
geometry_extremes: {
|
|
664
|
+
edges_length_lt_1_mm: number;
|
|
665
|
+
min_edge_length: number;
|
|
666
|
+
};
|
|
667
|
+
warnings: import("../types/schema.js").Warning[];
|
|
668
|
+
limitations: import("../types/schema.js").Limitation[];
|
|
669
|
+
}>>;
|
|
670
|
+
export declare function handleFindStepFaces(filePath: string, query: Record<string, unknown> | undefined): Promise<import("./shared.js").ToolResponse<StepQueryResponse<Record<string, unknown>>>>;
|
|
671
|
+
export declare function handleFindStepEdges(filePath: string, query: Record<string, unknown> | undefined): Promise<import("./shared.js").ToolResponse<StepQueryResponse<Record<string, unknown>>>>;
|
|
672
|
+
export declare function handleGetStepEntities(filePath: string, query: Record<string, unknown> | undefined): Promise<import("./shared.js").ToolResponse<StepQueryResponse<Record<string, unknown>>>>;
|
|
673
|
+
export declare function handleCompareStepFiles(fileA: string, fileB: string): Promise<import("./shared.js").ToolResponse<{
|
|
674
|
+
schema_version: "0.4";
|
|
675
|
+
files: {
|
|
676
|
+
a: string;
|
|
677
|
+
b: string;
|
|
678
|
+
};
|
|
679
|
+
deltas: {
|
|
680
|
+
dimensions: {
|
|
681
|
+
width: number;
|
|
682
|
+
height: number;
|
|
683
|
+
depth: number;
|
|
684
|
+
};
|
|
685
|
+
volume: number;
|
|
686
|
+
surfaceArea: number;
|
|
687
|
+
bodyCount: number;
|
|
688
|
+
faceCount: number | undefined;
|
|
689
|
+
edgeCount: number | undefined;
|
|
690
|
+
};
|
|
691
|
+
exchange: {
|
|
692
|
+
schemaChanged: boolean;
|
|
693
|
+
productNamesA: string[];
|
|
694
|
+
productNamesB: string[];
|
|
695
|
+
};
|
|
696
|
+
warnings: import("../types/schema.js").Warning[];
|
|
697
|
+
limitations: import("../types/schema.js").Limitation[];
|
|
698
|
+
providers: {
|
|
699
|
+
a: import("../types/schema.js").ProviderInfo[];
|
|
700
|
+
b: import("../types/schema.js").ProviderInfo[];
|
|
701
|
+
};
|
|
702
|
+
}>>;
|
|
703
|
+
export declare function handleQueryStepPmi(filePath: string, query: Record<string, unknown> | undefined): Promise<import("./shared.js").ToolResponse<StepQueryResponse<Record<string, unknown>>>>;
|
|
704
|
+
export declare function adaptFindStepFaces(query: Partial<PublicFindStepFacesInput> | undefined): QueryStepFacesInput;
|
|
705
|
+
export declare function adaptFindStepEdges(query: Partial<PublicFindStepEdgesInput> | undefined): QueryStepEdgesInput;
|
|
706
|
+
export declare function adaptPmiQuery(query: Partial<PublicQueryStepPmiInput> | undefined): QueryStepPmiInput;
|
|
707
|
+
type InputFromShape<T extends Record<string, z.ZodType>> = {
|
|
708
|
+
[K in keyof T]: z.infer<T[K]>;
|
|
709
|
+
};
|
|
710
|
+
export type QueryStepFacesInput = InputFromShape<typeof internalFaceQuerySchema>;
|
|
711
|
+
export type QueryStepEdgesInput = InputFromShape<typeof internalEdgeQuerySchema>;
|
|
712
|
+
export type QueryStepPmiInput = InputFromShape<typeof internalPmiQuerySchema>;
|
|
713
|
+
type PublicFindStepFacesInput = InputFromShape<typeof findStepFacesSchema>;
|
|
714
|
+
type PublicFindStepEdgesInput = InputFromShape<typeof findStepEdgesSchema>;
|
|
715
|
+
export type PublicGetStepEntitiesInput = InputFromShape<typeof getStepEntitiesSchema>;
|
|
716
|
+
type PublicQueryStepPmiInput = InputFromShape<typeof pmiQuerySchema>;
|
|
717
|
+
export interface StepQueryUnits {
|
|
718
|
+
length: 'mm';
|
|
719
|
+
area: 'mm^2';
|
|
720
|
+
volume: 'mm^3';
|
|
721
|
+
angle: 'deg';
|
|
722
|
+
}
|
|
723
|
+
export interface StepQueryCoordinateSystem {
|
|
724
|
+
origin: 'STEP model origin';
|
|
725
|
+
axes: 'model coordinates';
|
|
726
|
+
handedness: 'right';
|
|
727
|
+
}
|
|
728
|
+
export interface StepQueryPagination {
|
|
729
|
+
limit: number;
|
|
730
|
+
offset: number;
|
|
731
|
+
returned: number;
|
|
732
|
+
total_matched: number;
|
|
733
|
+
has_more: boolean;
|
|
734
|
+
}
|
|
735
|
+
export interface StepQueryGroup {
|
|
736
|
+
id: string;
|
|
737
|
+
key: Record<string, unknown>;
|
|
738
|
+
entity_count: number;
|
|
739
|
+
sample_entity_ids: string[];
|
|
740
|
+
sample_entity_limit: number;
|
|
741
|
+
sample_is_complete: boolean;
|
|
742
|
+
summary: Record<string, unknown>;
|
|
743
|
+
}
|
|
744
|
+
export interface StepQueryResponse<TEntity extends Record<string, unknown>> {
|
|
745
|
+
schema_version: typeof CAD_RESPONSE_SCHEMA_VERSION;
|
|
746
|
+
file_path: string;
|
|
747
|
+
units: StepQueryUnits;
|
|
748
|
+
coordinate_system: StepQueryCoordinateSystem;
|
|
749
|
+
query: Record<string, unknown>;
|
|
750
|
+
statistics: Record<string, unknown>;
|
|
751
|
+
pagination: StepQueryPagination;
|
|
752
|
+
entities: TEntity[];
|
|
753
|
+
groups: StepQueryGroup[];
|
|
754
|
+
warnings: unknown[];
|
|
755
|
+
limitations: unknown[];
|
|
756
|
+
}
|
|
757
|
+
export {};
|
|
758
|
+
//# sourceMappingURL=step-tools.d.ts.map
|