@andrebuzeli/git-mcp 2.13.0 → 2.14.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 +29 -29
- package/dist/server.js.map +1 -1
- package/dist/tools/gh-actions.d.ts +272 -0
- package/dist/tools/gh-actions.d.ts.map +1 -0
- package/dist/tools/gh-actions.js +479 -0
- package/dist/tools/gh-actions.js.map +1 -0
- package/dist/tools/gh-analytics.d.ts +326 -0
- package/dist/tools/gh-analytics.d.ts.map +1 -0
- package/dist/tools/gh-analytics.js +524 -0
- package/dist/tools/gh-analytics.js.map +1 -0
- package/dist/tools/gh-code-review.d.ts +323 -0
- package/dist/tools/gh-code-review.d.ts.map +1 -0
- package/dist/tools/gh-code-review.js +577 -0
- package/dist/tools/gh-code-review.js.map +1 -0
- package/dist/tools/gh-deployments.d.ts +319 -0
- package/dist/tools/gh-deployments.d.ts.map +1 -0
- package/dist/tools/gh-deployments.js +384 -0
- package/dist/tools/gh-deployments.js.map +1 -0
- package/dist/tools/gh-gists.d.ts +6 -6
- package/dist/tools/gh-security.d.ts +341 -0
- package/dist/tools/gh-security.d.ts.map +1 -0
- package/dist/tools/gh-security.js +427 -0
- package/dist/tools/gh-security.js.map +1 -0
- package/dist/tools/gh-workflows.d.ts +313 -0
- package/dist/tools/gh-workflows.d.ts.map +1 -0
- package/dist/tools/gh-workflows.js +462 -0
- package/dist/tools/gh-workflows.js.map +1 -0
- package/dist/tools/git-branches.d.ts +438 -0
- package/dist/tools/git-branches.d.ts.map +1 -0
- package/dist/tools/git-branches.js +525 -0
- package/dist/tools/git-branches.js.map +1 -0
- package/dist/tools/git-commits.d.ts +497 -0
- package/dist/tools/git-commits.d.ts.map +1 -0
- package/dist/tools/git-commits.js +626 -0
- package/dist/tools/git-commits.js.map +1 -0
- package/dist/tools/git-files.d.ts +463 -0
- package/dist/tools/git-files.d.ts.map +1 -0
- package/dist/tools/git-files.js +555 -0
- package/dist/tools/git-files.js.map +1 -0
- package/dist/tools/git-issues.d.ts +579 -0
- package/dist/tools/git-issues.d.ts.map +1 -0
- package/dist/tools/git-issues.js +694 -0
- package/dist/tools/git-issues.js.map +1 -0
- package/dist/tools/git-pulls.d.ts +702 -0
- package/dist/tools/git-pulls.d.ts.map +1 -0
- package/dist/tools/git-pulls.js +733 -0
- package/dist/tools/git-pulls.js.map +1 -0
- package/dist/tools/git-releases.d.ts +495 -0
- package/dist/tools/git-releases.d.ts.map +1 -0
- package/dist/tools/git-releases.js +552 -0
- package/dist/tools/git-releases.js.map +1 -0
- package/dist/tools/git-tags.d.ts +419 -0
- package/dist/tools/git-tags.d.ts.map +1 -0
- package/dist/tools/git-tags.js +480 -0
- package/dist/tools/git-tags.js.map +1 -0
- package/dist/tools/git-webhooks.d.ts +490 -0
- package/dist/tools/git-webhooks.d.ts.map +1 -0
- package/dist/tools/git-webhooks.js +556 -0
- package/dist/tools/git-webhooks.js.map +1 -0
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -47,14 +47,14 @@ const index_js_2 = require("./providers/index.js");
|
|
|
47
47
|
*/
|
|
48
48
|
// Git Core Tools (15)
|
|
49
49
|
const git_repositories_js_1 = require("./tools/git-repositories.js");
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
50
|
+
const git_commits_js_1 = require("./tools/git-commits.js");
|
|
51
|
+
const git_branches_js_1 = require("./tools/git-branches.js");
|
|
52
|
+
const git_tags_js_1 = require("./tools/git-tags.js");
|
|
53
|
+
const git_files_js_1 = require("./tools/git-files.js");
|
|
54
|
+
const git_issues_js_1 = require("./tools/git-issues.js");
|
|
55
|
+
const git_pulls_js_1 = require("./tools/git-pulls.js");
|
|
56
|
+
const git_releases_js_1 = require("./tools/git-releases.js");
|
|
57
|
+
const git_webhooks_js_1 = require("./tools/git-webhooks.js");
|
|
58
58
|
const git_rebase_js_1 = require("./tools/git-rebase.js");
|
|
59
59
|
const git_reset_js_1 = require("./tools/git-reset.js");
|
|
60
60
|
const git_revert_js_1 = require("./tools/git-revert.js");
|
|
@@ -68,12 +68,12 @@ const git_worktree_js_1 = require("./tools/git-worktree.js");
|
|
|
68
68
|
const git_archive_js_1 = require("./tools/git-archive.js");
|
|
69
69
|
const git_bundle_js_1 = require("./tools/git-bundle.js");
|
|
70
70
|
// GitHub Exclusivo Tools (10)
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const
|
|
71
|
+
const gh_workflows_js_1 = require("./tools/gh-workflows.js");
|
|
72
|
+
const gh_actions_js_1 = require("./tools/gh-actions.js");
|
|
73
|
+
const gh_deployments_js_1 = require("./tools/gh-deployments.js");
|
|
74
|
+
const gh_security_js_1 = require("./tools/gh-security.js");
|
|
75
|
+
const gh_analytics_js_1 = require("./tools/gh-analytics.js");
|
|
76
|
+
const gh_code_review_js_1 = require("./tools/gh-code-review.js");
|
|
77
77
|
const gh_gists_js_1 = require("./tools/gh-gists.js");
|
|
78
78
|
const gh_codespaces_js_1 = require("./tools/gh-codespaces.js");
|
|
79
79
|
const gh_projects_js_1 = require("./tools/gh-projects.js");
|
|
@@ -99,14 +99,14 @@ const gh_sync_js_1 = require("./tools/gh-sync.js");
|
|
|
99
99
|
const tools = [
|
|
100
100
|
// Git Core Tools (15) - GitHub + Gitea
|
|
101
101
|
git_repositories_js_1.gitRepositoriesTool,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
git_commits_js_1.commitsTool,
|
|
103
|
+
git_branches_js_1.branchesTool,
|
|
104
|
+
git_tags_js_1.tagsTool,
|
|
105
|
+
git_files_js_1.filesTool,
|
|
106
|
+
git_issues_js_1.issuesTool,
|
|
107
|
+
git_pulls_js_1.pullsTool,
|
|
108
|
+
git_releases_js_1.releasesTool,
|
|
109
|
+
git_webhooks_js_1.webhooksTool,
|
|
110
110
|
git_rebase_js_1.gitRebaseTool,
|
|
111
111
|
git_reset_js_1.gitResetTool,
|
|
112
112
|
git_revert_js_1.gitRevertTool,
|
|
@@ -120,12 +120,12 @@ const tools = [
|
|
|
120
120
|
git_archive_js_1.gitArchiveTool,
|
|
121
121
|
git_bundle_js_1.gitBundleTool,
|
|
122
122
|
// GitHub Exclusivo Tools (10) - Apenas GitHub
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
gh_workflows_js_1.workflowsTool,
|
|
124
|
+
gh_actions_js_1.actionsTool,
|
|
125
|
+
gh_deployments_js_1.deploymentsTool,
|
|
126
|
+
gh_security_js_1.securityTool,
|
|
127
|
+
gh_analytics_js_1.analyticsTool,
|
|
128
|
+
gh_code_review_js_1.codeReviewTool,
|
|
129
129
|
gh_gists_js_1.ghGistsTool,
|
|
130
130
|
gh_codespaces_js_1.ghCodespacesTool,
|
|
131
131
|
gh_projects_js_1.ghProjectsTool,
|
|
@@ -155,7 +155,7 @@ class GiteaMCPServer {
|
|
|
155
155
|
constructor() {
|
|
156
156
|
this.server = new index_js_1.Server({
|
|
157
157
|
name: 'git-mcp',
|
|
158
|
-
version: '2.
|
|
158
|
+
version: '2.14.0',
|
|
159
159
|
});
|
|
160
160
|
this.setupHandlers();
|
|
161
161
|
}
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;AAAA,wEAAmE;AACnE,wEAAiF;AACjF,iEAAmG;AACnG,2CAAqC;AACrC,mDAAuF;AAEvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,sBAAsB;AACtB,qEAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","s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C,KAAK;QACT,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IAC5B,CAAC;CACF;AAvLD,wCAuLC;AAED;;;;;;;;;;;;;;;;;GAiBG;AAEH,+CAA+C;AAC/C,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC9B,uBAAuB;IACvB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,gDAAgD;AAChD,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;IACnD,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACrE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,qCAAqC;AACrC,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,KAAK,EAAE,EAAE;IACxC,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC5C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VcsOperations } from '../providers/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Tool: actions
|
|
5
|
+
*
|
|
6
|
+
* DESCRIÇÃO:
|
|
7
|
+
* Gerenciamento completo de GitHub Actions com múltiplas ações
|
|
8
|
+
*
|
|
9
|
+
* FUNCIONALIDADES:
|
|
10
|
+
* - Listagem de execuções de actions
|
|
11
|
+
* - Cancelamento de execuções
|
|
12
|
+
* - Re-execução de actions falhadas
|
|
13
|
+
* - Gerenciamento de artefatos
|
|
14
|
+
* - Gerenciamento de secrets (read-only)
|
|
15
|
+
* - Monitoramento de jobs
|
|
16
|
+
*
|
|
17
|
+
* USO:
|
|
18
|
+
* - Para monitorar execuções de CI/CD
|
|
19
|
+
* - Para gerenciar artefatos de build
|
|
20
|
+
* - Para troubleshooting de falhas
|
|
21
|
+
* - Para automação de re-execuções
|
|
22
|
+
*
|
|
23
|
+
* RECOMENDAÇÕES:
|
|
24
|
+
* - Monitore execuções regularmente
|
|
25
|
+
* - Limpe artefatos antigos
|
|
26
|
+
* - Use re-execução apenas quando necessário
|
|
27
|
+
* - Mantenha secrets seguros
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Schema de validação para entrada da tool actions
|
|
31
|
+
*/
|
|
32
|
+
declare const ActionsInputSchema: z.ZodEffects<z.ZodObject<{
|
|
33
|
+
action: z.ZodEnum<["list-runs", "cancel", "rerun", "artifacts", "secrets", "jobs", "download-artifact"]>;
|
|
34
|
+
owner: z.ZodString;
|
|
35
|
+
repo: z.ZodString;
|
|
36
|
+
provider: z.ZodEnum<["gitea", "github", "both"]>;
|
|
37
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
40
|
+
workflow_id: z.ZodOptional<z.ZodString>;
|
|
41
|
+
status: z.ZodOptional<z.ZodEnum<["queued", "in_progress", "completed", "cancelled", "failure", "success"]>>;
|
|
42
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
43
|
+
event: z.ZodOptional<z.ZodString>;
|
|
44
|
+
job_id: z.ZodOptional<z.ZodString>;
|
|
45
|
+
artifact_id: z.ZodOptional<z.ZodString>;
|
|
46
|
+
artifact_name: z.ZodOptional<z.ZodString>;
|
|
47
|
+
download_path: z.ZodOptional<z.ZodString>;
|
|
48
|
+
secret_name: z.ZodOptional<z.ZodString>;
|
|
49
|
+
created_after: z.ZodOptional<z.ZodString>;
|
|
50
|
+
created_before: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
provider: "gitea" | "github" | "both";
|
|
53
|
+
owner: string;
|
|
54
|
+
repo: string;
|
|
55
|
+
action: "list-runs" | "cancel" | "rerun" | "artifacts" | "secrets" | "jobs" | "download-artifact";
|
|
56
|
+
status?: "success" | "queued" | "in_progress" | "completed" | "cancelled" | "failure" | undefined;
|
|
57
|
+
page?: number | undefined;
|
|
58
|
+
limit?: number | undefined;
|
|
59
|
+
workflow_id?: string | undefined;
|
|
60
|
+
run_id?: string | undefined;
|
|
61
|
+
job_id?: string | undefined;
|
|
62
|
+
branch?: string | undefined;
|
|
63
|
+
event?: string | undefined;
|
|
64
|
+
artifact_id?: string | undefined;
|
|
65
|
+
artifact_name?: string | undefined;
|
|
66
|
+
download_path?: string | undefined;
|
|
67
|
+
secret_name?: string | undefined;
|
|
68
|
+
created_after?: string | undefined;
|
|
69
|
+
created_before?: string | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
provider: "gitea" | "github" | "both";
|
|
72
|
+
owner: string;
|
|
73
|
+
repo: string;
|
|
74
|
+
action: "list-runs" | "cancel" | "rerun" | "artifacts" | "secrets" | "jobs" | "download-artifact";
|
|
75
|
+
status?: "success" | "queued" | "in_progress" | "completed" | "cancelled" | "failure" | undefined;
|
|
76
|
+
page?: number | undefined;
|
|
77
|
+
limit?: number | undefined;
|
|
78
|
+
workflow_id?: string | undefined;
|
|
79
|
+
run_id?: string | undefined;
|
|
80
|
+
job_id?: string | undefined;
|
|
81
|
+
branch?: string | undefined;
|
|
82
|
+
event?: string | undefined;
|
|
83
|
+
artifact_id?: string | undefined;
|
|
84
|
+
artifact_name?: string | undefined;
|
|
85
|
+
download_path?: string | undefined;
|
|
86
|
+
secret_name?: string | undefined;
|
|
87
|
+
created_after?: string | undefined;
|
|
88
|
+
created_before?: string | undefined;
|
|
89
|
+
}>, {
|
|
90
|
+
provider: "gitea" | "github" | "both";
|
|
91
|
+
owner: string;
|
|
92
|
+
repo: string;
|
|
93
|
+
action: "list-runs" | "cancel" | "rerun" | "artifacts" | "secrets" | "jobs" | "download-artifact";
|
|
94
|
+
status?: "success" | "queued" | "in_progress" | "completed" | "cancelled" | "failure" | undefined;
|
|
95
|
+
page?: number | undefined;
|
|
96
|
+
limit?: number | undefined;
|
|
97
|
+
workflow_id?: string | undefined;
|
|
98
|
+
run_id?: string | undefined;
|
|
99
|
+
job_id?: string | undefined;
|
|
100
|
+
branch?: string | undefined;
|
|
101
|
+
event?: string | undefined;
|
|
102
|
+
artifact_id?: string | undefined;
|
|
103
|
+
artifact_name?: string | undefined;
|
|
104
|
+
download_path?: string | undefined;
|
|
105
|
+
secret_name?: string | undefined;
|
|
106
|
+
created_after?: string | undefined;
|
|
107
|
+
created_before?: string | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
provider: "gitea" | "github" | "both";
|
|
110
|
+
owner: string;
|
|
111
|
+
repo: string;
|
|
112
|
+
action: "list-runs" | "cancel" | "rerun" | "artifacts" | "secrets" | "jobs" | "download-artifact";
|
|
113
|
+
status?: "success" | "queued" | "in_progress" | "completed" | "cancelled" | "failure" | undefined;
|
|
114
|
+
page?: number | undefined;
|
|
115
|
+
limit?: number | undefined;
|
|
116
|
+
workflow_id?: string | undefined;
|
|
117
|
+
run_id?: string | undefined;
|
|
118
|
+
job_id?: string | undefined;
|
|
119
|
+
branch?: string | undefined;
|
|
120
|
+
event?: string | undefined;
|
|
121
|
+
artifact_id?: string | undefined;
|
|
122
|
+
artifact_name?: string | undefined;
|
|
123
|
+
download_path?: string | undefined;
|
|
124
|
+
secret_name?: string | undefined;
|
|
125
|
+
created_after?: string | undefined;
|
|
126
|
+
created_before?: string | undefined;
|
|
127
|
+
}>;
|
|
128
|
+
export type ActionsInput = z.infer<typeof ActionsInputSchema>;
|
|
129
|
+
/**
|
|
130
|
+
* Schema de validação para resultado da tool actions
|
|
131
|
+
*/
|
|
132
|
+
declare const ActionsResultSchema: z.ZodObject<{
|
|
133
|
+
success: z.ZodBoolean;
|
|
134
|
+
action: z.ZodString;
|
|
135
|
+
message: z.ZodString;
|
|
136
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
137
|
+
error: z.ZodOptional<z.ZodString>;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
message: string;
|
|
140
|
+
action: string;
|
|
141
|
+
success: boolean;
|
|
142
|
+
error?: string | undefined;
|
|
143
|
+
data?: any;
|
|
144
|
+
}, {
|
|
145
|
+
message: string;
|
|
146
|
+
action: string;
|
|
147
|
+
success: boolean;
|
|
148
|
+
error?: string | undefined;
|
|
149
|
+
data?: any;
|
|
150
|
+
}>;
|
|
151
|
+
export type ActionsResult = z.infer<typeof ActionsResultSchema>;
|
|
152
|
+
/**
|
|
153
|
+
* Implementação da tool actions
|
|
154
|
+
*/
|
|
155
|
+
export declare const actionsTool: {
|
|
156
|
+
name: string;
|
|
157
|
+
description: string;
|
|
158
|
+
inputSchema: {
|
|
159
|
+
type: string;
|
|
160
|
+
properties: {
|
|
161
|
+
action: {
|
|
162
|
+
type: string;
|
|
163
|
+
enum: string[];
|
|
164
|
+
description: string;
|
|
165
|
+
};
|
|
166
|
+
owner: {
|
|
167
|
+
type: string;
|
|
168
|
+
description: string;
|
|
169
|
+
};
|
|
170
|
+
repo: {
|
|
171
|
+
type: string;
|
|
172
|
+
description: string;
|
|
173
|
+
};
|
|
174
|
+
provider: {
|
|
175
|
+
type: string;
|
|
176
|
+
description: string;
|
|
177
|
+
};
|
|
178
|
+
run_id: {
|
|
179
|
+
type: string;
|
|
180
|
+
description: string;
|
|
181
|
+
};
|
|
182
|
+
workflow_id: {
|
|
183
|
+
type: string;
|
|
184
|
+
description: string;
|
|
185
|
+
};
|
|
186
|
+
status: {
|
|
187
|
+
type: string;
|
|
188
|
+
enum: string[];
|
|
189
|
+
description: string;
|
|
190
|
+
};
|
|
191
|
+
branch: {
|
|
192
|
+
type: string;
|
|
193
|
+
description: string;
|
|
194
|
+
};
|
|
195
|
+
event: {
|
|
196
|
+
type: string;
|
|
197
|
+
description: string;
|
|
198
|
+
};
|
|
199
|
+
job_id: {
|
|
200
|
+
type: string;
|
|
201
|
+
description: string;
|
|
202
|
+
};
|
|
203
|
+
artifact_id: {
|
|
204
|
+
type: string;
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
207
|
+
artifact_name: {
|
|
208
|
+
type: string;
|
|
209
|
+
description: string;
|
|
210
|
+
};
|
|
211
|
+
download_path: {
|
|
212
|
+
type: string;
|
|
213
|
+
description: string;
|
|
214
|
+
};
|
|
215
|
+
secret_name: {
|
|
216
|
+
type: string;
|
|
217
|
+
description: string;
|
|
218
|
+
};
|
|
219
|
+
created_after: {
|
|
220
|
+
type: string;
|
|
221
|
+
description: string;
|
|
222
|
+
};
|
|
223
|
+
created_before: {
|
|
224
|
+
type: string;
|
|
225
|
+
description: string;
|
|
226
|
+
};
|
|
227
|
+
page: {
|
|
228
|
+
type: string;
|
|
229
|
+
description: string;
|
|
230
|
+
minimum: number;
|
|
231
|
+
};
|
|
232
|
+
limit: {
|
|
233
|
+
type: string;
|
|
234
|
+
description: string;
|
|
235
|
+
minimum: number;
|
|
236
|
+
maximum: number;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
required: string[];
|
|
240
|
+
};
|
|
241
|
+
handler(input: ActionsInput): Promise<ActionsResult>;
|
|
242
|
+
/**
|
|
243
|
+
* Lista execuções de workflows
|
|
244
|
+
*/
|
|
245
|
+
listRuns(params: ActionsInput, provider: VcsOperations): Promise<ActionsResult>;
|
|
246
|
+
/**
|
|
247
|
+
* Cancela execução de workflow
|
|
248
|
+
*/
|
|
249
|
+
cancelRun(params: ActionsInput, provider: VcsOperations): Promise<ActionsResult>;
|
|
250
|
+
/**
|
|
251
|
+
* Re-executa workflow
|
|
252
|
+
*/
|
|
253
|
+
rerunWorkflow(params: ActionsInput, provider: VcsOperations): Promise<ActionsResult>;
|
|
254
|
+
/**
|
|
255
|
+
* Lista artefatos
|
|
256
|
+
*/
|
|
257
|
+
listArtifacts(params: ActionsInput, provider: VcsOperations): Promise<ActionsResult>;
|
|
258
|
+
/**
|
|
259
|
+
* Lista secrets (read-only)
|
|
260
|
+
*/
|
|
261
|
+
listSecrets(params: ActionsInput, provider: VcsOperations): Promise<ActionsResult>;
|
|
262
|
+
/**
|
|
263
|
+
* Lista jobs de uma execução
|
|
264
|
+
*/
|
|
265
|
+
listJobs(params: ActionsInput, provider: VcsOperations): Promise<ActionsResult>;
|
|
266
|
+
/**
|
|
267
|
+
* Baixa artefato
|
|
268
|
+
*/
|
|
269
|
+
downloadArtifact(params: ActionsInput, provider: VcsOperations): Promise<ActionsResult>;
|
|
270
|
+
};
|
|
271
|
+
export {};
|
|
272
|
+
//# sourceMappingURL=gh-actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gh-actions.d.ts","sourceRoot":"","sources":["../../src/tools/gh-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAyB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAI7E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;GAEG;AACH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4CtB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;GAEG;AACH,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAMvB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAuFD,YAAY,GAAG,OA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