@andrebuzeli/git-mcp 2.48.0 → 3.0.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 +356 -329
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +55 -78
- package/dist/server.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 +2 -2
- package/dist/tools/git-issues.d.ts +6 -6
- package/dist/tools/git-packages.d.ts +2 -2
- package/dist/tools/git-projects.d.ts +142 -57
- package/dist/tools/git-projects.d.ts.map +1 -1
- package/dist/tools/git-projects.js +281 -283
- package/dist/tools/git-projects.js.map +1 -1
- package/dist/tools/git-pulls.d.ts +8 -8
- package/dist/tools/git-releases.d.ts +2 -2
- package/dist/tools/git-remote.d.ts +2 -2
- package/dist/tools/git-repositories.d.ts +4 -4
- package/dist/tools/git-sync.d.ts +4 -4
- package/dist/tools/git-tags.d.ts +2 -2
- package/dist/tools/git-undo.d.ts +268 -0
- package/dist/tools/git-undo.d.ts.map +1 -0
- package/dist/tools/git-undo.js +516 -0
- package/dist/tools/git-undo.js.map +1 -0
- package/dist/tools/git-update-project.d.ts +4 -159
- package/dist/tools/git-update-project.d.ts.map +1 -1
- package/dist/tools/git-update-project.js +7 -349
- package/dist/tools/git-update-project.js.map +1 -1
- package/dist/tools/git-versioning.d.ts +286 -0
- package/dist/tools/git-versioning.d.ts.map +1 -0
- package/dist/tools/git-versioning.js +483 -0
- package/dist/tools/git-versioning.js.map +1 -0
- package/dist/tools/git-workflow.d.ts +230 -252
- package/dist/tools/git-workflow.d.ts.map +1 -1
- package/dist/tools/git-workflow.js +452 -479
- package/dist/tools/git-workflow.js.map +1 -1
- package/package.json +4 -13
- package/dist/tools/git-publish.d.ts +0 -327
- package/dist/tools/git-publish.d.ts.map +0 -1
- package/dist/tools/git-publish.js +0 -632
- package/dist/tools/git-publish.js.map +0 -1
|
@@ -2,159 +2,217 @@ import { z } from 'zod';
|
|
|
2
2
|
/**
|
|
3
3
|
* Tool: git-workflow
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* FERRAMENTA UNIFICADA PARA WORKFLOW GIT COMPLETO
|
|
6
|
+
* Combina as funcionalidades essenciais de:
|
|
7
|
+
* - git-update-project (init, update, sync)
|
|
8
|
+
* - git-commits (create, push, pull)
|
|
9
|
+
* - git-stash (save, apply, list)
|
|
10
|
+
* - git-reset (soft, mixed, hard)
|
|
7
11
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* - Workflows diários de desenvolvimento
|
|
11
|
-
* - Gerenciamento de features automatizado
|
|
12
|
-
* - Processos de release completos
|
|
13
|
-
* - Limpeza automática de repositórios
|
|
14
|
-
* - Templates para diferentes tipos de projeto
|
|
15
|
-
*
|
|
16
|
-
* USO:
|
|
17
|
-
* - Automação de todo o ciclo de desenvolvimento
|
|
18
|
-
* - Setup consistente de novos projetos
|
|
19
|
-
* - Workflows padronizados
|
|
20
|
-
* - Eliminação de tarefas manuais repetitivas
|
|
21
|
-
*
|
|
22
|
-
* OTIMIZADO PARA AI AGENTS:
|
|
23
|
-
* - Interface simples e intuitiva
|
|
24
|
-
* - Auto-detecção de contexto
|
|
25
|
-
* - Validação automática
|
|
26
|
-
* - Error handling robusto
|
|
27
|
-
* - Workflows em uma única chamada
|
|
12
|
+
* DESIGNED FOR: Programador individual autônomo
|
|
13
|
+
* PHILOSOPHY: Simplicidade + Funcionalidade + Error Handling Robusto
|
|
28
14
|
*/
|
|
29
15
|
declare const GitWorkflowInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
30
|
-
action: z.ZodLiteral<"
|
|
16
|
+
action: z.ZodLiteral<"init">;
|
|
31
17
|
repo: z.ZodString;
|
|
32
|
-
provider: z.ZodEnum<["gitea", "github"]>;
|
|
33
18
|
projectPath: z.ZodString;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
autoConfigure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19
|
+
provider: z.ZodEnum<["gitea", "github"]>;
|
|
20
|
+
message: z.ZodString;
|
|
37
21
|
createRemote: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
38
|
-
|
|
22
|
+
branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
39
23
|
}, "strip", z.ZodTypeAny, {
|
|
40
24
|
provider: "gitea" | "github";
|
|
25
|
+
message: string;
|
|
41
26
|
repo: string;
|
|
42
|
-
action: "
|
|
27
|
+
action: "init";
|
|
28
|
+
branch: string;
|
|
43
29
|
projectPath: string;
|
|
44
30
|
createRemote: boolean;
|
|
45
|
-
platforms: ("github" | "npm" | "docker" | "pypi")[];
|
|
46
|
-
template: "node-api" | "react-app" | "python-package" | "go-service" | "rust-binary";
|
|
47
|
-
autoConfigure: boolean;
|
|
48
|
-
initGit: boolean;
|
|
49
31
|
}, {
|
|
50
32
|
provider: "gitea" | "github";
|
|
33
|
+
message: string;
|
|
51
34
|
repo: string;
|
|
52
|
-
action: "
|
|
35
|
+
action: "init";
|
|
53
36
|
projectPath: string;
|
|
37
|
+
branch?: string | undefined;
|
|
54
38
|
createRemote?: boolean | undefined;
|
|
55
|
-
platforms?: ("github" | "npm" | "docker" | "pypi")[] | undefined;
|
|
56
|
-
template?: "node-api" | "react-app" | "python-package" | "go-service" | "rust-binary" | undefined;
|
|
57
|
-
autoConfigure?: boolean | undefined;
|
|
58
|
-
initGit?: boolean | undefined;
|
|
59
39
|
}>, z.ZodObject<{
|
|
60
|
-
action: z.ZodLiteral<"
|
|
40
|
+
action: z.ZodLiteral<"commit">;
|
|
41
|
+
projectPath: z.ZodString;
|
|
42
|
+
message: z.ZodString;
|
|
43
|
+
addAll: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
44
|
+
push: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
45
|
+
branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
46
|
+
provider: z.ZodOptional<z.ZodEnum<["gitea", "github"]>>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
push: boolean;
|
|
49
|
+
message: string;
|
|
50
|
+
action: "commit";
|
|
51
|
+
branch: string;
|
|
52
|
+
projectPath: string;
|
|
53
|
+
addAll: boolean;
|
|
54
|
+
provider?: "gitea" | "github" | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
message: string;
|
|
57
|
+
action: "commit";
|
|
58
|
+
projectPath: string;
|
|
59
|
+
provider?: "gitea" | "github" | undefined;
|
|
60
|
+
push?: boolean | undefined;
|
|
61
|
+
branch?: string | undefined;
|
|
62
|
+
addAll?: boolean | undefined;
|
|
63
|
+
}>, z.ZodObject<{
|
|
64
|
+
action: z.ZodLiteral<"sync">;
|
|
65
|
+
repo: z.ZodString;
|
|
66
|
+
projectPath: z.ZodString;
|
|
67
|
+
provider: z.ZodEnum<["gitea", "github"]>;
|
|
68
|
+
message: z.ZodString;
|
|
69
|
+
branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
forcePush: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
provider: "gitea" | "github";
|
|
73
|
+
message: string;
|
|
74
|
+
repo: string;
|
|
75
|
+
action: "sync";
|
|
76
|
+
branch: string;
|
|
77
|
+
projectPath: string;
|
|
78
|
+
forcePush: boolean;
|
|
79
|
+
}, {
|
|
80
|
+
provider: "gitea" | "github";
|
|
81
|
+
message: string;
|
|
82
|
+
repo: string;
|
|
83
|
+
action: "sync";
|
|
84
|
+
projectPath: string;
|
|
85
|
+
branch?: string | undefined;
|
|
86
|
+
forcePush?: boolean | undefined;
|
|
87
|
+
}>, z.ZodObject<{
|
|
88
|
+
action: z.ZodLiteral<"status">;
|
|
89
|
+
projectPath: z.ZodString;
|
|
90
|
+
detailed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
action: "status";
|
|
93
|
+
projectPath: string;
|
|
94
|
+
detailed: boolean;
|
|
95
|
+
}, {
|
|
96
|
+
action: "status";
|
|
97
|
+
projectPath: string;
|
|
98
|
+
detailed?: boolean | undefined;
|
|
99
|
+
}>, z.ZodObject<{
|
|
100
|
+
action: z.ZodLiteral<"diff">;
|
|
101
|
+
projectPath: z.ZodString;
|
|
102
|
+
staged: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
103
|
+
file: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
action: "diff";
|
|
106
|
+
projectPath: string;
|
|
107
|
+
staged: boolean;
|
|
108
|
+
file?: string | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
action: "diff";
|
|
111
|
+
projectPath: string;
|
|
112
|
+
file?: string | undefined;
|
|
113
|
+
staged?: boolean | undefined;
|
|
114
|
+
}>, z.ZodObject<{
|
|
115
|
+
action: z.ZodLiteral<"log">;
|
|
116
|
+
projectPath: z.ZodString;
|
|
117
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
118
|
+
oneline: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
limit: number;
|
|
121
|
+
action: "log";
|
|
122
|
+
projectPath: string;
|
|
123
|
+
oneline: boolean;
|
|
124
|
+
}, {
|
|
125
|
+
action: "log";
|
|
126
|
+
projectPath: string;
|
|
127
|
+
limit?: number | undefined;
|
|
128
|
+
oneline?: boolean | undefined;
|
|
129
|
+
}>, z.ZodObject<{
|
|
130
|
+
action: z.ZodLiteral<"stash">;
|
|
131
|
+
projectPath: z.ZodString;
|
|
132
|
+
name: z.ZodOptional<z.ZodString>;
|
|
133
|
+
includeUntracked: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
action: "stash";
|
|
136
|
+
projectPath: string;
|
|
137
|
+
includeUntracked: boolean;
|
|
138
|
+
name?: string | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
action: "stash";
|
|
141
|
+
projectPath: string;
|
|
142
|
+
name?: string | undefined;
|
|
143
|
+
includeUntracked?: boolean | undefined;
|
|
144
|
+
}>, z.ZodObject<{
|
|
145
|
+
action: z.ZodLiteral<"stash-list">;
|
|
61
146
|
projectPath: z.ZodString;
|
|
62
|
-
autoCommit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
63
|
-
autoPush: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
64
|
-
createBackup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
65
|
-
runTests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
66
|
-
checkLint: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
67
147
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
action: "
|
|
148
|
+
action: "stash-list";
|
|
69
149
|
projectPath: string;
|
|
70
|
-
autoPush: boolean;
|
|
71
|
-
createBackup: boolean;
|
|
72
|
-
runTests: boolean;
|
|
73
|
-
autoCommit: boolean;
|
|
74
|
-
checkLint: boolean;
|
|
75
150
|
}, {
|
|
76
|
-
action: "
|
|
151
|
+
action: "stash-list";
|
|
77
152
|
projectPath: string;
|
|
78
|
-
autoPush?: boolean | undefined;
|
|
79
|
-
createBackup?: boolean | undefined;
|
|
80
|
-
runTests?: boolean | undefined;
|
|
81
|
-
autoCommit?: boolean | undefined;
|
|
82
|
-
checkLint?: boolean | undefined;
|
|
83
153
|
}>, z.ZodObject<{
|
|
84
|
-
action: z.ZodLiteral<"
|
|
154
|
+
action: z.ZodLiteral<"stash-apply">;
|
|
85
155
|
projectPath: z.ZodString;
|
|
86
|
-
|
|
87
|
-
createBranch: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
88
|
-
baseBranch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
89
|
-
mergeWhenReady: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
90
|
-
runTests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
91
|
-
createPR: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
156
|
+
index: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
92
157
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
action: "
|
|
158
|
+
action: "stash-apply";
|
|
94
159
|
projectPath: string;
|
|
95
|
-
|
|
96
|
-
createBranch: boolean;
|
|
97
|
-
featureName: string;
|
|
98
|
-
baseBranch: string;
|
|
99
|
-
mergeWhenReady: boolean;
|
|
100
|
-
createPR: boolean;
|
|
160
|
+
index: number;
|
|
101
161
|
}, {
|
|
102
|
-
action: "
|
|
162
|
+
action: "stash-apply";
|
|
103
163
|
projectPath: string;
|
|
104
|
-
|
|
105
|
-
runTests?: boolean | undefined;
|
|
106
|
-
createBranch?: boolean | undefined;
|
|
107
|
-
baseBranch?: string | undefined;
|
|
108
|
-
mergeWhenReady?: boolean | undefined;
|
|
109
|
-
createPR?: boolean | undefined;
|
|
164
|
+
index?: number | undefined;
|
|
110
165
|
}>, z.ZodObject<{
|
|
111
|
-
action: z.ZodLiteral<"
|
|
166
|
+
action: z.ZodLiteral<"reset">;
|
|
112
167
|
projectPath: z.ZodString;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
createRelease: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
117
|
-
updateChangelog: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
118
|
-
runTests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
168
|
+
mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["soft", "mixed", "hard"]>>>;
|
|
169
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
170
|
+
confirm: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
119
171
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
action: "
|
|
172
|
+
action: "reset";
|
|
121
173
|
projectPath: string;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
createRelease: boolean;
|
|
126
|
-
updateChangelog: boolean;
|
|
127
|
-
version?: string | undefined;
|
|
174
|
+
mode: "soft" | "hard" | "mixed";
|
|
175
|
+
confirm: boolean;
|
|
176
|
+
commit?: string | undefined;
|
|
128
177
|
}, {
|
|
129
|
-
action: "
|
|
178
|
+
action: "reset";
|
|
130
179
|
projectPath: string;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
createTag?: boolean | undefined;
|
|
135
|
-
createRelease?: boolean | undefined;
|
|
136
|
-
updateChangelog?: boolean | undefined;
|
|
180
|
+
commit?: string | undefined;
|
|
181
|
+
mode?: "soft" | "hard" | "mixed" | undefined;
|
|
182
|
+
confirm?: boolean | undefined;
|
|
137
183
|
}>, z.ZodObject<{
|
|
138
|
-
action: z.ZodLiteral<"
|
|
184
|
+
action: z.ZodLiteral<"pull">;
|
|
139
185
|
projectPath: z.ZodString;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
optimizeRepository: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
143
|
-
daysOld: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
186
|
+
branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
187
|
+
provider: z.ZodOptional<z.ZodEnum<["gitea", "github"]>>;
|
|
144
188
|
}, "strip", z.ZodTypeAny, {
|
|
145
|
-
action: "
|
|
189
|
+
action: "pull";
|
|
190
|
+
branch: string;
|
|
146
191
|
projectPath: string;
|
|
147
|
-
|
|
148
|
-
removeOldBackups: boolean;
|
|
149
|
-
optimizeRepository: boolean;
|
|
150
|
-
daysOld: number;
|
|
192
|
+
provider?: "gitea" | "github" | undefined;
|
|
151
193
|
}, {
|
|
152
|
-
action: "
|
|
194
|
+
action: "pull";
|
|
195
|
+
projectPath: string;
|
|
196
|
+
provider?: "gitea" | "github" | undefined;
|
|
197
|
+
branch?: string | undefined;
|
|
198
|
+
}>, z.ZodObject<{
|
|
199
|
+
action: z.ZodLiteral<"push">;
|
|
200
|
+
projectPath: z.ZodString;
|
|
201
|
+
branch: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
202
|
+
provider: z.ZodOptional<z.ZodEnum<["gitea", "github"]>>;
|
|
203
|
+
force: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
action: "push";
|
|
206
|
+
branch: string;
|
|
207
|
+
force: boolean;
|
|
153
208
|
projectPath: string;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
209
|
+
provider?: "gitea" | "github" | undefined;
|
|
210
|
+
}, {
|
|
211
|
+
action: "push";
|
|
212
|
+
projectPath: string;
|
|
213
|
+
provider?: "gitea" | "github" | undefined;
|
|
214
|
+
branch?: string | undefined;
|
|
215
|
+
force?: boolean | undefined;
|
|
158
216
|
}>]>;
|
|
159
217
|
export type GitWorkflowInput = z.infer<typeof GitWorkflowInputSchema>;
|
|
160
218
|
declare const GitWorkflowResultSchema: z.ZodObject<{
|
|
@@ -163,18 +221,24 @@ declare const GitWorkflowResultSchema: z.ZodObject<{
|
|
|
163
221
|
message: z.ZodString;
|
|
164
222
|
data: z.ZodOptional<z.ZodAny>;
|
|
165
223
|
error: z.ZodOptional<z.ZodString>;
|
|
224
|
+
recoverable: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
166
226
|
}, "strip", z.ZodTypeAny, {
|
|
167
227
|
message: string;
|
|
168
228
|
action: string;
|
|
169
229
|
success: boolean;
|
|
170
230
|
error?: string | undefined;
|
|
171
231
|
data?: any;
|
|
232
|
+
recoverable?: boolean | undefined;
|
|
233
|
+
suggestion?: string | undefined;
|
|
172
234
|
}, {
|
|
173
235
|
message: string;
|
|
174
236
|
action: string;
|
|
175
237
|
success: boolean;
|
|
176
238
|
error?: string | undefined;
|
|
177
239
|
data?: any;
|
|
240
|
+
recoverable?: boolean | undefined;
|
|
241
|
+
suggestion?: string | undefined;
|
|
178
242
|
}>;
|
|
179
243
|
export type GitWorkflowResult = z.infer<typeof GitWorkflowResultSchema>;
|
|
180
244
|
export declare const gitWorkflowTool: {
|
|
@@ -192,224 +256,138 @@ export declare const gitWorkflowTool: {
|
|
|
192
256
|
type: string;
|
|
193
257
|
description: string;
|
|
194
258
|
};
|
|
195
|
-
provider: {
|
|
196
|
-
type: string;
|
|
197
|
-
enum: string[];
|
|
198
|
-
description: string;
|
|
199
|
-
};
|
|
200
259
|
projectPath: {
|
|
201
260
|
type: string;
|
|
202
261
|
description: string;
|
|
203
262
|
};
|
|
204
|
-
|
|
263
|
+
provider: {
|
|
205
264
|
type: string;
|
|
206
265
|
enum: string[];
|
|
207
266
|
description: string;
|
|
208
|
-
default: string;
|
|
209
267
|
};
|
|
210
|
-
|
|
268
|
+
message: {
|
|
211
269
|
type: string;
|
|
212
|
-
items: {
|
|
213
|
-
type: string;
|
|
214
|
-
enum: string[];
|
|
215
|
-
};
|
|
216
270
|
description: string;
|
|
217
|
-
default: string[];
|
|
218
|
-
};
|
|
219
|
-
autoConfigure: {
|
|
220
|
-
type: string;
|
|
221
|
-
description: string;
|
|
222
|
-
default: boolean;
|
|
223
271
|
};
|
|
224
272
|
createRemote: {
|
|
225
273
|
type: string;
|
|
226
274
|
description: string;
|
|
227
275
|
default: boolean;
|
|
228
276
|
};
|
|
229
|
-
|
|
277
|
+
branch: {
|
|
230
278
|
type: string;
|
|
231
279
|
description: string;
|
|
232
|
-
default:
|
|
233
|
-
};
|
|
234
|
-
autoCommit: {
|
|
235
|
-
type: string;
|
|
236
|
-
description: string;
|
|
237
|
-
default: boolean;
|
|
280
|
+
default: string;
|
|
238
281
|
};
|
|
239
|
-
|
|
282
|
+
addAll: {
|
|
240
283
|
type: string;
|
|
241
284
|
description: string;
|
|
242
285
|
default: boolean;
|
|
243
286
|
};
|
|
244
|
-
|
|
287
|
+
push: {
|
|
245
288
|
type: string;
|
|
246
289
|
description: string;
|
|
247
290
|
default: boolean;
|
|
248
291
|
};
|
|
249
|
-
|
|
292
|
+
forcePush: {
|
|
250
293
|
type: string;
|
|
251
294
|
description: string;
|
|
252
295
|
default: boolean;
|
|
253
296
|
};
|
|
254
|
-
|
|
297
|
+
detailed: {
|
|
255
298
|
type: string;
|
|
256
299
|
description: string;
|
|
257
300
|
default: boolean;
|
|
258
301
|
};
|
|
259
|
-
|
|
260
|
-
type: string;
|
|
261
|
-
description: string;
|
|
262
|
-
};
|
|
263
|
-
createBranch: {
|
|
302
|
+
staged: {
|
|
264
303
|
type: string;
|
|
265
304
|
description: string;
|
|
266
305
|
default: boolean;
|
|
267
306
|
};
|
|
268
|
-
|
|
307
|
+
file: {
|
|
269
308
|
type: string;
|
|
270
309
|
description: string;
|
|
271
|
-
default: string;
|
|
272
310
|
};
|
|
273
|
-
|
|
311
|
+
limit: {
|
|
274
312
|
type: string;
|
|
275
313
|
description: string;
|
|
276
|
-
default:
|
|
314
|
+
default: number;
|
|
277
315
|
};
|
|
278
|
-
|
|
316
|
+
oneline: {
|
|
279
317
|
type: string;
|
|
280
318
|
description: string;
|
|
281
319
|
default: boolean;
|
|
282
320
|
};
|
|
283
|
-
|
|
321
|
+
name: {
|
|
284
322
|
type: string;
|
|
285
323
|
description: string;
|
|
286
324
|
};
|
|
287
|
-
|
|
325
|
+
includeUntracked: {
|
|
288
326
|
type: string;
|
|
289
327
|
description: string;
|
|
290
328
|
default: boolean;
|
|
291
329
|
};
|
|
292
|
-
|
|
330
|
+
index: {
|
|
293
331
|
type: string;
|
|
294
332
|
description: string;
|
|
295
|
-
default:
|
|
296
|
-
};
|
|
297
|
-
updateChangelog: {
|
|
298
|
-
type: string;
|
|
299
|
-
description: string;
|
|
300
|
-
default: boolean;
|
|
333
|
+
default: number;
|
|
301
334
|
};
|
|
302
|
-
|
|
335
|
+
mode: {
|
|
303
336
|
type: string;
|
|
337
|
+
enum: string[];
|
|
304
338
|
description: string;
|
|
305
|
-
default:
|
|
339
|
+
default: string;
|
|
306
340
|
};
|
|
307
|
-
|
|
341
|
+
confirm: {
|
|
308
342
|
type: string;
|
|
309
343
|
description: string;
|
|
310
344
|
default: boolean;
|
|
311
345
|
};
|
|
312
|
-
|
|
346
|
+
force: {
|
|
313
347
|
type: string;
|
|
314
348
|
description: string;
|
|
315
349
|
default: boolean;
|
|
316
350
|
};
|
|
317
|
-
daysOld: {
|
|
318
|
-
type: string;
|
|
319
|
-
description: string;
|
|
320
|
-
default: number;
|
|
321
|
-
};
|
|
322
351
|
};
|
|
323
352
|
required: string[];
|
|
324
353
|
};
|
|
325
354
|
handler(input: GitWorkflowInput): Promise<GitWorkflowResult>;
|
|
326
|
-
|
|
327
|
-
action: "
|
|
355
|
+
handleInit(params: GitWorkflowInput & {
|
|
356
|
+
action: "init";
|
|
357
|
+
}): Promise<GitWorkflowResult>;
|
|
358
|
+
handleCommit(params: GitWorkflowInput & {
|
|
359
|
+
action: "commit";
|
|
360
|
+
}): Promise<GitWorkflowResult>;
|
|
361
|
+
handleSync(params: GitWorkflowInput & {
|
|
362
|
+
action: "sync";
|
|
363
|
+
}): Promise<GitWorkflowResult>;
|
|
364
|
+
handleStatus(params: GitWorkflowInput & {
|
|
365
|
+
action: "status";
|
|
366
|
+
}): Promise<GitWorkflowResult>;
|
|
367
|
+
handleDiff(params: GitWorkflowInput & {
|
|
368
|
+
action: "diff";
|
|
369
|
+
}): Promise<GitWorkflowResult>;
|
|
370
|
+
handleLog(params: GitWorkflowInput & {
|
|
371
|
+
action: "log";
|
|
372
|
+
}): Promise<GitWorkflowResult>;
|
|
373
|
+
handleStash(params: GitWorkflowInput & {
|
|
374
|
+
action: "stash";
|
|
375
|
+
}): Promise<GitWorkflowResult>;
|
|
376
|
+
handleStashList(params: GitWorkflowInput & {
|
|
377
|
+
action: "stash-list";
|
|
328
378
|
}): Promise<GitWorkflowResult>;
|
|
329
|
-
|
|
330
|
-
action: "
|
|
379
|
+
handleStashApply(params: GitWorkflowInput & {
|
|
380
|
+
action: "stash-apply";
|
|
331
381
|
}): Promise<GitWorkflowResult>;
|
|
332
|
-
|
|
333
|
-
action: "
|
|
382
|
+
handleReset(params: GitWorkflowInput & {
|
|
383
|
+
action: "reset";
|
|
334
384
|
}): Promise<GitWorkflowResult>;
|
|
335
|
-
|
|
336
|
-
action: "
|
|
385
|
+
handlePull(params: GitWorkflowInput & {
|
|
386
|
+
action: "pull";
|
|
337
387
|
}): Promise<GitWorkflowResult>;
|
|
338
|
-
|
|
339
|
-
action: "
|
|
388
|
+
handlePush(params: GitWorkflowInput & {
|
|
389
|
+
action: "push";
|
|
340
390
|
}): Promise<GitWorkflowResult>;
|
|
341
|
-
initializeGit(projectPath: string): Promise<{
|
|
342
|
-
success: boolean;
|
|
343
|
-
error?: string;
|
|
344
|
-
}>;
|
|
345
|
-
createRemoteRepository(repo: string, provider: string, projectPath: string): Promise<{
|
|
346
|
-
success: boolean;
|
|
347
|
-
error?: string;
|
|
348
|
-
}>;
|
|
349
|
-
applyTemplate(projectPath: string, template: string): Promise<{
|
|
350
|
-
success: boolean;
|
|
351
|
-
error?: string;
|
|
352
|
-
}>;
|
|
353
|
-
autoConfigureProject(projectPath: string, template: string, platforms: string[]): Promise<{
|
|
354
|
-
success: boolean;
|
|
355
|
-
error?: string;
|
|
356
|
-
}>;
|
|
357
|
-
createBackup(projectPath: string): Promise<{
|
|
358
|
-
success: boolean;
|
|
359
|
-
error?: string;
|
|
360
|
-
}>;
|
|
361
|
-
runTests(projectPath: string): Promise<{
|
|
362
|
-
success: boolean;
|
|
363
|
-
error?: string;
|
|
364
|
-
}>;
|
|
365
|
-
checkLinting(projectPath: string): Promise<{
|
|
366
|
-
success: boolean;
|
|
367
|
-
error?: string;
|
|
368
|
-
}>;
|
|
369
|
-
smartCommit(projectPath: string): Promise<{
|
|
370
|
-
success: boolean;
|
|
371
|
-
error?: string;
|
|
372
|
-
}>;
|
|
373
|
-
pushChanges(projectPath: string): Promise<{
|
|
374
|
-
success: boolean;
|
|
375
|
-
error?: string;
|
|
376
|
-
}>;
|
|
377
|
-
createFeatureBranch(projectPath: string, featureName: string, baseBranch: string): Promise<{
|
|
378
|
-
success: boolean;
|
|
379
|
-
error?: string;
|
|
380
|
-
}>;
|
|
381
|
-
mergeFeature(projectPath: string, featureName: string, baseBranch: string): Promise<{
|
|
382
|
-
success: boolean;
|
|
383
|
-
error?: string;
|
|
384
|
-
}>;
|
|
385
|
-
createPullRequest(projectPath: string, featureName: string): Promise<{
|
|
386
|
-
success: boolean;
|
|
387
|
-
error?: string;
|
|
388
|
-
}>;
|
|
389
|
-
updateChangelog(projectPath: string, version?: string): Promise<{
|
|
390
|
-
success: boolean;
|
|
391
|
-
error?: string;
|
|
392
|
-
}>;
|
|
393
|
-
createReleaseTag(projectPath: string, version: string): Promise<{
|
|
394
|
-
success: boolean;
|
|
395
|
-
error?: string;
|
|
396
|
-
}>;
|
|
397
|
-
createRelease(projectPath: string, version: string, platforms: string[]): Promise<{
|
|
398
|
-
success: boolean;
|
|
399
|
-
error?: string;
|
|
400
|
-
}>;
|
|
401
|
-
removeMergedBranches(projectPath: string): Promise<{
|
|
402
|
-
success: boolean;
|
|
403
|
-
error?: string;
|
|
404
|
-
}>;
|
|
405
|
-
removeOldBackups(projectPath: string, daysOld: number): Promise<{
|
|
406
|
-
success: boolean;
|
|
407
|
-
error?: string;
|
|
408
|
-
}>;
|
|
409
|
-
optimizeRepository(projectPath: string): Promise<{
|
|
410
|
-
success: boolean;
|
|
411
|
-
error?: string;
|
|
412
|
-
}>;
|
|
413
391
|
};
|
|
414
392
|
export {};
|
|
415
393
|
//# sourceMappingURL=git-workflow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-workflow.d.ts","sourceRoot":"","sources":["../../src/tools/git-workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"git-workflow.d.ts","sourceRoot":"","sources":["../../src/tools/git-workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;;;;;GAYG;AAEH,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+F1B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;EAQ3B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAwDxE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA8DL,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;uBAqCzC,gBAAgB,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;yBA+EhE,gBAAgB,GAAG;QAAE,MAAM,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;uBA+DtE,gBAAgB,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;yBA+ChE,gBAAgB,GAAG;QAAE,MAAM,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;uBAwBtE,gBAAgB,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;sBAwBnE,gBAAgB,GAAG;QAAE,MAAM,EAAE,KAAK,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;wBA2B/D,gBAAgB,GAAG;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;4BA4B/D,gBAAgB,GAAG;QAAE,MAAM,EAAE,YAAY,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;6BAoBvE,gBAAgB,GAAG;QAAE,MAAM,EAAE,aAAa,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;wBAwB9E,gBAAgB,GAAG;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;uBAiCpE,gBAAgB,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;uBAwBlE,gBAAgB,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;CA0B5F,CAAC"}
|