@andrebuzeli/git-mcp 3.0.1 → 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.
- package/README.md +329 -356
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +83 -82
- package/dist/server.js.map +1 -1
- package/dist/tools/git-branches.d.ts +359 -125
- package/dist/tools/git-branches.d.ts.map +1 -1
- package/dist/tools/git-branches.js +530 -179
- package/dist/tools/git-branches.js.map +1 -1
- package/dist/tools/git-commits.d.ts +2 -2
- package/dist/tools/git-config.d.ts +2 -2
- package/dist/tools/git-files.d.ts +406 -246
- package/dist/tools/git-files.d.ts.map +1 -1
- package/dist/tools/git-files.js +499 -556
- package/dist/tools/git-files.js.map +1 -1
- package/dist/tools/git-issues.d.ts +10 -10
- package/dist/tools/git-packages.d.ts +2 -2
- package/dist/tools/git-projects.d.ts +57 -142
- package/dist/tools/git-projects.d.ts.map +1 -1
- package/dist/tools/git-projects.js +283 -281
- package/dist/tools/git-projects.js.map +1 -1
- package/dist/tools/git-publish.d.ts +327 -0
- package/dist/tools/git-publish.d.ts.map +1 -0
- package/dist/tools/git-publish.js +632 -0
- package/dist/tools/git-publish.js.map +1 -0
- package/dist/tools/git-pulls.d.ts +16 -16
- package/dist/tools/git-releases.d.ts +401 -131
- package/dist/tools/git-releases.d.ts.map +1 -1
- package/dist/tools/git-releases.js +469 -374
- package/dist/tools/git-releases.js.map +1 -1
- package/dist/tools/git-remote.d.ts +4 -4
- package/dist/tools/git-repositories.d.ts +8 -8
- package/dist/tools/git-reset.d.ts +65 -106
- package/dist/tools/git-reset.d.ts.map +1 -1
- package/dist/tools/git-reset.js +149 -265
- package/dist/tools/git-reset.js.map +1 -1
- package/dist/tools/git-stash.d.ts +68 -110
- package/dist/tools/git-stash.d.ts.map +1 -1
- package/dist/tools/git-stash.js +186 -311
- package/dist/tools/git-stash.js.map +1 -1
- package/dist/tools/git-sync.d.ts +80 -149
- package/dist/tools/git-sync.d.ts.map +1 -1
- package/dist/tools/git-sync.js +246 -346
- package/dist/tools/git-sync.js.map +1 -1
- package/dist/tools/git-tags.d.ts +2 -2
- package/dist/tools/git-update-project.d.ts +159 -4
- package/dist/tools/git-update-project.d.ts.map +1 -1
- package/dist/tools/git-update-project.js +349 -7
- package/dist/tools/git-update-project.js.map +1 -1
- package/dist/tools/git-workflow.d.ts +259 -200
- package/dist/tools/git-workflow.d.ts.map +1 -1
- package/dist/tools/git-workflow.js +498 -424
- package/dist/tools/git-workflow.js.map +1 -1
- package/package.json +14 -5
- package/dist/tools/git-undo.d.ts +0 -268
- package/dist/tools/git-undo.d.ts.map +0 -1
- package/dist/tools/git-undo.js +0 -516
- package/dist/tools/git-undo.js.map +0 -1
- package/dist/tools/git-versioning.d.ts +0 -286
- package/dist/tools/git-versioning.d.ts.map +0 -1
- package/dist/tools/git-versioning.js +0 -483
- package/dist/tools/git-versioning.js.map +0 -1
|
@@ -2,91 +2,60 @@ import { z } from 'zod';
|
|
|
2
2
|
/**
|
|
3
3
|
* Tool: git-stash
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* DESCRIÇÃO:
|
|
6
|
+
* Gerenciamento de stash Git (GitHub + Gitea) com múltiplas ações
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* FUNCIONALIDADES:
|
|
9
|
+
* - Stash mudanças
|
|
10
|
+
* - Listar stashes
|
|
11
|
+
* - Aplicar stash
|
|
12
|
+
* - Pop stash
|
|
13
|
+
* - Mostrar stash
|
|
14
|
+
* - Deletar stash
|
|
15
|
+
* - Limpar todos os stashes
|
|
16
|
+
*
|
|
17
|
+
* USO:
|
|
18
|
+
* - Para salvar mudanças temporariamente
|
|
19
|
+
* - Para trocar de branch rapidamente
|
|
20
|
+
* - Para limpar working directory
|
|
21
|
+
* - Para aplicar mudanças posteriormente
|
|
22
|
+
*
|
|
23
|
+
* RECOMENDAÇÕES:
|
|
24
|
+
* - Use mensagens descritivas para stashes
|
|
25
|
+
* - Aplique stashes em ordem
|
|
26
|
+
* - Limpe stashes antigos regularmente
|
|
10
27
|
*/
|
|
11
|
-
declare const GitStashInputSchema: z.
|
|
12
|
-
action: z.
|
|
28
|
+
declare const GitStashInputSchema: z.ZodObject<{
|
|
29
|
+
action: z.ZodEnum<["stash", "pop", "apply", "list", "show", "drop", "clear"]>;
|
|
30
|
+
repo: z.ZodString;
|
|
31
|
+
provider: z.ZodEnum<["gitea", "github"]>;
|
|
13
32
|
projectPath: z.ZodString;
|
|
14
33
|
message: z.ZodOptional<z.ZodString>;
|
|
15
|
-
|
|
16
|
-
|
|
34
|
+
include_untracked: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
keep_index: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
stash_index: z.ZodOptional<z.ZodString>;
|
|
37
|
+
show_patch: z.ZodOptional<z.ZodBoolean>;
|
|
17
38
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
|
|
39
|
+
provider: "gitea" | "github";
|
|
40
|
+
repo: string;
|
|
41
|
+
action: "pop" | "apply" | "list" | "show" | "drop" | "clear" | "stash";
|
|
19
42
|
projectPath: string;
|
|
20
|
-
includeUntracked: boolean;
|
|
21
|
-
autoName: boolean;
|
|
22
43
|
message?: string | undefined;
|
|
44
|
+
include_untracked?: boolean | undefined;
|
|
45
|
+
keep_index?: boolean | undefined;
|
|
46
|
+
stash_index?: string | undefined;
|
|
47
|
+
show_patch?: boolean | undefined;
|
|
23
48
|
}, {
|
|
24
|
-
|
|
49
|
+
provider: "gitea" | "github";
|
|
50
|
+
repo: string;
|
|
51
|
+
action: "pop" | "apply" | "list" | "show" | "drop" | "clear" | "stash";
|
|
25
52
|
projectPath: string;
|
|
26
53
|
message?: string | undefined;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
action: "list";
|
|
34
|
-
projectPath: string;
|
|
35
|
-
}, {
|
|
36
|
-
action: "list";
|
|
37
|
-
projectPath: string;
|
|
38
|
-
}>, z.ZodObject<{
|
|
39
|
-
action: z.ZodLiteral<"apply">;
|
|
40
|
-
projectPath: z.ZodString;
|
|
41
|
-
index: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
action: "apply";
|
|
44
|
-
projectPath: string;
|
|
45
|
-
index: number;
|
|
46
|
-
}, {
|
|
47
|
-
action: "apply";
|
|
48
|
-
projectPath: string;
|
|
49
|
-
index?: number | undefined;
|
|
50
|
-
}>, z.ZodObject<{
|
|
51
|
-
action: z.ZodLiteral<"drop">;
|
|
52
|
-
projectPath: z.ZodString;
|
|
53
|
-
index: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
54
|
-
confirm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
55
|
-
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
action: "drop";
|
|
57
|
-
projectPath: string;
|
|
58
|
-
confirm: boolean;
|
|
59
|
-
index: number;
|
|
60
|
-
}, {
|
|
61
|
-
action: "drop";
|
|
62
|
-
projectPath: string;
|
|
63
|
-
confirm?: boolean | undefined;
|
|
64
|
-
index?: number | undefined;
|
|
65
|
-
}>, z.ZodObject<{
|
|
66
|
-
action: z.ZodLiteral<"clear">;
|
|
67
|
-
projectPath: z.ZodString;
|
|
68
|
-
confirm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
action: "clear";
|
|
71
|
-
projectPath: string;
|
|
72
|
-
confirm: boolean;
|
|
73
|
-
}, {
|
|
74
|
-
action: "clear";
|
|
75
|
-
projectPath: string;
|
|
76
|
-
confirm?: boolean | undefined;
|
|
77
|
-
}>, z.ZodObject<{
|
|
78
|
-
action: z.ZodLiteral<"show">;
|
|
79
|
-
projectPath: z.ZodString;
|
|
80
|
-
index: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
action: "show";
|
|
83
|
-
projectPath: string;
|
|
84
|
-
index: number;
|
|
85
|
-
}, {
|
|
86
|
-
action: "show";
|
|
87
|
-
projectPath: string;
|
|
88
|
-
index?: number | undefined;
|
|
89
|
-
}>]>;
|
|
54
|
+
include_untracked?: boolean | undefined;
|
|
55
|
+
keep_index?: boolean | undefined;
|
|
56
|
+
stash_index?: string | undefined;
|
|
57
|
+
show_patch?: boolean | undefined;
|
|
58
|
+
}>;
|
|
90
59
|
export type GitStashInput = z.infer<typeof GitStashInputSchema>;
|
|
91
60
|
declare const GitStashResultSchema: z.ZodObject<{
|
|
92
61
|
success: z.ZodBoolean;
|
|
@@ -94,27 +63,18 @@ declare const GitStashResultSchema: z.ZodObject<{
|
|
|
94
63
|
message: z.ZodString;
|
|
95
64
|
data: z.ZodOptional<z.ZodAny>;
|
|
96
65
|
error: z.ZodOptional<z.ZodString>;
|
|
97
|
-
recoverable: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
99
|
-
warning: z.ZodOptional<z.ZodString>;
|
|
100
66
|
}, "strip", z.ZodTypeAny, {
|
|
101
67
|
message: string;
|
|
102
68
|
action: string;
|
|
103
69
|
success: boolean;
|
|
104
70
|
error?: string | undefined;
|
|
105
71
|
data?: any;
|
|
106
|
-
recoverable?: boolean | undefined;
|
|
107
|
-
suggestion?: string | undefined;
|
|
108
|
-
warning?: string | undefined;
|
|
109
72
|
}, {
|
|
110
73
|
message: string;
|
|
111
74
|
action: string;
|
|
112
75
|
success: boolean;
|
|
113
76
|
error?: string | undefined;
|
|
114
77
|
data?: any;
|
|
115
|
-
recoverable?: boolean | undefined;
|
|
116
|
-
suggestion?: string | undefined;
|
|
117
|
-
warning?: string | undefined;
|
|
118
78
|
}>;
|
|
119
79
|
export type GitStashResult = z.infer<typeof GitStashResultSchema>;
|
|
120
80
|
export declare const gitStashTool: {
|
|
@@ -128,6 +88,19 @@ export declare const gitStashTool: {
|
|
|
128
88
|
enum: string[];
|
|
129
89
|
description: string;
|
|
130
90
|
};
|
|
91
|
+
owner: {
|
|
92
|
+
type: string;
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
repo: {
|
|
96
|
+
type: string;
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
99
|
+
provider: {
|
|
100
|
+
type: string;
|
|
101
|
+
enum: string[];
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
131
104
|
projectPath: {
|
|
132
105
|
type: string;
|
|
133
106
|
description: string;
|
|
@@ -136,48 +109,33 @@ export declare const gitStashTool: {
|
|
|
136
109
|
type: string;
|
|
137
110
|
description: string;
|
|
138
111
|
};
|
|
139
|
-
|
|
112
|
+
include_untracked: {
|
|
140
113
|
type: string;
|
|
141
114
|
description: string;
|
|
142
|
-
default: boolean;
|
|
143
115
|
};
|
|
144
|
-
|
|
116
|
+
keep_index: {
|
|
145
117
|
type: string;
|
|
146
118
|
description: string;
|
|
147
|
-
default: boolean;
|
|
148
119
|
};
|
|
149
|
-
|
|
120
|
+
stash_index: {
|
|
150
121
|
type: string;
|
|
151
122
|
description: string;
|
|
152
|
-
default: number;
|
|
153
123
|
};
|
|
154
|
-
|
|
124
|
+
show_patch: {
|
|
155
125
|
type: string;
|
|
156
126
|
description: string;
|
|
157
|
-
default: boolean;
|
|
158
127
|
};
|
|
159
128
|
};
|
|
160
129
|
required: string[];
|
|
161
130
|
};
|
|
162
131
|
handler(input: GitStashInput): Promise<GitStashResult>;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
action: "apply";
|
|
171
|
-
}): Promise<GitStashResult>;
|
|
172
|
-
handleDrop(params: GitStashInput & {
|
|
173
|
-
action: "drop";
|
|
174
|
-
}): Promise<GitStashResult>;
|
|
175
|
-
handleClear(params: GitStashInput & {
|
|
176
|
-
action: "clear";
|
|
177
|
-
}): Promise<GitStashResult>;
|
|
178
|
-
handleShow(params: GitStashInput & {
|
|
179
|
-
action: "show";
|
|
180
|
-
}): Promise<GitStashResult>;
|
|
132
|
+
stash(params: GitStashInput): Promise<GitStashResult>;
|
|
133
|
+
pop(params: GitStashInput): Promise<GitStashResult>;
|
|
134
|
+
apply(params: GitStashInput): Promise<GitStashResult>;
|
|
135
|
+
list(params: GitStashInput): Promise<GitStashResult>;
|
|
136
|
+
show(params: GitStashInput): Promise<GitStashResult>;
|
|
137
|
+
drop(params: GitStashInput): Promise<GitStashResult>;
|
|
138
|
+
clear(params: GitStashInput): Promise<GitStashResult>;
|
|
181
139
|
};
|
|
182
140
|
export {};
|
|
183
141
|
//# sourceMappingURL=git-stash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-stash.d.ts","sourceRoot":"","sources":["../../src/tools/git-stash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB
|
|
1
|
+
{"version":3,"file":"git-stash.d.ts","sourceRoot":"","sources":["../../src/tools/git-stash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBvB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAMxB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAwBF,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;kBAgCxC,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;gBA0CzC,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;kBA6BrC,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;iBA6BxC,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;iBAuBvC,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;iBA+BvC,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;kBA6BtC,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;CAuB5D,CAAC"}
|