@andrebuzeli/git-mcp 2.28.0 → 2.28.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.
Files changed (154) hide show
  1. package/dist/client.d.ts +306 -306
  2. package/dist/client.js +298 -298
  3. package/dist/config.d.ts +310 -310
  4. package/dist/config.js +392 -392
  5. package/dist/index.d.ts +22 -22
  6. package/dist/index.js +89 -89
  7. package/dist/providers/base-provider.d.ts +160 -160
  8. package/dist/providers/base-provider.js +274 -274
  9. package/dist/providers/error-handler.d.ts +50 -50
  10. package/dist/providers/error-handler.js +175 -175
  11. package/dist/providers/gitea-provider.d.ts +97 -97
  12. package/dist/providers/gitea-provider.d.ts.map +1 -1
  13. package/dist/providers/gitea-provider.js +1015 -1001
  14. package/dist/providers/gitea-provider.js.map +1 -1
  15. package/dist/providers/github-provider.d.ts +104 -104
  16. package/dist/providers/github-provider.d.ts.map +1 -1
  17. package/dist/providers/github-provider.js +1248 -1234
  18. package/dist/providers/github-provider.js.map +1 -1
  19. package/dist/providers/index.d.ts +12 -12
  20. package/dist/providers/index.js +40 -40
  21. package/dist/providers/provider-factory.d.ts +74 -74
  22. package/dist/providers/provider-factory.d.ts.map +1 -1
  23. package/dist/providers/provider-factory.js +318 -311
  24. package/dist/providers/provider-factory.js.map +1 -1
  25. package/dist/providers/types.d.ts +318 -318
  26. package/dist/providers/types.js +6 -6
  27. package/dist/server.d.ts +76 -76
  28. package/dist/server.js +306 -306
  29. package/dist/tools/git-archive.d.ts +165 -165
  30. package/dist/tools/git-archive.js +233 -233
  31. package/dist/tools/git-branches.d.ts +430 -430
  32. package/dist/tools/git-branches.js +627 -627
  33. package/dist/tools/git-commits.d.ts +485 -485
  34. package/dist/tools/git-commits.js +735 -735
  35. package/dist/tools/git-commits.js.map +1 -1
  36. package/dist/tools/git-config.d.ts +140 -140
  37. package/dist/tools/git-config.js +268 -268
  38. package/dist/tools/git-files.d.ts +486 -486
  39. package/dist/tools/git-files.js +607 -607
  40. package/dist/tools/git-files.js.map +1 -1
  41. package/dist/tools/git-issues.d.ts +574 -571
  42. package/dist/tools/git-issues.d.ts.map +1 -1
  43. package/dist/tools/git-issues.js +741 -740
  44. package/dist/tools/git-issues.js.map +1 -1
  45. package/dist/tools/git-pulls.d.ts +697 -694
  46. package/dist/tools/git-pulls.d.ts.map +1 -1
  47. package/dist/tools/git-pulls.js +733 -732
  48. package/dist/tools/git-pulls.js.map +1 -1
  49. package/dist/tools/git-releases.d.ts +490 -487
  50. package/dist/tools/git-releases.d.ts.map +1 -1
  51. package/dist/tools/git-releases.js +558 -557
  52. package/dist/tools/git-releases.js.map +1 -1
  53. package/dist/tools/git-remote.d.ts +138 -138
  54. package/dist/tools/git-remote.js +274 -274
  55. package/dist/tools/git-repositories.d.ts +483 -483
  56. package/dist/tools/git-repositories.js +640 -640
  57. package/dist/tools/git-repositories.js.map +1 -1
  58. package/dist/tools/git-reset.d.ts +130 -130
  59. package/dist/tools/git-reset.js +223 -223
  60. package/dist/tools/git-revert.d.ts +149 -149
  61. package/dist/tools/git-revert.js +198 -198
  62. package/dist/tools/git-stash.d.ts +140 -140
  63. package/dist/tools/git-stash.js +269 -269
  64. package/dist/tools/git-sync.d.ts +178 -178
  65. package/dist/tools/git-sync.js +312 -312
  66. package/dist/tools/git-tags.d.ts +414 -411
  67. package/dist/tools/git-tags.d.ts.map +1 -1
  68. package/dist/tools/git-tags.js +486 -485
  69. package/dist/tools/git-tags.js.map +1 -1
  70. package/dist/tools/git-webhooks.d.ts +473 -470
  71. package/dist/tools/git-webhooks.d.ts.map +1 -1
  72. package/dist/tools/git-webhooks.js +544 -543
  73. package/dist/tools/git-webhooks.js.map +1 -1
  74. package/dist/utils/terminal-controller.d.ts +80 -80
  75. package/dist/utils/terminal-controller.js +345 -345
  76. package/dist/utils/user-detection.d.ts +24 -24
  77. package/dist/utils/user-detection.js +53 -53
  78. package/package.json +2 -2
  79. package/dist/tools/gh-actions.d.ts +0 -253
  80. package/dist/tools/gh-actions.d.ts.map +0 -1
  81. package/dist/tools/gh-actions.js +0 -390
  82. package/dist/tools/gh-actions.js.map +0 -1
  83. package/dist/tools/gh-analytics.d.ts +0 -264
  84. package/dist/tools/gh-analytics.d.ts.map +0 -1
  85. package/dist/tools/gh-analytics.js +0 -402
  86. package/dist/tools/gh-analytics.js.map +0 -1
  87. package/dist/tools/gh-code-review.d.ts +0 -305
  88. package/dist/tools/gh-code-review.d.ts.map +0 -1
  89. package/dist/tools/gh-code-review.js +0 -513
  90. package/dist/tools/gh-code-review.js.map +0 -1
  91. package/dist/tools/gh-codespaces.d.ts +0 -139
  92. package/dist/tools/gh-codespaces.d.ts.map +0 -1
  93. package/dist/tools/gh-codespaces.js +0 -283
  94. package/dist/tools/gh-codespaces.js.map +0 -1
  95. package/dist/tools/gh-deployments.d.ts +0 -301
  96. package/dist/tools/gh-deployments.d.ts.map +0 -1
  97. package/dist/tools/gh-deployments.js +0 -368
  98. package/dist/tools/gh-deployments.js.map +0 -1
  99. package/dist/tools/gh-gists.d.ts +0 -175
  100. package/dist/tools/gh-gists.d.ts.map +0 -1
  101. package/dist/tools/gh-gists.js +0 -322
  102. package/dist/tools/gh-gists.js.map +0 -1
  103. package/dist/tools/gh-projects.d.ts +0 -206
  104. package/dist/tools/gh-projects.d.ts.map +0 -1
  105. package/dist/tools/gh-projects.js +0 -359
  106. package/dist/tools/gh-projects.js.map +0 -1
  107. package/dist/tools/gh-security.d.ts +0 -275
  108. package/dist/tools/gh-security.d.ts.map +0 -1
  109. package/dist/tools/gh-security.js +0 -396
  110. package/dist/tools/gh-security.js.map +0 -1
  111. package/dist/tools/gh-sync.d.ts +0 -214
  112. package/dist/tools/gh-sync.d.ts.map +0 -1
  113. package/dist/tools/gh-sync.js +0 -379
  114. package/dist/tools/gh-sync.js.map +0 -1
  115. package/dist/tools/gh-workflows.d.ts +0 -291
  116. package/dist/tools/gh-workflows.d.ts.map +0 -1
  117. package/dist/tools/gh-workflows.js +0 -433
  118. package/dist/tools/gh-workflows.js.map +0 -1
  119. package/dist/tools/git-bundle.d.ts +0 -172
  120. package/dist/tools/git-bundle.d.ts.map +0 -1
  121. package/dist/tools/git-bundle.js +0 -242
  122. package/dist/tools/git-bundle.js.map +0 -1
  123. package/dist/tools/git-cherry-pick.d.ts +0 -159
  124. package/dist/tools/git-cherry-pick.d.ts.map +0 -1
  125. package/dist/tools/git-cherry-pick.js +0 -225
  126. package/dist/tools/git-cherry-pick.js.map +0 -1
  127. package/dist/tools/git-rebase.d.ts +0 -138
  128. package/dist/tools/git-rebase.d.ts.map +0 -1
  129. package/dist/tools/git-rebase.js +0 -214
  130. package/dist/tools/git-rebase.js.map +0 -1
  131. package/dist/tools/git-submodule.d.ts +0 -153
  132. package/dist/tools/git-submodule.d.ts.map +0 -1
  133. package/dist/tools/git-submodule.js +0 -290
  134. package/dist/tools/git-submodule.js.map +0 -1
  135. package/dist/tools/git-worktree.d.ts +0 -160
  136. package/dist/tools/git-worktree.d.ts.map +0 -1
  137. package/dist/tools/git-worktree.js +0 -270
  138. package/dist/tools/git-worktree.js.map +0 -1
  139. package/dist/tools/repositories.d.ts +0 -406
  140. package/dist/tools/repositories.d.ts.map +0 -1
  141. package/dist/tools/repositories.js +0 -570
  142. package/dist/tools/repositories.js.map +0 -1
  143. package/dist/tools/users.d.ts +0 -373
  144. package/dist/tools/users.d.ts.map +0 -1
  145. package/dist/tools/users.js +0 -500
  146. package/dist/tools/users.js.map +0 -1
  147. package/dist/tools/validator.d.ts +0 -171
  148. package/dist/tools/validator.d.ts.map +0 -1
  149. package/dist/tools/validator.js +0 -195
  150. package/dist/tools/validator.js.map +0 -1
  151. package/dist/tools/version-control.d.ts +0 -137
  152. package/dist/tools/version-control.d.ts.map +0 -1
  153. package/dist/tools/version-control.js +0 -165
  154. package/dist/tools/version-control.js.map +0 -1
