@andrebuzeli/git-mcp 2.42.0 → 2.43.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.js +3 -3
- package/dist/tools/git-remote.d.ts +2 -2
- package/dist/tools/git-update-project.d.ts +54 -33
- package/dist/tools/git-update-project.d.ts.map +1 -1
- package/dist/tools/git-update-project.js +398 -153
- package/dist/tools/git-update-project.js.map +1 -1
- package/dist/utils/git-operations.d.ts.map +1 -1
- package/dist/utils/git-operations.js +5 -9
- package/dist/utils/git-operations.js.map +1 -1
- package/package.json +60 -59
package/dist/server.js
CHANGED
|
@@ -32,7 +32,7 @@ const index_js_2 = require("./providers/index.js");
|
|
|
32
32
|
* - git-packages: Gerenciamento de pacotes
|
|
33
33
|
* - git-projects: Gerenciamento de projetos
|
|
34
34
|
*/
|
|
35
|
-
// Git Core Tools (
|
|
35
|
+
// Git Core Tools (21)
|
|
36
36
|
const git_repositories_js_1 = require("./tools/git-repositories.js");
|
|
37
37
|
const git_commits_js_1 = require("./tools/git-commits.js");
|
|
38
38
|
const git_branches_js_1 = require("./tools/git-branches.js");
|
|
@@ -62,7 +62,7 @@ const git_projects_js_1 = require("./tools/git-projects.js");
|
|
|
62
62
|
* - Handler deve ser assíncrono e retornar resultado
|
|
63
63
|
*
|
|
64
64
|
* ORGANIZAÇÃO:
|
|
65
|
-
* - Git Core (
|
|
65
|
+
* - Git Core (21): Funcionam com GitHub + Gitea
|
|
66
66
|
*
|
|
67
67
|
* USO:
|
|
68
68
|
* - Para listagem de tools disponíveis
|
|
@@ -70,7 +70,7 @@ const git_projects_js_1 = require("./tools/git-projects.js");
|
|
|
70
70
|
* - Para validação de parâmetros
|
|
71
71
|
*/
|
|
72
72
|
const tools = [
|
|
73
|
-
// Git Core Tools (
|
|
73
|
+
// Git Core Tools (21) - GitHub + Gitea
|
|
74
74
|
git_repositories_js_1.gitRepositoriesTool,
|
|
75
75
|
git_commits_js_1.commitsTool,
|
|
76
76
|
git_branches_js_1.branchesTool,
|
|
@@ -37,7 +37,7 @@ declare const GitRemoteInputSchema: z.ZodObject<{
|
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
provider: "gitea" | "github";
|
|
39
39
|
repo: string;
|
|
40
|
-
action: "add" | "show" | "remove" | "prune" | "
|
|
40
|
+
action: "add" | "show" | "remove" | "prune" | "set-url" | "rename";
|
|
41
41
|
projectPath: string;
|
|
42
42
|
remote?: string | undefined;
|
|
43
43
|
new_name?: string | undefined;
|
|
@@ -47,7 +47,7 @@ declare const GitRemoteInputSchema: z.ZodObject<{
|
|
|
47
47
|
}, {
|
|
48
48
|
provider: "gitea" | "github";
|
|
49
49
|
repo: string;
|
|
50
|
-
action: "add" | "show" | "remove" | "prune" | "
|
|
50
|
+
action: "add" | "show" | "remove" | "prune" | "set-url" | "rename";
|
|
51
51
|
projectPath: string;
|
|
52
52
|
remote?: string | undefined;
|
|
53
53
|
new_name?: string | undefined;
|
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const GitUpdateProjectInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
3
|
+
action: z.ZodLiteral<"init">;
|
|
4
|
+
repo: z.ZodString;
|
|
5
|
+
projectPath: z.ZodString;
|
|
6
|
+
provider: z.ZodEnum<["gitea", "github"]>;
|
|
7
|
+
message: z.ZodString;
|
|
8
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
9
|
+
createRepo: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
forcePush: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
granular: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
provider: "gitea" | "github";
|
|
14
|
+
message: string;
|
|
15
|
+
repo: string;
|
|
16
|
+
action: "init";
|
|
17
|
+
projectPath: string;
|
|
18
|
+
branch?: string | undefined;
|
|
19
|
+
createRepo?: boolean | undefined;
|
|
20
|
+
forcePush?: boolean | undefined;
|
|
21
|
+
granular?: boolean | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
provider: "gitea" | "github";
|
|
24
|
+
message: string;
|
|
25
|
+
repo: string;
|
|
26
|
+
action: "init";
|
|
27
|
+
projectPath: string;
|
|
28
|
+
branch?: string | undefined;
|
|
29
|
+
createRepo?: boolean | undefined;
|
|
30
|
+
forcePush?: boolean | undefined;
|
|
31
|
+
granular?: boolean | undefined;
|
|
32
|
+
}>, z.ZodObject<{
|
|
3
33
|
action: z.ZodLiteral<"update">;
|
|
4
34
|
repo: z.ZodString;
|
|
5
35
|
projectPath: z.ZodString;
|
|
@@ -71,6 +101,21 @@ declare const GitUpdateProjectInputSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
71
101
|
branch?: string | undefined;
|
|
72
102
|
maxCount?: number | undefined;
|
|
73
103
|
oneline?: boolean | undefined;
|
|
104
|
+
}>, z.ZodObject<{
|
|
105
|
+
action: z.ZodLiteral<"reset">;
|
|
106
|
+
projectPath: z.ZodString;
|
|
107
|
+
mode: z.ZodOptional<z.ZodEnum<["soft", "mixed", "hard"]>>;
|
|
108
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
action: "reset";
|
|
111
|
+
projectPath: string;
|
|
112
|
+
commit?: string | undefined;
|
|
113
|
+
mode?: "soft" | "hard" | "mixed" | undefined;
|
|
114
|
+
}, {
|
|
115
|
+
action: "reset";
|
|
116
|
+
projectPath: string;
|
|
117
|
+
commit?: string | undefined;
|
|
118
|
+
mode?: "soft" | "hard" | "mixed" | undefined;
|
|
74
119
|
}>, z.ZodObject<{
|
|
75
120
|
action: z.ZodLiteral<"stash">;
|
|
76
121
|
projectPath: z.ZodString;
|
|
@@ -122,36 +167,6 @@ declare const GitUpdateProjectInputSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
122
167
|
projectPath: string;
|
|
123
168
|
branch?: string | undefined;
|
|
124
169
|
forcePush?: boolean | undefined;
|
|
125
|
-
}>, z.ZodObject<{
|
|
126
|
-
action: z.ZodLiteral<"init">;
|
|
127
|
-
repo: z.ZodString;
|
|
128
|
-
projectPath: z.ZodString;
|
|
129
|
-
provider: z.ZodEnum<["gitea", "github"]>;
|
|
130
|
-
message: z.ZodString;
|
|
131
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
132
|
-
createRepo: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
-
forcePush: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
-
granular: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
-
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
provider: "gitea" | "github";
|
|
137
|
-
message: string;
|
|
138
|
-
repo: string;
|
|
139
|
-
action: "init";
|
|
140
|
-
projectPath: string;
|
|
141
|
-
branch?: string | undefined;
|
|
142
|
-
forcePush?: boolean | undefined;
|
|
143
|
-
createRepo?: boolean | undefined;
|
|
144
|
-
granular?: boolean | undefined;
|
|
145
|
-
}, {
|
|
146
|
-
provider: "gitea" | "github";
|
|
147
|
-
message: string;
|
|
148
|
-
repo: string;
|
|
149
|
-
action: "init";
|
|
150
|
-
projectPath: string;
|
|
151
|
-
branch?: string | undefined;
|
|
152
|
-
forcePush?: boolean | undefined;
|
|
153
|
-
createRepo?: boolean | undefined;
|
|
154
|
-
granular?: boolean | undefined;
|
|
155
170
|
}>]>;
|
|
156
171
|
export type GitUpdateProjectInput = z.infer<typeof GitUpdateProjectInputSchema>;
|
|
157
172
|
declare const GitUpdateProjectResultSchema: z.ZodObject<{
|
|
@@ -251,6 +266,12 @@ export declare const gitUpdateProjectTool: {
|
|
|
251
266
|
description: string;
|
|
252
267
|
default: boolean;
|
|
253
268
|
};
|
|
269
|
+
mode: {
|
|
270
|
+
type: string;
|
|
271
|
+
enum: string[];
|
|
272
|
+
description: string;
|
|
273
|
+
default: string;
|
|
274
|
+
};
|
|
254
275
|
operation: {
|
|
255
276
|
type: string;
|
|
256
277
|
enum: string[];
|
|
@@ -264,6 +285,9 @@ export declare const gitUpdateProjectTool: {
|
|
|
264
285
|
handleUpdate(params: GitUpdateProjectInput & {
|
|
265
286
|
action: "update";
|
|
266
287
|
}): Promise<GitUpdateProjectResult>;
|
|
288
|
+
handleInit(params: GitUpdateProjectInput & {
|
|
289
|
+
action: "init";
|
|
290
|
+
}): Promise<GitUpdateProjectResult>;
|
|
267
291
|
handleStatus(params: GitUpdateProjectInput & {
|
|
268
292
|
action: "status";
|
|
269
293
|
}): Promise<GitUpdateProjectResult>;
|
|
@@ -285,9 +309,6 @@ export declare const gitUpdateProjectTool: {
|
|
|
285
309
|
handleSync(params: GitUpdateProjectInput & {
|
|
286
310
|
action: "sync";
|
|
287
311
|
}): Promise<GitUpdateProjectResult>;
|
|
288
|
-
handleInit(params: GitUpdateProjectInput & {
|
|
289
|
-
action: "init";
|
|
290
|
-
}): Promise<GitUpdateProjectResult>;
|
|
291
312
|
groupFilesByType(projectPath: string): Promise<Record<string, string[]>>;
|
|
292
313
|
};
|
|
293
314
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-update-project.d.ts","sourceRoot":"","sources":["../../src/tools/git-update-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,QAAA,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"git-update-project.d.ts","sourceRoot":"","sources":["../../src/tools/git-update-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmF/B,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