@andrebuzeli/git-mcp 2.27.4 → 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.
- package/dist/client.d.ts +306 -306
- package/dist/client.js +298 -298
- package/dist/config.d.ts +310 -310
- package/dist/config.js +392 -392
- package/dist/index.d.ts +22 -22
- package/dist/index.js +89 -89
- package/dist/providers/base-provider.d.ts +160 -156
- package/dist/providers/base-provider.d.ts.map +1 -1
- package/dist/providers/base-provider.js +274 -260
- package/dist/providers/base-provider.js.map +1 -1
- package/dist/providers/error-handler.d.ts +50 -50
- package/dist/providers/error-handler.js +175 -175
- package/dist/providers/gitea-provider.d.ts +97 -97
- package/dist/providers/gitea-provider.js +1001 -1001
- package/dist/providers/github-provider.d.ts +104 -104
- package/dist/providers/github-provider.js +1234 -1234
- package/dist/providers/index.d.ts +12 -12
- package/dist/providers/index.js +40 -40
- package/dist/providers/provider-factory.d.ts +74 -74
- package/dist/providers/provider-factory.js +311 -311
- package/dist/providers/types.d.ts +318 -298
- package/dist/providers/types.d.ts.map +1 -1
- package/dist/providers/types.js +6 -6
- package/dist/server.d.ts +76 -76
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +306 -305
- package/dist/server.js.map +1 -1
- package/dist/tools/gh-actions.d.ts +252 -252
- package/dist/tools/gh-actions.js +389 -389
- package/dist/tools/gh-analytics.d.ts +263 -263
- package/dist/tools/gh-analytics.js +401 -401
- package/dist/tools/gh-code-review.d.ts +304 -304
- package/dist/tools/gh-code-review.js +512 -512
- package/dist/tools/gh-codespaces.d.ts +138 -138
- package/dist/tools/gh-codespaces.js +282 -282
- package/dist/tools/gh-deployments.d.ts +300 -300
- package/dist/tools/gh-deployments.js +367 -367
- package/dist/tools/gh-gists.d.ts +174 -174
- package/dist/tools/gh-gists.js +321 -321
- package/dist/tools/gh-projects.d.ts +205 -205
- package/dist/tools/gh-projects.js +358 -358
- package/dist/tools/gh-security.d.ts +274 -274
- package/dist/tools/gh-security.js +395 -395
- package/dist/tools/gh-sync.d.ts +213 -213
- package/dist/tools/gh-sync.js +378 -378
- package/dist/tools/gh-workflows.d.ts +290 -290
- package/dist/tools/gh-workflows.js +432 -432
- package/dist/tools/git-archive.d.ts +165 -165
- package/dist/tools/git-archive.js +233 -233
- package/dist/tools/git-branches.d.ts +430 -430
- package/dist/tools/git-branches.d.ts.map +1 -1
- package/dist/tools/git-branches.js +627 -530
- package/dist/tools/git-branches.js.map +1 -1
- package/dist/tools/git-bundle.d.ts +171 -171
- package/dist/tools/git-bundle.js +241 -241
- package/dist/tools/git-cherry-pick.d.ts +158 -158
- package/dist/tools/git-cherry-pick.js +224 -224
- package/dist/tools/git-commits.d.ts +485 -485
- package/dist/tools/git-commits.d.ts.map +1 -1
- package/dist/tools/git-commits.js +735 -625
- package/dist/tools/git-commits.js.map +1 -1
- package/dist/tools/git-config.d.ts +140 -140
- package/dist/tools/git-config.js +268 -268
- package/dist/tools/git-files.d.ts +486 -486
- package/dist/tools/git-files.js +607 -607
- package/dist/tools/git-issues.d.ts +571 -571
- package/dist/tools/git-issues.d.ts.map +1 -1
- package/dist/tools/git-issues.js +740 -693
- package/dist/tools/git-issues.js.map +1 -1
- package/dist/tools/git-pulls.d.ts +694 -694
- package/dist/tools/git-pulls.js +732 -732
- package/dist/tools/git-rebase.d.ts +137 -137
- package/dist/tools/git-rebase.js +213 -213
- package/dist/tools/git-releases.d.ts +487 -487
- package/dist/tools/git-releases.js +557 -557
- package/dist/tools/git-remote.d.ts +138 -138
- package/dist/tools/git-remote.js +274 -274
- package/dist/tools/git-repositories.d.ts +483 -483
- package/dist/tools/git-repositories.js +640 -640
- package/dist/tools/git-reset.d.ts +130 -130
- package/dist/tools/git-reset.js +223 -223
- package/dist/tools/git-revert.d.ts +149 -149
- package/dist/tools/git-revert.js +198 -198
- package/dist/tools/git-stash.d.ts +140 -140
- package/dist/tools/git-stash.js +269 -269
- package/dist/tools/git-submodule.d.ts +152 -152
- package/dist/tools/git-submodule.js +289 -289
- package/dist/tools/git-sync.d.ts +178 -166
- package/dist/tools/git-sync.d.ts.map +1 -1
- package/dist/tools/git-sync.js +312 -117
- package/dist/tools/git-sync.js.map +1 -1
- package/dist/tools/git-tags.d.ts +411 -411
- package/dist/tools/git-tags.js +485 -485
- package/dist/tools/git-webhooks.d.ts +470 -482
- package/dist/tools/git-webhooks.d.ts.map +1 -1
- package/dist/tools/git-webhooks.js +543 -555
- package/dist/tools/git-webhooks.js.map +1 -1
- package/dist/tools/git-worktree.d.ts +159 -159
- package/dist/tools/git-worktree.js +269 -269
- package/dist/tools/repositories.d.ts +405 -405
- package/dist/tools/repositories.js +569 -569
- package/dist/tools/users.d.ts +372 -372
- package/dist/tools/users.js +499 -499
- package/dist/tools/validator.d.ts +170 -170
- package/dist/tools/validator.js +194 -194
- package/dist/tools/version-control.d.ts +136 -136
- package/dist/tools/version-control.js +164 -164
- package/dist/utils/terminal-controller.d.ts +80 -80
- package/dist/utils/terminal-controller.js +345 -345
- package/dist/utils/user-detection.d.ts +24 -24
- package/dist/utils/user-detection.js +53 -53
- package/package.json +59 -59
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Tool: git-reset
|
|
4
|
-
*
|
|
5
|
-
* DESCRIÇÃO:
|
|
6
|
-
* Gerenciamento de reset Git (GitHub + Gitea) com múltiplas ações
|
|
7
|
-
*
|
|
8
|
-
* FUNCIONALIDADES:
|
|
9
|
-
* - Reset soft (mantém mudanças no staging)
|
|
10
|
-
* - Reset mixed (padrão, remove do staging)
|
|
11
|
-
* - Reset hard (remove todas as mudanças)
|
|
12
|
-
* - Reset para commit específico
|
|
13
|
-
* - Reset de branch
|
|
14
|
-
*
|
|
15
|
-
* USO:
|
|
16
|
-
* - Para desfazer commits
|
|
17
|
-
* - Para limpar staging area
|
|
18
|
-
* - Para voltar a estado anterior
|
|
19
|
-
* - Para remover mudanças não commitadas
|
|
20
|
-
*
|
|
21
|
-
* RECOMENDAÇÕES:
|
|
22
|
-
* - Use com cuidado, especialmente reset hard
|
|
23
|
-
* - Faça backup antes de resets destrutivos
|
|
24
|
-
* - Teste em branches locais primeiro
|
|
25
|
-
*/
|
|
26
|
-
declare const GitResetInputSchema: z.ZodObject<{
|
|
27
|
-
action: z.ZodEnum<["soft", "mixed", "hard", "reset-to-commit", "reset-branch"]>;
|
|
28
|
-
repo: z.ZodString;
|
|
29
|
-
provider: z.ZodEnum<["gitea", "github"]>;
|
|
30
|
-
projectPath: z.ZodString;
|
|
31
|
-
commit_hash: z.ZodOptional<z.ZodString>;
|
|
32
|
-
branch_name: z.ZodOptional<z.ZodString>;
|
|
33
|
-
reset_type: z.ZodOptional<z.ZodEnum<["soft", "mixed", "hard"]>>;
|
|
34
|
-
target_branch: z.ZodOptional<z.ZodString>;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
provider: "gitea" | "github";
|
|
37
|
-
repo: string;
|
|
38
|
-
action: "soft" | "mixed" | "hard" | "reset-to-commit" | "reset-branch";
|
|
39
|
-
projectPath: string;
|
|
40
|
-
branch_name?: string | undefined;
|
|
41
|
-
commit_hash?: string | undefined;
|
|
42
|
-
reset_type?: "soft" | "mixed" | "hard" | undefined;
|
|
43
|
-
target_branch?: string | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
provider: "gitea" | "github";
|
|
46
|
-
repo: string;
|
|
47
|
-
action: "soft" | "mixed" | "hard" | "reset-to-commit" | "reset-branch";
|
|
48
|
-
projectPath: string;
|
|
49
|
-
branch_name?: string | undefined;
|
|
50
|
-
commit_hash?: string | undefined;
|
|
51
|
-
reset_type?: "soft" | "mixed" | "hard" | undefined;
|
|
52
|
-
target_branch?: string | undefined;
|
|
53
|
-
}>;
|
|
54
|
-
export type GitResetInput = z.infer<typeof GitResetInputSchema>;
|
|
55
|
-
declare const GitResetResultSchema: z.ZodObject<{
|
|
56
|
-
success: z.ZodBoolean;
|
|
57
|
-
action: z.ZodString;
|
|
58
|
-
message: z.ZodString;
|
|
59
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
60
|
-
error: z.ZodOptional<z.ZodString>;
|
|
61
|
-
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
message: string;
|
|
63
|
-
action: string;
|
|
64
|
-
success: boolean;
|
|
65
|
-
error?: string | undefined;
|
|
66
|
-
data?: any;
|
|
67
|
-
}, {
|
|
68
|
-
message: string;
|
|
69
|
-
action: string;
|
|
70
|
-
success: boolean;
|
|
71
|
-
error?: string | undefined;
|
|
72
|
-
data?: any;
|
|
73
|
-
}>;
|
|
74
|
-
export type GitResetResult = z.infer<typeof GitResetResultSchema>;
|
|
75
|
-
export declare const gitResetTool: {
|
|
76
|
-
name: string;
|
|
77
|
-
description: string;
|
|
78
|
-
inputSchema: {
|
|
79
|
-
type: string;
|
|
80
|
-
properties: {
|
|
81
|
-
action: {
|
|
82
|
-
type: string;
|
|
83
|
-
enum: string[];
|
|
84
|
-
description: string;
|
|
85
|
-
};
|
|
86
|
-
owner: {
|
|
87
|
-
type: string;
|
|
88
|
-
description: string;
|
|
89
|
-
};
|
|
90
|
-
repo: {
|
|
91
|
-
type: string;
|
|
92
|
-
description: string;
|
|
93
|
-
};
|
|
94
|
-
provider: {
|
|
95
|
-
type: string;
|
|
96
|
-
enum: string[];
|
|
97
|
-
description: string;
|
|
98
|
-
};
|
|
99
|
-
projectPath: {
|
|
100
|
-
type: string;
|
|
101
|
-
description: string;
|
|
102
|
-
};
|
|
103
|
-
commit_hash: {
|
|
104
|
-
type: string;
|
|
105
|
-
description: string;
|
|
106
|
-
};
|
|
107
|
-
branch_name: {
|
|
108
|
-
type: string;
|
|
109
|
-
description: string;
|
|
110
|
-
};
|
|
111
|
-
reset_type: {
|
|
112
|
-
type: string;
|
|
113
|
-
enum: string[];
|
|
114
|
-
description: string;
|
|
115
|
-
};
|
|
116
|
-
target_branch: {
|
|
117
|
-
type: string;
|
|
118
|
-
description: string;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
required: string[];
|
|
122
|
-
};
|
|
123
|
-
handler(input: GitResetInput): Promise<GitResetResult>;
|
|
124
|
-
softReset(params: GitResetInput): Promise<GitResetResult>;
|
|
125
|
-
mixedReset(params: GitResetInput): Promise<GitResetResult>;
|
|
126
|
-
hardReset(params: GitResetInput): Promise<GitResetResult>;
|
|
127
|
-
resetToCommit(params: GitResetInput): Promise<GitResetResult>;
|
|
128
|
-
resetBranch(params: GitResetInput): Promise<GitResetResult>;
|
|
129
|
-
};
|
|
130
|
-
export {};
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Tool: git-reset
|
|
4
|
+
*
|
|
5
|
+
* DESCRIÇÃO:
|
|
6
|
+
* Gerenciamento de reset Git (GitHub + Gitea) com múltiplas ações
|
|
7
|
+
*
|
|
8
|
+
* FUNCIONALIDADES:
|
|
9
|
+
* - Reset soft (mantém mudanças no staging)
|
|
10
|
+
* - Reset mixed (padrão, remove do staging)
|
|
11
|
+
* - Reset hard (remove todas as mudanças)
|
|
12
|
+
* - Reset para commit específico
|
|
13
|
+
* - Reset de branch
|
|
14
|
+
*
|
|
15
|
+
* USO:
|
|
16
|
+
* - Para desfazer commits
|
|
17
|
+
* - Para limpar staging area
|
|
18
|
+
* - Para voltar a estado anterior
|
|
19
|
+
* - Para remover mudanças não commitadas
|
|
20
|
+
*
|
|
21
|
+
* RECOMENDAÇÕES:
|
|
22
|
+
* - Use com cuidado, especialmente reset hard
|
|
23
|
+
* - Faça backup antes de resets destrutivos
|
|
24
|
+
* - Teste em branches locais primeiro
|
|
25
|
+
*/
|
|
26
|
+
declare const GitResetInputSchema: z.ZodObject<{
|
|
27
|
+
action: z.ZodEnum<["soft", "mixed", "hard", "reset-to-commit", "reset-branch"]>;
|
|
28
|
+
repo: z.ZodString;
|
|
29
|
+
provider: z.ZodEnum<["gitea", "github"]>;
|
|
30
|
+
projectPath: z.ZodString;
|
|
31
|
+
commit_hash: z.ZodOptional<z.ZodString>;
|
|
32
|
+
branch_name: z.ZodOptional<z.ZodString>;
|
|
33
|
+
reset_type: z.ZodOptional<z.ZodEnum<["soft", "mixed", "hard"]>>;
|
|
34
|
+
target_branch: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
provider: "gitea" | "github";
|
|
37
|
+
repo: string;
|
|
38
|
+
action: "soft" | "mixed" | "hard" | "reset-to-commit" | "reset-branch";
|
|
39
|
+
projectPath: string;
|
|
40
|
+
branch_name?: string | undefined;
|
|
41
|
+
commit_hash?: string | undefined;
|
|
42
|
+
reset_type?: "soft" | "mixed" | "hard" | undefined;
|
|
43
|
+
target_branch?: string | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
provider: "gitea" | "github";
|
|
46
|
+
repo: string;
|
|
47
|
+
action: "soft" | "mixed" | "hard" | "reset-to-commit" | "reset-branch";
|
|
48
|
+
projectPath: string;
|
|
49
|
+
branch_name?: string | undefined;
|
|
50
|
+
commit_hash?: string | undefined;
|
|
51
|
+
reset_type?: "soft" | "mixed" | "hard" | undefined;
|
|
52
|
+
target_branch?: string | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
export type GitResetInput = z.infer<typeof GitResetInputSchema>;
|
|
55
|
+
declare const GitResetResultSchema: z.ZodObject<{
|
|
56
|
+
success: z.ZodBoolean;
|
|
57
|
+
action: z.ZodString;
|
|
58
|
+
message: z.ZodString;
|
|
59
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
60
|
+
error: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
message: string;
|
|
63
|
+
action: string;
|
|
64
|
+
success: boolean;
|
|
65
|
+
error?: string | undefined;
|
|
66
|
+
data?: any;
|
|
67
|
+
}, {
|
|
68
|
+
message: string;
|
|
69
|
+
action: string;
|
|
70
|
+
success: boolean;
|
|
71
|
+
error?: string | undefined;
|
|
72
|
+
data?: any;
|
|
73
|
+
}>;
|
|
74
|
+
export type GitResetResult = z.infer<typeof GitResetResultSchema>;
|
|
75
|
+
export declare const gitResetTool: {
|
|
76
|
+
name: string;
|
|
77
|
+
description: string;
|
|
78
|
+
inputSchema: {
|
|
79
|
+
type: string;
|
|
80
|
+
properties: {
|
|
81
|
+
action: {
|
|
82
|
+
type: string;
|
|
83
|
+
enum: string[];
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
owner: {
|
|
87
|
+
type: string;
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
repo: {
|
|
91
|
+
type: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
provider: {
|
|
95
|
+
type: string;
|
|
96
|
+
enum: string[];
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
99
|
+
projectPath: {
|
|
100
|
+
type: string;
|
|
101
|
+
description: string;
|
|
102
|
+
};
|
|
103
|
+
commit_hash: {
|
|
104
|
+
type: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
branch_name: {
|
|
108
|
+
type: string;
|
|
109
|
+
description: string;
|
|
110
|
+
};
|
|
111
|
+
reset_type: {
|
|
112
|
+
type: string;
|
|
113
|
+
enum: string[];
|
|
114
|
+
description: string;
|
|
115
|
+
};
|
|
116
|
+
target_branch: {
|
|
117
|
+
type: string;
|
|
118
|
+
description: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
required: string[];
|
|
122
|
+
};
|
|
123
|
+
handler(input: GitResetInput): Promise<GitResetResult>;
|
|
124
|
+
softReset(params: GitResetInput): Promise<GitResetResult>;
|
|
125
|
+
mixedReset(params: GitResetInput): Promise<GitResetResult>;
|
|
126
|
+
hardReset(params: GitResetInput): Promise<GitResetResult>;
|
|
127
|
+
resetToCommit(params: GitResetInput): Promise<GitResetResult>;
|
|
128
|
+
resetBranch(params: GitResetInput): Promise<GitResetResult>;
|
|
129
|
+
};
|
|
130
|
+
export {};
|
|
131
131
|
//# sourceMappingURL=git-reset.d.ts.map
|