@andrebuzeli/git-mcp 2.14.2 → 2.15.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.
Files changed (36) hide show
  1. package/README.md +351 -346
  2. package/dist/server.js +1 -1
  3. package/dist/tools/gh-codespaces.d.ts +2 -2
  4. package/dist/tools/gh-deployments.d.ts +4 -4
  5. package/dist/tools/gh-gists.d.ts +2 -2
  6. package/dist/tools/gh-projects.d.ts +2 -2
  7. package/dist/tools/gh-sync.d.ts +2 -2
  8. package/dist/tools/gh-workflows.d.ts +4 -4
  9. package/dist/tools/git-archive.d.ts +4 -4
  10. package/dist/tools/git-branches.d.ts +2 -2
  11. package/dist/tools/git-cherry-pick.d.ts +2 -2
  12. package/dist/tools/git-commits.d.ts +4 -4
  13. package/dist/tools/git-files.d.ts +4 -4
  14. package/dist/tools/git-issues.d.ts +2 -2
  15. package/dist/tools/git-pulls.d.ts +2 -2
  16. package/dist/tools/git-releases.d.ts +2 -2
  17. package/dist/tools/git-remote.d.ts +4 -4
  18. package/dist/tools/git-repositories.d.ts +90 -21
  19. package/dist/tools/git-repositories.d.ts.map +1 -1
  20. package/dist/tools/git-repositories.js +88 -19
  21. package/dist/tools/git-repositories.js.map +1 -1
  22. package/dist/tools/git-stash.d.ts +2 -2
  23. package/dist/tools/git-submodule.d.ts +4 -4
  24. package/dist/tools/git-tags.d.ts +4 -4
  25. package/dist/tools/git-webhooks.d.ts +2 -2
  26. package/dist/tools/git-worktree.d.ts +4 -4
  27. package/dist/tools/repositories.d.ts +2 -2
  28. package/dist/utils/git-operations.d.ts +168 -0
  29. package/dist/utils/git-operations.d.ts.map +1 -0
  30. package/dist/utils/git-operations.js +760 -0
  31. package/dist/utils/git-operations.js.map +1 -0
  32. package/dist/utils/terminal-controller.d.ts +7 -7
  33. package/dist/utils/terminal-controller.d.ts.map +1 -1
  34. package/dist/utils/terminal-controller.js +202 -60
  35. package/dist/utils/terminal-controller.js.map +1 -1
  36. package/package.json +2 -2
package/dist/server.js CHANGED
@@ -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.14.2',
158
+ version: '2.15.0',
159
159
  });
160
160
  this.setupHandlers();
161
161
  }
