@andrebuzeli/git-mcp 2.12.8 → 2.13.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.
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +86 -28
- package/dist/server.js.map +1 -1
- package/dist/tools/branches.d.ts +2 -2
- package/dist/tools/code-review.d.ts +4 -4
- package/dist/tools/commits.d.ts +2 -2
- package/dist/tools/deployments.d.ts +4 -4
- package/dist/tools/gh-codespaces.d.ts +154 -0
- package/dist/tools/gh-codespaces.d.ts.map +1 -0
- package/dist/tools/gh-codespaces.js +286 -0
- package/dist/tools/gh-codespaces.js.map +1 -0
- package/dist/tools/gh-gists.d.ts +194 -0
- package/dist/tools/gh-gists.d.ts.map +1 -0
- package/dist/tools/gh-gists.js +328 -0
- package/dist/tools/gh-gists.js.map +1 -0
- package/dist/tools/gh-projects.d.ts +225 -0
- package/dist/tools/gh-projects.d.ts.map +1 -0
- package/dist/tools/gh-projects.js +365 -0
- package/dist/tools/gh-projects.js.map +1 -0
- package/dist/tools/gh-sync.d.ts +229 -0
- package/dist/tools/gh-sync.d.ts.map +1 -0
- package/dist/tools/gh-sync.js +384 -0
- package/dist/tools/gh-sync.js.map +1 -0
- package/dist/tools/git-archive.d.ts +169 -0
- package/dist/tools/git-archive.d.ts.map +1 -0
- package/dist/tools/git-archive.js +235 -0
- package/dist/tools/git-archive.js.map +1 -0
- package/dist/tools/git-bundle.d.ts +175 -0
- package/dist/tools/git-bundle.d.ts.map +1 -0
- package/dist/tools/git-bundle.js +258 -0
- package/dist/tools/git-bundle.js.map +1 -0
- package/dist/tools/git-cherry-pick.d.ts +162 -0
- package/dist/tools/git-cherry-pick.d.ts.map +1 -0
- package/dist/tools/git-cherry-pick.js +241 -0
- package/dist/tools/git-cherry-pick.js.map +1 -0
- package/dist/tools/git-config.d.ts +144 -0
- package/dist/tools/git-config.d.ts.map +1 -0
- package/dist/tools/git-config.js +293 -0
- package/dist/tools/git-config.js.map +1 -0
- package/dist/tools/git-rebase.d.ts +141 -0
- package/dist/tools/git-rebase.d.ts.map +1 -0
- package/dist/tools/git-rebase.js +234 -0
- package/dist/tools/git-rebase.js.map +1 -0
- package/dist/tools/git-remote.d.ts +142 -0
- package/dist/tools/git-remote.d.ts.map +1 -0
- package/dist/tools/git-remote.js +303 -0
- package/dist/tools/git-remote.js.map +1 -0
- package/dist/tools/git-repositories.d.ts +422 -0
- package/dist/tools/git-repositories.d.ts.map +1 -0
- package/dist/tools/git-repositories.js +557 -0
- package/dist/tools/git-repositories.js.map +1 -0
- package/dist/tools/git-reset.d.ts +134 -0
- package/dist/tools/git-reset.d.ts.map +1 -0
- package/dist/tools/git-reset.js +236 -0
- package/dist/tools/git-reset.js.map +1 -0
- package/dist/tools/git-revert.d.ts +153 -0
- package/dist/tools/git-revert.d.ts.map +1 -0
- package/dist/tools/git-revert.js +211 -0
- package/dist/tools/git-revert.js.map +1 -0
- package/dist/tools/git-stash.d.ts +144 -0
- package/dist/tools/git-stash.d.ts.map +1 -0
- package/dist/tools/git-stash.js +298 -0
- package/dist/tools/git-stash.js.map +1 -0
- package/dist/tools/git-submodule.d.ts +156 -0
- package/dist/tools/git-submodule.d.ts.map +1 -0
- package/dist/tools/git-submodule.js +314 -0
- package/dist/tools/git-submodule.js.map +1 -0
- package/dist/tools/git-sync.d.ts +4 -4
- package/dist/tools/git-worktree.d.ts +163 -0
- package/dist/tools/git-worktree.d.ts.map +1 -0
- package/dist/tools/git-worktree.js +294 -0
- package/dist/tools/git-worktree.js.map +1 -0
- package/dist/tools/pulls.d.ts +2 -2
- package/dist/tools/users.d.ts +2 -2
- package/dist/tools/version-control.d.ts +4 -4
- package/package.json +2 -2
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ghGistsTool = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const index_js_1 = require("../providers/index.js");
|
|
6
|
+
/**
|
|
7
|
+
* Tool: gh-gists
|
|
8
|
+
*
|
|
9
|
+
* DESCRIÇÃO:
|
|
10
|
+
* Gerenciamento de Gists GitHub (exclusivo GitHub) com múltiplas ações
|
|
11
|
+
*
|
|
12
|
+
* FUNCIONALIDADES:
|
|
13
|
+
* - Criar gist
|
|
14
|
+
* - Listar gists
|
|
15
|
+
* - Obter gist
|
|
16
|
+
* - Atualizar gist
|
|
17
|
+
* - Deletar gist
|
|
18
|
+
* - Fazer fork do gist
|
|
19
|
+
* - Favoritar gist
|
|
20
|
+
* - Comentar gist
|
|
21
|
+
*
|
|
22
|
+
* USO:
|
|
23
|
+
* - Para compartilhar código rapidamente
|
|
24
|
+
* - Para snippets de código
|
|
25
|
+
* - Para documentação rápida
|
|
26
|
+
* - Para testes de código
|
|
27
|
+
*
|
|
28
|
+
* RECOMENDAÇÕES:
|
|
29
|
+
* - Use para código pequeno e focado
|
|
30
|
+
* - Adicione descrições claras
|
|
31
|
+
* - Use tags apropriadas
|
|
32
|
+
* - Mantenha gists organizados
|
|
33
|
+
*/
|
|
34
|
+
const GhGistsInputSchema = zod_1.z.object({
|
|
35
|
+
action: zod_1.z.enum(['create', 'list', 'get', 'update', 'delete', 'fork', 'star', 'comment']),
|
|
36
|
+
owner: zod_1.z.string(),
|
|
37
|
+
repo: zod_1.z.string(),
|
|
38
|
+
provider: zod_1.z.enum(['github']).describe('Provider to use (github only)'),
|
|
39
|
+
projectPath: zod_1.z.string().describe('Local project path for git operations'),
|
|
40
|
+
// Para create/update
|
|
41
|
+
gist_id: zod_1.z.string().optional(),
|
|
42
|
+
description: zod_1.z.string().optional(),
|
|
43
|
+
files: zod_1.z.record(zod_1.z.object({
|
|
44
|
+
content: zod_1.z.string(),
|
|
45
|
+
filename: zod_1.z.string().optional()
|
|
46
|
+
})).optional(),
|
|
47
|
+
public: zod_1.z.boolean().optional(),
|
|
48
|
+
// Para list
|
|
49
|
+
username: zod_1.z.string().optional(),
|
|
50
|
+
page: zod_1.z.number().min(1).optional(),
|
|
51
|
+
limit: zod_1.z.number().min(1).max(100).optional(),
|
|
52
|
+
// Para star
|
|
53
|
+
star: zod_1.z.boolean().optional(),
|
|
54
|
+
// Para comment
|
|
55
|
+
comment_body: zod_1.z.string().optional(),
|
|
56
|
+
});
|
|
57
|
+
const GhGistsResultSchema = zod_1.z.object({
|
|
58
|
+
success: zod_1.z.boolean(),
|
|
59
|
+
action: zod_1.z.string(),
|
|
60
|
+
message: zod_1.z.string(),
|
|
61
|
+
data: zod_1.z.any().optional(),
|
|
62
|
+
error: zod_1.z.string().optional()
|
|
63
|
+
});
|
|
64
|
+
exports.ghGistsTool = {
|
|
65
|
+
name: 'gh-gists',
|
|
66
|
+
description: 'Manage GitHub Gists (GitHub only) with multiple actions: create, list, get, update, delete, fork, star, comment. Exclusivo para GitHub. Boas práticas (solo): use para compartilhar código rapidamente, snippets de código, documentação rápida; use para código pequeno e focado, adicione descrições claras.',
|
|
67
|
+
inputSchema: {
|
|
68
|
+
type: 'object',
|
|
69
|
+
properties: {
|
|
70
|
+
action: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
enum: ['create', 'list', 'get', 'update', 'delete', 'fork', 'star', 'comment'],
|
|
73
|
+
description: 'Action to perform on gists'
|
|
74
|
+
},
|
|
75
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
76
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
77
|
+
provider: { type: 'string', enum: ['github'], description: 'Provider to use (github only)' },
|
|
78
|
+
projectPath: { type: 'string', description: 'Local project path for git operations' },
|
|
79
|
+
gist_id: { type: 'string', description: 'Gist ID' },
|
|
80
|
+
description: { type: 'string', description: 'Gist description' },
|
|
81
|
+
files: { type: 'object', description: 'Gist files' },
|
|
82
|
+
public: { type: 'boolean', description: 'Public gist' },
|
|
83
|
+
username: { type: 'string', description: 'Username for listing gists' },
|
|
84
|
+
page: { type: 'number', description: 'Page number', minimum: 1 },
|
|
85
|
+
limit: { type: 'number', description: 'Items per page', minimum: 1, maximum: 100 },
|
|
86
|
+
star: { type: 'boolean', description: 'Star/unstar gist' },
|
|
87
|
+
comment_body: { type: 'string', description: 'Comment content' }
|
|
88
|
+
},
|
|
89
|
+
required: ['action', 'owner', 'repo', 'provider', 'projectPath']
|
|
90
|
+
},
|
|
91
|
+
async handler(input) {
|
|
92
|
+
try {
|
|
93
|
+
const validatedInput = GhGistsInputSchema.parse(input);
|
|
94
|
+
if (validatedInput.provider !== 'github') {
|
|
95
|
+
throw new Error('gh-gists é exclusivo para GitHub');
|
|
96
|
+
}
|
|
97
|
+
const provider = index_js_1.globalProviderFactory.getProvider('github');
|
|
98
|
+
if (!provider) {
|
|
99
|
+
throw new Error('Provider GitHub não encontrado');
|
|
100
|
+
}
|
|
101
|
+
switch (validatedInput.action) {
|
|
102
|
+
case 'create':
|
|
103
|
+
return await this.create(validatedInput, provider);
|
|
104
|
+
case 'list':
|
|
105
|
+
return await this.list(validatedInput, provider);
|
|
106
|
+
case 'get':
|
|
107
|
+
return await this.get(validatedInput, provider);
|
|
108
|
+
case 'update':
|
|
109
|
+
return await this.update(validatedInput, provider);
|
|
110
|
+
case 'delete':
|
|
111
|
+
return await this.delete(validatedInput, provider);
|
|
112
|
+
case 'fork':
|
|
113
|
+
return await this.fork(validatedInput, provider);
|
|
114
|
+
case 'star':
|
|
115
|
+
return await this.star(validatedInput, provider);
|
|
116
|
+
case 'comment':
|
|
117
|
+
return await this.comment(validatedInput, provider);
|
|
118
|
+
default:
|
|
119
|
+
throw new Error(`Ação não suportada: ${validatedInput.action}`);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
catch (error) {
|
|
123
|
+
return {
|
|
124
|
+
success: false,
|
|
125
|
+
action: input.action,
|
|
126
|
+
message: 'Erro na operação de gist',
|
|
127
|
+
error: error instanceof Error ? error.message : String(error)
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
async create(params, provider) {
|
|
132
|
+
try {
|
|
133
|
+
if (!params.files) {
|
|
134
|
+
throw new Error('files são obrigatórios para create');
|
|
135
|
+
}
|
|
136
|
+
// Simular criação de gist (implementação real dependeria da API do GitHub)
|
|
137
|
+
const gist = {
|
|
138
|
+
id: `gist-${Date.now()}`,
|
|
139
|
+
description: params.description || '',
|
|
140
|
+
files: params.files,
|
|
141
|
+
public: params.public || false,
|
|
142
|
+
created_at: new Date().toISOString(),
|
|
143
|
+
updated_at: new Date().toISOString()
|
|
144
|
+
};
|
|
145
|
+
return {
|
|
146
|
+
success: true,
|
|
147
|
+
action: 'create',
|
|
148
|
+
message: 'Gist criado com sucesso',
|
|
149
|
+
data: gist
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
catch (error) {
|
|
153
|
+
throw new Error(`Falha ao criar gist: ${error instanceof Error ? error.message : String(error)}`);
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
async list(params, provider) {
|
|
157
|
+
try {
|
|
158
|
+
const page = params.page || 1;
|
|
159
|
+
const limit = params.limit || 30;
|
|
160
|
+
// Simular listagem de gists
|
|
161
|
+
const gists = [
|
|
162
|
+
{
|
|
163
|
+
id: 'gist-1',
|
|
164
|
+
description: 'Sample gist 1',
|
|
165
|
+
public: true,
|
|
166
|
+
created_at: new Date().toISOString()
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
id: 'gist-2',
|
|
170
|
+
description: 'Sample gist 2',
|
|
171
|
+
public: false,
|
|
172
|
+
created_at: new Date().toISOString()
|
|
173
|
+
}
|
|
174
|
+
];
|
|
175
|
+
return {
|
|
176
|
+
success: true,
|
|
177
|
+
action: 'list',
|
|
178
|
+
message: `${gists.length} gists encontrados`,
|
|
179
|
+
data: {
|
|
180
|
+
gists,
|
|
181
|
+
page,
|
|
182
|
+
limit,
|
|
183
|
+
total: gists.length
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
catch (error) {
|
|
188
|
+
throw new Error(`Falha ao listar gists: ${error instanceof Error ? error.message : String(error)}`);
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
async get(params, provider) {
|
|
192
|
+
try {
|
|
193
|
+
if (!params.gist_id) {
|
|
194
|
+
throw new Error('gist_id é obrigatório para get');
|
|
195
|
+
}
|
|
196
|
+
// Simular obtenção de gist
|
|
197
|
+
const gist = {
|
|
198
|
+
id: params.gist_id,
|
|
199
|
+
description: 'Sample gist',
|
|
200
|
+
files: {
|
|
201
|
+
'example.js': {
|
|
202
|
+
content: 'console.log("Hello, World!");',
|
|
203
|
+
filename: 'example.js'
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
public: true,
|
|
207
|
+
created_at: new Date().toISOString(),
|
|
208
|
+
updated_at: new Date().toISOString()
|
|
209
|
+
};
|
|
210
|
+
return {
|
|
211
|
+
success: true,
|
|
212
|
+
action: 'get',
|
|
213
|
+
message: `Gist ${params.gist_id} obtido com sucesso`,
|
|
214
|
+
data: gist
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
catch (error) {
|
|
218
|
+
throw new Error(`Falha ao obter gist: ${error instanceof Error ? error.message : String(error)}`);
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
async update(params, provider) {
|
|
222
|
+
try {
|
|
223
|
+
if (!params.gist_id) {
|
|
224
|
+
throw new Error('gist_id é obrigatório para update');
|
|
225
|
+
}
|
|
226
|
+
// Simular atualização de gist
|
|
227
|
+
const gist = {
|
|
228
|
+
id: params.gist_id,
|
|
229
|
+
description: params.description || 'Updated gist',
|
|
230
|
+
files: params.files || {},
|
|
231
|
+
public: params.public,
|
|
232
|
+
updated_at: new Date().toISOString()
|
|
233
|
+
};
|
|
234
|
+
return {
|
|
235
|
+
success: true,
|
|
236
|
+
action: 'update',
|
|
237
|
+
message: `Gist ${params.gist_id} atualizado com sucesso`,
|
|
238
|
+
data: gist
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
catch (error) {
|
|
242
|
+
throw new Error(`Falha ao atualizar gist: ${error instanceof Error ? error.message : String(error)}`);
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
async delete(params, provider) {
|
|
246
|
+
try {
|
|
247
|
+
if (!params.gist_id) {
|
|
248
|
+
throw new Error('gist_id é obrigatório para delete');
|
|
249
|
+
}
|
|
250
|
+
return {
|
|
251
|
+
success: true,
|
|
252
|
+
action: 'delete',
|
|
253
|
+
message: `Gist ${params.gist_id} deletado com sucesso`,
|
|
254
|
+
data: { deleted: true }
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
catch (error) {
|
|
258
|
+
throw new Error(`Falha ao deletar gist: ${error instanceof Error ? error.message : String(error)}`);
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
async fork(params, provider) {
|
|
262
|
+
try {
|
|
263
|
+
if (!params.gist_id) {
|
|
264
|
+
throw new Error('gist_id é obrigatório para fork');
|
|
265
|
+
}
|
|
266
|
+
// Simular fork de gist
|
|
267
|
+
const forkedGist = {
|
|
268
|
+
id: `gist-${Date.now()}`,
|
|
269
|
+
description: `Fork of ${params.gist_id}`,
|
|
270
|
+
forked_from: params.gist_id,
|
|
271
|
+
created_at: new Date().toISOString()
|
|
272
|
+
};
|
|
273
|
+
return {
|
|
274
|
+
success: true,
|
|
275
|
+
action: 'fork',
|
|
276
|
+
message: `Fork do gist ${params.gist_id} criado com sucesso`,
|
|
277
|
+
data: forkedGist
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
catch (error) {
|
|
281
|
+
throw new Error(`Falha ao fazer fork do gist: ${error instanceof Error ? error.message : String(error)}`);
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
async star(params, provider) {
|
|
285
|
+
try {
|
|
286
|
+
if (!params.gist_id) {
|
|
287
|
+
throw new Error('gist_id é obrigatório para star');
|
|
288
|
+
}
|
|
289
|
+
const action = params.star ? 'favoritado' : 'desfavoritado';
|
|
290
|
+
return {
|
|
291
|
+
success: true,
|
|
292
|
+
action: 'star',
|
|
293
|
+
message: `Gist ${params.gist_id} ${action} com sucesso`,
|
|
294
|
+
data: {
|
|
295
|
+
gist_id: params.gist_id,
|
|
296
|
+
starred: params.star
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
catch (error) {
|
|
301
|
+
throw new Error(`Falha ao favoritar gist: ${error instanceof Error ? error.message : String(error)}`);
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
async comment(params, provider) {
|
|
305
|
+
try {
|
|
306
|
+
if (!params.gist_id || !params.comment_body) {
|
|
307
|
+
throw new Error('gist_id e comment_body são obrigatórios para comment');
|
|
308
|
+
}
|
|
309
|
+
// Simular comentário em gist
|
|
310
|
+
const comment = {
|
|
311
|
+
id: `comment-${Date.now()}`,
|
|
312
|
+
gist_id: params.gist_id,
|
|
313
|
+
body: params.comment_body,
|
|
314
|
+
created_at: new Date().toISOString()
|
|
315
|
+
};
|
|
316
|
+
return {
|
|
317
|
+
success: true,
|
|
318
|
+
action: 'comment',
|
|
319
|
+
message: `Comentário adicionado ao gist ${params.gist_id} com sucesso`,
|
|
320
|
+
data: comment
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
catch (error) {
|
|
324
|
+
throw new Error(`Falha ao comentar no gist: ${error instanceof Error ? error.message : String(error)}`);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
//# sourceMappingURL=gh-gists.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gh-gists.js","sourceRoot":"","sources":["../../src/tools/gh-gists.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oDAA6E;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,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|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VcsOperations } from '../providers/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Tool: gh-projects
|
|
5
|
+
*
|
|
6
|
+
* DESCRIÇÃO:
|
|
7
|
+
* Gerenciamento de Projects GitHub (exclusivo GitHub) com múltiplas ações
|
|
8
|
+
*
|
|
9
|
+
* FUNCIONALIDADES:
|
|
10
|
+
* - Listar projetos
|
|
11
|
+
* - Criar projeto
|
|
12
|
+
* - Obter projeto
|
|
13
|
+
* - Atualizar projeto
|
|
14
|
+
* - Deletar projeto
|
|
15
|
+
* - Gerenciar itens do projeto
|
|
16
|
+
* - Gerenciar campos do projeto
|
|
17
|
+
*
|
|
18
|
+
* USO:
|
|
19
|
+
* - Para gerenciamento de projetos
|
|
20
|
+
* - Para organização de tarefas
|
|
21
|
+
* - Para planejamento de sprints
|
|
22
|
+
* - Para tracking de progresso
|
|
23
|
+
*
|
|
24
|
+
* RECOMENDAÇÕES:
|
|
25
|
+
* - Use para projetos de médio a longo prazo
|
|
26
|
+
* - Configure campos personalizados adequadamente
|
|
27
|
+
* - Mantenha itens organizados
|
|
28
|
+
* - Use templates quando possível
|
|
29
|
+
*/
|
|
30
|
+
declare const GhProjectsInputSchema: z.ZodObject<{
|
|
31
|
+
action: z.ZodEnum<["list", "create", "get", "update", "delete", "items", "fields"]>;
|
|
32
|
+
owner: z.ZodString;
|
|
33
|
+
repo: z.ZodString;
|
|
34
|
+
provider: z.ZodEnum<["github"]>;
|
|
35
|
+
projectPath: z.ZodString;
|
|
36
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
37
|
+
title: z.ZodOptional<z.ZodString>;
|
|
38
|
+
body: z.ZodOptional<z.ZodString>;
|
|
39
|
+
state: z.ZodOptional<z.ZodEnum<["open", "closed"]>>;
|
|
40
|
+
public: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
item_id: z.ZodOptional<z.ZodString>;
|
|
42
|
+
content_id: z.ZodOptional<z.ZodString>;
|
|
43
|
+
content_type: z.ZodOptional<z.ZodEnum<["Issue", "PullRequest", "DraftIssue"]>>;
|
|
44
|
+
field_id: z.ZodOptional<z.ZodString>;
|
|
45
|
+
field_value: z.ZodOptional<z.ZodString>;
|
|
46
|
+
field_name: z.ZodOptional<z.ZodString>;
|
|
47
|
+
field_type: z.ZodOptional<z.ZodEnum<["TEXT", "SINGLE_SELECT", "NUMBER", "DATE"]>>;
|
|
48
|
+
field_options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
49
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
provider: "github";
|
|
53
|
+
owner: string;
|
|
54
|
+
repo: string;
|
|
55
|
+
action: "delete" | "get" | "create" | "list" | "update" | "items" | "fields";
|
|
56
|
+
projectPath: string;
|
|
57
|
+
title?: string | undefined;
|
|
58
|
+
body?: string | undefined;
|
|
59
|
+
state?: "open" | "closed" | undefined;
|
|
60
|
+
page?: number | undefined;
|
|
61
|
+
limit?: number | undefined;
|
|
62
|
+
content_type?: "Issue" | "PullRequest" | "DraftIssue" | undefined;
|
|
63
|
+
public?: boolean | undefined;
|
|
64
|
+
project_id?: string | undefined;
|
|
65
|
+
item_id?: string | undefined;
|
|
66
|
+
content_id?: string | undefined;
|
|
67
|
+
field_id?: string | undefined;
|
|
68
|
+
field_value?: string | undefined;
|
|
69
|
+
field_name?: string | undefined;
|
|
70
|
+
field_type?: "TEXT" | "SINGLE_SELECT" | "NUMBER" | "DATE" | undefined;
|
|
71
|
+
field_options?: string[] | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
provider: "github";
|
|
74
|
+
owner: string;
|
|
75
|
+
repo: string;
|
|
76
|
+
action: "delete" | "get" | "create" | "list" | "update" | "items" | "fields";
|
|
77
|
+
projectPath: string;
|
|
78
|
+
title?: string | undefined;
|
|
79
|
+
body?: string | undefined;
|
|
80
|
+
state?: "open" | "closed" | undefined;
|
|
81
|
+
page?: number | undefined;
|
|
82
|
+
limit?: number | undefined;
|
|
83
|
+
content_type?: "Issue" | "PullRequest" | "DraftIssue" | undefined;
|
|
84
|
+
public?: boolean | undefined;
|
|
85
|
+
project_id?: string | undefined;
|
|
86
|
+
item_id?: string | undefined;
|
|
87
|
+
content_id?: string | undefined;
|
|
88
|
+
field_id?: string | undefined;
|
|
89
|
+
field_value?: string | undefined;
|
|
90
|
+
field_name?: string | undefined;
|
|
91
|
+
field_type?: "TEXT" | "SINGLE_SELECT" | "NUMBER" | "DATE" | undefined;
|
|
92
|
+
field_options?: string[] | undefined;
|
|
93
|
+
}>;
|
|
94
|
+
export type GhProjectsInput = z.infer<typeof GhProjectsInputSchema>;
|
|
95
|
+
declare const GhProjectsResultSchema: z.ZodObject<{
|
|
96
|
+
success: z.ZodBoolean;
|
|
97
|
+
action: z.ZodString;
|
|
98
|
+
message: z.ZodString;
|
|
99
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
100
|
+
error: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
message: string;
|
|
103
|
+
action: string;
|
|
104
|
+
success: boolean;
|
|
105
|
+
error?: string | undefined;
|
|
106
|
+
data?: any;
|
|
107
|
+
}, {
|
|
108
|
+
message: string;
|
|
109
|
+
action: string;
|
|
110
|
+
success: boolean;
|
|
111
|
+
error?: string | undefined;
|
|
112
|
+
data?: any;
|
|
113
|
+
}>;
|
|
114
|
+
export type GhProjectsResult = z.infer<typeof GhProjectsResultSchema>;
|
|
115
|
+
export declare const ghProjectsTool: {
|
|
116
|
+
name: string;
|
|
117
|
+
description: string;
|
|
118
|
+
inputSchema: {
|
|
119
|
+
type: string;
|
|
120
|
+
properties: {
|
|
121
|
+
action: {
|
|
122
|
+
type: string;
|
|
123
|
+
enum: string[];
|
|
124
|
+
description: string;
|
|
125
|
+
};
|
|
126
|
+
owner: {
|
|
127
|
+
type: string;
|
|
128
|
+
description: string;
|
|
129
|
+
};
|
|
130
|
+
repo: {
|
|
131
|
+
type: string;
|
|
132
|
+
description: string;
|
|
133
|
+
};
|
|
134
|
+
provider: {
|
|
135
|
+
type: string;
|
|
136
|
+
enum: string[];
|
|
137
|
+
description: string;
|
|
138
|
+
};
|
|
139
|
+
projectPath: {
|
|
140
|
+
type: string;
|
|
141
|
+
description: string;
|
|
142
|
+
};
|
|
143
|
+
project_id: {
|
|
144
|
+
type: string;
|
|
145
|
+
description: string;
|
|
146
|
+
};
|
|
147
|
+
title: {
|
|
148
|
+
type: string;
|
|
149
|
+
description: string;
|
|
150
|
+
};
|
|
151
|
+
body: {
|
|
152
|
+
type: string;
|
|
153
|
+
description: string;
|
|
154
|
+
};
|
|
155
|
+
state: {
|
|
156
|
+
type: string;
|
|
157
|
+
enum: string[];
|
|
158
|
+
description: string;
|
|
159
|
+
};
|
|
160
|
+
public: {
|
|
161
|
+
type: string;
|
|
162
|
+
description: string;
|
|
163
|
+
};
|
|
164
|
+
item_id: {
|
|
165
|
+
type: string;
|
|
166
|
+
description: string;
|
|
167
|
+
};
|
|
168
|
+
content_id: {
|
|
169
|
+
type: string;
|
|
170
|
+
description: string;
|
|
171
|
+
};
|
|
172
|
+
content_type: {
|
|
173
|
+
type: string;
|
|
174
|
+
enum: string[];
|
|
175
|
+
description: string;
|
|
176
|
+
};
|
|
177
|
+
field_id: {
|
|
178
|
+
type: string;
|
|
179
|
+
description: string;
|
|
180
|
+
};
|
|
181
|
+
field_value: {
|
|
182
|
+
type: string;
|
|
183
|
+
description: string;
|
|
184
|
+
};
|
|
185
|
+
field_name: {
|
|
186
|
+
type: string;
|
|
187
|
+
description: string;
|
|
188
|
+
};
|
|
189
|
+
field_type: {
|
|
190
|
+
type: string;
|
|
191
|
+
enum: string[];
|
|
192
|
+
description: string;
|
|
193
|
+
};
|
|
194
|
+
field_options: {
|
|
195
|
+
type: string;
|
|
196
|
+
items: {
|
|
197
|
+
type: string;
|
|
198
|
+
};
|
|
199
|
+
description: string;
|
|
200
|
+
};
|
|
201
|
+
page: {
|
|
202
|
+
type: string;
|
|
203
|
+
description: string;
|
|
204
|
+
minimum: number;
|
|
205
|
+
};
|
|
206
|
+
limit: {
|
|
207
|
+
type: string;
|
|
208
|
+
description: string;
|
|
209
|
+
minimum: number;
|
|
210
|
+
maximum: number;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
required: string[];
|
|
214
|
+
};
|
|
215
|
+
handler(input: GhProjectsInput): Promise<GhProjectsResult>;
|
|
216
|
+
list(params: GhProjectsInput, provider: VcsOperations): Promise<GhProjectsResult>;
|
|
217
|
+
create(params: GhProjectsInput, provider: VcsOperations): Promise<GhProjectsResult>;
|
|
218
|
+
get(params: GhProjectsInput, provider: VcsOperations): Promise<GhProjectsResult>;
|
|
219
|
+
update(params: GhProjectsInput, provider: VcsOperations): Promise<GhProjectsResult>;
|
|
220
|
+
delete(params: GhProjectsInput, provider: VcsOperations): Promise<GhProjectsResult>;
|
|
221
|
+
items(params: GhProjectsInput, provider: VcsOperations): Promise<GhProjectsResult>;
|
|
222
|
+
fields(params: GhProjectsInput, provider: VcsOperations): Promise<GhProjectsResult>;
|
|
223
|
+
};
|
|
224
|
+
export {};
|
|
225
|
+
//# sourceMappingURL=gh-projects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gh-projects.d.ts","sourceRoot":"","sources":["../../src/tools/gh-projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAyB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BzB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC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