solidworks-mcp-server 3.0.0 → 3.0.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.
@@ -0,0 +1,149 @@
1
+ /**
2
+ * Native Macro Recording for SolidWorks
3
+ * Uses SolidWorks' built-in macro recording API for proper VBA initialization
4
+ */
5
+ import { z } from 'zod';
6
+ import { SolidWorksAPI } from '../solidworks/api.js';
7
+ /**
8
+ * Native macro recording tools that use SolidWorks' internal VBA engine
9
+ */
10
+ export declare const nativeMacroTools: ({
11
+ name: string;
12
+ description: string;
13
+ inputSchema: z.ZodObject<{
14
+ openInEditor: z.ZodDefault<z.ZodBoolean>;
15
+ runMacro: z.ZodDefault<z.ZodBoolean>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ openInEditor: boolean;
18
+ runMacro: boolean;
19
+ }, {
20
+ openInEditor?: boolean | undefined;
21
+ runMacro?: boolean | undefined;
22
+ }>;
23
+ handler: (args: any, swApi: SolidWorksAPI) => string | {
24
+ success: boolean;
25
+ message: string;
26
+ macroPath: any;
27
+ openedInEditor: any;
28
+ executed: any;
29
+ };
30
+ } | {
31
+ name: string;
32
+ description: string;
33
+ inputSchema: z.ZodObject<{
34
+ action: z.ZodEnum<["pause", "resume"]>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ action: "pause" | "resume";
37
+ }, {
38
+ action: "pause" | "resume";
39
+ }>;
40
+ handler: (args: any, swApi: SolidWorksAPI) => string | {
41
+ success: boolean;
42
+ message: string;
43
+ status: string;
44
+ };
45
+ } | {
46
+ name: string;
47
+ description: string;
48
+ inputSchema: z.ZodObject<{
49
+ macroPath: z.ZodString;
50
+ }, "strip", z.ZodTypeAny, {
51
+ macroPath: string;
52
+ }, {
53
+ macroPath: string;
54
+ }>;
55
+ handler: (args: any, swApi: SolidWorksAPI) => string | {
56
+ success: boolean;
57
+ message: string;
58
+ macroPath: any;
59
+ };
60
+ } | {
61
+ name: string;
62
+ description: string;
63
+ inputSchema: z.ZodObject<{
64
+ vbaCode: z.ZodString;
65
+ outputPath: z.ZodString;
66
+ macroName: z.ZodString;
67
+ addInitialization: z.ZodDefault<z.ZodBoolean>;
68
+ addReferences: z.ZodDefault<z.ZodBoolean>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ outputPath: string;
71
+ macroName: string;
72
+ vbaCode: string;
73
+ addInitialization: boolean;
74
+ addReferences: boolean;
75
+ }, {
76
+ outputPath: string;
77
+ macroName: string;
78
+ vbaCode: string;
79
+ addInitialization?: boolean | undefined;
80
+ addReferences?: boolean | undefined;
81
+ }>;
82
+ handler: (args: any, swApi: SolidWorksAPI) => string | {
83
+ success: boolean;
84
+ message: string;
85
+ outputPath: any;
86
+ macroName: any;
87
+ linesOfCode: any;
88
+ referencesAdded: any;
89
+ initializationAdded: any;
90
+ };
91
+ } | {
92
+ name: string;
93
+ description: string;
94
+ inputSchema: z.ZodObject<{
95
+ macros: z.ZodArray<z.ZodObject<{
96
+ path: z.ZodString;
97
+ module: z.ZodDefault<z.ZodString>;
98
+ procedure: z.ZodDefault<z.ZodString>;
99
+ arguments: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
100
+ continueOnError: z.ZodDefault<z.ZodBoolean>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ path: string;
103
+ module: string;
104
+ procedure: string;
105
+ continueOnError: boolean;
106
+ arguments?: any[] | undefined;
107
+ }, {
108
+ path: string;
109
+ arguments?: any[] | undefined;
110
+ module?: string | undefined;
111
+ procedure?: string | undefined;
112
+ continueOnError?: boolean | undefined;
113
+ }>, "many">;
114
+ delayBetween: z.ZodDefault<z.ZodNumber>;
115
+ stopOnError: z.ZodDefault<z.ZodBoolean>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ macros: {
118
+ path: string;
119
+ module: string;
120
+ procedure: string;
121
+ continueOnError: boolean;
122
+ arguments?: any[] | undefined;
123
+ }[];
124
+ delayBetween: number;
125
+ stopOnError: boolean;
126
+ }, {
127
+ macros: {
128
+ path: string;
129
+ arguments?: any[] | undefined;
130
+ module?: string | undefined;
131
+ procedure?: string | undefined;
132
+ continueOnError?: boolean | undefined;
133
+ }[];
134
+ delayBetween?: number | undefined;
135
+ stopOnError?: boolean | undefined;
136
+ }>;
137
+ handler: (args: any, swApi: SolidWorksAPI) => Promise<string | {
138
+ success: boolean;
139
+ message: string;
140
+ results: {
141
+ total: any;
142
+ successful: number;
143
+ failed: number;
144
+ skipped: number;
145
+ details: any[];
146
+ };
147
+ }>;
148
+ })[];
149
+ //# sourceMappingURL=native-macro.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-macro.d.ts","sourceRoot":"","sources":["../../src/tools/native-macro.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;oBA4ET,GAAG,SAAS,aAAa;;;;;;;;;;;;;;;;;oBA6CzB,GAAG,SAAS,aAAa;;;;;;;;;;;;;;;oBA+FzB,GAAG,SAAS,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAmHzB,GAAG,SAAS,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAuInB,GAAG,SAAS,aAAa;;;;;;;;qBAU1B,GAAG,EAAE;;;IAmE7B,CAAC"}