@andrebuzeli/git-mcp 2.47.2 → 2.48.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.
@@ -0,0 +1,415 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Tool: git-workflow
4
+ *
5
+ * DESCRIÇÃO:
6
+ * Automação completa de workflows de desenvolvimento para programadores individuais autônomos
7
+ *
8
+ * FUNCIONALIDADES:
9
+ * - Setup inicial automatizado de projetos
10
+ * - Workflows diários de desenvolvimento
11
+ * - Gerenciamento de features automatizado
12
+ * - Processos de release completos
13
+ * - Limpeza automática de repositórios
14
+ * - Templates para diferentes tipos de projeto
15
+ *
16
+ * USO:
17
+ * - Automação de todo o ciclo de desenvolvimento
18
+ * - Setup consistente de novos projetos
19
+ * - Workflows padronizados
20
+ * - Eliminação de tarefas manuais repetitivas
21
+ *
22
+ * OTIMIZADO PARA AI AGENTS:
23
+ * - Interface simples e intuitiva
24
+ * - Auto-detecção de contexto
25
+ * - Validação automática
26
+ * - Error handling robusto
27
+ * - Workflows em uma única chamada
28
+ */
29
+ declare const GitWorkflowInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
30
+ action: z.ZodLiteral<"setup-project">;
31
+ repo: z.ZodString;
32
+ provider: z.ZodEnum<["gitea", "github"]>;
33
+ projectPath: z.ZodString;
34
+ template: z.ZodDefault<z.ZodOptional<z.ZodEnum<["node-api", "react-app", "python-package", "go-service", "rust-binary"]>>>;
35
+ platforms: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["npm", "github", "docker", "pypi"]>, "many">>>;
36
+ autoConfigure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
37
+ createRemote: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
38
+ initGit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ provider: "gitea" | "github";
41
+ repo: string;
42
+ action: "setup-project";
43
+ projectPath: string;
44
+ createRemote: boolean;
45
+ platforms: ("github" | "npm" | "docker" | "pypi")[];
46
+ template: "node-api" | "react-app" | "python-package" | "go-service" | "rust-binary";
47
+ autoConfigure: boolean;
48
+ initGit: boolean;
49
+ }, {
50
+ provider: "gitea" | "github";
51
+ repo: string;
52
+ action: "setup-project";
53
+ projectPath: string;
54
+ createRemote?: boolean | undefined;
55
+ platforms?: ("github" | "npm" | "docker" | "pypi")[] | undefined;
56
+ template?: "node-api" | "react-app" | "python-package" | "go-service" | "rust-binary" | undefined;
57
+ autoConfigure?: boolean | undefined;
58
+ initGit?: boolean | undefined;
59
+ }>, z.ZodObject<{
60
+ action: z.ZodLiteral<"daily-dev">;
61
+ projectPath: z.ZodString;
62
+ autoCommit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
63
+ autoPush: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
64
+ createBackup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
65
+ runTests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
66
+ checkLint: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ action: "daily-dev";
69
+ projectPath: string;
70
+ autoPush: boolean;
71
+ createBackup: boolean;
72
+ runTests: boolean;
73
+ autoCommit: boolean;
74
+ checkLint: boolean;
75
+ }, {
76
+ action: "daily-dev";
77
+ projectPath: string;
78
+ autoPush?: boolean | undefined;
79
+ createBackup?: boolean | undefined;
80
+ runTests?: boolean | undefined;
81
+ autoCommit?: boolean | undefined;
82
+ checkLint?: boolean | undefined;
83
+ }>, z.ZodObject<{
84
+ action: z.ZodLiteral<"feature-dev">;
85
+ projectPath: z.ZodString;
86
+ featureName: z.ZodString;
87
+ createBranch: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
88
+ baseBranch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
89
+ mergeWhenReady: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
90
+ runTests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
91
+ createPR: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ action: "feature-dev";
94
+ projectPath: string;
95
+ runTests: boolean;
96
+ createBranch: boolean;
97
+ featureName: string;
98
+ baseBranch: string;
99
+ mergeWhenReady: boolean;
100
+ createPR: boolean;
101
+ }, {
102
+ action: "feature-dev";
103
+ projectPath: string;
104
+ featureName: string;
105
+ runTests?: boolean | undefined;
106
+ createBranch?: boolean | undefined;
107
+ baseBranch?: string | undefined;
108
+ mergeWhenReady?: boolean | undefined;
109
+ createPR?: boolean | undefined;
110
+ }>, z.ZodObject<{
111
+ action: z.ZodLiteral<"release-workflow">;
112
+ projectPath: z.ZodString;
113
+ version: z.ZodOptional<z.ZodString>;
114
+ platforms: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["npm", "github", "docker", "pypi"]>, "many">>>;
115
+ createTag: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
116
+ createRelease: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
117
+ updateChangelog: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
118
+ runTests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ action: "release-workflow";
121
+ projectPath: string;
122
+ platforms: ("github" | "npm" | "docker" | "pypi")[];
123
+ runTests: boolean;
124
+ createTag: boolean;
125
+ createRelease: boolean;
126
+ updateChangelog: boolean;
127
+ version?: string | undefined;
128
+ }, {
129
+ action: "release-workflow";
130
+ projectPath: string;
131
+ version?: string | undefined;
132
+ platforms?: ("github" | "npm" | "docker" | "pypi")[] | undefined;
133
+ runTests?: boolean | undefined;
134
+ createTag?: boolean | undefined;
135
+ createRelease?: boolean | undefined;
136
+ updateChangelog?: boolean | undefined;
137
+ }>, z.ZodObject<{
138
+ action: z.ZodLiteral<"cleanup-workflow">;
139
+ projectPath: z.ZodString;
140
+ removeMergedBranches: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
141
+ removeOldBackups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
142
+ optimizeRepository: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
143
+ daysOld: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ action: "cleanup-workflow";
146
+ projectPath: string;
147
+ removeMergedBranches: boolean;
148
+ removeOldBackups: boolean;
149
+ optimizeRepository: boolean;
150
+ daysOld: number;
151
+ }, {
152
+ action: "cleanup-workflow";
153
+ projectPath: string;
154
+ removeMergedBranches?: boolean | undefined;
155
+ removeOldBackups?: boolean | undefined;
156
+ optimizeRepository?: boolean | undefined;
157
+ daysOld?: number | undefined;
158
+ }>]>;
159
+ export type GitWorkflowInput = z.infer<typeof GitWorkflowInputSchema>;
160
+ declare const GitWorkflowResultSchema: z.ZodObject<{
161
+ success: z.ZodBoolean;
162
+ action: z.ZodString;
163
+ message: z.ZodString;
164
+ data: z.ZodOptional<z.ZodAny>;
165
+ error: z.ZodOptional<z.ZodString>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ message: string;
168
+ action: string;
169
+ success: boolean;
170
+ error?: string | undefined;
171
+ data?: any;
172
+ }, {
173
+ message: string;
174
+ action: string;
175
+ success: boolean;
176
+ error?: string | undefined;
177
+ data?: any;
178
+ }>;
179
+ export type GitWorkflowResult = z.infer<typeof GitWorkflowResultSchema>;
180
+ export declare const gitWorkflowTool: {
181
+ name: string;
182
+ description: string;
183
+ inputSchema: {
184
+ type: string;
185
+ properties: {
186
+ action: {
187
+ type: string;
188
+ enum: string[];
189
+ description: string;
190
+ };
191
+ repo: {
192
+ type: string;
193
+ description: string;
194
+ };
195
+ provider: {
196
+ type: string;
197
+ enum: string[];
198
+ description: string;
199
+ };
200
+ projectPath: {
201
+ type: string;
202
+ description: string;
203
+ };
204
+ template: {
205
+ type: string;
206
+ enum: string[];
207
+ description: string;
208
+ default: string;
209
+ };
210
+ platforms: {
211
+ type: string;
212
+ items: {
213
+ type: string;
214
+ enum: string[];
215
+ };
216
+ description: string;
217
+ default: string[];
218
+ };
219
+ autoConfigure: {
220
+ type: string;
221
+ description: string;
222
+ default: boolean;
223
+ };
224
+ createRemote: {
225
+ type: string;
226
+ description: string;
227
+ default: boolean;
228
+ };
229
+ initGit: {
230
+ type: string;
231
+ description: string;
232
+ default: boolean;
233
+ };
234
+ autoCommit: {
235
+ type: string;
236
+ description: string;
237
+ default: boolean;
238
+ };
239
+ autoPush: {
240
+ type: string;
241
+ description: string;
242
+ default: boolean;
243
+ };
244
+ createBackup: {
245
+ type: string;
246
+ description: string;
247
+ default: boolean;
248
+ };
249
+ runTests: {
250
+ type: string;
251
+ description: string;
252
+ default: boolean;
253
+ };
254
+ checkLint: {
255
+ type: string;
256
+ description: string;
257
+ default: boolean;
258
+ };
259
+ featureName: {
260
+ type: string;
261
+ description: string;
262
+ };
263
+ createBranch: {
264
+ type: string;
265
+ description: string;
266
+ default: boolean;
267
+ };
268
+ baseBranch: {
269
+ type: string;
270
+ description: string;
271
+ default: string;
272
+ };
273
+ mergeWhenReady: {
274
+ type: string;
275
+ description: string;
276
+ default: boolean;
277
+ };
278
+ createPR: {
279
+ type: string;
280
+ description: string;
281
+ default: boolean;
282
+ };
283
+ version: {
284
+ type: string;
285
+ description: string;
286
+ };
287
+ createTag: {
288
+ type: string;
289
+ description: string;
290
+ default: boolean;
291
+ };
292
+ createRelease: {
293
+ type: string;
294
+ description: string;
295
+ default: boolean;
296
+ };
297
+ updateChangelog: {
298
+ type: string;
299
+ description: string;
300
+ default: boolean;
301
+ };
302
+ removeMergedBranches: {
303
+ type: string;
304
+ description: string;
305
+ default: boolean;
306
+ };
307
+ removeOldBackups: {
308
+ type: string;
309
+ description: string;
310
+ default: boolean;
311
+ };
312
+ optimizeRepository: {
313
+ type: string;
314
+ description: string;
315
+ default: boolean;
316
+ };
317
+ daysOld: {
318
+ type: string;
319
+ description: string;
320
+ default: number;
321
+ };
322
+ };
323
+ required: string[];
324
+ };
325
+ handler(input: GitWorkflowInput): Promise<GitWorkflowResult>;
326
+ handleSetupProject(params: GitWorkflowInput & {
327
+ action: "setup-project";
328
+ }): Promise<GitWorkflowResult>;
329
+ handleDailyDev(params: GitWorkflowInput & {
330
+ action: "daily-dev";
331
+ }): Promise<GitWorkflowResult>;
332
+ handleFeatureDev(params: GitWorkflowInput & {
333
+ action: "feature-dev";
334
+ }): Promise<GitWorkflowResult>;
335
+ handleReleaseWorkflow(params: GitWorkflowInput & {
336
+ action: "release-workflow";
337
+ }): Promise<GitWorkflowResult>;
338
+ handleCleanupWorkflow(params: GitWorkflowInput & {
339
+ action: "cleanup-workflow";
340
+ }): Promise<GitWorkflowResult>;
341
+ initializeGit(projectPath: string): Promise<{
342
+ success: boolean;
343
+ error?: string;
344
+ }>;
345
+ createRemoteRepository(repo: string, provider: string, projectPath: string): Promise<{
346
+ success: boolean;
347
+ error?: string;
348
+ }>;
349
+ applyTemplate(projectPath: string, template: string): Promise<{
350
+ success: boolean;
351
+ error?: string;
352
+ }>;
353
+ autoConfigureProject(projectPath: string, template: string, platforms: string[]): Promise<{
354
+ success: boolean;
355
+ error?: string;
356
+ }>;
357
+ createBackup(projectPath: string): Promise<{
358
+ success: boolean;
359
+ error?: string;
360
+ }>;
361
+ runTests(projectPath: string): Promise<{
362
+ success: boolean;
363
+ error?: string;
364
+ }>;
365
+ checkLinting(projectPath: string): Promise<{
366
+ success: boolean;
367
+ error?: string;
368
+ }>;
369
+ smartCommit(projectPath: string): Promise<{
370
+ success: boolean;
371
+ error?: string;
372
+ }>;
373
+ pushChanges(projectPath: string): Promise<{
374
+ success: boolean;
375
+ error?: string;
376
+ }>;
377
+ createFeatureBranch(projectPath: string, featureName: string, baseBranch: string): Promise<{
378
+ success: boolean;
379
+ error?: string;
380
+ }>;
381
+ mergeFeature(projectPath: string, featureName: string, baseBranch: string): Promise<{
382
+ success: boolean;
383
+ error?: string;
384
+ }>;
385
+ createPullRequest(projectPath: string, featureName: string): Promise<{
386
+ success: boolean;
387
+ error?: string;
388
+ }>;
389
+ updateChangelog(projectPath: string, version?: string): Promise<{
390
+ success: boolean;
391
+ error?: string;
392
+ }>;
393
+ createReleaseTag(projectPath: string, version: string): Promise<{
394
+ success: boolean;
395
+ error?: string;
396
+ }>;
397
+ createRelease(projectPath: string, version: string, platforms: string[]): Promise<{
398
+ success: boolean;
399
+ error?: string;
400
+ }>;
401
+ removeMergedBranches(projectPath: string): Promise<{
402
+ success: boolean;
403
+ error?: string;
404
+ }>;
405
+ removeOldBackups(projectPath: string, daysOld: number): Promise<{
406
+ success: boolean;
407
+ error?: string;
408
+ }>;
409
+ optimizeRepository(projectPath: string): Promise<{
410
+ success: boolean;
411
+ error?: string;
412
+ }>;
413
+ };
414
+ export {};
415
+ //# sourceMappingURL=git-workflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-workflow.d.ts","sourceRoot":"","sources":["../../src/tools/git-workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0D1B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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