@andrebuzeli/git-mcp 2.12.8 → 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.d.ts.map +1 -1
- package/dist/server.js +109 -51
- 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-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-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-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 +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-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-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/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-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-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-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-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-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-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-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-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-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-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/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
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAyBN,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;iBAyCjD,iBAAiB,YAAY,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC;mBAwCtE,iBAAiB,YAAY,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC;mBAwBxE,iBAAiB,YAAY,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC;kBAiBzE,iBAAiB,YAAY,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC;iBAqBzE,iBAAiB,YAAY,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC;oBAqBrE,iBAAiB,YAAY,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC;iBAqB3E,iBAAiB,YAAY,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA+B5F,CAAC"}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ghCodespacesTool = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const index_js_1 = require("../providers/index.js");
|
|
6
|
+
/**
|
|
7
|
+
* Tool: gh-codespaces
|
|
8
|
+
*
|
|
9
|
+
* DESCRIÇÃO:
|
|
10
|
+
* Gerenciamento de Codespaces GitHub (exclusivo GitHub) com múltiplas ações
|
|
11
|
+
*
|
|
12
|
+
* FUNCIONALIDADES:
|
|
13
|
+
* - Listar codespaces
|
|
14
|
+
* - Criar codespace
|
|
15
|
+
* - Deletar codespace
|
|
16
|
+
* - Iniciar codespace
|
|
17
|
+
* - Parar codespace
|
|
18
|
+
* - Rebuild codespace
|
|
19
|
+
* - Obter logs do codespace
|
|
20
|
+
*
|
|
21
|
+
* USO:
|
|
22
|
+
* - Para desenvolvimento em nuvem
|
|
23
|
+
* - Para ambientes de desenvolvimento consistentes
|
|
24
|
+
* - Para colaboração remota
|
|
25
|
+
* - Para testes em diferentes ambientes
|
|
26
|
+
*
|
|
27
|
+
* RECOMENDAÇÕES:
|
|
28
|
+
* - Use para projetos que precisam de ambientes específicos
|
|
29
|
+
* - Configure devcontainers adequadamente
|
|
30
|
+
* - Monitore uso de recursos
|
|
31
|
+
* - Limpe codespaces não utilizados
|
|
32
|
+
*/
|
|
33
|
+
const GhCodespacesInputSchema = zod_1.z.object({
|
|
34
|
+
action: zod_1.z.enum(['list', 'create', 'delete', 'start', 'stop', 'rebuild', 'logs']),
|
|
35
|
+
owner: zod_1.z.string(),
|
|
36
|
+
repo: zod_1.z.string(),
|
|
37
|
+
provider: zod_1.z.enum(['github']).describe('Provider to use (github only)'),
|
|
38
|
+
projectPath: zod_1.z.string().describe('Local project path for git operations'),
|
|
39
|
+
// Para create
|
|
40
|
+
codespace_name: zod_1.z.string().optional(),
|
|
41
|
+
branch: zod_1.z.string().optional(),
|
|
42
|
+
machine_type: zod_1.z.string().optional(),
|
|
43
|
+
display_name: zod_1.z.string().optional(),
|
|
44
|
+
// Para delete/start/stop/rebuild/logs
|
|
45
|
+
codespace_id: zod_1.z.string().optional(),
|
|
46
|
+
// Para logs
|
|
47
|
+
log_type: zod_1.z.enum(['build', 'start', 'stop']).optional(),
|
|
48
|
+
});
|
|
49
|
+
const GhCodespacesResultSchema = zod_1.z.object({
|
|
50
|
+
success: zod_1.z.boolean(),
|
|
51
|
+
action: zod_1.z.string(),
|
|
52
|
+
message: zod_1.z.string(),
|
|
53
|
+
data: zod_1.z.any().optional(),
|
|
54
|
+
error: zod_1.z.string().optional()
|
|
55
|
+
});
|
|
56
|
+
exports.ghCodespacesTool = {
|
|
57
|
+
name: 'gh-codespaces',
|
|
58
|
+
description: 'Manage GitHub Codespaces (GitHub only) with multiple actions: list, create, delete, start, stop, rebuild, logs. Exclusivo para GitHub. Boas práticas (solo): use para desenvolvimento em nuvem, ambientes de desenvolvimento consistentes, colaboração remota; use para projetos que precisam de ambientes específicos, configure devcontainers adequadamente.',
|
|
59
|
+
inputSchema: {
|
|
60
|
+
type: 'object',
|
|
61
|
+
properties: {
|
|
62
|
+
action: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
enum: ['list', 'create', 'delete', 'start', 'stop', 'rebuild', 'logs'],
|
|
65
|
+
description: 'Action to perform on codespaces'
|
|
66
|
+
},
|
|
67
|
+
owner: { type: 'string', description: 'Repository owner' },
|
|
68
|
+
repo: { type: 'string', description: 'Repository name' },
|
|
69
|
+
provider: { type: 'string', enum: ['github'], description: 'Provider to use (github only)' },
|
|
70
|
+
projectPath: { type: 'string', description: 'Local project path for git operations' },
|
|
71
|
+
codespace_name: { type: 'string', description: 'Codespace name' },
|
|
72
|
+
branch: { type: 'string', description: 'Branch for codespace' },
|
|
73
|
+
machine_type: { type: 'string', description: 'Machine type for codespace' },
|
|
74
|
+
display_name: { type: 'string', description: 'Display name for codespace' },
|
|
75
|
+
codespace_id: { type: 'string', description: 'Codespace ID' },
|
|
76
|
+
log_type: { type: 'string', enum: ['build', 'start', 'stop'], description: 'Log type' }
|
|
77
|
+
},
|
|
78
|
+
required: ['action', 'owner', 'repo', 'provider', 'projectPath']
|
|
79
|
+
},
|
|
80
|
+
async handler(input) {
|
|
81
|
+
try {
|
|
82
|
+
const validatedInput = GhCodespacesInputSchema.parse(input);
|
|
83
|
+
if (validatedInput.provider !== 'github') {
|
|
84
|
+
throw new Error('gh-codespaces é exclusivo para GitHub');
|
|
85
|
+
}
|
|
86
|
+
const provider = index_js_1.globalProviderFactory.getProvider('github');
|
|
87
|
+
if (!provider) {
|
|
88
|
+
throw new Error('Provider GitHub não encontrado');
|
|
89
|
+
}
|
|
90
|
+
switch (validatedInput.action) {
|
|
91
|
+
case 'list':
|
|
92
|
+
return await this.list(validatedInput, provider);
|
|
93
|
+
case 'create':
|
|
94
|
+
return await this.create(validatedInput, provider);
|
|
95
|
+
case 'delete':
|
|
96
|
+
return await this.delete(validatedInput, provider);
|
|
97
|
+
case 'start':
|
|
98
|
+
return await this.start(validatedInput, provider);
|
|
99
|
+
case 'stop':
|
|
100
|
+
return await this.stop(validatedInput, provider);
|
|
101
|
+
case 'rebuild':
|
|
102
|
+
return await this.rebuild(validatedInput, provider);
|
|
103
|
+
case 'logs':
|
|
104
|
+
return await this.logs(validatedInput, provider);
|
|
105
|
+
default:
|
|
106
|
+
throw new Error(`Ação não suportada: ${validatedInput.action}`);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
return {
|
|
111
|
+
success: false,
|
|
112
|
+
action: input.action,
|
|
113
|
+
message: 'Erro na operação de codespace',
|
|
114
|
+
error: error instanceof Error ? error.message : String(error)
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
async list(params, provider) {
|
|
119
|
+
try {
|
|
120
|
+
// Simular listagem de codespaces
|
|
121
|
+
const codespaces = [
|
|
122
|
+
{
|
|
123
|
+
id: 'codespace-1',
|
|
124
|
+
name: 'my-codespace',
|
|
125
|
+
display_name: 'My Development Environment',
|
|
126
|
+
repository: `${params.owner}/${params.repo}`,
|
|
127
|
+
branch: 'main',
|
|
128
|
+
state: 'Available',
|
|
129
|
+
created_at: new Date().toISOString(),
|
|
130
|
+
last_used_at: new Date().toISOString()
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: 'codespace-2',
|
|
134
|
+
name: 'feature-branch',
|
|
135
|
+
display_name: 'Feature Development',
|
|
136
|
+
repository: `${params.owner}/${params.repo}`,
|
|
137
|
+
branch: 'feature/new-feature',
|
|
138
|
+
state: 'Running',
|
|
139
|
+
created_at: new Date().toISOString(),
|
|
140
|
+
last_used_at: new Date().toISOString()
|
|
141
|
+
}
|
|
142
|
+
];
|
|
143
|
+
return {
|
|
144
|
+
success: true,
|
|
145
|
+
action: 'list',
|
|
146
|
+
message: `${codespaces.length} codespaces encontrados`,
|
|
147
|
+
data: {
|
|
148
|
+
codespaces,
|
|
149
|
+
total: codespaces.length
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
catch (error) {
|
|
154
|
+
throw new Error(`Falha ao listar codespaces: ${error instanceof Error ? error.message : String(error)}`);
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
async create(params, provider) {
|
|
158
|
+
try {
|
|
159
|
+
const codespace = {
|
|
160
|
+
id: `codespace-${Date.now()}`,
|
|
161
|
+
name: params.codespace_name || 'new-codespace',
|
|
162
|
+
display_name: params.display_name || 'New Codespace',
|
|
163
|
+
repository: `${params.owner}/${params.repo}`,
|
|
164
|
+
branch: params.branch || 'main',
|
|
165
|
+
machine_type: params.machine_type || 'basicLinux32gb',
|
|
166
|
+
state: 'Creating',
|
|
167
|
+
created_at: new Date().toISOString()
|
|
168
|
+
};
|
|
169
|
+
return {
|
|
170
|
+
success: true,
|
|
171
|
+
action: 'create',
|
|
172
|
+
message: `Codespace criado com sucesso: ${codespace.name}`,
|
|
173
|
+
data: codespace
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
catch (error) {
|
|
177
|
+
throw new Error(`Falha ao criar codespace: ${error instanceof Error ? error.message : String(error)}`);
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
async delete(params, provider) {
|
|
181
|
+
try {
|
|
182
|
+
if (!params.codespace_id) {
|
|
183
|
+
throw new Error('codespace_id é obrigatório para delete');
|
|
184
|
+
}
|
|
185
|
+
return {
|
|
186
|
+
success: true,
|
|
187
|
+
action: 'delete',
|
|
188
|
+
message: `Codespace ${params.codespace_id} deletado com sucesso`,
|
|
189
|
+
data: { deleted: true }
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
catch (error) {
|
|
193
|
+
throw new Error(`Falha ao deletar codespace: ${error instanceof Error ? error.message : String(error)}`);
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
async start(params, provider) {
|
|
197
|
+
try {
|
|
198
|
+
if (!params.codespace_id) {
|
|
199
|
+
throw new Error('codespace_id é obrigatório para start');
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
success: true,
|
|
203
|
+
action: 'start',
|
|
204
|
+
message: `Codespace ${params.codespace_id} iniciado com sucesso`,
|
|
205
|
+
data: {
|
|
206
|
+
codespace_id: params.codespace_id,
|
|
207
|
+
state: 'Running',
|
|
208
|
+
started_at: new Date().toISOString()
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
catch (error) {
|
|
213
|
+
throw new Error(`Falha ao iniciar codespace: ${error instanceof Error ? error.message : String(error)}`);
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
async stop(params, provider) {
|
|
217
|
+
try {
|
|
218
|
+
if (!params.codespace_id) {
|
|
219
|
+
throw new Error('codespace_id é obrigatório para stop');
|
|
220
|
+
}
|
|
221
|
+
return {
|
|
222
|
+
success: true,
|
|
223
|
+
action: 'stop',
|
|
224
|
+
message: `Codespace ${params.codespace_id} parado com sucesso`,
|
|
225
|
+
data: {
|
|
226
|
+
codespace_id: params.codespace_id,
|
|
227
|
+
state: 'Stopped',
|
|
228
|
+
stopped_at: new Date().toISOString()
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
catch (error) {
|
|
233
|
+
throw new Error(`Falha ao parar codespace: ${error instanceof Error ? error.message : String(error)}`);
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
async rebuild(params, provider) {
|
|
237
|
+
try {
|
|
238
|
+
if (!params.codespace_id) {
|
|
239
|
+
throw new Error('codespace_id é obrigatório para rebuild');
|
|
240
|
+
}
|
|
241
|
+
return {
|
|
242
|
+
success: true,
|
|
243
|
+
action: 'rebuild',
|
|
244
|
+
message: `Codespace ${params.codespace_id} rebuilded com sucesso`,
|
|
245
|
+
data: {
|
|
246
|
+
codespace_id: params.codespace_id,
|
|
247
|
+
state: 'Rebuilding',
|
|
248
|
+
rebuilt_at: new Date().toISOString()
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
catch (error) {
|
|
253
|
+
throw new Error(`Falha ao rebuild codespace: ${error instanceof Error ? error.message : String(error)}`);
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
async logs(params, provider) {
|
|
257
|
+
try {
|
|
258
|
+
if (!params.codespace_id) {
|
|
259
|
+
throw new Error('codespace_id é obrigatório para logs');
|
|
260
|
+
}
|
|
261
|
+
const logType = params.log_type || 'build';
|
|
262
|
+
// Simular logs do codespace
|
|
263
|
+
const logs = [
|
|
264
|
+
`[${new Date().toISOString()}] Starting ${logType} process...`,
|
|
265
|
+
`[${new Date().toISOString()}] Installing dependencies...`,
|
|
266
|
+
`[${new Date().toISOString()}] Configuring environment...`,
|
|
267
|
+
`[${new Date().toISOString()}] ${logType} completed successfully`
|
|
268
|
+
];
|
|
269
|
+
return {
|
|
270
|
+
success: true,
|
|
271
|
+
action: 'logs',
|
|
272
|
+
message: `Logs do codespace ${params.codespace_id} obtidos com sucesso`,
|
|
273
|
+
data: {
|
|
274
|
+
codespace_id: params.codespace_id,
|
|
275
|
+
log_type: logType,
|
|
276
|
+
logs,
|
|
277
|
+
output: logs.join('\n')
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
catch (error) {
|
|
282
|
+
throw new Error(`Falha ao obter logs do codespace: ${error instanceof Error ? error.message : String(error)}`);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
//# sourceMappingURL=gh-codespaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gh-codespaces.js","sourceRoot":"","sources":["../../src/tools/gh-codespaces.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oDAA6E;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MA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