@andrebuzeli/git-mcp 3.0.0 → 3.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.
Files changed (40) hide show
  1. package/README.md +329 -356
  2. package/dist/server.d.ts.map +1 -1
  3. package/dist/server.js +78 -55
  4. package/dist/server.js.map +1 -1
  5. package/dist/tools/git-commits.d.ts +2 -2
  6. package/dist/tools/git-config.d.ts +2 -2
  7. package/dist/tools/git-files.d.ts +2 -2
  8. package/dist/tools/git-issues.d.ts +6 -6
  9. package/dist/tools/git-packages.d.ts +2 -2
  10. package/dist/tools/git-projects.d.ts +57 -142
  11. package/dist/tools/git-projects.d.ts.map +1 -1
  12. package/dist/tools/git-projects.js +283 -281
  13. package/dist/tools/git-projects.js.map +1 -1
  14. package/dist/tools/git-publish.d.ts +327 -0
  15. package/dist/tools/git-publish.d.ts.map +1 -0
  16. package/dist/tools/git-publish.js +632 -0
  17. package/dist/tools/git-publish.js.map +1 -0
  18. package/dist/tools/git-pulls.d.ts +8 -8
  19. package/dist/tools/git-releases.d.ts +2 -2
  20. package/dist/tools/git-remote.d.ts +2 -2
  21. package/dist/tools/git-repositories.d.ts +4 -4
  22. package/dist/tools/git-sync.d.ts +4 -4
  23. package/dist/tools/git-tags.d.ts +2 -2
  24. package/dist/tools/git-update-project.d.ts +159 -4
  25. package/dist/tools/git-update-project.d.ts.map +1 -1
  26. package/dist/tools/git-update-project.js +349 -7
  27. package/dist/tools/git-update-project.js.map +1 -1
  28. package/dist/tools/git-workflow.d.ts +252 -230
  29. package/dist/tools/git-workflow.d.ts.map +1 -1
  30. package/dist/tools/git-workflow.js +479 -452
  31. package/dist/tools/git-workflow.js.map +1 -1
  32. package/package.json +13 -4
  33. package/dist/tools/git-undo.d.ts +0 -268
  34. package/dist/tools/git-undo.d.ts.map +0 -1
  35. package/dist/tools/git-undo.js +0 -516
  36. package/dist/tools/git-undo.js.map +0 -1
  37. package/dist/tools/git-versioning.d.ts +0 -286
  38. package/dist/tools/git-versioning.d.ts.map +0 -1
  39. package/dist/tools/git-versioning.js +0 -483
  40. package/dist/tools/git-versioning.js.map +0 -1
