@andrebuzeli/git-mcp 2.27.3 → 2.28.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 (112) 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 -156
  8. package/dist/providers/base-provider.d.ts.map +1 -1
  9. package/dist/providers/base-provider.js +274 -260
  10. package/dist/providers/base-provider.js.map +1 -1
  11. package/dist/providers/error-handler.d.ts +50 -50
  12. package/dist/providers/error-handler.js +175 -175
  13. package/dist/providers/gitea-provider.d.ts +97 -97
  14. package/dist/providers/gitea-provider.js +1001 -1001
  15. package/dist/providers/github-provider.d.ts +104 -104
  16. package/dist/providers/github-provider.js +1234 -1234
  17. package/dist/providers/index.d.ts +12 -12
  18. package/dist/providers/index.js +40 -40
  19. package/dist/providers/provider-factory.d.ts +74 -74
  20. package/dist/providers/provider-factory.js +311 -311
  21. package/dist/providers/types.d.ts +318 -298
  22. package/dist/providers/types.d.ts.map +1 -1
  23. package/dist/providers/types.js +6 -6
  24. package/dist/server.d.ts +76 -76
  25. package/dist/server.d.ts.map +1 -1
  26. package/dist/server.js +306 -357
  27. package/dist/server.js.map +1 -1
  28. package/dist/tools/gh-actions.d.ts +252 -252
  29. package/dist/tools/gh-actions.js +389 -389
  30. package/dist/tools/gh-analytics.d.ts +263 -263
  31. package/dist/tools/gh-analytics.js +401 -401
  32. package/dist/tools/gh-code-review.d.ts +304 -304
  33. package/dist/tools/gh-code-review.js +512 -512
  34. package/dist/tools/gh-codespaces.d.ts +138 -138
  35. package/dist/tools/gh-codespaces.js +282 -282
  36. package/dist/tools/gh-deployments.d.ts +300 -300
  37. package/dist/tools/gh-deployments.js +367 -367
  38. package/dist/tools/gh-gists.d.ts +174 -174
  39. package/dist/tools/gh-gists.js +321 -321
  40. package/dist/tools/gh-projects.d.ts +205 -205
  41. package/dist/tools/gh-projects.js +358 -358
  42. package/dist/tools/gh-security.d.ts +274 -274
  43. package/dist/tools/gh-security.js +395 -395
  44. package/dist/tools/gh-sync.d.ts +213 -213
  45. package/dist/tools/gh-sync.js +378 -378
  46. package/dist/tools/gh-workflows.d.ts +290 -290
  47. package/dist/tools/gh-workflows.js +432 -432
  48. package/dist/tools/git-archive.d.ts +165 -165
  49. package/dist/tools/git-archive.js +233 -233
  50. package/dist/tools/git-branches.d.ts +430 -430
  51. package/dist/tools/git-branches.d.ts.map +1 -1
  52. package/dist/tools/git-branches.js +627 -530
  53. package/dist/tools/git-branches.js.map +1 -1
  54. package/dist/tools/git-bundle.d.ts +171 -171
  55. package/dist/tools/git-bundle.js +241 -241
  56. package/dist/tools/git-cherry-pick.d.ts +158 -158
  57. package/dist/tools/git-cherry-pick.js +224 -224
  58. package/dist/tools/git-commits.d.ts +485 -485
  59. package/dist/tools/git-commits.d.ts.map +1 -1
  60. package/dist/tools/git-commits.js +735 -625
  61. package/dist/tools/git-commits.js.map +1 -1
  62. package/dist/tools/git-config.d.ts +140 -140
  63. package/dist/tools/git-config.js +268 -268
  64. package/dist/tools/git-files.d.ts +486 -486
  65. package/dist/tools/git-files.js +607 -607
  66. package/dist/tools/git-issues.d.ts +571 -571
  67. package/dist/tools/git-issues.d.ts.map +1 -1
  68. package/dist/tools/git-issues.js +740 -693
  69. package/dist/tools/git-issues.js.map +1 -1
  70. package/dist/tools/git-pulls.d.ts +694 -694
  71. package/dist/tools/git-pulls.js +732 -732
  72. package/dist/tools/git-rebase.d.ts +137 -137
  73. package/dist/tools/git-rebase.js +213 -213
  74. package/dist/tools/git-releases.d.ts +487 -487
  75. package/dist/tools/git-releases.js +557 -557
  76. package/dist/tools/git-remote.d.ts +138 -138
  77. package/dist/tools/git-remote.js +274 -274
  78. package/dist/tools/git-repositories.d.ts +483 -483
  79. package/dist/tools/git-repositories.js +640 -640
  80. package/dist/tools/git-reset.d.ts +130 -130
  81. package/dist/tools/git-reset.js +223 -223
  82. package/dist/tools/git-revert.d.ts +149 -149
  83. package/dist/tools/git-revert.js +198 -198
  84. package/dist/tools/git-stash.d.ts +140 -140
  85. package/dist/tools/git-stash.js +269 -269
  86. package/dist/tools/git-submodule.d.ts +152 -152
  87. package/dist/tools/git-submodule.js +289 -289
  88. package/dist/tools/git-sync.d.ts +178 -166
  89. package/dist/tools/git-sync.d.ts.map +1 -1
  90. package/dist/tools/git-sync.js +312 -117
  91. package/dist/tools/git-sync.js.map +1 -1
  92. package/dist/tools/git-tags.d.ts +411 -411
  93. package/dist/tools/git-tags.js +485 -485
  94. package/dist/tools/git-webhooks.d.ts +470 -482
  95. package/dist/tools/git-webhooks.d.ts.map +1 -1
  96. package/dist/tools/git-webhooks.js +543 -555
  97. package/dist/tools/git-webhooks.js.map +1 -1
  98. package/dist/tools/git-worktree.d.ts +159 -159
  99. package/dist/tools/git-worktree.js +269 -269
  100. package/dist/tools/repositories.d.ts +405 -405
  101. package/dist/tools/repositories.js +569 -569
  102. package/dist/tools/users.d.ts +372 -372
  103. package/dist/tools/users.js +499 -499
  104. package/dist/tools/validator.d.ts +170 -170
  105. package/dist/tools/validator.js +194 -194
  106. package/dist/tools/version-control.d.ts +136 -136
  107. package/dist/tools/version-control.js +164 -164
  108. package/dist/utils/terminal-controller.d.ts +80 -80
  109. package/dist/utils/terminal-controller.js +345 -345
  110. package/dist/utils/user-detection.d.ts +24 -24
  111. package/dist/utils/user-detection.js +53 -53
  112. package/package.json +59 -59