@@ -1,150 +1,150 @@
1
- import { z } from 'zod';
2
- /**
3
- * Tool: git-revert
4
- *
5
- * DESCRIÇÃO:
6
- * Gerenciamento de revert Git (GitHub + Gitea) com múltiplas ações
7
- *
8
- * FUNCIONALIDADES:
9
- * - Reverter commit específico
10
- * - Reverter merge commit
11
- * - Reverter range de commits
12
- * - Reverter com mensagem customizada
13
- * - Reverter sem commit automático
14
- *
15
- * USO:
16
- * - Para desfazer commits de forma segura
17
- * - Para reverter mudanças em branches compartilhadas
18
- * - Para criar commits de reversão
19
- * - Para manter histórico limpo
20
- *
21
- * RECOMENDAÇÕES:
22
- * - Use revert em vez de reset para branches compartilhadas
23
- * - Teste reversões em branches locais primeiro
24
- * - Documente motivos da reversão
25
- */
26
- declare const GitRevertInputSchema: z.ZodObject<{
27
- action: z.ZodEnum<["revert-commit", "revert-merge", "revert-range"]>;
28
- repo: z.ZodString;
29
- provider: z.ZodEnum<["gitea", "github"]>;
30
- projectPath: z.ZodString;
31
- commit_hash: z.ZodOptional<z.ZodString>;
32
- message: z.ZodOptional<z.ZodString>;
33
- no_commit: z.ZodOptional<z.ZodBoolean>;
34
- merge_commit_hash: z.ZodOptional<z.ZodString>;
35
- mainline: z.ZodOptional<z.ZodNumber>;
36
- commit_range: z.ZodOptional<z.ZodString>;
37
- strategy: z.ZodOptional<z.ZodEnum<["ours", "theirs"]>>;
38
- }, "strip", z.ZodTypeAny, {
39
- provider: "gitea" | "github";
40
- repo: string;
41
- action: "revert-commit" | "revert-merge" | "revert-range";
42
- projectPath: string;
43
- message?: string | undefined;
44
- commit_hash?: string | undefined;
45
- no_commit?: boolean | undefined;
46
- merge_commit_hash?: string | undefined;
47
- mainline?: number | undefined;
48
- commit_range?: string | undefined;
49
- strategy?: "ours" | "theirs" | undefined;
50
- }, {
51
- provider: "gitea" | "github";
52
- repo: string;
53
- action: "revert-commit" | "revert-merge" | "revert-range";
54
- projectPath: string;
55
- message?: string | undefined;
56
- commit_hash?: string | undefined;
57
- no_commit?: boolean | undefined;
58
- merge_commit_hash?: string | undefined;
59
- mainline?: number | undefined;
60
- commit_range?: string | undefined;
61
- strategy?: "ours" | "theirs" | undefined;
62
- }>;
63
- export type GitRevertInput = z.infer<typeof GitRevertInputSchema>;
64
- declare const GitRevertResultSchema: z.ZodObject<{
65
- success: z.ZodBoolean;
66
- action: z.ZodString;
67
- message: z.ZodString;
68
- data: z.ZodOptional<z.ZodAny>;
69
- error: z.ZodOptional<z.ZodString>;
70
- }, "strip", z.ZodTypeAny, {
71
- message: string;
72
- action: string;
73
- success: boolean;
74
- error?: string | undefined;
75
- data?: any;
76
- }, {
77
- message: string;
78
- action: string;
79
- success: boolean;
80
- error?: string | undefined;
81
- data?: any;
82
- }>;
83
- export type GitRevertResult = z.infer<typeof GitRevertResultSchema>;
84
- export declare const gitRevertTool: {
85
- name: string;
86
- description: string;
87
- inputSchema: {
88
- type: string;
89
- properties: {
90
- action: {
91
- type: string;
92
- enum: string[];
93
- description: string;
94
- };
95
- owner: {
96
- type: string;
97
- description: string;
98
- };
99
- repo: {
100
- type: string;
101
- description: string;
102
- };
103
- provider: {
104
- type: string;
105
- enum: string[];
106
- description: string;
107
- };
108
- projectPath: {
109
- type: string;
110
- description: string;
111
- };
112
- commit_hash: {
113
- type: string;
114
- description: string;
115
- };
116
- message: {
117
- type: string;
118
- description: string;
119
- };
120
- no_commit: {
121
- type: string;
122
- description: string;
123
- };
124
- merge_commit_hash: {
125
- type: string;
126
- description: string;
127
- };
128
- mainline: {
129
- type: string;
130
- description: string;
131
- };
132
- commit_range: {
133
- type: string;
134
- description: string;
135
- };
136
- strategy: {
137
- type: string;
138
- enum: string[];
139
- description: string;
140
- };
141
- };
142
- required: string[];
143
- };
144
- handler(input: GitRevertInput): Promise<GitRevertResult>;
145
- revertCommit(params: GitRevertInput): Promise<GitRevertResult>;
146
- revertMerge(params: GitRevertInput): Promise<GitRevertResult>;
147
- revertRange(params: GitRevertInput): Promise<GitRevertResult>;
148
- };
149
- export {};
1
+ import { z } from 'zod';
2
+ /**
3
+ * Tool: git-revert
4
+ *
5
+ * DESCRIÇÃO:
6
+ * Gerenciamento de revert Git (GitHub + Gitea) com múltiplas ações
7
+ *
8
+ * FUNCIONALIDADES:
9
+ * - Reverter commit específico
10
+ * - Reverter merge commit
11
+ * - Reverter range de commits
12
+ * - Reverter com mensagem customizada
13
+ * - Reverter sem commit automático
14
+ *
15
+ * USO:
16
+ * - Para desfazer commits de forma segura
17
+ * - Para reverter mudanças em branches compartilhadas
18
+ * - Para criar commits de reversão
19
+ * - Para manter histórico limpo
20
+ *
21
+ * RECOMENDAÇÕES:
22
+ * - Use revert em vez de reset para branches compartilhadas
23
+ * - Teste reversões em branches locais primeiro
24
+ * - Documente motivos da reversão
25
+ */
26
+ declare const GitRevertInputSchema: z.ZodObject<{
27
+ action: z.ZodEnum<["revert-commit", "revert-merge", "revert-range"]>;
28
+ repo: z.ZodString;
29
+ provider: z.ZodEnum<["gitea", "github"]>;
30
+ projectPath: z.ZodString;
31
+ commit_hash: z.ZodOptional<z.ZodString>;
32
+ message: z.ZodOptional<z.ZodString>;
33
+ no_commit: z.ZodOptional<z.ZodBoolean>;
34
+ merge_commit_hash: z.ZodOptional<z.ZodString>;
35
+ mainline: z.ZodOptional<z.ZodNumber>;
36
+ commit_range: z.ZodOptional<z.ZodString>;
37
+ strategy: z.ZodOptional<z.ZodEnum<["ours", "theirs"]>>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ provider: "gitea" | "github";
40
+ repo: string;
41
+ action: "revert-commit" | "revert-merge" | "revert-range";
42
+ projectPath: string;
43
+ message?: string | undefined;
44
+ commit_hash?: string | undefined;
45
+ no_commit?: boolean | undefined;
46
+ merge_commit_hash?: string | undefined;
47
+ mainline?: number | undefined;
48
+ commit_range?: string | undefined;
49
+ strategy?: "ours" | "theirs" | undefined;
50
+ }, {
51
+ provider: "gitea" | "github";
52
+ repo: string;
53
+ action: "revert-commit" | "revert-merge" | "revert-range";
54
+ projectPath: string;
55
+ message?: string | undefined;
56
+ commit_hash?: string | undefined;
57
+ no_commit?: boolean | undefined;
58
+ merge_commit_hash?: string | undefined;
59
+ mainline?: number | undefined;
60
+ commit_range?: string | undefined;
61
+ strategy?: "ours" | "theirs" | undefined;
62
+ }>;
63
+ export type GitRevertInput = z.infer<typeof GitRevertInputSchema>;
64
+ declare const GitRevertResultSchema: z.ZodObject<{
65
+ success: z.ZodBoolean;
66
+ action: z.ZodString;
67
+ message: z.ZodString;
68
+ data: z.ZodOptional<z.ZodAny>;
69
+ error: z.ZodOptional<z.ZodString>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ message: string;
72
+ action: string;
73
+ success: boolean;
74
+ error?: string | undefined;
75
+ data?: any;
76
+ }, {
77
+ message: string;
78
+ action: string;
79
+ success: boolean;
80
+ error?: string | undefined;
81
+ data?: any;
82
+ }>;
83
+ export type GitRevertResult = z.infer<typeof GitRevertResultSchema>;
84
+ export declare const gitRevertTool: {
85
+ name: string;
86
+ description: string;
87
+ inputSchema: {
88
+ type: string;
89
+ properties: {
90
+ action: {
91
+ type: string;
92
+ enum: string[];
93
+ description: string;
94
+ };
95
+ owner: {
96
+ type: string;
97
+ description: string;
98
+ };
99
+ repo: {
100
+ type: string;
101
+ description: string;
102
+ };
103
+ provider: {
104
+ type: string;
105
+ enum: string[];
106
+ description: string;
107
+ };
108
+ projectPath: {
109
+ type: string;
110
+ description: string;
111
+ };
112
+ commit_hash: {
113
+ type: string;
114
+ description: string;
115
+ };
116
+ message: {
117
+ type: string;
118
+ description: string;
119
+ };
120
+ no_commit: {
121
+ type: string;
122
+ description: string;
123
+ };
124
+ merge_commit_hash: {
125
+ type: string;
126
+ description: string;
127
+ };
128
+ mainline: {
129
+ type: string;
130
+ description: string;
131
+ };
132
+ commit_range: {
133
+ type: string;
134
+ description: string;
135
+ };
136
+ strategy: {
137
+ type: string;
138
+ enum: string[];
139
+ description: string;
140
+ };
141
+ };
142
+ required: string[];
143
+ };
144
+ handler(input: GitRevertInput): Promise<GitRevertResult>;
145
+ revertCommit(params: GitRevertInput): Promise<GitRevertResult>;
146
+ revertMerge(params: GitRevertInput): Promise<GitRevertResult>;
147
+ revertRange(params: GitRevertInput): Promise<GitRevertResult>;
148
+ };
149
+ export {};
150
150
  //# sourceMappingURL=git-revert.d.ts.map