@@ -1,286 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Tool: git-versioning
4
- *
5
- * FERRAMENTA UNIFICADA PARA VERSIONAMENTO
6
- * Combina as funcionalidades de:
7
- * - git-branches (gerenciamento de branches)
8
- * - git-releases (releases e tags)
9
- * - git-tags (versionamento)
10
- *
11
- * DESIGNED FOR: Programador individual autônomo
12
- * PHILOSOPHY: Versionamento simplificado e inteligente
13
- */
14
- declare const GitVersioningInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
15
- action: z.ZodLiteral<"create-branch">;
16
- projectPath: z.ZodString;
17
- name: z.ZodString;
18
- from: z.ZodDefault<z.ZodOptional<z.ZodString>>;
19
- }, "strip", z.ZodTypeAny, {
20
- name: string;
21
- action: "create-branch";
22
- projectPath: string;
23
- from: string;
24
- }, {
25
- name: string;
26
- action: "create-branch";
27
- projectPath: string;
28
- from?: string | undefined;
29
- }>, z.ZodObject<{
30
- action: z.ZodLiteral<"list-branches">;
31
- projectPath: z.ZodString;
32
- }, "strip", z.ZodTypeAny, {
33
- action: "list-branches";
34
- projectPath: string;
35
- }, {
36
- action: "list-branches";
37
- projectPath: string;
38
- }>, z.ZodObject<{
39
- action: z.ZodLiteral<"switch-branch">;
40
- projectPath: z.ZodString;
41
- name: z.ZodString;
42
- }, "strip", z.ZodTypeAny, {
43
- name: string;
44
- action: "switch-branch";
45
- projectPath: string;
46
- }, {
47
- name: string;
48
- action: "switch-branch";
49
- projectPath: string;
50
- }>, z.ZodObject<{
51
- action: z.ZodLiteral<"delete-branch">;
52
- projectPath: z.ZodString;
53
- name: z.ZodString;
54
- force: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
55
- }, "strip", z.ZodTypeAny, {
56
- name: string;
57
- action: "delete-branch";
58
- force: boolean;
59
- projectPath: string;
60
- }, {
61
- name: string;
62
- action: "delete-branch";
63
- projectPath: string;
64
- force?: boolean | undefined;
65
- }>, z.ZodObject<{
66
- action: z.ZodLiteral<"create-release">;
67
- repo: z.ZodString;
68
- provider: z.ZodEnum<["gitea", "github"]>;
69
- tag: z.ZodString;
70
- name: z.ZodString;
71
- description: z.ZodOptional<z.ZodString>;
72
- draft: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
73
- }, "strip", z.ZodTypeAny, {
74
- provider: "gitea" | "github";
75
- name: string;
76
- draft: boolean;
77
- repo: string;
78
- action: "create-release";
79
- tag: string;
80
- description?: string | undefined;
81
- }, {
82
- provider: "gitea" | "github";
83
- name: string;
84
- repo: string;
85
- action: "create-release";
86
- tag: string;
87
- description?: string | undefined;
88
- draft?: boolean | undefined;
89
- }>, z.ZodObject<{
90
- action: z.ZodLiteral<"list-releases">;
91
- repo: z.ZodString;
92
- provider: z.ZodEnum<["gitea", "github"]>;
93
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
94
- }, "strip", z.ZodTypeAny, {
95
- provider: "gitea" | "github";
96
- repo: string;
97
- limit: number;
98
- action: "list-releases";
99
- }, {
100
- provider: "gitea" | "github";
101
- repo: string;
102
- action: "list-releases";
103
- limit?: number | undefined;
104
- }>, z.ZodObject<{
105
- action: z.ZodLiteral<"create-tag">;
106
- projectPath: z.ZodString;
107
- name: z.ZodString;
108
- message: z.ZodOptional<z.ZodString>;
109
- }, "strip", z.ZodTypeAny, {
110
- name: string;
111
- action: "create-tag";
112
- projectPath: string;
113
- message?: string | undefined;
114
- }, {
115
- name: string;
116
- action: "create-tag";
117
- projectPath: string;
118
- message?: string | undefined;
119
- }>, z.ZodObject<{
120
- action: z.ZodLiteral<"list-tags">;
121
- projectPath: z.ZodString;
122
- }, "strip", z.ZodTypeAny, {
123
- action: "list-tags";
124
- projectPath: string;
125
- }, {
126
- action: "list-tags";
127
- projectPath: string;
128
- }>, z.ZodObject<{
129
- action: z.ZodLiteral<"bump-version">;
130
- projectPath: z.ZodString;
131
- type: z.ZodDefault<z.ZodEnum<["patch", "minor", "major"]>>;
132
- createTag: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
133
- createRelease: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
134
- provider: z.ZodOptional<z.ZodEnum<["gitea", "github"]>>;
135
- }, "strip", z.ZodTypeAny, {
136
- type: "patch" | "minor" | "major";
137
- action: "bump-version";
138
- projectPath: string;
139
- createTag: boolean;
140
- createRelease: boolean;
141
- provider?: "gitea" | "github" | undefined;
142
- }, {
143
- action: "bump-version";
144
- projectPath: string;
145
- provider?: "gitea" | "github" | undefined;
146
- type?: "patch" | "minor" | "major" | undefined;
147
- createTag?: boolean | undefined;
148
- createRelease?: boolean | undefined;
149
- }>]>;
150
- export type GitVersioningInput = z.infer<typeof GitVersioningInputSchema>;
151
- declare const GitVersioningResultSchema: z.ZodObject<{
152
- success: z.ZodBoolean;
153
- action: z.ZodString;
154
- message: z.ZodString;
155
- data: z.ZodOptional<z.ZodAny>;
156
- error: z.ZodOptional<z.ZodString>;
157
- recoverable: z.ZodOptional<z.ZodBoolean>;
158
- suggestion: z.ZodOptional<z.ZodString>;
159
- }, "strip", z.ZodTypeAny, {
160
- message: string;
161
- action: string;
162
- success: boolean;
163
- error?: string | undefined;
164
- data?: any;
165
- recoverable?: boolean | undefined;
166
- suggestion?: string | undefined;
167
- }, {
168
- message: string;
169
- action: string;
170
- success: boolean;
171
- error?: string | undefined;
172
- data?: any;
173
- recoverable?: boolean | undefined;
174
- suggestion?: string | undefined;
175
- }>;
176
- export type GitVersioningResult = z.infer<typeof GitVersioningResultSchema>;
177
- export declare const gitVersioningTool: {
178
- name: string;
179
- description: string;
180
- inputSchema: {
181
- type: string;
182
- properties: {
183
- action: {
184
- type: string;
185
- enum: string[];
186
- description: string;
187
- };
188
- projectPath: {
189
- type: string;
190
- description: string;
191
- };
192
- repo: {
193
- type: string;
194
- description: string;
195
- };
196
- provider: {
197
- type: string;
198
- enum: string[];
199
- description: string;
200
- };
201
- name: {
202
- type: string;
203
- description: string;
204
- };
205
- from: {
206
- type: string;
207
- description: string;
208
- default: string;
209
- };
210
- tag: {
211
- type: string;
212
- description: string;
213
- };
214
- message: {
215
- type: string;
216
- description: string;
217
- };
218
- description: {
219
- type: string;
220
- description: string;
221
- };
222
- type: {
223
- type: string;
224
- enum: string[];
225
- description: string;
226
- default: string;
227
- };
228
- draft: {
229
- type: string;
230
- description: string;
231
- default: boolean;
232
- };
233
- force: {
234
- type: string;
235
- description: string;
236
- default: boolean;
237
- };
238
- createTag: {
239
- type: string;
240
- description: string;
241
- default: boolean;
242
- };
243
- createRelease: {
244
- type: string;
245
- description: string;
246
- default: boolean;
247
- };
248
- limit: {
249
- type: string;
250
- description: string;
251
- default: number;
252
- };
253
- };
254
- required: string[];
255
- };
256
- handler(input: GitVersioningInput): Promise<GitVersioningResult>;
257
- handleCreateBranch(params: GitVersioningInput & {
258
- action: "create-branch";
259
- }): Promise<GitVersioningResult>;
260
- handleListBranches(params: GitVersioningInput & {
261
- action: "list-branches";
262
- }): Promise<GitVersioningResult>;
263
- handleSwitchBranch(params: GitVersioningInput & {
264
- action: "switch-branch";
265
- }): Promise<GitVersioningResult>;
266
- handleDeleteBranch(params: GitVersioningInput & {
267
- action: "delete-branch";
268
- }): Promise<GitVersioningResult>;
269
- handleCreateRelease(params: GitVersioningInput & {
270
- action: "create-release";
271
- }): Promise<GitVersioningResult>;
272
- handleListReleases(params: GitVersioningInput & {
273
- action: "list-releases";
274
- }): Promise<GitVersioningResult>;
275
- handleCreateTag(params: GitVersioningInput & {
276
- action: "create-tag";
277
- }): Promise<GitVersioningResult>;
278
- handleListTags(params: GitVersioningInput & {
279
- action: "list-tags";
280
- }): Promise<GitVersioningResult>;
281
- handleBumpVersion(params: GitVersioningInput & {
282
- action: "bump-version";
283
- }): Promise<GitVersioningResult>;
284
- };
285
- export {};
286
- //# sourceMappingURL=git-versioning.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-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