@@ -1,412 +1,412 @@
1
- import { z } from 'zod';
2
- import { VcsOperations } from '../providers/index.js';
3
- /**
4
- * Tool: tags
5
- *
6
- * DESCRIÇÃO:
7
- * Gerenciamento completo de tags com suporte multi-provider (GitHub e Gitea)
8
- *
9
- * FUNCIONALIDADES:
10
- * - Criação de novas tags
11
- * - Listagem e busca de tags
12
- * - Obtenção de detalhes específicos
13
- * - Exclusão de tags
14
- * - Controle de versão
15
- * - Busca por padrões
16
- *
17
- * USO:
18
- * - Para marcar versões específicas
19
- * - Para controle de release
20
- * - Para rollback de código
21
- * - Para identificação de commits
22
- *
23
- * RECOMENDAÇÕES:
24
- * - Use versionamento semântico
25
- * - Mantenha tags organizadas
26
- * - Documente propósito das tags
27
- * - Use para pontos de referência
28
- */
29
- /**
30
- * Schema de validação para entrada da tool tags
31
- *
32
- * VALIDAÇÕES:
33
- * - action: Ação obrigatória (create, list, get, delete, search)
34
- * - Parâmetros específicos por ação
35
- * - Validação de tipos e formatos
36
- *
37
- * RECOMENDAÇÕES:
38
- * - Sempre valide entrada antes de usar
39
- * - Use parâmetros opcionais adequadamente
40
- * - Documente parâmetros obrigatórios
41
- */
42
- declare const TagsInputSchema: z.ZodObject<{
43
- action: z.ZodEnum<["create", "list", "get", "delete", "search"]>;
44
- repo: z.ZodString;
45
- provider: z.ZodEnum<["gitea", "github"]>;
46
- tag_name: z.ZodOptional<z.ZodString>;
47
- message: z.ZodOptional<z.ZodString>;
48
- target: z.ZodOptional<z.ZodString>;
49
- type: z.ZodOptional<z.ZodEnum<["lightweight", "annotated"]>>;
50
- tagger_name: z.ZodOptional<z.ZodString>;
51
- tagger_email: z.ZodOptional<z.ZodString>;
52
- tag: z.ZodOptional<z.ZodString>;
53
- page: z.ZodOptional<z.ZodNumber>;
54
- limit: z.ZodOptional<z.ZodNumber>;
55
- query: z.ZodOptional<z.ZodString>;
56
- pattern: z.ZodOptional<z.ZodString>;
57
- }, "strip", z.ZodTypeAny, {
58
- provider: "gitea" | "github";
59
- repo: string;
60
- action: "delete" | "get" | "search" | "list" | "create";
61
- message?: string | undefined;
62
- type?: "lightweight" | "annotated" | undefined;
63
- tag_name?: string | undefined;
64
- page?: number | undefined;
65
- limit?: number | undefined;
66
- tag?: string | undefined;
67
- query?: string | undefined;
68
- target?: string | undefined;
69
- tagger_name?: string | undefined;
70
- tagger_email?: string | undefined;
71
- pattern?: string | undefined;
72
- }, {
73
- provider: "gitea" | "github";
74
- repo: string;
75
- action: "delete" | "get" | "search" | "list" | "create";
76
- message?: string | undefined;
77
- type?: "lightweight" | "annotated" | undefined;
78
- tag_name?: string | undefined;
79
- page?: number | undefined;
80
- limit?: number | undefined;
81
- tag?: string | undefined;
82
- query?: string | undefined;
83
- target?: string | undefined;
84
- tagger_name?: string | undefined;
85
- tagger_email?: string | undefined;
86
- pattern?: string | undefined;
87
- }>;
88
- export type TagsInput = z.infer<typeof TagsInputSchema>;
89
- /**
90
- * Schema de saída padronizado
91
- *
92
- * ESTRUTURA:
93
- * - success: Status da operação
94
- * - action: Ação executada
95
- * - message: Mensagem descritiva
96
- * - data: Dados retornados (opcional)
97
- * - error: Detalhes do erro (opcional)
98
- */
99
- declare const TagsResultSchema: z.ZodObject<{
100
- success: z.ZodBoolean;
101
- action: z.ZodString;
102
- message: z.ZodString;
103
- data: z.ZodOptional<z.ZodAny>;
104
- error: z.ZodOptional<z.ZodString>;
105
- }, "strip", z.ZodTypeAny, {
106
- message: string;
107
- action: string;
108
- success: boolean;
109
- error?: string | undefined;
110
- data?: any;
111
- }, {
112
- message: string;
113
- action: string;
114
- success: boolean;
115
- error?: string | undefined;
116
- data?: any;
117
- }>;
118
- export type TagsResult = z.infer<typeof TagsResultSchema>;
119
- /**
120
- * Tool: tags
121
- *
122
- * DESCRIÇÃO:
123
- * Gerenciamento completo de tags Gitea com múltiplas ações
124
- *
125
- * ACTIONS DISPONÍVEIS:
126
- *
127
- * 1. create - Criar nova tag
128
- * Parâmetros:
129
- * - owner (obrigatório): Proprietário do repositório
130
- * - repo (obrigatório): Nome do repositório
131
- * - tag_name (obrigatório): Nome da tag
132
- * - message (opcional): Mensagem da tag (para tags anotadas)
133
- * - target (obrigatório): Commit, branch ou tag alvo
134
- * - type (opcional): Tipo de tag (lightweight, annotated) - padrão: lightweight
135
- * - tagger_name (opcional): Nome do tagger (para tags anotadas)
136
- * - tagger_email (opcional): Email do tagger (para tags anotadas)
137
- *
138
- * 2. list - Listar tags
139
- * Parâmetros:
140
- * - owner (obrigatório): Proprietário do repositório
141
- * - repo (obrigatório): Nome do repositório
142
- * - page (opcional): Página da listagem (padrão: 1)
143
- * - limit (opcional): Itens por página (padrão: 30, máximo: 100)
144
- *
145
- * 3. get - Obter detalhes da tag
146
- * Parâmetros:
147
- * - owner (obrigatório): Proprietário do repositório
148
- * - repo (obrigatório): Nome do repositório
149
- * - tag (obrigatório): Nome da tag
150
- *
151
- * 4. delete - Deletar tag
152
- * Parâmetros:
153
- * - owner (obrigatório): Proprietário do repositório
154
- * - repo (obrigatório): Nome do repositório
155
- * - tag (obrigatório): Nome da tag
156
- *
157
- * 5. search - Buscar tags
158
- * Parâmetros:
159
- * - owner (obrigatório): Proprietário do repositório
160
- * - repo (obrigatório): Nome do repositório
161
- * - query (opcional): Termo de busca
162
- * - pattern (opcional): Padrão de busca (ex: v*.*.*)
163
- *
164
- * RECOMENDAÇÕES DE USO:
165
- * - Use convenções de nomenclatura consistentes
166
- * - Documente propósito das tags
167
- * - Mantenha tags organizadas
168
- * - Use versionamento semântico
169
- * - Use tags anotadas para releases importantes
170
- * - Limpe tags antigas regularmente
171
- */
172
- export declare const tagsTool: {
173
- name: string;
174
- description: string;
175
- inputSchema: {
176
- type: string;
177
- properties: {
178
- action: {
179
- type: string;
180
- enum: string[];
181
- description: string;
182
- };
183
- repo: {
184
- type: string;
185
- description: string;
186
- };
187
- provider: {
188
- type: string;
189
- description: string;
190
- };
191
- tag_name: {
192
- type: string;
193
- description: string;
194
- };
195
- message: {
196
- type: string;
197
- description: string;
198
- };
199
- target: {
200
- type: string;
201
- description: string;
202
- };
203
- type: {
204
- type: string;
205
- enum: string[];
206
- description: string;
207
- };
208
- tagger_name: {
209
- type: string;
210
- description: string;
211
- };
212
- tagger_email: {
213
- type: string;
214
- description: string;
215
- };
216
- tag: {
217
- type: string;
218
- description: string;
219
- };
220
- page: {
221
- type: string;
222
- description: string;
223
- minimum: number;
224
- };
225
- limit: {
226
- type: string;
227
- description: string;
228
- minimum: number;
229
- maximum: number;
230
- };
231
- query: {
232
- type: string;
233
- description: string;
234
- };
235
- pattern: {
236
- type: string;
237
- description: string;
238
- };
239
- };
240
- required: string[];
241
- };
242
- /**
243
- * Handler principal da tool tags
244
- *
245
- * FUNCIONALIDADE:
246
- * - Valida entrada usando Zod schema
247
- * - Roteia para método específico baseado na ação
248
- * - Trata erros de forma uniforme
249
- * - Retorna resultado padronizado
250
- *
251
- * FLUXO:
252
- * 1. Validação de entrada
253
- * 2. Seleção do provider
254
- * 3. Roteamento por ação
255
- * 4. Execução do método específico
256
- * 5. Tratamento de erros
257
- * 6. Retorno de resultado
258
- *
259
- * TRATAMENTO DE ERROS:
260
- * - Validação: erro de schema
261
- * - Execução: erro da operação
262
- * - Roteamento: ação não suportada
263
- *
264
- * RECOMENDAÇÕES:
265
- * - Sempre valide entrada antes de processar
266
- * - Trate erros específicos adequadamente
267
- * - Log detalhes de erro para debug
268
- * - Retorne mensagens de erro úteis
269
- */
270
- handler(input: TagsInput): Promise<TagsResult>;
271
- /**
272
- * Cria uma nova tag no repositório
273
- *
274
- * FUNCIONALIDADE:
275
- * - Cria tag com nome e target especificados
276
- * - Suporta tags lightweight e anotadas
277
- * - Permite configuração de tagger
278
- *
279
- * PARÂMETROS OBRIGATÓRIOS:
280
- * - owner: Proprietário do repositório
281
- * - repo: Nome do repositório
282
- * - tag_name: Nome da tag
283
- * - target: Commit, branch ou tag alvo
284
- *
285
- * PARÂMETROS OPCIONAIS:
286
- * - message: Mensagem da tag (para tags anotadas)
287
- * - type: Tipo de tag (lightweight, annotated) - padrão: lightweight
288
- * - tagger_name: Nome do tagger (para tags anotadas)
289
- * - tagger_email: Email do tagger (para tags anotadas)
290
- *
291
- * VALIDAÇÕES:
292
- * - Todos os parâmetros obrigatórios
293
- * - Nome da tag deve ser único no repositório
294
- * - Target deve existir
295
- * - Usuário deve ter permissão de escrita
296
- *
297
- * RECOMENDAÇÕES:
298
- * - Use convenções de nomenclatura consistentes
299
- * - Use tags anotadas para releases importantes
300
- * - Documente propósito da tag
301
- * - Use versionamento semântico
302
- */
303
- createTag(params: TagsInput, provider: VcsOperations): Promise<TagsResult>;
304
- /**
305
- * Lista tags do repositório
306
- *
307
- * FUNCIONALIDADE:
308
- * - Lista tags com paginação
309
- * - Retorna informações básicas de cada tag
310
- * - Inclui commit alvo e URLs de download
311
- *
312
- * PARÂMETROS OBRIGATÓRIOS:
313
- * - owner: Proprietário do repositório
314
- * - repo: Nome do repositório
315
- *
316
- * PARÂMETROS OPCIONAIS:
317
- * - page: Página da listagem (padrão: 1)
318
- * - limit: Itens por página (padrão: 30, máximo: 100)
319
- *
320
- * VALIDAÇÕES:
321
- * - e repo obrigatórios
322
- * - Page deve ser >= 1
323
- * - Limit deve ser entre 1 e 100
324
- *
325
- * RECOMENDAÇÕES:
326
- * - Use paginação para repositórios com muitas tags
327
- * - Monitore número total de tags
328
- * - Verifique commit alvo de cada tag
329
- * - Mantenha tags organizadas
330
- */
331
- listTags(params: TagsInput, provider: VcsOperations): Promise<TagsResult>;
332
- /**
333
- * Obtém detalhes de uma tag específica
334
- *
335
- * FUNCIONALIDADE:
336
- * - Retorna informações completas da tag
337
- * - Inclui nome, commit alvo e URLs
338
- * - Mostra tipo da tag (lightweight/anotada)
339
- *
340
- * PARÂMETROS OBRIGATÓRIOS:
341
- * - owner: Proprietário do repositório
342
- * - repo: Nome do repositório
343
- * - tag: Nome da tag
344
- *
345
- * VALIDAÇÕES:
346
- * - Todos os parâmetros obrigatórios
347
- * - Tag deve existir no repositório
348
- * - Nome deve ser válido
349
- *
350
- * RECOMENDAÇÕES:
351
- * - Use para obter detalhes completos
352
- * - Verifique commit alvo da tag
353
- * - Analise URLs de download
354
- * - Monitore mudanças importantes
355
- */
356
- getTag(params: TagsInput, provider: VcsOperations): Promise<TagsResult>;
357
- /**
358
- * Deleta uma tag do repositório
359
- *
360
- * FUNCIONALIDADE:
361
- * - Remove tag especificada
362
- * - Mantém commit alvo intacto
363
- * - Confirma exclusão bem-sucedida
364
- *
365
- * PARÂMETROS OBRIGATÓRIOS:
366
- * - owner: Proprietário do repositório
367
- * - repo: Nome do repositório
368
- * - tag: Nome da tag
369
- *
370
- * VALIDAÇÕES:
371
- * - Todos os parâmetros obrigatórios
372
- * - Tag deve existir
373
- * - Usuário deve ter permissão de exclusão
374
- *
375
- * RECOMENDAÇÕES:
376
- * - Confirme exclusão antes de executar
377
- * - Verifique se tag não está sendo usada
378
- * - Mantenha backup se necessário
379
- * - Documente motivo da exclusão
380
- */
381
- deleteTag(params: TagsInput, provider: VcsOperations): Promise<TagsResult>;
382
- /**
383
- * Busca tags por critérios específicos
384
- *
385
- * FUNCIONALIDADE:
386
- * - Busca tags por nome ou padrão
387
- * - Suporta padrões glob (ex: v*.*.*)
388
- * - Retorna resultados relevantes
389
- *
390
- * PARÂMETROS OBRIGATÓRIOS:
391
- * - owner: Proprietário do repositório
392
- * - repo: Nome do repositório
393
- *
394
- * PARÂMETROS OPCIONAIS:
395
- * - query: Termo de busca
396
- * - pattern: Padrão de busca (ex: v*.*.*)
397
- *
398
- * VALIDAÇÕES:
399
- * - e repo obrigatórios
400
- * - Query ou pattern deve ser fornecido
401
- * - Repositório deve existir
402
- *
403
- * RECOMENDAÇÕES:
404
- * - Use padrões glob para busca eficiente
405
- * - Combine com filtros de nome
406
- * - Analise resultados para relevância
407
- * - Use para encontrar tags relacionadas
408
- */
409
- searchTags(params: TagsInput, provider: VcsOperations): Promise<TagsResult>;
410
- };
411
- export {};
1
+ import { z } from 'zod';
2
+ import { VcsOperations } from '../providers/index.js';
3
+ /**
4
+ * Tool: tags
5
+ *
6
+ * DESCRIÇÃO:
7
+ * Gerenciamento completo de tags com suporte multi-provider (GitHub e Gitea)
8
+ *
9
+ * FUNCIONALIDADES:
10
+ * - Criação de novas tags
11
+ * - Listagem e busca de tags
12
+ * - Obtenção de detalhes específicos
13
+ * - Exclusão de tags
14
+ * - Controle de versão
15
+ * - Busca por padrões
16
+ *
17
+ * USO:
18
+ * - Para marcar versões específicas
19
+ * - Para controle de release
20
+ * - Para rollback de código
21
+ * - Para identificação de commits
22
+ *
23
+ * RECOMENDAÇÕES:
24
+ * - Use versionamento semântico
25
+ * - Mantenha tags organizadas
26
+ * - Documente propósito das tags
27
+ * - Use para pontos de referência
28
+ */
29
+ /**
30
+ * Schema de validação para entrada da tool tags
31
+ *
32
+ * VALIDAÇÕES:
33
+ * - action: Ação obrigatória (create, list, get, delete, search)
34
+ * - Parâmetros específicos por ação
35
+ * - Validação de tipos e formatos
36
+ *
37
+ * RECOMENDAÇÕES:
38
+ * - Sempre valide entrada antes de usar
39
+ * - Use parâmetros opcionais adequadamente
40
+ * - Documente parâmetros obrigatórios
41
+ */
42
+ declare const TagsInputSchema: z.ZodObject<{
43
+ action: z.ZodEnum<["create", "list", "get", "delete", "search"]>;
44
+ repo: z.ZodString;
45
+ provider: z.ZodEnum<["gitea", "github"]>;
46
+ tag_name: z.ZodOptional<z.ZodString>;
47
+ message: z.ZodOptional<z.ZodString>;
48
+ target: z.ZodOptional<z.ZodString>;
49
+ type: z.ZodOptional<z.ZodEnum<["lightweight", "annotated"]>>;
50
+ tagger_name: z.ZodOptional<z.ZodString>;
51
+ tagger_email: z.ZodOptional<z.ZodString>;
52
+ tag: z.ZodOptional<z.ZodString>;
53
+ page: z.ZodOptional<z.ZodNumber>;
54
+ limit: z.ZodOptional<z.ZodNumber>;
55
+ query: z.ZodOptional<z.ZodString>;
56
+ pattern: z.ZodOptional<z.ZodString>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ provider: "gitea" | "github";
59
+ repo: string;
60
+ action: "delete" | "get" | "search" | "list" | "create";
61
+ message?: string | undefined;
62
+ type?: "lightweight" | "annotated" | undefined;
63
+ tag_name?: string | undefined;
64
+ page?: number | undefined;
65
+ limit?: number | undefined;
66
+ tag?: string | undefined;
67
+ query?: string | undefined;
68
+ target?: string | undefined;
69
+ tagger_name?: string | undefined;
70
+ tagger_email?: string | undefined;
71
+ pattern?: string | undefined;
72
+ }, {
73
+ provider: "gitea" | "github";
74
+ repo: string;
75
+ action: "delete" | "get" | "search" | "list" | "create";
76
+ message?: string | undefined;
77
+ type?: "lightweight" | "annotated" | undefined;
78
+ tag_name?: string | undefined;
79
+ page?: number | undefined;
80
+ limit?: number | undefined;
81
+ tag?: string | undefined;
82
+ query?: string | undefined;
83
+ target?: string | undefined;
84
+ tagger_name?: string | undefined;
85
+ tagger_email?: string | undefined;
86
+ pattern?: string | undefined;
87
+ }>;
88
+ export type TagsInput = z.infer<typeof TagsInputSchema>;
89
+ /**
90
+ * Schema de saída padronizado
91
+ *
92
+ * ESTRUTURA:
93
+ * - success: Status da operação
94
+ * - action: Ação executada
95
+ * - message: Mensagem descritiva
96
+ * - data: Dados retornados (opcional)
97
+ * - error: Detalhes do erro (opcional)
98
+ */
99
+ declare const TagsResultSchema: z.ZodObject<{
100
+ success: z.ZodBoolean;
101
+ action: z.ZodString;
102
+ message: z.ZodString;
103
+ data: z.ZodOptional<z.ZodAny>;
104
+ error: z.ZodOptional<z.ZodString>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ message: string;
107
+ action: string;
108
+ success: boolean;
109
+ error?: string | undefined;
110
+ data?: any;
111
+ }, {
112
+ message: string;
113
+ action: string;
114
+ success: boolean;
115
+ error?: string | undefined;
116
+ data?: any;
117
+ }>;
118
+ export type TagsResult = z.infer<typeof TagsResultSchema>;
119
+ /**
120
+ * Tool: tags
121
+ *
122
+ * DESCRIÇÃO:
123
+ * Gerenciamento completo de tags Gitea com múltiplas ações
124
+ *
125
+ * ACTIONS DISPONÍVEIS:
126
+ *
127
+ * 1. create - Criar nova tag
128
+ * Parâmetros:
129
+ * - owner (obrigatório): Proprietário do repositório
130
+ * - repo (obrigatório): Nome do repositório
131
+ * - tag_name (obrigatório): Nome da tag
132
+ * - message (opcional): Mensagem da tag (para tags anotadas)
133
+ * - target (obrigatório): Commit, branch ou tag alvo
134
+ * - type (opcional): Tipo de tag (lightweight, annotated) - padrão: lightweight
135
+ * - tagger_name (opcional): Nome do tagger (para tags anotadas)
136
+ * - tagger_email (opcional): Email do tagger (para tags anotadas)
137
+ *
138
+ * 2. list - Listar tags
139
+ * Parâmetros:
140
+ * - owner (obrigatório): Proprietário do repositório
141
+ * - repo (obrigatório): Nome do repositório
142
+ * - page (opcional): Página da listagem (padrão: 1)
143
+ * - limit (opcional): Itens por página (padrão: 30, máximo: 100)
144
+ *
145
+ * 3. get - Obter detalhes da tag
146
+ * Parâmetros:
147
+ * - owner (obrigatório): Proprietário do repositório
148
+ * - repo (obrigatório): Nome do repositório
149
+ * - tag (obrigatório): Nome da tag
150
+ *
151
+ * 4. delete - Deletar tag
152
+ * Parâmetros:
153
+ * - owner (obrigatório): Proprietário do repositório
154
+ * - repo (obrigatório): Nome do repositório
155
+ * - tag (obrigatório): Nome da tag
156
+ *
157
+ * 5. search - Buscar tags
158
+ * Parâmetros:
159
+ * - owner (obrigatório): Proprietário do repositório
160
+ * - repo (obrigatório): Nome do repositório
161
+ * - query (opcional): Termo de busca
162
+ * - pattern (opcional): Padrão de busca (ex: v*.*.*)
163
+ *
164
+ * RECOMENDAÇÕES DE USO:
165
+ * - Use convenções de nomenclatura consistentes
166
+ * - Documente propósito das tags
167
+ * - Mantenha tags organizadas
168
+ * - Use versionamento semântico
169
+ * - Use tags anotadas para releases importantes
170
+ * - Limpe tags antigas regularmente
171
+ */
172
+ export declare const tagsTool: {
173
+ name: string;
174
+ description: string;
175
+ inputSchema: {
176
+ type: string;
177
+ properties: {
178
+ action: {
179
+ type: string;
180
+ enum: string[];
181
+ description: string;
182
+ };
183
+ repo: {
184
+ type: string;
185
+ description: string;
186
+ };
187
+ provider: {
188
+ type: string;
189
+ description: string;
190
+ };
191
+ tag_name: {
192
+ type: string;
193
+ description: string;
194
+ };
195
+ message: {
196
+ type: string;
197
+ description: string;
198
+ };
199
+ target: {
200
+ type: string;
201
+ description: string;
202
+ };
203
+ type: {
204
+ type: string;
205
+ enum: string[];
206
+ description: string;
207
+ };
208
+ tagger_name: {
209
+ type: string;
210
+ description: string;
211
+ };
212
+ tagger_email: {
213
+ type: string;
214
+ description: string;
215
+ };
216
+ tag: {
217
+ type: string;
218
+ description: string;
219
+ };
220
+ page: {
221
+ type: string;
222
+ description: string;
223
+ minimum: number;
224
+ };
225
+ limit: {
226
+ type: string;
227
+ description: string;
228
+ minimum: number;
229
+ maximum: number;
230
+ };
231
+ query: {
232
+ type: string;
233
+ description: string;
234
+ };
235
+ pattern: {
236
+ type: string;
237
+ description: string;
238
+ };
239
+ };
240
+ required: string[];
241
+ };
242
+ /**
243
+ * Handler principal da tool tags
244
+ *
245
+ * FUNCIONALIDADE:
246
+ * - Valida entrada usando Zod schema
247
+ * - Roteia para método específico baseado na ação
248
+ * - Trata erros de forma uniforme
249
+ * - Retorna resultado padronizado
250
+ *
251
+ * FLUXO:
252
+ * 1. Validação de entrada
253
+ * 2. Seleção do provider
254
+ * 3. Roteamento por ação
255
+ * 4. Execução do método específico
256
+ * 5. Tratamento de erros
257
+ * 6. Retorno de resultado
258
+ *
259
+ * TRATAMENTO DE ERROS:
260
+ * - Validação: erro de schema
261
+ * - Execução: erro da operação
262
+ * - Roteamento: ação não suportada
263
+ *
264
+ * RECOMENDAÇÕES:
265
+ * - Sempre valide entrada antes de processar
266
+ * - Trate erros específicos adequadamente
267
+ * - Log detalhes de erro para debug
268
+ * - Retorne mensagens de erro úteis
269
+ */
270
+ handler(input: TagsInput): Promise<TagsResult>;
271
+ /**
272
+ * Cria uma nova tag no repositório
273
+ *
274
+ * FUNCIONALIDADE:
275
+ * - Cria tag com nome e target especificados
276
+ * - Suporta tags lightweight e anotadas
277
+ * - Permite configuração de tagger
278
+ *
279
+ * PARÂMETROS OBRIGATÓRIOS:
280
+ * - owner: Proprietário do repositório
281
+ * - repo: Nome do repositório
282
+ * - tag_name: Nome da tag
283
+ * - target: Commit, branch ou tag alvo
284
+ *
285
+ * PARÂMETROS OPCIONAIS:
286
+ * - message: Mensagem da tag (para tags anotadas)
287
+ * - type: Tipo de tag (lightweight, annotated) - padrão: lightweight
288
+ * - tagger_name: Nome do tagger (para tags anotadas)
289
+ * - tagger_email: Email do tagger (para tags anotadas)
290
+ *
291
+ * VALIDAÇÕES:
292
+ * - Todos os parâmetros obrigatórios
293
+ * - Nome da tag deve ser único no repositório
294
+ * - Target deve existir
295
+ * - Usuário deve ter permissão de escrita
296
+ *
297
+ * RECOMENDAÇÕES:
298
+ * - Use convenções de nomenclatura consistentes
299
+ * - Use tags anotadas para releases importantes
300
+ * - Documente propósito da tag
301
+ * - Use versionamento semântico
302
+ */
303
+ createTag(params: TagsInput, provider: VcsOperations): Promise<TagsResult>;
304
+ /**
305
+ * Lista tags do repositório
306
+ *
307
+ * FUNCIONALIDADE:
308
+ * - Lista tags com paginação
309
+ * - Retorna informações básicas de cada tag
310
+ * - Inclui commit alvo e URLs de download
311
+ *
312
+ * PARÂMETROS OBRIGATÓRIOS:
313
+ * - owner: Proprietário do repositório
314
+ * - repo: Nome do repositório
315
+ *
316
+ * PARÂMETROS OPCIONAIS:
317
+ * - page: Página da listagem (padrão: 1)
318
+ * - limit: Itens por página (padrão: 30, máximo: 100)
319
+ *
320
+ * VALIDAÇÕES:
321
+ * - e repo obrigatórios
322
+ * - Page deve ser >= 1
323
+ * - Limit deve ser entre 1 e 100
324
+ *
325
+ * RECOMENDAÇÕES:
326
+ * - Use paginação para repositórios com muitas tags
327
+ * - Monitore número total de tags
328
+ * - Verifique commit alvo de cada tag
329
+ * - Mantenha tags organizadas
330
+ */
331
+ listTags(params: TagsInput, provider: VcsOperations): Promise<TagsResult>;
332
+ /**
333
+ * Obtém detalhes de uma tag específica
334
+ *
335
+ * FUNCIONALIDADE:
336
+ * - Retorna informações completas da tag
337
+ * - Inclui nome, commit alvo e URLs
338
+ * - Mostra tipo da tag (lightweight/anotada)
339
+ *
340
+ * PARÂMETROS OBRIGATÓRIOS:
341
+ * - owner: Proprietário do repositório
342
+ * - repo: Nome do repositório
343
+ * - tag: Nome da tag
344
+ *
345
+ * VALIDAÇÕES:
346
+ * - Todos os parâmetros obrigatórios
347
+ * - Tag deve existir no repositório
348
+ * - Nome deve ser válido
349
+ *
350
+ * RECOMENDAÇÕES:
351
+ * - Use para obter detalhes completos
352
+ * - Verifique commit alvo da tag
353
+ * - Analise URLs de download
354
+ * - Monitore mudanças importantes
355
+ */
356
+ getTag(params: TagsInput, provider: VcsOperations): Promise<TagsResult>;
357
+ /**
358
+ * Deleta uma tag do repositório
359
+ *
360
+ * FUNCIONALIDADE:
361
+ * - Remove tag especificada
362
+ * - Mantém commit alvo intacto
363
+ * - Confirma exclusão bem-sucedida
364
+ *
365
+ * PARÂMETROS OBRIGATÓRIOS:
366
+ * - owner: Proprietário do repositório
367
+ * - repo: Nome do repositório
368
+ * - tag: Nome da tag
369
+ *
370
+ * VALIDAÇÕES:
371
+ * - Todos os parâmetros obrigatórios
372
+ * - Tag deve existir
373
+ * - Usuário deve ter permissão de exclusão
374
+ *
375
+ * RECOMENDAÇÕES:
376
+ * - Confirme exclusão antes de executar
377
+ * - Verifique se tag não está sendo usada
378
+ * - Mantenha backup se necessário
379
+ * - Documente motivo da exclusão
380
+ */
381
+ deleteTag(params: TagsInput, provider: VcsOperations): Promise<TagsResult>;
382
+ /**
383
+ * Busca tags por critérios específicos
384
+ *
385
+ * FUNCIONALIDADE:
386
+ * - Busca tags por nome ou padrão
387
+ * - Suporta padrões glob (ex: v*.*.*)
388
+ * - Retorna resultados relevantes
389
+ *
390
+ * PARÂMETROS OBRIGATÓRIOS:
391
+ * - owner: Proprietário do repositório
392
+ * - repo: Nome do repositório
393
+ *
394
+ * PARÂMETROS OPCIONAIS:
395
+ * - query: Termo de busca
396
+ * - pattern: Padrão de busca (ex: v*.*.*)
397
+ *
398
+ * VALIDAÇÕES:
399
+ * - e repo obrigatórios
400
+ * - Query ou pattern deve ser fornecido
401
+ * - Repositório deve existir
402
+ *
403
+ * RECOMENDAÇÕES:
404
+ * - Use padrões glob para busca eficiente
405
+ * - Combine com filtros de nome
406
+ * - Analise resultados para relevância
407
+ * - Use para encontrar tags relacionadas
408
+ */
409
+ searchTags(params: TagsInput, provider: VcsOperations): Promise<TagsResult>;
410
+ };
411
+ export {};
412
412
  //# sourceMappingURL=git-tags.d.ts.map