@@ -43,7 +43,7 @@ declare const GhCodespacesInputSchema: z.ZodObject<{
43
43
  provider: "github";
44
44
  owner: string;
45
45
  repo: string;
46
- action: "delete" | "create" | "list" | "logs" | "start" | "stop" | "rebuild";
46
+ action: "delete" | "list" | "create" | "logs" | "start" | "stop" | "rebuild";
47
47
  projectPath: string;
48
48
  branch?: string | undefined;
49
49
  codespace_name?: string | undefined;
@@ -55,7 +55,7 @@ declare const GhCodespacesInputSchema: z.ZodObject<{
55
55
  provider: "github";
56
56
  owner: string;
57
57
  repo: string;
58
- action: "delete" | "create" | "list" | "logs" | "start" | "stop" | "rebuild";
58
+ action: "delete" | "list" | "create" | "logs" | "start" | "stop" | "rebuild";
59
59
  projectPath: string;
60
60
  branch?: string | undefined;
61
61
  codespace_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" | "environments" | "rollback";
60
+ action: "status" | "delete" | "list" | "create" | "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" | "environments" | "rollback";
84
+ action: "status" | "delete" | "list" | "create" | "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" | "environments" | "rollback";
108
+ action: "status" | "delete" | "list" | "create" | "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" | "environments" | "rollback";
132
+ action: "status" | "delete" | "list" | "create" | "environments" | "rollback";
133
133
  description?: string | undefined;
134
134
  state?: "error" | "success" | "queued" | "in_progress" | "failure" | "pending" | "inactive" | undefined;
135
135
  ref?: string | undefined;
@@ -56,7 +56,7 @@ declare const GhGistsInputSchema: z.ZodObject<{
56
56
  provider: "github";
57
57
  owner: string;
58
58
  repo: string;
59
- action: "delete" | "get" | "create" | "list" | "update" | "fork" | "comment" | "star";
59
+ action: "delete" | "get" | "list" | "create" | "update" | "fork" | "comment" | "star";
60
60
  projectPath: string;
61
61
  description?: string | undefined;
62
62
  page?: number | undefined;
@@ -74,7 +74,7 @@ declare const GhGistsInputSchema: z.ZodObject<{
74
74
  provider: "github";
75
75
  owner: string;
76
76
  repo: string;
77
- action: "delete" | "get" | "create" | "list" | "update" | "fork" | "comment" | "star";
77
+ action: "delete" | "get" | "list" | "create" | "update" | "fork" | "comment" | "star";
78
78
  projectPath: string;
79
79
  description?: string | undefined;
80
80
  page?: number | undefined;
@@ -52,7 +52,7 @@ declare const GhProjectsInputSchema: z.ZodObject<{
52
52
  provider: "github";
53
53
  owner: string;
54
54
  repo: string;
55
- action: "delete" | "get" | "create" | "list" | "update" | "items" | "fields";
55
+ action: "delete" | "get" | "list" | "create" | "update" | "items" | "fields";
56
56
  projectPath: string;
57
57
  title?: string | undefined;
58
58
  body?: string | undefined;
@@ -73,7 +73,7 @@ declare const GhProjectsInputSchema: z.ZodObject<{
73
73
  provider: "github";
74
74
  owner: string;
75
75
  repo: string;
76
- action: "delete" | "get" | "create" | "list" | "update" | "items" | "fields";
76
+ action: "delete" | "get" | "list" | "create" | "update" | "items" | "fields";
77
77
  projectPath: string;
78
78
  title?: string | undefined;
79
79
  body?: string | undefined;
@@ -55,10 +55,10 @@ declare const GhSyncInputSchema: z.ZodObject<{
55
55
  repo: string;
56
56
  action: "sync-repos" | "sync-issues" | "sync-pulls" | "sync-releases" | "sync-webhooks" | "sync-config";
57
57
  projectPath: string;
58
+ force?: boolean | undefined;
58
59
  issue_number?: number | undefined;
59
60
  pull_number?: number | undefined;
60
61
  webhook_id?: string | undefined;
61
- force?: boolean | undefined;
62
62
  source_repo?: string | undefined;
63
63
  target_repo?: string | undefined;
64
64
  sync_branches?: boolean | undefined;
@@ -78,10 +78,10 @@ declare const GhSyncInputSchema: z.ZodObject<{
78
78
  repo: string;
79
79
  action: "sync-repos" | "sync-issues" | "sync-pulls" | "sync-releases" | "sync-webhooks" | "sync-config";
80
80
  projectPath: string;
81
+ force?: boolean | undefined;
81
82
  issue_number?: number | undefined;
82
83
  pull_number?: number | undefined;
83
84
  webhook_id?: string | undefined;
84
- force?: boolean | undefined;
85
85
  source_repo?: string | undefined;
86
86
  target_repo?: string | undefined;
87
87
  sync_branches?: boolean | undefined;
@@ -61,7 +61,7 @@ declare const WorkflowsInputSchema: z.ZodEffects<z.ZodObject<{
61
61
  provider: "gitea" | "github" | "both";
62
62
  owner: string;
63
63
  repo: string;
64
- action: "status" | "create" | "list" | "trigger" | "logs" | "disable" | "enable";
64
+ action: "status" | "list" | "create" | "trigger" | "logs" | "disable" | "enable";
65
65
  name?: string | undefined;
66
66
  description?: string | undefined;
67
67
  ref?: string | undefined;
@@ -79,7 +79,7 @@ declare const WorkflowsInputSchema: z.ZodEffects<z.ZodObject<{
79
79
  provider: "gitea" | "github" | "both";
80
80
  owner: string;
81
81
  repo: string;
82
- action: "status" | "create" | "list" | "trigger" | "logs" | "disable" | "enable";
82
+ action: "status" | "list" | "create" | "trigger" | "logs" | "disable" | "enable";
83
83
  name?: string | undefined;
84
84
  description?: string | undefined;
85
85
  ref?: string | undefined;
@@ -97,7 +97,7 @@ declare const WorkflowsInputSchema: z.ZodEffects<z.ZodObject<{
97
97
  provider: "gitea" | "github" | "both";
98
98
  owner: string;
99
99
  repo: string;
100
- action: "status" | "create" | "list" | "trigger" | "logs" | "disable" | "enable";
100
+ action: "status" | "list" | "create" | "trigger" | "logs" | "disable" | "enable";
101
101
  name?: string | undefined;
102
102
  description?: string | undefined;
103
103
  ref?: string | undefined;
@@ -115,7 +115,7 @@ declare const WorkflowsInputSchema: z.ZodEffects<z.ZodObject<{
115
115
  provider: "gitea" | "github" | "both";
116
116
  owner: string;
117
117
  repo: string;
118
- action: "status" | "create" | "list" | "trigger" | "logs" | "disable" | "enable";
118
+ action: "status" | "list" | "create" | "trigger" | "logs" | "disable" | "enable";
119
119
  name?: string | undefined;
120
120
  description?: string | undefined;
121
121
  ref?: string | undefined;
@@ -43,8 +43,9 @@ declare const GitArchiveInputSchema: z.ZodObject<{
43
43
  provider: "gitea" | "github";
44
44
  owner: string;
45
45
  repo: string;
46
- action: "create" | "list" | "extract" | "verify";
46
+ action: "list" | "create" | "extract" | "verify";
47
47
  projectPath: string;
48
+ output?: string | undefined;
48
49
  archive_path?: string | undefined;
49
50
  commit_or_tree?: string | undefined;
50
51
  format?: "tar" | "zip" | "tar.gz" | "tar.bz2" | undefined;
@@ -53,13 +54,13 @@ declare const GitArchiveInputSchema: z.ZodObject<{
53
54
  list_archive?: string | undefined;
54
55
  verify_archive?: string | undefined;
55
56
  prefix?: string | undefined;
56
- output?: string | undefined;
57
57
  }, {
58
58
  provider: "gitea" | "github";
59
59
  owner: string;
60
60
  repo: string;
61
- action: "create" | "list" | "extract" | "verify";
61
+ action: "list" | "create" | "extract" | "verify";
62
62
  projectPath: string;
63
+ output?: string | undefined;
63
64
  archive_path?: string | undefined;
64
65
  commit_or_tree?: string | undefined;
65
66
  format?: "tar" | "zip" | "tar.gz" | "tar.bz2" | undefined;
@@ -68,7 +69,6 @@ declare const GitArchiveInputSchema: z.ZodObject<{
68
69
  list_archive?: string | undefined;
69
70
  verify_archive?: string | undefined;
70
71
  prefix?: string | undefined;
71
- output?: string | undefined;
72
72
  }>;
73
73
  export type GitArchiveInput = z.infer<typeof GitArchiveInputSchema>;
74
74
  declare const GitArchiveResultSchema: z.ZodObject<{
@@ -59,7 +59,7 @@ declare const BranchesInputSchema: z.ZodObject<{
59
59
  provider: "gitea" | "github";
60
60
  owner: string;
61
61
  repo: string;
62
- action: "merge" | "delete" | "get" | "create" | "list" | "compare";
62
+ action: "merge" | "delete" | "get" | "list" | "create" | "compare";
63
63
  projectPath: string;
64
64
  head?: string | undefined;
65
65
  base?: string | undefined;
@@ -75,7 +75,7 @@ declare const BranchesInputSchema: z.ZodObject<{
75
75
  provider: "gitea" | "github";
76
76
  owner: string;
77
77
  repo: string;
78
- action: "merge" | "delete" | "get" | "create" | "list" | "compare";
78
+ action: "merge" | "delete" | "get" | "list" | "create" | "compare";
79
79
  projectPath: string;
80
80
  head?: string | undefined;
81
81
  base?: string | undefined;
@@ -42,7 +42,7 @@ declare const GitCherryPickInputSchema: z.ZodObject<{
42
42
  provider: "gitea" | "github";
43
43
  owner: string;
44
44
  repo: string;
45
- action: "abort" | "continue" | "cherry-pick" | "cherry-pick-range";
45
+ action: "cherry-pick" | "abort" | "continue" | "cherry-pick-range";
46
46
  projectPath: string;
47
47
  commit_range?: string | undefined;
48
48
  commit_hash?: string | undefined;
@@ -56,7 +56,7 @@ declare const GitCherryPickInputSchema: z.ZodObject<{
56
56
  provider: "gitea" | "github";
57
57
  owner: string;
58
58
  repo: string;
59
- action: "abort" | "continue" | "cherry-pick" | "cherry-pick-range";
59
+ action: "cherry-pick" | "abort" | "continue" | "cherry-pick-range";
60
60
  projectPath: string;
61
61
  commit_range?: string | undefined;
62
62
  commit_hash?: string | undefined;
@@ -63,7 +63,7 @@ declare const CommitsInputSchema: z.ZodObject<{
63
63
  provider: "gitea" | "github";
64
64
  owner: string;
65
65
  repo: string;
66
- action: "push" | "get" | "create" | "list" | "search" | "compare" | "pull";
66
+ action: "push" | "get" | "pull" | "list" | "create" | "search" | "compare";
67
67
  projectPath: string;
68
68
  message?: string | undefined;
69
69
  head?: string | undefined;
@@ -71,9 +71,9 @@ declare const CommitsInputSchema: z.ZodObject<{
71
71
  page?: number | undefined;
72
72
  limit?: number | undefined;
73
73
  sha?: string | undefined;
74
+ branch?: string | undefined;
74
75
  query?: string | undefined;
75
76
  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;
@@ -83,7 +83,7 @@ declare const CommitsInputSchema: z.ZodObject<{
83
83
  provider: "gitea" | "github";
84
84
  owner: string;
85
85
  repo: string;
86
- action: "push" | "get" | "create" | "list" | "search" | "compare" | "pull";
86
+ action: "push" | "get" | "pull" | "list" | "create" | "search" | "compare";
87
87
  projectPath: string;
88
88
  message?: string | undefined;
89
89
  head?: string | undefined;
@@ -91,9 +91,9 @@ declare const CommitsInputSchema: z.ZodObject<{
91
91
  page?: number | undefined;
92
92
  limit?: number | undefined;
93
93
  sha?: string | undefined;
94
+ branch?: string | undefined;
94
95
  query?: string | undefined;
95
96
  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;
@@ -58,7 +58,7 @@ declare const FilesInputSchema: z.ZodObject<{
58
58
  provider: "gitea" | "github";
59
59
  owner: string;
60
60
  repo: string;
61
- action: "delete" | "get" | "create" | "list" | "update" | "search";
61
+ action: "delete" | "get" | "list" | "create" | "search" | "update";
62
62
  projectPath: string;
63
63
  path?: string | undefined;
64
64
  message?: string | undefined;
@@ -66,14 +66,14 @@ declare const FilesInputSchema: z.ZodObject<{
66
66
  page?: number | undefined;
67
67
  limit?: number | undefined;
68
68
  sha?: string | undefined;
69
- query?: string | undefined;
70
69
  branch?: string | undefined;
70
+ query?: string | undefined;
71
71
  content?: string | undefined;
72
72
  }, {
73
73
  provider: "gitea" | "github";
74
74
  owner: string;
75
75
  repo: string;
76
- action: "delete" | "get" | "create" | "list" | "update" | "search";
76
+ action: "delete" | "get" | "list" | "create" | "search" | "update";
77
77
  projectPath: string;
78
78
  path?: string | undefined;
79
79
  message?: string | undefined;
@@ -81,8 +81,8 @@ declare const FilesInputSchema: z.ZodObject<{
81
81
  page?: number | undefined;
82
82
  limit?: number | undefined;
83
83
  sha?: string | undefined;
84
- query?: string | undefined;
85
84
  branch?: string | undefined;
85
+ query?: string | undefined;
86
86
  content?: string | undefined;
87
87
  }>;
88
88
  export type FilesInput = z.infer<typeof FilesInputSchema>;
@@ -69,7 +69,7 @@ declare const IssuesInputSchema: z.ZodObject<{
69
69
  provider: "gitea" | "github";
70
70
  owner: string;
71
71
  repo: string;
72
- action: "get" | "close" | "create" | "list" | "update" | "search" | "comment";
72
+ action: "get" | "list" | "create" | "search" | "close" | "update" | "comment";
73
73
  title?: string | undefined;
74
74
  body?: string | undefined;
75
75
  state?: "open" | "closed" | "all" | undefined;
@@ -94,7 +94,7 @@ declare const IssuesInputSchema: z.ZodObject<{
94
94
  provider: "gitea" | "github";
95
95
  owner: string;
96
96
  repo: string;
97
- action: "get" | "close" | "create" | "list" | "update" | "search" | "comment";
97
+ action: "get" | "list" | "create" | "search" | "close" | "update" | "comment";
98
98
  title?: string | undefined;
99
99
  body?: string | undefined;
100
100
  state?: "open" | "closed" | "all" | undefined;
@@ -79,7 +79,7 @@ declare const PullsInputSchema: z.ZodObject<{
79
79
  provider: "gitea" | "github";
80
80
  owner: string;
81
81
  repo: string;
82
- action: "merge" | "get" | "close" | "create" | "list" | "update" | "search" | "review";
82
+ action: "merge" | "get" | "list" | "create" | "search" | "close" | "update" | "review";
83
83
  title?: string | undefined;
84
84
  body?: string | undefined;
85
85
  state?: "open" | "closed" | "merged" | "all" | undefined;
@@ -113,7 +113,7 @@ declare const PullsInputSchema: z.ZodObject<{
113
113
  provider: "gitea" | "github";
114
114
  owner: string;
115
115
  repo: string;
116
- action: "merge" | "get" | "close" | "create" | "list" | "update" | "search" | "review";
116
+ action: "merge" | "get" | "list" | "create" | "search" | "close" | "update" | "review";
117
117
  title?: string | undefined;
118
118
  body?: string | undefined;
119
119
  state?: "open" | "closed" | "merged" | "all" | undefined;
@@ -65,7 +65,7 @@ declare const ReleasesInputSchema: z.ZodObject<{
65
65
  provider: "gitea" | "github";
66
66
  owner: string;
67
67
  repo: string;
68
- action: "delete" | "get" | "create" | "list" | "update" | "publish";
68
+ action: "delete" | "get" | "list" | "create" | "update" | "publish";
69
69
  name?: string | undefined;
70
70
  body?: string | undefined;
71
71
  tag_name?: string | undefined;
@@ -86,7 +86,7 @@ declare const ReleasesInputSchema: z.ZodObject<{
86
86
  provider: "gitea" | "github";
87
87
  owner: string;
88
88
  repo: string;
89
- action: "delete" | "get" | "create" | "list" | "update" | "publish";
89
+ action: "delete" | "get" | "list" | "create" | "update" | "publish";
90
90
  name?: string | undefined;
91
91
  body?: string | undefined;
92
92
  tag_name?: string | undefined;
@@ -39,23 +39,23 @@ declare const GitRemoteInputSchema: z.ZodObject<{
39
39
  provider: "gitea" | "github";
40
40
  owner: string;
41
41
  repo: string;
42
- action: "show" | "add" | "remove" | "rename" | "set-url" | "prune";
42
+ action: "add" | "show" | "remove" | "prune" | "rename" | "set-url";
43
43
  projectPath: string;
44
+ remote?: string | undefined;
44
45
  new_name?: string | undefined;
45
46
  remote_name?: string | undefined;
46
47
  remote_url?: string | undefined;
47
- remote?: string | undefined;
48
48
  remote_to_prune?: string | undefined;
49
49
  }, {
50
50
  provider: "gitea" | "github";
51
51
  owner: string;
52
52
  repo: string;
53
- action: "show" | "add" | "remove" | "rename" | "set-url" | "prune";
53
+ action: "add" | "show" | "remove" | "prune" | "rename" | "set-url";
54
54
  projectPath: string;
55
+ remote?: string | undefined;
55
56
  new_name?: string | undefined;
56
57
  remote_name?: string | undefined;
57
58
  remote_url?: string | undefined;
58
- remote?: string | undefined;
59
59
  remote_to_prune?: string | undefined;
60
60
  }>;
61
61
  export type GitRemoteInput = z.infer<typeof GitRemoteInputSchema>;
@@ -3,29 +3,98 @@ import { VcsOperations } from '../providers/index.js';
3
3
  /**
4
4
  * Tool: git-repositories
5
5
  *
6
- * DESCRIÇÃO:
7
- * Gerenciamento completo de repositórios Git (GitHub + Gitea) com múltiplas ações
6
+ * DESCRIÇÃO COMPLETA:
7
+ * Gerenciamento completo de repositórios Git com suporte multi-provider (GitHub e Gitea).
8
+ * Esta tool é 100% auto-suficiente e implementa TODAS as operações de repositório sem depender
9
+ * de outras tools ou comandos externos.
10
+ *
11
+ * FUNCIONALIDADES IMPLEMENTADAS:
12
+ *
13
+ * 1. CRIAÇÃO E CONFIGURAÇÃO:
14
+ * - create: Cria novos repositórios com configurações completas
15
+ * - init: Inicializa repositórios Git locais
16
+ * - clone: Clona repositórios remotos localmente
17
+ * - update: Atualiza configurações de repositórios existentes
18
+ *
19
+ * 2. LISTAGEM E BUSCA:
20
+ * - list: Lista repositórios do usuário ou organização
21
+ * - get: Obtém detalhes específicos de um repositório
22
+ * - search: Busca repositórios por critérios específicos
23
+ *
24
+ * 3. OPERAÇÕES AVANÇADAS:
25
+ * - fork: Cria fork de repositórios existentes
26
+ * - delete: Remove repositórios permanentemente
27
+ * - archive: Arquivamento de repositórios
28
+ * - transfer: Transferência de propriedade
29
+ *
30
+ * 4. CONFIGURAÇÕES E METADADOS:
31
+ * - Visibilidade (público/privado)
32
+ * - Descrições e documentação
33
+ * - Configurações de branch padrão
34
+ * - Templates e inicialização automática
35
+ * - Licenças e arquivos de configuração
8
36
  *
9
- * FUNCIONALIDADES:
10
- * - Criação de repositórios
11
- * - Listagem e busca
12
- * - Atualização e configuração
13
- * - Fork e clonagem
14
- * - Exclusão e arquivamento
15
- * - Inicialização local
16
- * - Clonagem local
37
+ * PARÂMETROS OBRIGATÓRIOS:
38
+ * - action: Ação a executar (create, list, get, update, delete, fork, search, init, clone)
39
+ * - provider: Provedor a usar (gitea ou github)
40
+ * - owner: Proprietário do repositório (obrigatório para operações remotas)
41
+ * - repo: Nome do repositório (obrigatório para operações remotas)
42
+ * - projectPath: Caminho do projeto local (obrigatório para operações locais)
17
43
  *
18
- * USO:
19
- * - Para gerenciar repositórios de projetos
20
- * - Para automatizar criação de repositórios
21
- * - Para backup e migração
22
- * - Para organização de código
44
+ * PARÂMETROS OPCIONAIS:
45
+ * - name: Nome do repositório para criação
46
+ * - description: Descrição do repositório
47
+ * - private: Visibilidade do repositório
48
+ * - auto_init: Inicialização automática com README
49
+ * - gitignores: Template de .gitignore
50
+ * - license: Template de licença
51
+ * - readme: Conteúdo do README
52
+ * - default_branch: Branch padrão
53
+ * - username: Usuário para listagem
54
+ * - page: Página para paginação
55
+ * - limit: Limite de resultados
56
+ * - new_name: Novo nome para atualização
57
+ * - new_description: Nova descrição
58
+ * - new_private: Nova visibilidade
59
+ * - archived: Status de arquivamento
60
+ * - organization: Organização para fork
61
+ * - query: Termo de busca
62
+ *
63
+ * CASOS DE USO:
64
+ * 1. Criação de repositórios para novos projetos
65
+ * 2. Backup e migração de código
66
+ * 3. Organização de projetos em equipe
67
+ * 4. Automação de workflows de desenvolvimento
68
+ * 5. Gerenciamento de repositórios em massa
69
+ * 6. Configuração de templates de projeto
70
+ * 7. Sincronização entre diferentes provedores
71
+ *
72
+ * EXEMPLOS DE USO:
73
+ * - Criar repositório: action=create, name=meu-projeto, description=Projeto incrível
74
+ * - Listar repositórios: action=list, username=usuario
75
+ * - Buscar repositórios: action=search, query=react typescript
76
+ * - Clonar repositório: action=clone, url=https://github.com/user/repo.git
77
+ * - Inicializar local: action=init, projectPath=/path/to/project
23
78
  *
24
79
  * RECOMENDAÇÕES:
25
- * - Use nomes descritivos para repositórios
26
- * - Configure visibilidade adequada
27
- * - Mantenha descrições atualizadas
28
- * - Use templates quando possível
80
+ * - Use nomes descritivos e consistentes
81
+ * - Configure visibilidade adequada para cada projeto
82
+ * - Mantenha descrições atualizadas e informativas
83
+ * - Use templates para padronização
84
+ * - Configure branches padrão apropriadas
85
+ * - Documente configurações importantes
86
+ * - Use licenças adequadas para cada projeto
87
+ *
88
+ * LIMITAÇÕES:
89
+ * - Operações de arquivamento dependem do provedor
90
+ * - Transferência de propriedade requer permissões especiais
91
+ * - Alguns provedores podem ter limitações de API
92
+ *
93
+ * SEGURANÇA:
94
+ * - Tokens de acesso são obrigatórios para operações remotas
95
+ * - Validação de permissões antes de operações destrutivas
96
+ * - Logs detalhados de todas as operações
97
+ * - Tratamento seguro de informações sensíveis
29
98
  */
30
99
  /**
31
100
  * Schema de validação para entrada da tool git-repositories
@@ -68,7 +137,7 @@ declare const GitRepositoriesInputSchema: z.ZodObject<{
68
137
  provider: "gitea" | "github";
69
138
  owner: string;
70
139
  repo: string;
71
- action: "delete" | "get" | "create" | "list" | "update" | "fork" | "search" | "init" | "clone";
140
+ action: "delete" | "get" | "init" | "clone" | "list" | "create" | "search" | "update" | "fork";
72
141
  projectPath: string;
73
142
  name?: string | undefined;
74
143
  description?: string | undefined;
@@ -91,7 +160,7 @@ declare const GitRepositoriesInputSchema: z.ZodObject<{
91
160
  provider: "gitea" | "github";
92
161
  owner: string;
93
162
  repo: string;
94
- action: "delete" | "get" | "create" | "list" | "update" | "fork" | "search" | "init" | "clone";
163
+ action: "delete" | "get" | "init" | "clone" | "list" | "create" | "search" | "update" | "fork";
95
164
  projectPath: string;
96
165
  name?: string | undefined;
97
166
  description?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"git-repositories.d.ts","sourceRoot":"","sources":["../../src/tools/git-repositories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,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