@andrebuzeli/git-mcp 2.12.8 → 2.13.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.d.ts.map +1 -1
- package/dist/server.js +86 -28
- package/dist/server.js.map +1 -1
- package/dist/tools/branches.d.ts +2 -2
- package/dist/tools/code-review.d.ts +4 -4
- package/dist/tools/commits.d.ts +2 -2
- package/dist/tools/deployments.d.ts +4 -4
- package/dist/tools/gh-codespaces.d.ts +154 -0
- package/dist/tools/gh-codespaces.d.ts.map +1 -0
- package/dist/tools/gh-codespaces.js +286 -0
- package/dist/tools/gh-codespaces.js.map +1 -0
- package/dist/tools/gh-gists.d.ts +194 -0
- package/dist/tools/gh-gists.d.ts.map +1 -0
- package/dist/tools/gh-gists.js +328 -0
- package/dist/tools/gh-gists.js.map +1 -0
- package/dist/tools/gh-projects.d.ts +225 -0
- package/dist/tools/gh-projects.d.ts.map +1 -0
- package/dist/tools/gh-projects.js +365 -0
- package/dist/tools/gh-projects.js.map +1 -0
- package/dist/tools/gh-sync.d.ts +229 -0
- package/dist/tools/gh-sync.d.ts.map +1 -0
- package/dist/tools/gh-sync.js +384 -0
- package/dist/tools/gh-sync.js.map +1 -0
- package/dist/tools/git-archive.d.ts +169 -0
- package/dist/tools/git-archive.d.ts.map +1 -0
- package/dist/tools/git-archive.js +235 -0
- package/dist/tools/git-archive.js.map +1 -0
- package/dist/tools/git-bundle.d.ts +175 -0
- package/dist/tools/git-bundle.d.ts.map +1 -0
- package/dist/tools/git-bundle.js +258 -0
- package/dist/tools/git-bundle.js.map +1 -0
- package/dist/tools/git-cherry-pick.d.ts +162 -0
- package/dist/tools/git-cherry-pick.d.ts.map +1 -0
- package/dist/tools/git-cherry-pick.js +241 -0
- package/dist/tools/git-cherry-pick.js.map +1 -0
- package/dist/tools/git-config.d.ts +144 -0
- package/dist/tools/git-config.d.ts.map +1 -0
- package/dist/tools/git-config.js +293 -0
- package/dist/tools/git-config.js.map +1 -0
- package/dist/tools/git-rebase.d.ts +141 -0
- package/dist/tools/git-rebase.d.ts.map +1 -0
- package/dist/tools/git-rebase.js +234 -0
- package/dist/tools/git-rebase.js.map +1 -0
- package/dist/tools/git-remote.d.ts +142 -0
- package/dist/tools/git-remote.d.ts.map +1 -0
- package/dist/tools/git-remote.js +303 -0
- package/dist/tools/git-remote.js.map +1 -0
- package/dist/tools/git-repositories.d.ts +422 -0
- package/dist/tools/git-repositories.d.ts.map +1 -0
- package/dist/tools/git-repositories.js +557 -0
- package/dist/tools/git-repositories.js.map +1 -0
- package/dist/tools/git-reset.d.ts +134 -0
- package/dist/tools/git-reset.d.ts.map +1 -0
- package/dist/tools/git-reset.js +236 -0
- package/dist/tools/git-reset.js.map +1 -0
- package/dist/tools/git-revert.d.ts +153 -0
- package/dist/tools/git-revert.d.ts.map +1 -0
- package/dist/tools/git-revert.js +211 -0
- package/dist/tools/git-revert.js.map +1 -0
- package/dist/tools/git-stash.d.ts +144 -0
- package/dist/tools/git-stash.d.ts.map +1 -0
- package/dist/tools/git-stash.js +298 -0
- package/dist/tools/git-stash.js.map +1 -0
- package/dist/tools/git-submodule.d.ts +156 -0
- package/dist/tools/git-submodule.d.ts.map +1 -0
- package/dist/tools/git-submodule.js +314 -0
- package/dist/tools/git-submodule.js.map +1 -0
- package/dist/tools/git-sync.d.ts +4 -4
- package/dist/tools/git-worktree.d.ts +163 -0
- package/dist/tools/git-worktree.d.ts.map +1 -0
- package/dist/tools/git-worktree.js +294 -0
- package/dist/tools/git-worktree.js.map +1 -0
- package/dist/tools/pulls.d.ts +2 -2
- package/dist/tools/users.d.ts +2 -2
- package/dist/tools/version-control.d.ts +4 -4
- package/package.json +2 -2
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AA0IA;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAS;;IAavB;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,aAAa;IAuDrB;;;;;;;;;;;;;;;;;;OAkBG;IACG,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA6D1B;;;;;;;;;;;;OAYG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7B"}
|
package/dist/server.js
CHANGED
|
@@ -7,71 +7,129 @@ const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
|
|
|
7
7
|
const config_js_1 = require("./config.js");
|
|
8
8
|
const index_js_2 = require("./providers/index.js");
|
|
9
9
|
/**
|
|
10
|
-
* Importação de todas as ferramentas MCP disponíveis
|
|
10
|
+
* Importação de todas as ferramentas MCP disponíveis (30 tools)
|
|
11
11
|
*
|
|
12
|
-
*
|
|
13
|
-
* - repositories: Gerenciamento de repositórios
|
|
14
|
-
* -
|
|
15
|
-
* -
|
|
16
|
-
* -
|
|
17
|
-
* -
|
|
18
|
-
* -
|
|
19
|
-
* -
|
|
20
|
-
* -
|
|
21
|
-
* -
|
|
22
|
-
* -
|
|
23
|
-
* -
|
|
12
|
+
* GIT CORE (15 tools) - Funcionam com GitHub + Gitea:
|
|
13
|
+
* - git-repositories: Gerenciamento de repositórios
|
|
14
|
+
* - git-commits: Operações com commits
|
|
15
|
+
* - git-branches: Operações com branches
|
|
16
|
+
* - git-tags: Gerenciamento de tags
|
|
17
|
+
* - git-files: Gerenciamento de arquivos
|
|
18
|
+
* - git-issues: Gerenciamento de issues
|
|
19
|
+
* - git-pulls: Pull requests e merges
|
|
20
|
+
* - git-releases: Gerenciamento de releases
|
|
21
|
+
* - git-webhooks: Gerenciamento de webhooks
|
|
22
|
+
* - git-rebase: Operações de rebase
|
|
23
|
+
* - git-reset: Operações de reset
|
|
24
|
+
* - git-revert: Operações de revert
|
|
25
|
+
* - git-stash: Gerenciamento de stash
|
|
26
|
+
* - git-config: Configuração do Git
|
|
27
|
+
* - git-remote: Gerenciamento de remotes
|
|
28
|
+
*
|
|
29
|
+
* GIT AVANÇADO (5 tools) - Funcionam com GitHub + Gitea:
|
|
30
|
+
* - git-cherry-pick: Cherry-pick de commits
|
|
31
|
+
* - git-submodule: Gerenciamento de submódulos
|
|
32
|
+
* - git-worktree: Gerenciamento de worktrees
|
|
33
|
+
* - git-archive: Criação de arquivos
|
|
34
|
+
* - git-bundle: Transferência de repositórios
|
|
35
|
+
*
|
|
36
|
+
* GITHUB EXCLUSIVO (10 tools) - Apenas GitHub:
|
|
37
|
+
* - gh-workflows: GitHub Actions workflows
|
|
38
|
+
* - gh-actions: GitHub Actions runs
|
|
39
|
+
* - gh-deployments: GitHub Deployments
|
|
40
|
+
* - gh-security: GitHub Security
|
|
41
|
+
* - gh-analytics: GitHub Analytics
|
|
42
|
+
* - gh-code-review: GitHub Code Review
|
|
43
|
+
* - gh-gists: GitHub Gists
|
|
44
|
+
* - gh-codespaces: GitHub Codespaces
|
|
45
|
+
* - gh-projects: GitHub Projects
|
|
46
|
+
* - gh-sync: GitHub Sync
|
|
24
47
|
*/
|
|
25
|
-
|
|
48
|
+
// Git Core Tools (15)
|
|
49
|
+
const git_repositories_js_1 = require("./tools/git-repositories.js");
|
|
50
|
+
const commits_js_1 = require("./tools/commits.js");
|
|
26
51
|
const branches_js_1 = require("./tools/branches.js");
|
|
52
|
+
const tags_js_1 = require("./tools/tags.js");
|
|
27
53
|
const files_js_1 = require("./tools/files.js");
|
|
28
|
-
const commits_js_1 = require("./tools/commits.js");
|
|
29
54
|
const issues_js_1 = require("./tools/issues.js");
|
|
30
55
|
const pulls_js_1 = require("./tools/pulls.js");
|
|
31
56
|
const releases_js_1 = require("./tools/releases.js");
|
|
32
|
-
const tags_js_1 = require("./tools/tags.js");
|
|
33
|
-
const users_js_1 = require("./tools/users.js");
|
|
34
57
|
const webhooks_js_1 = require("./tools/webhooks.js");
|
|
35
|
-
const
|
|
36
|
-
const
|
|
58
|
+
const git_rebase_js_1 = require("./tools/git-rebase.js");
|
|
59
|
+
const git_reset_js_1 = require("./tools/git-reset.js");
|
|
60
|
+
const git_revert_js_1 = require("./tools/git-revert.js");
|
|
61
|
+
const git_stash_js_1 = require("./tools/git-stash.js");
|
|
62
|
+
const git_config_js_1 = require("./tools/git-config.js");
|
|
63
|
+
const git_remote_js_1 = require("./tools/git-remote.js");
|
|
64
|
+
// Git Avançado Tools (5)
|
|
65
|
+
const git_cherry_pick_js_1 = require("./tools/git-cherry-pick.js");
|
|
66
|
+
const git_submodule_js_1 = require("./tools/git-submodule.js");
|
|
67
|
+
const git_worktree_js_1 = require("./tools/git-worktree.js");
|
|
68
|
+
const git_archive_js_1 = require("./tools/git-archive.js");
|
|
69
|
+
const git_bundle_js_1 = require("./tools/git-bundle.js");
|
|
70
|
+
// GitHub Exclusivo Tools (10)
|
|
37
71
|
const workflows_js_1 = require("./tools/workflows.js");
|
|
38
72
|
const actions_js_1 = require("./tools/actions.js");
|
|
39
73
|
const deployments_js_1 = require("./tools/deployments.js");
|
|
40
74
|
const security_js_1 = require("./tools/security.js");
|
|
41
75
|
const analytics_js_1 = require("./tools/analytics.js");
|
|
42
76
|
const code_review_js_1 = require("./tools/code-review.js");
|
|
77
|
+
const gh_gists_js_1 = require("./tools/gh-gists.js");
|
|
78
|
+
const gh_codespaces_js_1 = require("./tools/gh-codespaces.js");
|
|
79
|
+
const gh_projects_js_1 = require("./tools/gh-projects.js");
|
|
80
|
+
const gh_sync_js_1 = require("./tools/gh-sync.js");
|
|
43
81
|
/**
|
|
44
|
-
* Array de todas as ferramentas disponíveis
|
|
82
|
+
* Array de todas as ferramentas disponíveis (30 tools)
|
|
45
83
|
*
|
|
46
84
|
* ESTRUTURA:
|
|
47
85
|
* - Cada tool deve implementar a interface Tool
|
|
48
86
|
* - Nome, descrição e schema são obrigatórios
|
|
49
87
|
* - Handler deve ser assíncrono e retornar resultado
|
|
50
88
|
*
|
|
89
|
+
* ORGANIZAÇÃO:
|
|
90
|
+
* - Git Core (15): Funcionam com GitHub + Gitea
|
|
91
|
+
* - Git Avançado (5): Funcionam com GitHub + Gitea
|
|
92
|
+
* - GitHub Exclusivo (10): Apenas GitHub
|
|
93
|
+
*
|
|
51
94
|
* USO:
|
|
52
95
|
* - Para listagem de tools disponíveis
|
|
53
96
|
* - Para execução de tools específicas
|
|
54
97
|
* - Para validação de parâmetros
|
|
55
98
|
*/
|
|
56
99
|
const tools = [
|
|
57
|
-
|
|
100
|
+
// Git Core Tools (15) - GitHub + Gitea
|
|
101
|
+
git_repositories_js_1.gitRepositoriesTool,
|
|
102
|
+
commits_js_1.commitsTool,
|
|
58
103
|
branches_js_1.branchesTool,
|
|
104
|
+
tags_js_1.tagsTool,
|
|
59
105
|
files_js_1.filesTool,
|
|
60
|
-
commits_js_1.commitsTool,
|
|
61
106
|
issues_js_1.issuesTool,
|
|
62
107
|
pulls_js_1.pullsTool,
|
|
63
108
|
releases_js_1.releasesTool,
|
|
64
|
-
tags_js_1.tagsTool,
|
|
65
|
-
users_js_1.usersTool,
|
|
66
109
|
webhooks_js_1.webhooksTool,
|
|
67
|
-
|
|
68
|
-
|
|
110
|
+
git_rebase_js_1.gitRebaseTool,
|
|
111
|
+
git_reset_js_1.gitResetTool,
|
|
112
|
+
git_revert_js_1.gitRevertTool,
|
|
113
|
+
git_stash_js_1.gitStashTool,
|
|
114
|
+
git_config_js_1.gitConfigTool,
|
|
115
|
+
git_remote_js_1.gitRemoteTool,
|
|
116
|
+
// Git Avançado Tools (5) - GitHub + Gitea
|
|
117
|
+
git_cherry_pick_js_1.gitCherryPickTool,
|
|
118
|
+
git_submodule_js_1.gitSubmoduleTool,
|
|
119
|
+
git_worktree_js_1.gitWorktreeTool,
|
|
120
|
+
git_archive_js_1.gitArchiveTool,
|
|
121
|
+
git_bundle_js_1.gitBundleTool,
|
|
122
|
+
// GitHub Exclusivo Tools (10) - Apenas GitHub
|
|
69
123
|
workflows_js_1.workflowsTool,
|
|
70
124
|
actions_js_1.actionsTool,
|
|
71
125
|
deployments_js_1.deploymentsTool,
|
|
72
126
|
security_js_1.securityTool,
|
|
73
127
|
analytics_js_1.analyticsTool,
|
|
74
|
-
code_review_js_1.codeReviewTool
|
|
128
|
+
code_review_js_1.codeReviewTool,
|
|
129
|
+
gh_gists_js_1.ghGistsTool,
|
|
130
|
+
gh_codespaces_js_1.ghCodespacesTool,
|
|
131
|
+
gh_projects_js_1.ghProjectsTool,
|
|
132
|
+
gh_sync_js_1.ghSyncTool
|
|
75
133
|
];
|
|
76
134
|
/**
|
|
77
135
|
* Servidor MCP principal para Gitea
|
|
@@ -97,7 +155,7 @@ class GiteaMCPServer {
|
|
|
97
155
|
constructor() {
|
|
98
156
|
this.server = new index_js_1.Server({
|
|
99
157
|
name: 'git-mcp',
|
|
100
|
-
version: '2.
|
|
158
|
+
version: '2.13.0',
|
|
101
159
|
});
|
|
102
160
|
this.setupHandlers();
|
|
103
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
|
|
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,mDAAiD;AACjD,qDAAmD;AACnD,6CAA2C;AAC3C,+CAA6C;AAC7C,iDAA+C;AAC/C,+CAA6C;AAC7C,qDAAmD;AACnD,qDAAmD;AACnD,yDAAsD;AACtD,uDAAoD;AACpD,yDAAsD;AACtD,uDAAoD;AACpD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O,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"}
|
package/dist/tools/branches.d.ts
CHANGED
|
@@ -65,9 +65,9 @@ declare const BranchesInputSchema: z.ZodObject<{
|
|
|
65
65
|
base?: string | undefined;
|
|
66
66
|
page?: number | undefined;
|
|
67
67
|
limit?: number | undefined;
|
|
68
|
+
branch?: string | undefined;
|
|
68
69
|
branch_name?: string | undefined;
|
|
69
70
|
from_branch?: string | undefined;
|
|
70
|
-
branch?: string | undefined;
|
|
71
71
|
merge_method?: "merge" | "rebase" | "squash" | undefined;
|
|
72
72
|
base_branch?: string | undefined;
|
|
73
73
|
head_branch?: string | undefined;
|
|
@@ -81,9 +81,9 @@ declare const BranchesInputSchema: z.ZodObject<{
|
|
|
81
81
|
base?: string | undefined;
|
|
82
82
|
page?: number | undefined;
|
|
83
83
|
limit?: number | undefined;
|
|
84
|
+
branch?: string | undefined;
|
|
84
85
|
branch_name?: string | undefined;
|
|
85
86
|
from_branch?: string | undefined;
|
|
86
|
-
branch?: string | undefined;
|
|
87
87
|
merge_method?: "merge" | "rebase" | "squash" | undefined;
|
|
88
88
|
base_branch?: string | undefined;
|
|
89
89
|
head_branch?: string | undefined;
|
|
@@ -72,7 +72,6 @@ declare const CodeReviewInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
72
72
|
sha?: string | undefined;
|
|
73
73
|
branch?: string | undefined;
|
|
74
74
|
pull_number?: number | undefined;
|
|
75
|
-
exclude_patterns?: string[] | undefined;
|
|
76
75
|
report_type?: "security" | "performance" | "summary" | "detailed" | undefined;
|
|
77
76
|
language?: string | undefined;
|
|
78
77
|
file_path?: string | undefined;
|
|
@@ -84,6 +83,7 @@ declare const CodeReviewInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
84
83
|
suggestion: string;
|
|
85
84
|
}[] | undefined;
|
|
86
85
|
rules?: string[] | undefined;
|
|
86
|
+
exclude_patterns?: string[] | undefined;
|
|
87
87
|
}, {
|
|
88
88
|
provider: "gitea" | "github" | "both";
|
|
89
89
|
owner: string;
|
|
@@ -94,7 +94,6 @@ declare const CodeReviewInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
94
94
|
sha?: string | undefined;
|
|
95
95
|
branch?: string | undefined;
|
|
96
96
|
pull_number?: number | undefined;
|
|
97
|
-
exclude_patterns?: string[] | undefined;
|
|
98
97
|
report_type?: "security" | "performance" | "summary" | "detailed" | undefined;
|
|
99
98
|
language?: string | undefined;
|
|
100
99
|
file_path?: string | undefined;
|
|
@@ -106,6 +105,7 @@ declare const CodeReviewInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
106
105
|
suggestion: string;
|
|
107
106
|
}[] | undefined;
|
|
108
107
|
rules?: string[] | undefined;
|
|
108
|
+
exclude_patterns?: string[] | undefined;
|
|
109
109
|
}>, {
|
|
110
110
|
provider: "gitea" | "github" | "both";
|
|
111
111
|
owner: string;
|
|
@@ -116,7 +116,6 @@ declare const CodeReviewInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
116
116
|
sha?: string | undefined;
|
|
117
117
|
branch?: string | undefined;
|
|
118
118
|
pull_number?: number | undefined;
|
|
119
|
-
exclude_patterns?: string[] | undefined;
|
|
120
119
|
report_type?: "security" | "performance" | "summary" | "detailed" | undefined;
|
|
121
120
|
language?: string | undefined;
|
|
122
121
|
file_path?: string | undefined;
|
|
@@ -128,6 +127,7 @@ declare const CodeReviewInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
128
127
|
suggestion: string;
|
|
129
128
|
}[] | undefined;
|
|
130
129
|
rules?: string[] | undefined;
|
|
130
|
+
exclude_patterns?: string[] | undefined;
|
|
131
131
|
}, {
|
|
132
132
|
provider: "gitea" | "github" | "both";
|
|
133
133
|
owner: string;
|
|
@@ -138,7 +138,6 @@ declare const CodeReviewInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
138
138
|
sha?: string | undefined;
|
|
139
139
|
branch?: string | undefined;
|
|
140
140
|
pull_number?: number | undefined;
|
|
141
|
-
exclude_patterns?: string[] | undefined;
|
|
142
141
|
report_type?: "security" | "performance" | "summary" | "detailed" | undefined;
|
|
143
142
|
language?: string | undefined;
|
|
144
143
|
file_path?: string | undefined;
|
|
@@ -150,6 +149,7 @@ declare const CodeReviewInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
150
149
|
suggestion: string;
|
|
151
150
|
}[] | undefined;
|
|
152
151
|
rules?: string[] | undefined;
|
|
152
|
+
exclude_patterns?: string[] | undefined;
|
|
153
153
|
}>;
|
|
154
154
|
export type CodeReviewInput = z.infer<typeof CodeReviewInputSchema>;
|
|
155
155
|
/**
|
package/dist/tools/commits.d.ts
CHANGED
|
@@ -72,8 +72,8 @@ declare const CommitsInputSchema: z.ZodObject<{
|
|
|
72
72
|
limit?: number | undefined;
|
|
73
73
|
sha?: string | undefined;
|
|
74
74
|
query?: string | undefined;
|
|
75
|
-
branch?: string | undefined;
|
|
76
75
|
commit_sha?: string | undefined;
|
|
76
|
+
branch?: string | undefined;
|
|
77
77
|
author_name?: string | undefined;
|
|
78
78
|
author_email?: string | undefined;
|
|
79
79
|
committer_name?: string | undefined;
|
|
@@ -92,8 +92,8 @@ declare const CommitsInputSchema: z.ZodObject<{
|
|
|
92
92
|
limit?: number | undefined;
|
|
93
93
|
sha?: string | undefined;
|
|
94
94
|
query?: string | undefined;
|
|
95
|
-
branch?: string | undefined;
|
|
96
95
|
commit_sha?: string | undefined;
|
|
96
|
+
branch?: string | undefined;
|
|
97
97
|
author_name?: string | undefined;
|
|
98
98
|
author_email?: string | undefined;
|
|
99
99
|
committer_name?: string | undefined;
|
|
@@ -57,7 +57,7 @@ declare const DeploymentsInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
57
57
|
provider: "gitea" | "github" | "both";
|
|
58
58
|
owner: string;
|
|
59
59
|
repo: string;
|
|
60
|
-
action: "status" | "delete" | "create" | "list" | "
|
|
60
|
+
action: "status" | "delete" | "create" | "list" | "environments" | "rollback";
|
|
61
61
|
description?: string | undefined;
|
|
62
62
|
state?: "error" | "success" | "queued" | "in_progress" | "failure" | "pending" | "inactive" | undefined;
|
|
63
63
|
ref?: string | undefined;
|
|
@@ -81,7 +81,7 @@ declare const DeploymentsInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
81
81
|
provider: "gitea" | "github" | "both";
|
|
82
82
|
owner: string;
|
|
83
83
|
repo: string;
|
|
84
|
-
action: "status" | "delete" | "create" | "list" | "
|
|
84
|
+
action: "status" | "delete" | "create" | "list" | "environments" | "rollback";
|
|
85
85
|
description?: string | undefined;
|
|
86
86
|
state?: "error" | "success" | "queued" | "in_progress" | "failure" | "pending" | "inactive" | undefined;
|
|
87
87
|
ref?: string | undefined;
|
|
@@ -105,7 +105,7 @@ declare const DeploymentsInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
105
105
|
provider: "gitea" | "github" | "both";
|
|
106
106
|
owner: string;
|
|
107
107
|
repo: string;
|
|
108
|
-
action: "status" | "delete" | "create" | "list" | "
|
|
108
|
+
action: "status" | "delete" | "create" | "list" | "environments" | "rollback";
|
|
109
109
|
description?: string | undefined;
|
|
110
110
|
state?: "error" | "success" | "queued" | "in_progress" | "failure" | "pending" | "inactive" | undefined;
|
|
111
111
|
ref?: string | undefined;
|
|
@@ -129,7 +129,7 @@ declare const DeploymentsInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
129
129
|
provider: "gitea" | "github" | "both";
|
|
130
130
|
owner: string;
|
|
131
131
|
repo: string;
|
|
132
|
-
action: "status" | "delete" | "create" | "list" | "
|
|
132
|
+
action: "status" | "delete" | "create" | "list" | "environments" | "rollback";
|
|
133
133
|
description?: string | undefined;
|
|
134
134
|
state?: "error" | "success" | "queued" | "in_progress" | "failure" | "pending" | "inactive" | undefined;
|
|
135
135
|
ref?: string | undefined;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VcsOperations } from '../providers/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Tool: gh-codespaces
|
|
5
|
+
*
|
|
6
|
+
* DESCRIÇÃO:
|
|
7
|
+
* Gerenciamento de Codespaces GitHub (exclusivo GitHub) com múltiplas ações
|
|
8
|
+
*
|
|
9
|
+
* FUNCIONALIDADES:
|
|
10
|
+
* - Listar codespaces
|
|
11
|
+
* - Criar codespace
|
|
12
|
+
* - Deletar codespace
|
|
13
|
+
* - Iniciar codespace
|
|
14
|
+
* - Parar codespace
|
|
15
|
+
* - Rebuild codespace
|
|
16
|
+
* - Obter logs do codespace
|
|
17
|
+
*
|
|
18
|
+
* USO:
|
|
19
|
+
* - Para desenvolvimento em nuvem
|
|
20
|
+
* - Para ambientes de desenvolvimento consistentes
|
|
21
|
+
* - Para colaboração remota
|
|
22
|
+
* - Para testes em diferentes ambientes
|
|
23
|
+
*
|
|
24
|
+
* RECOMENDAÇÕES:
|
|
25
|
+
* - Use para projetos que precisam de ambientes específicos
|
|
26
|
+
* - Configure devcontainers adequadamente
|
|
27
|
+
* - Monitore uso de recursos
|
|
28
|
+
* - Limpe codespaces não utilizados
|
|
29
|
+
*/
|
|
30
|
+
declare const GhCodespacesInputSchema: z.ZodObject<{
|
|
31
|
+
action: z.ZodEnum<["list", "create", "delete", "start", "stop", "rebuild", "logs"]>;
|
|
32
|
+
owner: z.ZodString;
|
|
33
|
+
repo: z.ZodString;
|
|
34
|
+
provider: z.ZodEnum<["github"]>;
|
|
35
|
+
projectPath: z.ZodString;
|
|
36
|
+
codespace_name: z.ZodOptional<z.ZodString>;
|
|
37
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
38
|
+
machine_type: z.ZodOptional<z.ZodString>;
|
|
39
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
40
|
+
codespace_id: z.ZodOptional<z.ZodString>;
|
|
41
|
+
log_type: z.ZodOptional<z.ZodEnum<["build", "start", "stop"]>>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
provider: "github";
|
|
44
|
+
owner: string;
|
|
45
|
+
repo: string;
|
|
46
|
+
action: "delete" | "create" | "list" | "logs" | "start" | "stop" | "rebuild";
|
|
47
|
+
projectPath: string;
|
|
48
|
+
branch?: string | undefined;
|
|
49
|
+
codespace_name?: string | undefined;
|
|
50
|
+
machine_type?: string | undefined;
|
|
51
|
+
display_name?: string | undefined;
|
|
52
|
+
codespace_id?: string | undefined;
|
|
53
|
+
log_type?: "start" | "stop" | "build" | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
provider: "github";
|
|
56
|
+
owner: string;
|
|
57
|
+
repo: string;
|
|
58
|
+
action: "delete" | "create" | "list" | "logs" | "start" | "stop" | "rebuild";
|
|
59
|
+
projectPath: string;
|
|
60
|
+
branch?: string | undefined;
|
|
61
|
+
codespace_name?: string | undefined;
|
|
62
|
+
machine_type?: string | undefined;
|
|
63
|
+
display_name?: string | undefined;
|
|
64
|
+
codespace_id?: string | undefined;
|
|
65
|
+
log_type?: "start" | "stop" | "build" | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
export type GhCodespacesInput = z.infer<typeof GhCodespacesInputSchema>;
|
|
68
|
+
declare const GhCodespacesResultSchema: z.ZodObject<{
|
|
69
|
+
success: z.ZodBoolean;
|
|
70
|
+
action: z.ZodString;
|
|
71
|
+
message: z.ZodString;
|
|
72
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
73
|
+
error: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
message: string;
|
|
76
|
+
action: string;
|
|
77
|
+
success: boolean;
|
|
78
|
+
error?: string | undefined;
|
|
79
|
+
data?: any;
|
|
80
|
+
}, {
|
|
81
|
+
message: string;
|
|
82
|
+
action: string;
|
|
83
|
+
success: boolean;
|
|
84
|
+
error?: string | undefined;
|
|
85
|
+
data?: any;
|
|
86
|
+
}>;
|
|
87
|
+
export type GhCodespacesResult = z.infer<typeof GhCodespacesResultSchema>;
|
|
88
|
+
export declare const ghCodespacesTool: {
|
|
89
|
+
name: string;
|
|
90
|
+
description: string;
|
|
91
|
+
inputSchema: {
|
|
92
|
+
type: string;
|
|
93
|
+
properties: {
|
|
94
|
+
action: {
|
|
95
|
+
type: string;
|
|
96
|
+
enum: string[];
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
99
|
+
owner: {
|
|
100
|
+
type: string;
|
|
101
|
+
description: string;
|
|
102
|
+
};
|
|
103
|
+
repo: {
|
|
104
|
+
type: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
provider: {
|
|
108
|
+
type: string;
|
|
109
|
+
enum: string[];
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
112
|
+
projectPath: {
|
|
113
|
+
type: string;
|
|
114
|
+
description: string;
|
|
115
|
+
};
|
|
116
|
+
codespace_name: {
|
|
117
|
+
type: string;
|
|
118
|
+
description: string;
|
|
119
|
+
};
|
|
120
|
+
branch: {
|
|
121
|
+
type: string;
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
machine_type: {
|
|
125
|
+
type: string;
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
display_name: {
|
|
129
|
+
type: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
codespace_id: {
|
|
133
|
+
type: string;
|
|
134
|
+
description: string;
|
|
135
|
+
};
|
|
136
|
+
log_type: {
|
|
137
|
+
type: string;
|
|
138
|
+
enum: string[];
|
|
139
|
+
description: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
required: string[];
|
|
143
|
+
};
|
|
144
|
+
handler(input: GhCodespacesInput): Promise<GhCodespacesResult>;
|
|
145
|
+
list(params: GhCodespacesInput, provider: VcsOperations): Promise<GhCodespacesResult>;
|
|
146
|
+
create(params: GhCodespacesInput, provider: VcsOperations): Promise<GhCodespacesResult>;
|
|
147
|
+
delete(params: GhCodespacesInput, provider: VcsOperations): Promise<GhCodespacesResult>;
|
|
148
|
+
start(params: GhCodespacesInput, provider: VcsOperations): Promise<GhCodespacesResult>;
|
|
149
|
+
stop(params: GhCodespacesInput, provider: VcsOperations): Promise<GhCodespacesResult>;
|
|
150
|
+
rebuild(params: GhCodespacesInput, provider: VcsOperations): Promise<GhCodespacesResult>;
|
|
151
|
+
logs(params: GhCodespacesInput, provider: VcsOperations): Promise<GhCodespacesResult>;
|
|
152
|
+
};
|
|
153
|
+
export {};
|
|
154
|
+
//# sourceMappingURL=gh-codespaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gh-codespaces.d.ts","sourceRoot":"","sources":["../../src/tools/gh-codespaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAyB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB3B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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